217fbba012acbd48a28e85786236ac65283552fb
[gnulib.git] / ChangeLog
1 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2
3         ftoastr: depend on snprintf, improve comments
4         * lib/ftoastr.c: Also mention Loitsch's draft.
5         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
6         needed in the current implementation, but it might simplify
7         speeding up the code later.
8         * modules/ftoastr: Depend on snprintf; this improves portability.
9         Suggested by Bruno Haible in the same email.
10
11         ftoastr: port to hosts lacking strtof and strtold
12         Problem reported by Bruno Haible in
13         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
15         environment and strtold (and presumably strtof) are not available.
16         * modules/ftoastr (Files): Add m4/c-strtod.m4.
17         (configure.ac): Require gl_C99_STRTOLD.
18
19 2010-11-18  Bruno Haible  <bruno@clisp.org>
20
21         c-strtold: Avoid link error on AIX 7.
22         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24         (gl_C_STRTOLD): Test whether strtold_l exists.
25         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26
27 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
28
29         intprops: new macro INT_BITS_STRLEN_BOUND
30         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
31         ftoastr.h.  This exposes an internal of intprops.h that was formerly
32         not exposed.  Also, it uses a slightly tighter bound than before;
33         though this makes no practical difference, we might as well be as
34         tight as we easily can.
35
36         ftoastr: new module, for lossless conversion of floats to short strings
37         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
38         * modules/ftoastr: New files.
39
40 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
41
42         bootstrap: port to Solaris sed
43         * build-aux/bootstrap (get_version): Port to Solaris sed.
44         See Ralf Wildenhues's note in
45         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
46
47 2010-11-14  Jim Meyering  <meyering@redhat.com>
48
49         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
50         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
51         and move definition closer to sole use.
52
53 2010-11-13  Jim Meyering  <meyering@redhat.com>
54
55         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
56         Now we require at least autoconf-2.59, which means the work-around
57         is no longer needed.
58         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
59         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
60         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
61         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
62         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
63
64 2010-11-13  Bruno Haible  <bruno@clisp.org>
65
66         rename, renameat: Avoid test failures at NFS mounted locations.
67         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
68         functions.
69         (test_rename): Use assert_nonexistent.
70         * tests/test-rename.c: Include <dirent.h>.
71         * tests/test-renameat.c: Likewise.
72         Reported by Gary V. Vaughan <gary@gnu.org>.
73
74         rename, renameat: Document Linux bug with NFS
75         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
76         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
77         * doc/posix-functions/renameat.texi: Likewise.
78         Suggested by Eric Blake.
79
80 2010-11-13  Bruno Haible  <bruno@clisp.org>
81
82         rename test: Add comments.
83         * tests/test-rename.h (test_rename): Add structure and comments.
84
85 2010-11-13  Eric Blake  <eblake@redhat.com>
86
87         maintainer-makefile: cover a few more files
88         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
89         scripts generated within C files, for libvirt.
90
91 2010-11-13  Bruno Haible  <bruno@clisp.org>
92
93         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
94         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
95         character, return the number of bytes that belong together, not always
96         1.
97         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
98         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
99         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
100         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
101         number of bytes of an invalid character.
102         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
103         (main): Invoke it.
104         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
105         results.
106         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
107         malformed byte sequences.
108         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
109         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
110         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
111         Reported by Ben Pfaff and Paolo Bonzini.
112
113 2010-11-13  Bruno Haible  <bruno@clisp.org>
114
115         openat: Work around glibc bug with fchownat() and empty file names.
116         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
117         (gl_FUNC_FCHOWNAT): Invoke it.
118         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
119         * doc/posix-functions/fchownat.texi: Document the glibc bug.
120         Reported by Gary V. Vaughan <gary@gnu.org>.
121
122 2010-11-13  Bruno Haible  <bruno@clisp.org>
123
124         openat: Ensure autoconf macro ordering.
125         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
126         gl_USE_SYSTEM_EXTENSIONS.
127         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
128
129 2010-11-13  Bruno Haible  <bruno@clisp.org>
130
131         Update comments.
132         * lib/unistr/u8-check.c: Update file name in comments.
133         * lib/unistr/u8-mblen.c: Likewise.
134         * lib/unistr/u8-prev.c: Likewise.
135         * lib/unistr/u8-strmblen.c: Likewise.
136         * lib/unistr/u8-strmbtouc.c: Likewise.
137
138 2010-11-13  Jim Meyering  <meyering@redhat.com>
139
140         tests: avoid test failure on Solaris 10 due to lack of PATH export
141         * tests/test-update-copyright.sh: Don't forget to export PATH.
142
143         init.sh: ensure that IFS is defined, just in case...
144         * tests/init.sh (setup_): Ensure that IFS is defined,
145         so that saving and restoring it works as expected.  This
146         appears to be useful at least for an old version of dash
147         from a long time ago (RH 6).  See here for details:
148         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
149
150         maint.mk: tighten "test a == b" check
151         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
152         test to files that contain something like #!/bin/sh.
153         Without this, coreutils would get two false positives in
154         the comments of C source files.
155
156 2010-11-12  Eric Blake  <eblake@redhat.com>
157
158         bootstrap: fix typo in previous attempt
159         * build-aux/bootstrap (buildreq): Correct the grouping.
160         Reported by Paul Eggert.
161
162         maintainer-makefile: prohibit test x == x
163         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
164         Based on a report by Matthias Bolte.
165
166         bootstrap: allow FreeBSD gzip
167         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
168         which has no '.' and goes to stderr.
169         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
170         Reported by Matthias Bolte.
171
172         maintainer-makefile: check for i18n setup
173         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
174         will likely work.
175
176 2010-11-12  Bruno Haible  <bruno@clisp.org>
177
178         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
179         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
180         * lib/nanosleep.c (nanosleep): Likewise.
181
182 2010-11-11  Bruno Haible  <bruno@clisp.org>
183
184         fcntl-h: Fix for use of C++ on glibc systems.
185         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
186         also on glibc systems in C++ mode.
187         Reported by Gary V. Vaughan <gary@gnu.org>.
188
189 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
190
191         mknod: avoid false failure with dash
192         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
193
194 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
195
196         unlink: Fix "is it should" typo in diagnostic.
197         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
198         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
199
200 2010-11-11  Bruno Haible  <bruno@clisp.org>
201
202         Tests for module 'strerror_r-posix'.
203         * modules/strerror_r-posix-tests: New file.
204         * tests/test-strerror_r.c: New file.
205         * tests/test-string-c++.cc: Check the signature of strerror_r.
206
207         New module 'strerror_r-posix'.
208         * lib/string.in.h (strerror_r): New declaration.
209         * lib/strerror_r.c: New file.
210         * m4/strerror_r.m4: New file.
211         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
212         of strerror_r.
213         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
214         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
215         * modules/strerror_r-posix: New file.
216         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
217         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
218         * doc/posix-functions/strerror_r.texi: Mention the new module and the
219         portability problems.
220
221 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
222
223         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
224         line is also considered for output. Quoted function name in shell
225         command, so temporary files for functions like MyClass::operator()
226         are removed correctly without errors.
227
228 2010-11-09  Bruno Haible  <bruno@clisp.org>
229
230         * doc/posix-functions/strerror.texi: List more failing platforms.
231
232         * doc/posix-functions/strerror.texi: Add a comment.
233
234 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
235
236         fdopendir: fix bug on MacOS X when low on file descriptors
237
238         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
239         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
240         All callers changed.
241         (fdopendir): Invoke save_cwd at the top level, not after using
242         multiple dup() calls to use up file descriptors.  Then retry
243         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
244         less than the maximum number of open file descriptors, because
245         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
246         on Mac OS X 10.6.4 for tar 1.24
247         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
248         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
249         and for tar 1.25
250         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
251
252 2010-11-07  Bruno Haible  <bruno@clisp.org>
253
254         vasnprintf: Support I flag on glibc systems.
255         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
256         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
257         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
258         snprintf function.
259         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
260         glibc systems.
261         * tests/test-vasnprintf-posix3.c: New file.
262         * modules/vasnprintf-posix-tests (Files): Add it.
263         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
264
265 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
266
267         [html] Fix copy/paste bug: Use unique name for compiler warnings.
268         * MODULES.html.sh: For compiler warnings, use name
269         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
270
271 2010-11-05  Eric Blake  <eblake@redhat.com>
272
273         ceil, floor: avoid spurious failure with icc
274         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
275         [denormals-as-zero] when optimizing without -mieee-fp option.
276         * tests/test-floorf2.c (floorf_reference): Likewise.
277         * tests/test-ceilf1.c (dummy): New function.
278         (main): Use it to outsmart icc's optimization.
279         * tests/test-floorf1.c (dummy, main): Likewise.
280
281         tests: require working signbit
282         * modules/ceilf-tests (Depends-on): Add signbit.
283         * modules/ceill-tests (Depends-on): Likewise.
284         * modules/floorf-tests (Depends-on): Likewise.
285         * modules/floorl-tests (Depends-on): Likewise.
286         * modules/round-tests (Depends-on): Likewise.
287         * modules/roundf-tests (Depends-on): Likewise.
288         * modules/roundl-tests (Depends-on): Likewise.
289         * modules/trunc-tests (Depends-on): Likewise.
290         * modules/truncf-tests (Depends-on): Likewise.
291         * modules/truncl-tests (Depends-on): Likewise.
292
293         strtod: work around icc bug
294         * lib/strtod.c (minus_zero): Define to working value.
295         (strtod): Use it to avoid icc bug.
296
297         copysign: enhance tests
298         * modules/copysign-tests (Files): Add minus-zero.h.
299         * tests/test-copysign.c (main): Also test zeros.
300
301 2010-11-04  Eric Blake  <eblake@redhat.com>
302
303         ceil, floor, round, trunc: enhance tests of -0
304         * tests/test-ceilf1.c (main): Ensure correct sign of result.
305         * tests/test-ceill.c (main): Likewise.
306         * tests/test-floorf1.c (main): Likewise.
307         * tests/test-floorl.c (main): Likewise.
308         * tests/test-round1.c (main): Likewise.
309         * tests/test-roundf1.c (main): Likewise.
310         * tests/test-roundl.c (main): Likewise.
311         * tests/test-trunc1.c (main): Likewise.
312         * tests/test-truncf1.c (main): Likewise.
313         * tests/test-truncl.c (main): Likewise.
314
315 2010-11-04  Eric Blake  <eblake@redhat.com>
316
317         frexp, tests: work around ICC bug with -zero
318         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
319         works with more compilers.
320         * tests/minus-zero.h: New file.
321         * modules/ceilf-tests (Files): Include it.
322         * modules/ceill-tests (Files): Likewise.
323         * modules/floorf-tests (Files): Likewise.
324         * modules/floorl-tests (Files): Likewise.
325         * modules/frexp-nolibm-tests (Files): Likewise.
326         * modules/frexp-tests (Files): Likewise.
327         * modules/frexpl-nolibm-tests (Files): Likewise.
328         * modules/frexpl-tests (Files): Likewise.
329         * modules/isnan-tests (Files): Likewise.
330         * modules/isnand-nolibm-tests (Files): Likewise.
331         * modules/isnand-tests (Files): Likewise.
332         * modules/isnanf-nolibm-tests (Files): Likewise.
333         * modules/isnanf-tests (Files): Likewise.
334         * modules/isnanl-nolibm-tests (Files): Likewise.
335         * modules/isnanl-tests (Files): Likewise.
336         * modules/round-tests (Files): Likewise.
337         * modules/roundf-tests (Files): Likewise.
338         * modules/roundl-tests (Files): Likewise.
339         * modules/ldexpl-tests (Files): Likewise.
340         * modules/signbit-tests (Files): Likewise.
341         * modules/snprintf-posix-tests (Files): Likewise.
342         * modules/sprintf-posix-tests (Files): Likewise.
343         * modules/strtod-tests (Files): Likewise.
344         * modules/trunc-tests (Files): Likewise.
345         * modules/truncf-tests (Files): Likewise.
346         * modules/truncl-tests (Files): Likewise.
347         * modules/vsnprintf-posix-tests (Files): Likewise.
348         * modules/vsprintf-posix-tests (Files): Likewise.
349         * modules/vasnprintf-posix-tests (Files): Likewise.
350         * modules/vasprintf-posix-tests (Files): Likewise.
351         * tests/test-ceilf1.c (main): Use it.
352         * tests/test-ceill.c (main): Likewise.
353         * tests/test-floorf1.c (main): Likewise.
354         * tests/test-floorl.c (main): Likewise.
355         * tests/test-frexp.c (main): Likewise.
356         * tests/test-frexpl.c (main): Likewise.
357         * tests/test-isnan.c (main): Likewise.
358         * tests/test-isnand.h (main): Likewise.
359         * tests/test-isnanf.h (main): Likewise.
360         * tests/test-isnanl.h (main): Likewise.
361         * tests/test-ldexpl.c (main): Likewise.
362         * tests/test-round.c (main): Likewise.
363         * tests/test-roundf.c (main): Likewise.
364         * tests/test-roundl.c (main): Likewise.
365         * tests/test-signbit.c (test_signbitf, test_signbitd)
366         (test_signbitl): Likewise.
367         * tests/test-snprintf-posix.h (test_function): Likewise.
368         * tests/test-sprintf-posix.h (test_function): Likewise.
369         * tests/test-strtod.c (main): Likewise.
370         * tests/test-trunc1.c (main): Likewise.
371         * tests/test-truncf1.c (main): Likewise.
372         * tests/test-truncl.c (main): Likewise.
373
374         isnanl: work around icc bug
375         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
376
377 2010-11-03  Eric Blake  <eblake@redhat.com>
378
379         tests: fix compiler warnings
380         * tests/test-getopt.h (test_getopt): Fix condition.
381         * tests/test-getopt_long.h (test_getopt_long): Likewise.
382         * tests/test-pipe2.c (main): Likewise.
383         * tests/test-quotearg-simple.c (main): Avoid icc warning.
384
385         utimens: fix broken m4 test
386         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
387
388 2010-10-28  Bruno Haible  <bruno@clisp.org>
389
390         posix_spawn*, getdtablesize: Relax license.
391         * modules/posix_spawn (License): Change to LGPLv2+.
392         * modules/posix_spawnp (License): Likewise.
393         * modules/posix_spawn-internal (License): Likewise.
394         * modules/posix_spawnattr_init (License): Likewise.
395         * modules/posix_spawnattr_getflags (License): Likewise.
396         * modules/posix_spawnattr_setflags (License): Likewise.
397         * modules/posix_spawnattr_getpgroup (License): Likewise.
398         * modules/posix_spawnattr_setpgroup (License): Likewise.
399         * modules/posix_spawnattr_getschedparam (License): Likewise.
400         * modules/posix_spawnattr_setschedparam (License): Likewise.
401         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
402         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
403         * modules/posix_spawnattr_getsigdefault (License): Likewise.
404         * modules/posix_spawnattr_setsigdefault (License): Likewise.
405         * modules/posix_spawnattr_getsigmask (License): Likewise.
406         * modules/posix_spawnattr_setsigmask (License): Likewise.
407         * modules/posix_spawnattr_destroy (License): Likewise.
408         * modules/posix_spawn_file_actions_init (License): Likewise.
409         * modules/posix_spawn_file_actions_addclose (License): Likewise.
410         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
411         * modules/posix_spawn_file_actions_addopen (License): Likewise.
412         * modules/posix_spawn_file_actions_destroy (License): Likewise.
413         * modules/getdtablesize (License): Likewise.
414         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
415
416 2010-10-26  Bruno Haible  <bruno@clisp.org>
417
418         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
419         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
420         Cygwin and mingw.
421         Suggested by Eric Blake.
422
423 2010-10-26  Bruno Haible  <bruno@clisp.org>
424
425         stdio: Work around compilation error due to renameat() on Solaris 10.
426         * lib/stdio.in.h: Include <unistd.h> on Solaris.
427         * lib/renameat.c: Don't include <unistd.h> here.
428         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
429         Reported by Paul Eggert and Eric Blake.
430
431 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
432
433         renameat: port to Solaris 10, which declares renameat in unistd.h
434
435         * lib/renameat.c: Include unistd.h before stdio.h, because
436         Solaris 10 declares renameat in unistd.h.  Problem encountered
437         when building GNU tar 1.24 on Solaris 10.
438
439 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
440
441         fdopendir: fix C89 compilation
442         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
443         compilers.
444
445 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
446
447         inttostr: simplify by removing unnecessary redundancy
448         * lib/anytostr.c: Don't include verify.h.
449         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
450         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
451         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
452         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
453         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
454         Likewise.
455         * modules/inttostr (Depends-on): Remove 'verify'.
456
457 2010-10-23  Bruno Haible  <bruno@clisp.org>
458
459         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
460         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
461         Reported by Eric Blake.
462
463 2010-10-23  Bruno Haible  <bruno@clisp.org>
464
465         Tests: Fix LOCALE_JA on MirBSD 10.
466         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
467         to an UTF-8 locale.
468         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
469         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
470         Reported by Eric Blake.
471
472 2010-10-21  Bruno Haible  <bruno@clisp.org>
473
474         nl_langinfo test: Avoid test failure on NetBSD 5.
475         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
476         Reported by Eric Blake.
477
478 2010-10-21  Eric Blake  <eblake@redhat.com>
479
480         c-stack: work around libsigsegv 2.8 bug
481         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
482         overflow on at least PowerPC64.
483
484 2010-10-17  Bruno Haible  <bruno@clisp.org>
485
486         userspec: Drop redundant file.
487         * modules/userspec (Files): Remove lib/inttostr.h.
488
489 2010-10-17  Bruno Haible  <bruno@clisp.org>
490
491         nl_langinfo tests: Silence some warnings.
492         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
493         Reported by Jim Meyering.
494
495 2010-10-17  Bruno Haible  <bruno@clisp.org>
496
497         Make use of GCC's attribute __alloc_size__.
498         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
499         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
500         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
501         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
502         __alloc_size__.
503         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
504         Suggested by Jim Meyering.
505
506 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
507
508         bootstrap: anchor .gitignore entries.
509         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
510         with...
511         (insert_vc_ignore): ... this new function, which prepends `/' to
512         all .gitignore entries before passing them to
513         insert_sorted_if_absent.
514
515 2010-10-16  Bruno Haible  <bruno@clisp.org>
516
517         nextafter: Fix configure check.
518         * modules/nextafter (configure.ac): Correct expected prototype.
519
520 2010-10-16  Bruno Haible  <bruno@clisp.org>
521
522         termios: Update documentation.
523         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
524
525 2010-10-16  Bruno Haible  <bruno@clisp.org>
526
527         tests: Make them compile with TinyCC.
528         * tests/test-strstr.c (main): Remove parentheses around array
529         initializer.
530
531 2010-10-15  Eric Blake  <eblake@redhat.com>
532
533         ignore-value: make header idempotent
534         * lib/ignore-value.h: Add double-inclusion guards.
535         Reported by Stefan Berger.
536
537 2010-10-15  Jim Meyering  <meyering@redhat.com>
538
539         GNUmakefile: handle "stable" target, not "major"
540         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
541         lists in maint.mk and announce-gen.  Without this, "make stable"
542         would fail to ensure that $(VERSION) is up to date.
543
544 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
545
546         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
547         & co.
548
549 2010-10-14  Bruno Haible  <bruno@clisp.org>
550
551         vasnprintf: Don't set errno to 0.
552         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
553         block that sets it to 0.
554         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
555
556 2010-10-14  Bruno Haible  <bruno@clisp.org>
557
558         socketlib: Fix.
559         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
560         gl_PREREQ_SYS_H_WINSOCK2.
561         Reported by Ian Beckwith <ianb@erislabs.net>.
562
563 2010-10-13  Jim Meyering  <meyering@redhat.com>
564
565         test-select-stdin.c: avoid warn_unused_result warnings
566         * tests/test-select-stdin.c: Include "macros.h".
567         ASSERT that read and fflush succeed.
568
569 2010-10-13  Jim Meyering  <meyering@redhat.com>
570
571         git-version-gen: do require git-VC'd files in cwd
572         * build-aux/git-version-gen: Reject a git version string
573         if there are no commits associated with the current directory.
574         This avoids an unlikely false-positive (unrelated dir whose parent
575         repository also contains a tag matching v*), as pointed out
576         by Giuseppe Scrivano in
577         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
578
579 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
580
581         argv-iter: omit nonconforming declaration
582         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
583         enum arg_iter_err declaration, which doesn't conform to C99.
584         Solaris 10 cc warns about this.
585
586 2010-10-13  Eric Blake  <eblake@redhat.com>
587
588         termios: fix compilation on mingw
589         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
590         (gl_TERMIOS_H): Adjust it on mingw.
591         * modules/termios (Makefile.am): Substitute new key.
592         * lib/termios.in.h (includes): Make include_next conditional.
593         * doc/posix-headers/termios.texi (termios.h): Update
594         documentation.
595         Reported by Daniel P. Berrange.
596
597 2010-10-13  Jim Meyering  <meyering@redhat.com>
598
599         git-version-gen: don't require that .git/ be in the current dir
600         * build-aux/git-version-gen: Adjust this script so that it works
601         when run from any working directory beneath the top-level .git/-
602         containing directory.  Inspired by a patch from Giuseppe Scrivano,
603         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
604
605         test-select: avoid warn_unused_result warnings
606         * tests/test-select.c: Include "macros.h".
607         ASSERT that each call to read, write, and pipe succeeds.
608         While not technically required, also check each "close".
609         * modules/select-tests (Files): Add tests/macros.h.
610
611         test-symlinkat: remove declaration of unused local
612         * tests/test-symlinkat.c (main): Remove unused local, "buf".
613
614         test-inttostr: avoid shadowing warnings
615         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
616         and use malloc rather than the stack for the same reason as
617         mentioned in the comment justifying the other allocation.
618
619 2010-10-11  Bruno Haible  <bruno@clisp.org>
620
621         stdlib: Allow multiple gnulib generated replacements to coexist.
622         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
623         Reported by Sam Steingold <sds@gnu.org>.
624
625 2010-10-11  Jim Meyering  <meyering@redhat.com>
626
627         fix a documentation typo
628         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
629
630 2010-10-11  Eric Blake  <eblake@redhat.com>
631
632         futimens: work around Solaris 11 bug
633         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
634         * tests/test-futimens.h (test_futimens): Enhance, rather than
635         weaken test.
636         * doc/posix-functions/futimens.texi (futimens): Document the bug.
637
638 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
639
640         Indentation.
641         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
642         higher-level operators more to the left.
643
644 2010-10-11  Jim Meyering  <meyering@redhat.com>
645
646         test-futimens: avoid unwarranted test failure on Solaris 5.11
647         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
648         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
649         because it tries to dereference the NULL name argument.
650
651 2010-10-11  Bruno Haible  <bruno@clisp.org>
652
653         Indentation.
654         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
655         indentation.
656
657 2010-10-11  Jim Meyering  <meyering@redhat.com>
658
659         spawn.in.h: make indentation consistent with parentheses
660         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
661         Make indentation consistent with parentheses.
662
663 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
664
665         Fix mismatched parens in previous commit
666         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
667         parens.
668
669 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
670
671         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
672
673         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
674         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
675         * lib/malloca.c: Include "verify.h".
676         (verify1): Remove, replacing with a verify call.
677         * lib/relocwrapper.c (verify1): Likewise.
678         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
679         Likewise.
680         * modules/malloca (Depends-on): Add 'verify'.
681         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
682         * modules/vasnprintf (Depends-on): Add 'verify'.
683         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
684         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
685         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
686         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
687         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
688         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
689         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
690
691         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
692
693         Formerly the style was sometimes 2*X - 1, because the C standard
694         was wrongly thought to disallow ?: in integral constant expressions.
695         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
696         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
697         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
698         * lib/stdint.in.h (_verify_intmax_size): Likewise.
699         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
700         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
701         verify that time_t cannot be floating.
702
703 2010-10-08  Eric Blake  <eblake@redhat.com>
704
705         time: enforce recent POSIX ruling that time_t is integral
706         * lib/time.in.h (__time_t_must_be_integral): Detect any
707         problematic systems, allowing the rest of gnulib to assume POSIX.
708
709 2010-10-08  Jim Meyering  <meyering@redhat.com>
710
711         fdopendir: fix a bug on systems lacking openat and /proc support
712         OpenBSD 4.7 is one such system.  The most noticeable effect was
713         failure of any application making nontrivial use of fts: rm, du,
714         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
715           ./rm: traversal failed: `a': Bad file descriptor
716         Debugging that, you see that even though FD 6 was closed just
717         prior to the opendir call in fd_clone_opendir, its resulting
718         dir->dd_fd was 8, rather than the expected value of 6:
719
720         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
721         93                close (fd);
722         (gdb) n
723         94                dir = fd_clone_opendir (dupfd);
724         (gdb) n
725         95                saved_errno = errno;
726         (gdb) p dir->dd_fd
727         $11 = 8
728
729         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
730         The problem is that on OpenBSD, fd_clone_opendir has to resort
731         to using the old-style save/restore CWD mechanism, due to its
732         lack of openat/proc support, and *that* would steal the FD (6)
733         that opendir was supposed to use.
734
735         The fix is to squirrel away the desired FD so that save_cwd uses a
736         different one, and then free the dest FD right before calling opendir.
737         That guarantees opendir will use the required file descriptor.
738
739         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
740
741 2010-10-08  Bruno Haible  <bruno@clisp.org>
742
743         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
744         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
745
746 2010-10-08  Bruno Haible  <bruno@clisp.org>
747
748         nanosleep: Make replacement POSIX compliant.
749         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
750         is out of range.
751         Reported by Jim Meyering.
752
753 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
754
755         bootstrap: add hook for altering gnulib.mk, for Bison
756         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
757         the Bison bootstrapping process can rewrite file names and variables
758         in this file before later parts of 'bootstrap' use the file.
759         Bison wants to include lib/gnulib.mk from the top-level makefile,
760         so it needs the file names in this file to be relative to the top
761         level, not relative to lib; plus it needs variable names to be
762         rewritten.
763         (slurp): Use the new function.
764
765         bootstrap: reformat for readability
766         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
767
768 2010-10-08  Eric Blake  <eblake@redhat.com>
769
770         docs: update cygwin progress
771         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
772         1.7.7.
773         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
774         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
775         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
776         * doc/posix-functions/carg.texi (carg): Likewise.
777         * doc/posix-functions/cargf.texi (cargf): Likewise.
778         * doc/posix-functions/casin.texi (casin): Likewise.
779         * doc/posix-functions/casinf.texi (casinf): Likewise.
780         * doc/posix-functions/casinh.texi (casinh): Likewise.
781         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
782         * doc/posix-functions/catan.texi (catan): Likewise.
783         * doc/posix-functions/catanf.texi (catanf): Likewise.
784         * doc/posix-functions/catanh.texi (catanh): Likewise.
785         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
786         * doc/posix-functions/ccos.texi (ccos): Likewise.
787         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
788         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
789         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
790         * doc/posix-functions/cexp.texi (cexp): Likewise.
791         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
792         * doc/posix-functions/cimag.texi (cimag): Likewise.
793         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
794         * doc/posix-functions/clog.texi (clog): Likewise.
795         * doc/posix-functions/clogf.texi (clogf): Likewise.
796         * doc/posix-functions/conj.texi (conj): Likewise.
797         * doc/posix-functions/conjf.texi (conjf): Likewise.
798         * doc/posix-functions/cpow.texi (cpow): Likewise.
799         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
800         * doc/posix-functions/cproj.texi (cproj): Likewise.
801         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
802         * doc/posix-functions/creal.texi (creal): Likewise.
803         * doc/posix-functions/crealf.texi (crealf): Likewise.
804         * doc/posix-functions/csin.texi (csin): Likewise.
805         * doc/posix-functions/csinf.texi (csinf): Likewise.
806         * doc/posix-functions/csinh.texi (csinh): Likewise.
807         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
808         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
809         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
810         * doc/posix-functions/ctan.texi (ctan): Likewise.
811         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
812         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
813         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
814         * doc/posix-headers/complex.texi (complex.h): Likewise.
815
816 2010-10-07  Jim Meyering  <meyering@redhat.com>
817
818         parse-datetime: avoid compilation failure on OpenBSD 4.7
819         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
820         This works around a compilation failure on OpenBSD 4.7:
821         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
822
823 2010-10-07  Eric Blake  <eblake@redhat.com>
824
825         docs: update cygwin progress
826         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
827         1.7.6.
828         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
829         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
830         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
831         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
832         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
833         Likewise.
834         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
835         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
836         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
837         Likewise.
838         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
839         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
840         Likewise.
841         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
842         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
843         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
844         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
845         Likewise.
846         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
847         Likewise.
848         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
849
850         docs: update parse-datetime history
851         * doc/parse-datetime.texi (Authors of parse_datetime): Better
852         documentation of this function's history and alternatives.
853
854         cygwin: use more robust version check
855         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
856         exclude an eventual cygwin 1.9.1.
857         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
858         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
859         (gl_FUNC_STRCASESTR): Likewise.
860         Reported by Bruno Haible.
861
862 2010-10-06  Bruno Haible  <bruno@clisp.org>
863
864         string, sys_select: Avoid #including large headers unless necessary.
865         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
866         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
867         OSF/1, BeOS, Haiku.
868         Reported by Jim Meyering.
869
870 2010-10-05  Eric Blake  <eblake@redhat.com>
871
872         memmem, strstr, strcasestr: fix bug with long periodic needle
873         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
874         periodic needle having false positive.
875         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
876         and cygwin 1.7.7.
877         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
878         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
879         (gl_FUNC_STRCASESTR): Likewise.
880         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
881         * tests/test-memmem.c (main): Expose the bug.
882         * tests/test-strcasestr.c (main): Likewise.
883         * tests/test-strstr.c (main): Likewise.
884         * tests/test-c-strcasestr.c (main): Likewise.
885         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
886         * doc/posix-functions/strstr.texi (strstr): Likewise.
887         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
888         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
889
890 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
891
892         parse-datetime: do some more renaming
893         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
894         parse_datetime, not get_date.  Mention the renaming.
895         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
896         in comments.
897         * m4/bison.m4: Likewise.
898
899 2010-10-05  Eric Blake  <eblake@redhat.com>
900
901         parse-datetime: better name than get_date
902         * NEWS: Reword the deprecation notice.
903         * modules/get_date: Rename to modules/parse-datetime.
904         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
905         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
906         * lib/get_date.y: Rename to lib/parse-datetime.y.
907         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
908         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
909         * doc/getdate.texi: Provide fallback wrapper.
910         * lib/getdate.h: Move guts, and wrap...
911         * lib/parse-datetime.h: ...new file.
912         * lib/parse-datetime.y (get_date): Rename...
913         (parse_datetime): ...to this.
914         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
915         (gl_PARSE_DATETIME): ...to this.
916         * doc/posix-functions/getdate.texi (get_date): Provide fallback
917         documentation.
918         * modules/getdate (Files): Provide fallback docs and header.
919         (Notice, Depends-on): Update references.
920         * tests/test-parse-datetime.c: Likewise.
921         * DEPENDENCIES: Likewise.
922         * MODULES.html.sh (Date and time <time.h>): Likewise.
923         * doc/parse-datetime.texi (Date input formats)
924         (Authors of parse_datetime): Likewise.
925         * modules/parse-datetime (Files, configure.ac, Makefile.am)
926         (Include): Likewise.
927         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
928         * gnulib-tool: Likewise.
929         * m4/bison.m4 (gl_BISON): Likewise.
930         Suggested by Bruno Haible.
931
932 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
933
934         more ports to Solaris tr, which needs [] around ranges
935         * gnulib-tool: Solaris tr needs [] around ranges.
936         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
937         * tests/test-pipe-filter-gi1.c (main): Likewise.
938         * tests/test-pipe-filter-ii1.c (main): Likewise.
939
940 2010-10-05  Eric Blake  <eblake@redhat.com>
941
942         bootstrap: fix Solaris regression
943         * build-aux/bootstrap (check_versions): Solaris tr still needs []
944         around ranges.
945         Reported by Pádraig Brady.
946
947         bootstrap: work with pkg-config
948         * build-aux/bootstrap (check_versions): Also transliterate - in
949         prerequisite name.
950         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
951         prerequisites that were already found, to avoid confusion.
952         Reported by Justin Clift.
953
954         faccessat: remove unused wrappers
955         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
956         presence of these wrappers dragged in -lgen on Solaris.
957         Reported by Clemens Brogi; fix suggested by Paul Eggert.
958
959 2010-10-05  Jim Meyering  <meyering@redhat.com>
960
961         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
962         * Makefile (sc_pragma_columns): New syntax-check rule.
963
964 2010-10-04  Bruno Haible  <bruno@clisp.org>
965
966         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
967         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
968         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
969         Reported by Bruce Korb and Eric Blake.
970
971 2010-10-04  Bruno Haible  <bruno@clisp.org>
972
973         threadlib: Make option --with-libpth-prefix work.
974         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
975         use $LIBPTH, not just -lpth.
976
977 2010-10-04  Bruno Haible  <bruno@clisp.org>
978
979         Avoid line length limitation from HP NonStop system header files.
980         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
981         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
982         * lib/ctype.in.h: Likewise.
983         * lib/dirent.in.h: Likewise.
984         * lib/errno.in.h: Likewise.
985         * lib/fcntl.in.h: Likewise.
986         * lib/float.in.h: Likewise.
987         * lib/getopt.in.h: Likewise.
988         * lib/iconv.in.h: Likewise.
989         * lib/inttypes.in.h: Likewise.
990         * lib/langinfo.in.h: Likewise.
991         * lib/locale.in.h: Likewise.
992         * lib/math.in.h: Likewise.
993         * lib/netdb.in.h: Likewise.
994         * lib/netinet_in.in.h: Likewise.
995         * lib/poll.in.h: Likewise.
996         * lib/pthread.in.h: Likewise.
997         * lib/pty.in.h: Likewise.
998         * lib/sched.in.h: Likewise.
999         * lib/se-selinux.in.h: Likewise.
1000         * lib/search.in.h: Likewise.
1001         * lib/signal.in.h: Likewise.
1002         * lib/spawn.in.h: Likewise.
1003         * lib/stdarg.in.h: Likewise.
1004         * lib/stddef.in.h: Likewise.
1005         * lib/stdint.in.h: Likewise.
1006         * lib/stdio.in.h: Likewise.
1007         * lib/stdlib.in.h: Likewise.
1008         * lib/string.in.h: Likewise.
1009         * lib/strings.in.h: Likewise.
1010         * lib/sys_file.in.h: Likewise.
1011         * lib/sys_ioctl.in.h: Likewise.
1012         * lib/sys_select.in.h: Likewise.
1013         * lib/sys_socket.in.h: Likewise.
1014         * lib/sys_stat.in.h: Likewise.
1015         * lib/sys_time.in.h: Likewise.
1016         * lib/sys_times.in.h: Likewise.
1017         * lib/sys_utsname.in.h: Likewise.
1018         * lib/sys_wait.in.h: Likewise.
1019         * lib/sysexits.in.h: Likewise.
1020         * lib/termios.in.h: Likewise.
1021         * lib/time.in.h: Likewise.
1022         * lib/unistd.in.h: Likewise.
1023         * lib/wchar.in.h: Likewise.
1024         * lib/wctype.in.h: Likewise.
1025         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
1026         * modules/ctype (Makefile.am): Likewise.
1027         * modules/dirent (Makefile.am): Likewise.
1028         * modules/errno (Makefile.am): Likewise.
1029         * modules/fcntl-h (Makefile.am): Likewise.
1030         * modules/float (Makefile.am): Likewise.
1031         * modules/getopt-posix (Makefile.am): Likewise.
1032         * modules/iconv-h (Makefile.am): Likewise.
1033         * modules/inttypes (Makefile.am): Likewise.
1034         * modules/langinfo (Makefile.am): Likewise.
1035         * modules/locale (Makefile.am): Likewise.
1036         * modules/math (Makefile.am): Likewise.
1037         * modules/netdb (Makefile.am): Likewise.
1038         * modules/netinet_in (Makefile.am): Likewise.
1039         * modules/poll-h (Makefile.am): Likewise.
1040         * modules/pthread (Makefile.am): Likewise.
1041         * modules/pty (Makefile.am): Likewise.
1042         * modules/sched (Makefile.am): Likewise.
1043         * modules/search (Makefile.am): Likewise.
1044         * modules/selinux-h (Makefile.am): Likewise.
1045         * modules/signal (Makefile.am): Likewise.
1046         * modules/spawn (Makefile.am): Likewise.
1047         * modules/stdarg (Makefile.am): Likewise.
1048         * modules/stddef (Makefile.am): Likewise.
1049         * modules/stdint (Makefile.am): Likewise.
1050         * modules/stdio (Makefile.am): Likewise.
1051         * modules/stdlib (Makefile.am): Likewise.
1052         * modules/string (Makefile.am): Likewise.
1053         * modules/strings (Makefile.am): Likewise.
1054         * modules/sys_file (Makefile.am): Likewise.
1055         * modules/sys_ioctl (Makefile.am): Likewise.
1056         * modules/sys_select (Makefile.am): Likewise.
1057         * modules/sys_socket (Makefile.am): Likewise.
1058         * modules/sys_stat (Makefile.am): Likewise.
1059         * modules/sys_time (Makefile.am): Likewise.
1060         * modules/sys_times (Makefile.am): Likewise.
1061         * modules/sys_utsname (Makefile.am): Likewise.
1062         * modules/sys_wait (Makefile.am): Likewise.
1063         * modules/sysexits (Makefile.am): Likewise.
1064         * modules/termios (Makefile.am): Likewise.
1065         * modules/time (Makefile.am): Likewise.
1066         * modules/unistd (Makefile.am): Likewise.
1067         * modules/wchar (Makefile.am): Likewise.
1068         * modules/wctype (Makefile.am): Likewise.
1069
1070 2010-10-04  Bruno Haible  <bruno@clisp.org>
1071
1072         read-file tests: Avoid a test failure on NonStop Kernel.
1073         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
1074         a regular file.
1075         Reported by Joachim Schmitz <schmitz@hp.com>.
1076
1077 2010-10-03  Bruno Haible  <bruno@clisp.org>
1078
1079         gnulib-tool: Fixes for --create-testdir with --libtool.
1080         * gnulib-tool (func_get_automake_snippet): Don't augment
1081         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
1082         an executable.
1083         (func_create_testdir): Handle module 'alloca' like func_import.
1084         Reported by Bruce Korb <bruce.korb@gmail.com>.
1085
1086 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
1087
1088         Avoid some lines longer than 80 characters.
1089         * lib/stdint.in.h: Break long comment lines.
1090         * lib/math.in.h: Likewise.
1091         (_GL_NUM_UINT_WORDS): New macro, for readability.
1092         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
1093         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
1094         * lib/stdlib.in.h: Likewise.
1095         * lib/spawn.in.h: Likewise.
1096         * lib/sys_socket.in.h: Update an URL.
1097         * lib/sys_stat.in.h: Break long line.
1098
1099 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
1100
1101         Improve pmccabe2html.
1102         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
1103         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
1104         when the sources change. Remove the line in the HTML about "Used
1105         ranges" (which implied that there might be other unused ranges),
1106         rename "Resume" to "Summary" (easier to understand for more users).
1107         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
1108         styles, and some unnecessary blank lines.
1109
1110 2010-10-03  Bruno Haible  <bruno@clisp.org>
1111             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1112
1113         acl: Add support for ACLs on NonStop Kernel.
1114         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
1115         Check whether the function aclsort() exists.
1116         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
1117         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
1118         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1119         (acl_nontrivial [HAVE_ACLSORT]: New function.
1120         (file_has_acl): Implement for NonStop Kernel.
1121         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1122         (qset_acl): Implement for NonStop Kernel.
1123         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
1124         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1125         (main): Implement for NonStop Kernel.
1126         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
1127         Kernel. Handle this flavor.
1128         * tests/test-set-mode-acl.sh: Likewise.
1129         * tests/test-copy-acl.sh: Likewise.
1130         * tests/test-copy-file.sh: Likewise.
1131
1132 2010-10-03  Bruno Haible  <bruno@clisp.org>
1133
1134         Info about ACLs on NonStop Kernel.
1135         * doc/acl-resources.txt: Add info about NonStop Kernel.
1136         References by Joachim Schmitz <schmitz@hp.com>.
1137
1138 2010-10-02  Bruno Haible  <bruno@clisp.org>
1139
1140         Define missing EDQUOT on NonStop Kernel.
1141         * lib/errno.in.h (EDQUOT): Assign a value if missing.
1142         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
1143         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
1144         missing.
1145         * doc/posix-headers/errno.texi: Mention the NSK bug.
1146         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
1147         Reported by Joachim Schmitz <schmitz@hp.com>.
1148
1149 2010-10-02  Bruno Haible  <bruno@clisp.org>
1150
1151         Update doc for POSIX:2008.
1152         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
1153         Update URL of POSIX specification.
1154
1155 2010-10-02  Bruno Haible  <bruno@clisp.org>
1156
1157         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
1158         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
1159         from gnulib, not from Automake.
1160
1161 2010-10-02  Bruno Haible  <bruno@clisp.org>
1162
1163         New module 'system-posix'.
1164         * modules/system-posix: New file.
1165         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
1166         module is present.
1167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1168         GNULIB_SYSTEM_POSIX.
1169         * modules/stdlib (Depends-on): Remove sys_wait.
1170         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
1171         * doc/posix-functions/system.texi: Mention the new module.
1172         * doc/posix-headers/stdlib.texi: Likewise.
1173         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
1174         define test_sys_wait_macros to a no-op.
1175         Reported by Sam Steingold <sds@gnu.org>.
1176
1177 2010-09-30  Bruno Haible  <bruno@clisp.org>
1178
1179         More renaming from 'getdate' to 'get_date'.
1180         * doc/get_date.texi: Renamed from doc/getdate.texi.
1181         * modules/get_date (Files): Update.
1182         * MODULES.html.sh (Date and time <time.h>): Update.
1183         * DEPENDENCIES: Update.
1184         * gnulib-tool: Update comment.
1185         * m4/bison.m4 (gl_BISON): Likewise.
1186         * m4/get_date.m4 (gl_GET_DATE): Likewise.
1187
1188 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
1189
1190         bootstrap: support ACLOCAL_FLAGS during aclocal
1191         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
1192         can add additional -I dir for third-party .m4 files.
1193
1194 2010-09-30  Eric Blake  <eblake@redhat.com>
1195
1196         bootstrap: use glibtoolize on MacOS
1197         * build-aux/bootstrap (check_versions): Convert libtool into
1198         libtoolize.
1199         (tool search): Move libtool check earlier, and look for
1200         glibtoolize for MacOS.
1201         (gnulib_tool_options): Auto-add --libtool when appropriate.
1202         Reported by Justin Clift.
1203
1204         poll: fix typo that broke test on MacOS
1205         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
1206         Reported by Justin Clift.
1207
1208         getdate: rename to get_date
1209         Note: getdate.h is not renamed, to minimize client impact.
1210         * modules/getdate: Mark obsolete.  Move old contents...
1211         * modules/get_date: ...to new module name.
1212         * modules/getdate-tests: Move...
1213         * modules/get_date-tests: ...here.
1214         * m4/getdate.m4: Move...
1215         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
1216         * lib/getdate.y: Move...
1217         * lib/get_date.y: ...here.
1218         * tests/test-getdate.c: Move...
1219         * tests/test-get_date.c: ...here.
1220         * doc/posix-functions/getdate.texi (getdate): Update name.
1221         * NEWS: Mention the change.
1222
1223 2010-09-29  Bruno Haible  <bruno@clisp.org>
1224
1225         Separate the module 'waitpid' from the module 'sys_wait'.
1226         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
1227         present.
1228         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
1229         gl_MODULE_INDICATOR_FOR_TESTS.
1230         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
1231         * modules/sys_wait (Depends-on): Remove waitpid.
1232         (Makefile.am): Substitute GNULIB_WAITPID.
1233         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
1234         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
1235         signature only if the 'waitpid' module is present.
1236         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
1237         * NEWS: Mention the change.
1238         * modules/grantpt (Depends-on): Add waitpid.
1239         * modules/wait-process (Depends-on): Likewise.
1240
1241 2010-09-29  Bruno Haible  <bruno@clisp.org>
1242
1243         More tests for module 'sys_wait'.
1244         * modules/sys_wait-c++-tests: New file.
1245         * tests/test-sys_wait-c++.cc: New file.
1246         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
1247         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1248
1249 2010-09-29  Bruno Haible  <bruno@clisp.org>
1250
1251         New module 'waitpid'.
1252         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
1253         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
1254         Don't include <process.h>.
1255         (waitpid): Declare only, using modern idiom.
1256         * m4/waitpid.m4: New file.
1257         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
1258         * modules/waitpid: New file.
1259         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
1260         (Makefile.am): Update.
1261         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1262
1263 2010-09-28  Bruno Haible  <bruno@clisp.org>
1264
1265         poll: Assume ANSI C.
1266         * lib/poll.c (poll): Use an ANSI C declaration.
1267
1268 2010-09-28  Bruno Haible  <bruno@clisp.org>
1269
1270         poll-h: Create poll.h on all platforms.
1271         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
1272         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
1273         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
1274         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
1275         (gl_REPLACE_POLL_H): Don't set POLL_H.
1276         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
1277         * modules/poll-h (Depends-on): Add include_next.
1278         (Makefile.am): Create poll.h unconditionally. Substitute also
1279         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
1280
1281 2010-09-28  Bruno Haible  <bruno@clisp.org>
1282
1283         Tests for module 'poll-h'.
1284         * modules/poll-h-c++-tests: New file.
1285         * tests/test-poll-h-c++.cc: New file.
1286
1287         Tests for module 'poll-h'.
1288         * modules/poll-h-tests: New file.
1289         * tests/test-poll-h.c: New file.
1290
1291 2010-09-28  Bruno Haible  <bruno@clisp.org>
1292
1293         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
1294         * modules/poll-h (Depends-on): Add 'extensions'.
1295
1296 2010-09-28  Bruno Haible  <bruno@clisp.org>
1297
1298         New module 'poll-h'.
1299         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
1300         (poll): Use modern idiom.
1301         * modules/poll-h: New file.
1302         * modules/poll (Files): Remove lib/poll.in.h.
1303         (Depends-on): Add poll-h.
1304         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
1305         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
1306         * m4/poll_h.m4: New file.
1307         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
1308         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
1309         and invoke gl_REPLACE_POLL_H.
1310         * lib/poll.c: Use common idiom.
1311         * tests/test-poll.c: Likewise.
1312         * doc/posix-headers/poll.texi: Mention the poll-h module.
1313         Suggested by Eric Blake.
1314
1315 2010-09-26  Bruno Haible  <bruno@clisp.org>
1316
1317         sys_wait: Implement WSTOPSIG.
1318         * lib/sys_wait.in.h (WSTOPSIG): New macro.
1319         Reported by Simon Josefsson.
1320
1321 2010-09-26  Simon Josefsson  <simon@josefsson.org>
1322
1323         stdlib, sys_wait: Avoid compilation error on mingw.
1324         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
1325
1326 2010-09-26  Bruno Haible  <bruno@clisp.org>
1327
1328         stdlib tests: Avoid code duplication.
1329         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
1330         * modules/sys_wait-tests (Files): Likewise.
1331         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
1332         * tests/test-stdlib.c: Include test-sys_wait.h.
1333         (main): Invoke test_sys_wait_macros.
1334         * tests/test-sys_wait.c: Include test-sys_wait.h.
1335         (main): Invoke test_sys_wait_macros.
1336
1337 2010-09-25  Simon Josefsson  <simon@josefsson.org>
1338
1339         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
1340         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
1341         sure Windows sockets are working before calling getaddrinfo.
1342         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
1343         * doc/gnulib.texi (Windows sockets): Fix typo.
1344
1345 2010-09-25  Bruno Haible  <bruno@clisp.org>
1346
1347         Tests for module 'regex-quote'.
1348         * modules/regex-quote-tests: New file.
1349         * tests/test-regex-quote.c: New file.
1350
1351         New module 'regex-quote'.
1352         * lib/regex-quote.h: New file.
1353         * lib/regex-quote.c: New file.
1354         * modules/regex-quote: New file.
1355         Suggested by Reuben Thomas <rrt@sc3d.org>.
1356
1357 2010-09-24  Bruno Haible  <bruno@clisp.org>
1358
1359         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
1360         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
1361
1362 2010-09-23  Bruno Haible  <bruno@clisp.org>
1363
1364         setenv: Relax license.
1365         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
1366         Blake.
1367         Requested by Eric Blake.
1368
1369 2010-09-22  Bruno Haible  <bruno@clisp.org>
1370
1371         termios: Relax license.
1372         * modules/termios (License): Change to LGPLv2+.
1373         Requested by Eric Blake.
1374
1375 2010-09-22  Bruno Haible  <bruno@clisp.org>
1376
1377         threadlib: Allow the package to change the default to 'no'.
1378         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
1379         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
1380         Reported by Paul Eggert.
1381
1382 2010-09-22  Pádraig Brady  <P@draigbrady.com>
1383             Bruno Haible  <bruno@clisp.org>
1384
1385         Fix endless loop in mbmemcasecoll.
1386         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
1387         byte.
1388         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
1389
1390 2010-09-22  Bruno Haible  <bruno@clisp.org>
1391
1392         Tests for module 'memcoll'.
1393         * modules/memcoll-tests: New file.
1394         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
1395
1396         memcoll, xmemcoll: Clarify size vs. length.
1397         * modules/memcoll.c (memcoll0): Clarify specification.
1398         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
1399         passed to collate_error.
1400
1401 2010-09-22  Bruno Haible  <bruno@clisp.org>
1402
1403         Tests for module 'memcasecmp'.
1404         * modules/memcasecmp-tests: New file.
1405         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
1406
1407 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1408
1409         * lib/pthread.in.h: Add split double-inclusion guard, and include
1410         system <pthread.h> if there is one.  Use @@-style as in other
1411         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
1412         pthread.h doesn't.
1413         (pthread_mutexattr_destroy, pthread_mutexattr_init):
1414         (pthread_mutexattr_settype, pthread_mutex_trylock):
1415         New static inline functions, if there's no system <pthread.h>.
1416         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
1417         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
1418         Approximate with mutexes if the system lacks spinlocks, as in
1419         MacOS.
1420         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
1421         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
1422         @@-style.  Check for spinlocks separately.
1423         (gl_PTHREAD_DEFAULTS): New macro.
1424         * modules/pthread: Redo to use a more typical style for in.h files.
1425
1426 2010-09-21  Eric Blake  <eblake@redhat.com>
1427
1428         net_if: enhance tests
1429         * tests/test-net_if.c (main): Move signature checks earlier.
1430         Print failures to stderr.
1431         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
1432         Document the bug that we do not yet fix.
1433
1434 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1435
1436         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
1437         about gnulib, not GSS.
1438
1439 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1440
1441         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
1442         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
1443         for Emacs.
1444         * build-aux/pmccabe2html: Make Makefile.am example code more
1445         cut-and-paste friendly.
1446
1447 2010-09-21  Simon Josefsson  <simon@josefsson.org>
1448
1449         * tests/test-net_if.c: New file.
1450         * modules/net_if-tests: New file.
1451
1452 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1453
1454         pthread: add pthread_spin_destroy
1455         * lib/pthread.in.h (pthread_spin_destroy): New function.
1456
1457 2010-09-19  Bruno Haible  <bruno@clisp.org>
1458
1459         gnulib-tool: Fix --help output.
1460         * gnulib-tool (func_usage): Fix help message.
1461         Reported by Reuben Thomas <rrt@sc3d.org>.
1462
1463 2010-09-18  Jim Meyering  <meyering@redhat.com>
1464
1465         maint.mk: avoid unexpanded \n in two diagnostics
1466         * top/maint.mk (sc_prohibit_always_true_header_tests):
1467         Don't use a literal \n in a halt=... assignment.  It would not be
1468         expanded, and the two \n bytes would appear in the diagnostic output
1469         rather than the desired newline.  Use halt=$$(printf ... instead.
1470         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
1471
1472 2010-09-18  Bruno Haible  <bruno@clisp.org>
1473
1474         netinet_in: Doc tweak.
1475         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
1476         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1477
1478 2010-09-18  Jim Meyering  <meyering@redhat.com>
1479
1480         init.sh: correct an outdated comment
1481         * tests/init.sh (create_exe_shims_):  s/function/alias/
1482
1483         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
1484         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
1485         a file named "*.exe" is removed between the glob expansion and the
1486         processing of that oddly named file.
1487
1488 2010-09-17  Eric Blake  <eblake@redhat.com>
1489
1490         mirbsd: add some more support
1491         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
1492         in BSD family.
1493         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
1494         devices as OpenBSD.
1495         * m4/host-os.m4 (mirbsd): Add MirBSD.
1496
1497         tests: fix unportable assumption on sys/wait.h
1498         * tests/test-sys_wait.c (main): Relax test.
1499         * tests/test-stdlib.c (main): Likewise.
1500
1501         init.sh: accomodate directory with no .exes
1502         * tests/init.sh: Accomodate directory containing only scripts.
1503
1504         tests: avoid compiler warning
1505         * tests/test-stdlib.c (main): Use the variable.
1506
1507         fdutimens, fdutimensat: update signature, again
1508         * lib/utimens.h (gl_futimens): Delete, and move signature...
1509         (fdutimens): ...here.
1510         (fdutimensat): Rearrange signature.
1511         (lutimensat): Rename variable for clarity.
1512         * lib/fdutimensat.c (fdutimensat): Update signature.
1513         * lib/utimens.c (fdutimens): Likewise.
1514         (gl_futimens): Delete.
1515         (utimens, lutimens): Update callers.
1516         * lib/futimens.c (futimens): Likewise.
1517         * tests/test-fdutimensat.c: Likewise.
1518         * tests/test-utimens.c: Likewise.
1519         * tests/test-futimens.h: Update comment.
1520         * NEWS: Mention this.
1521         Suggested by Paul Eggert.
1522
1523 2010-09-17  Bruno Haible  <bruno@clisp.org>
1524
1525         Take over the maintenance of some older macros from Autoconf.
1526         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
1527         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
1528         GNU Autoconf.
1529         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
1530         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
1531
1532 2010-09-17  Eric Blake  <eblake@redhat.com>
1533
1534         fdutimensat: drop atflag validation
1535         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
1536         with valid fd, to close a race scenario where futimens is
1537         unsupported and FILE was replaced by a symlink.
1538         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
1539         accordingly.
1540         Suggested by Paul Eggert.
1541
1542 2010-09-16  Bruno Haible  <bruno@clisp.org>
1543
1544         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
1545         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
1546
1547 2010-09-16  Bruno Haible  <bruno@clisp.org>
1548
1549         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
1550         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
1551         login_tty exists.
1552         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1553
1554 2010-09-16  Bruno Haible  <bruno@clisp.org>
1555
1556         login_tty: Make the replacement code work on BSD systems.
1557         * lib/login_tty.c: Include <sys/ioctl.h>.
1558         (login_tty): Use ioctl TIOCSCTTY when available.
1559         * modules/login_tty (Depends-on): Add sys_ioctl.
1560         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1561
1562 2010-09-16  Bruno Haible  <bruno@clisp.org>
1563
1564         login_tty: Stricter unit test.
1565         * modules/login_tty-tests (Depends-on): Add tcgetsid.
1566         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
1567         and tcgetsid() after login_tty.
1568         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1569
1570 2010-09-16  Bruno Haible  <bruno@clisp.org>
1571
1572         New module 'tcgetsid'.
1573         * lib/tcgetsid.c: New file.
1574         * m4/tcgetsid.m4: New file.
1575         * modules/tcgetsid: New file.
1576         * modules/termios (Depends-on): Add c++defs, warn-on-use.
1577         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
1578         GNULIB_TCGETSID, HAVE_TCGETSID.
1579         * lib/termios.in.h: Include <sys/types.h>.
1580         (tcgetsid): New declaration.
1581         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
1582         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
1583         * doc/posix-functions/tcgetsid.texi: Mention the new module.
1584         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
1585
1586 2010-09-16  Bruno Haible  <bruno@clisp.org>
1587
1588         Tests for module 'termios'.
1589         * modules/termios-c++-tests: New file.
1590         * modules/termios-tests: New file.
1591         * tests/test-termios-c++.cc: New file.
1592         * tests/test-termios.c: New file.
1593
1594         New module 'termios'.
1595         * modules/termios: New file.
1596         * lib/termios.in.h: New file.
1597         * m4/termios_h.m4: New file.
1598         * doc/posix-headers/termios.texi: Mention the new module.
1599
1600 2010-09-16  Eric Blake  <eblake@redhat.com>
1601
1602         fdutimensat: add an atflag parameter
1603         * lib/fdutimensat.c (fdutimensat): Add new parameter.
1604         * lib/utimens.h (fdutimensat): Update prototype.
1605         * tests/test-fdutimensat.c: Adjust test to match.
1606         * NEWS: Document the change.
1607         Suggested by Paul Eggert.
1608
1609 2010-09-16  Bruno Haible  <bruno@clisp.org>
1610
1611         Fix typos in comments.
1612         * lib/striconveh.h: Fix typo in comment.
1613         * lib/login_tty.c (login_tty): Likewise.
1614
1615 2010-09-15  Bruno Haible  <bruno@clisp.org>
1616
1617         stdlib: clarify MirBSD WEXITSTATUS bug
1618         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
1619         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1620
1621 2010-09-15  Eric Blake  <eblake@redhat.com>
1622
1623         stdlib: work around MirBSD WEXITSTATUS bug
1624         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
1625         * modules/stdlib (Depends-on): Add sys_wait.
1626         * tests/test-sys_wait.c (main): Enhance test.
1627         * tests/test-stdlib.c (main): Likewise.
1628         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
1629
1630         docs: mention MacOS issue with WEXITSTATUS(constant)
1631         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
1632         issue.
1633         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1634
1635         strnlen: add tests
1636         * modules/strnlen-tests: New file.
1637         * tests/test-strnlen.c: Likewise.
1638
1639 2010-09-14  Bruno Haible  <bruno@clisp.org>
1640
1641         unistr/base: Avoid link errors when module 'libunistring' is also used.
1642         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
1643         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
1644         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
1645         Declare also when HAVE_LIBUNISTRING is set.
1646         Reported by Pádraig Brady <P@draigbrady.com>.
1647
1648 2010-09-14  Eric Blake  <eblake@redhat.com>
1649
1650         test-rawmemchr: make more robust
1651         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
1652         (Depends-on, configure.ac): Add needed prerequisites to use it.
1653         * modules/memchr-tests (Files, Depends-on, configure.ac):
1654         Likewise, to avoid implicit reliance on memchr module prereqs.
1655         * tests/test-memchr.c (main): Ensure proper masking.
1656         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
1657         reads.
1658
1659         memchr: detect glibc Alpha bug
1660         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
1661         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
1662         Alpha.
1663         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
1664         * tests/test-memchr.c (main): Enhance test.
1665         Reported by Nelson H. F. Beebe.
1666
1667 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1668
1669         fts, getcwd, glob: audit for dirfd returning -1
1670         * lib/fts.c (opendir): Remove #define; no longer used.
1671         (opendirat): New arg PDIR_FD.  All callers changed.
1672         (fts_build, _opendir2): Use new opendirat to avoid the need for
1673         dirfd, or for checking whether dirfd returns a negative value.
1674         Don't use opendir; always use openat followed by fdopendir.
1675         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
1676         it.
1677         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
1678         returns -1 here.
1679         * modules/fts (Depends-on): Remove dirfd.
1680         * modules/getcwd (Depends-on): Likewise.
1681
1682 2010-09-13  Eric Blake  <eblake@redhat.com>
1683
1684         float: fix broken MirBSD header
1685         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
1686         * doc/posix-headers/float.texi (float.h): Document it.
1687
1688 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1689
1690         fts: use O_NOFOLLOW to avoid race condition when opening a directory
1691         * lib/fts.c (opendirat): New arg extra_flags.
1692         (__opendir2): Use it to avoid following symlinks when opening
1693         a directory, if symlinks are not supposed to be followed.  See
1694         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
1695
1696         fdopendir: preserve argument fd before returning
1697         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
1698         (fdopendir_with_dup, fd_clone_opendir): New static functions.
1699         (fdopendir): Use them, arranging for FD to be open to the same
1700         directory that it was when it started.  (It might be temporarily
1701         closed while fdopendir is running, so this not thread- or
1702         signal-safe.)  Be careful to do the right thing even when file
1703         descriptors are scarce and dup fails with errno == EMFILE.  See
1704         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
1705
1706 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
1707
1708         regex: Pass the system regex if its only problem is 32-bit regoff_t.
1709         * NEWS: Document change.
1710         * m4/regex.m4: Disable test for regoff_t size.
1711
1712 2010-09-13  Jim Meyering  <meyering@redhat.com>
1713
1714         fts: don't operate on an invalid file descriptor after failed dup
1715         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
1716         negative file descriptor.
1717
1718 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
1719
1720         savedir: add streamsavedir, deprecate fdsavedir
1721         * NEWS: Mention deprecation of fdsavedir.
1722         * lib/savedir.c (streamsavedir): New extern function, whose name
1723         ends in "savedir" to be consistent with the others.  This differs
1724         from savedirstream in that it doesn't close its argument.  The
1725         next version of GNU tar will use this instead of fdsavedir, to
1726         avoid some race conditions and conserve file descriptors.
1727         (savedirstream): Reimplement as a wrapper around streamsavedir.
1728         (fdsavedir): Add a comment deprecating this function.  As far as
1729         I know, only GNU tar used it, and GNU tar doesn't need it any more.
1730         * lib/savedir.h (streamsavedir): New decl.
1731         (fdsavedir): Add a comment deprecating this.
1732
1733 2010-09-10  Bruno Haible  <bruno@clisp.org>
1734
1735         langinfo: Fix last commit.
1736         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
1737         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
1738         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1739
1740 2010-09-10  Bruno Haible  <bruno@clisp.org>
1741
1742         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
1743         * lib/progreloc.c (O_EXEC): Define fallback.
1744
1745 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1746
1747         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
1748         * NEWS: Document recent changes to fcntl-h.
1749         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
1750         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
1751         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
1752         Similarly for O_SEARCH; this last was already true, but not documented.
1753         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
1754         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
1755         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
1756         Likewise.
1757         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
1758         is zero, not whether it is defined.
1759         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
1760         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
1761         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
1762
1763 2010-09-10  Bruno Haible  <bruno@clisp.org>
1764
1765         langinfo, nl_langinfo: Fix for IRIX 5.3.
1766         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
1767         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
1768         HAVE_LANGINFO_YESEXPR.
1769         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
1770         HAVE_LANGINFO_YESEXPR.
1771         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
1772         HAVE_LANGINFO_T_FMT_AMPM is 0.
1773         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
1774         HAVE_LANGINFO_YESEXPR is 0.
1775         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
1776         NOEXPR.
1777         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
1778         * doc/posix-functions/nl_langinfo.texi: Likewise.
1779         Reported by Eric Blake.
1780
1781 2010-09-10  Bruno Haible  <bruno@clisp.org>
1782
1783         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
1784         * doc/glibc-functions/login_tty.texi: Mention the include file problem
1785         on FreeBSD 8.0 and OpenBSD 4.6.
1786         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
1787         * m4/pty_h.m4 (gl_PTY_H): Likewise.
1788         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
1789         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
1790         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
1791         ac_includes_default.
1792         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1793
1794 2010-09-09  Eric Blake  <eblake@redhat.com>
1795
1796         strsignal: work around NetBSD bug
1797         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
1798         * lib/string.in.h (includes): Likewise.
1799         * doc/posix-functions/strsignal.texi (strsignal): Document the
1800         bug.
1801         Reported by Nelson H. F. Beebe.
1802
1803         gnulib-tool: work with NetBSD /bin/sh
1804         * gnulib-tool (func_cache_var, func_cache_lookup_module)
1805         (func_get_description, func_get_comment, func_get_status)
1806         (func_get_notice, func_get_applicability, func_get_filelist)
1807         (func_get_dependencies, func_get_autoconf_early_snippet)
1808         (func_get_autoconf_snippet, func_get_automake_snippet)
1809         (func_get_include_directive, func_get_link_directive)
1810         (func_get_license, func_get_maintainer, func_import): Avoid
1811         shell syntax errors from parsing syntax extensions.
1812
1813 2010-09-09  Bruno Haible  <bruno@clisp.org>
1814
1815         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1816         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
1817         a reliable way to determine whether the 'alias' command works.
1818
1819 2010-09-08  Jim Meyering  <meyering@redhat.com>
1820
1821         init.sh: penalize a set-x-impaired shell; don't disqualify it
1822         * tests/init.sh: Too many shells corrupt application stderr when
1823         you set -x, so we can't afford to disqualify them, since at least
1824         on Irix-6.5, that would disqualify all bourne shells.
1825         Instead, use a two-pass approach.
1826         On the first pass, try to find a shell that meets the stricter
1827         condition that set -x does not corrupt stderr.
1828         If no shell meets the stricter condition, retest each candidate
1829         shell, but without that extra condition.  Finally, when
1830         VERBOSE=yes is requested and set -x might cause trouble, simply
1831         issue a warning and refrain from enabling debug output.
1832
1833 2010-09-08  Eric Blake  <eblake@redhat.com>
1834
1835         unsetenv: fix OpenBSD bug
1836         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
1837         * doc/posix-functions/unsetenv.texi (unsetenv): Update
1838         documentation.
1839         Reported by Jim Meyering.
1840
1841         strtod: work around IRIX 6.5 bug
1842         * lib/strtod.c (strtod): Reparse number on shorter string if
1843         exponent parse was invalid.
1844         * tests/test-strtod.c (main): Add check for "0x1p 2".
1845         Reported by Tom G. Christensen.
1846
1847         getopt: optimize previous patch
1848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
1849         empty variable.  Speed up awk script.
1850         Reported by Paolo Bonzini.
1851
1852 2010-09-08  Jim Meyering  <meyering@redhat.com>
1853
1854         test.sh: disqualify shells for which set -x corrupts stderr
1855         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
1856         and OpenBSD 4.7.  They make it so with "set -x", environment settings
1857         appear in stderr output.  For example, this command:
1858             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
1859         prints "P=1" on those two systems:
1860
1861 2010-09-08  Bruno Haible  <bruno@clisp.org>
1862
1863         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1864         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
1865         commands, because some shells ignore redirections when there is an
1866         error in the command lookup.
1867         Reported by Eric Blake.
1868
1869 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
1870
1871         * lib/regex.h: Fix a mention of `regex_compile' (should be
1872         `re_compile_pattern').
1873         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
1874         (re_set_registers): Correct name of parameter in comment.
1875
1876         * doc/regex.texi: Add documentation for missing syntax flags.
1877         Remove commented-out documentation of defunct syntax option
1878         RE_NO_EMPTY_ALTS.
1879         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
1880         Add documentation of re_set_registers.
1881         Document trick to re-use a pattern buffer by setting fastmap manually.
1882         Update documentation of struct re_pattern_buffer per public members.
1883         Uncomment documentation of equivalence class operators and
1884         collating symbol operators, since they are now implemented,
1885         Explain leftmost-longest matching in relation to alternatives.
1886         Tidy documentation of substring matching.
1887         Remove POSIX documentation, which is done better in
1888         glibc, and refer the reader there. Keep BSD API documentation, as
1889         that is not readily available elsewhere.
1890
1891 2010-09-07  Eric Blake  <eblake@redhat.com>
1892
1893         getopt: handle POSIXLY_CORRECT set but not exported
1894         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
1895         export state of POSIXLY_CORRECT, due to bash set -o posix.
1896         Reported by Dustin J. Mitchell.
1897
1898 2010-09-05  Bruno Haible  <bruno@clisp.org>
1899
1900         gnulib-tool: Highlight the changed options.
1901         * gnulib-tool (func_usage): Display the --import, --add-import,
1902         --remove-import explanations in bold font.
1903
1904 2010-09-06  Karl Berry  <karl@gnu.org>
1905
1906         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
1907
1908 2010-09-05  Bruno Haible  <bruno@clisp.org>
1909
1910         uniwidth/width: Update comment.
1911         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
1912         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
1913
1914 2010-09-05  Bruno Haible  <bruno@clisp.org>
1915
1916         isinf, isnan: Relax license.
1917         * modules/isinf (License): Change from GPL to LGPL, with consent from
1918         Ben Pfaff.
1919         * modules/isnan (License): Likewise.
1920         Requested by Ludovic Courtès.
1921
1922 2010-09-04  Bruno Haible  <bruno@clisp.org>
1923
1924         gnulib-tool: Help migration from --import to --add-import or --update.
1925         * gnulib-tool: Emit a verbose error message when --import is used
1926         without any module name.
1927
1928 2010-09-04  Bruno Haible  <bruno@clisp.org>
1929
1930         Update doc about gnulib-tool.
1931         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
1932         'gnulib-tool --update' in more detail.
1933         Reported by Eric Blake.
1934
1935 2010-09-04  Bruno Haible  <bruno@clisp.org>
1936
1937         gnulib-tool: Change --import. New options --add/remove-import.
1938         * gnulib-tool: New options --add-import, --remove-import.
1939         (func_usage): Document them.
1940         (have_associative): Define always.
1941         (func_import): In import mode, don't merge the specified settings with
1942         the cached settings. Implement remove-import mode.
1943         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
1944         Explain when to use them versus --import.
1945         (Simple update): Use --add-import instead of --import.
1946         * NEWS: Mention the change.
1947
1948 2010-09-04  Bruno Haible  <bruno@clisp.org>
1949
1950         * doc/gnulib-tool.texi (Initial import): Update paragraph about
1951         separate gnulib.mk.
1952
1953 2010-09-04  Bruno Haible  <bruno@clisp.org>
1954
1955         gnulib-tool: Don't talk about CVS any more.
1956         * gnulib-tool (func_usage, func_import): Write "version control"
1957         instead of CVS.
1958
1959 2010-09-04  Jim Meyering  <meyering@redhat.com>
1960
1961         maint.mk: avoid obscure sc_copyright_check failure in coreutils
1962         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
1963         false positives (whose names may be ill-chosen) when searching
1964         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
1965         would cause a false-positive.
1966
1967         avoid coreutils "make distcheck" failure
1968         Coreutils tests with an absolute build directory name that contains
1969         a space.  Not quoting this directory name caused a failure.
1970         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
1971         * tests/test-vc-list-files-cvs.sh: Likewise.
1972
1973 2010-09-04  Bruno Haible  <bruno@clisp.org>
1974
1975         gnulib-tool: Avoid error when run in a package without Makefile.am.
1976         * gnulib-tool: When collecting the m4dirs in a package that does not
1977         have a Makefile.am, eliminate those directories that contain no
1978         gnulib-cache.m4. Fix expression that counts these directories.
1979
1980 2010-09-04  Bruno Haible  <bruno@clisp.org>
1981
1982         update-copyright test: Improve output when perl is missing or too old.
1983         * tests/test-update-copyright.sh: Move test of Perl version down after
1984         the test whether Perl exists. Provide an explanation relating Perl's
1985         error message to Automake's SKIP: message.
1986
1987 2010-09-04  Bruno Haible  <bruno@clisp.org>
1988
1989         Don't augment PATH in TESTS_ENVIRONMENT.
1990         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
1991         set abs_aux_dir instead of augmenting PATH.
1992         * modules/vc-list-files-tests (Makefile.am): Likewise.
1993         * tests/test-update-copyright.sh: Augment PATH here.
1994         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
1995         path_prepend_.
1996         * tests/test-vc-list-files-git.sh: Likewise.
1997
1998 2010-09-04  Jim Meyering  <meyering@redhat.com>
1999
2000         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
2001         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
2002
2003 2010-09-04  Bruno Haible  <bruno@clisp.org>
2004
2005         strdup: Fix compilation error in C++ mode.
2006         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
2007         the macro.
2008
2009 2010-09-04  Bruno Haible  <bruno@clisp.org>
2010
2011         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
2012         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
2013         macro into a function.
2014         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2015
2016 2010-09-04  Bruno Haible  <bruno@clisp.org>
2017
2018         Set PATH_SEPARATOR the same way autoconf does.
2019         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
2020         the value of PATH_SEPARATOR the same way autoconf-generated configure
2021         scripts do.
2022         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
2023         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
2024
2025 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2026
2027         Set PATH_SEPARATOR the same way autoconf does.
2028         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
2029         the same way autoconf-generated configure scripts do.
2030         * posix-modules: Likewise.
2031
2032 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2033
2034         hash: fix safe_hasher const typo
2035         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
2036         const; otherwise, there is a type error later.
2037
2038 2010-09-02  Jim Meyering  <meyering@redhat.com>
2039
2040         test-update-copyright.sh: require perl 5.8.0
2041         * tests/test-update-copyright.sh: Require 5.8.0,
2042         which Tom G. Christensen has confirmed is adequate,
2043         while 5.6.1 is not.
2044
2045 2010-09-02  Eric Blake  <eblake@redhat.com>
2046
2047         tests: init.sh improvements for re-exec'ing with zsh
2048         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
2049         -vx through shell re-exec.
2050         Reported by Tom G. Christensen.
2051
2052         wctype: fix typo in previous commit
2053         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
2054         Reported by Ludovic Courtès.
2055
2056 2010-09-02  Jim Meyering  <meyering@redhat.com>
2057
2058         test-update-copyright.sh: skip test if Perl is too old
2059         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
2060         Reported by Tom G. Christensen.
2061
2062 2010-09-02  Bruno Haible  <bruno@clisp.org>
2063
2064         wctype: Avoid compilation error on IRIX 6.5.30.
2065         * lib/wctype.in.h (iswblank): Declare with a replacement if
2066         REPLACE_ISWBLANK is set.
2067         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
2068         declared. Set REPLACE_ISWBLANK.
2069         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
2070         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
2071         * doc/posix-headers/wctype.texi: Likewise.
2072         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2073
2074 2010-09-01  Bruno Haible  <bruno@clisp.org>
2075
2076         New module 'socketlib'.
2077         * modules/socketlib: New file.
2078         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
2079         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
2080         * modules/sockets (Depends-on): Add socketlib.
2081         Suggested by Sam Steingold <sds@gnu.org>.
2082
2083 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2084
2085         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
2086
2087         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
2088         when one needs search access to a directory but not read access.
2089         On systems where it is available, it works in some cases where
2090         O_RDONLY does not, namely on directories that are searchable but
2091         not readable, and which need only to be searchable.  If O_SEARCH
2092         is not available, fall back to the traditional method of using
2093         O_RDONLY.
2094
2095         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
2096         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
2097         when opening a directory that needs only to be searchable.
2098         * lib/chdir-safer.c (chdir_no_follow): Likewise.
2099         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
2100         * lib/openat-proc.c (openat_proc_name): Likewise.
2101         * lib/openat.c (openat_needs_fchdir): Likewise.
2102         * lib/save-cwd.c (save_cwd): Likewise.
2103         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
2104
2105 2010-08-28  Bruno Haible  <bruno@clisp.org>
2106
2107         New module 'host-cpu-c-abi'.
2108         * modules/host-cpu-c-abi: New file.
2109         * m4/host-cpu-c-abi.m4: New file, based on part of
2110         clisp/src/m4/general.m4.
2111         Requested by Sam Steingold <sds@gnu.org>.
2112
2113 2010-08-31  Eric Blake  <eblake@redhat.com>
2114         and Jim Meyering  <meyering@redhat.com>
2115
2116         hash: factor, and guard against misbehaving hasher function
2117         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
2118         of table->hasher's return value.  Also protect against a hash value
2119         so large that adding it to table->bucket results in a NULL pointer.
2120         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
2121         Use it in place of open-coded check-and-abort.
2122
2123 2010-08-30  Bruno Haible  <bruno@clisp.org>
2124
2125         hash: silence spurious clang warning
2126         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
2127         Reported by Eric Blake.
2128
2129 2010-08-30  Eric Blake  <eblake@redhat.com>
2130
2131         strstr, memmem, strcasestr: avoid leaked shell message
2132         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
2133         FreeBSD.
2134         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2135         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2136
2137         tests: silence clang warning
2138         * tests/test-malloca.c (do_allocation): Avoid dead store.
2139
2140 2010-08-29  Bruno Haible  <bruno@clisp.org>
2141
2142         gettext: Fix recent mistake.
2143         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
2144
2145 2010-08-29  Bruno Haible  <bruno@clisp.org>
2146
2147         selinux-h: Offer a --without-selinux option.
2148         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
2149         --without-selinux was specified, skip all tests and define
2150         HAVE_SELINUX_SELINUX_H to 0.
2151         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
2152         set LIB_SELINUX to empty.
2153         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
2154         gl_LIBSELINUX. If --without-selinux was specified, replace
2155         selinux/context.h.
2156         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
2157
2158 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2159             Bruno Haible  <bruno@clisp.org>
2160
2161         Make the module 'realloc-gnu' work again on AIX and OSF/1.
2162         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
2163         of HAVE_REALLOC.
2164         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
2165         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
2166         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
2167         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2168
2169 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2170             Bruno Haible  <bruno@clisp.org>
2171
2172         Make the module 'calloc-gnu' work again on AIX and OSF/1.
2173         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
2174         HAVE_CALLOC.
2175         * lib/xmalloc.c: Update accordingly.
2176         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
2177         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
2178         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2179
2180 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2181             Bruno Haible  <bruno@clisp.org>
2182
2183         Make the module 'malloc-gnu' work again on AIX and OSF/1.
2184         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
2185         HAVE_MALLOC.
2186         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
2187         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
2188         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2189
2190 2010-08-29  Bruno Haible  <bruno@clisp.org>
2191
2192         Update modules list.
2193         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
2194         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
2195         (String handling <string.h>): Add astrxfrm.
2196         (File system functions): Add readlinkat.
2197
2198 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2199
2200         Tests for module 'realloc-gnu'.
2201         * modules/realloc-gnu-tests: New file.
2202         * tests/test-realloc-gnu.c: New file.
2203
2204         Tests for module 'calloc-gnu'.
2205         * modules/calloc-gnu-tests: New file.
2206         * tests/test-calloc-gnu.c: New file.
2207
2208         Tests for module 'malloc-gnu'.
2209         * modules/malloc-gnu-tests: New file.
2210         * tests/test-malloc-gnu.c: New file.
2211
2212 2010-08-28  Bruno Haible  <bruno@clisp.org>
2213
2214         Rename module 'realloc' -> 'realloc-gnu'.
2215         * modules/realloc-gnu: New file, copied from modules/realloc.
2216         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
2217         obsolete.
2218         * modules/mgetgroups (Depends-on): Update.
2219         * doc/posix-functions/realloc.texi: Update.
2220         * NEWS: Mention the change.
2221
2222         Rename module 'calloc' -> 'calloc-gnu'.
2223         * modules/calloc-gnu: New file, copied from modules/calloc.
2224         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
2225         obsolete.
2226         * doc/posix-functions/calloc.texi: Update.
2227         * NEWS: Mention the change.
2228
2229         Rename module 'malloc' -> 'malloc-gnu'.
2230         * modules/malloc-gnu: New file, copied from modules/malloc.
2231         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
2232         obsolete.
2233         * modules/argp (Depends-on): Update.
2234         * modules/regex (Depends-on): Update.
2235         * doc/posix-functions/malloc.texi: Update.
2236         * NEWS: Mention the change.
2237
2238 2010-08-28  Eric Blake  <eblake@redhat.com>
2239
2240         pread, pwrite: add missing dependency
2241         * modules/pread (Depends-on): Add extensions.
2242         * modules/pwrite (Depends-on): Likewise.
2243
2244 2010-08-28  Bruno Haible  <bruno@clisp.org>
2245
2246         unistr/u*-strchr: Fix tests dependencies.
2247         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
2248         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
2249         Reported by Ian Beckwith <ianb@erislabs.net>.
2250
2251 2010-08-28  Bruno Haible  <bruno@clisp.org>
2252
2253         read-file: Don't occupy too much unused memory.
2254         * lib/read-file.c (fread_file): Shrink the buffer at the end.
2255
2256 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
2257             Eric Blake  <eblake@redhat.com>
2258             Bruno Haible  <bruno@clisp.org>
2259
2260         read-file: Avoid memory reallocations with regular files.
2261         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
2262         (fread_file): With regular files, use the remaining length as the
2263         initial buffer size.  Check against overflow.
2264         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
2265         sys_stat.
2266
2267 2010-08-28  Bruno Haible  <bruno@clisp.org>
2268
2269         ftello: Relax license.
2270         * modules/ftello (License): Relax to LGPLv2+.
2271         Reported by Eric Blake.
2272
2273 2010-08-28  Bruno Haible  <bruno@clisp.org>
2274
2275         Avoid relocwrapper link errors due to gnulib replacement functions.
2276         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
2277         function.
2278         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2279
2280 2010-08-28  Bruno Haible  <bruno@clisp.org>
2281
2282         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
2283         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
2284         defined.
2285         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
2286         Suggested by Eric Blake.
2287
2288 2010-08-28  Bruno Haible  <bruno@clisp.org>
2289
2290         sys_socket, netdb: Ensure socklen_t gets defined.
2291         * modules/sys_socket (Depends-on): Add socklen.
2292         * modules/netdb (Depends-on): Likewise.
2293         * modules/getaddrinfo (Depends-on): Remove socklen.
2294         * modules/getsockopt (Depends-on): Likewise.
2295         * modules/setsockopt (Depends-on): Likewise.
2296         * tests/test-sys_socket.c: Check that socklen_t is defined.
2297         * tests/test-netdb.c: Likewise.
2298         * m4/socklen.m4: Update comments.
2299         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2300
2301 2010-08-27  Eric Blake  <eblake@redhat.com>
2302
2303         login_tty: add missing dependency
2304         * modules/login_tty (Depends-on): Add pty.
2305
2306 2010-08-26  Eric Blake  <eblake@redhat.com>
2307
2308         lib-symbol-versions: fix m4 quoting
2309         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
2310         format for AC_LINK_IFELSE.
2311
2312         glob: fix compile test
2313         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
2314
2315         btowc: fix missing file
2316         * modules/btowc (Files): Also ship locale-fr.m4.
2317
2318         lseek: fix link test
2319         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
2320         AC_LINK_IFELSE.
2321
2322         include_next: silence autoconf 2.68 warning
2323         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
2324         AC_COMPILE_IFELSE as special.
2325         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
2326         autoconf < 2.68.
2327
2328         acl: fix compilation test
2329         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
2330         AC_COMPILE_IFELSE.
2331
2332 2010-08-26  Bruno Haible  <bruno@clisp.org>
2333
2334         Modernize AC_TRY_RUN invocations.
2335         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
2336         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2337         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
2338         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
2339         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
2340         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2341         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2342         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2343         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2344         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2345         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2346         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2347         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2348         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2349         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2350         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2351         gl_MBRLEN_NUL_RETVAL): Likewise.
2352         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2353         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
2354         Likewise.
2355         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2356         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2357         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2358         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2359         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
2360         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
2361         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
2362         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2363         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
2364         Likewise.
2365         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
2366         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
2367         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2368         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2369         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2370         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2371         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2372         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
2373         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2374         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2375
2376 2010-08-26  Bruno Haible  <bruno@clisp.org>
2377
2378         Modernize AC_TRY_LINK invocations.
2379         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
2380         AC_TRY_LINK.
2381         * m4/argp.m4 (gl_ARGP): Likewise.
2382         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2383         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2384         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
2385         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
2386         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
2387         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
2388         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2389         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2390         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
2391         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
2392         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
2393         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
2394         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
2395         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2396         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
2397         * m4/hostent.m4 (gl_HOSTENT): Likewise.
2398         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2399         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
2400         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
2401         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
2402         Likewise.
2403         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
2404         Likewise.
2405         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
2406         Likewise.
2407         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
2408         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
2409         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
2410         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2411         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2412         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
2413         * m4/servent.m4 (gl_SERVENT): Likewise.
2414         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2415         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2416         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2417         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2418         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2419         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2420         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2421         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2422         * modules/tsearch-tests (configure.ac): Likewise.
2423
2424 2010-08-26  Bruno Haible  <bruno@clisp.org>
2425
2426         Modernize AC_TRY_COMPILE invocations.
2427         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
2428         AC_TRY_COMPILE.
2429         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
2430         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
2431         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
2432         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
2433         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
2434         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
2435         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2436         * m4/lock.m4 (gl_LOCK): Likewise.
2437         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
2438         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2439         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
2440         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2441         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
2442         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
2443         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
2444         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
2445         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
2446         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
2447         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
2448         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
2449         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
2450         extraneous semicolon.
2451
2452 2010-08-26  Jim Meyering  <meyering@redhat.com>
2453
2454         stat-time: relax license LGPL
2455         * modules/stat-time (License): Change from GPL to LGPL,
2456         with consent from all contributors, for use in libguile.
2457         Requested by Ludovic Courtès.
2458
2459 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
2460
2461         poll: return immediately on POLLHUP.
2462         * lib/poll.c (poll): Always set timeout before wait_timeout is
2463         computed.
2464
2465 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2466
2467         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
2468         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
2469         rmdir ("dir/.//"), unlinkat.
2470
2471 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2472
2473         stdbool: avoid spurious failure with modern xlc
2474         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2475
2476 2010-08-24  Bruno Haible  <bruno@clisp.org>
2477
2478         getloadavg: simplify code
2479         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
2480         gl_have_func. Update comments.
2481
2482 2010-08-24  Eric Blake  <eblake@redhat.com>
2483
2484         getloadavg: don't define SVR4 on cygwin
2485         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
2486         only define SVR4 when -lkvm is required.
2487         Reported by Yaakov Selkowitz.
2488
2489 2010-08-24  Bruno Haible  <bruno@clisp.org>
2490
2491         priv-set: fix comment
2492         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
2493
2494 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2495
2496         priv-set: fix comments
2497         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
2498         to match code, as suggested by David Bartley in:
2499         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
2500
2501 2010-08-23  Eric Blake  <eblake@redhat.com>
2502
2503         stdbool: avoid rejecting clang
2504         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2505         * tests/test-stdbool.c: Enable more tests if using the system
2506         <stdbool.h> instead of the gnulib replacement.
2507         (main): Move xlc bug test to a runtime test for all compilers.
2508         Reported by Anders Kaseorg.
2509
2510         argz: fix shell quoting issue
2511         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
2512         Reported by Charles Wilson.
2513
2514 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
2515             Erik Faye-Lund <kusmabite@gmail.com>
2516
2517         poll, select: handle ERROR_BROKEN_PIPE.
2518         * lib/poll.c (win32_compute_revents): Return POLLHUP when
2519         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2520         * lib/select.c (win32_compute_revents): Do not mark a pipe
2521         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2522
2523 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
2524
2525         fts: allow compilation with C++
2526         * lib/fts_.h: Specify extern "C" linkage with C++.
2527
2528 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2529
2530         Fix gnulib-tool sed script de-commentation for AIX sed.
2531         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
2532         sed.
2533
2534 2010-08-17  Eric Blake  <eblake@redhat.com>
2535
2536         test-stddef: test for (some) offsetof bugs
2537         * tests/test-stddef.c: Enhance test to ensure correct type of
2538         offsetof.
2539         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
2540         that we are not fixing at this time.
2541
2542 2010-08-15  Bruno Haible  <bruno@clisp.org>
2543
2544         stpncpy: Allow stpncpy to be defined as a macro.
2545         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
2546         if it's already correctly declared.
2547         * lib/string.in.h (stpncpy): Undefine before redefining.
2548         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
2549
2550 2010-08-14  Bruno Haible  <bruno@clisp.org>
2551
2552         Rename module 'memxfrm' to 'amemxfrm'.
2553         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
2554         (amemxfrm): Renamed from memxfrm.
2555         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
2556         (amemxfrm): Renamed from memxfrm.
2557         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
2558         * NEWS: Mention the change.
2559         * MODULES.html.sh (String handling <string.h>): Update.
2560         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
2561         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
2562         * lib/unicase/u16-casexfrm.c: Likewise.
2563         * lib/unicase/u32-casexfrm.c: Likewise.
2564         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
2565         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
2566         * lib/uninorm/u16-normxfrm.c: Likewise.
2567         * lib/uninorm/u32-normxfrm.c: Likewise.
2568         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
2569         memxfrm.
2570         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
2571         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
2572         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
2573         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
2574         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
2575         Suggested by Paul Eggert.
2576
2577 2010-08-14  Bruno Haible  <bruno@clisp.org>
2578
2579         Tests for module 'astrxfrm'.
2580         * modules/astrxfrm-tests: New file.
2581         * tests/test-astrxfrm.c: New file.
2582
2583         New module 'astrxfrm'.
2584         * lib/astrxfrm.h: New file.
2585         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
2586         * modules/astrxfrm: New file.
2587
2588 2010-08-14  Reuben Thomas <rrt@sc3d.org>
2589
2590         regex: Tweak doc.
2591         * doc/regex.texi (Overview): Don't mention regex.c.
2592         (GNU Regular Expression Compiling): Likewise.
2593         (Match-end-of-line Operator): Mention 'not_eol'.
2594
2595 2010-08-14  Brian Gough  <bjg@gnu.org>
2596             Bruno Haible  <bruno@clisp.org>
2597
2598         git-merge-changelog: add doc relating to use with bzr and hg.
2599         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
2600
2601 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
2602
2603         pthread: fix pthread.h creation for srcdir != builddir
2604         * modules/pthread (Makefile.am): Fix the rule to work also in a
2605         non-srcdir build.
2606
2607 2010-08-13  Karl Berry  <karl@gnu.org>
2608
2609         * doc/regex.texi (Predefined Syntaxes): @smallexample.
2610         * doc/posix-*/*: force line break before @url of POSIX
2611         specifications.
2612         Suggested by Werner Lemberg.
2613
2614 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2615
2616         strtod: fix const diagnostic
2617         * lib/strtod.c (strtod): Don't assign const char * to char *,
2618         as this elicits a warning from GCC when warnings are enabled.
2619
2620 2010-08-10  Pádraig Brady <P@draigbrady.com>
2621         and Eric Blake  <eblake@redhat.com>
2622
2623         copy-acl: ignore ENOTSUP on HP-UX
2624         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
2625         so that it is available for HP-UX.
2626         * lib/copy-acl.c (qcopy_acl): Use it.
2627         Reported by Patrick M. Callahan.
2628
2629 2010-08-10  Eric Blake  <eblake@redhat.com>
2630
2631         open, chown: relax license
2632         * modules/open (License): Change to LGPLv2+, with consent by all
2633         authors, for use in augeas.
2634         * modules/chown (License): Likewise.
2635         * modules/lchown (Likewise): Likewise.
2636         Requested by Adam Stokes.
2637
2638 2010-08-09  Karl Berry  <karl@gnu.org>
2639
2640         * build-aux/ar-lib: new file, import from Automake.
2641         * config/srclist.txt: autocheck for updates.
2642
2643 2010-08-09  Eric Blake  <eblake@redhat.com>
2644
2645         readlinkat: adjust client modules
2646         * modules/areadlinkat (Depends-on): Use readlinkat, not
2647         symlinkat.
2648         * modules/areadlinkat-with-size (Depends-on): Likewise.
2649
2650         mknod: be more vocal about danger of running tests as root
2651         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
2652         root, since that is just asking for problems.
2653         Suggested by Bruno Haible, based on a report by Rainer Tammer.
2654
2655         readlinkat: split into its own module
2656         * modules/symlinkat: Split readlinkat...
2657         * modules/readlinkat: ...into separate module.
2658         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
2659         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
2660         * lib/symlinkat.c (readlinkat): Move...
2661         * lib/readlinkat.c: ...into new file.
2662         * modules/symlinkat-tests: Split readlinkat test...
2663         * modules/readlinkat-tests: ...into separate module.
2664         * tests/test-symlinkat.c: Split...
2665         * tests/test-readlinkat.c: ...into new file.
2666         * NEWS: Document the split.
2667         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
2668         * lib/unistd.in.h (readlinkat): Likewise.
2669         Suggested by Bruno Haible.
2670
2671 2010-08-08  Bruno Haible  <bruno@clisp.org>
2672
2673         memxfrm: Speed up.
2674         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
2675         that usually only one call to strxfrm is necessary for each string
2676         part.
2677         Reported by Paul Eggert <eggert@cs.ucla.edu>.
2678
2679 2010-08-07  Karl Berry  <karl@gnu.org>
2680
2681         * doc/posix-headers/limits.texi,
2682         * doc/posix-functions/malloc.texi,
2683         * doc/posix-functions/strsignal.texi: missing @item.
2684         * doc/ld-version-script.texi: spurious leading i.
2685         * doc/regex.texi (Interval Operators): no commas inside @var.
2686
2687 2010-08-01  Bruno Haible  <bruno@clisp.org>
2688
2689         Integrate the regex documentation.
2690         * doc/gnulib.texi: Define 'cn' index.
2691         (Regular expressions): New a chapter that includes regex.texi and
2692         regexprops-generic.texi.
2693         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
2694         syntax.
2695
2696         Whitespace cleanup.
2697         * doc/regex.texi: Remove trailing spaces.
2698
2699         Add regex documentation.
2700         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
2701         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
2702         Written by Kathy A. Hargreaves and Karl Berry.
2703
2704 2010-08-01  Bruno Haible  <bruno@clisp.org>
2705
2706         link: Update documentation.
2707         * doc/posix-functions/link.texi: Update regarding Solaris.
2708
2709 2010-07-31  Bruno Haible  <bruno@clisp.org>
2710
2711         Update modules list.
2712         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
2713         (String handling <string.h>): Add memcmp2, memxfrm.
2714         (Container data structures): Add xlist, xsublist, xoset.
2715         (Core language properties): Add alignof, unused-parameter.
2716         (Process control, Numeric conversion functions <stdlib.h>): Renamed
2717         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
2718         (Unibyte characters <ctype.h>): New section.
2719         (String handling <string.h>): New section.
2720         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
2721         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
2722         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
2723         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
2724         tan, tanh, tanl, y0, y1, yn.
2725         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
2726         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
2727         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
2728         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
2729         unlockpt, vdprintf, vdprintf-posix.
2730         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
2731         (File system functions): Add concat-filename, sys_file, sys_ioctl,
2732         xconcat-filename.
2733         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
2734         getdtablesize, pipe2, pipe2-safer.
2735         (Security): New section.
2736         (Networking functions): Add accept4.
2737         (Signal handling): Add sigpipe.
2738         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
2739         mbmemcasecoll.
2740         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
2741         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
2742         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
2743         pipe-filter-ii.
2744         (Misc): Add argp-version-etc, login_tty, parse-duration.
2745
2746 2010-07-31  Bruno Haible  <bruno@clisp.org>
2747
2748         Improve doc in MODULES.html.
2749         * modules/linkat (Description): Add the word "function".
2750         * modules/mkfifo (Description): Likewise.
2751         * modules/mknod (Description): Likewise.
2752         * modules/remove (Description): Likewise.
2753         * modules/renameat (Description): Likewise.
2754         * modules/stat (Description): Likewise.
2755         * modules/symlink (Description): Likewise.
2756         * modules/unlink (Description): Likewise.
2757
2758 2010-07-31  Bruno Haible  <bruno@clisp.org>
2759
2760         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
2761         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
2762         option --enable/disable-c++ instead of --enable/disable-cxx.
2763         * NEWS: Mention the change.
2764
2765 2010-07-31  Bruno Haible  <bruno@clisp.org>
2766
2767         readlink, areadlink: Relax test a bit.
2768         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
2769         alternative to ENOTDIR.
2770         * tests/test-areadlink.h (test_areadlink): Likewise.
2771         Reported by Rainer Tammer.
2772
2773 2010-07-31  Bruno Haible  <bruno@clisp.org>
2774
2775         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
2776         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
2777         character, perform the search using U_STRCHR.
2778         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
2779         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
2780         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
2781         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
2782         Suggested by Paolo Bonzini.
2783
2784 2010-07-31  Bruno Haible  <bruno@clisp.org>
2785
2786         unistr/u*-strstr: Fix dependencies.
2787         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
2788         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
2789         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
2790
2791 2010-07-31  Bruno Haible  <bruno@clisp.org>
2792
2793         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
2794         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
2795         the beginning of the loop.
2796         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
2797         cases in 'switch' statement.
2798
2799         unistr/u8-strchr: Fix several bugs.
2800         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
2801         the string. When not found, return NULL, not a pointer near the end.
2802
2803         More tests for unistr/u8-strchr.
2804         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
2805         that the function does not read past the first occurrence of the byte
2806         being searched.
2807         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
2808         * tests/unistr/test-u16-strchr.c (main): New function.
2809         * tests/unistr/test-u32-strchr.c (main): New function.
2810
2811 2010-07-31  Bruno Haible  <bruno@clisp.org>
2812
2813         posix-modules: Ignore backup files of documentation files.
2814         * posix-modules: grep only through files named *.texi.
2815
2816 2010-07-31  Bruno Haible  <bruno@clisp.org>
2817
2818         symlinkat: Fix documentation.
2819         * doc/posix-functions/readlinkat.texi: Fix module name.
2820
2821 2010-07-31  Bruno Haible  <bruno@clisp.org>
2822
2823         fchownat: Replace also when chown has the trailing slash bug.
2824         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
2825         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
2826         introduced on 2010-04-10.
2827         Reported by Rainer Tammer.
2828
2829 2010-07-31  Bruno Haible  <bruno@clisp.org>
2830
2831         linkat: Work around AIX 7.1 bug.
2832         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
2833         whether linkat handles trailing slash correctly. If not, replace linkat
2834         and define LINKAT_TRAILING_SLASH_BUG.
2835         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
2836         check whether (fd1,file1) points to a directory if file1 or file2 ends
2837         in a slash. Code taken from lib/link.c.
2838         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
2839         Reported by Rainer Tammer.
2840
2841 2010-07-31  Bruno Haible  <bruno@clisp.org>
2842
2843         Correctly determine whether pow is available in libc on AIX 7 with xlc.
2844         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
2845         This disables an xlc optimization that was causing wrong test results.
2846         Reported by Rainer Tammer.
2847
2848 2010-07-31  Bruno Haible  <bruno@clisp.org>
2849
2850         iconv: Work around AIX 6.1..7.1 bug.
2851         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
2852         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
2853         cross-compiling, guess no on all versions of AIX.
2854         Reported by Rainer Tammer.
2855
2856 2010-07-31  Bruno Haible  <bruno@clisp.org>
2857
2858         readlink: Relax test a bit.
2859         * tests/test-readlink.h (test_readlink): Allow different errno value
2860         when readlink is called with a file name that ends in / and refers to
2861         a file.
2862         Suggested by Eric Blake.
2863         Reported by Rainer Tammer.
2864
2865 2010-07-31  Bruno Haible  <bruno@clisp.org>
2866
2867         copysign: Does not require -lm on glibc systems.
2868         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
2869         gl_COMMON_DOUBLE_MATHFUNC.
2870         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
2871
2872 2010-07-31  Bruno Haible  <bruno@clisp.org>
2873
2874         duplocale: Work around AIX 7.1 bug.
2875         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
2876         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
2877         * lib/duplocale.c (rpl_duplocale): Update comment.
2878         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
2879         Reported by Rainer Tammer.
2880
2881 2010-07-30  Bruno Haible  <bruno@clisp.org>
2882
2883         dirfd: Avoid link error on AIX 7.1.
2884         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
2885         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
2886         exist, set REPLACE_DIRFD.
2887         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
2888         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
2889         * doc/posix-functions/dirfd.texi: Update.
2890         Reported by Rainer Tammer.
2891
2892 2010-07-30  Eric Blake  <eblake@redhat.com>
2893
2894         strtod: next round of AIX fixes
2895         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
2896         exponent.
2897         * tests/test-strtod.c (main): Enhance tests.
2898         * doc/posix-functions/strtod.texi (strtod): Document next bug.
2899         Reported by Rainer Tammer.
2900
2901         futimens: fix configure check
2902         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
2903         Reported by Bruno Haible.
2904
2905 2010-07-30  Bruno Haible  <bruno@clisp.org>
2906
2907         getline: Update regarding AIX.
2908         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
2909         Reported by Rainer Tammer.
2910
2911 2010-07-30  Bruno Haible  <bruno@clisp.org>
2912
2913         wcwidth: Drop replacement on AIX 7.
2914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
2915         AIX 7.
2916         Reported by Rainer Tammer.
2917
2918 2010-07-30  Bruno Haible  <bruno@clisp.org>
2919
2920         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
2921         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
2922         a 'char *'.
2923         Reported by Rainer Tammer.
2924
2925 2010-07-30  Bruno Haible  <bruno@clisp.org>
2926
2927         unlink: Update regarding AIX.
2928         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
2929         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
2930         Reported by Rainer Tammer.
2931
2932 2010-07-30  Bruno Haible  <bruno@clisp.org>
2933
2934         symlink: Update regarding AIX.
2935         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
2936         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
2937         Reported by Rainer Tammer.
2938
2939 2010-07-30  Bruno Haible  <bruno@clisp.org>
2940
2941         strndup: Update regarding AIX.
2942         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
2943         AIX 7.
2944         Reported by Rainer Tammer.
2945
2946 2010-07-30  Bruno Haible  <bruno@clisp.org>
2947
2948         stat: Update regarding AIX.
2949         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
2950         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
2951         Reported by Rainer Tammer.
2952
2953 2010-07-30  Bruno Haible  <bruno@clisp.org>
2954
2955         truncl: Fix autoconf test.
2956         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
2957         whether truncl works.
2958         Reported by Rainer Tammer.
2959
2960 2010-07-30  Bruno Haible  <bruno@clisp.org>
2961
2962         round: Update regarding AIX.
2963         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
2964         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
2965         Reported by Rainer Tammer.
2966
2967 2010-07-30  Bruno Haible  <bruno@clisp.org>
2968
2969         rename: Update regarding AIX.
2970         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
2971         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
2972         Reported by Rainer Tammer.
2973
2974 2010-07-30  Bruno Haible  <bruno@clisp.org>
2975
2976         printf.m4: Update regarding AIX.
2977         * m4/printf.m4: Update comments regarding AIX.
2978         Reported by Rainer Tammer.
2979
2980 2010-07-30  Bruno Haible  <bruno@clisp.org>
2981
2982         iconv: Update regarding AIX.
2983         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
2984         AIX 7.
2985         Reported by Rainer Tammer.
2986
2987 2010-07-30  Bruno Haible  <bruno@clisp.org>
2988
2989         getopt: Update regarding AIX.
2990         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
2991         no on AIX.
2992         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
2993         Reported by Rainer Tammer.
2994
2995 2010-07-30  Bruno Haible  <bruno@clisp.org>
2996
2997         ldexpl; Update regarding AIX.
2998         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
2999         on AIX 7.
3000         Reported by Rainer Tammer.
3001
3002 2010-07-30  Bruno Haible  <bruno@clisp.org>
3003
3004         frexpl: Update regarding AIX.
3005         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
3006         on AIX 7.
3007         Reported by Rainer Tammer.
3008
3009 2010-07-30  Bruno Haible  <bruno@clisp.org>
3010
3011         open, fopen: Update regarding AIX.
3012         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
3013         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3014         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
3015         * doc/posix-functions/fopen.texi: Likewise.
3016         Reported by Rainer Tammer.
3017
3018 2010-07-30  Bruno Haible  <bruno@clisp.org>
3019
3020         chown: Update doc regarding AIX.
3021         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
3022         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
3023         Reported by Rainer Tammer.
3024
3025 2010-07-30  Eric Blake  <eblake@redhat.com>
3026
3027         strtod: fix bug in replacement function on AIX
3028         * lib/strtod.c (strtod): Special case broken "0x" parse in
3029         underlying strtod.
3030         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
3031         * doc/posix-functions/strtod.texi (strtod): Likewise.
3032         Reported by Rainer Tammer.
3033
3034 2010-07-30  Bruno Haible  <bruno@clisp.org>
3035
3036         mbrlen: Fix cross-compilation guess for AIX.
3037         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
3038         guess. Leftover from 2008-12-22.
3039
3040 2010-07-30  Bruno Haible  <bruno@clisp.org>
3041
3042         mbrtowc: Fix cross-compilation guess for AIX.
3043         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
3044         guess. Leftover from 2008-12-21.
3045
3046 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
3047
3048         init.sh: work around trap limitation of some shells
3049         * tests/init.sh (setup_): Move exit trap outside of shell function.
3050
3051 2010-07-29  Eric Blake  <eblake@redhat.com>
3052
3053         strtod: aid debugging
3054         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
3055         understanding why strtod is rejected.
3056
3057 2010-07-28  Bruno Haible  <bruno@clisp.org>
3058
3059         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
3060         * lib/unistr/u8-chr.c: Include <string.h>.
3061         * tests/unistr/test-u8-chr.c: Likewise.
3062         * tests/unistr/test-u16-chr.c: Likewise.
3063         * tests/unistr/test-u32-chr.c: Likewise.
3064         * tests/unistr/test-u8-strchr.c: Likewise.
3065         * tests/unistr/test-u16-strchr.c: Likewise.
3066         * tests/unistr/test-u32-strchr.c: Likewise.
3067         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
3068         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3069         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
3070         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
3071
3072 2010-07-28  Bruno Haible  <bruno@clisp.org>
3073
3074         Use spaces for indentation, not tabs.
3075         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3076
3077 2010-07-27  Bruno Haible  <bruno@clisp.org>
3078
3079         mbspcasecmp: Fix function specification.
3080         * lib/string.in.h (mbspcasecmp): Fix specification comment.
3081         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
3082         Reported by Eric Blake <eblake@redhat.com>.
3083
3084 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
3085
3086         timespec: use cast and not conditional, as truncation isn't possible
3087         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
3088         instead of a conditional.  Comment about the situation in more detail.
3089         This undoes most of the 2009-10-29 patch.
3090
3091 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
3092
3093         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
3094         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
3095         * lib/unistr/u8-strchr.c: Likewise.
3096         * modules/unistr/u8-chr: Depend on memchr.
3097
3098         unistr/u*-strchr: add tests
3099         * modules/unistr/u8-strchr-tests: New file.
3100         * modules/unistr/u16-strchr-tests: New file.
3101         * modules/unistr/u32-strchr-tests: New file.
3102         * tests/unistr/test-strchr.h: New file.
3103         * tests/unistr/test-u8-strchr.c: New file.
3104         * tests/unistr/test-u16-strchr.c: New file.
3105         * tests/unistr/test-u32-strchr.c: New file.
3106
3107         unistr/u*-chr: test multibyte sequences more
3108         * tests/unistr/test-chr.h: Do complete testing of the characters in the
3109         test vector.
3110         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
3111         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
3112         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
3113
3114         unistr/u*-chr: test multibyte sequences
3115         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
3116
3117         unistr/u*-chr: prepare for multibyte tests
3118         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
3119         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
3120         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
3121         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
3122         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
3123         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
3124
3125 2010-07-18  Bruno Haible  <bruno@clisp.org>
3126
3127         unistr/u8-strchr: Optimize non-ASCII argument case.
3128         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
3129         because the first byte often matches anyway.
3130         Reported by Pádraig Brady <P@draigbrady.com>.
3131
3132 2010-07-15  Karl Berry  <karl@gnu.org>
3133
3134         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
3135
3136 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
3137
3138         getcwd: on Solaris, work better if ancestors are inaccessible
3139         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
3140         buffer and size, try again with a large buffer.  This works better
3141         on Solaris, since its getcwd succeeds even if the path to the root
3142         is inaccessible, and this is helpful in common cases such as .zfs
3143         hidden directories.  Problem reported by J Chapman Flack in
3144         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
3145         Use system getcwd if it's declared, not merely if it's partly
3146         working; use the partly-working test only to avoid needless effort
3147         if the system getcwd fails.
3148         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
3149         comment that was already obsolete and is now even more obsolete.
3150         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
3151         now might call strdup.
3152
3153 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
3154
3155         pthread: Add enough so that coreutils/src/sort.c compiles.
3156         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
3157         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
3158         gnulib. Include <sched.h> and <time.h>, as per POSIX.
3159         Include <sys/types.h>, in case it defines pthread_t.
3160         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
3161         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
3162         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
3163         (pthread_rwlockattr_t, pthread_spinlock_t):
3164         New typedefs, if HAVE_PTHREAD_T is not defined.
3165         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
3166         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
3167         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
3168         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
3169         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
3170         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
3171         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
3172         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
3173         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
3174         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
3175         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
3176         New macros.
3177         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
3178         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
3179         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
3180         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
3181         (pthread_spin_unlock): New dummy functions.
3182         (pthread_create): Return EAGAIN; don't set errno.
3183         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
3184         require AC_C_INLINE.
3185         * modules/pthread (Depends-on): Add sched, time.
3186         (pthread.h): Use AM_V_GEN.
3187
3188 2010-07-13  Bruno Haible  <bruno@clisp.org>
3189
3190         striconveh: Don't malloc memory if the result buffer is sufficient.
3191         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
3192         buffer if its size is sufficient.
3193         Reported by Ludovic Courtès <ludo@gnu.org>.
3194
3195 2010-07-13  Bruno Haible  <bruno@clisp.org>
3196
3197         strtod: Add safety check.
3198         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
3199
3200 2010-07-12  Bruno Haible  <bruno@clisp.org>
3201
3202         Unify tests that set gl_cv_func_ldexpl_no_libm.
3203         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
3204         gl_FUNC_LDEXPL.
3205         (gl_FUNC_LDEXPL): Invoke it.
3206         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3207
3208 2010-07-12  Bruno Haible  <bruno@clisp.org>
3209
3210         Unify tests that set gl_cv_func_ldexp_no_libm.
3211         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
3212         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
3213         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
3214         (configure.ac): Simply invoke gl_FUNC_LDEXP.
3215         * modules/strtod (Files): Add m4/ldexp.m4.
3216
3217 2010-07-12  Bruno Haible  <bruno@clisp.org>
3218
3219         Unify tests that set gl_cv_func_frexpl_no_libm.
3220         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
3221         gl_FUNC_FREXPL_NO_LIBM.
3222         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
3223         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3224
3225 2010-07-12  Bruno Haible  <bruno@clisp.org>
3226
3227         Unify tests that set gl_cv_func_frexp_no_libm.
3228         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
3229         gl_FUNC_FREXP_NO_LIBM.
3230         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
3231         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3232
3233 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3234
3235         memcoll: clarify sizes versus lengths, document better, and tweak perf
3236         * lib/memcoll.c (strcoll_loop, memcoll0):
3237         Improve quality of descriptive comments.  Name variables
3238         consistently as to whether they are lengths (which do not include
3239         terminating null) versus sizes (which do).
3240         * lib/xmemcoll.c (xmemcoll0): Likewise.
3241         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
3242         returned when s1size == 0; this is easier to compile and saves
3243         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
3244
3245 2010-07-12  Bruno Haible  <bruno@clisp.org>
3246
3247         Tests for module '_Exit'.
3248         * modules/_Exit-tests: New file.
3249         * tests/test-_Exit.sh: New file.
3250         * tests/test-_Exit.c: New file.
3251
3252         New module '_Exit'.
3253         * lib/stdlib.in.h (__attribute__): New macro.
3254         (_Exit): New declaration.
3255         * lib/_Exit.c: New file.
3256         * m4/_Exit.m4: New file.
3257         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
3258         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
3259         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
3260         * modules/_Exit: New file.
3261         * tests/test-stdlib-c++.cc (_Exit): Check signature.
3262         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
3263
3264 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3265
3266         strtod: make it more-accurate typically, and don't require libm
3267         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
3268         Include limits.h.  Don't include string.h.
3269         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
3270         (locale_isspace): New function, so that no casts are needed to
3271         check whether *s is a space.
3272         (ldexp): Provide an unused dummy if not available.
3273         (scale_radix_exp, parse_number, underlying_strtod): New functions.
3274         (strtod): Use them.  This implementation prefers to use the
3275         underlying strtod if available, falling back on our own code
3276         only to fix known bugs.  This is more likely to produce an
3277         accurate result.  Also, it avoids the use of libm functions.
3278         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
3279         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
3280         was absent, but it caused a test failure with coreutils.
3281         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
3282         with libm.
3283         * modules/strtod (Makefile.am, Link): libm is no longer needed.
3284         * modules/strtod-tests (Makefile.am): Likewise.
3285
3286 2010-07-11  Pádraig Brady  <P@draigBrady.com>
3287             Bruno Haible  <bruno@clisp.org>
3288
3289         unistr/u8-strchr: Optimize ASCII argument case.
3290         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
3291
3292 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3293
3294         (x)memcoll: minor tweaks
3295         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
3296         is after the type that it qualifies.
3297         (memcoll0): Likewise.
3298         * lib/memcoll.h (memcoll0): Likewise.
3299         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
3300         * lib/xmemcoll.h (xmemcoll0): Likewise.
3301         * lib/memcoll.c (memcoll0): Correct the comment.  This function
3302         differs from memcoll in that the NUL byte is part of the argument.
3303         Omit the abort-checks, as performance is a real issue here.  Plus,
3304         the checks were wrong anyway (an off-by-one error).  Omit local
3305         variable 'diff', as it's a bit clearer that way.
3306         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
3307         no longer needed.
3308
3309 2010-07-08  Chen Guo <chenguo4@yahoo.com>
3310
3311         (x)memcoll: speedup when input is known to be NUL delimited
3312         * lib/memcoll.c: Include stdlib.
3313         (memcoll0) New function.
3314         (strcoll_loop) New function, refactored for use in both memcoll
3315         and memcoll0.
3316         * lib/memcoll.h: Add prototype for memcoll0.
3317         * lib/xmemcoll.c: (xmemcoll0) New function.
3318         (collate_error) New function, refactored for use in both xmemcoll
3319         and xmemcoll0.
3320         * lib/xmemcoll.h: Add prototype for xmemcoll0.
3321         * m4/memcoll.m4: add inline invocation.
3322
3323 2010-07-06  Pádraig Brady  <P@draigBrady.com>
3324
3325         * build-aux/bootstrap: Remove any local translations
3326         from the translation project synchronization directory,
3327         so that local only translations are not distributed.
3328
3329 2010-07-04  Bruno Haible  <bruno@clisp.org>
3330
3331         fsusage: Clarify which code applies to which platforms.
3332         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
3333         platform.
3334         * lib/fsusage.c (get_fs_usage): Likewise.
3335
3336 2010-07-04  Bruno Haible  <bruno@clisp.org>
3337
3338         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
3339         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
3340         Reported by Martin Lambers <marlam@marlam.de>.
3341
3342 2010-07-04  Jim Meyering  <meyering@redhat.com>
3343
3344         hash: once again explicitly disallow insertion of NULL
3345         * lib/hash.c (hash_insert0): Reinstate just-removed test:
3346         inserting a NULL pointer cannot work with these functions.
3347         Add a comment with details.
3348         This reverts part of the 2010-07-01 commit, 5bef1a35
3349         "hash: extend module to deal with non-pointer keys".
3350
3351 2010-07-01  Bruno Haible  <bruno@clisp.org>
3352
3353         stdbool: Update doc.
3354         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
3355         Info from Christian Weisgerber <naddy@mips.inka.de>.
3356
3357 2010-07-01  Jim Meyering  <meyering@redhat.com>
3358
3359         hash: extend module to deal with non-pointer keys
3360         * lib/hash.c (hash_insert0): New interface, much like hash_insert
3361         but that allows insertion of non-pointer entries.
3362         Do not disallow an ENTRY value of NULL.
3363         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
3364         * lib/hash.h (hash_insert0): Declare.
3365
3366 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3367
3368         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
3369         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
3370         not present (i.e. with autoconf 2.59 and when using gettextize, not
3371         gnulib), require AC_GNU_SOURCE instead.
3372
3373 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
3374
3375         idpriv-drop: Fix tests.
3376         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
3377         not to the test-idpriv-droptemp program.
3378
3379 2010-06-29  Bruno Haible  <bruno@clisp.org>
3380
3381         string: Fix syntax error with g++ 2.96.
3382         * lib/string.in.h (__pure__): Remove definition.
3383         (_GL_ATTRIBUTE_PURE): New macro.
3384         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
3385         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
3386         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3387
3388 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
3389
3390         unitypes: Fix bug introduced on 2010-05-18.
3391         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
3392
3393 2010-06-22  Eric Blake  <eblake@redhat.com>
3394
3395         memmem: slight optimization
3396         * lib/str-two-way.h (critical_factorization): Update comments.
3397         Reduce work during factorization phase.
3398         Reported by Carlos Bueno <carlos@bueno.org>.
3399
3400 2010-06-21  Bruno Haible  <bruno@clisp.org>
3401
3402         Fix HAVE_CALLOC_POSIX misnomer.
3403         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
3404         !HAVE_CALLOC_POSIX.
3405         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
3406         HAVE_CALLOC_POSIX.
3407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
3408         instead of HAVE_CALLOC_POSIX.
3409         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
3410         HAVE_CALLOC_POSIX.
3411
3412         Use modern idiom for calloc() replacement.
3413         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
3414         AC_FUNC_CALLOC.
3415         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
3416         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
3417         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3418         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
3419         (gl_REPLACE_CALLOC): New macro.
3420
3421 2010-06-21  Bruno Haible  <bruno@clisp.org>
3422
3423         Fix HAVE_REALLOC_POSIX misnomer.
3424         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
3425         !HAVE_REALLOC_POSIX.
3426         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
3427         HAVE_REALLOC_POSIX.
3428         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
3429         instead of HAVE_REALLOC_POSIX.
3430         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
3431         HAVE_REALLOC_POSIX.
3432
3433         Use modern idiom for realloc() replacement.
3434         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
3435         AC_FUNC_REALLOC.
3436         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
3437         Autoconf's AC_FUNC_REALLOC.
3438         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3439         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
3440         (gl_REPLACE_REALLOC): New macro.
3441         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3442
3443 2010-06-21  Bruno Haible  <bruno@clisp.org>
3444
3445         Fix HAVE_MALLOC_POSIX misnomer.
3446         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
3447         !HAVE_MALLOC_POSIX.
3448         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
3449         HAVE_MALLOC_POSIX.
3450         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
3451         instead of HAVE_MALLOC_POSIX.
3452         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
3453         HAVE_MALLOC_POSIX.
3454
3455         Use modern idiom for malloc() replacement.
3456         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
3457         AC_FUNC_MALLOC.
3458         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
3459         Autoconf's AC_FUNC_MALLOC.
3460         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3461         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
3462         (gl_REPLACE_MALLOC): New macro.
3463         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3464
3465 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
3466
3467         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
3468         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
3469         This macro takes 3 arguments, not 4.
3470
3471 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
3472
3473         ipv6: fix detection under mingw
3474         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
3475         in6_addr.
3476
3477 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
3478
3479         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
3480         that strtod() works when cross-compiling to a glibc version known
3481         to work.
3482
3483 2010-06-15  Bruno Haible  <bruno@clisp.org>
3484
3485         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
3486
3487 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
3488
3489         select: Correct timeout.
3490         * lib/select.c (rpl_select): Compute wait_timeout correctly.
3491
3492 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3493
3494         git-version-gen: init shell var to avoid env var influence
3495         * build-aux/git-version-gen (v): Init shell var to empty.
3496
3497 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
3498
3499         priv-set: Don't assume that priv.h exists merely because getppriv does.
3500         See Jan Andersen's bug report about AIX 5L in
3501         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
3502         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
3503         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
3504         * lib/priv-set.h: Likewise.
3505         * tests/test-priv-set.c: Likewise.
3506
3507 2010-06-13  Bruno Haible  <bruno@clisp.org>
3508
3509         relocatable: Make it easier to test whether to install wrappers.
3510         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
3511         RELOCATABLE_VIA_WRAPPER.
3512
3513 2010-06-13  Bruno Haible  <bruno@clisp.org>
3514
3515         gnulib-tool: Display specified modules and dependencies differently.
3516         * gnulib-tool (func_show_module_list): New function.
3517         (func_import, func_create_testdir): Invoke it.
3518         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3519
3520 2010-06-13  Bruno Haible  <bruno@clisp.org>
3521
3522         gnulib-tool: Align code of func_import and func_create_testdir.
3523         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
3524         specified_modules.
3525
3526 2010-06-12  Jim Meyering  <meyering@redhat.com>
3527
3528         test-inttostr: avoid spurious failure on Solaris 9
3529         * tests/test-inttostr.c (main): Skip the test when snprintf fails
3530         to accept "%ju".  Reported by Bruno Haible.
3531
3532 2010-06-11  Jim Meyering  <meyering@redhat.com>
3533
3534         test-sys_socket: mark variables as used more readably
3535         * tests/test-sys_socket.c (main): Mark otherwise unused variables
3536         as "used" explicitly via (void) statement casts.  This is more
3537         readable than using them in an artificial return expression.
3538         Suggestion from Bruno Haible.
3539
3540 2010-06-11  Bruno Haible  <bruno@clisp.org>
3541
3542         Avoid some more warnings from "gcc -Wwrite-strings".
3543         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
3544         to 'const char *'.
3545         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
3546         * tests/test-c-strcasestr.c (main): Likewise.
3547         * tests/test-mbscasestr1.c (main): Likewise.
3548         * tests/test-mbscasestr2.c (main): Likewise.
3549         * tests/test-memmem.c (main): Likewise.
3550         * tests/test-strstr.c (main): Likewise.
3551         * tests/test-strcasestr.c (main): Likewise.
3552
3553 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3554
3555         init.sh: change framework_failure_ to fail with status 99, not 1
3556         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
3557         automake's parallel-tests rule that this is an unexpected failure,
3558         even if the test is listed in XFAIL_TESTS.
3559
3560 2010-06-11  Jim Meyering  <meyering@redhat.com>
3561
3562         test-inttostr: avoid warnings about 4-6KB literal strings
3563         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
3564         Include "macros.h", for its definition of ASSERT.
3565         (CK): s/assert/ASSERT/
3566         * modules/inttostr-tests (Files): Add macros.h.
3567
3568         init.sh: don't use $ME_ or skip_ before they are defined
3569         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
3570         their first uses.  Also hoist their companions: warn_, fail_,
3571         framework_failure_, $stderr_fileno.  Prompted by a patch from
3572         Stefano Lattarini.
3573
3574         test-sys_socket: avoid set-but-not-used warnings from gcc
3575         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
3576         avoid warning about set-but-not-used variables.
3577
3578         test-xvasprintf: avoid 'const' discard warnings
3579         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
3580         "const" when assigning from literal strings.
3581         (test_xasprintf): Add "void" in function argument list to placate
3582         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
3583
3584         tests: avoid compilation warnings in argmatch and exclude tests...
3585         in packages that define ARGMATCH_DIE_DECL, like coreutils.
3586         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
3587         Since it always exits, declare with the "noreturn" attribute.
3588         * tests/test-argmatch.c: Likewise.
3589
3590         tests: avoid 'const' discard warnings in mbsstr tests
3591         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
3592         * tests/test-mbsstr2.c (main): Likewise.
3593
3594         test-verify: avoid warning from gcc's -Wmissing-declarations
3595         * tests/test-verify.c (function): Declare to be static.
3596
3597         test-inttostr.c: include <string.h> for use of strcmp
3598         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
3599
3600         test-linkat: avoid failed assertion on "other" architectures
3601         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
3602         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
3603         sparc: https://bugs.launchpad.net/bugs/591968
3604
3605 2010-06-11  Jim Meyering  <meyering@redhat.com>
3606
3607         printf.m4: avoid autoconf's "Expanded Before Required" warning
3608         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
3609         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
3610         autoconf warning.
3611
3612 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
3613
3614         Replacement header templates are now named with ".in", not "_".
3615         * doc/gnulib-intro.texi: Correct.
3616
3617 2010-06-10  Jim Meyering  <meyering@redhat.com>
3618
3619         inttostr-tests: depend on snprintf, not snprintf-posix
3620         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
3621         snprintf-posix, to avoid this aclocal failure:
3622           missing file gnulib-tests/vasnprintf.c
3623           configure.ac:45: error: expected source file, required through \
3624           AC_LIBSOURCES, not found
3625
3626 2010-06-10  Jim Meyering  <meyering@redhat.com>
3627
3628         inttostr: add a new function, inttostr, and tests
3629         The namesake function was not available.  The existence of the
3630         template file, inttostr.c makes its addition nontrivial.
3631         * lib/anytostr.c: Rename from inttostr.c.
3632         (anytostr): Rename from inttostr.
3633         * lib/inttostr.c: New file.
3634         * modules/inttostr (Files): Add anytostr.c.
3635         (Makefile.am): Set lib_SOURCES instead of ...
3636         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
3637         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
3638         * lib/offtostr.c: Likewise.
3639         * lib/uinttostr.c: Likewise.
3640         * lib/umaxtostr.c: Likewise.
3641         * modules/inttostr-tests: New file.
3642         * tests/test-inttostr.c: New file.  Test these functions.
3643
3644 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
3645             Bruno Haible  <bruno@clisp.org>
3646
3647         Add "Extending Gnulib" chapter to manual.
3648         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
3649         chapter.
3650         (Extending Gnulib): New chapter.
3651         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
3652         chapter.
3653
3654 2010-06-09  Bruno Haible  <bruno@clisp.org>
3655
3656         Avoid relocwrapper link errors due to gnulib replacement functions.
3657         * lib/areadlink.c: Use the system's malloc, realloc functions.
3658         (areadlink): Set errno to ENOMEM explicitly.
3659         * modules/areadlink (Depends-on): Remove malloc-posix.
3660         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3661
3662 2010-06-09  Bruno Haible  <bruno@clisp.org>
3663
3664         Avoid relocwrapper link errors due to gnulib replacement functions.
3665         * lib/canonicalize-lgpl.c: Use the system's malloc function.
3666         * lib/malloca.c: Likewise.
3667         * lib/relocatable.c: Likewise.
3668         * lib/progreloc.c: Use the system's malloc, sprintf functions.
3669         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
3670         * lib/setenv.c: Use the system's malloc, realloc functions.
3671         * lib/strerror.c: Use the system's sprintf function.
3672         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3673
3674 2010-06-04  Bruno Haible  <bruno@clisp.org>
3675
3676         Prefer documented low-level autoconf macro names.
3677         * m4/lib-link.m4: Use m4_translit instead of translit.
3678         * m4/environ.m4: Likewise.
3679         * m4/mathfunc.m4: Likewise.
3680         * m4/onceonly.m4: Likewise.
3681         * m4/stdint.m4: Likewise.
3682         Suggested by Eric Blake.
3683
3684 2010-06-04  Martin Lambers  <marlam@marlam.de>
3685             Bruno Haible  <bruno@clisp.org>
3686
3687         havelib: Allow library names with '+' characters.
3688         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
3689         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
3690
3691 2010-06-09  Bruno Haible  <bruno@clisp.org>
3692
3693         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
3694         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
3695         realloc failed.
3696
3697 2010-06-08  Peter Simons  <simons@cryp.to>
3698
3699         maint.mk: make the news-check rule more configurable
3700         * top/maint.mk (news-check-lines-spec) New variable.
3701         (news-check): Use "sed -n 1,10p" in place of "head".
3702
3703 2010-06-07  Jim Meyering  <meyering@redhat.com>
3704
3705         do-release-commit-and-tag: fix typo in --help
3706         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
3707
3708         regex: avoid new dead-code warning with gcc-4.6.0
3709         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
3710         if-block containing a while-loop.  It's been unused for at least
3711         5 years.
3712
3713 2010-06-05  Bruno Haible  <bruno@clisp.org>
3714
3715         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
3716         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
3717
3718 2010-06-04  Bruno Haible  <bruno@clisp.org>
3719
3720         Update to GNU gettext 0.18.1.
3721         * modules/gettext (configure.ac): Require gettext infrastructure from
3722         version 0.18.1.
3723
3724 2010-06-03  Bruno Haible  <bruno@clisp.org>
3725
3726         Don't use AC_LIBOBJ with file names in subdirectories.
3727         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
3728         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
3729         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
3730         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
3731         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
3732         gl_LIBUNISTRING_LIBSOURCE.
3733         (Makefile.am): Augment lib_SOURCES here, conditionally.
3734         * NEWS: Drop requirement for Automake option 'subdir-objects'.
3735
3736 2010-06-03  Bruno Haible  <bruno@clisp.org>
3737
3738         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
3739         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
3740         expansion does not end with a newline.
3741         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
3742         unnecessary newline.
3743
3744 2010-06-03  Bruno Haible  <bruno@clisp.org>
3745
3746         Reduce dependencies.
3747         * tests/test-quotearg.h: New file, extracted from
3748         tests/test-quotearg.c.
3749         * tests/test-quotearg-simple.c: New file, extracted from
3750         tests/test-quotearg.c.
3751         * tests/test-quotearg.c: Don't include <ctype.h>.
3752         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
3753         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
3754         use_quote_double_quotes, use_quotearg_colon): Moved to
3755         tests/test-quotearg.h.
3756         (results_g, flag_results, custom_quotes, custom_results): Moved
3757         to tests/test-quotearg-simple.c.
3758         (main): Moved the part that does not depend on gettext to
3759         tests/test-quotearg-simple.c. Return 77 if the test cannot be
3760         performed.
3761         * modules/quotearg-simple: New file.
3762         * modules/quotearg-simple-tests: New file.
3763         * modules/quotearg (Depends-on): Add quotearg-simple.
3764         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
3765         (Files): Add tests/test-quotearg.h.
3766         Reported by Paolo Bonzini.
3767
3768 2010-06-03  Bruno Haible  <bruno@clisp.org>
3769
3770         Reduce dependencies.
3771         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
3772
3773 2010-06-03  Bruno Haible  <bruno@clisp.org>
3774
3775         time: Undefine more broken macros.
3776         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
3777         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
3778         Reported by Eric Blake.
3779
3780 2010-06-03  Bruno Haible  <bruno@clisp.org>
3781
3782         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
3783         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
3784         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
3785         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
3786         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
3787         Reported by Ludovic Courtès <ludo@gnu.org>.
3788
3789 2010-06-02  Eric Blake  <eblake@redhat.com>
3790
3791         time: work with mingw + pthreads-win32 library
3792         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
3793         if timespec is defined only in pthread.h.
3794         * modules/time (Makefile.am): Substitute it.
3795         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
3796         <pthread.h>, when needed.
3797         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
3798         from the library.
3799
3800 2010-05-31  Bruno Haible  <bruno@clisp.org>
3801
3802         Avoid expanding two macros in the wrong order.
3803         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
3804         gl_LIBUNISTRING if it is defined.
3805         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
3806         autoconf >= 2.64.
3807         Reported by Ludovic Courtès <ludo@gnu.org>.
3808
3809 2010-05-27  Jim Meyering  <meyering@redhat.com>
3810
3811         maint.mk: also prohibit "#undef" of always-defined symbols
3812         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
3813         Allow more than one space before the symbol name.
3814         (sc_prohibit_always-defined_macros): Use grep's -E, now that
3815         the regexp uses alternation.
3816
3817 2010-05-26  Eric Blake  <eblake@redhat.com>
3818
3819         maint.mk: avoid echo -e
3820         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
3821         Convert all uses of echo -* to printf.
3822         Reported by Matthias Bolte.
3823
3824 2010-05-25  Bruno Haible  <bruno@clisp.org>
3825
3826         Update to GNU gettext 0.18, part 2.
3827         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
3828         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
3829
3830 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3831
3832         Add missing include in test-pwrite.c.
3833         * tests/test-pwrite.c: Include string.h, for strcmp.
3834
3835 2010-05-24  Bruno Haible  <bruno@clisp.org>
3836
3837         * NEWS: Mention requirement for Automake option 'subdir-objects'.
3838
3839 2010-05-24  Bruno Haible  <bruno@clisp.org>
3840
3841         Don't use conversion with transliteration in u{8,16,32}_strcoll.
3842         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
3843         iconveh_error argument.
3844         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
3845         U_STRCONV_TO_LOCALE.
3846         * lib/unistr/u16-strcoll.c: Likewise.
3847         * lib/unistr/u32-strcoll.c: Likewise.
3848         * modules/unistr/u8-strcoll (Depends-on): Add
3849         uniconv/u8-strconv-to-enc, localcharset. Remove
3850         uniconv/u8-strconv-to-locale.
3851         (configure.ac): Bump version number.
3852         * modules/unistr/u16-strcoll (Depends-on): Add
3853         uniconv/u16-strconv-to-enc, localcharset. Remove
3854         uniconv/u16-strconv-to-locale.
3855         (configure.ac): Bump version number.
3856         * modules/unistr/u32-strcoll (Depends-on): Add
3857         uniconv/u32-strconv-to-enc, localcharset. Remove
3858         uniconv/u32-strconv-to-locale.
3859         (configure.ac): Bump version number.
3860
3861 2010-05-24  Bruno Haible  <bruno@clisp.org>
3862
3863         Avoid a test failure on NetBSD 5.0.
3864         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
3865         an iconv() bug.
3866
3867 2010-05-24  Bruno Haible  <bruno@clisp.org>
3868
3869         Adjust #include directive style.
3870         * modules/regex (Includes): Recommend to write <regex.h>.
3871
3872 2010-05-24  Bruno Haible  <bruno@clisp.org>
3873
3874         regex: Don't require alloca.
3875         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
3876         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
3877         only inside if (0).
3878
3879 2010-05-23  Jim Meyering  <meyering@redhat.com>
3880
3881         test-renameat.c: include <sys/stat.h>
3882         * tests/test-renameat.c: Include <sys/stat.h>; required for
3883         definition of S_IS* macros.
3884
3885 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
3886
3887         Update maintainer documentation for 'relocatable-prog' module.
3888         * doc/relocatable-maint.texi: Update.
3889         Comments by Bruno Haible.
3890
3891 2010-05-23  Bruno Haible  <bruno@clisp.org>
3892
3893         git-merge-changelog: Enable --split-merged-entry by default.
3894         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
3895         (usage): Don't mention this option any more.
3896         Reported by Ralf Wildenhues.
3897
3898 2010-05-23  Jim Meyering  <meyering@redhat.com>
3899
3900         test-pwrite: do not leave behind a test file named "out"
3901         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
3902         The trivial-looking use of init.sh is really necessary.
3903         It ensures that the temporary file, "out", is created in
3904         a temporary directory, and removed upon termination.
3905         * tests/test-pwrite.sh: Re-add file.
3906         * modules/pwrite-tests: Reference it.
3907
3908 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3909
3910         Fix output redirection buglet in init.sh.
3911         * tests/init.sh: Fix redirection of stderr.
3912
3913 2010-05-20  Simon Josefsson  <simon@josefsson.org>
3914
3915         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
3916
3917 2010-05-17  Simon Josefsson  <simon@josefsson.org>
3918
3919         * modules/valgrind-tests: New file.
3920         * m4/valgrind-tests.m4: New file.
3921         * doc/valgrind-tests.texi: New file.
3922         * doc/gnulib.texi (Running self-tests under valgrind): New
3923         section.
3924
3925 2010-05-19  Bruno Haible  <bruno@clisp.org>
3926
3927         Clean up dead code in recent commit.
3928         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
3929         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
3930         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
3931         Suggested by Paolo Bonzini.
3932
3933 2010-05-19  Bruno Haible  <bruno@clisp.org>
3934
3935         Avoid valgrind error reports from libunistring.
3936         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
3937         * modules/libunistring (Files): Add it.
3938         * modules/libunistring-optional (Files): Likewise.
3939
3940 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
3941             Bruno Haible  <bruno@clisp.org>
3942
3943         New module 'libunistring-optional'.
3944         * modules/libunistring-optional: New file.
3945         * m4/libunistring-base.m4: New file.
3946         * m4/libunistring-optional.m4: New file.
3947         * lib/unicase.in.h: Renamed from lib/unicase.h.
3948         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
3949         * lib/unictype.in.h: Renamed from lib/unictype.h.
3950         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
3951         * lib/uniname.in.h: Renamed from lib/uniname.h.
3952         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
3953         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
3954         * lib/unistr.in.h: Renamed from lib/unistr.h.
3955         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
3956         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
3957         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
3958         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
3959         gl_LIBUNISTRING. If the library was found, determine the installed
3960         version and set LIBUNISTRING_VERSION.
3961         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
3962         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
3963         handle a configuration option --with-included-libunistring.
3964         * modules/libunistring (Files): Add m4/absolute-header.m4.
3965         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
3966         Add m4/libunistring-base.m4.
3967         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3968         (Makefile.am): Build unicase.h from unicase.in.h.
3969         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
3970         Add m4/libunistring-base.m4.
3971         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3972         (Makefile.am): Build uniconv.h from uniconv.in.h.
3973         * modules/unictype/base (Files): Use unictype.in.h instead of
3974         unictype.h. Add m4/libunistring-base.m4.
3975         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3976         (Makefile.am): Build unictype.h from unictype.in.h.
3977         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
3978         Add m4/libunistring-base.m4.
3979         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3980         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
3981         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
3982         Add m4/libunistring-base.m4.
3983         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3984         (Makefile.am): Build uniname.h from uniname.in.h.
3985         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
3986         Add m4/libunistring-base.m4.
3987         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3988         (Makefile.am): Build uninorm.h from uninorm.in.h.
3989         * modules/unistdio/base (Files): Use unistdio.in.h instead of
3990         unistdio.h. Add m4/libunistring-base.m4.
3991         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3992         (Makefile.am): Build unistdio.h from unistdio.in.h.
3993         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
3994         Add m4/libunistring-base.m4.
3995         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3996         (Makefile.am): Build unistr.h from unistr.in.h.
3997         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
3998         Add m4/libunistring-base.m4.
3999         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4000         (Makefile.am): Build unitypes.h from unitypes.in.h.
4001         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
4002         Add m4/libunistring-base.m4.
4003         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4004         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
4005         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
4006         uniwidth.h. Add m4/libunistring-base.m4.
4007         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4008         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
4009         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
4010         instead of augmenting lib_SOURCES.
4011         * modules/unicase/empty-suffix-context: Likewise.
4012         * modules/unicase/locale-language: Likewise.
4013         * modules/unicase/tolower: Likewise.
4014         * modules/unicase/totitle: Likewise.
4015         * modules/unicase/toupper: Likewise.
4016         * modules/unicase/u8-casecmp: Likewise.
4017         * modules/unicase/u8-casecoll: Likewise.
4018         * modules/unicase/u8-casefold: Likewise.
4019         * modules/unicase/u8-casexfrm: Likewise.
4020         * modules/unicase/u8-ct-casefold: Likewise.
4021         * modules/unicase/u8-ct-tolower: Likewise.
4022         * modules/unicase/u8-ct-totitle: Likewise.
4023         * modules/unicase/u8-ct-toupper: Likewise.
4024         * modules/unicase/u8-is-cased: Likewise.
4025         * modules/unicase/u8-is-casefolded: Likewise.
4026         * modules/unicase/u8-is-lowercase: Likewise.
4027         * modules/unicase/u8-is-titlecase: Likewise.
4028         * modules/unicase/u8-is-uppercase: Likewise.
4029         * modules/unicase/u8-prefix-context: Likewise.
4030         * modules/unicase/u8-suffix-context: Likewise.
4031         * modules/unicase/u8-tolower: Likewise.
4032         * modules/unicase/u8-totitle: Likewise.
4033         * modules/unicase/u8-toupper: Likewise.
4034         * modules/unicase/u16-casecmp: Likewise.
4035         * modules/unicase/u16-casecoll: Likewise.
4036         * modules/unicase/u16-casefold: Likewise.
4037         * modules/unicase/u16-casexfrm: Likewise.
4038         * modules/unicase/u16-ct-casefold: Likewise.
4039         * modules/unicase/u16-ct-tolower: Likewise.
4040         * modules/unicase/u16-ct-totitle: Likewise.
4041         * modules/unicase/u16-ct-toupper: Likewise.
4042         * modules/unicase/u16-is-cased: Likewise.
4043         * modules/unicase/u16-is-casefolded: Likewise.
4044         * modules/unicase/u16-is-lowercase: Likewise.
4045         * modules/unicase/u16-is-titlecase: Likewise.
4046         * modules/unicase/u16-is-uppercase: Likewise.
4047         * modules/unicase/u16-prefix-context: Likewise.
4048         * modules/unicase/u16-suffix-context: Likewise.
4049         * modules/unicase/u16-tolower: Likewise.
4050         * modules/unicase/u16-totitle: Likewise.
4051         * modules/unicase/u16-toupper: Likewise.
4052         * modules/unicase/u32-casecmp: Likewise.
4053         * modules/unicase/u32-casecoll: Likewise.
4054         * modules/unicase/u32-casefold: Likewise.
4055         * modules/unicase/u32-casexfrm: Likewise.
4056         * modules/unicase/u32-ct-casefold: Likewise.
4057         * modules/unicase/u32-ct-tolower: Likewise.
4058         * modules/unicase/u32-ct-totitle: Likewise.
4059         * modules/unicase/u32-ct-toupper: Likewise.
4060         * modules/unicase/u32-is-cased: Likewise.
4061         * modules/unicase/u32-is-casefolded: Likewise.
4062         * modules/unicase/u32-is-lowercase: Likewise.
4063         * modules/unicase/u32-is-titlecase: Likewise.
4064         * modules/unicase/u32-is-uppercase: Likewise.
4065         * modules/unicase/u32-prefix-context: Likewise.
4066         * modules/unicase/u32-suffix-context: Likewise.
4067         * modules/unicase/u32-tolower: Likewise.
4068         * modules/unicase/u32-totitle: Likewise.
4069         * modules/unicase/u32-toupper: Likewise.
4070         * modules/unicase/ulc-casecmp: Likewise.
4071         * modules/unicase/ulc-casecoll: Likewise.
4072         * modules/unicase/ulc-casexfrm: Likewise.
4073         * modules/uniconv/u8-conv-from-enc: Likewise.
4074         * modules/uniconv/u8-conv-to-enc: Likewise.
4075         * modules/uniconv/u8-strconv-from-enc: Likewise.
4076         * modules/uniconv/u8-strconv-from-locale: Likewise.
4077         * modules/uniconv/u8-strconv-to-enc: Likewise.
4078         * modules/uniconv/u8-strconv-to-locale: Likewise.
4079         * modules/uniconv/u16-conv-from-enc: Likewise.
4080         * modules/uniconv/u16-conv-to-enc: Likewise.
4081         * modules/uniconv/u16-strconv-from-enc: Likewise.
4082         * modules/uniconv/u16-strconv-from-locale: Likewise.
4083         * modules/uniconv/u16-strconv-to-enc: Likewise.
4084         * modules/uniconv/u16-strconv-to-locale: Likewise.
4085         * modules/uniconv/u32-conv-from-enc: Likewise.
4086         * modules/uniconv/u32-conv-to-enc: Likewise.
4087         * modules/uniconv/u32-strconv-from-enc: Likewise.
4088         * modules/uniconv/u32-strconv-from-locale: Likewise.
4089         * modules/uniconv/u32-strconv-to-enc: Likewise.
4090         * modules/uniconv/u32-strconv-to-locale: Likewise.
4091         * modules/unictype/bidicategory-byname: Likewise.
4092         * modules/unictype/bidicategory-name: Likewise.
4093         * modules/unictype/bidicategory-of: Likewise.
4094         * modules/unictype/bidicategory-test: Likewise.
4095         * modules/unictype/block-list: Likewise.
4096         * modules/unictype/block-test: Likewise.
4097         * modules/unictype/category-C: Likewise.
4098         * modules/unictype/category-Cc: Likewise.
4099         * modules/unictype/category-Cf: Likewise.
4100         * modules/unictype/category-Cn: Likewise.
4101         * modules/unictype/category-Co: Likewise.
4102         * modules/unictype/category-Cs: Likewise.
4103         * modules/unictype/category-L: Likewise.
4104         * modules/unictype/category-Ll: Likewise.
4105         * modules/unictype/category-Lm: Likewise.
4106         * modules/unictype/category-Lo: Likewise.
4107         * modules/unictype/category-Lt: Likewise.
4108         * modules/unictype/category-Lu: Likewise.
4109         * modules/unictype/category-M: Likewise.
4110         * modules/unictype/category-Mc: Likewise.
4111         * modules/unictype/category-Me: Likewise.
4112         * modules/unictype/category-Mn: Likewise.
4113         * modules/unictype/category-N: Likewise.
4114         * modules/unictype/category-Nd: Likewise.
4115         * modules/unictype/category-Nl: Likewise.
4116         * modules/unictype/category-No: Likewise.
4117         * modules/unictype/category-P: Likewise.
4118         * modules/unictype/category-Pc: Likewise.
4119         * modules/unictype/category-Pd: Likewise.
4120         * modules/unictype/category-Pe: Likewise.
4121         * modules/unictype/category-Pf: Likewise.
4122         * modules/unictype/category-Pi: Likewise.
4123         * modules/unictype/category-Po: Likewise.
4124         * modules/unictype/category-Ps: Likewise.
4125         * modules/unictype/category-S: Likewise.
4126         * modules/unictype/category-Sc: Likewise.
4127         * modules/unictype/category-Sk: Likewise.
4128         * modules/unictype/category-Sm: Likewise.
4129         * modules/unictype/category-So: Likewise.
4130         * modules/unictype/category-Z: Likewise.
4131         * modules/unictype/category-Zl: Likewise.
4132         * modules/unictype/category-Zp: Likewise.
4133         * modules/unictype/category-Zs: Likewise.
4134         * modules/unictype/category-and: Likewise.
4135         * modules/unictype/category-and-not: Likewise.
4136         * modules/unictype/category-byname: Likewise.
4137         * modules/unictype/category-name: Likewise.
4138         * modules/unictype/category-none: Likewise.
4139         * modules/unictype/category-of: Likewise.
4140         * modules/unictype/category-or: Likewise.
4141         * modules/unictype/category-test: Likewise.
4142         * modules/unictype/combining-class: Likewise.
4143         * modules/unictype/ctype-alnum: Likewise.
4144         * modules/unictype/ctype-alpha: Likewise.
4145         * modules/unictype/ctype-blank: Likewise.
4146         * modules/unictype/ctype-cntrl: Likewise.
4147         * modules/unictype/ctype-digit: Likewise.
4148         * modules/unictype/ctype-graph: Likewise.
4149         * modules/unictype/ctype-lower: Likewise.
4150         * modules/unictype/ctype-print: Likewise.
4151         * modules/unictype/ctype-punct: Likewise.
4152         * modules/unictype/ctype-space: Likewise.
4153         * modules/unictype/ctype-upper: Likewise.
4154         * modules/unictype/ctype-xdigit: Likewise.
4155         * modules/unictype/decimal-digit: Likewise.
4156         * modules/unictype/digit: Likewise.
4157         * modules/unictype/mirror: Likewise.
4158         * modules/unictype/numeric: Likewise.
4159         * modules/unictype/property-alphabetic: Likewise.
4160         * modules/unictype/property-ascii-hex-digit: Likewise.
4161         * modules/unictype/property-bidi-arabic-digit: Likewise.
4162         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
4163         * modules/unictype/property-bidi-block-separator: Likewise.
4164         * modules/unictype/property-bidi-boundary-neutral: Likewise.
4165         * modules/unictype/property-bidi-common-separator: Likewise.
4166         * modules/unictype/property-bidi-control: Likewise.
4167         * modules/unictype/property-bidi-embedding-or-override: Likewise.
4168         * modules/unictype/property-bidi-eur-num-separator: Likewise.
4169         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
4170         * modules/unictype/property-bidi-european-digit: Likewise.
4171         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
4172         * modules/unictype/property-bidi-left-to-right: Likewise.
4173         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
4174         * modules/unictype/property-bidi-other-neutral: Likewise.
4175         * modules/unictype/property-bidi-pdf: Likewise.
4176         * modules/unictype/property-bidi-segment-separator: Likewise.
4177         * modules/unictype/property-bidi-whitespace: Likewise.
4178         * modules/unictype/property-byname: Likewise.
4179         * modules/unictype/property-combining: Likewise.
4180         * modules/unictype/property-composite: Likewise.
4181         * modules/unictype/property-currency-symbol: Likewise.
4182         * modules/unictype/property-dash: Likewise.
4183         * modules/unictype/property-decimal-digit: Likewise.
4184         * modules/unictype/property-default-ignorable-code-point: Likewise.
4185         * modules/unictype/property-deprecated: Likewise.
4186         * modules/unictype/property-diacritic: Likewise.
4187         * modules/unictype/property-extender: Likewise.
4188         * modules/unictype/property-format-control: Likewise.
4189         * modules/unictype/property-grapheme-base: Likewise.
4190         * modules/unictype/property-grapheme-extend: Likewise.
4191         * modules/unictype/property-grapheme-link: Likewise.
4192         * modules/unictype/property-hex-digit: Likewise.
4193         * modules/unictype/property-hyphen: Likewise.
4194         * modules/unictype/property-id-continue: Likewise.
4195         * modules/unictype/property-id-start: Likewise.
4196         * modules/unictype/property-ideographic: Likewise.
4197         * modules/unictype/property-ids-binary-operator: Likewise.
4198         * modules/unictype/property-ids-trinary-operator: Likewise.
4199         * modules/unictype/property-ignorable-control: Likewise.
4200         * modules/unictype/property-iso-control: Likewise.
4201         * modules/unictype/property-join-control: Likewise.
4202         * modules/unictype/property-left-of-pair: Likewise.
4203         * modules/unictype/property-line-separator: Likewise.
4204         * modules/unictype/property-logical-order-exception: Likewise.
4205         * modules/unictype/property-lowercase: Likewise.
4206         * modules/unictype/property-math: Likewise.
4207         * modules/unictype/property-non-break: Likewise.
4208         * modules/unictype/property-not-a-character: Likewise.
4209         * modules/unictype/property-numeric: Likewise.
4210         * modules/unictype/property-other-alphabetic: Likewise.
4211         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
4212         * modules/unictype/property-other-grapheme-extend: Likewise.
4213         * modules/unictype/property-other-id-continue: Likewise.
4214         * modules/unictype/property-other-id-start: Likewise.
4215         * modules/unictype/property-other-lowercase: Likewise.
4216         * modules/unictype/property-other-math: Likewise.
4217         * modules/unictype/property-other-uppercase: Likewise.
4218         * modules/unictype/property-paired-punctuation: Likewise.
4219         * modules/unictype/property-paragraph-separator: Likewise.
4220         * modules/unictype/property-pattern-syntax: Likewise.
4221         * modules/unictype/property-pattern-white-space: Likewise.
4222         * modules/unictype/property-private-use: Likewise.
4223         * modules/unictype/property-punctuation: Likewise.
4224         * modules/unictype/property-quotation-mark: Likewise.
4225         * modules/unictype/property-radical: Likewise.
4226         * modules/unictype/property-sentence-terminal: Likewise.
4227         * modules/unictype/property-soft-dotted: Likewise.
4228         * modules/unictype/property-space: Likewise.
4229         * modules/unictype/property-terminal-punctuation: Likewise.
4230         * modules/unictype/property-test: Likewise.
4231         * modules/unictype/property-titlecase: Likewise.
4232         * modules/unictype/property-unassigned-code-value: Likewise.
4233         * modules/unictype/property-unified-ideograph: Likewise.
4234         * modules/unictype/property-uppercase: Likewise.
4235         * modules/unictype/property-variation-selector: Likewise.
4236         * modules/unictype/property-white-space: Likewise.
4237         * modules/unictype/property-xid-continue: Likewise.
4238         * modules/unictype/property-xid-start: Likewise.
4239         * modules/unictype/property-zero-width: Likewise.
4240         * modules/unictype/scripts: Likewise.
4241         * modules/unictype/syntax-c-ident: Likewise.
4242         * modules/unictype/syntax-c-whitespace: Likewise.
4243         * modules/unictype/syntax-java-ident: Likewise.
4244         * modules/unictype/syntax-java-whitespace: Likewise.
4245         * modules/unilbrk/u8-possible-linebreaks: Likewise.
4246         * modules/unilbrk/u8-width-linebreaks: Likewise.
4247         * modules/unilbrk/u16-possible-linebreaks: Likewise.
4248         * modules/unilbrk/u16-width-linebreaks: Likewise.
4249         * modules/unilbrk/u32-possible-linebreaks: Likewise.
4250         * modules/unilbrk/u32-width-linebreaks: Likewise.
4251         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
4252         * modules/unilbrk/ulc-width-linebreaks: Likewise.
4253         * modules/uniname/uniname: Likewise.
4254         * modules/uninorm/canonical-decomposition: Likewise.
4255         * modules/uninorm/composition: Likewise.
4256         * modules/uninorm/decomposing-form: Likewise.
4257         * modules/uninorm/decomposition: Likewise.
4258         * modules/uninorm/filter: Likewise.
4259         * modules/uninorm/nfc: Likewise.
4260         * modules/uninorm/nfd: Likewise.
4261         * modules/uninorm/nfkc: Likewise.
4262         * modules/uninorm/nfkd: Likewise.
4263         * modules/uninorm/u8-normalize: Likewise.
4264         * modules/uninorm/u8-normcmp: Likewise.
4265         * modules/uninorm/u8-normcoll: Likewise.
4266         * modules/uninorm/u8-normxfrm: Likewise.
4267         * modules/uninorm/u16-normalize: Likewise.
4268         * modules/uninorm/u16-normcmp: Likewise.
4269         * modules/uninorm/u16-normcoll: Likewise.
4270         * modules/uninorm/u16-normxfrm: Likewise.
4271         * modules/uninorm/u32-normalize: Likewise.
4272         * modules/uninorm/u32-normcmp: Likewise.
4273         * modules/uninorm/u32-normcoll: Likewise.
4274         * modules/uninorm/u32-normxfrm: Likewise.
4275         * modules/unistdio/u8-asnprintf: Likewise.
4276         * modules/unistdio/u8-asprintf: Likewise.
4277         * modules/unistdio/u8-snprintf: Likewise.
4278         * modules/unistdio/u8-sprintf: Likewise.
4279         * modules/unistdio/u8-u8-asnprintf: Likewise.
4280         * modules/unistdio/u8-u8-asprintf: Likewise.
4281         * modules/unistdio/u8-u8-snprintf: Likewise.
4282         * modules/unistdio/u8-u8-sprintf: Likewise.
4283         * modules/unistdio/u8-u8-vasnprintf: Likewise.
4284         * modules/unistdio/u8-u8-vasprintf: Likewise.
4285         * modules/unistdio/u8-u8-vsnprintf: Likewise.
4286         * modules/unistdio/u8-u8-vsprintf: Likewise.
4287         * modules/unistdio/u8-vasnprintf: Likewise.
4288         * modules/unistdio/u8-vasprintf: Likewise.
4289         * modules/unistdio/u8-vsnprintf: Likewise.
4290         * modules/unistdio/u8-vsprintf: Likewise.
4291         * modules/unistdio/u16-asnprintf: Likewise.
4292         * modules/unistdio/u16-asprintf: Likewise.
4293         * modules/unistdio/u16-snprintf: Likewise.
4294         * modules/unistdio/u16-sprintf: Likewise.
4295         * modules/unistdio/u16-u16-asnprintf: Likewise.
4296         * modules/unistdio/u16-u16-asprintf: Likewise.
4297         * modules/unistdio/u16-u16-snprintf: Likewise.
4298         * modules/unistdio/u16-u16-sprintf: Likewise.
4299         * modules/unistdio/u16-u16-vasnprintf: Likewise.
4300         * modules/unistdio/u16-u16-vasprintf: Likewise.
4301         * modules/unistdio/u16-u16-vsnprintf: Likewise.
4302         * modules/unistdio/u16-u16-vsprintf: Likewise.
4303         * modules/unistdio/u16-vasnprintf: Likewise.
4304         * modules/unistdio/u16-vasprintf: Likewise.
4305         * modules/unistdio/u16-vsnprintf: Likewise.
4306         * modules/unistdio/u16-vsprintf: Likewise.
4307         * modules/unistdio/u32-asnprintf: Likewise.
4308         * modules/unistdio/u32-asprintf: Likewise.
4309         * modules/unistdio/u32-snprintf: Likewise.
4310         * modules/unistdio/u32-sprintf: Likewise.
4311         * modules/unistdio/u32-u32-asnprintf: Likewise.
4312         * modules/unistdio/u32-u32-asprintf: Likewise.
4313         * modules/unistdio/u32-u32-snprintf: Likewise.
4314         * modules/unistdio/u32-u32-sprintf: Likewise.
4315         * modules/unistdio/u32-u32-vasnprintf: Likewise.
4316         * modules/unistdio/u32-u32-vasprintf: Likewise.
4317         * modules/unistdio/u32-u32-vsnprintf: Likewise.
4318         * modules/unistdio/u32-u32-vsprintf: Likewise.
4319         * modules/unistdio/u32-vasnprintf: Likewise.
4320         * modules/unistdio/u32-vasprintf: Likewise.
4321         * modules/unistdio/u32-vsnprintf: Likewise.
4322         * modules/unistdio/u32-vsprintf: Likewise.
4323         * modules/unistdio/ulc-asnprintf: Likewise.
4324         * modules/unistdio/ulc-asprintf: Likewise.
4325         * modules/unistdio/ulc-fprintf: Likewise.
4326         * modules/unistdio/ulc-snprintf: Likewise.
4327         * modules/unistdio/ulc-sprintf: Likewise.
4328         * modules/unistdio/ulc-vasnprintf: Likewise.
4329         * modules/unistdio/ulc-vasprintf: Likewise.
4330         * modules/unistdio/ulc-vfprintf: Likewise.
4331         * modules/unistdio/ulc-vsnprintf: Likewise.
4332         * modules/unistdio/ulc-vsprintf: Likewise.
4333         * modules/unistr/u8-check: Likewise.
4334         * modules/unistr/u8-chr: Likewise.
4335         * modules/unistr/u8-cmp: Likewise.
4336         * modules/unistr/u8-cmp2: Likewise.
4337         * modules/unistr/u8-cpy: Likewise.
4338         * modules/unistr/u8-cpy-alloc: Likewise.
4339         * modules/unistr/u8-endswith: Likewise.
4340         * modules/unistr/u8-mblen: Likewise.
4341         * modules/unistr/u8-mbsnlen: Likewise.
4342         * modules/unistr/u8-mbtouc: Likewise.
4343         * modules/unistr/u8-mbtouc-unsafe: Likewise.
4344         * modules/unistr/u8-mbtoucr: Likewise.
4345         * modules/unistr/u8-move: Likewise.
4346         * modules/unistr/u8-next: Likewise.
4347         * modules/unistr/u8-prev: Likewise.
4348         * modules/unistr/u8-set: Likewise.
4349         * modules/unistr/u8-startswith: Likewise.
4350         * modules/unistr/u8-stpcpy: Likewise.
4351         * modules/unistr/u8-stpncpy: Likewise.
4352         * modules/unistr/u8-strcat: Likewise.
4353         * modules/unistr/u8-strchr: Likewise.
4354         * modules/unistr/u8-strcmp: Likewise.
4355         * modules/unistr/u8-strcoll: Likewise.
4356         * modules/unistr/u8-strcpy: Likewise.
4357         * modules/unistr/u8-strcspn: Likewise.
4358         * modules/unistr/u8-strdup: Likewise.
4359         * modules/unistr/u8-strlen: Likewise.
4360         * modules/unistr/u8-strmblen: Likewise.
4361         * modules/unistr/u8-strmbtouc: Likewise.
4362         * modules/unistr/u8-strncat: Likewise.
4363         * modules/unistr/u8-strncmp: Likewise.
4364         * modules/unistr/u8-strncpy: Likewise.
4365         * modules/unistr/u8-strnlen: Likewise.
4366         * modules/unistr/u8-strpbrk: Likewise.
4367         * modules/unistr/u8-strrchr: Likewise.
4368         * modules/unistr/u8-strspn: Likewise.
4369         * modules/unistr/u8-strstr: Likewise.
4370         * modules/unistr/u8-strtok: Likewise.
4371         * modules/unistr/u8-to-u16: Likewise.
4372         * modules/unistr/u8-to-u32: Likewise.
4373         * modules/unistr/u8-uctomb: Likewise.
4374         * modules/unistr/u16-check: Likewise.
4375         * modules/unistr/u16-chr: Likewise.
4376         * modules/unistr/u16-cmp: Likewise.
4377         * modules/unistr/u16-cmp2: Likewise.
4378         * modules/unistr/u16-cpy: Likewise.
4379         * modules/unistr/u16-cpy-alloc: Likewise.
4380         * modules/unistr/u16-endswith: Likewise.
4381         * modules/unistr/u16-mblen: Likewise.
4382         * modules/unistr/u16-mbsnlen: Likewise.
4383         * modules/unistr/u16-mbtouc: Likewise.
4384         * modules/unistr/u16-mbtouc-unsafe: Likewise.
4385         * modules/unistr/u16-mbtoucr: Likewise.
4386         * modules/unistr/u16-move: Likewise.
4387         * modules/unistr/u16-next: Likewise.
4388         * modules/unistr/u16-prev: Likewise.
4389         * modules/unistr/u16-set: Likewise.
4390         * modules/unistr/u16-startswith: Likewise.
4391         * modules/unistr/u16-stpcpy: Likewise.
4392         * modules/unistr/u16-stpncpy: Likewise.
4393         * modules/unistr/u16-strcat: Likewise.
4394         * modules/unistr/u16-strchr: Likewise.
4395         * modules/unistr/u16-strcmp: Likewise.
4396         * modules/unistr/u16-strcoll: Likewise.
4397         * modules/unistr/u16-strcpy: Likewise.
4398         * modules/unistr/u16-strcspn: Likewise.
4399         * modules/unistr/u16-strdup: Likewise.
4400         * modules/unistr/u16-strlen: Likewise.
4401         * modules/unistr/u16-strmblen: Likewise.
4402         * modules/unistr/u16-strmbtouc: Likewise.
4403         * modules/unistr/u16-strncat: Likewise.
4404         * modules/unistr/u16-strncmp: Likewise.
4405         * modules/unistr/u16-strncpy: Likewise.
4406         * modules/unistr/u16-strnlen: Likewise.
4407         * modules/unistr/u16-strpbrk: Likewise.
4408         * modules/unistr/u16-strrchr: Likewise.
4409         * modules/unistr/u16-strspn: Likewise.
4410         * modules/unistr/u16-strstr: Likewise.
4411         * modules/unistr/u16-strtok: Likewise.
4412         * modules/unistr/u16-to-u32: Likewise.
4413         * modules/unistr/u16-to-u8: Likewise.
4414         * modules/unistr/u16-uctomb: Likewise.
4415         * modules/unistr/u32-check: Likewise.
4416         * modules/unistr/u32-chr: Likewise.
4417         * modules/unistr/u32-cmp: Likewise.
4418         * modules/unistr/u32-cmp2: Likewise.
4419         * modules/unistr/u32-cpy: Likewise.
4420         * modules/unistr/u32-cpy-alloc: Likewise.
4421         * modules/unistr/u32-endswith: Likewise.
4422         * modules/unistr/u32-mblen: Likewise.
4423         * modules/unistr/u32-mbsnlen: Likewise.
4424         * modules/unistr/u32-mbtouc: Likewise.
4425         * modules/unistr/u32-mbtouc-unsafe: Likewise.
4426         * modules/unistr/u32-mbtoucr: Likewise.
4427         * modules/unistr/u32-move: Likewise.
4428         * modules/unistr/u32-next: Likewise.
4429         * modules/unistr/u32-prev: Likewise.
4430         * modules/unistr/u32-set: Likewise.
4431         * modules/unistr/u32-startswith: Likewise.
4432         * modules/unistr/u32-stpcpy: Likewise.
4433         * modules/unistr/u32-stpncpy: Likewise.
4434         * modules/unistr/u32-strcat: Likewise.
4435         * modules/unistr/u32-strchr: Likewise.
4436         * modules/unistr/u32-strcmp: Likewise.
4437         * modules/unistr/u32-strcoll: Likewise.
4438         * modules/unistr/u32-strcpy: Likewise.
4439         * modules/unistr/u32-strcspn: Likewise.
4440         * modules/unistr/u32-strdup: Likewise.
4441         * modules/unistr/u32-strlen: Likewise.
4442         * modules/unistr/u32-strmblen: Likewise.
4443         * modules/unistr/u32-strmbtouc: Likewise.
4444         * modules/unistr/u32-strncat: Likewise.
4445         * modules/unistr/u32-strncmp: Likewise.
4446         * modules/unistr/u32-strncpy: Likewise.
4447         * modules/unistr/u32-strnlen: Likewise.
4448         * modules/unistr/u32-strpbrk: Likewise.
4449         * modules/unistr/u32-strrchr: Likewise.
4450         * modules/unistr/u32-strspn: Likewise.
4451         * modules/unistr/u32-strstr: Likewise.
4452         * modules/unistr/u32-strtok: Likewise.
4453         * modules/unistr/u32-to-u16: Likewise.
4454         * modules/unistr/u32-to-u8: Likewise.
4455         * modules/unistr/u32-uctomb: Likewise.
4456         * modules/uniwbrk/u8-wordbreaks: Likewise.
4457         * modules/uniwbrk/u16-wordbreaks: Likewise.
4458         * modules/uniwbrk/u32-wordbreaks: Likewise.
4459         * modules/uniwbrk/ulc-wordbreaks: Likewise.
4460         * modules/uniwbrk/wordbreak-property: Likewise.
4461         * modules/uniwidth/u8-strwidth: Likewise.
4462         * modules/uniwidth/u8-width: Likewise.
4463         * modules/uniwidth/u16-strwidth: Likewise.
4464         * modules/uniwidth/u16-width: Likewise.
4465         * modules/uniwidth/u32-strwidth: Likewise.
4466         * modules/uniwidth/u32-width: Likewise.
4467         * modules/uniwidth/width: Likewise.
4468         * modules/unicase/cased-tests (Makefile.am): Link all test programs
4469         with $(LIBUNISTRING).
4470         * modules/unicase/ignorable-tests: Likewise.
4471         * modules/unicase/locale-language-tests: Likewise.
4472         * modules/unicase/tolower-tests: Likewise.
4473         * modules/unicase/totitle-tests: Likewise.
4474         * modules/unicase/toupper-tests: Likewise.
4475         * modules/unicase/u8-casecmp-tests: Likewise.
4476         * modules/unicase/u8-casecoll-tests: Likewise.
4477         * modules/unicase/u8-casefold-tests: Likewise.
4478         * modules/unicase/u8-is-cased-tests: Likewise.
4479         * modules/unicase/u8-is-casefolded-tests: Likewise.
4480         * modules/unicase/u8-is-lowercase-tests: Likewise.
4481         * modules/unicase/u8-is-titlecase-tests: Likewise.
4482         * modules/unicase/u8-is-uppercase-tests: Likewise.
4483         * modules/unicase/u8-tolower-tests: Likewise.
4484         * modules/unicase/u8-totitle-tests: Likewise.
4485         * modules/unicase/u8-toupper-tests: Likewise.
4486         * modules/unicase/u16-casecmp-tests: Likewise.
4487         * modules/unicase/u16-casecoll-tests: Likewise.
4488         * modules/unicase/u16-casefold-tests: Likewise.
4489         * modules/unicase/u16-is-cased-tests: Likewise.
4490         * modules/unicase/u16-is-casefolded-tests: Likewise.
4491         * modules/unicase/u16-is-lowercase-tests: Likewise.
4492         * modules/unicase/u16-is-titlecase-tests: Likewise.
4493         * modules/unicase/u16-is-uppercase-tests: Likewise.
4494         * modules/unicase/u16-tolower-tests: Likewise.
4495         * modules/unicase/u16-totitle-tests: Likewise.
4496         * modules/unicase/u16-toupper-tests: Likewise.
4497         * modules/unicase/u32-casecmp-tests: Likewise.
4498         * modules/unicase/u32-casecoll-tests: Likewise.
4499         * modules/unicase/u32-casefold-tests: Likewise.
4500         * modules/unicase/u32-is-cased-tests: Likewise.
4501         * modules/unicase/u32-is-casefolded-tests: Likewise.
4502         * modules/unicase/u32-is-lowercase-tests: Likewise.
4503         * modules/unicase/u32-is-titlecase-tests: Likewise.
4504         * modules/unicase/u32-is-uppercase-tests: Likewise.
4505         * modules/unicase/u32-tolower-tests: Likewise.
4506         * modules/unicase/u32-totitle-tests: Likewise.
4507         * modules/unicase/u32-toupper-tests: Likewise.
4508         * modules/unicase/ulc-casecmp-tests: Likewise.
4509         * modules/unicase/ulc-casecoll-tests: Likewise.
4510         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
4511         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
4512         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
4513         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
4514         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
4515         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
4516         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
4517         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
4518         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
4519         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
4520         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
4521         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
4522         * modules/unictype/bidicategory-byname-tests: Likewise.
4523         * modules/unictype/bidicategory-name-tests: Likewise.
4524         * modules/unictype/bidicategory-of-tests: Likewise.
4525         * modules/unictype/bidicategory-test-tests: Likewise.
4526         * modules/unictype/block-list-tests: Likewise.
4527         * modules/unictype/block-of-tests: Likewise.
4528         * modules/unictype/block-test-tests: Likewise.
4529         * modules/unictype/category-C-tests: Likewise.
4530         * modules/unictype/category-Cc-tests: Likewise.
4531         * modules/unictype/category-Cf-tests: Likewise.
4532         * modules/unictype/category-Cn-tests: Likewise.
4533         * modules/unictype/category-Co-tests: Likewise.
4534         * modules/unictype/category-Cs-tests: Likewise.
4535         * modules/unictype/category-L-tests: Likewise.
4536         * modules/unictype/category-Ll-tests: Likewise.
4537         * modules/unictype/category-Lm-tests: Likewise.
4538         * modules/unictype/category-Lo-tests: Likewise.
4539         * modules/unictype/category-Lt-tests: Likewise.
4540         * modules/unictype/category-Lu-tests: Likewise.
4541         * modules/unictype/category-M-tests: Likewise.
4542         * modules/unictype/category-Mc-tests: Likewise.
4543         * modules/unictype/category-Me-tests: Likewise.
4544         * modules/unictype/category-Mn-tests: Likewise.
4545         * modules/unictype/category-N-tests: Likewise.
4546         * modules/unictype/category-Nd-tests: Likewise.
4547         * modules/unictype/category-Nl-tests: Likewise.
4548         * modules/unictype/category-No-tests: Likewise.
4549         * modules/unictype/category-P-tests: Likewise.
4550         * modules/unictype/category-Pc-tests: Likewise.
4551         * modules/unictype/category-Pd-tests: Likewise.
4552         * modules/unictype/category-Pe-tests: Likewise.
4553         * modules/unictype/category-Pf-tests: Likewise.
4554         * modules/unictype/category-Pi-tests: Likewise.
4555         * modules/unictype/category-Po-tests: Likewise.
4556         * modules/unictype/category-Ps-tests: Likewise.
4557         * modules/unictype/category-S-tests: Likewise.
4558         * modules/unictype/category-Sc-tests: Likewise.
4559         * modules/unictype/category-Sk-tests: Likewise.
4560         * modules/unictype/category-Sm-tests: Likewise.
4561         * modules/unictype/category-So-tests: Likewise.
4562         * modules/unictype/category-Z-tests: Likewise.
4563         * modules/unictype/category-Zl-tests: Likewise.
4564         * modules/unictype/category-Zp-tests: Likewise.
4565         * modules/unictype/category-Zs-tests: Likewise.
4566         * modules/unictype/category-and-not-tests: Likewise.
4567         * modules/unictype/category-and-tests: Likewise.
4568         * modules/unictype/category-byname-tests: Likewise.
4569         * modules/unictype/category-name-tests: Likewise.
4570         * modules/unictype/category-none-tests: Likewise.
4571         * modules/unictype/category-of-tests: Likewise.
4572         * modules/unictype/category-or-tests: Likewise.
4573         * modules/unictype/category-test-withtable-tests: Likewise.
4574         * modules/unictype/combining-class-tests: Likewise.
4575         * modules/unictype/ctype-alnum-tests: Likewise.
4576         * modules/unictype/ctype-alpha-tests: Likewise.
4577         * modules/unictype/ctype-blank-tests: Likewise.
4578         * modules/unictype/ctype-cntrl-tests: Likewise.
4579         * modules/unictype/ctype-digit-tests: Likewise.
4580         * modules/unictype/ctype-graph-tests: Likewise.
4581         * modules/unictype/ctype-lower-tests: Likewise.
4582         * modules/unictype/ctype-print-tests: Likewise.
4583         * modules/unictype/ctype-punct-tests: Likewise.
4584         * modules/unictype/ctype-space-tests: Likewise.
4585         * modules/unictype/ctype-upper-tests: Likewise.
4586         * modules/unictype/ctype-xdigit-tests: Likewise.
4587         * modules/unictype/decimal-digit-tests: Likewise.
4588         * modules/unictype/digit-tests: Likewise.
4589         * modules/unictype/mirror-tests: Likewise.
4590         * modules/unictype/numeric-tests: Likewise.
4591         * modules/unictype/property-alphabetic-tests: Likewise.
4592         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
4593         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
4594         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
4595         * modules/unictype/property-bidi-block-separator-tests: Likewise.
4596         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
4597         * modules/unictype/property-bidi-common-separator-tests: Likewise.
4598         * modules/unictype/property-bidi-control-tests: Likewise.
4599         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
4600         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
4601         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
4602         * modules/unictype/property-bidi-european-digit-tests: Likewise.
4603         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
4604         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
4605         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
4606         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
4607         * modules/unictype/property-bidi-pdf-tests: Likewise.
4608         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
4609         * modules/unictype/property-bidi-whitespace-tests: Likewise.
4610         * modules/unictype/property-byname-tests: Likewise.
4611         * modules/unictype/property-combining-tests: Likewise.
4612         * modules/unictype/property-composite-tests: Likewise.
4613         * modules/unictype/property-currency-symbol-tests: Likewise.
4614         * modules/unictype/property-dash-tests: Likewise.
4615         * modules/unictype/property-decimal-digit-tests: Likewise.
4616         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
4617         * modules/unictype/property-deprecated-tests: Likewise.
4618         * modules/unictype/property-diacritic-tests: Likewise.
4619         * modules/unictype/property-extender-tests: Likewise.
4620         * modules/unictype/property-format-control-tests: Likewise.
4621         * modules/unictype/property-grapheme-base-tests: Likewise.
4622         * modules/unictype/property-grapheme-extend-tests: Likewise.
4623         * modules/unictype/property-grapheme-link-tests: Likewise.
4624         * modules/unictype/property-hex-digit-tests: Likewise.
4625         * modules/unictype/property-hyphen-tests: Likewise.
4626         * modules/unictype/property-id-continue-tests: Likewise.
4627         * modules/unictype/property-id-start-tests: Likewise.
4628         * modules/unictype/property-ideographic-tests: Likewise.
4629         * modules/unictype/property-ids-binary-operator-tests: Likewise.
4630         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
4631         * modules/unictype/property-ignorable-control-tests: Likewise.
4632         * modules/unictype/property-iso-control-tests: Likewise.
4633         * modules/unictype/property-join-control-tests: Likewise.
4634         * modules/unictype/property-left-of-pair-tests: Likewise.
4635         * modules/unictype/property-line-separator-tests: Likewise.
4636         * modules/unictype/property-logical-order-exception-tests: Likewise.
4637         * modules/unictype/property-lowercase-tests: Likewise.
4638         * modules/unictype/property-math-tests: Likewise.
4639         * modules/unictype/property-non-break-tests: Likewise.
4640         * modules/unictype/property-not-a-character-tests: Likewise.
4641         * modules/unictype/property-numeric-tests: Likewise.
4642         * modules/unictype/property-other-alphabetic-tests: Likewise.
4643         * modules/unictype/property-other-default-ignorable-code-point-tests:
4644         Likewise.
4645         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
4646         * modules/unictype/property-other-id-continue-tests: Likewise.
4647         * modules/unictype/property-other-id-start-tests: Likewise.
4648         * modules/unictype/property-other-lowercase-tests: Likewise.
4649         * modules/unictype/property-other-math-tests: Likewise.
4650         * modules/unictype/property-other-uppercase-tests: Likewise.
4651         * modules/unictype/property-paired-punctuation-tests: Likewise.
4652         * modules/unictype/property-paragraph-separator-tests: Likewise.
4653         * modules/unictype/property-pattern-syntax-tests: Likewise.
4654         * modules/unictype/property-pattern-white-space-tests: Likewise.
4655         * modules/unictype/property-private-use-tests: Likewise.
4656         * modules/unictype/property-punctuation-tests: Likewise.
4657         * modules/unictype/property-quotation-mark-tests: Likewise.
4658         * modules/unictype/property-radical-tests: Likewise.
4659         * modules/unictype/property-sentence-terminal-tests: Likewise.
4660         * modules/unictype/property-soft-dotted-tests: Likewise.
4661         * modules/unictype/property-space-tests: Likewise.
4662         * modules/unictype/property-terminal-punctuation-tests: Likewise.
4663         * modules/unictype/property-test-tests: Likewise.
4664         * modules/unictype/property-titlecase-tests: Likewise.
4665         * modules/unictype/property-unassigned-code-value-tests: Likewise.
4666         * modules/unictype/property-unified-ideograph-tests: Likewise.
4667         * modules/unictype/property-uppercase-tests: Likewise.
4668         * modules/unictype/property-variation-selector-tests: Likewise.
4669         * modules/unictype/property-white-space-tests: Likewise.
4670         * modules/unictype/property-xid-continue-tests: Likewise.
4671         * modules/unictype/property-xid-start-tests: Likewise.
4672         * modules/unictype/property-zero-width-tests: Likewise.
4673         * modules/unictype/scripts-tests: Likewise.
4674         * modules/unictype/syntax-c-ident-tests: Likewise.
4675         * modules/unictype/syntax-c-whitespace-tests: Likewise.
4676         * modules/unictype/syntax-java-ident-tests: Likewise.
4677         * modules/unictype/syntax-java-whitespace-tests: Likewise.
4678         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
4679         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
4680         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
4681         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
4682         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
4683         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
4684         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
4685         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
4686         * modules/uniname/uniname-tests: Likewise.
4687         * modules/uninorm/canonical-decomposition-tests: Likewise.
4688         * modules/uninorm/compat-decomposition-tests: Likewise.
4689         * modules/uninorm/composition-tests: Likewise.
4690         * modules/uninorm/decomposing-form-tests: Likewise.
4691         * modules/uninorm/decomposition-tests: Likewise.
4692         * modules/uninorm/filter-tests: Likewise.
4693         * modules/uninorm/nfc-tests: Likewise.
4694         * modules/uninorm/nfd-tests: Likewise.
4695         * modules/uninorm/nfkc-tests: Likewise.
4696         * modules/uninorm/nfkd-tests: Likewise.
4697         * modules/uninorm/u8-normcmp-tests: Likewise.
4698         * modules/uninorm/u8-normcoll-tests: Likewise.
4699         * modules/uninorm/u16-normcmp-tests: Likewise.
4700         * modules/uninorm/u16-normcoll-tests: Likewise.
4701         * modules/uninorm/u32-normcmp-tests: Likewise.
4702         * modules/uninorm/u32-normcoll-tests: Likewise.
4703         * modules/unistdio/u8-asnprintf-tests: Likewise.
4704         * modules/unistdio/u8-vasnprintf-tests: Likewise.
4705         * modules/unistdio/u8-vasprintf-tests: Likewise.
4706         * modules/unistdio/u8-vsnprintf-tests: Likewise.
4707         * modules/unistdio/u8-vsprintf-tests: Likewise.
4708         * modules/unistdio/u16-asnprintf-tests: Likewise.
4709         * modules/unistdio/u16-vasnprintf-tests: Likewise.
4710         * modules/unistdio/u16-vasprintf-tests: Likewise.
4711         * modules/unistdio/u16-vsnprintf-tests: Likewise.
4712         * modules/unistdio/u16-vsprintf-tests: Likewise.
4713         * modules/unistdio/u32-asnprintf-tests: Likewise.
4714         * modules/unistdio/u32-vasnprintf-tests: Likewise.
4715         * modules/unistdio/u32-vasprintf-tests: Likewise.
4716         * modules/unistdio/u32-vsnprintf-tests: Likewise.
4717         * modules/unistdio/u32-vsprintf-tests: Likewise.
4718         * modules/unistdio/ulc-asnprintf-tests: Likewise.
4719         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
4720         * modules/unistdio/ulc-vasprintf-tests: Likewise.
4721         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
4722         * modules/unistdio/ulc-vsprintf-tests: Likewise.
4723         * modules/unistr/u8-check-tests: Likewise.
4724         * modules/unistr/u8-chr-tests: Likewise.
4725         * modules/unistr/u8-cmp-tests: Likewise.
4726         * modules/unistr/u8-cmp2-tests: Likewise.
4727         * modules/unistr/u8-cpy-alloc-tests: Likewise.
4728         * modules/unistr/u8-cpy-tests: Likewise.
4729         * modules/unistr/u8-mblen-tests: Likewise.
4730         * modules/unistr/u8-mbsnlen-tests: Likewise.
4731         * modules/unistr/u8-mbtouc-tests: Likewise.
4732         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
4733         * modules/unistr/u8-mbtoucr-tests: Likewise.
4734         * modules/unistr/u8-move-tests: Likewise.
4735         * modules/unistr/u8-next-tests: Likewise.
4736         * modules/unistr/u8-prev-tests: Likewise.
4737         * modules/unistr/u8-set-tests: Likewise.
4738         * modules/unistr/u8-stpcpy-tests: Likewise.
4739         * modules/unistr/u8-stpncpy-tests: Likewise.
4740         * modules/unistr/u8-strcat-tests: Likewise.
4741         * modules/unistr/u8-strcmp-tests: Likewise.
4742         * modules/unistr/u8-strcoll-tests: Likewise.
4743         * modules/unistr/u8-strcpy-tests: Likewise.
4744         * modules/unistr/u8-strdup-tests: Likewise.
4745         * modules/unistr/u8-strlen-tests: Likewise.
4746         * modules/unistr/u8-strmblen-tests: Likewise.
4747         * modules/unistr/u8-strmbtouc-tests: Likewise.
4748         * modules/unistr/u8-strncat-tests: Likewise.
4749         * modules/unistr/u8-strncmp-tests: Likewise.
4750         * modules/unistr/u8-strncpy-tests: Likewise.
4751         * modules/unistr/u8-strnlen-tests: Likewise.
4752         * modules/unistr/u8-to-u16-tests: Likewise.
4753         * modules/unistr/u8-to-u32-tests: Likewise.
4754         * modules/unistr/u8-uctomb-tests: Likewise.
4755         * modules/unistr/u16-check-tests: Likewise.
4756         * modules/unistr/u16-chr-tests: Likewise.
4757         * modules/unistr/u16-cmp-tests: Likewise.
4758         * modules/unistr/u16-cmp2-tests: Likewise.
4759         * modules/unistr/u16-cpy-alloc-tests: Likewise.
4760         * modules/unistr/u16-cpy-tests: Likewise.
4761         * modules/unistr/u16-mblen-tests: Likewise.
4762         * modules/unistr/u16-mbsnlen-tests: Likewise.
4763         * modules/unistr/u16-mbtouc-tests: Likewise.
4764         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
4765         * modules/unistr/u16-mbtoucr-tests: Likewise.
4766         * modules/unistr/u16-move-tests: Likewise.
4767         * modules/unistr/u16-next-tests: Likewise.
4768         * modules/unistr/u16-prev-tests: Likewise.
4769         * modules/unistr/u16-set-tests: Likewise.
4770         * modules/unistr/u16-stpcpy-tests: Likewise.
4771         * modules/unistr/u16-stpncpy-tests: Likewise.
4772         * modules/unistr/u16-strcat-tests: Likewise.
4773         * modules/unistr/u16-strcmp-tests: Likewise.
4774         * modules/unistr/u16-strcoll-tests: Likewise.
4775         * modules/unistr/u16-strcpy-tests: Likewise.
4776         * modules/unistr/u16-strdup-tests: Likewise.
4777         * modules/unistr/u16-strlen-tests: Likewise.
4778         * modules/unistr/u16-strmblen-tests: Likewise.
4779         * modules/unistr/u16-strmbtouc-tests: Likewise.
4780         * modules/unistr/u16-strncat-tests: Likewise.
4781         * modules/unistr/u16-strncmp-tests: Likewise.
4782         * modules/unistr/u16-strncpy-tests: Likewise.
4783         * modules/unistr/u16-strnlen-tests: Likewise.
4784         * modules/unistr/u16-to-u32-tests: Likewise.
4785         * modules/unistr/u16-to-u8-tests: Likewise.
4786         * modules/unistr/u16-uctomb-tests: Likewise.
4787         * modules/unistr/u32-check-tests: Likewise.
4788         * modules/unistr/u32-chr-tests: Likewise.
4789         * modules/unistr/u32-cmp-tests: Likewise.
4790         * modules/unistr/u32-cmp2-tests: Likewise.
4791         * modules/unistr/u32-cpy-alloc-tests: Likewise.
4792         * modules/unistr/u32-cpy-tests: Likewise.
4793         * modules/unistr/u32-mblen-tests: Likewise.
4794         * modules/unistr/u32-mbsnlen-tests: Likewise.
4795         * modules/unistr/u32-mbtouc-tests: Likewise.
4796         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
4797         * modules/unistr/u32-mbtoucr-tests: Likewise.
4798         * modules/unistr/u32-move-tests: Likewise.
4799         * modules/unistr/u32-next-tests: Likewise.
4800         * modules/unistr/u32-prev-tests: Likewise.
4801         * modules/unistr/u32-set-tests: Likewise.
4802         * modules/unistr/u32-stpcpy-tests: Likewise.
4803         * modules/unistr/u32-stpncpy-tests: Likewise.
4804         * modules/unistr/u32-strcat-tests: Likewise.
4805         * modules/unistr/u32-strcmp-tests: Likewise.
4806         * modules/unistr/u32-strcoll-tests: Likewise.
4807         * modules/unistr/u32-strcpy-tests: Likewise.
4808         * modules/unistr/u32-strdup-tests: Likewise.
4809         * modules/unistr/u32-strlen-tests: Likewise.
4810         * modules/unistr/u32-strmblen-tests: Likewise.
4811         * modules/unistr/u32-strmbtouc-tests: Likewise.
4812         * modules/unistr/u32-strncat-tests: Likewise.
4813         * modules/unistr/u32-strncmp-tests: Likewise.
4814         * modules/unistr/u32-strncpy-tests: Likewise.
4815         * modules/unistr/u32-strnlen-tests: Likewise.
4816         * modules/unistr/u32-to-u16-tests: Likewise.
4817         * modules/unistr/u32-to-u8-tests: Likewise.
4818         * modules/unistr/u32-uctomb-tests: Likewise.
4819         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
4820         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
4821         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
4822         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
4823         * modules/uniwidth/u8-strwidth-tests: Likewise.
4824         * modules/uniwidth/u8-width-tests: Likewise.
4825         * modules/uniwidth/u16-strwidth-tests: Likewise.
4826         * modules/uniwidth/u16-width-tests: Likewise.
4827         * modules/uniwidth/u32-strwidth-tests: Likewise.
4828         * modules/uniwidth/u32-width-tests: Likewise.
4829         * modules/uniwidth/width-tests: Likewise.
4830
4831 2010-05-18  Richard Jones  <rjones@redhat.com>
4832
4833         doc: users.txt: list hivex
4834         * users.txt: Add hivex.
4835
4836 2010-05-18  Richard Jones  <rjones@redhat.com>
4837
4838         doc: users.txt: list febootstrap
4839         * users.txt: Add febootstrap.
4840
4841 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
4842
4843         bootstrap: fix an error when gnulib is not used as a git submodule
4844         * build-aux/bootstrap (gnulib_path): If its length is zero then
4845         assign "gnulib" to it.
4846         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
4847
4848 2010-05-16  Bruno Haible  <bruno@clisp.org>
4849
4850         Avoid autoconf warnings about AM_ICONV.
4851         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
4852         2.64.
4853
4854 2010-05-16  Bruno Haible  <bruno@clisp.org>
4855
4856         absolute-header: Make the macro usable in more situations.
4857         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
4858         from gl_ABSOLUTE_HEADER.
4859         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
4860
4861 2010-05-16  James Youngman  <jay@gnu.org>
4862
4863         doc: update users.txt
4864         * users.txt: Add CSSC.
4865
4866 2010-05-16  Jim Meyering  <meyering@redhat.com>
4867
4868         init.sh: fix an error in the previous change; add more comments
4869         * tests/init.sh: Compare exit code in loop against 9, not 2.
4870         Patch by Bruno Haible.
4871         Make the two tests more similar by adding an empty "then" clause.
4872         Add comments.
4873
4874         init.sh: avoid unnecessary shell re-exec
4875         * tests/init.sh: Improve the re-exec-required check to first test the
4876         current shell.  If it passes the test, do not search for a shell that
4877         does pass, and do not re-exec.  This test is particularly contorted to
4878         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
4879         of $(...) evokes a syntax error and causes immediate shell exit with
4880         status 2.  Bruno Haible reported that the re-exec made it impossible
4881         to single-step through any init.sh-using script.
4882
4883 2010-05-16  Bruno Haible  <bruno@clisp.org>
4884
4885         Fix collision between gnulib's and libintl's printf replacements.
4886         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
4887         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
4888         (printf): When using GNU C, map the __printf__ function to rpl_printf
4889         via __asm__. When not using GNU C, define rpl_printf instead of
4890         __printf__.
4891         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
4892         commit.
4893         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
4894         commit.
4895         * m4/asm-underscore.m4: New file.
4896         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
4897         * modules/stdio (Files): Add m4/asm-underscore.m4.
4898         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
4899         Reported by Ben Pfaff.
4900
4901 2010-05-16  Bruno Haible  <bruno@clisp.org>
4902
4903         verify: Avoid skipping the test on openSUSE 11.0.
4904         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
4905
4906 2010-05-13  Bruno Haible  <bruno@clisp.org>
4907
4908         Avoid useless warnings from G++.
4909         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
4910         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
4911         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4912
4913 2010-05-11  Jim Meyering  <meyering@redhat.com>
4914
4915         maint.mk: tweak preceding change
4916         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
4917         regexps tighter by anchoring at EOL, and make the new group "shy"
4918         for slightly decreased overhead.
4919
4920 2010-05-11  Eric Blake  <eblake@redhat.com>
4921
4922         maint.mk: gnulib doesn't guarantee NSIG
4923         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
4924
4925 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
4926
4927         test-pwrite.c: Remove unused variable declaration.
4928         * tests/test-pwrite.c (main): Remove read_buf declaration.
4929
4930         Remove useless test-pwrite.sh file.
4931         * tests/test-pwrite.sh: Delete file.
4932         * modules/pwrite-tests: Remove references.
4933         Reported by Bruno Haible.
4934
4935 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
4936
4937         init.sh: fix a typo
4938         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
4939
4940 2010-05-10  Jim Meyering  <meyering@redhat.com>
4941
4942         maint.mk: avoid using a temporary file in the always-defined-macros check
4943         * top/maint.mk (.re-defmac): Remove rule.
4944         (gl_trap_): Remove definition.
4945         (sc_prohibit_always-defined_macros): Rewrite not to create and
4946         depend on a temporary file.  Instead, depend on GNU grep's ability
4947         to read a list of regular expressions from stdin when given "-f -".
4948
4949 2010-05-09  Bruno Haible  <bruno@clisp.org>
4950
4951         Update to GNU gettext 0.18, part 1.
4952         * m4/gettext.m4: Update to GNU gettext 0.18.
4953         * m4/intl.m4: Likewise.
4954         * m4/po.m4: Likewise.
4955         * modules/gettext (Files): Add m4/fcntl-o.m4.
4956         (configure.ac): Require gettext infrastructure from version 0.18.
4957
4958 2010-05-09  Jim Meyering  <meyering@redhat.com>
4959
4960         init.sh: enable MALLOC_PERTURB_
4961         * tests/init.sh: Enable glibc's malloc-perturbing option.
4962
4963         maint.mk: improve sc_cross_check_PATH_usage_in_tests
4964         With my recent change in init.sh from the two-line form:
4965             -#   : ${srcdir=.}
4966             -#   . "$srcdir/init.sh"; path_prepend_ .
4967             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
4968         I noticed that using the one-line form would cause this test
4969         to fail with a false-positive, or to stop working altogether,
4970         depending on whether help-version changed or all the tests did.
4971         * top/maint.mk (_hv_regex): Remove this definition.
4972         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
4973         (_hv_regex_strong): Use a stronger regex to check for conformance.
4974         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
4975         Give a separate diagnostic for lack of conforming use.
4976
4977         maint.mk: prohibit definition of symbols defined by gnulib
4978         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
4979         definition of symbols defined by gnulib.
4980
4981 2010-05-09  Bruno Haible  <bruno@clisp.org>
4982
4983         acl: Avoid test failure on Cygwin-hosted mingw.
4984         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
4985
4986 2010-05-09  Bruno Haible  <bruno@clisp.org>
4987
4988         error: Use system's fcntl function.
4989         * lib/error.c (fcntl): Undefine.
4990
4991 2010-05-09  Jim Meyering  <meyering@redhat.com>
4992
4993         verify: adjust formatting to be more consistent
4994         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
4995         argument-list '('s, and after one comma.
4996
4997 2010-05-09  Bruno Haible  <bruno@clisp.org>
4998
4999         error: More reliable output on mingw.
5000         * lib/error.c: Include <windows.h>.
5001         (is_open): New function.
5002         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
5003         defined.
5004
5005 2010-05-09  Bruno Haible  <bruno@clisp.org>
5006
5007         vasnprintf: Fix syntax errors in libintl build on mingw.
5008         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
5009         pad_ourselves and prec_ourselves after use.
5010
5011 2010-05-08  Bruno Haible  <bruno@clisp.org>
5012
5013         * lib/config.charset: Update comments for Cygwin 1.7.
5014         * lib/localcharset.c: Likewise.
5015
5016 2010-05-07  Jim Meyering  <meyering@redhat.com>
5017
5018         init.sh: improve comments
5019         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
5020         . "${srcdir=.}/init.sh"; path_prepend_ .
5021         Add a note about path_prepend_ and the alternative of using
5022         TESTS_ENVIRONMENT.
5023
5024 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
5025
5026         exclude: Unescape hashed patterns in wildcard mode.
5027         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
5028         to the hash list.
5029         * tests/test-exclude8.sh: New test case.
5030         * modules/exclude-tests: Add new test.
5031
5032 2010-05-05  Eric Blake  <eblake@redhat.com>
5033
5034         verify: automate tests
5035         * modules/verify-tests: New module.
5036         * tests/test-verify.sh: New file.
5037         * tests/test-verify.c: Guard each negative test with a unique id.
5038         Also avoid warning about unused left hand of comma expressions.
5039
5040 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5041
5042         Further improvements to verify.h, suggested by Eric Blake.
5043         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
5044         the GL_* versions, to avoid collision with OpenGL.
5045         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
5046         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
5047         than testing merely whether it's defined.
5048
5049         Modify verify.h to pacify gcc -Wredundant_decls.
5050         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
5051         These use the prefix "GL_" since they're likely to be useful elsewhere.
5052         We may need to break them out into a different .h file.
5053         (__COUNTER__): Define to 0 if the compiler doesn't support it.
5054         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
5055         of verify_function__.
5056
5057 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5058
5059         Tests for module pwrite.
5060         * modules/pwrite-tests: New file.
5061         * tests/test-pwrite.sh: New file.
5062         * tests/test-pwrite.c: New file.
5063
5064         New module pwrite.
5065         * lib/unistd.in.h (pwrite): New declaration.
5066         * lib/pwrite.c: New file, from glibc with modifications.
5067         * m4/pwrite.m4: New file.
5068         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
5069         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
5070         REPLACE_PWRITE.
5071         * modules/pwrite: New file.
5072         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
5073         REPLACE_PWRITE.
5074         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
5075         * doc/posix-functions/pwrite.texi: Mention the new module.
5076
5077 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5078
5079         pread: Update documentation.
5080         * doc/posix-functions/pread.texi: Mention the 'pread' module.
5081
5082 2010-05-04  Eric Blake  <eblake@redhat.com>
5083
5084         docs: update cygwin progress
5085         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
5086         this bug.
5087         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
5088         Added in cygwin 1.7.2.
5089         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
5090         Likewise.
5091         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
5092         Likewise.
5093         * doc/glibc-functions/dup3.texi (dup3): Likewise.
5094         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5095         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5096         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
5097         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
5098         Mention nproc module.
5099         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
5100         bug in cygwin 1.7.5 addition.
5101         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
5102         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
5103         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
5104         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
5105         1.7.5.
5106         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
5107         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
5108         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
5109         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
5110         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
5111         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
5112         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
5113         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
5114         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
5115         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
5116         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
5117         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
5118         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
5119         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
5120         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
5121         Likewise.
5122         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
5123         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
5124         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
5125         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
5126         Likewise.
5127         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
5128         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
5129         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
5130         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
5131         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
5132         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
5133         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
5134         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
5135         Likewise.
5136         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
5137         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
5138         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
5139         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
5140         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
5141         Likewise.
5142         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
5143         Likewise.
5144         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
5145         Likewise.
5146         * doc/glibc-functions/xdrrec_endofrecord.texi
5147         (xdrrec_endofrecord): Likewise.
5148         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
5149         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
5150         Likewise.
5151         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
5152         Likewise.
5153
5154 2010-05-04  Jim Meyering  <meyering@redhat.com>
5155
5156         gendocs.sh: make its "-s FILE" option more useful
5157         * build-aux/gendocs.sh: When honoring the -s FILE option, update
5158         $PACKAGE to reflect the probably-different basename of "FILE".
5159
5160 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
5161
5162         bootstrap: don't ignore download_po_files failure
5163         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
5164         failure.
5165
5166 2010-05-03  Jim Meyering  <meyering@redhat.com>
5167
5168         maint.mk: allow to pass options to gendocs.sh
5169         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
5170         (gendocs_options_): New overridable variable.
5171
5172         gnu-web-doc-update: don't ignore configure or build failure
5173         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
5174
5175         announce-gen: backslash-escape '@'s in --help output
5176         * build-aux/announce-gen: Fix syntax errors.
5177
5178         maint.mk, announce-gen: allow project-specific announcement mail headers
5179         * top/maint.mk (translation_project_): Define default.
5180         (announcement_Cc_, announcement_mail_headers_): Likewise.
5181         (announcement): Invoke announce-gen with new --mail-headers option.
5182         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
5183
5184         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
5185         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
5186         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
5187         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
5188         line in the "err2" output file when running "make check" in verbose
5189         mode (i.e., with set -x enabled).
5190
5191 2010-05-03  Bruno Haible  <bruno@clisp.org>
5192
5193         wctob: Fix for weird platforms.
5194         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
5195         argument value.
5196
5197 2010-05-03  Jim Meyering  <meyering@redhat.com>
5198
5199         maint.mk: prohibit unwarranted use of <strings.h>
5200         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
5201         strings.h in a file that does not also use strcasecmp, strncasecmp,
5202         ffs or ffsll.
5203
5204         maint.mk: remove obsolete comments
5205         * top/maint.mk: Remove stale, commented-out rules.
5206
5207 2010-05-02  Bruno Haible  <bruno@clisp.org>
5208
5209         wcwidth: Declare also when it's aliased.
5210         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
5211         macro.
5212
5213 2010-05-02  Bruno Haible  <bruno@clisp.org>
5214
5215         Fix regression from 2010-04-25.
5216         * gnulib-tool (func_modules_transitive_closure): Check the status of
5217         all modules, not only of the tests that are of the form foo-tests where
5218         foo is a module.
5219
5220 2010-05-02  Bruno Haible  <bruno@clisp.org>
5221
5222         wctob: Work around nasty Cygwin 1.7.2 bug.
5223         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
5224         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
5225
5226 2010-05-01  Bruno Haible  <bruno@clisp.org>
5227
5228         fpurge: Sharper test.
5229         * tests/test-fpurge.c (main): Add one more ftell check.
5230         * modules/fpurge-tests (Depends-on): Add ftell.
5231         Suggested by Eric Blake.
5232
5233 2010-05-01  Bruno Haible  <bruno@clisp.org>
5234
5235         ftello: Another test.
5236         * tests/test-ftello3.c: New file.
5237         * modules/ftello-tests (Files): Add it.
5238         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5239         MOSTLYCLEANFILES.
5240
5241         ftell: Another test.
5242         * tests/test-ftell3.c: New file.
5243         * modules/ftell-tests (Files): Add it.
5244         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5245         MOSTLYCLEANFILES.
5246
5247 2010-05-01  Bruno Haible  <bruno@clisp.org>
5248
5249         ftell, ftello: Work around Solaris bug.
5250         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
5251         * lib/ftello.c: Include stdio-impl.h.
5252         (ftello): On Solaris, when _IOWRT is set, compute the result without
5253         looking at _IOREAD.
5254         * modules/ftello (Files): Add lib/stdio-impl.h.
5255         * doc/posix-functions/ftell.texi: Mention Solaris bug.
5256         * doc/posix-functions/ftello.texi: Likewise.
5257         Reported by Eric Blake.
5258
5259 2010-05-01  Bruno Haible  <bruno@clisp.org>
5260
5261         freading: Adapt to special meaning of _IOREAD flag on Solaris.
5262         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
5263         the _IOWRT flag is also set.
5264
5265 2010-05-01  Bruno Haible  <bruno@clisp.org>
5266
5267         Fix doc about a HP-UX stdio bug.
5268         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
5269         * doc/posix-functions/ftello.texi: Likewise.
5270
5271 2010-05-01  Bruno Haible  <bruno@clisp.org>
5272
5273         lseek test: Fix failure on Solaris.
5274         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
5275         output.
5276
5277 2010-04-30  Jim Meyering  <meyering@redhat.com>
5278
5279         bootstrap: don't ignore failure to generate po*/Makevars
5280         * build-aux/bootstrap (with_gettext): Don't ignore failure
5281         to create po/Makevars or runtime-po/Makevars.
5282
5283 2010-04-29  Eric Blake  <eblake@redhat.com>
5284
5285         headers: relax license to LGPLv2+
5286         * modules/fcntl-h (License): Relax license.
5287         * modules/getopt-posix (License): Likewise.
5288         * modules/locale (License): Likewise.
5289         * modules/math (License): Likewise.
5290         * modules/pty (License): Likewise.
5291         * modules/sched (License): Likewise.
5292         * modules/search (License): Likewise.
5293         * modules/spawn (License): Likewise.
5294         * modules/stdarg (License): Likewise.
5295         * modules/sysexits (License): Likewise.
5296
5297 2010-04-29  Jim Meyering  <meyering@redhat.com>
5298
5299         inttypes: relax license to LGPLv2+
5300         * modules/inttypes (License): Relax license.
5301
5302 2010-04-29  Simon Josefsson  <simon@josefsson.org>
5303
5304         * top/maint.mk (indent): Run twice to produce idempotent results.
5305
5306 2010-04-28  Bruno Haible  <bruno@clisp.org>
5307
5308         getdate: Generate getdate.c in the source directory.
5309         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
5310         MOSTLYCLEANFILES.
5311         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
5312
5313 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
5314
5315         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
5316         is not declared as a const *; avoid warnings in that case.
5317
5318 2010-04-28  Eric Blake  <eblake@redhat.com>
5319
5320         canonicalize-lgpl: avoid compiler warning
5321         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
5322         declaration' / 'extraneous semicolon' warning with some compilers.
5323         Reported by Andreas Gruenbacher.
5324
5325 2010-04-28  Jim Meyering  <meyering@redhat.com>
5326
5327         init.sh: ensure a more reliable exit status when exiting via trap
5328         * tests/init.sh (setup_): Don't rely on $? in signal handler.
5329         Inspired by patches from Dmitry V. Levin.
5330         Also trap on signal 3 (SIGQUIT).
5331
5332 2010-04-27  Bruno Haible  <bruno@clisp.org>
5333
5334         Update doc about utimes().
5335         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
5336         'utimens' module.
5337         Reported by Andreas Gruenbacher <agruen@suse.de>.
5338
5339 2010-04-27  Eric Blake  <eblake@redhat.com>
5340
5341         full-read, full-write: relax license
5342         * modules/full-read (License): Drop to LGPLv2+.
5343         * modules/full-write (License): Likewise.
5344         * modules/safe-read (License): Likewise.
5345         * modules/safe-write (License): Likewise.
5346
5347         pthread: mention library for linking
5348         * modules/pthread (Link): Mention $(LIB_PTHREAD).
5349
5350 2010-04-27  Jim Meyering  <meyering@redhat.com>
5351
5352         maint.mk: fix a bug introduced in last change
5353         * top/maint.mk (gl_assured_headers_): Now that all names are on
5354         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
5355         is not anchored to end of word, it should be adequate.
5356
5357         maint.mk: avoid side-effect in latest syntax-check
5358         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
5359         to run commands via $(shell...), and hence to incur cost only when
5360         the new rule is actually run.
5361
5362         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
5363         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
5364         and use that to create a regexp used to detect all #if HAVE_..._H uses.
5365         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
5366         (gl_assured_headers_, az_, AZ_): Define.
5367         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
5368
5369 2010-04-26  Jim Meyering  <jim@meyering.net>
5370             Bruno Haible  <bruno@clisp.org>
5371
5372         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
5373         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
5374         Prompted by an exchange with Gilles Espinasse.
5375
5376 2010-04-26  Jim Meyering  <meyering@redhat.com>
5377
5378         git-version-gen: aesthetic tweak
5379         * build-aux/git-version-gen: Use "$nl" rather than a literal,
5380         so that the command remains on a single line.
5381
5382 2010-04-26  Eric Blake  <eblake@redhat.com>
5383
5384         git-version-gen: allow use on EBCDIC hosts
5385         * build-aux/git-version-gen (dirty): Use literal rather than tying
5386         ourselves to ascii.
5387         Reported by Steve Goetze.
5388
5389 2010-04-25  Bruno Haible  <bruno@clisp.org>
5390
5391         netdb: Add support for GNULIB_POSIXCHECK.
5392         * lib/netdb.in.h: Include warn-on-use.h.
5393         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
5394         functions are used when GNULIB_POSIXCHECK is defined and the
5395         getaddrinfo module is not in use.
5396         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
5397         freeaddrinfo, gai_strerror, getnameinfo are declared.
5398         * modules/netdb (Depends-on): Add warn-on-use.
5399         (Makefile.am): Include warn-on-use.h in netdb.h.
5400
5401 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
5402
5403         build: avoid "make check" failure without .git/ directory
5404         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
5405         there is no .git/ directory.
5406
5407 2010-04-25  Bruno Haible  <bruno@clisp.org>
5408
5409         ptsname: Fix misuse of ttyname_r.
5410         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
5411         of errno.
5412
5413 2010-04-25  Bruno Haible  <bruno@clisp.org>
5414
5415         ttyname_r: Make it work on Solaris 10.
5416         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
5417         if the system function has the POSIX declaration. Test whether the
5418         function fails if the buffer is less than 128 bytes large.
5419         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
5420         system's ttyname_r function. Provide a reasonably large buffer.
5421         * modules/ttyname_r (Depends-on): Add extensions.
5422         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
5423
5424 2010-04-25  Bruno Haible  <bruno@clisp.org>
5425
5426         Use the 'extensions' module for some more functions on Solaris.
5427         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
5428         module.
5429         * doc/posix-functions/ctime_r.texi: Likewise.
5430         * doc/posix-functions/getgrgid_r.texi: Likewise.
5431         * doc/posix-functions/getgrnam_r.texi: Likewise.
5432         * doc/posix-functions/getpwnam_r.texi: Likewise.
5433         * doc/posix-functions/getpwuid_r.texi: Likewise.
5434         * doc/posix-functions/readdir_r.texi: Likewise.
5435         * doc/posix-functions/sigwait.texi: Likewise.
5436         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
5437         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
5438
5439 2010-04-25  Bruno Haible  <bruno@clisp.org>
5440
5441         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
5442         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
5443         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
5444         * lib/ttyname_r.c: Include <limits.h>.
5445         (ttyname_r): Define using the system's ttyname_r function, if it exists
5446         and not on Solaris.
5447         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
5448         set.
5449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
5450         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
5451         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
5452         Reported by Simon Josefsson.
5453
5454 2010-04-25  Bruno Haible  <bruno@clisp.org>
5455
5456         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
5457         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
5458         * doc/posix-functions/ctime_r.texi: Likewise.
5459         * doc/posix-functions/getgrgid_r.texi: Likewise.
5460         * doc/posix-functions/getgrnam_r.texi: Likewise.
5461         * doc/posix-functions/getlogin_r.texi: Likewise.
5462         * doc/posix-functions/getpwnam_r.texi: Likewise.
5463         * doc/posix-functions/getpwuid_r.texi: Likewise.
5464         * doc/posix-functions/readdir_r.texi: Likewise.
5465         * doc/posix-functions/sigwait.texi: Likewise.
5466         * doc/posix-functions/ttyname_r.texi: Likewise.
5467         Reported by Simon Josefsson.
5468
5469 2010-04-25  Bruno Haible  <bruno@clisp.org>
5470
5471         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
5472         * gnulib-tool (func_usage): Document that --with-*-tests options apply
5473         also to --create-testdir.
5474         (func_acceptable): Don't consider the status of *-tests modules here.
5475         (func_modules_transitive_closure): Consider it here, before including a
5476         test module.
5477         (func_import, func_create_testdir): Set inc_all_direct_tests,
5478         inc_all_indirect_tests.
5479         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
5480         --create-testdir and --create-megatestdir.
5481
5482 2010-04-25  Bruno Haible  <bruno@clisp.org>
5483
5484         gnulib-tool: Add --without-*-tests options.
5485         * gnulib-tool (func_usage): Document the --without-*-tests options.
5486         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
5487         excl_unportable_tests): New variables.
5488         Fail if they are specified with --import or --update.
5489         (func_acceptable): Respect the excl_*_tests variables.
5490         (func_import): Set the excl_*_tests variables to empty.
5491
5492 2010-04-25  Simon Josefsson  <simon@josefsson.org>
5493             Bruno Haible  <bruno@clisp.org>
5494
5495         Work around a MacOS X 10.4 bug with openpty.
5496         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
5497         * tests/test-openpty.c (main): Close the master side explicitly.
5498
5499 2010-04-25  Bruno Haible  <bruno@clisp.org>
5500
5501         strnlen: Fix a C++ test error on MacOS X and Solaris.
5502         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
5503         the function is not declared.
5504         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
5505         Simon Josefsson.
5506
5507 2010-04-24  Bruno Haible  <bruno@clisp.org>
5508
5509         Avoid a gcc warning.
5510         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
5511         of correct type for %08lx directive.
5512         Reported by Eric Blake.
5513
5514 2010-04-24  Bruno Haible  <bruno@clisp.org>
5515
5516         vasnprintf: Correct errno value in case of out-of-memory.
5517         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
5518         or sprintf. Use the errno value from SNPRINTF or sprintf.
5519         Reported by Ian Beckwith <ianb@erislabs.net>.
5520
5521 2010-04-24  Bruno Haible  <bruno@clisp.org>
5522
5523         ansi-c++-opt: Find correct compiler when cross-compiling.
5524         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
5525         AC_CHECK_PROGS.
5526         Reported by Simon Josefsson.
5527
5528 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
5529
5530         vc-list-files: Add support for subversion
5531         * build-aux/vc-list-files: Use "svn list" to generate the list of
5532         files controlled by subversion.
5533
5534 2010-04-23  Jim Meyering  <meyering@redhat.com>
5535
5536         vc-list-files tests: convert to use init.sh
5537         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
5538         path_prepend_.
5539         Use Exit, not exit.
5540         Use skip_ rather than open coding it.
5541         Remove trap set-up and compare definitions.
5542         * tests/test-vc-list-files-git.sh: Likewise.
5543         * modules/vc-list-files-tests (Files): Add tests/init.sh.
5544
5545 2010-04-22  Simon Josefsson  <simon@josefsson.org>
5546
5547         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
5548         backup files.
5549
5550 2010-04-21  Simon Josefsson  <simon@josefsson.org>
5551
5552         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
5553
5554 2010-04-20  Eric Blake  <eblake@redhat.com>
5555
5556         tests: be robust to ignored SIGPIPE
5557         * tests/test-select-in.sh: Consume all output.
5558         * tests/test-lseek.sh: Check correct exit status, while avoiding
5559         EPIPE.
5560
5561 2010-04-20  Simon Josefsson  <simon@josefsson.org>
5562             Bruno Haible  <bruno@clisp.org>
5563
5564         visibility: Don't use -fvisibility if it leads to a warning.
5565         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
5566         yes, don't pretend that visibility works if it leads to a warning.
5567         Reported by Mike Gran <spk121@yahoo.com>.
5568
5569 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
5570
5571         * build-aux/bootstrap: Use "git -h" for testing for supported options
5572         instead of "git --help".  The short-form option only shows a summary,
5573         and doesn't layout the full man page.  Grep for the full option name
5574         in the summary, too.
5575
5576 2010-04-19  Bruno Haible  <bruno@clisp.org>
5577
5578         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
5579         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
5580         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
5581         mention of RELOCATABLE_STRIP.
5582         Reported by Sylvain Beucler <beuc@beuc.net>.
5583
5584 2010-04-19  Bruno Haible  <bruno@clisp.org>
5585
5586         * lib/diffseq.h: Fix typo in comment.
5587         Reported by Eric Blake.
5588
5589 2010-04-19  Bruno Haible  <bruno@clisp.org>
5590
5591         ioctl: Move autoconf macro to a .m4 file.
5592         * m4/ioctl.m4: New file, extracted from modules/ioctl.
5593         * modules/ioctl (Files): Add it.
5594         (configure.ac): Simply invoke gl_FUNC_IOCTL.
5595         Reported by Ian Beckwith <ianb@erislabs.net>.
5596
5597 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
5598             Bruno Haible  <bruno@clisp.org>
5599
5600         diffseq: Accommodate use-case with abstract arrays.
5601         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
5602         is not defined.
5603         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
5604         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
5605
5606 2010-04-18  Bruno Haible  <bruno@clisp.org>
5607
5608         * doc/posix-headers/stdbool.texi: More precise wording.
5609
5610 2010-04-17  Jim Meyering  <meyering@redhat.com>
5611
5612         maint.mk: use gnu-style indentation in an embedded perl script
5613         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
5614         Rename variable: s/two/last_two_bytes/
5615
5616 2010-04-16  Eric Blake  <eblake@redhat.com>
5617
5618         test-stdbool: skip test that fails with Solaris CC
5619         * tests/test-stdbool.c (f): Skip test that causes compilation
5620         error under buggy C++ compiler.
5621         * lib/stdbool.in.h: Document the limitation.
5622         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
5623
5624         setenv: allow compilation with C++
5625         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
5626         register keyword.
5627
5628         stdint: allow test to pass with C++
5629         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
5630
5631         getopt: allow compilation with C++
5632         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
5633         struct.
5634         * lib/getopt.c (_getopt_internal_r): Use correct type.
5635         Reported by Dagobert Michelson, via Joel E. Denny.
5636
5637 2010-04-16  Bruno Haible  <bruno@clisp.org>
5638
5639         Override netdb.h always.
5640         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
5641         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
5642         Reported by Ludovic Courtès <ludo@gnu.org>.
5643
5644 2010-04-15  Bruno Haible  <bruno@clisp.org>
5645
5646         openpty: Fix mistake from 2010-03-21.
5647         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
5648         Reported by Simon Josefsson.
5649
5650 2010-04-15  Eric Blake  <eblake@redhat.com>
5651
5652         test-forkpty: fix expected signature
5653         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
5654         Reported by Simon Josefsson.
5655
5656 2010-04-15  Jim Meyering  <meyering@redhat.com>
5657
5658         maint.mk: texinfo_suffix_re_: correct the default regexp
5659         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
5660
5661         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
5662         make it configurable via texinfo_suffix_re_.
5663
5664 2010-04-14  Eric Blake  <eblake@redhat.com>
5665
5666         strtok_r: relax license to LGPLv2+
5667         * modules/strtok_r (License): Relax license.
5668         Reported by Matthias Bolte.
5669
5670 2010-04-14  Simon Josefsson  <simon@josefsson.org>
5671
5672         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
5673         version 1.4.4 by default instead of requiring the libgcrypt
5674         version used during build.  This makes it possible to use the
5675         application with older but still binary compatible libgcrypt
5676         versions.
5677
5678 2010-04-13  Eric Blake  <eblake@redhat.com>
5679
5680         getopt-gnu: match recent glibc fixes and posix ruling
5681         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
5682         '+' handling, when requesting extensions.
5683         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
5684         'W;' handling.
5685         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
5686         * doc/posix-functions/getopt.texi (getopt): Document this.
5687         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5688         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5689         Likewise.
5690
5691         getopt: merge bug fixes from glibc
5692         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
5693         diagnostics.  Honor '+:' correctly.  Reject ';'.
5694
5695         getopt-posix: detect MacOS bug
5696         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
5697         optind when missing a required argument.
5698         * doc/posix-functions/getopt.texi (getopt): Document the bug.
5699         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5700         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5701         Likewise.
5702
5703         getopt-posix: avoid spurious failure on Solaris
5704         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
5705         an indicator that setting optind=1 is sufficient for reset.
5706
5707         getopt-posix: avoid spurious failure on FreeBSD
5708         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
5709         in POSIX mode, since the m4 test uses it.
5710
5711         gnulib-tool: silence warning on BSD sh
5712         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
5713
5714 2010-04-13  Jim Meyering  <meyering@redhat.com>
5715
5716         doc: users.txt: GNU patch now uses gnulib
5717         * users.txt: Add patch.
5718
5719 2010-04-12  Jim Meyering  <meyering@redhat.com>
5720
5721         maint.mk: generate more concise timing data for syntax-check rules
5722         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
5723         " done" from each line that reports a syntax-check test duration.
5724
5725 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
5726
5727         git-version-gen: use "git update-index..." rather than "git status"
5728         * build-aux/git-version-gen: Use git update-index --refresh, not
5729         "git status".  With some versions of git, "git status" would fail
5730         to update the index and result in an unwarranted "-dirty" suffix.
5731
5732 2010-04-11  Jim Meyering  <meyering@redhat.com>
5733
5734         openat: correct formatting (no semantic change)
5735         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
5736         Suggested by Bruno Haible.
5737
5738 2010-04-11  Bruno Haible  <bruno@clisp.org>
5739
5740         Stricter declaration checking in testdirs.
5741         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5742         If for_tests is true, augment AM_CPPFLAGS to define
5743         GNULIB_STRICT_CHECKING.
5744         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
5745         GNULIB_STRICT_CHECKING is defined, verify that the function is
5746         declared.
5747
5748 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
5749             Bruno Haible  <bruno@clisp.org>
5750
5751         libunistring: Improve configure output.
5752         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
5753         Don't say "consider installing GNU libunistring" when checking again
5754         with libiconv.
5755
5756 2010-04-11  Bruno Haible  <bruno@clisp.org>
5757
5758         libunistring: Correct value of $LTLIBUNISTRING.
5759         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
5760         correct the value of $LTLIBUNISTRING.
5761
5762 2010-04-11  Bruno Haible  <bruno@clisp.org>
5763
5764         havelib: Add static libraries to LIBS in the right order.
5765         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
5766         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
5767
5768 2010-04-11  Bruno Haible  <bruno@clisp.org>
5769
5770         libunistring: Detect libunistring also when it depends on libiconv.
5771         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
5772         the second AC_LIB_HAVE_LINKFLAGS invocation.
5773
5774 2010-04-11  James Youngman  <jay@gnu.org>
5775
5776         close-stream: declare local scalars to be "const"
5777         * lib/close-stream.c (close_stream): Make boolean variables const
5778         to document the fact that we set but do not change them.
5779
5780 2010-04-11  Bruno Haible  <bruno@clisp.org>
5781
5782         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
5783
5784 2010-04-11  Jim Meyering  <meyering@redhat.com>
5785
5786         maint.mk: don't include dist-check.mk
5787         * top/maint.mk: Remove bogus include directive.
5788
5789         maint.mk: improve empty-line-at-EOF check
5790         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
5791         solution, rather than tail+Perl-based one.  The latter would read
5792         a few kilobytes from the end of each file, and did not handle empty
5793         files properly.
5794
5795         maint.mk: print the elapsed time for each syntax-check rule
5796         * top/maint.mk (sc_m_rules_): Save start time in a file.
5797         (sc_z_rules_): New rules: remove temp file and print elapsed time.
5798         (local-check): Interpose the .z rules
5799
5800 2010-04-11  Jim Meyering  <meyering@redhat.com>
5801
5802         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
5803         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
5804         empty file with one that ends in an empty line.
5805
5806 2010-04-10  Bruno Haible  <bruno@clisp.org>
5807
5808         mkdir: Make it work on mingw64.
5809         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
5810         * lib/mkdir.c: Update comment.
5811         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
5812
5813 2010-04-10  Bruno Haible  <bruno@clisp.org>
5814
5815         Don't override improved macro from newer autoconf.
5816         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
5817         autoconf >= 2.62.
5818         Reported by Joel E. Denny <jdenny@clemson.edu>.
5819
5820 2010-04-10  Jim Meyering  <meyering@redhat.com>
5821
5822         maint.mk: new syntax-check rule: prohibit empty lines at end of file
5823         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
5824
5825         maint.mk: correct a diagnostic
5826         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
5827         in diagnostic; now use $prohibit.
5828
5829 2010-04-10  Bruno Haible  <address@hidden>
5830
5831         fchownat: Fix a C++ test error on Solaris 8.
5832         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
5833         the function does not exist.
5834
5835 2010-04-10  Bruno Haible  <bruno@clisp.org>
5836
5837         vasnprintf: Add more tests.
5838         * tests/test-vasnprintf-posix.c: Include <errno.h>.
5839         (test_function): Test converting an invalid wide string.
5840
5841         vasnprintf: Correct handling of unconvertible wide string arguments.
5842         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
5843         VASNPRINTF.
5844         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
5845         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
5846         smaller than the expected maximum need for the directive. Set errno to
5847         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
5848         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
5849         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
5850         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
5851         * modules/vasnprintf (Files): Add m4/printf.m4.
5852         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5853
5854 2010-04-10  Bruno Haible  <bruno@clisp.org>
5855
5856         vasnprintf: Fix crash in %ls directive.
5857         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
5858         string is passed as argument to %ls, with no precision and no width.
5859         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5860
5861 2010-04-10  Bruno Haible  <bruno@clisp.org>
5862
5863         vasnprintf: Fix multiple test failures on mingw.
5864         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
5865         _snprintf, or snwprintf, not _snwprintf.
5866
5867 2010-04-10  Bruno Haible  <bruno@clisp.org>
5868
5869         write: Fix a C++ test error on mingw.
5870         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
5871
5872 2010-04-10  Bruno Haible  <bruno@clisp.org>
5873
5874         vasnprintf test: Reduce code duplication.
5875         * tests/test-vasnprintf.c (test_function): New function, extracted from
5876         test_vasnprintf.
5877         (test_vasnprintf, test_asnprintf): Invoke it.
5878
5879 2010-04-10  Bruno Haible  <bruno@clisp.org>
5880
5881         strnlen: Fix warning in C++ mode on MacOS X.
5882         * lib/string.in.h (strnlen): Use the modern idiom.
5883         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
5884         defining strnlen as a macro already in <config.h>.
5885         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5886         REPLACE_STRNLEN.
5887         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
5888         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5889
5890 2010-04-08  James Youngman  <jay@gnu.org>
5891
5892         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
5893         the example.
5894
5895 2010-04-09  Jim Meyering  <meyering@redhat.com>
5896
5897         maint.mk: print better diagnostic when there is no $(_hv_file)
5898         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
5899         announce that when $(_hv_file) (aka help-version) does not exist.
5900
5901         init.sh: run tr in the "C" locale to avoid multibyte interpretation
5902         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
5903         not try to interpret its random input bytes.  Jarno Rajahalme reported
5904         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
5905         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
5906         (mktempd_): Likewise, just in case.
5907
5908         ftruncate: add two years to projected module removal date: 2012
5909         * m4/ftruncate.m4: Adjust comments.
5910
5911         ftruncate: mark module as obsolete; even MinGW provides it, now
5912         * modules/ftruncate (Status): Obsolete.
5913         (Notice): Say that.
5914         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
5915         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
5916
5917 2010-04-08  Bruno Haible  <bruno@clisp.org>
5918
5919         Fix side effects from tests-related modules.
5920         * modules/dprintf-posix (Comment): New section.
5921         * modules/fprintf-posix (Comment): Likewise.
5922         * modules/obstack-printf-posix (Comment): Likewise.
5923         * modules/printf-posix (Comment): Likewise.
5924         * modules/snprintf-posix (Comment): Likewise.
5925         * modules/sprintf-posix (Comment): Likewise.
5926         * modules/vasnprintf-posix (Comment): Likewise.
5927         * modules/vasprintf-posix (Comment): Likewise.
5928         * modules/vdprintf-posix (Comment): Likewise.
5929         * modules/vfprintf-posix (Comment): Likewise.
5930         * modules/vprintf-posix (Comment): Likewise.
5931         * modules/vsnprintf-posix (Comment): Likewise.
5932         * modules/vsprintf-posix (Comment): Likewise.
5933         * modules/xprintf-posix (Comment): Likewise.
5934         * modules/xvasprintf-posix (Comment): Likewise.
5935         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
5936         * modules/floorf-tests (Depends-on): Likewise.
5937         * modules/round-tests (Depends-on): Likewise.
5938         * modules/roundf-tests (Depends-on): Likewise.
5939         * modules/trunc-tests (Depends-on): Likewise.
5940         * modules/truncf-tests (Depends-on): Likewise.
5941         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
5942         'fprintf-posix' module is not present.
5943         * tests/test-floorf2.c (check): Likewise.
5944         * tests/test-trunc2.c (check): Likewise.
5945         * tests/test-truncf2.c (check): Likewise.
5946         * tests/test-round2.c (equal): Likewise.
5947         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5948
5949 2010-04-07  Karl Berry  <karl@gnu.org>
5950
5951         * config/srclist.txt,
5952         * config/srclistvars.sh,
5953         * config/srclist-update: doc fixes.
5954
5955 2010-04-07  Jim Meyering  <meyering@redhat.com>
5956
5957         maint.mk: add a PATH crosschecking syntax-check rule
5958         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
5959         Useful if you use a test like the one in help-version (coreutils,
5960         diffutils, grep, gzip) that ensures $(VERSION) matches what is
5961         printed by prog --version.
5962
5963 2010-04-06  Bruno Haible  <bruno@clisp.org>
5964
5965         Fix link error on mingw.
5966         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
5967         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
5968
5969 2010-04-06  Bruno Haible  <bruno@clisp.org>
5970
5971         Assume rmdir exists.
5972         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
5973
5974 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
5975
5976         doc: update users.txt
5977         * users.txt: Add gcal.
5978
5979 2010-04-06  Jim Meyering  <meyering@redhat.com>
5980
5981         init.sh: simply unset TMPDIR rather than risking env -i
5982         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
5983         although it probably works fine on all Unix-based systems, some
5984         systems (Cygwin?) cannot tolerate a totally cleared environment.
5985         Suggestion from Eric Blake.
5986
5987 2010-04-06  Jim Meyering  <meyering@redhat.com>
5988
5989         init.sh: portability fix: use env's POSIX-specified -i option not -u
5990         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
5991         than unportable env -u.  Solaris 5.11's env lacks support for -u.
5992
5993 2010-04-05  Bruno Haible  <bruno@clisp.org>
5994
5995         btowc: Work around Cygwin 1.7.2 bug.
5996         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
5997         does not map NUL to 0.
5998         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
5999
6000 2010-04-05  Bruno Haible  <bruno@clisp.org>
6001
6002         Make the multithread modules work on Cygwin 1.7.2.
6003         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
6004         imported symbols can be declared weak, so that it returns "no" on
6005         Cygwin 1.7.2.
6006
6007 2010-04-05  Bruno Haible  <bruno@clisp.org>
6008
6009         Use the module 'strncat'.
6010         * modules/unistr/u8-strncat (Depends-on): Add strncat.
6011
6012         Tests for module 'strncat'.
6013         * modules/strncat-tests: New file.
6014         * tests/test-strncat.c: New file.
6015
6016         New module 'strncat'.
6017         * lib/string.in.h (strncat): New declaration.
6018         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
6019         * m4/strncat.m4: New file, based on m4/memchr.m4.
6020         * modules/strncat: New file.
6021         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
6022         is declared.
6023         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
6024         REPLACE_STRNCAT.
6025         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
6026         REPLACE_STRNCAT.
6027         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
6028         module.
6029         * tests/test-string-c++.cc: Check signature of strncat.
6030
6031 2010-04-05  Jim Meyering  <meyering@redhat.com>
6032
6033         xstrtoumax-tests: convert to use init.sh
6034         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
6035         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6036         Use Exit, not exit.
6037         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6038
6039         xstrtoimax-tests: convert to use init.sh
6040         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
6041         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6042         Use Exit, not exit.
6043         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6044
6045 2010-04-05  Bruno Haible  <bruno@clisp.org>
6046
6047         sys_socket: Avoid #define replacements in C++ mode.
6048         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
6049         warning to the function if possible, rather than #defining the symbol
6050         to a dysfunctional alias.
6051
6052 2010-04-05  Bruno Haible  <bruno@clisp.org>
6053
6054         fseeko: Fix C++ test error on mingw.
6055         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
6056         gl_FUNC_FSEEKO.
6057         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
6058         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
6059         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
6060         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
6061
6062 2010-04-05  Bruno Haible  <bruno@clisp.org>
6063
6064         duplocale: Improve test output.
6065         * tests/test-duplocale.c (main): Print reason for skipped test.
6066
6067 2010-04-05  Bruno Haible  <bruno@clisp.org>
6068
6069         Assume rmdir exists.
6070         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
6071         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
6072
6073 2010-04-05  Bruno Haible  <bruno@clisp.org>
6074
6075         Fix link error on Solaris 8 with cc.
6076         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
6077
6078 2010-04-05  Bruno Haible  <bruno@clisp.org>
6079
6080         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6081         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
6082
6083 2010-04-05  Bruno Haible  <bruno@clisp.org>
6084
6085         vasprintf: Update documentation.
6086         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
6087
6088 2010-04-05  Bruno Haible  <bruno@clisp.org>
6089
6090         ptsname: Improve test.
6091         * tests/test-ptsname.c (main): Also try the various master names of BSD
6092         systems.
6093
6094 2010-04-05  Bruno Haible  <bruno@clisp.org>
6095
6096         memchr: Avoid a possible C++ test error.
6097         * lib/string.in.h (memchr): Provide declaration if function is missing.
6098         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
6099         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
6100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
6101         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
6102
6103 2010-04-05  Bruno Haible  <bruno@clisp.org>
6104
6105         strtok_r: Improve idiom.
6106         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
6107         AC_LIBOBJ is used.
6108
6109 2010-04-05  Bruno Haible  <bruno@clisp.org>
6110
6111         strdup: Improve idiom.
6112         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
6113         AC_LIBOBJ is used.
6114         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
6115         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
6116         when AC_LIBOBJ is used.
6117
6118 2010-04-05  Bruno Haible  <bruno@clisp.org>
6119
6120         mbsinit, mbrtowc, wcrtomb: Improve idioms.
6121         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
6122         don't set REPLACE_MBSINIT to 1.
6123         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
6124         don't set REPLACE_MBRTOWC to 1.
6125         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
6126         exist, don't set REPLACE_MBSRTOWCS to 1.
6127         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
6128         exist, don't set REPLACE_MBSNRTOWCS to 1.
6129         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
6130         don't set REPLACE_WCRTOMB to 1.
6131         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
6132         exist, don't set REPLACE_WCSRTOMBS to 1.
6133         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
6134         exist, don't set REPLACE_WCSNRTOMBS to 1.
6135
6136 2010-04-05  Bruno Haible  <bruno@clisp.org>
6137
6138         ldexpl: Improve idiom.
6139         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
6140         make sure to set HAVE_DECL_LDEXPL to 0.
6141
6142 2010-04-05  Jim Meyering  <meyering@redhat.com>
6143
6144         xstrtol-tests: convert to use init.sh
6145         * modules/xstrtol-tests (Files): Add tests/init.sh.
6146         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6147         Use Exit, not exit.
6148         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6149
6150         atexit-tests: convert to use init.sh
6151         * modules/atexit-tests (Files): Add tests/init.sh.
6152         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6153         Use Exit, not exit.
6154         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6155
6156         init.sh: fix typo
6157         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
6158
6159         init.sh: make it easier for a test script to write to the tty, ...
6160         when using automake's parallel-tests mode.
6161         * tests/init.sh (stderr_fileno_): Define overridable variable.
6162         (warn_): New function, to use it.
6163         (fail_, skip_, framework_failure_): Use warn_.
6164
6165 2010-04-04  Bruno Haible  <bruno@clisp.org>
6166
6167         btowc: Avoid warning.
6168         * lib/btowc.c: Include <stdlib.h>.
6169         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
6170
6171 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6172             Bruno Haible  <bruno@clisp.org>
6173
6174         wchar: Port to NetBSD 1.5.
6175         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
6176         * lib/wctype.in.h (WEOF): Likewise.
6177
6178 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6179             Bruno Haible  <bruno@clisp.org>
6180
6181         Port extended stdio to NetBSD 1.5.
6182         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
6183         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
6184         older.
6185
6186 2010-04-04  Bruno Haible  <bruno@clisp.org>
6187
6188         string: Remove unused substitution.
6189         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6190         HAVE_DECL_STRERROR.
6191         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
6192
6193 2010-04-04  Bruno Haible  <bruno@clisp.org>
6194
6195         strtod: Avoid a possible C++ test error.
6196         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
6197         set REPLACE_STRTOD.
6198
6199 2010-04-04  Bruno Haible  <bruno@clisp.org>
6200
6201         strerror: Update documentation.
6202         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
6203
6204 2010-04-04  Bruno Haible  <bruno@clisp.org>
6205
6206         stdio: Fix some C++ test errors on Solaris 8 with GCC.
6207         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
6208         _GL_CXXALIAS_SYS_CAST.
6209
6210 2010-04-04  Bruno Haible  <bruno@clisp.org>
6211
6212         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6213         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
6214         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
6215         REPLACE_FREXPL to 1.
6216         * doc/posix-functions/frexpl.texi: Update documentation.
6217
6218 2010-04-04  Bruno Haible  <bruno@clisp.org>
6219
6220         math: Fix some C++ test errors on Solaris 8 and Cygwin.
6221         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
6222
6223 2010-04-04  Bruno Haible  <bruno@clisp.org>
6224
6225         Implement nanosleep for native Windows.
6226         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
6227
6228 2010-04-04  Bruno Haible  <bruno@clisp.org>
6229
6230         math: Fix some C++ test errors on Solaris 8.
6231         * lib/math.in.h (truncf, trunc): Use simpler idiom.
6232
6233 2010-04-04  Bruno Haible  <bruno@clisp.org>
6234
6235         math: Fix some C++ test errors on Cygwin.
6236         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
6237         truncl): Provide declaration if the system does not have it.
6238         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
6239         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
6240         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
6241         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
6242         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
6243         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
6244         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
6245         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
6246         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
6247         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
6248         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
6249         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
6250         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
6251         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
6252         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
6253         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
6254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
6255         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6256         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6257         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
6258         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6259         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6260
6261 2010-04-04  Bruno Haible  <bruno@clisp.org>
6262
6263         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
6264         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6265         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6266         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6267         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6268         * m4/isinf.m4 (gl_ISINF): Likewise.
6269         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6270
6271 2010-04-04  Bruno Haible  <bruno@clisp.org>
6272
6273         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
6274         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6275
6276 2010-04-04  Bruno Haible  <bruno@clisp.org>
6277
6278         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
6279         * modules/tmpfile (configure.ac): Update.
6280
6281         tmpfile: Fix C++ test error on mingw.
6282         * lib/stdio.in.h (tmpfile): New declaration.
6283         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
6284         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
6285         * modules/tmpfile (Depends-on): Add stdio.
6286         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6287         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
6288         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
6289         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
6290         REPLACE_TMPFILE.
6291         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
6292
6293 2010-04-04  Bruno Haible  <bruno@clisp.org>
6294
6295         ioctl: Fix C++ test error on mingw.
6296         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
6297         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
6298         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
6299
6300 2010-04-03  Bruno Haible  <bruno@clisp.org>
6301
6302         wcwidth: Fix C++ test error on mingw.
6303         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
6304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
6305         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
6306
6307 2010-04-03  Bruno Haible  <bruno@clisp.org>
6308
6309         nanosleep: Fix C++ test error on mingw.
6310         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
6311         * lib/time.in.h (nanosleep): Use modern idiom.
6312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
6313         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
6314         REPLACE_NANOSLEEP to 1.
6315         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
6316         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
6317
6318 2010-04-03  Bruno Haible  <bruno@clisp.org>
6319
6320         strptime: Fix C++ test error on mingw.
6321         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
6322         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
6323         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
6324         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
6325         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
6326         not REPLACE_STRPTIME.
6327         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
6328         REPLACE_STRPTIME.
6329
6330 2010-04-03  Bruno Haible  <bruno@clisp.org>
6331
6332         timegm: Fix C++ test error on mingw.
6333         * lib/time.in.h (timegm): Use modern idiom.
6334         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
6335         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
6336         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
6337         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
6338
6339 2010-04-03  Bruno Haible  <bruno@clisp.org>
6340
6341         timegm: Assume declaration if function exists.
6342         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
6343         if it exists. Don't clobber ac_cv_func_timegm.
6344
6345 2010-04-03  Bruno Haible  <bruno@clisp.org>
6346
6347         time_r: Fix C++ test error on mingw.
6348         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
6349         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
6350         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
6351         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
6352         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
6353
6354 2010-04-03  Bruno Haible  <bruno@clisp.org>
6355
6356         time_r: Minor updates.
6357         * modules/time_r (Description): Mention the provided functions.
6358         * lib/time_r.c: Don't include <string.h>.
6359         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
6360         * doc/posix-functions/localtime_r.texi: Likewise.
6361
6362 2010-04-03  Bruno Haible  <bruno@clisp.org>
6363
6364         time: Fix regression introduced on 2010-03-08.
6365         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
6366         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
6367
6368 2010-04-03  Jim Meyering  <meyering@redhat.com>
6369
6370         maint.mk: don't silently disable project-specific syntax-check rules
6371         * top/maint.mk (_prohibit_regexp): Define, to help people realize
6372         that they need to convert their project-specific syntax-check rules
6373         to use the new _sc_search_regexp.
6374
6375 2010-04-03  Bruno Haible  <bruno@clisp.org>
6376
6377         fchdir: Fix regression introduced on 2010-03-08.
6378         * lib/unistd.in.h (fchdir): Fix declaration.
6379         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
6380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
6381         REPLACE_FCHDIR.
6382         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
6383         REPLACE_FCHDIR.
6384
6385 2010-04-03  Bruno Haible  <bruno@clisp.org>
6386
6387         getpagesize: Fix C++ test error on mingw.
6388         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
6389         system does not declare the function.
6390         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
6391         declared.
6392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6393         HAVE_DECL_GETPAGESIZE.
6394         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
6395
6396 2010-04-03  Bruno Haible  <bruno@clisp.org>
6397
6398         stdio: Make C++ tests work on mingw.
6399         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
6400         does not declare the function.
6401
6402 2010-04-03  Bruno Haible  <bruno@clisp.org>
6403
6404         ftello: Fix C++ test error on mingw.
6405         * lib/stdio.in.h (ftello): Use modern idiom.
6406         * lib/ftello.c (ftello): Renamed from rpl_ftello.
6407         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
6408         is missing and that it needs to be replaced.
6409         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
6410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
6411         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
6412
6413 2010-04-03  Bruno Haible  <bruno@clisp.org>
6414
6415         fseeko: Fix C++ test error on mingw.
6416         * lib/stdio.in.h (fseeko): Use modern idiom.
6417         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
6418         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
6419         is missing and that it needs to be replaced.
6420         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
6421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
6422         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
6423
6424 2010-04-03  Bruno Haible  <bruno@clisp.org>
6425
6426         mkstemp: Fix C++ test error on mingw.
6427         * lib/stdlib.in.h (mkstemp): Use modern idiom.
6428         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
6429         function is missing and that it needs to be replaced.
6430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
6431         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
6432
6433 2010-04-03  Bruno Haible  <bruno@clisp.org>
6434
6435         stpncpy: Fix C++ test error on mingw.
6436         * lib/string.in.h (stpncpy): Use modern idiom.
6437         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
6438         function is missing and that it needs to be replaced.
6439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6440         REPLACE_STPNCPY.
6441         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
6442
6443 2010-04-03  Bruno Haible  <bruno@clisp.org>
6444
6445         sys_stat: Fix C++ test error on mingw.
6446         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
6447         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
6448
6449 2010-04-03  Bruno Haible  <bruno@clisp.org>
6450
6451         pty: Update doc.
6452         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
6453
6454 2010-04-03  Bruno Haible  <bruno@clisp.org>
6455
6456         unistd: Fix C++ test error on mingw.
6457         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
6458
6459 2010-04-03  Bruno Haible  <bruno@clisp.org>
6460
6461         Update doc regarding mingw.
6462         * doc/glibc-functions/openpty.texi: Update regarding mingw.
6463         * doc/glibc-functions/login_tty.texi: Likewise.
6464         * doc/glibc-functions/forkpty.texi: Likewise.
6465
6466 2010-04-03  Bruno Haible  <bruno@clisp.org>
6467
6468         stdlib: Avoid compilation failure of c-strtold on mingw.
6469         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
6470
6471 2010-04-03  Bruno Haible  <bruno@clisp.org>
6472
6473         locale: Make C++ tests work on Cygwin and mingw.
6474         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
6475         cannot provide the function.
6476         Reported by Simon Josefsson.
6477
6478 2010-04-03  Bruno Haible  <bruno@clisp.org>
6479
6480         localename: Port to MacOS X 10.6.
6481         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
6482         memory layout of the locales in MacOS X 10.6 as well.
6483         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
6484
6485 2010-04-02  Bruno Haible  <bruno@clisp.org>
6486
6487         gnulib-tool: Ensure that long-running tests are executed last.
6488         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
6489         running tests after the one for the other tests.
6490
6491 2010-04-02  Bruno Haible  <bruno@clisp.org>
6492
6493         gnulib-tool: Ensure the tests in the main directory are executed first.
6494         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
6495         start with the current directory.
6496
6497 2010-04-02  Bruno Haible  <bruno@clisp.org>
6498
6499         Tests for module 'havelib', moved here from GNU gettext.
6500         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
6501         modifications.
6502         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
6503         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
6504         with modifications.
6505         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
6506         modifications.
6507         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
6508         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
6509         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
6510         with modifications.
6511         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
6512         with modifications.
6513         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
6514         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
6515         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
6516         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
6517         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
6518         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
6519         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
6520         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
6521         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
6522         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
6523         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
6524         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
6525         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
6526         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
6527         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
6528         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
6529         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
6530         with modifications.
6531         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
6532         with modifications.
6533         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
6534         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
6535         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
6536         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
6537         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
6538         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
6539         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
6540         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
6541         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
6542         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
6543         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
6544         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
6545         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
6546         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
6547         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
6548         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
6549         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
6550         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
6551         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
6552         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
6553         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
6554         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
6555         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
6556         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
6557         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
6558         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
6559         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
6560         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
6561         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
6562         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
6563         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
6564         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
6565         * tests/havelib/rpathx/rpathx.c: New file, from
6566         gettext/autoconf-lib-link.
6567         * tests/havelib/rpathx/Makefile.am: New file, from
6568         gettext/autoconf-lib-link.
6569         * tests/havelib/rpathx/configure.ac: New file, from
6570         gettext/autoconf-lib-link with modifications.
6571         * tests/havelib/rpathy/rpathy.c: New file, from
6572         gettext/autoconf-lib-link.
6573         * tests/havelib/rpathy/Makefile.am: New file, from
6574         gettext/autoconf-lib-link.
6575         * tests/havelib/rpathy/configure.ac: New file, from
6576         gettext/autoconf-lib-link with modifications.
6577         * tests/havelib/rpathz/rpathz.c: New file, from
6578         gettext/autoconf-lib-link.
6579         * tests/havelib/rpathz/Makefile.am: New file, from
6580         gettext/autoconf-lib-link.
6581         * tests/havelib/rpathz/configure.ac: New file, from
6582         gettext/autoconf-lib-link with modifications.
6583         * tests/havelib/rpathlx/usex.c: New file, from
6584         gettext/autoconf-lib-link.
6585         * tests/havelib/rpathlx/Makefile.am: New file, from
6586         gettext/autoconf-lib-link.
6587         * tests/havelib/rpathlx/configure.ac: New file, from
6588         gettext/autoconf-lib-link with modifications.
6589         * tests/havelib/rpathly/usey.c: New file, from
6590         gettext/autoconf-lib-link.
6591         * tests/havelib/rpathly/Makefile.am: New file, from
6592         gettext/autoconf-lib-link.
6593         * tests/havelib/rpathly/configure.ac: New file, from
6594         gettext/autoconf-lib-link with modifications.
6595         * tests/havelib/rpathlz/usez.c: New file, from
6596         gettext/autoconf-lib-link.
6597         * tests/havelib/rpathlz/Makefile.am: New file, from
6598         gettext/autoconf-lib-link.
6599         * tests/havelib/rpathlz/configure.ac: New file, from
6600         gettext/autoconf-lib-link with modifications.
6601         * tests/havelib/rpathlyx/usey.c: New file, from
6602         gettext/autoconf-lib-link.
6603         * tests/havelib/rpathlyx/Makefile.am: New file, from
6604         gettext/autoconf-lib-link.
6605         * tests/havelib/rpathlyx/configure.ac: New file, from
6606         gettext/autoconf-lib-link with modifications.
6607         * tests/havelib/rpathlzyx/usez.c: New file, from
6608         gettext/autoconf-lib-link.
6609         * tests/havelib/rpathlzyx/Makefile.am: New file, from
6610         gettext/autoconf-lib-link.
6611         * tests/havelib/rpathlzyx/configure.ac: New file, from
6612         gettext/autoconf-lib-link with modifications.
6613         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
6614         with modifications.
6615
6616 2010-04-02  Bruno Haible  <bruno@clisp.org>
6617
6618         gnulib-tool: Create distributed built sources also for the tests.
6619         * gnulib-tool (func_create_testdir): Also generate distributed built
6620         sources in the tests directory.
6621
6622 2010-04-02  Bruno Haible  <bruno@clisp.org>
6623
6624         gnulib-tool: Obey user's environment variables.
6625         * gnulib-tool (func_create_testdir): When creating built sources,
6626         respect the environment variables for autoconf, automake, etc. given by
6627         the user.
6628
6629 2010-04-02  Bruno Haible  <bruno@clisp.org>
6630
6631         gnulib-tool: Provide the value of --m4-base to modules.
6632         * gnulib-tool (func_import, func_create_testdir): Emit a definition
6633         of gl_m4_base.
6634
6635 2010-04-02  Eric Blake  <eblake@redhat.com>
6636
6637         maint.mk: fix some fallout
6638         * NEWS: Document the incompatible change, and its effect on cfg.mk.
6639         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
6640
6641 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6642
6643         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
6644         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
6645         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
6646         (sc_cast_of_x_alloc_return_value): Likewise.
6647         (sc_cast_of_alloca_return_value): Likewise.
6648         (sc_space_tab): Likewise.
6649         (sc_prohibit_atoi_atof): Likewise.
6650         (sc_prohibit_magic_number_exit): Likewise.
6651         (sc_error_exit_success): Likewise.
6652         (sc_file_system): Likewise.
6653         (sc_prohibit_have_config_h): Likewise.
6654         (sc_require_config_h): Likewise.
6655         (sc_prohibit_HAVE_MBRTOWC): Likewise.
6656         (sc_obsolete_symbols): Likewise.
6657         (sc_changelog): Likewise.
6658         (sc_program_name): Likewise.
6659         (sc_the_the): Likewise.
6660         (sc_trailing_blank): Likewise.
6661         (sc_two_space_separator_in_usage): Likewise.
6662         (sc_useless_cpp_parens): Likewise.
6663         (sc_GPL_version): Likewise.
6664         (sc_GFDL_version): Likewise.
6665         (sc_texinfo_acronym): Likewise.
6666         (sc_prohibit_cvs_keyword): Likewise.
6667         (sc_prohibit_stat_st_blocks): Likewise.
6668         (sc_prohibit_S_IS_definition): Likewise.
6669         (sc_redundant_const): Likewise.
6670         (sc_makefile_TAB_only_indentation): Likewise.
6671         (sc_m4_quote_check): Likewise.
6672         (sc_makefile_path_separator_check): Likewise.
6673         (sc_copyright_check): Likewise.
6674         (sc_Wundef_boolean): Likewise.
6675         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
6676
6677         maint.mk: match 0 or more whitespace-before-function-call '('
6678         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
6679         that have zero or two-and-more spaces between the function name
6680         and the open parenthesis.
6681         (sc_error_message_warn_fatal): Likewise.
6682         (sc_error_message_uppercase): Likewise.
6683         (sc_error_message_period): Likewise.
6684
6685 2010-03-31  Eric Blake  <eblake@redhat.com>
6686
6687         maint.mk: check for [ as well as test
6688         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
6689         Based on a libvirt report by Matthias Bolte.
6690
6691         gnumakefile: don't squelch _version output
6692         * top/GNUmakefile (_version): Create one-shot dependency rather
6693         than using $(shell) when version must be regenerated.
6694         (_autoreconf): Run verbosely, by default.
6695
6696         sys_time: avoid compiler warnings
6697         * lib/sys_time.in.h (includes): Ensure gcc pragma is
6698         unconditional, fixing regression from 2010-03-29.
6699         Reported by Simon Josefsson.
6700
6701 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6702
6703         maint.mk: s/_header_without_use/_sc_header_without_use/
6704         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
6705         (sc_prohibit_assert_without_use): Use the new name.
6706         (sc_prohibit_close_stream_without_use): Likewise.
6707         (sc_prohibit_getopt_without_use): Likewise.
6708         (sc_prohibit_quotearg_without_use): Likewise.
6709         (sc_prohibit_quote_without_use): Likewise.
6710         (sc_prohibit_long_options_without_use): Likewise.
6711         (sc_prohibit_inttostr_without_use): Likewise.
6712         (sc_prohibit_ignore_value_without_use): Likewise.
6713         (sc_prohibit_error_without_use): Likewise.
6714         (sc_prohibit_xalloc_without_use): Likewise.
6715         (sc_prohibit_hash_without_use): Likewise.
6716         (sc_prohibit_hash_pjw_without_use): Likewise.
6717         (sc_prohibit_safe_read_without_use): Likewise.
6718         (sc_prohibit_argmatch_without_use): Likewise.
6719         (sc_prohibit_canonicalize_without_use): Likewise.
6720         (sc_prohibit_root_dev_ino_without_use): Likewise.
6721         (sc_prohibit_openat_without_use): Likewise.
6722         (sc_prohibit_c_ctype_without_use): Likewise.
6723         (sc_prohibit_signal_without_use): Likewise.
6724         (sc_prohibit_intprops_without_use): Likewise.
6725
6726 2010-03-30  Eric Blake  <eblake@redhat.com>
6727
6728         maint: improve module indicators
6729         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
6730         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
6731         columns, and avoid extra macro expansion.
6732
6733         fdopendir: work around FreeBSD bug
6734         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
6735         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
6736         * modules/dirent (Makefile.am): Substitute it.
6737         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
6738         declaration.
6739         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
6740         fix.
6741         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6742
6743 2010-03-29  Bruno Haible  <bruno@clisp.org>
6744
6745         Emit #pragma system_header after the inclusion guard, not before.
6746         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
6747         guard that spans the entire file, not before. This enables an
6748         optimization in GCC's preprocessor.
6749         * lib/ctype.in.h: Likewise.
6750         * lib/dirent.in.h: Likewise.
6751         * lib/errno.in.h: Likewise.
6752         * lib/float.in.h: Likewise.
6753         * lib/getopt.in.h: Likewise.
6754         * lib/iconv.in.h: Likewise.
6755         * lib/langinfo.in.h: Likewise.
6756         * lib/locale.in.h: Likewise.
6757         * lib/math.in.h: Likewise.
6758         * lib/netdb.in.h: Likewise.
6759         * lib/netinet_in.in.h: Likewise.
6760         * lib/pty.in.h: Likewise.
6761         * lib/sched.in.h: Likewise.
6762         * lib/se-selinux.in.h: Likewise.
6763         * lib/search.in.h: Likewise.
6764         * lib/spawn.in.h: Likewise.
6765         * lib/stdarg.in.h: Likewise.
6766         * lib/stdint.in.h: Likewise.
6767         * lib/string.in.h: Likewise.
6768         * lib/strings.in.h: Likewise.
6769         * lib/sys_file.in.h: Likewise.
6770         * lib/sys_ioctl.in.h: Likewise.
6771         * lib/sys_time.in.h: Likewise.
6772         * lib/sys_times.in.h: Likewise.
6773         * lib/sys_utsname.in.h: Likewise.
6774         * lib/sys_wait.in.h: Likewise.
6775         * lib/sysexits.in.h: Likewise.
6776         * lib/wctype.in.h: Likewise.
6777
6778 2010-03-28  James Youngman  <jay@gnu.org>
6779
6780         save-cwd: don't leak a file descriptor when the caller execs.
6781         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
6782         saved file descriptor.
6783         * modules/save-cwd (Depends-on): Depend on cloexec.
6784
6785 2010-03-29  Bruno Haible  <bruno@clisp.org>
6786
6787         Remove vestiges of fts-lgpl module.
6788         * lib/fts_.h: Assume GNULIB_FTS is 1.
6789         * lib/fts.c: Likewise.
6790         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
6791
6792 2010-03-28  Bruno Haible  <bruno@clisp.org>
6793
6794         Fix definition of tests witness macro.
6795         * gnulib-tool (func_import): Fix definition of witness macro.
6796
6797 2010-03-28  Bruno Haible  <bruno@clisp.org>
6798
6799         Fix ioctl's protoype on glibc systems.
6800         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
6801         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
6802         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
6803         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
6804         signature. If not, arrange to replace the ioctl function.
6805         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
6806         REPLACE_IOCTL.
6807         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
6808         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
6809         Reported by Ludovic Courtès <ludo@gnu.org>.
6810
6811 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
6812
6813         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
6814         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
6815         made it so grep -r --include=GLOB* ... did not work.
6816
6817 2010-03-26  Jim Meyering  <meyering@redhat.com>
6818             Eric Blake  <eblake@redhat.com>
6819
6820         maint.mk: prohibit use of test's -o and -a operators
6821         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
6822
6823 2010-03-28  Bruno Haible  <bruno@clisp.org>
6824
6825         Remove unused GNULIB_XYZ macro definitions.
6826         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
6827         invocation.
6828
6829 2010-03-28  Bruno Haible  <bruno@clisp.org>
6830
6831         Mark privileged tests modules.
6832         * modules/idpriv-drop-tests (Status): New section.
6833         * modules/idpriv-droptemp-tests (Status): New section.
6834
6835 2010-03-28  Bruno Haible  <bruno@clisp.org>
6836
6837         Split C++ tests into separate tests modules.
6838         * modules/dirent-c++-tests: New file, extracted from
6839         modules/dirent-tests.
6840         * modules/dirent-tests: Depend on it.
6841         * modules/fcntl-h-c++-tests: New file, extracted from
6842         modules/fcntl-h-tests.
6843         * modules/fcntl-h-tests: Depend on it.
6844         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
6845         * modules/glob-tests: Depend on it.
6846         * modules/iconv-h-c++-tests: New file, extracted from
6847         modules/iconv-h-tests.
6848         * modules/iconv-h-tests: Depend on it.
6849         * modules/langinfo-c++-tests: New file, extracted from
6850         modules/langinfo-tests.
6851         * modules/langinfo-tests: Depend on it.
6852         * modules/locale-c++-tests: New file, extracted from
6853         modules/locale-tests.
6854         * modules/locale-tests: Depend on it.
6855         * modules/math-c++-tests: New file, extracted from modules/math-tests.
6856         * modules/math-tests: Depend on it.
6857         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
6858         * modules/pty-tests: Depend on it.
6859         * modules/search-c++-tests: New file, extracted from
6860         modules/search-tests.
6861         * modules/search-tests: Depend on it.
6862         * modules/signal-c++-tests: New file, extracted from
6863         modules/signal-tests.
6864         * modules/signal-tests: Depend on it.
6865         * modules/spawn-c++-tests: New file, extracted from
6866         modules/spawn-tests.
6867         * modules/spawn-tests: Depend on it.
6868         * modules/stdio-c++-tests: New file, extracted from
6869         modules/stdio-tests.
6870         * modules/stdio-tests: Depend on it.
6871         * modules/stdlib-c++-tests: New file, extracted from
6872         modules/stdlib-tests.
6873         * modules/stdlib-tests: Depend on it.
6874         * modules/string-c++-tests: New file, extracted from
6875         modules/string-tests.
6876         * modules/string-tests: Depend on it.
6877         * modules/sys_ioctl-c++-tests: New file, extracted from
6878         modules/sys_ioctl-tests.
6879         * modules/sys_ioctl-tests: Depend on it.
6880         * modules/sys_select-c++-tests: New file, extracted from
6881         modules/sys_select-tests.
6882         * modules/sys_select-tests: Depend on it.
6883         * modules/sys_socket-c++-tests: New file, extracted from
6884         modules/sys_socket-tests.
6885         * modules/sys_socket-tests: Depend on it.
6886         * modules/sys_stat-c++-tests: New file, extracted from
6887         modules/sys_stat-tests.
6888         * modules/sys_stat-tests: Depend on it.
6889         * modules/sys_time-c++-tests: New file, extracted from
6890         modules/sys_time-tests.
6891         * modules/sys_time-tests: Depend on it.
6892         * modules/time-c++-tests: New file, extracted from modules/time-tests.
6893         * modules/time-tests: Depend on it.
6894         * modules/unistd-c++-tests: New file, extracted from
6895         modules/unistd-tests.
6896         * modules/unistd-tests: Depend on it.
6897         * modules/wchar-c++-tests: New file, extracted from
6898         modules/wchar-tests.
6899         * modules/wchar-tests: Depend on it.
6900         * modules/wctype-c++-tests: New file, extracted from
6901         modules/wctype-tests.
6902         * modules/wctype-tests: Depend on it.
6903         Reported by Simon Josefsson.
6904
6905 2010-03-28  Bruno Haible  <bruno@clisp.org>
6906
6907         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
6908         * gnulib-tool (func_exists_module): New function, extracted from
6909         func_verify_module.
6910         (func_verify_module): Use it.
6911         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
6912         'foo' only if 'foo' exists.
6913         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
6914         module.
6915
6916 2010-03-28  Bruno Haible  <bruno@clisp.org>
6917
6918         gnulib-tool: Add support for special categories of tests.
6919         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
6920         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
6921         (func_usage): Document them.
6922         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
6923         inc_unportable_tests, inc_all_tests): New variables.
6924         (func_acceptable): Consider these variables.
6925         (func_modules_transitive_closure): Make it work when the 'Status' field
6926         consists of multiple words.
6927         (func_import): Store and restore the values of inc_cxx_tests,
6928         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
6929         inc_all_tests in gnulib-comp.m4.
6930         (func_create_testdir): Set inc_all_tests to true.
6931         * doc/gnulib.texi (Extra tests modules): New section.
6932         Suggested by Jim Meyering.
6933
6934 2010-03-28  Bruno Haible  <bruno@clisp.org>
6935
6936         ansi-c++-opt: Allow turning off the C++ build by default.
6937         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
6938         gl_CXX_CHOICE_DEFAULT_NO is defined.
6939         Requested by Eric Blake.
6940
6941 2010-03-28  Bruno Haible  <bruno@clisp.org>
6942
6943         unistd: Avoid #define replacements in C++ mode.
6944         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6945         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6946         setsockopt, shutdown, select): In C++, attach a warning to the function
6947         if possible, rather than #defining the symbol to a dysfunctional alias.
6948         Reported by John W. Eaton <jwe@gnu.org>.
6949
6950 2010-03-28  Bruno Haible  <bruno@clisp.org>
6951
6952         Fix link errors on mingw.
6953         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
6954         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
6955         $(LIBSOCKET).
6956         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
6957         $(LIBSOCKET).
6958
6959 2010-03-28  Bruno Haible  <bruno@clisp.org>
6960             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6961
6962         lib-ignore: Determine different options for different compilers.
6963         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
6964         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
6965         Add comments.
6966         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
6967         * NEWS: Mention the change.
6968
6969 2010-03-27  Bruno Haible  <bruno@clisp.org>
6970
6971         Remove unused GNULIB_XYZ macro definitions.
6972         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
6973         * modules/fseek (configure.ac): Likewise.
6974         * modules/ioctl (configure.ac): Likewise.
6975         * modules/open (configure.ac): Likewise.
6976         * modules/stdlib-safer (configure.ac): Likewise.
6977
6978 2010-03-27  Bruno Haible  <bruno@clisp.org>
6979
6980         Add a remark about certain modules.
6981         * modules/malloc (Comment): New section.
6982         * modules/realloc (Comment): Likewise.
6983         * modules/sigpipe (Comment): Likewise.
6984
6985 2010-03-27  Bruno Haible  <bruno@clisp.org>
6986
6987         Resolve conflict between the two kinds of module indicators.
6988         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
6989         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
6990         * modules/canonicalize (configure.ac): Invoke
6991         gl_MODULE_INDICATOR_FOR_TESTS.
6992         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
6993         GNULIB_XYZ.
6994         * tests/test-dirent-c++.cc: Likewise.
6995         * tests/test-dirent-safer.c: Likewise.
6996         * tests/test-dup2.c: Likewise.
6997         * tests/test-fchdir.c: Likewise.
6998         * tests/test-fcntl-h-c++.cc: Likewise.
6999         * tests/test-getopt.c: Likewise.
7000         * tests/test-getopt.h: Likewise.
7001         * tests/test-langinfo-c++.cc: Likewise.
7002         * tests/test-locale-c++.cc: Likewise.
7003         * tests/test-math-c++.cc: Likewise.
7004         * tests/test-pty-c++.cc: Likewise.
7005         * tests/test-search-c++.cc: Likewise.
7006         * tests/test-signal-c++.cc: Likewise.
7007         * tests/test-spawn-c++.cc: Likewise.
7008         * tests/test-stdio-c++.cc: Likewise.
7009         * tests/test-stdlib-c++.cc: Likewise.
7010         * tests/test-string-c++.cc: Likewise.
7011         * tests/test-sys_ioctl-c++.cc: Likewise.
7012         * tests/test-sys_select-c++.cc: Likewise.
7013         * tests/test-sys_socket-c++.cc: Likewise.
7014         * tests/test-sys_stat-c++.cc: Likewise.
7015         * tests/test-sys_time-c++.cc: Likewise.
7016         * tests/test-time-c++.cc: Likewise.
7017         * tests/test-unistd-c++.cc: Likewise.
7018         * tests/test-wchar-c++.cc: Likewise.
7019         * tests/uninorm/test-u8-nfc.c: Likewise.
7020         * tests/uninorm/test-u8-nfd.c: Likewise.
7021         * tests/uninorm/test-u8-nfkc.c: Likewise.
7022         * tests/uninorm/test-u8-nfkd.c: Likewise.
7023         * tests/uninorm/test-u16-nfc.c: Likewise.
7024         * tests/uninorm/test-u16-nfd.c: Likewise.
7025         * tests/uninorm/test-u16-nfkc.c: Likewise.
7026         * tests/uninorm/test-u16-nfkd.c: Likewise.
7027         * tests/uninorm/test-u32-nfc.c: Likewise.
7028         * tests/uninorm/test-u32-nfc-big.c: Likewise.
7029         * tests/uninorm/test-u32-nfd.c: Likewise.
7030         * tests/uninorm/test-u32-nfd-big.c: Likewise.
7031         * tests/uninorm/test-u32-nfkc.c: Likewise.
7032         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
7033         * tests/uninorm/test-u32-nfkd.c: Likewise.
7034         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
7035         * tests/uninorm/test-u32-normalize-big.c: Likewise.
7036
7037 2010-03-27  Bruno Haible  <bruno@clisp.org>
7038
7039         Distinguish two kinds of module indicators.
7040         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
7041         gl_MODULE_INDICATOR.
7042         (gl_MODULE_INDICATOR): New macro.
7043         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
7044         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
7045         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7046         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7047         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7048         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7049         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7050         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7051         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7052         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7053         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7054         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7055         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7056         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7057         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7058         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7059         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7060         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7061         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7062         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7063         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7064         * modules/cloexec (configure.ac): Likewise.
7065         * modules/getopt-gnu (configure.ac): Likewise.
7066         * modules/uninorm/u8-normalize (configure.ac): Likewise.
7067         * modules/uninorm/u16-normalize (configure.ac): Likewise.
7068         * modules/uninorm/u32-normalize (configure.ac): Likewise.
7069         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
7070
7071 2010-03-27  Bruno Haible  <bruno@clisp.org>
7072
7073         New module description field 'Comment'.
7074         * gnulib-tool: New option --extract-comment.
7075         (func_usage): Document it.
7076         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
7077         (func_get_comment): New function.
7078         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
7079
7080 2010-03-27  Bruno Haible  <bruno@clisp.org>
7081
7082         Addendum to 2010-02-07 commit.
7083         * gnulib-tool (func_usage): Document --extract-applicability option.
7084
7085 2010-03-27  Bruno Haible  <bruno@clisp.org>
7086
7087         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
7088         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
7089         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
7090         rather than link errors.
7091
7092 2010-03-27  Bruno Haible  <bruno@clisp.org>
7093
7094         Avoid side effects from tests-related modules on the compilation of lib.
7095         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
7096         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
7097         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
7098         parameter. Emit into AM_CPPFLAGS a definition of the designated C
7099         macro.
7100         (func_import): Define a witness macro. Assign it a value that depends
7101         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
7102         tests-related modules.
7103         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
7104         Reported by Jim Meyering.
7105
7106 2010-03-27  Bruno Haible  <bruno@clisp.org>
7107
7108         Factorize common .m4 code.
7109         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
7110         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
7111         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
7112         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
7113         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7114         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
7115         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
7116         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7117         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7118         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7119         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
7120         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7121         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7122         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7123         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7124         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
7125         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7126         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7127         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7128         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
7129         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
7130         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7131         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7132         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7133         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7134         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7135         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
7136         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
7137         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
7138         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7139         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7140         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7141
7142 2010-03-27  Bruno Haible  <bruno@clisp.org>
7143
7144         Fix a compilation error on Cygwin with g++ >= 4.3.
7145         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
7146         if it is undefined or if we alias it to chmod.
7147         (lstat): Don't warn about the use of this function if it is undefined
7148         or if we alias it to stat.
7149         Reported by Simon Josefsson.
7150
7151 2010-03-27  Bruno Haible  <bruno@clisp.org>
7152
7153         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
7154         * modules/getlogin (configure.ac): Update.
7155
7156         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
7157         * modules/getlogin_r (configure.ac): Update.
7158
7159         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
7160         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
7161         * modules/inet_ntop (configure.ac): Update.
7162
7163         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
7164         * modules/inet_pton (configure.ac): Update.
7165
7166         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
7167         * modules/mbslen (configure.ac): Update.
7168
7169         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
7170         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
7171         * modules/forkpty (configure.ac): Update.
7172         * modules/openpty (configure.ac): Update.
7173
7174 2010-03-26  Simon Josefsson  <simon@josefsson.org>
7175
7176         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
7177         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
7178
7179 2010-03-25  Eric Blake  <eblake@redhat.com>
7180
7181         maint: use pragma consistently across replacement headers
7182         * lib/ctype.in.h (system_header): Hoist for consistent placement.
7183         * lib/dirent.in.h (system_header): Likewise.
7184         * lib/errno.in.h (system_header): Likewise.
7185         * lib/float.in.h (system_header): Likewise.
7186         * lib/getopt.in.h (system_header): Likewise.
7187         * lib/iconv.in.h (system_header): Likewise.
7188         * lib/inttypes.in.h (system_header): Likewise.
7189         * lib/langinfo.in.h (system_header): Likewise.
7190         * lib/locale.in.h (system_header): Likewise.
7191         * lib/math.in.h (system_header): Likewise.
7192         * lib/netdb.in.h (system_header): Likewise.
7193         * lib/netinet_in.in.h (system_header): Likewise.
7194         * lib/pty.in.h (system_header): Likewise.
7195         * lib/sched.in.h (system_header): Likewise.
7196         * lib/se-selinux.in.h (system_header): Likewise.
7197         * lib/search.in.h (system_header): Likewise.
7198         * lib/spawn.in.h (system_header): Likewise.
7199         * lib/stdarg.in.h (system_header): Likewise.
7200         * lib/stdint.in.h (system_header): Likewise.
7201         * lib/string.in.h (system_header): Likewise.
7202         * lib/strings.in.h (system_header): Likewise.
7203         * lib/sys_file.in.h (system_header): Likewise.
7204         * lib/sys_ioctl.in.h (system_header): Likewise.
7205         * lib/sys_socket.in.h (system_header): Likewise.
7206         * lib/sys_times.in.h (system_header): Likewise.
7207         * lib/sys_utsname.in.h (system_header): Likewise.
7208         * lib/sys_wait.in.h (system_header): Likewise.
7209         * lib/sysexits.in.h (system_header): Likewise.
7210         * lib/unistd.in.h (system_header): Likewise.
7211         * lib/wctype.in.h (system_header): Likewise.
7212
7213         arpa/inet: fix mingw compilation warning
7214         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
7215         Reported by Matthew Bolte.
7216
7217 2010-03-25  Bruno Haible  <bruno@clisp.org>
7218
7219         Avoid collision between gnulib wrapper and libintl wrapper.
7220         * lib/printf.c (printf): Don't define if a printf wrapper is already
7221         defined in intl/printf.c.
7222         Reported by Michel Boaventura <michel@michelboaventura.com>.
7223
7224 2010-03-25  Bruno Haible  <bruno@clisp.org>
7225
7226         Use ANSI C.
7227         * lib/readutmp.h (getutent): Provide ANSI C prototype.
7228
7229 2010-03-25  Bruno Haible  <bruno@clisp.org>
7230
7231         Minor formatting changes.
7232         * lib/acosl.c: Insert space before function argument list.
7233         * lib/argz.c: Likewise.
7234         * lib/asinl.c: Likewise.
7235         * lib/expl.c: Likewise.
7236         * lib/gen-uni-tables.c: Likewise.
7237         * lib/gettext.h: Likewise.
7238         * lib/glthread/lock.h: Likewise.
7239         * lib/tanl.c: Likewise.
7240         * lib/uniname/uniname.c: Likewise.
7241         * tests/test-idpriv-drop.c: Likewise.
7242         * tests/test-idpriv-droptemp.c: Likewise.
7243         * tests/test-lock.c: Likewise.
7244         * tests/test-tls.c: Likewise.
7245         * lib/argp-help.c: Insert space before function-like macro argument
7246         list.
7247         * lib/memcmp.c: Likewise.
7248         * tests/test-base64.c: Likewise.
7249         * lib/localename.c: Insert space before sizeof's argument list.
7250         * lib/safe-alloc.h: Likewise.
7251         * lib/file-set.h: Insert space before macro argument list.
7252         * tests/test-argp.c: Likewise.
7253         * lib/argp-namefrob.h: Insert space before function parameter list.
7254         * lib/getaddrinfo.c: Likewise.
7255         * lib/netdb.in.h: Likewise.
7256         * lib/parse-duration.h: Likewise.
7257         * lib/parse-duration.c: Likewise.
7258         * lib/poll.c: Likewise.
7259         * lib/select.c: Likewise.
7260         * lib/trim.h: Likewise.
7261         * tests/test-usleep.c: Likewise.
7262         * lib/ldexpl.c: Insert space before function parameter list and before
7263         function argument list.
7264         * lib/logl.c: Likewise.
7265         * lib/sqrtl.c: Likewise.
7266         * lib/trim.c: Likewise.
7267         * lib/cosl.c: Use GNU style indentation. Insert space before function
7268         argument list.
7269         * lib/sinl.c: Likewise.
7270         * lib/tsearch.c: Insert space after 'for'.
7271         Reported by Jim Meyering.
7272
7273 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
7274
7275         * maint.mk (sc_Wundef_boolean): Check for the presence of the
7276         config header before grepping, as it's not present before
7277         autoreconf/configure are run.  Reported by Simon Josefsson.
7278
7279 2010-03-23  Bruno Haible  <bruno@clisp.org>
7280
7281         pt_chown: Make it work with automake < 1.11.
7282         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
7283         Reported by Simon Josefsson.
7284
7285 2010-03-23  Bruno Haible  <bruno@clisp.org>
7286
7287         pt_chown: Don't depend on GPLed modules.
7288         * lib/pt_chown.c: Don't include idpriv.h.
7289         (main): Don't drop privileges.
7290         * modules/pt_chown (Depends-on): Remove idpriv-drop.
7291         Reported by Simon Josefsson.
7292
7293 2010-03-24  Simon Josefsson  <simon@josefsson.org>
7294
7295         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
7296         suggestions from karl@freefriends.org (Karl Berry).
7297
7298 2010-03-22  Eric Blake  <eblake@redhat.com>
7299
7300         gethostname: further tweaks
7301         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
7302         are overriding gethostname.
7303         Suggested by Bruno Haible.
7304
7305 2010-03-21  Bruno Haible  <bruno@clisp.org>
7306
7307         Fix comments.
7308         * lib/forkpty.c (rpl_forkpty): Fix comment.
7309         * lib/openpty.c (rpl_openpty): Likewise.
7310         Reported by Eric Blake.
7311
7312 2010-03-22  Eric Blake  <eblake@redhat.com>
7313
7314         gethostname: fix build on mingw
7315         * lib/unistd.in.h (includes): Work around fact that mingw
7316         <winsock2.h> re-includes <unistd.h>, by avoiding any
7317         redeclarations if we are being included by <winsock2.h>.
7318         Reported by Matthias Bolte.
7319
7320 2010-03-21  Bruno Haible  <bruno@clisp.org>
7321
7322         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7323         * lib/forkpty.c (forkpty): New replacement function, from glibc with
7324         modifications.
7325         * lib/pty.in.h (forkpty): Update declaration. Add comments.
7326         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
7327         provide the replacement.
7328         * modules/forkpty (Depends-on): Add openpty, login_tty.
7329         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
7330         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
7331         * doc/glibc-functions/forkpty.texi: More supported platforms.
7332         * config/srclist.txt: Add forkpty.c (commented).
7333
7334 2010-03-21  Bruno Haible  <bruno@clisp.org>
7335
7336         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
7337         (Makefile.am): Verify that PTY_LIB is defined.
7338
7339         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
7340
7341 2010-03-21  Bruno Haible  <bruno@clisp.org>
7342
7343         Tests for module 'login_tty'.
7344         * modules/login_tty-tests: New file.
7345         * tests/test-login_tty.c: New file.
7346
7347         New module 'login_tty'.
7348         * lib/login_tty.c: New file.
7349         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
7350         * modules/login_tty: New file.
7351         * doc/glibc-functions/login_tty.texi: Mention the new module.
7352
7353 2010-03-21  Bruno Haible  <bruno@clisp.org>
7354
7355         login_tty: Documentation.
7356         * doc/glibc-functions/login_tty.texi: New file.
7357         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
7358
7359 2010-03-21  Bruno Haible  <bruno@clisp.org>
7360
7361         pty: Consistent macro naming.
7362         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
7363         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
7364         * modules/pty (configure.ac): Update.
7365
7366 2010-03-21  Bruno Haible  <bruno@clisp.org>
7367
7368         Tests for openpty: Make stricter.
7369         * tests/test-openpty.c (main): Add test of canonical processing and
7370         erase.
7371         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
7372
7373         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7374         * lib/openpty.c (openpty): New replacement function.
7375         * lib/pty.in.h: Include <termios.h>.
7376         (openpty): Update declaration. Add comments.
7377         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
7378         is not declared, arrange to provide the replacement. Check for _getpty
7379         and posix_openpt.
7380         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
7381         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
7382         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
7383         * modules/pty-tests (test_pty_c___LDADD): New variable.
7384         * doc/glibc-functions/openpty.texi: More supported platforms.
7385
7386 2010-03-21  Bruno Haible  <bruno@clisp.org>
7387
7388         setenv: Tweaks.
7389         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
7390         the test program.
7391         * doc/posix-functions/setenv.texi: Update platforms list.
7392
7393 2010-03-21  Bruno Haible  <bruno@clisp.org>
7394
7395         New module 'unlockpt'.
7396         * lib/unlockpt.c: New file, from glibc with modifications.
7397         * m4/unlockpt.m4: New file.
7398         * modules/unlockpt: New file.
7399         * lib/stdlib.in.h (unlockpt): New declaration.
7400         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
7401         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
7402         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
7403         HAVE_UNLOCKPT.
7404         * doc/posix-functions/unlockpt.texi: Mention the new module.
7405         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
7406         * config/srclist.txt: Add unlockpt.c (commented).
7407
7408 2010-03-21  Jim Meyering  <meyering@redhat.com>
7409
7410         maint.mk: prohibit inclusion of "intprops.h" without use
7411         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
7412
7413 2010-03-21  Bruno Haible  <bruno@clisp.org>
7414
7415         New module 'grantpt'.
7416         * lib/grantpt.c: New file, from glibc with modifications.
7417         * m4/grantpt.m4: New file.
7418         * modules/grantpt: New file.
7419         * lib/stdlib.in.h (grantpt): New declaration.
7420         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
7421         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
7422         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
7423         HAVE_GRANTPT.
7424         * doc/posix-functions/grantpt.texi: Mention the new module.
7425         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
7426         * config/srclist.txt: Add grantpt.c (commented).
7427
7428 2010-03-21  Bruno Haible  <bruno@clisp.org>
7429
7430         New module 'pt_chown'.
7431         * lib/pt_chown.c: New file, from glibc with modifications.
7432         * lib/pty-private.h: New file, from glibc with modifications.
7433         * modules/pt_chown: New file.
7434         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
7435
7436 2010-03-21  Bruno Haible  <bruno@clisp.org>
7437
7438         Tests for module 'ptsname'.
7439         * modules/ptsname-tests: New file.
7440         * tests/test-ptsname.c: New file.
7441
7442         New module 'ptsname'.
7443         * lib/ptsname.c: New file, from glibc with modifications.
7444         * m4/ptsname.m4: New file.
7445         * modules/ptsname: New file.
7446         * lib/stdlib.in.h (ptsname): New declaration.
7447         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
7448         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
7449         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
7450         HAVE_PTSNAME.
7451         * doc/posix-functions/ptsname.texi: Mention the new module.
7452         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
7453         * config/srclist.txt: Add ptsname.c (commented).
7454
7455 2010-03-21  Bruno Haible  <bruno@clisp.org>
7456
7457         Tests for module 'ttyname_r'.
7458         * modules/ttyname_r-tests: New file.
7459         * tests/test-ttyname_r.c: New file.
7460
7461         New module 'ttyname_r'.
7462         * lib/ttyname_r.c: New file.
7463         * m4/ttyname_r.m4: New file.
7464         * modules/ttyname_r: New file.
7465         * lib/unistd.in.h (ttyname_r): New declaration.
7466         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
7467         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
7468         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
7469         HAVE_TTYNAME_R.
7470         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
7471         * doc/posix-functions/ttyname_r.texi: Mention the new module.
7472
7473 2010-03-20  Bruno Haible  <bruno@clisp.org>
7474
7475         signal: Undefine macro definitions in C++ mode.
7476         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
7477         sigfillset): Undefine macro definitions from the system header in C++
7478         mode.
7479         Reported by John W. Eaton <jwe@gnu.org>.
7480
7481 2010-03-20  Bruno Haible  <bruno@clisp.org>
7482
7483         Ensure no #include statements inside extern "C" { ... }.
7484         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
7485         contain #include statements.
7486         * lib/time.in.h: Likewise.
7487
7488 2010-03-20  Bruno Haible  <bruno@clisp.org>
7489
7490         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
7491         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
7492         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
7493         Reported by John W. Eaton <jwe@gnu.org>.
7494
7495 2010-03-20  Bruno Haible  <bruno@clisp.org>
7496
7497         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
7498         Reported by Jim Meyering.
7499
7500 2010-03-20  Bruno Haible  <bruno@clisp.org>
7501
7502         pipe: Set errno upon failure.
7503         * lib/pipe.h: Specify that when -1 is returned, errno is set.
7504         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
7505         errno value in error message.
7506
7507 2010-03-20  Bruno Haible  <bruno@clisp.org>
7508             Jim Meyering  <meyering@redhat.com>
7509
7510         lchown: Avoid "unused variable" warning.
7511         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
7512
7513 2010-03-20  Bruno Haible  <bruno@clisp.org>
7514
7515         Work around unlink() bug on MacOS X 10.5.6.
7516         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
7517         attempting to unlink a parent directory.
7518         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
7519         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
7520         activate for the replacement function.
7521         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
7522
7523 2010-03-20  Bruno Haible  <bruno@clisp.org>
7524
7525         Fix link errors on Solaris 8.
7526         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
7527         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
7528
7529 2010-03-19  Jim Meyering  <meyering@redhat.com>
7530
7531         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
7532         The _LIBC implementation of build_range_exp correctly honors the
7533         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
7534         However, the non-_LIBC implementation would ignore that syntax-bit
7535         flag and return REG_ERANGE unconditionally.
7536         This change makes it honor that flag.
7537         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
7538         Make two pointer parameters "const".
7539         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
7540         (parse_bracket_exp): Update caller.
7541
7542         regex.m4: correct the reversed range endpoint ([b-a]) test
7543         * m4/regex.m4: When requiring that [b-a] evoke failure,
7544         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
7545         test pass once again for x86-based systems.
7546
7547 2010-03-19  Bruno Haible  <bruno@clisp.org>
7548
7549         scandir: Fix link error on Solaris 8.
7550         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
7551         macros.
7552
7553 2010-03-19  Bruno Haible  <bruno@clisp.org>
7554
7555         getusershell: Fix documentation.
7556         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
7557         module.
7558         * doc/glibc-functions/setusershell.texi: Likewise.
7559
7560         getusershell: Provide declaration, missing on Solaris 9.
7561         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
7562         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
7563         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
7564         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
7565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7566         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
7567         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
7568         HAVE_GETUSERSHELL.
7569         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
7570
7571 2010-03-19  Bruno Haible  <bruno@clisp.org>
7572
7573         wctype: Provide iswblank function.
7574         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
7575         exists and is fine.
7576         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
7577         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
7578         * tests/test-wctype.c (main): Re-enable the iswblank tests.
7579         * doc/posix-functions/iswblank.texi: Update.
7580
7581 2010-03-19  Bruno Haible  <bruno@clisp.org>
7582
7583         Tests of module 'pty' in C++ mode.
7584         * modules/pty-tests: New file.
7585         * tests/test-pty-c++.cc: New file.
7586         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7587
7588 2010-03-19  Eric Blake  <eblake@redhat.com>
7589
7590         logb: fix documentation
7591         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
7592         1.5 declaration bug.
7593
7594         forkpty, openpty: prefer glibc's const-safe prototype
7595         * lib/forkpty.c (rpl_forkpty): New file.
7596         * lib/openpty.c (rpl_openpty): Likewise.
7597         * modules/forkpty (Files): Distribute it.
7598         * modules/openpty (Files): Likewise.
7599         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
7600         check...
7601         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
7602         replacement for for non-const BSD signature.
7603         * modules/pty (Makefile.am): Substitute witnesses.
7604         * lib/pty.in.h (forkpty, openpty): Declare replacements.
7605         * tests/test-forkpty.c: Update signature check.
7606         * tests/test-openpty.c: Likewise.
7607         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
7608         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7609
7610         forkpty, openpty: split functions into new modules
7611         * modules/pty (Makefile.am): Substitute new witnesses.
7612         (Libraries): Move library detection...
7613         * modules/forkpty: ...into new module.
7614         * modules/openpty: Another new module.
7615         * modules/pty-tests: Rename and split...
7616         * modules/forkpty-tests: ...to this...
7617         * modules/openpty-tests: ...and this.
7618         * tests/test-pty.c: Rename and split...
7619         * tests/test-forkpty.c: ...to this...
7620         * tests/test-openpty.c: ...and this.
7621         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
7622         (gl_PTY): Split library searching...
7623         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
7624         (gl_FORKPTY, gl_OPENPTY): New macros.
7625         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
7626         * NEWS: Mention the split.
7627         * MODULES.html.sh (Misc): Document the modules.
7628         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
7629         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7630
7631         pty: improve replacement header
7632         * lib/pty.in.h: New file.
7633         * modules/pty (Files): Ship it.
7634         (Makefile.am): Always build replacement.
7635         * m4/pty.m4: Rename...
7636         * m4/pty_h.m4: ...to this.
7637         (gl_PTY): Modernize setting of witness macros; update check of
7638         forkpty to take proper advantage of cache.
7639         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
7640
7641         getopt: avoid compiler warning
7642         * lib/getopt.c (attribute_hidden): Remove unused macro.
7643
7644 2010-03-18  Bruno Haible  <bruno@clisp.org>
7645
7646         Fix link errors on Solaris 8.
7647         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
7648         * modules/search-tests (test_search_c___LDADD): Likewise.
7649         * modules/signal-tests (test_signal_c___LDADD): Likewise.
7650         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
7651         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
7652         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
7653         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
7654         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
7655         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
7656
7657 2010-03-18  Bruno Haible  <bruno@clisp.org>
7658
7659         Fix bug introduced on 2010-03-14.
7660         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
7661         (gl_SPAWN_H): Require it.
7662         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
7663         Reported by Simon Josefsson.
7664
7665 2010-03-18  Bruno Haible  <bruno@clisp.org>
7666
7667         Fix typo introduced on 2009-12-31.
7668         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
7669         posix_spawn_file_actions_adddup2.
7670
7671 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
7672         and Eric Blake  <eblake@redhat.com>
7673
7674         test-vc-list-files-git: make more robust
7675         * tests/test-vc-list-files-git.sh: Unset problematic environment
7676         variables.  Chain commands together.
7677
7678 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
7679
7680         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
7681         `AC_CHECK_DECL' invocation.
7682
7683 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
7684
7685         * lib/inttostr.c (inttostr): Make sure the invocation of verify
7686         appears before executable statements. Suggested by Petr Sumbera
7687         <Petr.Sumbera@Sun.COM>.
7688
7689 2010-03-14  Bruno Haible  <bruno@clisp.org>
7690
7691         * tests/test-flock.c (test_exclusive): Comment out a test that causes
7692         portability problems. Instead use a simpler test.
7693         (main): Check that invalid arguments are rejected only on Linux.
7694
7695 2010-03-14  Bruno Haible  <bruno@clisp.org>
7696
7697         Fix bug introduced on 2009-12-31.
7698         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7699         gl_PREREQ_SYS_H_WINSOCK2 always.
7700         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
7701         SYS_SOCKET_H variable.
7702         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
7703         Update comments.
7704         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
7705         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7706         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7707         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7708         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7709
7710 2010-03-14  Bruno Haible  <bruno@clisp.org>
7711
7712         Fix values returned by sinl, cosl.
7713         * lib/trigl.h: Add specification comments.
7714         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
7715         that combines the values from the precomputed table with the values of
7716         the Chebyshev polynomials.
7717
7718 2010-03-14  Bruno Haible  <bruno@clisp.org>
7719
7720         Fix compilation error when modules 'posix_spawn[p]' are not used.
7721         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
7722         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
7723
7724 2010-03-14  Bruno Haible  <bruno@clisp.org>
7725
7726         Fix compilation error on mingw when module 'time_r' is not used.
7727         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
7728         is 1.
7729         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
7730         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
7731         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
7732         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
7733
7734 2010-03-14  Bruno Haible  <bruno@clisp.org>
7735
7736         Fix compilation error with Sun C.
7737         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
7738         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
7739         instead of GCC specific ULONG_LONG_MAX.
7740         * lib/xstrtoll.c: Likewise.
7741         * lib/xstrtoull.c: Likewise.
7742
7743 2010-03-13  Bruno Haible  <bruno@clisp.org>
7744
7745         Allow the user to disable C++ code and tests.
7746         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
7747         (gl_PROG_ANSI_CXX): Require it.
7748
7749 2010-03-13  Bruno Haible  <bruno@clisp.org>
7750
7751         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
7752         cases.
7753
7754 2010-03-13  Bruno Haible  <bruno@clisp.org>
7755
7756         Test that gnulib does not break the standard C++ headers.
7757         * tests/test-locale-c++2.cc: New file.
7758         * modules/locale-tests (Files): Add it.
7759         (Makefile.am): Compile it for test-locale-c++.
7760         * tests/test-math-c++2.cc: New file.
7761         * modules/math-tests (Files): Add it.
7762         (Makefile.am): Compile it for test-math-c++.
7763         * tests/test-signal-c++2.cc: New file.
7764         * modules/signal-tests (Files): Add it.
7765         (Makefile.am): Compile it for test-signal-c++.
7766         * tests/test-stdio-c++2.cc: New file.
7767         * modules/stdio-tests (Files): Add it.
7768         (Makefile.am): Compile it for test-stdio-c++.
7769         * tests/test-stdlib-c++2.cc: New file.
7770         * modules/stdlib-tests (Files): Add it.
7771         (Makefile.am): Compile it for test-stdlib-c++.
7772         * tests/test-string-c++2.cc: New file.
7773         * modules/string-tests (Files): Add it.
7774         (Makefile.am): Compile it for test-string-c++.
7775         * tests/test-time-c++2.cc: New file.
7776         * modules/time-tests (Files): Add it.
7777         (Makefile.am): Compile it for test-time-c++.
7778         Reported by John W. Eaton <jwe@gnu.org>.
7779
7780 2010-03-13  Bruno Haible  <bruno@clisp.org>
7781
7782         * gnulib-tool (func_usage): Clarify which options are available for
7783         --create-testdir and --create-megatestdir.
7784
7785 2010-03-13  Bruno Haible  <bruno@clisp.org>
7786
7787         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
7788         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
7789         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
7790         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7791         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
7792         when appropriate.
7793         Reported by Jim Meyering.
7794
7795 2010-03-12  Simon Josefsson  <simon@josefsson.org>
7796
7797         * gnulib-tool (func_import): Explain origin of code.
7798
7799 2010-03-12  Bruno Haible  <bruno@clisp.org>
7800
7801         Fix problem with automake's definition of CXXLINK.
7802         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
7803         Reported by Simon Josefsson and Ludovic Courtès.
7804
7805 2010-03-12  Bruno Haible  <bruno@clisp.org>
7806
7807         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
7808         stable releases.
7809
7810 2010-03-11  Bruno Haible  <bruno@clisp.org>
7811
7812         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
7813         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
7814         whether the system provides one variant or multiple variants of the
7815         function.
7816         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
7817         C++ compilers.
7818         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
7819         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
7820         Reported by Jim Meyering.
7821
7822 2010-03-09  Simon Josefsson  <simon@josefsson.org>
7823
7824         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
7825
7826 2010-03-08  Bruno Haible  <bruno@clisp.org>
7827
7828         gnulib-tool: Add support for --libtool in --create-testdir.
7829         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
7830         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
7831
7832 2010-03-08  Eric Blake  <eblake@redhat.com>
7833
7834         gnulib-tool.texi: mention possibility of git submodule
7835         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
7836         submodules.
7837         * doc/.gitignore: Ignore another generated file.
7838
7839 2010-03-08  Karl Berry  <karl@gnu.org>
7840
7841         * doc/gnulib-tool.texi (VCS Issues): Mention third option
7842         of committing gnulib files while skipping others.
7843
7844 2010-03-07  Bruno Haible  <bruno@clisp.org>
7845
7846         Tests of module 'wctype' in C++ mode.
7847         * tests/test-wctype-c++.cc: New file.
7848         * modules/wctype-tests (Files): Add it and tests/signature.h.
7849         (Depends-on): Add ansi-c++-opt.
7850         (Makefile.am): Arrange to compile and run test-wctype-c++.
7851
7852         Tests of module 'wchar' in C++ mode.
7853         * tests/test-wchar-c++.cc: New file.
7854         * modules/wchar-tests (Files): Add it and tests/signature.h.
7855         (Depends-on): Add ansi-c++-opt.
7856         (Makefile.am): Arrange to compile and run test-wchar-c++.
7857         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
7858         gl_MODULE_INDICATOR.
7859
7860         Tests of module 'unistd' in C++ mode.
7861         * tests/test-unistd-c++.cc: New file.
7862         * modules/unistd-tests (Files): Add it and tests/signature.h.
7863         (Depends-on): Add ansi-c++-opt.
7864         (Makefile.am): Arrange to compile and run test-unistd-c++.
7865         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
7866         gl_MODULE_INDICATOR.
7867
7868         Tests of module 'time' in C++ mode.
7869         * tests/test-time-c++.cc: New file.
7870         * modules/time-tests (Files): Add it and tests/signature.h.
7871         (Depends-on): Add ansi-c++-opt.
7872         (Makefile.am): Arrange to compile and run test-time-c++.
7873         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7874
7875         Tests of module 'sys_time' in C++ mode.
7876         * tests/test-sys_time-c++.cc: New file.
7877         * modules/sys_time-tests (Files): Add it and tests/signature.h.
7878         (Depends-on): Add ansi-c++-opt.
7879         (Makefile.am): Arrange to compile and run test-sys_time-c++.
7880         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
7881         gl_MODULE_INDICATOR.
7882
7883         Tests of module 'sys_stat' in C++ mode.
7884         * tests/test-sys_stat-c++.cc: New file.
7885         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
7886         (Depends-on): Add ansi-c++-opt.
7887         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
7888         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
7889         gl_MODULE_INDICATOR.
7890
7891         Tests of module 'sys_socket' in C++ mode.
7892         * tests/test-sys_socket-c++.cc: New file.
7893         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
7894         (Depends-on): Add ansi-c++-opt.
7895         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
7896         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
7897         gl_MODULE_INDICATOR.
7898
7899         Tests of module 'sys_select' in C++ mode.
7900         * tests/test-sys_select-c++.cc: New file.
7901         * modules/sys_select-tests (Files): Add it and tests/signature.h.
7902         (Depends-on): Add ansi-c++-opt.
7903         (Makefile.am): Arrange to compile and run test-sys_select-c++.
7904         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
7905         gl_MODULE_INDICATOR.
7906
7907         Tests of module 'sys_ioctl' in C++ mode.
7908         * tests/test-sys_ioctl-c++.cc: New file.
7909         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
7910         (Depends-on): Add ansi-c++-opt.
7911         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
7912         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
7913         gl_MODULE_INDICATOR.
7914
7915         Tests of module 'string' in C++ mode.
7916         * tests/test-string-c++.cc: New file.
7917         * modules/string-tests (Files): Add it and tests/signature.h.
7918         (Depends-on): Add ansi-c++-opt.
7919         (Makefile.am): Arrange to compile and run test-string-c++.
7920         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
7921         gl_MODULE_INDICATOR.
7922
7923         Tests of module 'stdlib' in C++ mode.
7924         * tests/test-stdlib-c++.cc: New file.
7925         * modules/stdlib-tests (Files): Add it and tests/signature.h.
7926         (Depends-on): Add ansi-c++-opt.
7927         (Makefile.am): Arrange to compile and run test-stdlib-c++.
7928         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
7929         gl_MODULE_INDICATOR.
7930
7931         Tests of module 'stdio' in C++ mode.
7932         * tests/test-stdio-c++.cc: New file.
7933         * modules/stdio-tests (Files): Add it and tests/signature.h.
7934         (Depends-on): Add ansi-c++-opt.
7935         (Makefile.am): Arrange to compile and run test-stdio-c++.
7936         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
7937         gl_MODULE_INDICATOR.
7938
7939         Tests of module 'spawn' in C++ mode.
7940         * tests/test-spawn-c++.cc: New file.
7941         * modules/spawn-tests (Files): Add it and tests/signature.h.
7942         (Depends-on): Add ansi-c++-opt.
7943         (Makefile.am): Arrange to compile and run test-spawn-c++.
7944         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
7945         gl_MODULE_INDICATOR.
7946
7947         Tests of module 'signal' in C++ mode.
7948         * tests/test-signal-c++.cc: New file.
7949         * modules/signal-tests (Files): Add it and tests/signature.h.
7950         (Depends-on): Add ansi-c++-opt.
7951         (Makefile.am): Arrange to compile and run test-signal-c++.
7952         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
7953         gl_MODULE_INDICATOR.
7954
7955         Tests of module 'search' in C++ mode.
7956         * tests/test-search-c++.cc: New file.
7957         * modules/search-tests (Files): Add it and tests/signature.h.
7958         (Depends-on): Add ansi-c++-opt.
7959         (Makefile.am): Arrange to compile and run test-search-c++.
7960         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
7961         gl_MODULE_INDICATOR.
7962
7963         Tests of module 'math' in C++ mode.
7964         * tests/test-math-c++.cc: New file.
7965         * modules/math-tests (Files): Add it and tests/signature.h.
7966         (Depends-on): Add ansi-c++-opt.
7967         (Makefile.am): Arrange to compile and run test-math-c++.
7968         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7969
7970         Tests of module 'locale' in C++ mode.
7971         * tests/test-locale-c++.cc: New file.
7972         * modules/locale-tests (Files): Add it and tests/signature.h.
7973         (Depends-on): Add ansi-c++-opt.
7974         (Makefile.am): Arrange to compile and run test-locale-c++.
7975         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
7976         gl_MODULE_INDICATOR.
7977
7978         Tests of module 'langinfo' in C++ mode.
7979         * tests/test-langinfo-c++.cc: New file.
7980         * modules/langinfo-tests (Files): Add it and tests/signature.h.
7981         (Depends-on): Add ansi-c++-opt.
7982         (Makefile.am): Arrange to compile and run test-langinfo-c++.
7983         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
7984         gl_MODULE_INDICATOR.
7985
7986         Tests of module 'iconv-h' in C++ mode.
7987         * tests/test-iconv-h-c++.cc: New file.
7988         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
7989         (Depends-on): Add ansi-c++-opt.
7990         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
7991
7992         Tests of module 'glob' in C++ mode.
7993         * tests/test-glob-c++.cc: New file.
7994         * modules/glob-tests (Files): Add it.
7995         (Depends-on): Add ansi-c++-opt.
7996         (Makefile.am): Arrange to compile and run test-glob-c++.
7997
7998         Tests of module 'fcntl-h' in C++ mode.
7999         * tests/test-fcntl-h-c++.cc: New file.
8000         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
8001         (Depends-on): Add ansi-c++-opt.
8002         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
8003         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
8004         gl_MODULE_INDICATOR.
8005
8006         Tests of module 'dirent' in C++ mode.
8007         * tests/test-dirent-c++.cc: New file.
8008         * modules/dirent-tests (Files): Add it and tests/signature.h.
8009         (Depends-on): Add ansi-c++-opt.
8010         (Makefile.am): Arrange to compile and run test-dirent-c++.
8011         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8012         gl_MODULE_INDICATOR.
8013
8014         New module 'ansi-c++-opt'.
8015         * modules/ansi-c++-opt: New file.
8016         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
8017
8018         Document C++ namespace mode.
8019         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
8020
8021         wctype: Avoid #define replacements in C++ mode.
8022         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
8023         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
8024         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
8025         In C++, define a namespaced alias symbol.
8026         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
8027         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
8028         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
8029         rule.
8030
8031         wchar: Avoid #define replacements in C++ mode.
8032         * lib/wchar.in.h: Include c++defs.h.
8033         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
8034         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
8035         symbol.
8036         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
8037         * modules/wchar (Depends-on): Add c++defs.
8038         (Makefile.am): Update wchar.h rule.
8039
8040         unistd: Avoid #define replacements in C++ mode.
8041         * lib/unistd.in.h: Include c++defs.h.
8042         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
8043         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
8044         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
8045         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
8046         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
8047         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
8048         symbol.
8049         (environ): Update.
8050         * modules/unistd (Depends-on): Add c++defs.
8051         (Makefile.am): Update unistd.h rule.
8052
8053         time: Avoid #define replacements in C++ mode.
8054         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
8055         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
8056         define a namespaced alias symbol.
8057         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
8058         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
8059         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
8060         * modules/time (Depends-on): Add c++defs, warn-on-use.
8061         (Makefile.am): Update time.h rule.
8062         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
8063         * modules/nanosleep (configure.ac): Likewise.
8064         * modules/strptime (configure.ac): Likewise.
8065         * modules/timegm (configure.ac): Likewise.
8066
8067         sys_time: Avoid #define replacements in C++ mode.
8068         * lib/sys_time.in.h: Include c++defs.h.
8069         (gettimeofday): In C++, define a namespaced alias symbol.
8070         * modules/sys_time (Depends-on): Add c++defs.
8071         (Makefile.am): Update sys/time.h rule.
8072
8073         sys_stat: Avoid #define replacements in C++ mode.
8074         * lib/sys_stat.in.h: Include c++defs.h.
8075         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
8076         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
8077         namespaced alias symbol.
8078         In C++, define a namespaced alias symbol.
8079         * modules/sys_stat (Depends-on): Add c++defs.
8080         (Makefile.am): Update sys/stat.h rule.
8081
8082         sys_socket: Avoid #define replacements in C++ mode.
8083         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
8084         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
8085         definitions also when the system has a <sys/socket.h>.
8086         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8087         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
8088         In C++, define a namespaced alias symbol.
8089         * modules/sys_socket (Depends-on): Add c++defs.
8090         (Makefile.am): Update sys/socket.h rule.
8091
8092         sys_select: Avoid #define replacements in C++ mode.
8093         * lib/sys_select.in.h: Include c++defs.h. Enable the function
8094         definitions also when the system has a <sys/select.h>.
8095         (select): In C++, define a namespaced alias symbol.
8096         * modules/sys_select (Depends-on): Add c++defs.
8097         (Makefile.am): Update sys/select.h rule.
8098
8099         sys_ioctl: Avoid #define replacements in C++ mode.
8100         * lib/sys_ioctl.in.h: Include c++defs.h.
8101         (ioctl): In C++, define a namespaced alias symbol.
8102         * modules/sys_ioctl (Depends-on): Add c++defs.
8103         (Makefile.am): Update sys/ioctl.h rule.
8104
8105         string: Avoid #define replacements in C++ mode.
8106         * lib/string.in.h: Include c++defs.h.
8107         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
8108         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
8109         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
8110         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
8111         strsignal, strverscmp): In C++, define a namespaced alias symbol.
8112         * modules/string (Depends-on): Add c++defs.
8113         (Makefile.am): Update string.h rule.
8114
8115         stdlib: Avoid #define replacements in C++ mode.
8116         * lib/stdlib.in.h: Include c++defs.h.
8117         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
8118         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
8119         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
8120         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
8121         symbol.
8122         * modules/stdlib (Depends-on): Add c++defs.
8123         (Makefile.am): Update stdlib.h rule.
8124
8125         stdio: Avoid #define replacements in C++ mode.
8126         * lib/stdio.in.h: Include c++defs.h.
8127         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
8128         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
8129         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
8130         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
8131         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
8132         namespaced alias symbol.
8133         * modules/stdio (Depends-on): Add c++defs.
8134         (Makefile.am): Update stdio.h rule.
8135
8136         spawn: Avoid #define replacements in C++ mode.
8137         * lib/spawn.in.h: Include c++defs.h.
8138         (posix_spawn, posix_spawnp, posix_spawnattr_init,
8139         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
8140         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
8141         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
8142         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
8143         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
8144         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
8145         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
8146         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
8147         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8148         In C++, define a namespaced alias symbol.
8149         * modules/spawn (Depends-on): Add c++defs.
8150         (Makefile.am): Update spawn.h rule.
8151
8152         signal: Avoid #define replacements in C++ mode.
8153         * lib/signal.in.h: Include c++defs.h.
8154         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
8155         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
8156         namespaced alias symbol.
8157         * modules/signal (Depends-on): Add c++defs.
8158         (Makefile.am): Update signal.h rule.
8159
8160         search: Avoid #define replacements in C++ mode.
8161         * lib/search.in.h: Include c++defs.h.
8162         (_gl_search_compar_fn, _gl_search_action_fn): New types.
8163         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
8164         symbol.
8165         * modules/search (Depends-on): Add c++defs.
8166         (Makefile.am): Update search.h rule.
8167
8168         math: Avoid #define replacements in C++ mode.
8169         * lib/math.in.h: Include c++defs.h.
8170         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
8171         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
8172         trunc, truncl): In C++, define a namespaced alias symbol.
8173         * modules/math (Depends-on): Add c++defs.
8174         (Makefile.am): Update math.h rule.
8175
8176         locale: Avoid #define replacements in C++ mode.
8177         * lib/locale.in.h: Include c++defs.h.
8178         (duplocale): In C++, define a namespaced alias symbol.
8179         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
8180         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
8181         * modules/locale (Depends-on): Add c++defs.
8182         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
8183
8184         langinfo: Avoid #define replacements in C++ mode.
8185         * lib/langinfo.in.h: Include c++defs.h.
8186         (nl_langinfo): In C++, define a namespaced alias symbol.
8187         * modules/langinfo (Depends-on): Add c++defs.
8188         (Makefile.am): Update langinfo.h rule.
8189
8190         iconv-h: Avoid #define replacements in C++ mode.
8191         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
8192         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
8193         symbol.
8194         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
8195         whenever iconv is present.
8196         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
8197         (Makefile.am): Update iconv.h rule.
8198
8199         glob: Avoid #define replacements in C++ mode.
8200         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
8201         (_gl_glob_errfunc_fn): New type.
8202         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
8203         symbol.
8204         * modules/glob (Depends-on): Add c++defs, warn-on-use.
8205         (Makefile.am): Update glob.h rule.
8206
8207         fcntl-h: Avoid #define replacements in C++ mode.
8208         * lib/fcntl.in.h: Include c++defs.h.
8209         (fcntl, open, openat): In C++, define a namespaced alias symbol.
8210         * modules/fcntl-h (Depends-on): Add c++defs.
8211         (Makefile.am): Update fcntl.h rule.
8212
8213         dirent: Avoid #define replacements in C++ mode.
8214         * lib/dirent.in.h: Include c++defs.h.
8215         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
8216         namespaced alias symbol.
8217         (dirfd): Update declaration.
8218         * modules/dirent (Depends-on): Add c++defs.
8219         (Makefile.am): Update dirent.h rule.
8220
8221         ctype: Make it usable in C++ code.
8222         * lib/ctype.in.h: Include c++defs.h.
8223         (isblank): Declare as extern "C".
8224         * modules/ctype (Depends-on): Add c++defs.
8225         (Makefile.am): Update ctype.h rule.
8226
8227         New module 'c++defs'.
8228         * modules/c++defs: New file.
8229         * build-aux/c++defs.h: New file.
8230         Reported by John W. Eaton <jwe@gnu.org>.
8231
8232 2010-03-07  Bruno Haible  <bruno@clisp.org>
8233
8234         logb: Provide missing declaration for Cygwin.
8235         * lib/math.in.h (logb): New declaration.
8236         * m4/logb.m4: New file.
8237         * modules/logb (Files): Add m4/logb.m4.
8238         (Depends-on): Add math.
8239         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
8240         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
8241         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
8242         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
8243         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
8244
8245 2010-03-07  Bruno Haible  <bruno@clisp.org>
8246
8247         Fix test-cond link error.
8248         * tests/test-cond.c: Include <stdio.h>.
8249
8250 2010-03-07  Bruno Haible  <bruno@clisp.org>
8251
8252         Fix test-dirent-safer link error.
8253         * modules/dirent-safer-tests (Makefile.am): Define
8254         test_dirent_safer_LDADD.
8255
8256 2010-03-07  Bruno Haible  <bruno@clisp.org>
8257
8258         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
8259         among default module list.
8260
8261 2010-03-07  Bruno Haible  <bruno@clisp.org>
8262
8263         Fix link error on platforms with GNU libiconv.
8264         * modules/unistr/u8-strcoll-tests (Makefile): Define
8265         test_u8_strcoll_LDADD.
8266         * modules/unistr/u16-strcoll-tests (Makefile): Define
8267         test_u16_strcoll_LDADD.
8268         * modules/unistr/u32-strcoll-tests (Makefile): Define
8269         test_u32_strcoll_LDADD.
8270
8271 2010-03-07  Bruno Haible  <bruno@clisp.org>
8272
8273         Use POSIX declarations for socket functions.
8274         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
8275         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
8276         rpl_sendto): Change declaration to match POSIX.
8277         * lib/connect.c (rpl_connect): Likewise.
8278         * lib/accept.c (rpl_accept): Likewise.
8279         * lib/bind.c (rpl_bind): Likewise.
8280         * lib/getpeername.c (rpl_getpeername): Likewise.
8281         * lib/getsockname.c (rpl_getsockname): Likewise.
8282         * lib/recv.c (rpl_recv): Likewise.
8283         * lib/send.c (rpl_send): Likewise.
8284         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8285         * lib/sendto.c (rpl_sendto): Likewise.
8286
8287 2010-03-06  Bruno Haible  <bruno@clisp.org>
8288
8289         Clarify access, euidaccess, faccessat.
8290         * doc/posix-functions/faccessat.texi: Mention security problem under
8291         "Other problems", not "Portability problems".
8292         * doc/posix-functions/access.texi: Likewise. Mention a related security
8293         problem.
8294         * doc/glibc-functions/euidaccess.texi: Mention security problems.
8295         * lib/euidaccess.c: Add comments about platforms.
8296         * lib/unistd.in.h (access, euidaccess): Add warnings.
8297
8298 2010-03-07  Bruno Haible  <bruno@clisp.org>
8299
8300         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
8301         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
8302         (POSIX_SPAWN_SETSCHEDULER): Likewise.
8303         (POSIX_SPAWN_USEVFORK): Define in a way that works when
8304         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8305         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
8306         declare when POSIX_SPAWN_SETSCHEDULER is zero.
8307         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
8308         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
8309         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
8310         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
8311         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
8312         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
8313         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
8314         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
8315         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
8316         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
8317         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
8318         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
8319         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
8320         Likewise.
8321         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
8322         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
8323         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
8324         Likewise.
8325         * tests/test-spawn.c (main): Make it work when
8326         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8327
8328 2010-03-07  Bruno Haible  <bruno@clisp.org>
8329
8330         Fix incorrect Makefile.am generation in German locale.
8331         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8332         Execute sed command with character range in C locale.
8333
8334 2010-03-06  Bruno Haible  <bruno@clisp.org>
8335
8336         Tests for module 'iconv-h'.
8337         * modules/iconv-h-tests: New file.
8338         * tests/test-iconv-h.c: New file.
8339
8340         New module 'iconv-h'.
8341         * modules/iconv-h: New file.
8342         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
8343         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
8344         (configure.ac): Remove gl_ICONV_H.
8345         (Makefile.am): Remove rule for iconv.h.
8346
8347 2010-03-06  Bruno Haible  <bruno@clisp.org>
8348
8349         More consistent naming of *.m4 files.
8350         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
8351         * modules/wctype (Files): Update.
8352
8353         More consistent naming of *.m4 files.
8354         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
8355         * modules/wchar (Files): Update.
8356
8357 2010-03-06  Jim Meyering  <meyering@redhat.com>
8358
8359         euidaccess: relax license to LGPLv2+
8360         * modules/euidaccess (License): Relax to LGPLv2+.
8361
8362 2010-03-06  Bruno Haible  <bruno@clisp.org>
8363
8364         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
8365         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
8366         (Makefile.am): Augment lib_SOURCES instead.
8367
8368 2010-03-04  Jim Meyering  <meyering@redhat.com>
8369
8370         utime: remove obsolete module
8371         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
8372         unnecessary for years, and has been marked as obsolete for 10 months.
8373         * modules/utime: Remove file.
8374         * lib/utime.c: Remove file.
8375         * m4/utime.m4: Remove file.
8376         * m4/utimes-null.m4: Remove file.
8377         * doc/posix-functions/utime.texi (utime): Remove reference to
8378         the module.  Move the sole "fixed by gnulib" item into the
8379         "problems not fixed by Gnulib" list.
8380         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
8381
8382 2010-03-05  Simon Josefsson  <simon@josefsson.org>
8383
8384         * modules/exit (License): Relax license to LGPLv2+.
8385         (Status): Mark as obsolete.
8386         * NEWS: Mention deprecated 'exit' module.
8387         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
8388         of now obsolete 'exit'.
8389
8390 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8391
8392         fts-lgpl: remove unused module
8393         * modules/fts-lgpl: Remove.
8394         * MODULES.html.sh (func_all_modules): Adjust.
8395         * check-module (find_included_lib_files): Adjust.
8396         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
8397
8398 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
8399
8400         copy-acl: enhance Solaris ACL error handling
8401         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
8402         * lib/set-mode-acl.c (qset_acl): Likewise.
8403
8404 2010-03-02  Bruno Haible  <bruno@clisp.org>
8405
8406         spawn: Don't override the system defined values on FreeBSD 8.
8407         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
8408         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
8409         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
8410         if HAVE_POSIX_SPAWN is 1.
8411         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
8412
8413 2010-03-01  Bruno Haible  <bruno@clisp.org>
8414
8415         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
8416         regarding Automake.
8417
8418 2010-02-25  Bruno Haible  <bruno@clisp.org>
8419
8420         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
8421         * gnulib-tool: Define 'echo' as a function only before the ksh alias
8422         setting, not afterwards.
8423         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8424
8425 2010-02-24  Eric Blake  <eblake@redhat.com>
8426
8427         bootstrap, git-version-gen: use timestamp
8428         * build-aux/git-version-gen (scriptversion): Force UTC.
8429         * build-aux/bootstrap (scriptversion): New variable.
8430
8431         bootstrap: allow older git
8432         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
8433         older than 1.6.4.  Requested by the libvirt project.
8434
8435 2010-02-23  Eric Blake  <eblake@redhat.com>
8436
8437         warn-on-use: work with old autoconf
8438         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
8439         AS_VAR semantics of autoconf 2.60.
8440         Reported by Bruno Haible.
8441
8442         bootstrap: improve some comments
8443         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
8444         clarification comments.
8445
8446         gettimeofday: provide correct function
8447         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
8448         when replacement is declared, otherwise provide gettimeofday.
8449         Reported by Michael Goffioul.
8450
8451 2010-02-23  Jim Meyering  <meyering@redhat.com>
8452
8453         lib-ignore: relax license to "unlimited", not LGPLv2+
8454         * modules/lib-ignore (License): Relax to "unlimited".
8455
8456 2010-02-23  Jim Meyering  <meyering@redhat.com>
8457
8458         lib-ignore: relax license to LGPLv2+
8459         * modules/lib-ignore (License): Relax to LGPLv2+.
8460
8461 2010-02-22  Eric Blake  <eblake@redhat.com>
8462
8463         lseek: avoid bash 3.2 broken pipe bug
8464         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
8465         warning from bash 3.2.
8466         Reported by Ben Pfaff, with analysis from Bruno Haible.
8467
8468         bootstrap: support non-FSF copyright holder
8469         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
8470         bootstrap.conf override of COPYRIGHT_HOLDER.
8471         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
8472
8473         bootstrap: interoperate with gettext 0.14.1
8474         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
8475
8476         bootstrap: allow for alternate submodule location
8477         * build-aux/bootstrap (gnulib_path): New variable; use instead of
8478         hardcoding submodule location.
8479         (gnulib_mk): Allow direct use of Makefile.am.
8480
8481         bootstrap: use GNULIB_SRCDIR to reduce disk usage
8482         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
8483         rather than reconfiguring where the submodule points.
8484
8485         gettimeofday: restore support for platforms that lack function
8486         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
8487         replacement if function is missing.
8488         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
8489         * modules/sys_time (Makefile.am): Substitute it.
8490         * lib/sys_time.in.h (gettimeofday): Check it.
8491         Reported by Michael Goffioul.
8492
8493 2010-02-21  Bruno Haible  <bruno@clisp.org>
8494
8495         * lib/stdio.in.h (obstack_printf): Fix typo.
8496
8497 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
8498
8499         vc-list-files: use bzr ls's -R option
8500         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
8501         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
8502
8503 2010-02-21  Jim Meyering  <meyering@redhat.com>
8504
8505         init.sh: fix EXEEXT shims to work also for names like test-prog
8506         * tests/init.sh: Re-exec a better shell, when needed.
8507         If the current shell lacks support for posix $(...), an init.sh-using
8508         test will now try to find a shell that supports that.  If EXEEXT is
8509         nonempty, we also require support for hyphen-in-alias-name and shell
8510         substitutions like ${var#glob}.  Failure to find such a shell results
8511         in a skipped test.
8512
8513 2010-02-21  Bruno Haible  <bruno@clisp.org>
8514
8515         Really work around around "broken pipe" error message from bash 3.2.
8516         * gnulib-tool (func_reset_sigpipe): Remove function.
8517         (echo): In bash 3.2, define to a function that uses printf.
8518         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
8519
8520 2010-02-20  Bruno Haible  <bruno@clisp.org>
8521
8522         Restore support for automake 1.9.6 with autoconf 2.61.
8523         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
8524         Reported by James Youngman <jay@gnu.org>.
8525
8526 2010-02-20  Bruno Haible  <bruno@clisp.org>
8527
8528         Improve *printf warning condition.
8529         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
8530         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
8531         and the function is overridden due to SIGPIPE emulation.
8532
8533 2010-02-20  Bruno Haible  <bruno@clisp.org>
8534
8535         * lib/stdio.in.h: Tweak comments.
8536
8537 2010-02-19  Bruno Haible  <bruno@clisp.org>
8538
8539         Make it easier to find modules. New gnulib-tool option '--find'.
8540         * gnulib-tool: New option --find.
8541         (func_usage): Document it.
8542         (func_sanitize_modulelist): New function, extracted from
8543         func_all_modules.
8544         (func_all_modules): Invoke it.
8545         * doc/gnulib-tool.texi (Which modules?): New node.
8546
8547 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
8548
8549         * lib/sys_select.in.h: Provide select replacement even if
8550         sys/select.h exists on a system, for Interix.
8551
8552 2010-02-18  Jim Meyering  <meyering@redhat.com>
8553
8554         init.sh: don't use $(...) just yet
8555         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
8556         to accommodate e.g., Solaris' /bin/sh.
8557
8558 2010-02-17  Bruno Haible  <bruno@clisp.org>
8559
8560         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
8561         Reported by Ludovic Courtès <ludo@gnu.org>.
8562
8563 2010-02-16  Simon Josefsson  <simon@josefsson.org>
8564
8565         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
8566         linking with -lintl.
8567
8568 2010-02-17  Simon Josefsson  <simon@josefsson.org>
8569
8570         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
8571         if not provided by the system's netdb.h.  Reported by
8572         ludo@gnu.org (Ludovic Courtès).
8573
8574 2010-02-15  Jim Meyering  <meyering@redhat.com>
8575
8576         init.sh: improve portability and efficiency
8577         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
8578         "dummy" in a for loop.
8579         Use '!', not '^' to select the complement of a character set used
8580         in a "case" statement.
8581         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
8582         Suggestions from Eric Blake.
8583
8584         init.sh: automatically accommodate programs with the .exe suffix
8585         Automatically arrange for an invocation of "prog" to execute the
8586         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
8587         may use the simpler "prog", yet still work when built on a system
8588         that requires specifying the added suffix.
8589         Do this by constructing a function named "prog" that invokes
8590         "prog.exe" for each .exe file in selected directories.
8591         * tests/init.sh (find_exe_basenames_): New function.
8592         (create_exe_shim_functions_): New function.
8593         (path_prepend_): Use it.
8594
8595         maint.mk: mark syntax-check sc_*.m rules as .PHONY
8596         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
8597         "make -t syntax-check" doesn't create a ton of sc_*.m files.
8598
8599 2010-02-14  Jim Meyering  <meyering@redhat.com>
8600
8601         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
8602         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
8603         (sc_prohibit_hash_pjw_without_use): New rule.
8604
8605         maint.mk: allow the default upload destination dir to be overridden
8606         * top/maint.mk (upload_dest_dir_): Define with a default that
8607         preserves the status quo.
8608         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
8609         Reported by Peter Simons.
8610
8611         maint.mk: prohibit inclusion of "hash.h" without_use
8612         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
8613
8614 2010-02-10  Jim Meyering  <meyering@redhat.com>
8615
8616         maint.mk: prohibit inclusion of "ignore-value.h" without_use
8617         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
8618
8619 2010-02-09  Eric Blake  <ebb9@byu.net>
8620         and Bruno Haible  <bruno@clisp.org>
8621
8622         obstack-printf-posix: ensure declaration
8623         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
8624         extracted from gl_FUNC_OBSTACK_PRINTF.
8625         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
8626         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8627         Likewise.
8628         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
8629         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
8630         0.
8631
8632 2010-02-08  Bruno Haible  <bruno@clisp.org>
8633
8634         gnulib-tool: Fix typo in 2010-02-07 commit.
8635         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
8636         Reported by Eric Blake.
8637
8638 2010-02-07  Bruno Haible  <bruno@clisp.org>
8639
8640         gnulib-tool: Fix up caching patches.
8641         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
8642         option --no-cache. Use associative arrays when supported by the shell.
8643         (sed_comments): New variable.
8644         (modcache): Renamed from do_cache.
8645         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
8646         abbreviate unnecessarily.
8647         (have_associative): New variable.
8648         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
8649         way also for ksh and zsh.
8650         (func_init_sed_convert_to_cache_statements): New function, extracted
8651         from func_cache_lookup_module. Add support for associative arrays.
8652         Don't set the c_MODULE_cached variable here. Ignore all lines before
8653         the first field header. Remove only the final newline, not all trailing
8654         newlines. Support empty fields correctly. Limit the use of 'eval' to
8655         assignments.
8656         (func_get_description, func_get_status, func_get_notice,
8657         func_get_applicability, func_get_filelist, func_get_dependencies,
8658         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
8659         func_get_automake_snippet, func_get_include_directive,
8660         func_get_link_directive, func_get_license, func_get_maintainer):
8661         Update documentation. List the unoptimized code first. Add support for
8662         associative arrays. Limit the use of 'eval' to assignments.
8663         (func_get_applicability): Undo stylistic pessimisations.
8664         (func_get_automake_snippet, func_get_include_directive): Reduce code
8665         duplication.
8666         (func_modules_transitive_closure, func_modules_add_dummy,
8667         func_modules_notice, func_modules_to_filelist, func_add_file,
8668         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
8669         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
8670         func_create_testdir, func_create_megatestdir): Update documentation.
8671
8672 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8673
8674         * gnulib-tool (func_cache_lookup_module): Store the module name
8675         belonging to the cache variable; error out if two different
8676         module names map to the same cache variable name.
8677
8678 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8679
8680         gnulib-tool: Make caching optional.
8681         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
8682         Update matching short versions of --no-changelog.
8683         (func_usage): Update.
8684         (sed_extract_cache_prog): Renamed from ...
8685         (sed_extract_prog): ... this; revert to old extraction script.
8686         (func_get_description, func_get_status)
8687         (func_get_notice, func_get_applicability, func_get_filelist)
8688         (func_get_dependencies, func_get_autoconf_early_snippet)
8689         (func_get_autoconf_snippet, func_get_automake_snippet)
8690         (func_get_include_directive, func_get_link_directive)
8691         (func_get_license, func_get_maintainer): If $do_cache is false,
8692         use old, non-caching extraction scripts.
8693         Suggestion by Bruno Haible.
8694
8695 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8696
8697         gnulib-tool: cache module metainformation.
8698         * gnulib-tool (sed_extract_prog): Match newline before each
8699         header, and rewrite header to a shell variable suffix.
8700         (func_cache_var, func_cache_lookup_module): New functions,
8701         to turn a module name into a cache variable prefix, and to
8702         look up and cache module metainformation.
8703         (func_get_description, func_get_status)
8704         (func_get_notice, func_get_applicability, func_get_filelist)
8705         (func_get_dependencies, func_get_autoconf_early_snippet)
8706         (func_get_autoconf_snippet, func_get_automake_snippet)
8707         (func_get_include_directive, func_get_link_directive)
8708         (func_get_license, func_get_maintainer): Use
8709         func_cache_lookup_module.
8710
8711 2010-02-07  Bruno Haible  <bruno@clisp.org>
8712
8713         fnctl: Fix missing dependency.
8714         * modules/fcntl (Depends-on): Add getdtablesize.
8715         Reported by John W. Eaton <jwe@gnu.org>.
8716
8717 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8718
8719         Argp: fix recognition of short alias options.
8720
8721         * lib/argp-parse.c (convert_options): Fix improper use of
8722         `|' between character values.
8723         * tests/test-argp.c (group1_option): New alias option
8724         --read (-r).
8725         (group1_parser): Special handling for 'r'.
8726         (test15): New test case.
8727         (test_fun): Add test15.
8728         * tests/test-argp-2.sh: Update expected --help and --usage
8729         outputs.
8730
8731 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8732
8733         * tests/test-argp.c: Fix indentation.
8734
8735 2010-02-04  Eric Blake  <ebb9@byu.net>
8736
8737         gettimeofday: expose type of second argument
8738         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
8739         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
8740         * tests/test-gettimeofday.c: Use it to silence warning.
8741         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
8742         the issue.
8743
8744 2010-02-03  Jim Meyering  <meyering@redhat.com>
8745
8746         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
8747         * lib/regcomp.c (TYPE_SIGNED): Define.
8748         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
8749
8750         regcomp.c: avoid a new -Wshadow warning
8751         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
8752
8753 2010-02-01  Jim Meyering  <meyering@redhat.com>
8754
8755         removing useless parentheses in cpp #define directives
8756         For motivation, see commit c0221df4, "define STREQ(a,b)
8757         consistently, removing useless parentheses"
8758         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
8759         * lib/mountlist.c (MNT_IGNORE): Likewise.
8760         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
8761
8762 2010-02-01  Eric Blake  <ebb9@byu.net>
8763
8764         sys_time: use link-warning
8765         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
8766         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
8767         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
8768         * modules/sys_time (Depends-on): Add warn-on-use.
8769         (Makefile.am): Always build replacement.
8770         (configure.ac): Update substitutions.
8771         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
8772         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
8773         bother with SYS_TIME_H.
8774         * modules/gettimeofday (configure.ac): Declare indicator.
8775         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
8776         in use.
8777
8778         closein-tests: silence compiler warning
8779         * tests/test-closein.c (main): Ignore fread result.
8780         * modules/closein-tests (Depends-on): Add ignore-value.
8781
8782         tests: silence warning about system return
8783         * tests/test-areadlink-with-size.c (main): Ignore system result.
8784         * tests/test-areadlink.c (main): Likewise.
8785         * tests/test-areadlinkat-with-size.c (main): Likewise.
8786         * tests/test-areadlinkat.c (main): Likewise.
8787         * tests/test-canonicalize-lgpl.c (main): Likewise.
8788         * tests/test-canonicalize.c (main): Likewise.
8789         * tests/test-chown.c (main): Likewise.
8790         * tests/test-fchownat.c (main): Likewise.
8791         * tests/test-fdutimensat.c (main): Likewise.
8792         * tests/test-fstatat.c (main): Likewise.
8793         * tests/test-futimens.c (main): Likewise.
8794         * tests/test-lchown.c (main): Likewise.
8795         * tests/test-link.c (main): Likewise.
8796         * tests/test-linkat.c (main): Likewise.
8797         * tests/test-lstat.c (main): Likewise.
8798         * tests/test-mkdir.c (main): Likewise.
8799         * tests/test-mkdirat.c (main): Likewise.
8800         * tests/test-mkfifo.c (main): Likewise.
8801         * tests/test-mkfifoat.c (main): Likewise.
8802         * tests/test-mknod.c (main): Likewise.
8803         * tests/test-readlink.c (main): Likewise.
8804         * tests/test-remove.c (main): Likewise.
8805         * tests/test-rename.c (main): Likewise.
8806         * tests/test-renameat.c (main): Likewise.
8807         * tests/test-rmdir.c (main): Likewise.
8808         * tests/test-symlink.c (main): Likewise.
8809         * tests/test-symlinkat.c (main): Likewise.
8810         * tests/test-unlink.c (main): Likewise.
8811         * tests/test-unlinkat.c (main): Likewise.
8812         * tests/test-utimens.c (main): Likewise.
8813         * tests/test-utimensat.c (main): Likewise.
8814         * modules/areadlink-tests (Depends-on): Add ignore-value.
8815         * modules/areadlink-with-size-tests (Depends-on): Likewise.
8816         * modules/areadlinkat-tests (Depends-on): Likewise.
8817         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
8818         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8819         * modules/canonicalize-tests (Depends-on): Likewise.
8820         * modules/chown-tests (Depends-on): Likewise.
8821         * modules/fdutimensat-tests (Depends-on): Likewise.
8822         * modules/futimens-tests (Depends-on): Likewise.
8823         * modules/lchown-tests (Depends-on): Likewise.
8824         * modules/link-tests (Depends-on): Likewise.
8825         * modules/linkat-tests (Depends-on): Likewise.
8826         * modules/lstat-tests (Depends-on): Likewise.
8827         * modules/mkdir-tests (Depends-on): Likewise.
8828         * modules/mkfifo-tests (Depends-on): Likewise.
8829         * modules/mkfifoat-tests (Depends-on): Likewise.
8830         * modules/mknod-tests (Depends-on): Likewise.
8831         * modules/openat-tests (Depends-on): Likewise.
8832         * modules/readlink-tests (Depends-on): Likewise.
8833         * modules/remove-tests (Depends-on): Likewise.
8834         * modules/rename-tests (Depends-on): Likewise.
8835         * modules/renameat-tests (Depends-on): Likewise.
8836         * modules/rmdir-tests (Depends-on): Likewise.
8837         * modules/symlink-tests (Depends-on): Likewise.
8838         * modules/symlinkat-tests (Depends-on): Likewise.
8839         * modules/unlink-tests (Depends-on): Likewise.
8840         * modules/utimens-tests (Depends-on): Likewise.
8841         * modules/utimensat-tests (Depends-on): Likewise.
8842
8843 2010-01-31  Bruno Haible  <bruno@clisp.org>
8844
8845         Perform the same test for many <math.h> functions.
8846         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
8847         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
8848         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
8849         of gl_MATHFUNC.
8850         * modules/acos (configure.ac): Likewise.
8851         * modules/asin (configure.ac): Likewise.
8852         * modules/atan (configure.ac): Likewise.
8853         * modules/atan2 (configure.ac): Likewise.
8854         * modules/cbrt (configure.ac): Likewise.
8855         * modules/copysign (configure.ac): Likewise.
8856         * modules/cos (configure.ac): Likewise.
8857         * modules/cosh (configure.ac): Likewise.
8858         * modules/erf (configure.ac): Likewise.
8859         * modules/erfc (configure.ac): Likewise.
8860         * modules/exp (configure.ac): Likewise.
8861         * modules/fmod (configure.ac): Likewise.
8862         * modules/hypot (configure.ac): Likewise.
8863         * modules/j0 (configure.ac): Likewise.
8864         * modules/j1 (configure.ac): Likewise.
8865         * modules/jn (configure.ac): Likewise.
8866         * modules/lgamma (configure.ac): Likewise.
8867         * modules/log (configure.ac): Likewise.
8868         * modules/log10 (configure.ac): Likewise.
8869         * modules/log1p (configure.ac): Likewise.
8870         * modules/pow (configure.ac): Likewise.
8871         * modules/remainder (configure.ac): Likewise.
8872         * modules/sin (configure.ac): Likewise.
8873         * modules/sinh (configure.ac): Likewise.
8874         * modules/tan (configure.ac): Likewise.
8875         * modules/tanh (configure.ac): Likewise.
8876         * modules/y0 (configure.ac): Likewise.
8877         * modules/y1 (configure.ac): Likewise.
8878         * modules/yn (configure.ac): Likewise.
8879         Suggested by Paolo Bonzini.
8880
8881 2010-01-31  Bruno Haible  <bruno@clisp.org>
8882
8883         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
8884
8885 2010-01-31  Bruno Haible  <bruno@clisp.org>
8886
8887         Work around getdelim() bug on FreeBSD 8.0.
8888         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
8889         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
8890         not work.
8891         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
8892         is 1.
8893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
8894         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
8895         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
8896         a non-zero size.
8897         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
8898
8899 2010-01-31  Bruno Haible  <bruno@clisp.org>
8900
8901         Work around getline() bug on FreeBSD 8.0.
8902         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
8903         and a non-zero size.
8904         * tests/test-getline.c (main): Likewise.
8905         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
8906         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
8907
8908 2010-01-28  Eric Blake  <ebb9@byu.net>
8909
8910         regex: fix build failure
8911         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
8912         platforms.
8913
8914 2010-01-28  Jim Meyering  <meyering@redhat.com>
8915
8916         regex: do not ignore memory allocation failure
8917         * lib/regex_internal.c (create_cd_newstate): Detect
8918         re_node_set_init_copy failure.   Extracted from glibc commit
8919         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8920
8921         regex: sync more white-space changes from libc
8922         * lib/regex_internal.c: White-space only changes.
8923         * lib/regexec.c: Likewise.
8924
8925         regex: add many uses of __attribute_warn_unused_result__
8926         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
8927         * lib/regexec.c: Likewise.
8928         Extracted from a messy glibc commit.
8929
8930         regcomp.c: spelling and merge-artifact from glibc
8931         * lib/regcomp.c: Merge remainder of glibc's
8932         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8933
8934         regcomp.c: sync white-space changes from glibc
8935         * lib/regcomp.c: Merge to accommodate white space
8936         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8937
8938         regcomp.c: do not ignore internal return values
8939         * lib/regcomp.c: Do not ignore internal return values.
8940         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
8941         but without its white-space changes and spelling fixes.
8942
8943         regex_internal.h: define __attribute_warn_unused_result__
8944         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
8945
8946         maint: add a syntax-check rule to check for vulnerable Makefile.in
8947         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
8948
8949 2010-01-27  Jim Meyering  <meyering@redhat.com>
8950
8951         ncftpput-ftp: clean up spaces
8952         * build-aux/ncftpput-ftp: Make Copyright line consistent.
8953         Remove trailing blanks.
8954
8955 2010-01-27  Simon Josefsson  <simon@josefsson.org>
8956
8957         * build-aux/git-version-gen: Fix copyright statement.
8958         * build-aux/gnupload: Likewise.
8959         * tests/test-arcfour.c: Likewise.
8960         * tests/test-arctwo.c: Likewise.
8961         * tests/test-count-one-bits.c: Likewise.
8962         * tests/test-crc.c: Likewise.
8963         * tests/test-des.c: Likewise.
8964         * tests/test-gc-arcfour.c: Likewise.
8965         * tests/test-gc-arctwo.c: Likewise.
8966         * tests/test-gc-des.c: Likewise.
8967         * tests/test-gc-hmac-md5.c: Likewise.
8968         * tests/test-gc-hmac-sha1.c: Likewise.
8969         * tests/test-gc-md2.c: Likewise.
8970         * tests/test-gc-md4.c: Likewise.
8971         * tests/test-gc-md5.c: Likewise.
8972         * tests/test-gc-pbkdf2-sha1.c: Likewise.
8973         * tests/test-gc-rijndael.c: Likewise.
8974         * tests/test-gc-sha1.c: Likewise.
8975         * tests/test-gc.c: Likewise.
8976         * tests/test-gethostname.c: Likewise.
8977         * tests/test-gettimeofday.c: Likewise.
8978         * tests/test-hash.c: Likewise.
8979         * tests/test-hmac-md5.c: Likewise.
8980         * tests/test-hmac-sha1.c: Likewise.
8981         * tests/test-md2.c: Likewise.
8982         * tests/test-md4.c: Likewise.
8983         * tests/test-md5.c: Likewise.
8984         * tests/test-memchr.c: Likewise.
8985         * tests/test-memchr2.c: Likewise.
8986         * tests/test-memcmp.c: Likewise.
8987         * tests/test-memmem.c: Likewise.
8988         * tests/test-memrchr.c: Likewise.
8989         * tests/test-rawmemchr.c: Likewise.
8990         * tests/test-read-file.c: Likewise.
8991         * tests/test-rijndael.c: Likewise.
8992         * tests/test-sockets.c: Likewise.
8993         * tests/test-strchrnul.c: Likewise.
8994         * tests/test-strstr.c: Likewise.
8995         * tests/test-strtod.c: Likewise.
8996         * build-aux/ncftpput-ftp: Likewise.
8997
8998 2010-01-26  Eric Blake  <ebb9@byu.net>
8999
9000         ignore-value: update recommended header name
9001         * modules/ignore-value (Include): Only use <> for headers that
9002         exist in glibc.
9003
9004 2010-01-26  Jim Meyering  <meyering@redhat.com>
9005
9006         test-userspec.c: avoid compiler warnings
9007         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
9008         and "initialization discards qualifiers..." warnings.
9009         Put the first "uid" in its own scope, and make char* members "const".
9010
9011 2010-01-25  Bruno Haible  <bruno@clisp.org>
9012
9013         gnulib-tool: Make warning diagnostics consistent.
9014         * gnulib-tool (func_warning): New function.
9015         Use it everywhere where gnulib-tool produces output to stderr and it is
9016         not a fatal error.
9017
9018 2010-01-25  Bruno Haible  <bruno@clisp.org>
9019
9020         Fix test dependencies.
9021         * modules/xstrtol-tests (Depends-on): Add inttypes.
9022         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
9023
9024 2010-01-25 Pádraig Brady <P@draigBrady.com>
9025
9026         syntax-check: detect incorrect boolean macro values in config.h
9027         * modules/maintainer-makefile (configure.ac): Parameterize the location
9028         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
9029         The logic is from Eric Blake and the location indicated by Jim Meyering.
9030         Note the more natural CONFIG_HEADER name is prohibited by automake
9031         for backwards compatibility reasons.
9032         * top/maint.mk (sc_Wundef_boolean): New rule.
9033
9034 2010-01-25  Jim Meyering  <meyering@redhat.com>
9035
9036         bootstrap: detect MacOS 10.6's shasum, too
9037         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
9038         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
9039
9040 2010-01-23  Jim Meyering  <meyering@redhat.com>
9041
9042         xstrtoll: new module
9043         * modules/xstrtoll: New file.
9044         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
9045         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
9046         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
9047         ./configure fails if you use this module and lack "long long".
9048         * modules/xstrtoll-tests: New module.
9049         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
9050         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
9051         new init.sh-based test framework.
9052
9053 2010-01-24  Bruno Haible  <bruno@clisp.org>
9054
9055         Tests for module 'yn'.
9056         * modules/yn-tests: New file.
9057         * tests/test-yn.c: New file.
9058
9059         Tests for module 'y1'.
9060         * modules/y1-tests: New file.
9061         * tests/test-y1.c: New file.
9062
9063         Tests for module 'y0'.
9064         * modules/y0-tests: New file.
9065         * tests/test-y0.c: New file.
9066
9067         Tests for module 'tanh'.
9068         * modules/tanh-tests: New file.
9069         * tests/test-tanh.c: New file.
9070
9071         Tests for module 'tan'.
9072         * modules/tan-tests: New file.
9073         * tests/test-tan.c: New file.
9074
9075         Tests for module 'sqrt'.
9076         * modules/sqrt-tests: New file.
9077         * tests/test-sqrt.c: New file.
9078
9079         Tests for module 'sinh'.
9080         * modules/sinh-tests: New file.
9081         * tests/test-sinh.c: New file.
9082
9083         Tests for module 'sin'.
9084         * modules/sin-tests: New file.
9085         * tests/test-sin.c: New file.
9086
9087         Tests for module 'rint'.
9088         * modules/rint-tests: New file.
9089         * tests/test-rint.c: New file.
9090
9091         Tests for module 'remainder'.
9092         * modules/remainder-tests: New file.
9093         * tests/test-remainder.c: New file.
9094
9095         Tests for module 'pow'.
9096         * modules/pow-tests: New file.
9097         * tests/test-pow.c: New file.
9098
9099         Tests for module 'nextafter'.
9100         * modules/nextafter-tests: New file.
9101         * tests/test-nextafter.c: New file.
9102
9103         Tests for module 'modf'.
9104         * modules/modf-tests: New file.
9105         * tests/test-modf.c: New file.
9106
9107         Tests for module 'logb'.
9108         * modules/logb-tests: New file.
9109         * tests/test-logb.c: New file.
9110
9111         Tests for module 'log1p'.
9112         * modules/log1p-tests: New file.
9113         * tests/test-log1p.c: New file.
9114
9115         Tests for module 'log10'.
9116         * modules/log10-tests: New file.
9117         * tests/test-log10.c: New file.
9118
9119         Tests for module 'log'.
9120         * modules/log-tests: New file.
9121         * tests/test-log.c: New file.
9122
9123         Tests for module 'lgamma'.
9124         * modules/lgamma-tests: New file.
9125         * tests/test-lgamma.c: New file.
9126
9127         Tests for module 'ldexp'.
9128         * modules/ldexp-tests: New file.
9129         * tests/test-ldexp.c: New file.
9130
9131         Tests for module 'jn'.
9132         * modules/jn-tests: New file.
9133         * tests/test-jn.c: New file.
9134
9135         Tests for module 'j1'.
9136         * modules/j1-tests: New file.
9137         * tests/test-j1.c: New file.
9138
9139         Tests for module 'j0'.
9140         * modules/j0-tests: New file.
9141         * tests/test-j0.c: New file.
9142
9143         Tests for module 'hypot'.
9144         * modules/hypot-tests: New file.
9145         * tests/test-hypot.c: New file.
9146
9147         Tests for module 'fmod'.
9148         * modules/fmod-tests: New file.
9149         * tests/test-fmod.c: New file.
9150
9151         Tests for module 'fabs'.
9152         * modules/fabs-tests: New file.
9153         * tests/test-fabs.c: New file.
9154
9155         Tests for module 'exp'.
9156         * modules/exp-tests: New file.
9157         * tests/test-exp.c: New file.
9158
9159         Tests for module 'erfc'.
9160         * modules/erfc-tests: New file.
9161         * tests/test-erfc.c: New file.
9162
9163         Tests for module 'erf'.
9164         * modules/erf-tests: New file.
9165         * tests/test-erf.c: New file.
9166
9167         Tests for module 'cosh'.
9168         * modules/cosh-tests: New file.
9169         * tests/test-cosh.c: New file.
9170
9171         Tests for module 'cos'.
9172         * modules/cos-tests: New file.
9173         * tests/test-cos.c: New file.
9174
9175         Tests for module 'copysign'.
9176         * modules/copysign-tests: New file.
9177         * tests/test-copysign.c: New file.
9178
9179         Tests for module 'cbrt'.
9180         * modules/cbrt-tests: New file.
9181         * tests/test-cbrt.c: New file.
9182
9183         Tests for module 'atan2'.
9184         * modules/atan2-tests: New file.
9185         * tests/test-atan2.c: New file.
9186
9187         Tests for module 'atan'.
9188         * modules/atan-tests: New file.
9189         * tests/test-atan.c: New file.
9190
9191         Tests for module 'asin'.
9192         * modules/asin-tests: New file.
9193         * tests/test-asin.c: New file.
9194
9195         Tests for module 'acos'.
9196         * modules/acos-tests: New file.
9197         * tests/test-acos.c: New file.
9198
9199 2010-01-24  Bruno Haible  <bruno@clisp.org>
9200
9201         Fix tests for common <math.h> functions.
9202         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
9203         code snippet that references the function pointer, rather than merely
9204         calling the function. Substitute the FUNC_LIBM variable.
9205         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
9206         * modules/acos (configure.ac): Likewise.
9207         * modules/asin (configure.ac): Likewise.
9208         * modules/atan (configure.ac): Likewise.
9209         * modules/atan2 (configure.ac): Likewise.
9210         * modules/cbrt (configure.ac): Likewise.
9211         * modules/copysign (configure.ac): Likewise.
9212         * modules/cos (configure.ac): Likewise.
9213         * modules/cosh (configure.ac): Likewise.
9214         * modules/erf (configure.ac): Likewise.
9215         * modules/erfc (configure.ac): Likewise.
9216         * modules/exp (configure.ac): Likewise.
9217         * modules/fabs (configure.ac): Likewise.
9218         * modules/fmod (configure.ac): Likewise.
9219         * modules/hypot (configure.ac): Likewise.
9220         * modules/j0 (configure.ac): Likewise.
9221         * modules/j1 (configure.ac): Likewise.
9222         * modules/jn (configure.ac): Likewise.
9223         * modules/ldexp (configure.ac): Likewise.
9224         * modules/lgamma (configure.ac): Likewise.
9225         * modules/log (configure.ac): Likewise.
9226         * modules/log10 (configure.ac): Likewise.
9227         * modules/log1p (configure.ac): Likewise.
9228         * modules/logb (configure.ac): Likewise.
9229         * modules/modf (configure.ac): Likewise.
9230         * modules/nextafter (configure.ac): Likewise.
9231         * modules/pow (configure.ac): Likewise.
9232         * modules/remainder (configure.ac): Likewise.
9233         * modules/rint (configure.ac): Likewise.
9234         * modules/sin (configure.ac): Likewise.
9235         * modules/sinh (configure.ac): Likewise.
9236         * modules/tan (configure.ac): Likewise.
9237         * modules/tanh (configure.ac): Likewise.
9238         * modules/y0 (configure.ac): Likewise.
9239         * modules/y1 (configure.ac): Likewise.
9240         * modules/yn (configure.ac): Likewise.
9241
9242 2010-01-24  Bruno Haible  <bruno@clisp.org>
9243
9244         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
9245         * tests/test-acosl.c (x): New variable.
9246         (main): Store argument in x and fetch it from x.
9247         * tests/test-asinl.c (x): New variable.
9248         (main): Store argument in x and fetch it from x.
9249         * tests/test-atanl.c (x): New variable.
9250         (main): Store argument in x and fetch it from x.
9251         * tests/test-cosl.c (x): New variable.
9252         (main): Store argument in x and fetch it from x.
9253         * tests/test-expl.c (x): New variable.
9254         (main): Store argument in x and fetch it from x.
9255         * tests/test-logl.c (x): New variable.
9256         (main): Store argument in x and fetch it from x.
9257         * tests/test-sinl.c (x): New variable.
9258         (main): Store argument in x and fetch it from x.
9259         * tests/test-sqrtl.c (x): New variable.
9260         (main): Store argument in x and fetch it from x.
9261         * tests/test-tanl.c (x): New variable.
9262         (main): Store argument in x and fetch it from x.
9263
9264 2010-01-24  Bruno Haible  <bruno@clisp.org>
9265
9266         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
9267         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
9268         assignments to the initial TESTS_ENVIRONMENT.
9269         * doc/gnulib.texi (Unit test modules): Document it.
9270         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
9271         TESTS_ENVIRONMENT.
9272         * modules/btowc-tests (Makefile.am): Likewise.
9273         * modules/c-stack-tests (Makefile.am): Likewise.
9274         * modules/c-strcase-tests (Makefile.am): Likewise.
9275         * modules/copy-file-tests (Makefile.am): Likewise.
9276         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9277         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9278         * modules/mbrtowc-tests (Makefile.am): Likewise.
9279         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9280         * modules/mbscasestr-tests (Makefile.am): Likewise.
9281         * modules/mbschr-tests (Makefile.am): Likewise.
9282         * modules/mbscspn-tests (Makefile.am): Likewise.
9283         * modules/mbsinit-tests (Makefile.am): Likewise.
9284         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9285         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9286         * modules/mbspbrk-tests (Makefile.am): Likewise.
9287         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9288         * modules/mbsrchr-tests (Makefile.am): Likewise.
9289         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9290         * modules/mbsspn-tests (Makefile.am): Likewise.
9291         * modules/mbsstr-tests (Makefile.am): Likewise.
9292         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9293         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9294         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9295         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9296         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9297         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9298         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9299         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9300         * modules/wcrtomb-tests (Makefile.am): Likewise.
9301         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9302         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9303         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
9304         assignments from TESTS_ENVIRONMENT.
9305         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
9306         augmentation.
9307         * modules/argp-version-etc-tests (Makefile.am): Likewise.
9308         * modules/atexit-tests (Makefile.am): Likewise.
9309         * modules/binary-io-tests (Makefile.am): Likewise.
9310         * modules/closein-tests (Makefile.am): Likewise.
9311         * modules/dprintf-posix-tests (Makefile.am): Likewise.
9312         * modules/exclude-tests (Makefile.am): Likewise.
9313         * modules/fflush-tests (Makefile.am): Likewise.
9314         * modules/fpending-tests (Makefile.am): Likewise.
9315         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9316         * modules/freadahead-tests (Makefile.am): Likewise.
9317         * modules/freadptr-tests (Makefile.am): Likewise.
9318         * modules/freadseek-tests (Makefile.am): Likewise.
9319         * modules/fseek-tests (Makefile.am): Likewise.
9320         * modules/fseeko-tests (Makefile.am): Likewise.
9321         * modules/ftell-tests (Makefile.am): Likewise.
9322         * modules/ftello-tests (Makefile.am): Likewise.
9323         * modules/idpriv-drop-tests (Makefile.am): Likewise.
9324         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
9325         * modules/lseek-tests (Makefile.am): Likewise.
9326         * modules/parse-duration-tests (Makefile.am): Likewise.
9327         * modules/perror-tests (Makefile.am): Likewise.
9328         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
9329         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
9330         * modules/pipe-tests (Makefile.am): Likewise.
9331         * modules/pread-tests (Makefile.am): Likewise.
9332         * modules/printf-posix-tests (Makefile.am): Likewise.
9333         * modules/select-tests (Makefile.am): Likewise.
9334         * modules/sigpipe-tests (Makefile.am): Likewise.
9335         * modules/tsearch-tests (Makefile.am): Likewise.
9336         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9337         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9338         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9339         * modules/uniwidth/width-tests (Makefile.am): Likewise.
9340         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
9341         * modules/version-etc-tests (Makefile.am): Likewise.
9342         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9343         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9344         * modules/xalloc-die-tests (Makefile.am): Likewise.
9345         * modules/xprintf-posix-tests (Makefile.am): Likewise.
9346         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9347         * modules/xstrtol-tests (Makefile.am): Likewise.
9348         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9349         * modules/yesno-tests (Makefile.am): Likewise.
9350         Suggested by Jim Meyering.
9351
9352 2010-01-24  Bruno Haible  <bruno@clisp.org>
9353
9354         More documentation.
9355         * doc/gnulib.texi (Writing modules): New chapter.
9356         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
9357         the new chapter.
9358
9359 2010-01-24  Jim Meyering  <meyering@redhat.com>
9360
9361         maint.mk: do not prepend "./" after filtering
9362         * top/maint.mk (_prepend_srcdir_prefix): New variable
9363         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
9364         "./" when $(srcdir) is ".".
9365
9366         define STREQ(a,b) consistently, removing useless parentheses
9367         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
9368         since the only risk is that "a" or "b" contains an unparenthesized
9369         comma, but if either did that, STREQ would have 3 or more arguments.
9370         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
9371         * lib/fts.c (STREQ): Remove unnecessary parentheses.
9372         * lib/hash-triple.c (STREQ): Likewise.
9373         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
9374         * lib/getugroups.c (STREQ): Likewise.
9375
9376 2010-01-23  Jim Meyering  <meyering@redhat.com>
9377
9378         maint.mk: fix syntax-check in a non-srcdir build directory
9379         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
9380         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
9381
9382 2010-01-22  Jim Meyering  <meyering@redhat.com>
9383
9384         userspec: add unit tests
9385         * tests/test-userspec.c: New file.
9386         * modules/userspec-tests: Likewise.
9387
9388 2010-01-21  Jim Meyering  <meyering@redhat.com>
9389
9390         maint.mk: handle source file names containing "." robustly
9391         * top/maint.mk (_dot_escaped_srcdir): Define.
9392         (VC_LIST): Use it in LHS of sed substitution.
9393
9394 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
9395
9396         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
9397         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
9398         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
9399         from a non-srcdir build.
9400
9401 2010-01-20  Eric Blake  <ebb9@byu.net>
9402
9403         warn-on-use: use instead of link-warning
9404         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
9405         * modules/unistd (Depends-on, Makefile.am): Likewise.
9406         * modules/arpa_inet (Depends-on): Replace link-warning with
9407         warn-on-use.
9408         (Makefile.am): Update rules accordingly.
9409         * modules/ctype (Depends-on, Makefile.am): Likewise.
9410         * modules/dirent (Depends-on, Makefile.am): Likewise.
9411         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
9412         * modules/inttypes (Depends-on, Makefile.am): Likewise.
9413         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9414         * modules/locale (Depends-on, Makefile.am): Likewise.
9415         * modules/math (Depends-on, Makefile.am): Likewise.
9416         * modules/search (Depends-on, Makefile.am): Likewise.
9417         * modules/signal (Depends-on, Makefile.am): Likewise.
9418         * modules/spawn (Depends-on, Makefile.am): Likewise.
9419         * modules/stdlib (Depends-on, Makefile.am): Likewise.
9420         * modules/string (Depends-on, Makefile.am): Likewise.
9421         * modules/strings (Depends-on, Makefile.am): Likewise.
9422         * modules/sys_file (Depends-on, Makefile.am): Likewise.
9423         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
9424         * modules/sys_select (Depends-on, Makefile.am): Likewise.
9425         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
9426         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
9427         * modules/sys_times (Depends-on, Makefile.am): Likewise.
9428         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9429         * modules/wchar (Depends-on, Makefile.am): Likewise.
9430         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
9431         should be poisoned.
9432         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
9433         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
9434         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
9435         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9436         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9437         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9438         * m4/math_h.m4 (gl_MATH_H): Likewise.
9439         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9440         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9441         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9442         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9443         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9444         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9445         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9446         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
9447         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9448         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9449         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9450         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9451         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9452         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9453         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9454         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9455         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
9456         GL_LINK_WARNING.
9457         * lib/ctype.in.h: Likewise.
9458         * lib/dirent.in.h: Likewise.
9459         * lib/fcntl.in.h: Likewise.
9460         * lib/inttypes.in.h: Likewise.
9461         * lib/langinfo.in.h: Likewise.
9462         * lib/locale.in.h: Likewise.
9463         * lib/math.in.h: Likewise.
9464         * lib/search.in.h: Likewise.
9465         * lib/signal.in.h: Likewise.
9466         * lib/spawn.in.h: Likewise.
9467         * lib/stdio.in.h: Likewise.
9468         * lib/stdlib.in.h: Likewise.
9469         * lib/string.in.h: Likewise.
9470         * lib/strings.in.h: Likewise.
9471         * lib/sys_file.in.h: Likewise.
9472         * lib/sys_ioctl.in.h: Likewise.
9473         * lib/sys_select.in.h: Likewise.
9474         * lib/sys_socket.in.h: Likewise.
9475         * lib/sys_stat.in.h: Likewise.
9476         * lib/sys_times.in.h: Likewise.
9477         * lib/sys_utsname.in.h: Likewise.
9478         * lib/unistd.in.h: Likewise.
9479         * lib/wchar.in.h: Likewise.
9480
9481 2010-01-20  Bruno Haible  <bruno@clisp.org>
9482
9483         Avoid duplicate -lm.
9484         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
9485         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
9486         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
9487         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
9488         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
9489         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
9490         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
9491         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
9492         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
9493         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
9494         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
9495         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9496         Reported by Paolo Bonzini.
9497
9498 2010-01-19  Bruno Haible  <bruno@clisp.org>
9499
9500         langinfo, nl_langinfo: Relicense under LGPLv2+.
9501         * modules/langinfo (License): Change to LGPLv2+.
9502         * modules/nl_langinfo (License): Likewise.
9503         Patch by David Lutterkort <lutter@redhat.com>.
9504
9505 2010-01-19  Bruno Haible  <bruno@clisp.org>
9506
9507         Avoid compilation error with cc on OSF/1 5.1.
9508         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
9509         statement, not before.
9510         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9511
9512 2010-01-18  Bruno Haible  <bruno@clisp.org>
9513
9514         Avoid a link error due to the __printf__ symbol.
9515         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
9516         and 2.6.x.
9517         (__format__, __printf__): Remove definitions.
9518         * lib/argp-fmtstream.h: Likewise.
9519         * lib/argp.h: Likewise.
9520         * lib/error.h: Likewise.
9521         * lib/vasnprintf.h: Likewise.
9522         * lib/xprintf.h: Likewise.
9523         * lib/xvasprintf.h: Likewise.
9524         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9525
9526 2010-01-18  Bruno Haible  <bruno@clisp.org>
9527
9528         Tests for module 'tanl'.
9529         * modules/tanl-tests: New file.
9530         * tests/test-tanl.c: New file.
9531
9532         Tests for module 'sqrtl'.
9533         * modules/sqrtl-tests: New file.
9534         * tests/test-sqrtl.c: New file.
9535
9536         Tests for module 'sinl'.
9537         * modules/sinl-tests: New file.
9538         * tests/test-sinl.c: New file.
9539
9540         Tests for module 'logl'.
9541         * modules/logl-tests: New file.
9542         * tests/test-logl.c: New file.
9543
9544         Tests for module 'expl'.
9545         * modules/expl-tests: New file.
9546         * tests/test-expl.c: New file.
9547
9548         Tests for module 'cosl'.
9549         * modules/cosl-tests: New file.
9550         * tests/test-cosl.c: New file.
9551
9552         Tests for module 'atanl'.
9553         * modules/atanl-tests: New file.
9554         * tests/test-atanl.c: New file.
9555
9556         Tests for module 'asinl'.
9557         * modules/asinl-tests: New file.
9558         * tests/test-asinl.c: New file.
9559
9560         Tests for module 'acosl'.
9561         * modules/acosl-tests: New file.
9562         * tests/test-acosl.c: New file.
9563
9564         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9565         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
9566         tanl): Use the standard gnulib idiom.
9567         * lib/cosl.c: Don't include trigl.c and sincosl.c.
9568         * lib/sinl.c: Likewise.
9569         * lib/tanl.c: Don't include trigl.c.
9570         (kernel_tanl): Make static.
9571         * lib/sincosl.c: Include trigl.h first.
9572         * lib/trigl.c: Likewise.
9573         * m4/acosl.m4: New file.
9574         * m4/asinl.m4: New file.
9575         * m4/atanl.m4: New file.
9576         * m4/cosl.m4: New file.
9577         * m4/expl.m4: New file.
9578         * m4/logl.m4: New file.
9579         * m4/sinl.m4: New file.
9580         * m4/sqrtl.m4: New file.
9581         * m4/tanl.m4: New file.
9582         * m4/mathl.m4: Remove file.
9583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
9584         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9585         Don't initialize GNULIB_MATHL.
9586         * modules/acosl: New file.
9587         * modules/asinl: New file.
9588         * modules/atanl: New file.
9589         * modules/cosl: New file.
9590         * modules/expl: New file.
9591         * modules/logl: New file.
9592         * modules/sinl: New file.
9593         * modules/sqrtl: New file.
9594         * modules/tanl: New file.
9595         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
9596         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
9597         substitute GNULIB_MATHL.
9598         * modules/mathl: Rewritten.
9599         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
9600         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
9601         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
9602         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
9603         * doc/posix-functions/expl.texi: Mention the 'expl' module.
9604         * doc/posix-functions/logl.texi: Mention the 'logl' module.
9605         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
9606         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
9607         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
9608
9609 2010-01-18  Bruno Haible  <bruno@clisp.org>
9610
9611         sqrt: Make gl_FUNC_SQRT requirable.
9612         * m4/sqrt.m4: New file.
9613         * modules/sqrt (Files): Add it.
9614         (configure.ac): Invoke gl_FUNC_SQRT.
9615
9616 2010-01-18  Bruno Haible  <bruno@clisp.org>
9617
9618         New modules for common <math.h> functions.
9619         * m4/mathfunc.m4: New file.
9620         * modules/acos: New file.
9621         * modules/asin: New file.
9622         * modules/atan: New file.
9623         * modules/atan2: New file.
9624         * modules/cbrt: New file.
9625         * modules/copysign: New file.
9626         * modules/cos: New file.
9627         * modules/cosh: New file.
9628         * modules/erf: New file.
9629         * modules/erfc: New file.
9630         * modules/exp: New file.
9631         * modules/fabs: New file.
9632         * modules/fmod: New file.
9633         * modules/hypot: New file.
9634         * modules/j0: New file.
9635         * modules/j1: New file.
9636         * modules/jn: New file.
9637         * modules/ldexp: New file.
9638         * modules/lgamma: New file.
9639         * modules/log: New file.
9640         * modules/log10: New file.
9641         * modules/log1p: New file.
9642         * modules/logb: New file.
9643         * modules/modf: New file.
9644         * modules/nextafter: New file.
9645         * modules/pow: New file.
9646         * modules/remainder: New file.
9647         * modules/rint: New file.
9648         * modules/sin: New file.
9649         * modules/sinh: New file.
9650         * modules/sqrt: New file.
9651         * modules/tan: New file.
9652         * modules/tanh: New file.
9653         * modules/y0: New file.
9654         * modules/y1: New file.
9655         * modules/yn: New file.
9656         * doc/posix-functions/acos.texi: Mention the 'acos' module.
9657         * doc/posix-functions/asin.texi: Mention the 'asin' module.
9658         * doc/posix-functions/atan.texi: Mention the 'atan' module.
9659         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
9660         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
9661         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
9662         * doc/posix-functions/cos.texi: Mention the 'cos' module.
9663         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
9664         * doc/posix-functions/erf.texi: Mention the 'erf' module.
9665         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
9666         * doc/posix-functions/exp.texi: Mention the 'exp' module.
9667         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
9668         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
9669         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
9670         * doc/posix-functions/j0.texi: Mention the 'j0' module.
9671         * doc/posix-functions/j1.texi: Mention the 'j1' module.
9672         * doc/posix-functions/jn.texi: Mention the 'jn' module.
9673         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
9674         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
9675         * doc/posix-functions/log.texi: Mention the 'log' module.
9676         * doc/posix-functions/log10.texi: Mention the 'log10' module.
9677         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
9678         * doc/posix-functions/logb.texi: Mention the 'logb' module.
9679         * doc/posix-functions/modf.texi: Mention the 'modf' module.
9680         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
9681         * doc/posix-functions/pow.texi: Mention the 'pow' module.
9682         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
9683         * doc/posix-functions/rint.texi: Mention the 'rint' module.
9684         * doc/posix-functions/sin.texi: Mention the 'sin' module.
9685         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
9686         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
9687         * doc/posix-functions/tan.texi: Mention the 'tan' module.
9688         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
9689         * doc/posix-functions/y0.texi: Mention the 'y0' module.
9690         * doc/posix-functions/y1.texi: Mention the 'y1' module.
9691         * doc/posix-functions/yn.texi: Mention the 'yn' module.
9692
9693 2010-01-18  Jim Meyering  <meyering@redhat.com>
9694
9695         ignore-value: relax license to LGPLv2+
9696         * modules/ignore-value (License): Relax to LGPLv2+.
9697
9698         getdate: don't leak when TZ contains two or more '"'s
9699         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
9700         double quote in TZ after the first one.
9701
9702         readtokens: do not leak internal token_lengths buffer
9703         * lib/readtokens.c (readtokens): Free the local, lengths,
9704         when the supplied "token_lengths" parameter is NULL.
9705
9706 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9707
9708         Fix a couple of missing LIBTHREAD link failures on AIX.
9709         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
9710         $(LIBTHREAD).
9711         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
9712
9713         Link test-poll against INET_PTON_LIB.
9714         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
9715         for inet_pton on Solaris 10.
9716
9717 2010-01-17  Bruno Haible  <bruno@clisp.org>
9718
9719         unistdio/*-sprintf: Fix typo in module description.
9720         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
9721         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
9722         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
9723         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
9724         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
9725         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
9726         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
9727         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9728
9729 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9730
9731         gnulib-tool: fix filelist for AIX, HP-UX ksh.
9732         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
9733         variables in shell case patterns, for AIX and HP-UX ksh.
9734
9735         Split large sed scripts, for HP-UX sed.
9736         * modules/stdio: Split sed scripts around 50 sed commands,
9737         to avoid HP-UX limit of 99 commands, in the near future.
9738         * modules/string: Likewise.
9739         * modules/unistd: Likewise.
9740
9741         gnulib-tool: avoid writing in the current directory.
9742         * gnulib-tool (func_emit_lib_Makefile_am)
9743         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
9744         not in the current directory, so concurrent gnulib-tool
9745         instances do not interfere.
9746
9747 2010-01-16  Jim Meyering  <meyering@redhat.com>
9748
9749         doc: update users.txt
9750         * users.txt: Add grep.
9751         (diffutils, gzip): Update URLs.
9752
9753 2010-01-12  Bruno Haible  <bruno@clisp.org>
9754
9755         posix_spawn: Avoid test failure on Cygwin.
9756         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
9757         characters.
9758         Reported by Simon Josefsson.
9759
9760 2010-01-12  Bruno Haible  <bruno@clisp.org>
9761
9762         * tests/test-cond.c (main): When skipping the test, show the reason.
9763
9764 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9765
9766         * lib/striconv.c (str_cd_iconv): Avoid if before free.
9767
9768 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9769
9770         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
9771         VC_LIST_ALWAYS_EXCLUDE_REGEX.
9772
9773 2010-01-12  Eric Blake  <ebb9@byu.net>
9774
9775         build: guarantee AS_VAR_IF
9776         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
9777         (gl_AS_VAR_IF): Move...
9778         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
9779         Reported by Simon Josefsson.
9780
9781 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9782
9783         * lib/stdio.in.h: Fix typo.
9784
9785 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9786
9787         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
9788         libgpg-error.
9789
9790 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9791
9792         * tests/test-xalloc-die.sh: Use $EXEEXT.
9793
9794 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9795             Bruno Haible  <bruno@clisp.org>
9796
9797         getlogin, getlogin_r: Avoid test failure.
9798         * tests/test-getlogin.c: Include <stdio.h>.
9799         (main): Skip the test when the function fails because stdin is not a
9800         tty.
9801         * tests/test-getlogin_r.c: Include <stdio.h>.
9802         (main): Skip the test when the function fails because stdin is not a
9803         tty.
9804
9805 2010-01-11  Eric Blake  <ebb9@byu.net>
9806
9807         tests: avoid more large file warnings
9808         * tests/test-fflush.c: Avoid warning about ftell use.
9809         * tests/test-fseek.c: Avoid warning about fseek use.
9810
9811 2010-01-10  Bruno Haible  <bruno@clisp.org>
9812
9813         nproc: Work better on Linux when /proc and /sys are not mounted.
9814         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
9815         as lower bound when, on glibc/Linux systems,
9816         sysconf (_SC_NPROCESSORS_CONF) returns 1.
9817         Suggested by Pádraig Brady <P@draigbrady.com>.
9818         Reported by Dmitry V. Levin <ldv@altlinux.org>.
9819
9820         nproc: Refactor.
9821         * lib/nproc.c (num_processors_via_affinity_mask): New function,
9822         extracted from num_processors.
9823         (num_processors): Call it.
9824
9825 2010-01-11  Jim Meyering  <meyering@redhat.com>
9826
9827         utimecmp: avoid new warning from upcoming gcc-4.5.0
9828         * lib/utimecmp.c (BILLION): Define using #define rather than an
9829         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
9830
9831 2010-01-11  Eric Blake  <ebb9@byu.net>
9832
9833         math: add portability warnings for classification macros
9834         * modules/math (Depends-on): Add warn-on-use.
9835         (Makefile.am): Provide new substitutions.
9836         * m4/math_h.m4 (gl_MATH_H): Require inline.
9837         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
9838         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
9839         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
9840         implement warnings.
9841
9842         unistd: warn on use of environ without module
9843         * modules/unistd (Depends-on): Add warn-on-use.
9844         (Makefile.am): Provide new substitutions.
9845         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
9846         * lib/unistd.in.h (environ): Wrap with a warning helper function.
9847
9848         stdio: warn on suspicious uses
9849         * modules/stdio (Depends-on): Add warn-on-use.
9850         (Makefile.am): Provide new substitutions.
9851         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
9852         fseeko.
9853         * lib/stdio.in.h (gets): Always warn on use.
9854         (fseek, ftell): Adjust when warnings are issued, and honor
9855         _GL_NO_LARGE_FILES as a way to silence the warning.
9856         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
9857         any warning about large file offsets.
9858         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
9859         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
9860         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
9861         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
9862         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
9863         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
9864         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
9865         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
9866
9867         warn-on-use: new module
9868         * modules/warn-on-use: New file.
9869         * build-aux/warn-on-use.h: Likewise.
9870         * m4/warn-on-use.m4: Likewise.
9871         * MODULES.html.sh (Support for building): Mention it.
9872
9873 2010-01-10  Bruno Haible  <bruno@clisp.org>
9874
9875         Tests for module 'unistr/u32-strdup'.
9876         * modules/unistr/u32-strdup-tests: New file.
9877         * tests/unistr/test-u32-strdup.c: New file.
9878
9879         Tests for module 'unistr/u16-strdup'.
9880         * modules/unistr/u16-strdup-tests: New file.
9881         * tests/unistr/test-u16-strdup.c: New file.
9882
9883         Tests for module 'unistr/u8-strdup'.
9884         * modules/unistr/u8-strdup-tests: New file.
9885         * tests/unistr/test-u8-strdup.c: New file.
9886         * tests/unistr/test-strdup.h: New file.
9887
9888         Tests for module 'unistr/u32-strncmp'.
9889         * modules/unistr/u32-strncmp-tests: New file.
9890         * tests/unistr/test-u32-strncmp.c: New file.
9891
9892         Tests for module 'unistr/u16-strncmp'.
9893         * modules/unistr/u16-strncmp-tests: New file.
9894         * tests/unistr/test-u16-strncmp.c: New file.
9895
9896         Tests for module 'unistr/u8-strncmp'.
9897         * modules/unistr/u8-strncmp-tests: New file.
9898         * tests/unistr/test-u8-strncmp.c: New file.
9899         * tests/unistr/test-strncmp.h: New file.
9900
9901         Tests for module 'unistr/u32-strcoll'.
9902         * modules/unistr/u32-strcoll-tests: New file.
9903         * tests/unistr/test-u32-strcoll.c: New file.
9904
9905         Tests for module 'unistr/u16-strcoll'.
9906         * modules/unistr/u16-strcoll-tests: New file.
9907         * tests/unistr/test-u16-strcoll.c: New file.
9908
9909         Tests for module 'unistr/u8-strcoll'.
9910         * modules/unistr/u8-strcoll-tests: New file.
9911         * tests/unistr/test-u8-strcoll.c: New file.
9912
9913         Tests for module 'unistr/u32-strcmp'.
9914         * modules/unistr/u32-strcmp-tests: New file.
9915         * tests/unistr/test-u32-strcmp.c: New file.
9916         * tests/unistr/test-u32-strcmp.h: New file.
9917
9918         Tests for module 'unistr/u16-strcmp'.
9919         * modules/unistr/u16-strcmp-tests: New file.
9920         * tests/unistr/test-u16-strcmp.c: New file.
9921         * tests/unistr/test-u16-strcmp.h: New file.
9922
9923         Tests for module 'unistr/u8-strcmp'.
9924         * modules/unistr/u8-strcmp-tests: New file.
9925         * tests/unistr/test-u8-strcmp.c: New file.
9926         * tests/unistr/test-u8-strcmp.h: New file.
9927         * tests/unistr/test-strcmp.h: New file.
9928
9929         Tests for module 'unistr/u32-strncat'.
9930         * modules/unistr/u32-strncat-tests: New file.
9931         * tests/unistr/test-u32-strncat.c: New file.
9932
9933         Tests for module 'unistr/u16-strncat'.
9934         * modules/unistr/u16-strncat-tests: New file.
9935         * tests/unistr/test-u16-strncat.c: New file.
9936
9937         Tests for module 'unistr/u8-strncat'.
9938         * modules/unistr/u8-strncat-tests: New file.
9939         * tests/unistr/test-u8-strncat.c: New file.
9940         * tests/unistr/test-strncat.h: New file.
9941
9942         Tests for module 'unistr/u32-strcat'.
9943         * modules/unistr/u32-strcat-tests: New file.
9944         * tests/unistr/test-u32-strcat.c: New file.
9945
9946         Tests for module 'unistr/u16-strcat'.
9947         * modules/unistr/u16-strcat-tests: New file.
9948         * tests/unistr/test-u16-strcat.c: New file.
9949
9950         Tests for module 'unistr/u8-strcat'.
9951         * modules/unistr/u8-strcat-tests: New file.
9952         * tests/unistr/test-u8-strcat.c: New file.
9953         * tests/unistr/test-strcat.h: New file.
9954
9955         Tests for module 'unistr/u32-stpncpy'.
9956         * modules/unistr/u32-stpncpy-tests: New file.
9957         * tests/unistr/test-u32-stpncpy.c: New file.
9958
9959         Tests for module 'unistr/u16-stpncpy'.
9960         * modules/unistr/u16-stpncpy-tests: New file.
9961         * tests/unistr/test-u16-stpncpy.c: New file.
9962
9963         Tests for module 'unistr/u8-stpncpy'.
9964         * modules/unistr/u8-stpncpy-tests: New file.
9965         * tests/unistr/test-u8-stpncpy.c: New file.
9966         * tests/unistr/test-stpncpy.h: New file.
9967
9968         Tests for module 'unistr/u32-strncpy'.
9969         * modules/unistr/u32-strncpy-tests: New file.
9970         * tests/unistr/test-u32-strncpy.c: New file.
9971
9972         Tests for module 'unistr/u16-strncpy'.
9973         * modules/unistr/u16-strncpy-tests: New file.
9974         * tests/unistr/test-u16-strncpy.c: New file.
9975
9976         Tests for module 'unistr/u8-strncpy'.
9977         * modules/unistr/u8-strncpy-tests: New file.
9978         * tests/unistr/test-u8-strncpy.c: New file.
9979         * tests/unistr/test-strncpy.h: New file.
9980
9981         Tests for module 'unistr/u32-stpcpy'.
9982         * modules/unistr/u32-stpcpy-tests: New file.
9983         * tests/unistr/test-u32-stpcpy.c: New file.
9984
9985         Tests for module 'unistr/u16-stpcpy'.
9986         * modules/unistr/u16-stpcpy-tests: New file.
9987         * tests/unistr/test-u16-stpcpy.c: New file.
9988
9989         Tests for module 'unistr/u8-stpcpy'.
9990         * modules/unistr/u8-stpcpy-tests: New file.
9991         * tests/unistr/test-u8-stpcpy.c: New file.
9992         * tests/unistr/test-stpcpy.h: New file.
9993
9994         Tests for module 'unistr/u32-strcpy'.
9995         * modules/unistr/u32-strcpy-tests: New file.
9996         * tests/unistr/test-u32-strcpy.c: New file.
9997
9998         Tests for module 'unistr/u16-strcpy'.
9999         * modules/unistr/u16-strcpy-tests: New file.
10000         * tests/unistr/test-u16-strcpy.c: New file.
10001
10002         Tests for module 'unistr/u8-strcpy'.
10003         * modules/unistr/u8-strcpy-tests: New file.
10004         * tests/unistr/test-u8-strcpy.c: New file.
10005         * tests/unistr/test-strcpy.h: New file.
10006
10007         Tests for module 'unistr/u32-strnlen'.
10008         * modules/unistr/u32-strnlen-tests: New file.
10009         * tests/unistr/test-u32-strnlen.c: New file.
10010
10011         Tests for module 'unistr/u16-strnlen'.
10012         * modules/unistr/u16-strnlen-tests: New file.
10013         * tests/unistr/test-u16-strnlen.c: New file.
10014
10015         Tests for module 'unistr/u8-strnlen'.
10016         * modules/unistr/u8-strnlen-tests: New file.
10017         * tests/unistr/test-u8-strnlen.c: New file.
10018         * tests/unistr/test-strnlen.h: New file.
10019
10020         Tests for module 'unistr/u32-strlen'.
10021         * modules/unistr/u32-strlen-tests: New file.
10022         * tests/unistr/test-u32-strlen.c: New file.
10023
10024         Tests for module 'unistr/u16-strlen'.
10025         * modules/unistr/u16-strlen-tests: New file.
10026         * tests/unistr/test-u16-strlen.c: New file.
10027
10028         Tests for module 'unistr/u8-strlen'.
10029         * modules/unistr/u8-strlen-tests: New file.
10030         * tests/unistr/test-u8-strlen.c: New file.
10031
10032         Tests for module 'unistr/u32-prev'.
10033         * modules/unistr/u32-prev-tests: New file.
10034         * tests/unistr/test-u32-prev.c: New file.
10035
10036         Tests for module 'unistr/u16-prev'.
10037         * modules/unistr/u16-prev-tests: New file.
10038         * tests/unistr/test-u16-prev.c: New file.
10039
10040         Tests for module 'unistr/u8-prev'.
10041         * modules/unistr/u8-prev-tests: New file.
10042         * tests/unistr/test-u8-prev.c: New file.
10043
10044         Tests for module 'unistr/u32-next'.
10045         * modules/unistr/u32-next-tests: New file.
10046         * tests/unistr/test-u32-next.c: New file.
10047
10048         Tests for module 'unistr/u16-next'.
10049         * modules/unistr/u16-next-tests: New file.
10050         * tests/unistr/test-u16-next.c: New file.
10051
10052         Tests for module 'unistr/u8-next'.
10053         * modules/unistr/u8-next-tests: New file.
10054         * tests/unistr/test-u8-next.c: New file.
10055
10056         Tests for module 'unistr/u32-strmbtouc'.
10057         * modules/unistr/u32-strmbtouc-tests: New file.
10058         * tests/unistr/test-u32-strmbtouc.c: New file.
10059
10060         Tests for module 'unistr/u16-strmbtouc'.
10061         * modules/unistr/u16-strmbtouc-tests: New file.
10062         * tests/unistr/test-u16-strmbtouc.c: New file.
10063
10064         Tests for module 'unistr/u8-strmbtouc'.
10065         * modules/unistr/u8-strmbtouc-tests: New file.
10066         * tests/unistr/test-u8-strmbtouc.c: New file.
10067
10068         Tests for module 'unistr/u32-strmblen'.
10069         * modules/unistr/u32-strmblen-tests: New file.
10070         * tests/unistr/test-u32-strmblen.c: New file.
10071
10072         Tests for module 'unistr/u16-strmblen'.
10073         * modules/unistr/u16-strmblen-tests: New file.
10074         * tests/unistr/test-u16-strmblen.c: New file.
10075
10076         Tests for module 'unistr/u8-strmblen'.
10077         * modules/unistr/u8-strmblen-tests: New file.
10078         * tests/unistr/test-u8-strmblen.c: New file.
10079
10080         Tests for module 'unistr/u32-cpy-alloc'.
10081         * modules/unistr/u32-cpy-alloc-tests: New file.
10082         * tests/unistr/test-u32-cpy-alloc.c: New file.
10083
10084         Tests for module 'unistr/u16-cpy-alloc'.
10085         * modules/unistr/u16-cpy-alloc-tests: New file.
10086         * tests/unistr/test-u16-cpy-alloc.c: New file.
10087
10088         Tests for module 'unistr/u8-cpy-alloc'.
10089         * modules/unistr/u8-cpy-alloc-tests: New file.
10090         * tests/unistr/test-u8-cpy-alloc.c: New file.
10091         * tests/unistr/test-cpy-alloc.h: New file.
10092
10093         Tests for module 'unistr/u32-mbsnlen'.
10094         * modules/unistr/u32-mbsnlen-tests: New file.
10095         * tests/unistr/test-u32-mbsnlen.c: New file.
10096
10097         Tests for module 'unistr/u16-mbsnlen'.
10098         * modules/unistr/u16-mbsnlen-tests: New file.
10099         * tests/unistr/test-u16-mbsnlen.c: New file.
10100
10101         Tests for module 'unistr/u8-mbsnlen'.
10102         * modules/unistr/u8-mbsnlen-tests: New file.
10103         * tests/unistr/test-u8-mbsnlen.c: New file.
10104
10105         Tests for module 'unistr/u32-chr'.
10106         * modules/unistr/u32-chr-tests: New file.
10107         * tests/unistr/test-u32-chr.c: New file.
10108
10109         Tests for module 'unistr/u16-chr'.
10110         * modules/unistr/u16-chr-tests: New file.
10111         * tests/unistr/test-u16-chr.c: New file.
10112
10113         Tests for module 'unistr/u8-chr'.
10114         * modules/unistr/u8-chr-tests: New file.
10115         * tests/unistr/test-u8-chr.c: New file.
10116         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
10117
10118         Tests for module 'unistr/u32-cmp2'.
10119         * modules/unistr/u32-cmp2-tests: New file.
10120         * tests/unistr/test-u32-cmp2.c: New file.
10121
10122         Tests for module 'unistr/u16-cmp2'.
10123         * modules/unistr/u16-cmp2-tests: New file.
10124         * tests/unistr/test-u16-cmp2.c: New file.
10125
10126         Tests for module 'unistr/u8-cmp2'.
10127         * modules/unistr/u8-cmp2-tests: New file.
10128         * tests/unistr/test-u8-cmp2.c: New file.
10129         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
10130
10131         Tests for module 'unistr/u32-cmp'.
10132         * modules/unistr/u32-cmp-tests: New file.
10133         * tests/unistr/test-u32-cmp.c: New file.
10134
10135         Tests for module 'unistr/u16-cmp'.
10136         * modules/unistr/u16-cmp-tests: New file.
10137         * tests/unistr/test-u16-cmp.c: New file.
10138
10139         Tests for module 'unistr/u8-cmp'.
10140         * modules/unistr/u8-cmp-tests: New file.
10141         * tests/unistr/test-u8-cmp.c: New file.
10142         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
10143
10144         Tests for module 'unistr/u32-set'.
10145         * modules/unistr/u32-set-tests: New file.
10146         * tests/unistr/test-u32-set.c: New file.
10147
10148         Tests for module 'unistr/u16-set'.
10149         * modules/unistr/u16-set-tests: New file.
10150         * tests/unistr/test-u16-set.c: New file.
10151
10152         Tests for module 'unistr/u8-set'.
10153         * modules/unistr/u8-set-tests: New file.
10154         * tests/unistr/test-u8-set.c: New file.
10155         * tests/unistr/test-set.h: New file.
10156
10157         Tests for module 'unistr/u32-move'.
10158         * modules/unistr/u32-move-tests: New file.
10159         * tests/unistr/test-u32-move.c: New file.
10160
10161         Tests for module 'unistr/u16-move'.
10162         * modules/unistr/u16-move-tests: New file.
10163         * tests/unistr/test-u16-move.c: New file.
10164
10165         Tests for module 'unistr/u8-move'.
10166         * modules/unistr/u8-move-tests: New file.
10167         * tests/unistr/test-u8-move.c: New file.
10168         * tests/unistr/test-move.h: New file.
10169
10170         Tests for module 'unistr/u32-cpy'.
10171         * modules/unistr/u32-cpy-tests: New file.
10172         * tests/unistr/test-u32-cpy.c: New file.
10173
10174         Tests for module 'unistr/u16-cpy'.
10175         * modules/unistr/u16-cpy-tests: New file.
10176         * tests/unistr/test-u16-cpy.c: New file.
10177
10178         Tests for module 'unistr/u8-cpy'.
10179         * modules/unistr/u8-cpy-tests: New file.
10180         * tests/unistr/test-u8-cpy.c: New file.
10181         * tests/unistr/test-cpy.h: New file.
10182
10183 2010-01-09  Bruno Haible  <bruno@clisp.org>
10184
10185         Tests for module 'unistr/u32-uctomb'.
10186         * modules/unistr/u32-uctomb-tests: New file.
10187         * tests/unistr/test-u32-uctomb.c: New file.
10188
10189         Tests for module 'unistr/u16-uctomb'.
10190         * modules/unistr/u16-uctomb-tests: New file.
10191         * tests/unistr/test-u16-uctomb.c: New file.
10192
10193         Tests for module 'unistr/u8-uctomb'.
10194         * modules/unistr/u8-uctomb-tests: New file.
10195         * tests/unistr/test-u8-uctomb.c: New file.
10196
10197         Tests for module 'unistr/u32-mbtoucr'.
10198         * modules/unistr/u32-mbtoucr-tests: New file.
10199         * tests/unistr/test-u32-mbtoucr.c: New file.
10200
10201         Tests for module 'unistr/u16-mbtoucr'.
10202         * modules/unistr/u16-mbtoucr-tests: New file.
10203         * tests/unistr/test-u16-mbtoucr.c: New file.
10204
10205         Tests for module 'unistr/u8-mbtoucr'.
10206         * modules/unistr/u8-mbtoucr-tests: New file.
10207         * tests/unistr/test-u8-mbtoucr.c: New file.
10208
10209         Tests for module 'unistr/u32-mbtouc'.
10210         * modules/unistr/u32-mbtouc-tests: New file.
10211         * tests/unistr/test-u32-mbtouc.c: New file.
10212
10213         Tests for module 'unistr/u16-mbtouc'.
10214         * modules/unistr/u16-mbtouc-tests: New file.
10215         * tests/unistr/test-u16-mbtouc.c: New file.
10216
10217         Tests for module 'unistr/u8-mbtouc'.
10218         * modules/unistr/u8-mbtouc-tests: New file.
10219         * tests/unistr/test-u8-mbtouc.c: New file.
10220
10221         Tests for module 'unistr/u32-mbtouc-unsafe'.
10222         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
10223         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
10224         * tests/unistr/test-u32-mbtouc.h: New file.
10225
10226         Tests for module 'unistr/u16-mbtouc-unsafe'.
10227         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
10228         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
10229         * tests/unistr/test-u16-mbtouc.h: New file.
10230
10231         Tests for module 'unistr/u8-mbtouc-unsafe'.
10232         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
10233         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
10234         * tests/unistr/test-u8-mbtouc.h: New file.
10235
10236         Tests for module 'unistr/u32-mblen'.
10237         * modules/unistr/u32-mblen-tests: New file.
10238         * tests/unistr/test-u32-mblen.c: New file.
10239
10240         Tests for module 'unistr/u16-mblen'.
10241         * modules/unistr/u16-mblen-tests: New file.
10242         * tests/unistr/test-u16-mblen.c: New file.
10243
10244         Tests for module 'unistr/u8-mblen'.
10245         * modules/unistr/u8-mblen-tests: New file.
10246         * tests/unistr/test-u8-mblen.c: New file.
10247
10248         Tests for module 'unistr/u32-to-u16'.
10249         * modules/unistr/u32-to-u16-tests: New file.
10250         * tests/unistr/test-u32-to-u16.c: New file.
10251
10252         Tests for module 'unistr/u32-to-u8'.
10253         * modules/unistr/u32-to-u8-tests: New file.
10254         * tests/unistr/test-u32-to-u8.c: New file.
10255
10256         Tests for module 'unistr/u16-to-u32'.
10257         * modules/unistr/u16-to-u32-tests: New file.
10258         * tests/unistr/test-u16-to-u32.c: New file.
10259
10260         Tests for module 'unistr/u16-to-u8'.
10261         * modules/unistr/u16-to-u8-tests: New file.
10262         * tests/unistr/test-u16-to-u8.c: New file.
10263
10264         Tests for module 'unistr/u8-to-u32'.
10265         * modules/unistr/u8-to-u32-tests: New file.
10266         * tests/unistr/test-u8-to-u32.c: New file.
10267
10268         Tests for module 'unistr/u8-to-u16'.
10269         * modules/unistr/u8-to-u16-tests: New file.
10270         * tests/unistr/test-u8-to-u16.c: New file.
10271
10272         Tests for module 'unistr/u32-check'.
10273         * modules/unistr/u32-check-tests: New file.
10274         * tests/unistr/test-u32-check.c: New file.
10275
10276         Tests for module 'unistr/u16-check'.
10277         * modules/unistr/u16-check-tests: New file.
10278         * tests/unistr/test-u16-check.c: New file.
10279
10280         Tests for module 'unistr/u8-check'.
10281         * modules/unistr/u8-check-tests: New file.
10282         * tests/unistr/test-u8-check.c: New file.
10283
10284         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
10285         (category_equals): New function.
10286         (main): Add more tests.
10287         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
10288
10289         * tests/unictype/test-bidi_byname.c (main): Add more tests.
10290
10291 2010-01-10  Bruno Haible  <bruno@clisp.org>
10292
10293         unistr/u*-strcoll: Try harder to distinguish different strings.
10294         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
10295         compare s1 and s2 to see if they are different.
10296
10297 2010-01-10  Bruno Haible  <bruno@clisp.org>
10298
10299         unistr/u*-stpncpy: Fix the return value.
10300         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
10301         description of the return value consistent with stpncpy in glibc.
10302         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
10303         written non-NUL unit.
10304
10305 2010-01-10  Bruno Haible  <bruno@clisp.org>
10306
10307         unistr/u*-next: Add missing dependencies.
10308         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
10309         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
10310         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
10311
10312 2010-01-10  Bruno Haible  <bruno@clisp.org>
10313
10314         unistr/u8-mbsnlen: Fix return value for incomplete character.
10315         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
10316         u8_mblen.
10317         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
10318         Remove unistr/u8-mblen.
10319         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
10320         u16_mblen.
10321         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
10322         Remove unistr/u16-mblen.
10323
10324 2010-01-10  Bruno Haible  <bruno@clisp.org>
10325
10326         wchar: Fix compilation error when <wchar.h> is used from coreutils.
10327         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
10328         Reported by Brian Gough <bjg@gnu.org> and
10329         Chris Clayton <chris2553@googlemail.com> via
10330         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
10331
10332 2010-01-09  Bruno Haible  <bruno@clisp.org>
10333
10334         unistr/u16-to-u32: Reject invalid input.
10335         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
10336         u16_mbtouc.
10337         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
10338         Remove unistr/u16-mbtouc.
10339
10340         unistr/u16-to-u8: Reject invalid input.
10341         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
10342         u16_mbtouc.
10343         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
10344         Remove unistr/u16-mbtouc.
10345
10346         unistr/u8-to-u32: Reject invalid input.
10347         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
10348         u8_mbtouc.
10349         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
10350         Remove unistr/u8-mbtouc.
10351
10352         unistr/u8-to-u16: Reject invalid input.
10353         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
10354         u8_mbtouc.
10355         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
10356         Remove unistr/u8-mbtouc.
10357
10358 2010-01-09  Bruno Haible  <bruno@clisp.org>
10359
10360         Tests for module 'getlogin'.
10361         * modules/getlogin-tests: New file.
10362         * tests/test-getlogin.c: New file.
10363
10364         New module 'getlogin'.
10365         * lib/unistd.in.h (getlogin): New declaration.
10366         * lib/getlogin.c: New file.
10367         * m4/getlogin.m4: New file.
10368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
10369         HAVE_GETLOGIN.
10370         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
10371         HAVE_GETLOGIN.
10372         * modules/getlogin: New file.
10373         * doc/posix-functions/getlogin.texi: Mention the new module.
10374         Reported by John W. Eaton <jwe@gnu.org>.
10375
10376 2010-01-09  Bruno Haible  <bruno@clisp.org>
10377
10378         getlogin_r: Support for native Windows.
10379         * lib/getlogin_r.c: Include <windows.h>
10380         (getlogin_r): Implement for native Windows.
10381         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
10382         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
10383         via John W. Eaton <jwe@gnu.org>.
10384
10385 2010-01-09  Bruno Haible  <bruno@clisp.org>
10386
10387         getlogin_r: Small fixes.
10388         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
10389         succeeds.
10390         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
10391         before testing whether getlogin_r is declared. No need to set
10392         HAVE_DECL_GETLOGIN_R to 1.
10393         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
10394
10395 2010-01-09  Bruno Haible  <bruno@clisp.org>
10396
10397         * lib/unistd.in.h (getlogin_r): Add comment.
10398
10399 2010-01-09  Bruno Haible  <bruno@clisp.org>
10400
10401         Tests for module 'getlogin_r'.
10402         * modules/getlogin_r-tests: New file.
10403         * tests/test-getlogin_r.c: New file.
10404
10405 2010-01-09  Jim Meyering  <meyering@redhat.com>
10406
10407         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
10408         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
10409         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
10410
10411 2010-01-08  Simon Josefsson  <simon@josefsson.org>
10412
10413         * lib/dup2.c (rpl_dup2): Improve comment.
10414
10415 2010-01-08  Eric Blake  <ebb9@byu.net>
10416
10417         maint.mk: allow packages to add makefile @@ exceptions
10418         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
10419         (sc_makefile_check): Rename...
10420         (sc_makefile_at_at_check): ...to this, and use hook.
10421
10422         dup2: work around mingw bug
10423         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
10424         Reported by Simon Josefsson.
10425
10426 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
10427
10428         glob: Fix C++ compilation.
10429         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
10430         C++.
10431
10432 2010-01-07  Bruno Haible  <bruno@clisp.org>
10433
10434         Fix indentation of wctype.in.h, broken since 2007-01-06.
10435         * lib/wctype.in.h: Fix indentation of preprocessor directives.
10436
10437 2010-01-07  Bruno Haible  <bruno@clisp.org>
10438
10439         mbslen: Avoid collision with system function.
10440         * lib/string.in.h [MirBSD]: Include <wchar.h>.
10441         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
10442         * m4/mbslen.m4: New file.
10443         * modules/mbslen (Files): Add it.
10444         (configure.ac): Invoke gl_MBSLEN.
10445         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
10446         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
10447         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
10448         via Ian Beckwith <ianb@erislabs.net>.
10449
10450 2010-01-07  Bruno Haible  <bruno@clisp.org>
10451
10452         dirent: Document the last fix.
10453         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
10454
10455 2010-01-07  Bruno Haible  <bruno@clisp.org>
10456
10457         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
10458         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
10459         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
10460         va_list are defined.
10461         * doc/posix-headers/stdio.texi: Document the bug of missing types.
10462         Reported by Eric Blake.
10463
10464 2010-01-07  Bruno Haible  <bruno@clisp.org>
10465
10466         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
10467         * modules/xlist (Depends-on): Add 'list',
10468         * modules/xoset (Depends-on): Add 'oset'.
10469         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10470
10471 2010-01-07  Bruno Haible  <bruno@clisp.org>
10472
10473         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
10474         * doc/posix-functions/strncasecmp.texi: Likewise.
10475
10476 2010-01-07  Bruno Haible  <bruno@clisp.org>
10477
10478         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
10479
10480 2010-01-07  John W. Eaton  <jwe@octave.org>
10481
10482         wctype: allow C++ use
10483         * lib/wctype.in.h: Add extern "C" block for C++.
10484
10485 2010-01-06  Eric Blake  <ebb9@byu.net>
10486
10487         maint.mk: detect incorrect GFDL usage
10488         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
10489
10490 2010-01-06  Jim Meyering  <meyering@redhat.com>
10491         and Eric Blake  <ebb9@byu.net>
10492
10493         maint.mk: ignore multi-line copyright in NEWS
10494         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
10495
10496 2010-01-06  Eric Blake  <ebb9@byu.net>
10497
10498         select: add missing dependency
10499         * modules/select-tests (Depends-on): Move sockets dependency...
10500         * modules/select (Depends-on): ...here.
10501         Reported by Ian Beckwith.
10502
10503         doc: regenerate INSTALL
10504         * doc/INSTALL: Reflect recent autoconf update.
10505         * doc/INSTALL.ISO: Likewise.
10506         * doc/INSTALL.UTF-8: Likewise.
10507
10508         pread: fix compilation on glibc
10509         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
10510         Reported by Ralf Wildenhues.
10511
10512         dirent: fix test failure
10513         * lib/dirent.in.h (includes): Guarantee ino_t.
10514         Reported by Ralf Wildenhues.
10515
10516 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
10517
10518         linkat, renameat: avoid bad free
10519         * lib/at-func2.c (at_func2): Fix typo.
10520         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
10521
10522 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10523
10524         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
10525         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
10526         to avoid failure of symlink test later.
10527
10528 2010-01-06  Eric Blake  <ebb9@byu.net>
10529
10530         stdio, unistd: guarantee ssize_t
10531         * lib/unistd.in.h (includes): Ensure that types required by POSIX
10532         2008 are exposed when needed.
10533         * lib/stdio.in.h (includes): Likewise.
10534         Reported by Ralf Wildenhues.
10535
10536 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
10537
10538         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
10539         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
10540         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
10541
10542 2010-01-06  Jim Meyering  <meyering@redhat.com>
10543
10544         readtokens: this module *does* require xalloc.h
10545         It uses only functions that were omitted by the old syntax-check rule.
10546         * lib/readtokens.c: Include "xalloc.h" once again.
10547         * modules/readtokens (Depends-on): Add xalloc.
10548         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
10549
10550 2010-01-05  Eric Blake  <ebb9@byu.net>
10551
10552         maint: support 'make announcement' from a VPATH build
10553         * top/maint.mk (announcement): Look for correct NEWS file.
10554
10555 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
10556
10557         utimens (fdutimens): ignore a negative FD, per contract
10558         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
10559         when we have a valid file descriptor.  Otherwise, using a brand
10560         new glibc (with just-patched futimens that now fails with EBADF)
10561         would cause this function to fail with ENOSYS.
10562         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
10563         See also http://bugzilla.redhat.com/552320.
10564
10565 2010-01-05  Eric Blake  <ebb9@byu.net>
10566
10567         strcase: document what it provides
10568         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
10569         gnulib module.
10570         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
10571         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
10572
10573 2010-01-05  Jim Meyering  <meyering@redhat.com>
10574
10575         maint: remove useless inclusions of "xalloc.h"
10576         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
10577         * lib/readtokens.c: Likewise.
10578         * lib/same.c: Likewise.
10579         * modules/getloadavg (Depends-on): Remove xalloc.
10580         * modules/readtokens: Likewise.
10581         * modules/same: Likewise.
10582
10583         maint.mk: include 4 more function names in alloca.h-checking regexp
10584         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
10585         regexp.  Before, we would give a false-positive (saying alloca.h
10586         is included unnecessarily) when the only uses involved omitted symbols.
10587
10588         xalloc.h: use consistent formatting
10589         * lib/xalloc.h: Move declarations to start in the first column.
10590
10591 2010-01-05  Eric Blake  <ebb9@byu.net>
10592
10593         mkdir: avoid xalloc
10594         * lib/mkdir.c (includes): Drop unused header.
10595         Reported by John W. Eaton.
10596
10597 2010-01-04  Jim Meyering  <meyering@redhat.com>
10598
10599         nl_langinfo: avoid configure-time syntax error
10600         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
10601         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
10602         the empty string.  Don't let that provoke a shell syntax error.
10603
10604         regcomp, regexec, fnmatch: avoid array bounds read error
10605         * lib/regcomp.c (build_equiv_class): From glibc:
10606         Use only the low 24 bits of a findidx return value as an index
10607         into the weights array.  Patch by Ulrich Drepper:
10608         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
10609         * lib/regexec.c (check_node_accept_bytes): Likewise.
10610         * lib/fnmatch_loop.c (FCT): Likewise.
10611
10612         regcomp: skip collseq lookup when there are no rules
10613         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
10614         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
10615
10616         regcomp: recognize ill-formed { } expressions
10617         * lib/regcomp.c (parse_dup_op): From glibc:
10618         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
10619
10620         regcomp: fix typo in comment
10621         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
10622         s/satisfy/satisfies/.
10623
10624         regcomp: sync from glibc: remove dead store
10625         * lib/regcomp.c (duplicate_node_closure): Remove useless
10626         search_duplicated_node call and dead store.
10627
10628         regcomp: sync from glibc; always use nl_langinfo
10629         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
10630         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
10631         * modules/regex (Depends-on): Add nl_langinfo.
10632
10633 2010-01-04  Eric Blake  <ebb9@byu.net>
10634
10635         fdopendir: fix configure test
10636         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
10637
10638 2010-01-01  Bruno Haible  <bruno@clisp.org>
10639
10640         wchar: Remove unused configure check.
10641         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
10642
10643 2010-01-01  Eric Blake  <ebb9@byu.net>
10644
10645         headers: make check of system header explicit
10646         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
10647         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
10648         ourselves.
10649         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10650         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10651         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
10652         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
10653         internals.
10654         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
10655         missing.
10656         Suggested by Bruno Haible.
10657
10658 2010-01-01  Jim Meyering  <meyering@redhat.com>
10659
10660         ChangeLog: tweak to eliminate unnecessary copyright line
10661         * ChangeLog: Remove a copyright line that was mistakenly updated
10662         by today's update-copyright run.  Reported by Eric Blake.
10663
10664         test-update-copyright: don't let envvar setting cause test failure
10665         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
10666
10667 2010-01-01  Bruno Haible  <bruno@clisp.org>
10668
10669         localename: Avoid gcc warning.
10670         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
10671         function if it is not used.
10672
10673 2010-01-01  Jim Meyering  <meyering@redhat.com>
10674
10675         update nearly all FSF copyright year lists to include 2010
10676         Use the same procedure as for 2009, outlined in
10677         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
10678
10679         version-etc: set COPYRIGHT_YEAR to 2010
10680         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
10681
10682 2009-12-31  Eric Blake  <ebb9@byu.net>
10683
10684         doc: correct availability of cygwin 1.5.x getopt
10685         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
10686         variables.
10687         * doc/posix-functions/opterr.texi (opterr): Likewise.
10688         * doc/posix-functions/optind.texi (optind): Likewise.
10689         * doc/posix-functions/optopt.texi (optopt): Likewise.
10690         * doc/posix-functions/tzname.texi (tzname): Likewise.
10691
10692         openat: update maintainer
10693         * modules/openat (Maintainer): Add myself.
10694
10695         utimens: avoid shadowing warning
10696         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
10697         buffers into one, to avoid shadowing, as well as avoiding a
10698         redundant stat.
10699         Reported by Jim Meyering.
10700
10701         test-dup2: avoid compiler warning
10702         * tests/test-dup2.c (is_inheritable): Only define if used.
10703
10704 2010-01-01  Bruno Haible  <bruno@clisp.org>
10705
10706         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
10707         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
10708         defined, use wctomb instead of wcrtomb.
10709
10710 2010-01-01  Bruno Haible  <bruno@clisp.org>
10711
10712         iconv: Reject native Solaris iconv.
10713         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
10714         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
10715
10716 2009-12-31  Bruno Haible  <bruno@clisp.org>
10717
10718         * tests/test-signal.c (main): Remove test of 'SIG'.
10719
10720 2009-12-31  Bruno Haible  <bruno@clisp.org>
10721
10722         spawn: Fix incomplete fix.
10723         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10724         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10725         warnings for GNULIB_POSIXCHECK again.
10726         Reported by Eric Blake.
10727
10728 2009-12-31  Bruno Haible  <bruno@clisp.org>
10729
10730         Avoid namespace pollution on glibc systems.
10731         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
10732         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
10733         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
10734         glibc systems.
10735
10736 2009-12-31  Bruno Haible  <bruno@clisp.org>
10737
10738         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
10739         (gl_REPLACE_WCHAR_H): Turn into a no-op.
10740         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
10741         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10742         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10743         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10744         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10745
10746 2009-12-31  Bruno Haible  <bruno@clisp.org>
10747
10748         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10749         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
10750         afterwards.
10751
10752 2009-12-31  Bruno Haible  <bruno@clisp.org>
10753
10754         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
10755         SYS_UTSNAME_H.
10756
10757 2009-12-31  Bruno Haible  <bruno@clisp.org>
10758
10759         spawn: Fix misapplied patch.
10760         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10761         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10762         warnings for GNULIB_POSIXCHECK.
10763
10764 2009-12-31  Bruno Haible  <bruno@clisp.org>
10765
10766         times: Update after sys_times changed.
10767         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
10768         * modules/times (Files): Add it.
10769         (configure.ac): Invoke gl_FUNC_TIMES.
10770
10771 2009-12-31  Bruno Haible  <bruno@clisp.org>
10772
10773         Use AC_C_INLINE where necessary.
10774         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
10775         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
10776         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
10777         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10778         * m4/mbfile.m4 (gl_MBFILE): Likewise.
10779         * m4/mbiter.m4 (gl_MBITER): Likewise.
10780         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10781         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10782         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
10783         * modules/u64 (configure.ac): Likewise.
10784
10785 2009-12-31  Bruno Haible  <bruno@clisp.org>
10786
10787         Use AC_C_INLINE instead of module 'inline' where possible.
10788         * modules/inline (Description): Clarify purpose.
10789         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
10790         * modules/count-one-bits (Depends-on): Remove inline.
10791         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
10792         * modules/openat (Depends-on): Remove inline.
10793         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
10794         instead of depending on module 'inline'.
10795         * modules/filevercmp (Depends-on, configure.ac): Likewise.
10796         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
10797         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
10798         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
10799         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
10800         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
10801         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
10802         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
10803         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
10804         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
10805         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
10806         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
10807         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
10808         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
10809         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
10810         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
10811         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
10812         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
10813         Likewise.
10814         * modules/unictype/property-ascii-hex-digit (Depends-on,
10815         configure.ac): Likewise.
10816         * modules/unictype/property-bidi-arabic-digit (Depends-on,
10817         configure.ac): Likewise.
10818         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
10819         configure.ac): Likewise.
10820         * modules/unictype/property-bidi-block-separator (Depends-on,
10821         configure.ac): Likewise.
10822         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
10823         configure.ac): Likewise.
10824         * modules/unictype/property-bidi-common-separator (Depends-on,
10825         configure.ac): Likewise.
10826         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
10827         Likewise.
10828         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
10829         configure.ac): Likewise.
10830         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
10831         configure.ac): Likewise.
10832         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
10833         configure.ac): Likewise.
10834         * modules/unictype/property-bidi-european-digit (Depends-on,
10835         configure.ac): Likewise.
10836         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
10837         configure.ac): Likewise.
10838         * modules/unictype/property-bidi-left-to-right (Depends-on,
10839         configure.ac): Likewise.
10840         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
10841         configure.ac): Likewise.
10842         * modules/unictype/property-bidi-other-neutral (Depends-on,
10843         configure.ac): Likewise.
10844         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
10845         Likewise.
10846         * modules/unictype/property-bidi-segment-separator (Depends-on,
10847         configure.ac): Likewise.
10848         * modules/unictype/property-bidi-whitespace (Depends-on,
10849         configure.ac): Likewise.
10850         * modules/unictype/property-combining (Depends-on, configure.ac):
10851         Likewise.
10852         * modules/unictype/property-composite (Depends-on, configure.ac):
10853         Likewise.
10854         * modules/unictype/property-currency-symbol (Depends-on,
10855         configure.ac): Likewise.
10856         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
10857         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
10858         Likewise.
10859         * modules/unictype/property-default-ignorable-code-point (Depends-on,
10860         configure.ac): Likewise.
10861         * modules/unictype/property-deprecated (Depends-on, configure.ac):
10862         Likewise.
10863         * modules/unictype/property-diacritic (Depends-on, configure.ac):
10864         Likewise.
10865         * modules/unictype/property-extender (Depends-on, configure.ac):
10866         Likewise.
10867         * modules/unictype/property-format-control (Depends-on, configure.ac):
10868         Likewise.
10869         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
10870         Likewise.
10871         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
10872         Likewise.
10873         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
10874         Likewise.
10875         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
10876         Likewise.
10877         * modules/unictype/property-hyphen (Depends-on, configure.ac):
10878         Likewise.
10879         * modules/unictype/property-id-continue (Depends-on, configure.ac):
10880         Likewise.
10881         * modules/unictype/property-id-start (Depends-on, configure.ac):
10882         Likewise.
10883         * modules/unictype/property-ideographic (Depends-on, configure.ac):
10884         Likewise.
10885         * modules/unictype/property-ids-binary-operator (Depends-on,
10886         configure.ac): Likewise.
10887         * modules/unictype/property-ids-trinary-operator (Depends-on,
10888         configure.ac): Likewise.
10889         * modules/unictype/property-ignorable-control (Depends-on,
10890         configure.ac): Likewise.
10891         * modules/unictype/property-iso-control (Depends-on, configure.ac):
10892         Likewise.
10893         * modules/unictype/property-join-control (Depends-on, configure.ac):
10894         Likewise.
10895         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
10896         Likewise.
10897         * modules/unictype/property-line-separator (Depends-on, configure.ac):
10898         Likewise.
10899         * modules/unictype/property-logical-order-exception (Depends-on,
10900         configure.ac): Likewise.
10901         * modules/unictype/property-lowercase (Depends-on, configure.ac):
10902         Likewise.
10903         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
10904         * modules/unictype/property-non-break (Depends-on, configure.ac):
10905         Likewise.
10906         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
10907         Likewise.
10908         * modules/unictype/property-numeric (Depends-on, configure.ac):
10909         Likewise.
10910         * modules/unictype/property-other-alphabetic (Depends-on,
10911         configure.ac): Likewise.
10912         * modules/unictype/property-other-default-ignorable-code-point
10913         (Depends-on, configure.ac): Likewise.
10914         * modules/unictype/property-other-grapheme-extend (Depends-on,
10915         configure.ac): Likewise.
10916         * modules/unictype/property-other-id-continue (Depends-on,
10917         configure.ac): Likewise.
10918         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
10919         Likewise.
10920         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
10921         Likewise.
10922         * modules/unictype/property-other-math (Depends-on, configure.ac):
10923         Likewise.
10924         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
10925         Likewise.
10926         * modules/unictype/property-paired-punctuation (Depends-on,
10927         configure.ac): Likewise.
10928         * modules/unictype/property-paragraph-separator (Depends-on,
10929         configure.ac): Likewise.
10930         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
10931         Likewise.
10932         * modules/unictype/property-pattern-white-space (Depends-on,
10933         configure.ac): Likewise.
10934         * modules/unictype/property-private-use (Depends-on, configure.ac):
10935         Likewise.
10936         * modules/unictype/property-punctuation (Depends-on, configure.ac):
10937         Likewise.
10938         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
10939         Likewise.
10940         * modules/unictype/property-radical (Depends-on, configure.ac):
10941         Likewise.
10942         * modules/unictype/property-sentence-terminal (Depends-on,
10943         configure.ac): Likewise.
10944         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
10945         Likewise.
10946         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
10947         * modules/unictype/property-terminal-punctuation (Depends-on,
10948         configure.ac): Likewise.
10949         * modules/unictype/property-titlecase (Depends-on, configure.ac):
10950         Likewise.
10951         * modules/unictype/property-unassigned-code-value (Depends-on,
10952         configure.ac): Likewise.
10953         * modules/unictype/property-unified-ideograph (Depends-on,
10954         configure.ac): Likewise.
10955         * modules/unictype/property-uppercase (Depends-on, configure.ac):
10956         Likewise.
10957         * modules/unictype/property-variation-selector (Depends-on,
10958         configure.ac): Likewise.
10959         * modules/unictype/property-white-space (Depends-on, configure.ac):
10960         Likewise.
10961         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
10962         Likewise.
10963         * modules/unictype/property-xid-start (Depends-on, configure.ac):
10964         Likewise.
10965         * modules/unictype/property-zero-width (Depends-on, configure.ac):
10966         Likewise.
10967         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
10968         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
10969         Likewise.
10970
10971 2009-12-31  Bruno Haible  <bruno@clisp.org>
10972
10973         Remove unnecessary AC_C_INLINE invocation.
10974         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
10975         since 2009-08-21.
10976
10977 2009-12-31  Jim Meyering  <meyering@redhat.com>
10978
10979         maint.mk: don't require explicit gpg_key_ID in cfg.mk
10980         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
10981         With this change, we can all remove the gpg_key_ID = ... definition
10982         from our respective cfg.mk files.
10983
10984         maint.mk: create announcement template in ~/, not in /tmp
10985         * top/maint.mk (emit_upload_commands): Adjust.
10986         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
10987         Remove temporary file, .ci-msg.
10988
10989 2009-12-31  Eric Blake  <ebb9@byu.net>
10990
10991         link-warning: always build headers with link warnings
10992         * modules/arpa_inet (Makefile.am): Always build replacement
10993         header.
10994         * modules/ctype (Makefile.am): Likewise.
10995         * modules/dirent (Makefile.am): Likewise.
10996         * modules/inttypes (Makefile.am): Likewise.
10997         * modules/langinfo (Makefile.am): Likewise.
10998         * modules/locale (Makefile.am): Likewise.
10999         * modules/spawn (Makefile.am): Likewise.
11000         * modules/sys_file (Makefile.am): Likewise.
11001         * modules/sys_ioctl (Makefile.am): Likewise.
11002         * modules/sys_select (Makefile.am): Likewise.
11003         * modules/sys_socket (Makefile.am): Likewise.
11004         * modules/sys_times (Makefile.am): Likewise.
11005         * modules/sys_utsname (Makefile.am): Likewise.
11006         * modules/sys_wait (Makefile.am): Likewise.
11007         * modules/wchar (Makefile.am): Likewise.
11008         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
11009         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
11010         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
11011         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
11012         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
11013         Likewise.
11014         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11015         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11016         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
11017         Likewise.
11018         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
11019         Likewise.
11020         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11021         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
11022         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
11023         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11024         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11025         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11026         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11027         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
11028         (gl_WCHAR_H_DEFAULTS): Likewise.
11029
11030 2009-12-31  Eric Blake  <ebb9@byu.net>
11031
11032         signal, spawn: use link warnings
11033         * lib/signal.in.h (sigset_t): Make unconditional.
11034         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
11035         (sigpending, sigprocmask, sigaction): Add link warnings.
11036         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
11037         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
11038         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
11039         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
11040         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
11041         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
11042         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
11043         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
11044         (posix_spawn_file_actions_destroy)
11045         (posix_spawn_file_actions_addopen)
11046         (posix_spawn_file_actions_addclose)
11047         (posix_spawn_file_actions_adddup2): Likewise.
11048         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
11049         * tests/test-signal.c (main): Enhance test.
11050
11051         spawn: improve wrapper support
11052         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
11053         (gl_SPAWN_H_DEFAULTS): New defaults.
11054         * modules/spawn (Makefile.am): Substitute them.
11055         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
11056         Only declare if missing or broken.
11057
11058         sys_times, sys_utsname: use include_next
11059         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
11060         header.
11061         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
11062         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11063         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11064         * modules/sys_times (Depends-on): Add include_next.
11065         (Makefile.am): Substitute additional values.
11066         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
11067         * lib/sys_times.in.h (includes): Include native header, if
11068         available.
11069         * lib/sys_utsname.in.h (includes): Likewise.
11070         * tests/test-sys_times.c (main): Enhance test.
11071
11072         fdutimensat: revert prior patch
11073         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
11074         utimens.h.
11075         Reported by Bruno Haible.
11076
11077 2009-12-30  Eric Blake  <ebb9@byu.net>
11078
11079         sys_wait: drop link-warning dependency
11080         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
11081         link-warning efforts.
11082         * lib/sys_wait.in.h: Likewise.
11083
11084         fdutimensat: remove bogus dependency
11085         * modules/fdutimensat (Depends-on): Drop inline.
11086
11087         unistd: fix typo
11088         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
11089
11090 2009-12-30  Bruno Haible  <bruno@clisp.org>
11091
11092         Fix compilation error with Solaris cc.
11093         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
11094         * lib/unicase/u16-is-invariant.c: Likewise.
11095         * lib/unicase/u32-is-invariant.c: Likewise.
11096         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11097
11098 2009-12-30  Bruno Haible  <bruno@clisp.org>
11099
11100         Fix test crash.
11101         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
11102         locales.
11103         Reported by Simon Josefsson <simon@josefsson.org>.
11104
11105 2009-12-30  Bruno Haible  <bruno@clisp.org>
11106
11107         Fix compilation error on most platforms.
11108         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
11109         Reported by Simon Josefsson <simon@josefsson.org>
11110         and Nelson H. F. Beebe <beebe@math.utah.edu>.
11111
11112 2009-12-30  Eric Blake  <ebb9@byu.net>
11113
11114         futimens, utimensat: work around ntfs-3g bug
11115         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
11116         a ctime bug is present, and expand workaround to cover ntfs-3g.
11117         * lib/utimens.c (fdutimens, lutimens): Likewise.
11118         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
11119         (validate_timespec): Adjust return value.
11120         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
11121         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11122         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
11123
11124 2009-12-29  Eric Blake  <ebb9@byu.net>
11125
11126         link-warning: make usage consistent
11127         * modules/ctype (Depends-on): Add link-warning.
11128         (Makefile.am): Update rules accordingly.
11129         * modules/langinfo (Depends-on, Makefile.am): Likewise.
11130         * modules/locale (Depends-on, Makefile.am): Likewise.
11131         * modules/sys_file (Makefile.am): Likewise.
11132         * modules/getopt-posix (Makefile.am): Delete unused link warning
11133         efforts.
11134         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
11135         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
11136         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
11137         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
11138
11139         stdio: remove unused variables
11140         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
11141         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
11142         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11143
11144         tests: test more substitute headers
11145         * modules/ctype-tests: New file.
11146         * modules/dirent-tests: Likewise.
11147         * modules/spawn-tests: Likewise.
11148         * modules/sys_file-tests: Likewise.
11149         * modules/sys_ioctl-tests: Likewise.
11150         * modules/sys_wait-tests: Likewise.
11151         * tests/test-ctype.c: Likewise.
11152         * tests/test-dirent.c: Likewise.
11153         * tests/test-spawn.c: Likewise.
11154         * tests/test-sys_file.c: Likewise.
11155         * tests/test-sys_ioctl.c: Likewise.
11156         * tests/test-sys_wait.c: Likewise.
11157         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
11158         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
11159         whether or not flock is in use.
11160
11161         tests: remove License section from module
11162         * modules/arpa_inet-tests: Remove unneeded section.
11163         * modules/byteswap-tests: Likewise.
11164         * modules/ceilf-tests: Likewise.
11165         * modules/ceill-tests: Likewise.
11166         * modules/crypto/des-tests: Likewise.
11167         * modules/crypto/gc-arcfour-tests: Likewise.
11168         * modules/crypto/gc-arctwo-tests: Likewise.
11169         * modules/crypto/gc-des-tests: Likewise.
11170         * modules/crypto/gc-hmac-md5-tests: Likewise.
11171         * modules/crypto/gc-hmac-sha1-tests: Likewise.
11172         * modules/crypto/gc-md2-tests: Likewise.
11173         * modules/crypto/gc-md4-tests: Likewise.
11174         * modules/crypto/gc-md5-tests: Likewise.
11175         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
11176         * modules/crypto/gc-rijndael-tests: Likewise.
11177         * modules/crypto/gc-sha1-tests: Likewise.
11178         * modules/crypto/gc-tests: Likewise.
11179         * modules/crypto/md2-tests: Likewise.
11180         * modules/crypto/md4-tests: Likewise.
11181         * modules/fcntl-h-tests: Likewise.
11182         * modules/floorf-tests: Likewise.
11183         * modules/floorl-tests: Likewise.
11184         * modules/frexp-nolibm-tests: Likewise.
11185         * modules/frexp-tests: Likewise.
11186         * modules/frexpl-nolibm-tests: Likewise.
11187         * modules/frexpl-tests: Likewise.
11188         * modules/getaddrinfo-tests: Likewise.
11189         * modules/inttypes-tests: Likewise.
11190         * modules/isfinite-tests: Likewise.
11191         * modules/isinf-tests: Likewise.
11192         * modules/ldexpl-tests: Likewise.
11193         * modules/locale-tests: Likewise.
11194         * modules/math-tests: Likewise.
11195         * modules/netdb-tests: Likewise.
11196         * modules/netinet_in-tests: Likewise.
11197         * modules/printf-frexp-tests: Likewise.
11198         * modules/printf-frexpl-tests: Likewise.
11199         * modules/priv-set-tests: Likewise.
11200         * modules/random_r-tests: Likewise.
11201         * modules/round-tests: Likewise.
11202         * modules/roundf-tests: Likewise.
11203         * modules/roundl-tests: Likewise.
11204         * modules/search-tests: Likewise.
11205         * modules/select-tests: Likewise.
11206         * modules/signal-tests: Likewise.
11207         * modules/stdbool-tests: Likewise.
11208         * modules/stddef-tests: Likewise.
11209         * modules/stdint-tests: Likewise.
11210         * modules/stdio-tests: Likewise.
11211         * modules/stdlib-tests: Likewise.
11212         * modules/string-tests: Likewise.
11213         * modules/strings-tests: Likewise.
11214         * modules/sys_select-tests: Likewise.
11215         * modules/sys_socket-tests: Likewise.
11216         * modules/sys_stat-tests: Likewise.
11217         * modules/sys_time-tests: Likewise.
11218         * modules/sys_utsname-tests: Likewise.
11219         * modules/sysexits-tests: Likewise.
11220         * modules/time-tests: Likewise.
11221         * modules/trunc-tests: Likewise.
11222         * modules/truncf-tests: Likewise.
11223         * modules/truncl-tests: Likewise.
11224         * modules/tsearch-tests: Likewise.
11225         * modules/unistd-tests: Likewise.
11226         * modules/wchar-tests: Likewise.
11227         * modules/wctype-tests: Likewise.
11228
11229         tests: fix license on several tests
11230         * tests/test-des.c: Update to GPLv3+.
11231         * tests/test-flock.c: Likewise.
11232         * tests/test-fsync.c: Likewise.
11233         * tests/test-futimens.h: Likewise.
11234         * tests/test-gc-arcfour.c: Likewise.
11235         * tests/test-gc-arctwo.c: Likewise.
11236         * tests/test-gc-des.c: Likewise.
11237         * tests/test-gc-hmac-md5.c: Likewise.
11238         * tests/test-gc-hmac-sha1.c: Likewise.
11239         * tests/test-gc-md2.c: Likewise.
11240         * tests/test-gc-md4.c: Likewise.
11241         * tests/test-gc-md5.c: Likewise.
11242         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11243         * tests/test-gc-rijndael.c: Likewise.
11244         * tests/test-gc-sha1.c: Likewise.
11245         * tests/test-gc.c: Likewise.
11246         * tests/test-getcwd.c: Likewise.
11247         * tests/test-link.c: Likewise.
11248         * tests/test-link.h: Likewise.
11249         * tests/test-lutimens.h: Likewise.
11250         * tests/test-md2.c: Likewise.
11251         * tests/test-md4.c: Likewise.
11252         * tests/test-mkdir.h: Likewise.
11253         * tests/test-rename.c: Likewise.
11254         * tests/test-rename.h: Likewise.
11255         * tests/test-safe-alloc.c: Likewise.
11256         * tests/test-utimens-common.h: Likewise.
11257         * tests/test-utimens.h: Likewise.
11258
11259         maint: sync license texts
11260         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
11261         * doc/gpl-3.0.texi: Revert copyright year update.
11262         * doc/lgpl-3.0.texi: Likewise.
11263
11264 2009-12-29  Jim Meyering  <meyering@redhat.com>
11265
11266         update nearly all FSF copyright year lists to include 2009
11267         The files named by the following are exempted:
11268             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
11269               test -f "$dst" && { echo "$dst"; continue; }
11270               test -d "$dst" || continue
11271               echo "$dst"/$(basename "$src")
11272             done > exempt
11273             git ls-files tests/unictype >> exempt
11274         In the remaining files, convert to all-interval notation if
11275         - there is already at least one year interval like 2000-2003
11276         - the file is maintained by me
11277         - the file is in lib/uni*/, where that style already prevails
11278         Otherwise, use update-copyright's default.
11279
11280 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11281         and Eric Blake  <ebb9@byu.net>
11282
11283         tests: don't require debug system() to pass
11284         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
11285         * tests/test-rmdir.h (test_rmdir_func): Likewise.
11286         * tests/test-unlink.h (test_unlink_func): Likewise.
11287         * tests/test-fstatat.c (main): ...into callers.
11288         * tests/test-lstat.c (main): Likewise.
11289         * tests/test-rmdir.c (main): Likewise.
11290         * tests/test-unlink.c (main): Likewise.
11291         * tests/test-unlinkat.c (main): Likewise.
11292         * tests/test-areadlink-with-size.c (main): Don't require a
11293         debug-only system call to pass, aiding cross-testing to mingw.
11294         * tests/test-areadlink.c (main): Likewise.
11295         * tests/test-areadlinkat-with-size.c (main): Likewise.
11296         * tests/test-areadlinkat.c (main): Likewise.
11297         * tests/test-canonicalize-lgpl.c (main): Likewise.
11298         * tests/test-canonicalize.c (main): Likewise.
11299         * tests/test-chown.c (main): Likewise.
11300         * tests/test-fchownat.c (main): Likewise.
11301         * tests/test-lchown.c (main): Likewise.
11302         * tests/test-fdutimensat.c (main): Likewise.
11303         * tests/test-futimens.c (main): Likewise.
11304         * tests/test-link.c (main): Likewise.
11305         * tests/test-linkat.c (main): Likewise.
11306         * tests/test-mkdir.c (main): Likewise.
11307         * tests/test-mkdirat.c (main): Likewise.
11308         * tests/test-mkfifo.c (main): Likewise.
11309         * tests/test-mkfifoat.c (main): Likewise.
11310         * tests/test-mknod.c (main): Likewise.
11311         * tests/test-readlink.c (main): Likewise.
11312         * tests/test-remove.c (main): Likewise.
11313         * tests/test-rename.c (main): Likewise.
11314         * tests/test-renameat.c (main): Likewise.
11315         * tests/test-symlink.c (main): Likewise.
11316         * tests/test-symlinkat.c (main): Likewise.
11317         * tests/test-utimens.c (main): Likewise.
11318         * tests/test-utimensat.c (main): Likewise.
11319
11320 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11321
11322         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
11323         on $(UNUSED_PARAMETER_H) to avoid build failure.
11324
11325 2009-12-28  Jim Meyering  <meyering@redhat.com>
11326
11327         update-copyright: you may specify a max. line length other than 72
11328         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11329
11330         maint: use consistent FSF copyright line syntax
11331         * lib/posixtm.c: Add missing comma in FSF copyright line.
11332         * lib/posixtm.h: Likewise.
11333         * lib/getugroups.c: Add missing ", Inc.".
11334
11335         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
11336         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
11337         FSF copyright line.  Remove trailing blanks.
11338
11339 2009-12-28  Eric Blake  <ebb9@byu.net>
11340
11341         test-dup2: reduce dependencies
11342         * modules/cloexec (Configure.ac): Set witness.
11343         * modules/dup2-tests (Depends-on): Drop cloexec.
11344         * tests/test-dup2.c (main): Skip portion of test if cloexec module
11345         not present.
11346         Suggested by Bruno Haible.
11347
11348 2009-12-26  Bruno Haible  <bruno@clisp.org>
11349
11350         Remove an unneeded dependency.
11351         * modules/fseterr (Depends-on): Remove dup2.
11352
11353 2009-12-26  Eric Blake  <ebb9@byu.net>
11354
11355         tests: use macros.h in more places
11356         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
11357         (ASSERT_STREAM): Provide default of stderr.
11358         * tests/test-dirent-safer.c: Include macros.h, using alternate
11359         stream for assertions.
11360         * tests/test-dup-safer.c: Likewise.
11361         * tests/test-freopen-safer.c: Likewise.
11362         * tests/test-getopt.c: Likewise.
11363         * tests/test-openat-safer.c: Likewise.
11364         * tests/test-pipe.c: Likewise.
11365         * tests/test-popen-safer.c: Likewise.
11366         * modules/dirent-safer-tests (Files): Include macros.h.
11367         * modules/unistd-safer-tests (Files): Likewise.
11368         * modules/freopen-safer-tests (Files): Likewise.
11369         * modules/getopt-posix-tests (Files): Likewise.
11370         * modules/openat-safer-tests (Files): Likewise.
11371         * modules/pipe-tests (Files): Likewise.
11372
11373 2009-12-26  Bruno Haible  <bruno@clisp.org>
11374
11375         javacomp: Portability fix.
11376         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
11377         that it also works on Solaris.
11378
11379 2009-12-26  Bruno Haible  <bruno@clisp.org>
11380
11381         localename: Fix storage allocation of gl_locale_name_thread's result.
11382         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
11383         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
11384         all platforms that have 'uselocale'.
11385         (gl_locale_name_thread_unsafe): New function, extracted from
11386         gl_locale_name_thread.
11387         (gl_locale_name_thread): Call struniq on all platforms that have
11388         'uselocale'.
11389         * tests/test-localename.c (test_locale_name_thread): Check that the
11390         resulting strings are permanently allocated.
11391         * modules/localename-tests (Depends-on): Add strdup.
11392
11393 2009-12-26  Bruno Haible  <bruno@clisp.org>
11394
11395         * tests/test-localename.c (categories): Fill in the strings.
11396
11397 2009-12-26  Jim Meyering  <meyering@redhat.com>
11398
11399         isdir: complete the removal of m4/isdir.m4
11400         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
11401
11402         isdir: clean up, since at least grep still uses it
11403         * lib/isdir.c: Include "isdir.h".
11404         (S_ISDIR): Remove now-unneeded definition.
11405         * modules/isdir (Files): Add lib/isdir.h.
11406         * lib/isdir.h: New file, with declaration.
11407         * m4/isdir.m4: Remove file -- unneeded.
11408
11409 2009-12-25  Bruno Haible  <bruno@clisp.org>
11410
11411         selinux-h: Make generated .h files standalone.
11412         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
11413         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
11414         * lib/se-selinux.in.h: Likewise.
11415         * modules/selinux-h (Depends-on): Add unused-parameter.
11416         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
11417         selinux/selinux.h and selinux/context.h.
11418         Suggested by Eric Blake.
11419
11420 2009-12-25  Bruno Haible  <bruno@clisp.org>
11421
11422         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
11423         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
11424         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
11425         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
11426         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
11427
11428 2009-12-24  Bruno Haible  <bruno@clisp.org>
11429
11430         openat: Fix warning.
11431         * lib/openat-proc.c: Include <unistd.h>.
11432
11433 2009-12-24  Bruno Haible  <bruno@clisp.org>
11434
11435         New module 'unused-parameter'.
11436         * build-aux/unused-parameter.h: New file, extracted from earlier
11437         gnulib-common.m4.
11438         * modules/unused-parameter: New file.
11439         * lib/unistr.h: Include unused-parameter.h.
11440         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
11441         _GL_UNUSED.
11442         * modules/unistr/base (Depends-on): Add unused-parameter.
11443
11444 2009-12-24  Bruno Haible  <bruno@clisp.org>
11445
11446         Add missing dependencies to 'extensions' module.
11447         * m4/extensions.m4: Add comment.
11448         * modules/accept4 (Depends-on): Add extensions.
11449         * modules/dup3 (Depends-on): Likewise.
11450         * modules/fcntl (Depends-on): Likewise.
11451         * modules/futimens (Depends-on): Likewise.
11452         * modules/mknod (Depends-on): Likewise.
11453         * modules/pipe2 (Depends-on): Likewise.
11454         * modules/stat-time (Depends-on): Likewise.
11455         * modules/strcasestr-simple (Depends-on): Likewise.
11456         * modules/strsignal (Depends-on): Likewise.
11457         * modules/utimensat (Depends-on): Likewise.
11458         * modules/localcharset (Depends-on): Likewise. Needed because of
11459         gl_FCNTL_O_FLAGS.
11460         * modules/wcrtomb (Depends-on): Likewise. Needed because of
11461         AC_TYPE_MBSTATE_T.
11462         * modules/wcsnrtombs (Depends-on): Likewise.
11463         * modules/wcsrtombs (Depends-on): Likewise.
11464
11465 2009-12-24  Bruno Haible  <bruno@clisp.org>
11466
11467         binary-io: Avoid gcc warning due to SET_BINARY.
11468         * lib/binary-io.h (SET_BINARY): Cast the result to void.
11469         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
11470
11471 2009-12-24  Bruno Haible  <bruno@clisp.org>
11472
11473         Avoid future namespace pollution on glibc systems.
11474         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
11475         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
11476         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
11477         glibc systems.
11478
11479 2009-12-24  Bruno Haible  <bruno@clisp.org>
11480
11481         Refactor common macros used in tests.
11482         * tests/macros.h: New file.
11483         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
11484         and/or <stdlib.h>, if appropriate.
11485         (ASSERT, SIZEOF): Remove macros.
11486         * tests/test-areadlink-with-size.c: Likewise.
11487         * tests/test-areadlinkat.c: Likewise.
11488         * tests/test-areadlinkat-with-size.c: Likewise.
11489         * tests/test-argmatch.c: Likewise.
11490         * tests/test-argv-iter.c: Likewise.
11491         * tests/test-array-mergesort.c: Likewise.
11492         * tests/test-array_list.c: Likewise.
11493         * tests/test-array_oset.c: Likewise.
11494         * tests/test-avltree_list.c: Likewise.
11495         * tests/test-avltree_oset.c: Likewise.
11496         * tests/test-avltreehash_list.c: Likewise.
11497         * tests/test-base64.c: Likewise.
11498         * tests/test-binary-io.c: Likewise.
11499         * tests/test-bitrotate.c: Likewise.
11500         * tests/test-btowc.c: Likewise.
11501         * tests/test-byteswap.c: Likewise.
11502         * tests/test-c-ctype.c: Likewise.
11503         * tests/test-c-stack.c: Likewise.
11504         * tests/test-c-strcasecmp.c: Likewise.
11505         * tests/test-c-strcasestr.c: Likewise.
11506         * tests/test-c-strncasecmp.c: Likewise.
11507         * tests/test-c-strstr.c: Likewise.
11508         * tests/test-canonicalize-lgpl.c: Likewise.
11509         * tests/test-canonicalize.c: Likewise.
11510         * tests/test-carray_list.c: Likewise.
11511         * tests/test-ceilf1.c: Likewise.
11512         * tests/test-ceilf2.c: Likewise.
11513         * tests/test-ceill.c: Likewise.
11514         * tests/test-chown.c: Likewise.
11515         * tests/test-cloexec.c: Likewise.
11516         * tests/test-copy-acl.c: Likewise.
11517         * tests/test-copy-file.c: Likewise.
11518         * tests/test-count-one-bits.c: Likewise.
11519         * tests/test-dprintf-posix.c: Likewise.
11520         * tests/test-dup2.c: Likewise.
11521         * tests/test-dup3.c: Likewise.
11522         * tests/test-duplocale.c: Likewise.
11523         * tests/test-fbufmode.c: Likewise.
11524         * tests/test-fchdir.c: Likewise.
11525         * tests/test-fchownat.c: Likewise.
11526         * tests/test-fcntl-safer.c: Likewise.
11527         * tests/test-fcntl.c: Likewise.
11528         * tests/test-fdopendir.c: Likewise.
11529         * tests/test-fdutimensat.c: Likewise.
11530         * tests/test-fflush2.c: Likewise.
11531         * tests/test-file-has-acl.c: Likewise.
11532         * tests/test-filevercmp.c: Likewise.
11533         * tests/test-flock.c: Likewise.
11534         * tests/test-floorf1.c: Likewise.
11535         * tests/test-floorf2.c: Likewise.
11536         * tests/test-floorl.c: Likewise.
11537         * tests/test-fnmatch.c: Likewise.
11538         * tests/test-fopen.h: Likewise.
11539         * tests/test-fpending.c: Likewise.
11540         * tests/test-fprintf-posix.c: Likewise.
11541         * tests/test-fpurge.c: Likewise.
11542         * tests/test-freadable.c: Likewise.
11543         * tests/test-freadahead.c: Likewise.
11544         * tests/test-freading.c: Likewise.
11545         * tests/test-freadptr.c: Likewise.
11546         * tests/test-freadptr2.c: Likewise.
11547         * tests/test-freadseek.c: Likewise.
11548         * tests/test-freopen.c: Likewise.
11549         * tests/test-frexp.c: Likewise.
11550         * tests/test-frexpl.c: Likewise.
11551         * tests/test-fseek.c: Likewise.
11552         * tests/test-fseeko.c: Likewise.
11553         * tests/test-fstatat.c: Likewise.
11554         * tests/test-fstrcmp.c: Likewise.
11555         * tests/test-fsync.c: Likewise.
11556         * tests/test-ftell.c: Likewise.
11557         * tests/test-ftello.c: Likewise.
11558         * tests/test-func.c: Likewise.
11559         * tests/test-futimens.c: Likewise.
11560         * tests/test-fwritable.c: Likewise.
11561         * tests/test-fwriting.c: Likewise.
11562         * tests/test-getcwd.c: Likewise.
11563         * tests/test-getdate.c: Likewise.
11564         * tests/test-getdelim.c: Likewise.
11565         * tests/test-getdtablesize.c: Likewise.
11566         * tests/test-getgroups.c: Likewise.
11567         * tests/test-getline.c: Likewise.
11568         * tests/test-getndelim2.c: Likewise.
11569         * tests/test-glob.c: Likewise.
11570         * tests/test-hash.c: Likewise.
11571         * tests/test-i-ring.c: Likewise.
11572         * tests/test-iconv-utf.c: Likewise.
11573         * tests/test-iconv.c: Likewise.
11574         * tests/test-idpriv-drop.c: Likewise.
11575         * tests/test-idpriv-droptemp.c: Likewise.
11576         * tests/test-inet_ntop.c: Likewise.
11577         * tests/test-inet_pton.c: Likewise.
11578         * tests/test-isblank.c: Likewise.
11579         * tests/test-isfinite.c: Likewise.
11580         * tests/test-isinf.c: Likewise.
11581         * tests/test-isnan.c: Likewise.
11582         * tests/test-isnand.h: Likewise.
11583         * tests/test-isnanf.h: Likewise.
11584         * tests/test-isnanl.h: Likewise.
11585         * tests/test-lchown.c: Likewise.
11586         * tests/test-ldexpl.c: Likewise.
11587         * tests/test-link.c: Likewise.
11588         * tests/test-linkat.c: Likewise.
11589         * tests/test-linked_list.c: Likewise.
11590         * tests/test-linkedhash_list.c: Likewise.
11591         * tests/test-localename.c: Likewise.
11592         * tests/test-lseek.c: Likewise.
11593         * tests/test-lstat.c: Likewise.
11594         * tests/test-mbmemcasecmp.c: Likewise.
11595         * tests/test-mbmemcasecoll.c: Likewise.
11596         * tests/test-mbrtowc.c: Likewise.
11597         * tests/test-mbscasecmp.c: Likewise.
11598         * tests/test-mbscasestr1.c: Likewise.
11599         * tests/test-mbscasestr2.c: Likewise.
11600         * tests/test-mbscasestr3.c: Likewise.
11601         * tests/test-mbscasestr4.c: Likewise.
11602         * tests/test-mbschr.c: Likewise.
11603         * tests/test-mbscspn.c: Likewise.
11604         * tests/test-mbsinit.c: Likewise.
11605         * tests/test-mbsncasecmp.c: Likewise.
11606         * tests/test-mbsnrtowcs.c: Likewise.
11607         * tests/test-mbspbrk.c: Likewise.
11608         * tests/test-mbspcasecmp.c: Likewise.
11609         * tests/test-mbsrchr.c: Likewise.
11610         * tests/test-mbsrtowcs.c: Likewise.
11611         * tests/test-mbsspn.c: Likewise.
11612         * tests/test-mbsstr1.c: Likewise.
11613         * tests/test-mbsstr2.c: Likewise.
11614         * tests/test-mbsstr3.c: Likewise.
11615         * tests/test-memchr.c: Likewise.
11616         * tests/test-memchr2.c: Likewise.
11617         * tests/test-memcmp.c: Likewise.
11618         * tests/test-memmem.c: Likewise.
11619         * tests/test-memrchr.c: Likewise.
11620         * tests/test-mkdir.c: Likewise.
11621         * tests/test-mkdirat.c: Likewise.
11622         * tests/test-mkfifo.c: Likewise.
11623         * tests/test-mkfifoat.c: Likewise.
11624         * tests/test-mknod.c: Likewise.
11625         * tests/test-nanosleep.c: Likewise.
11626         * tests/test-nl_langinfo.c: Likewise.
11627         * tests/test-obstack-printf.c: Likewise.
11628         * tests/test-open.c: Likewise.
11629         * tests/test-openat.c: Likewise.
11630         * tests/test-pipe-filter-gi1.c: Likewise.
11631         * tests/test-pipe-filter-gi2-main.c: Likewise.
11632         * tests/test-pipe-filter-ii1.c: Likewise.
11633         * tests/test-pipe-filter-ii2-main.c: Likewise.
11634         * tests/test-pipe2.c: Likewise.
11635         * tests/test-popen.h: Likewise.
11636         * tests/test-posixtm.c: Likewise.
11637         * tests/test-pread.c: Likewise.
11638         * tests/test-printf-frexp.c: Likewise.
11639         * tests/test-printf-frexpl.c: Likewise.
11640         * tests/test-printf-posix.c: Likewise.
11641         * tests/test-priv-set.c: Likewise.
11642         * tests/test-quotearg.c: Likewise.
11643         * tests/test-random_r.c: Likewise.
11644         * tests/test-rawmemchr.c: Likewise.
11645         * tests/test-rbtree_list.c: Likewise.
11646         * tests/test-rbtree_oset.c: Likewise.
11647         * tests/test-rbtreehash_list.c: Likewise.
11648         * tests/test-readlink.c: Likewise.
11649         * tests/test-remove.c: Likewise.
11650         * tests/test-rename.c: Likewise.
11651         * tests/test-renameat.c: Likewise.
11652         * tests/test-rmdir.c: Likewise.
11653         * tests/test-round1.c: Likewise.
11654         * tests/test-roundf1.c: Likewise.
11655         * tests/test-roundl.c: Likewise.
11656         * tests/test-safe-alloc.c: Likewise.
11657         * tests/test-sameacls.c: Likewise.
11658         * tests/test-set-mode-acl.c: Likewise.
11659         * tests/test-setenv.c: Likewise.
11660         * tests/test-sigaction.c: Likewise.
11661         * tests/test-signbit.c: Likewise.
11662         * tests/test-sleep.c: Likewise.
11663         * tests/test-snprintf-posix.c: Likewise.
11664         * tests/test-snprintf.c: Likewise.
11665         * tests/test-sprintf-posix.c: Likewise.
11666         * tests/test-stat-time.c: Likewise.
11667         * tests/test-stat.c: Likewise.
11668         * tests/test-strcasestr.c: Likewise.
11669         * tests/test-strchrnul.c: Likewise.
11670         * tests/test-strerror.c: Likewise.
11671         * tests/test-striconv.c: Likewise.
11672         * tests/test-striconveh.c: Likewise.
11673         * tests/test-striconveha.c: Likewise.
11674         * tests/test-strsignal.c: Likewise.
11675         * tests/test-strstr.c: Likewise.
11676         * tests/test-strtod.c: Likewise.
11677         * tests/test-strverscmp.c: Likewise.
11678         * tests/test-symlink.c: Likewise.
11679         * tests/test-symlinkat.c: Likewise.
11680         * tests/test-trunc1.c: Likewise.
11681         * tests/test-trunc2.c: Likewise.
11682         * tests/test-truncf1.c: Likewise.
11683         * tests/test-truncf2.c: Likewise.
11684         * tests/test-truncl.c: Likewise.
11685         * tests/test-uname.c: Likewise.
11686         * tests/test-unlink.c: Likewise.
11687         * tests/test-unlinkat.c: Likewise.
11688         * tests/test-unsetenv.c: Likewise.
11689         * tests/test-usleep.c: Likewise.
11690         * tests/test-utimens.c: Likewise.
11691         * tests/test-utimensat.c: Likewise.
11692         * tests/test-vasnprintf-posix.c: Likewise.
11693         * tests/test-vasnprintf-posix2.c: Likewise.
11694         * tests/test-vasnprintf.c: Likewise.
11695         * tests/test-vasprintf-posix.c: Likewise.
11696         * tests/test-vasprintf.c: Likewise.
11697         * tests/test-vdprintf-posix.c: Likewise.
11698         * tests/test-vfprintf-posix.c: Likewise.
11699         * tests/test-vprintf-posix.c: Likewise.
11700         * tests/test-vsnprintf-posix.c: Likewise.
11701         * tests/test-vsnprintf.c: Likewise.
11702         * tests/test-vsprintf-posix.c: Likewise.
11703         * tests/test-wcrtomb.c: Likewise.
11704         * tests/test-wcsnrtombs.c: Likewise.
11705         * tests/test-wcsrtombs.c: Likewise.
11706         * tests/test-wctype.c: Likewise.
11707         * tests/test-wcwidth.c: Likewise.
11708         * tests/test-xfprintf-posix.c: Likewise.
11709         * tests/test-xmemdup0.c: Likewise.
11710         * tests/test-xprintf-posix.c: Likewise.
11711         * tests/test-xvasprintf.c: Likewise.
11712         * tests/unicase/test-locale-language.c: Likewise.
11713         * tests/unicase/test-mapping-part1.h: Likewise.
11714         * tests/unicase/test-predicate-part1.h: Likewise.
11715         * tests/unicase/test-u8-casecmp.c: Likewise.
11716         * tests/unicase/test-u8-casecoll.c: Likewise.
11717         * tests/unicase/test-u8-casefold.c: Likewise.
11718         * tests/unicase/test-u8-is-cased.c: Likewise.
11719         * tests/unicase/test-u8-is-casefolded.c: Likewise.
11720         * tests/unicase/test-u8-is-lowercase.c: Likewise.
11721         * tests/unicase/test-u8-is-titlecase.c: Likewise.
11722         * tests/unicase/test-u8-is-uppercase.c: Likewise.
11723         * tests/unicase/test-u8-tolower.c: Likewise.
11724         * tests/unicase/test-u8-totitle.c: Likewise.
11725         * tests/unicase/test-u8-toupper.c: Likewise.
11726         * tests/unicase/test-u16-casecmp.c: Likewise.
11727         * tests/unicase/test-u16-casecoll.c: Likewise.
11728         * tests/unicase/test-u16-casefold.c: Likewise.
11729         * tests/unicase/test-u16-is-cased.c: Likewise.
11730         * tests/unicase/test-u16-is-casefolded.c: Likewise.
11731         * tests/unicase/test-u16-is-lowercase.c: Likewise.
11732         * tests/unicase/test-u16-is-titlecase.c: Likewise.
11733         * tests/unicase/test-u16-is-uppercase.c: Likewise.
11734         * tests/unicase/test-u16-tolower.c: Likewise.
11735         * tests/unicase/test-u16-totitle.c: Likewise.
11736         * tests/unicase/test-u16-toupper.c: Likewise.
11737         * tests/unicase/test-u32-casecmp.c: Likewise.
11738         * tests/unicase/test-u32-casecoll.c: Likewise.
11739         * tests/unicase/test-u32-casefold.c: Likewise.
11740         * tests/unicase/test-u32-is-cased.c: Likewise.
11741         * tests/unicase/test-u32-is-casefolded.c: Likewise.
11742         * tests/unicase/test-u32-is-lowercase.c: Likewise.
11743         * tests/unicase/test-u32-is-titlecase.c: Likewise.
11744         * tests/unicase/test-u32-is-uppercase.c: Likewise.
11745         * tests/unicase/test-u32-tolower.c: Likewise.
11746         * tests/unicase/test-u32-totitle.c: Likewise.
11747         * tests/unicase/test-u32-toupper.c: Likewise.
11748         * tests/unicase/test-ulc-casecmp.c: Likewise.
11749         * tests/unicase/test-ulc-casecoll.c: Likewise.
11750         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11751         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11752         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11753         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11754         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11755         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11756         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11757         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11758         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11759         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11760         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11761         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11762         * tests/unictype/test-bidi_byname.c: Likewise.
11763         * tests/unictype/test-bidi_name.c: Likewise.
11764         * tests/unictype/test-bidi_of.c: Likewise.
11765         * tests/unictype/test-bidi_test.c: Likewise.
11766         * tests/unictype/test-block_list.c: Likewise.
11767         * tests/unictype/test-block_of.c: Likewise.
11768         * tests/unictype/test-block_test.c: Likewise.
11769         * tests/unictype/test-categ_and.c: Likewise.
11770         * tests/unictype/test-categ_and_not.c: Likewise.
11771         * tests/unictype/test-categ_byname.c: Likewise.
11772         * tests/unictype/test-categ_name.c: Likewise.
11773         * tests/unictype/test-categ_none.c: Likewise.
11774         * tests/unictype/test-categ_of.c: Likewise.
11775         * tests/unictype/test-categ_or.c: Likewise.
11776         * tests/unictype/test-categ_test_withtable.c: Likewise.
11777         * tests/unictype/test-combining.c: Likewise.
11778         * tests/unictype/test-decdigit.c: Likewise.
11779         * tests/unictype/test-digit.c: Likewise.
11780         * tests/unictype/test-mirror.c: Likewise.
11781         * tests/unictype/test-numeric.c: Likewise.
11782         * tests/unictype/test-pr_byname.c: Likewise.
11783         * tests/unictype/test-pr_test.c: Likewise.
11784         * tests/unictype/test-predicate-part1.h: Likewise.
11785         * tests/unictype/test-scripts.c: Likewise.
11786         * tests/unictype/test-sy_c_ident.c: Likewise.
11787         * tests/unictype/test-sy_java_ident.c: Likewise.
11788         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
11789         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
11790         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
11791         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
11792         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
11793         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
11794         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
11795         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
11796         * tests/uninorm/test-canonical-decomposition.c: Likewise.
11797         * tests/uninorm/test-compat-decomposition.c: Likewise.
11798         * tests/uninorm/test-composition.c: Likewise.
11799         * tests/uninorm/test-decomposing-form.c: Likewise.
11800         * tests/uninorm/test-decomposition.c: Likewise.
11801         * tests/uninorm/test-u8-nfc.c: Likewise.
11802         * tests/uninorm/test-u8-nfd.c: Likewise.
11803         * tests/uninorm/test-u8-nfkc.c: Likewise.
11804         * tests/uninorm/test-u8-nfkd.c: Likewise.
11805         * tests/uninorm/test-u8-normcmp.c: Likewise.
11806         * tests/uninorm/test-u8-normcoll.c: Likewise.
11807         * tests/uninorm/test-u16-nfc.c: Likewise.
11808         * tests/uninorm/test-u16-nfd.c: Likewise.
11809         * tests/uninorm/test-u16-nfkc.c: Likewise.
11810         * tests/uninorm/test-u16-nfkd.c: Likewise.
11811         * tests/uninorm/test-u16-normcmp.c: Likewise.
11812         * tests/uninorm/test-u16-normcoll.c: Likewise.
11813         * tests/uninorm/test-u32-nfc.c: Likewise.
11814         * tests/uninorm/test-u32-nfd.c: Likewise.
11815         * tests/uninorm/test-u32-nfkc.c: Likewise.
11816         * tests/uninorm/test-u32-nfkd.c: Likewise.
11817         * tests/uninorm/test-u32-normalize-big.c: Likewise.
11818         * tests/uninorm/test-u32-normcmp.c: Likewise.
11819         * tests/uninorm/test-u32-normcoll.c: Likewise.
11820         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
11821         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11822         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11823         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11824         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
11825         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
11826         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11827         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11828         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11829         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11830         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11831         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11832         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11833         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11834         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11835         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11836         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11837         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11838         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11839         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11840         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11841         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11842         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
11843         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
11844         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
11845         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
11846         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
11847         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11848         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11849         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
11850         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
11851         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
11852         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
11853         * tests/uniwidth/test-u8-strwidth.c: Likewise.
11854         * tests/uniwidth/test-u8-width.c: Likewise.
11855         * tests/uniwidth/test-u16-strwidth.c: Likewise.
11856         * tests/uniwidth/test-u16-width.c: Likewise.
11857         * tests/uniwidth/test-u32-strwidth.c: Likewise.
11858         * tests/uniwidth/test-u32-width.c: Likewise.
11859         * tests/uniwidth/test-uc_width.c: Likewise.
11860         * tests/uniwidth/test-uc_width2.c: Likewise.
11861         * modules/acl-tests (Files): Add tests/macros.h.
11862         * modules/areadlink-tests (Files): Likewise.
11863         * modules/areadlink-with-size-tests (Files): Likewise.
11864         * modules/areadlinkat-tests (Files): Likewise.
11865         * modules/areadlinkat-with-size-tests (Files): Likewise.
11866         * modules/argmatch-tests (Files): Likewise.
11867         * modules/argv-iter-tests (Files): Likewise.
11868         * modules/array-list-tests (Files): Likewise.
11869         * modules/array-mergesort-tests (Files): Likewise.
11870         * modules/array-oset-tests (Files): Likewise.
11871         * modules/avltree-list-tests (Files): Likewise.
11872         * modules/avltree-oset-tests (Files): Likewise.
11873         * modules/avltreehash-list-tests (Files): Likewise.
11874         * modules/base64-tests (Files): Likewise.
11875         * modules/binary-io-tests (Files): Likewise.
11876         * modules/bitrotate-tests (Files): Likewise.
11877         * modules/btowc-tests (Files): Likewise.
11878         * modules/byteswap-tests (Files): Likewise.
11879         * modules/c-ctype-tests (Files): Likewise.
11880         * modules/c-stack-tests (Files): Likewise.
11881         * modules/c-strcase-tests (Files): Likewise.
11882         * modules/c-strcasestr-tests (Files): Likewise.
11883         * modules/c-strstr-tests (Files): Likewise.
11884         * modules/canonicalize-lgpl-tests (Files): Likewise.
11885         * modules/canonicalize-tests (Files): Likewise.
11886         * modules/carray-list-tests (Files): Likewise.
11887         * modules/ceilf-tests (Files): Likewise.
11888         * modules/ceill-tests (Files): Likewise.
11889         * modules/chown-tests (Files): Likewise.
11890         * modules/cloexec-tests (Files): Likewise.
11891         * modules/copy-file-tests (Files): Likewise.
11892         * modules/count-one-bits-tests (Files): Likewise.
11893         * modules/dprintf-posix-tests (Files): Likewise.
11894         * modules/dup2-tests (Files): Likewise.
11895         * modules/dup3-tests (Files): Likewise.
11896         * modules/duplocale-tests (Files): Likewise.
11897         * modules/fbufmode-tests (Files): Likewise.
11898         * modules/fchdir-tests (Files): Likewise.
11899         * modules/fcntl-safer-tests (Files): Likewise.
11900         * modules/fcntl-tests (Files): Likewise.
11901         * modules/fdopendir-tests (Files): Likewise.
11902         * modules/fdutimensat-tests (Files): Likewise.
11903         * modules/fflush-tests (Files): Likewise.
11904         * modules/filevercmp-tests (Files): Likewise.
11905         * modules/flock-tests (Files): Likewise.
11906         * modules/floorf-tests (Files): Likewise.
11907         * modules/floorl-tests (Files): Likewise.
11908         * modules/fnmatch-tests (Files): Likewise.
11909         * modules/fopen-safer-tests (Files): Likewise.
11910         * modules/fopen-tests (Files): Likewise.
11911         * modules/fpending-tests (Files): Likewise.
11912         * modules/fprintf-posix-tests (Files): Likewise.
11913         * modules/fpurge-tests (Files): Likewise.
11914         * modules/freadable-tests (Files): Likewise.
11915         * modules/freadahead-tests (Files): Likewise.
11916         * modules/freading-tests (Files): Likewise.
11917         * modules/freadptr-tests (Files): Likewise.
11918         * modules/freadseek-tests (Files): Likewise.
11919         * modules/freopen-tests (Files): Likewise.
11920         * modules/frexp-nolibm-tests (Files): Likewise.
11921         * modules/frexp-tests (Files): Likewise.
11922         * modules/frexpl-nolibm-tests (Files): Likewise.
11923         * modules/frexpl-tests (Files): Likewise.
11924         * modules/fseek-tests (Files): Likewise.
11925         * modules/fseeko-tests (Files): Likewise.
11926         * modules/fstrcmp-tests (Files): Likewise.
11927         * modules/fsync-tests (Files): Likewise.
11928         * modules/ftell-tests (Files): Likewise.
11929         * modules/ftello-tests (Files): Likewise.
11930         * modules/func-tests (Files): Likewise.
11931         * modules/futimens-tests (Files): Likewise.
11932         * modules/fwritable-tests (Files): Likewise.
11933         * modules/fwriting-tests (Files): Likewise.
11934         * modules/getcwd-tests (Files): Likewise.
11935         * modules/getdate-tests (Files): Likewise.
11936         * modules/getdelim-tests (Files): Likewise.
11937         * modules/getdtablesize-tests (Files): Likewise.
11938         * modules/getgroups-tests (Files): Likewise.
11939         * modules/getline-tests (Files): Likewise.
11940         * modules/getndelim2-tests (Files): Likewise.
11941         * modules/glob-tests (Files): Likewise.
11942         * modules/hash-tests (Files): Likewise.
11943         * modules/i-ring-tests (Files): Likewise.
11944         * modules/iconv-tests (Files): Likewise.
11945         * modules/iconv_open-utf-tests (Files): Likewise.
11946         * modules/idpriv-drop-tests (Files): Likewise.
11947         * modules/idpriv-droptemp-tests (Files): Likewise.
11948         * modules/inet_ntop-tests (Files): Likewise.
11949         * modules/inet_pton-tests (Files): Likewise.
11950         * modules/isblank-tests (Files): Likewise.
11951         * modules/isfinite-tests (Files): Likewise.
11952         * modules/isinf-tests (Files): Likewise.
11953         * modules/isnan-tests (Files): Likewise.
11954         * modules/isnand-nolibm-tests (Files): Likewise.
11955         * modules/isnand-tests (Files): Likewise.
11956         * modules/isnanf-nolibm-tests (Files): Likewise.
11957         * modules/isnanf-tests (Files): Likewise.
11958         * modules/isnanl-nolibm-tests (Files): Likewise.
11959         * modules/isnanl-tests (Files): Likewise.
11960         * modules/lchown-tests (Files): Likewise.
11961         * modules/ldexpl-tests (Files): Likewise.
11962         * modules/link-tests (Files): Likewise.
11963         * modules/linkat-tests (Files): Likewise.
11964         * modules/linked-list-tests (Files): Likewise.
11965         * modules/linkedhash-list-tests (Files): Likewise.
11966         * modules/localename-tests (Files): Likewise.
11967         * modules/lseek-tests (Files): Likewise.
11968         * modules/lstat-tests (Files): Likewise.
11969         * modules/mbmemcasecmp-tests (Files): Likewise.
11970         * modules/mbmemcasecoll-tests (Files): Likewise.
11971         * modules/mbrtowc-tests (Files): Likewise.
11972         * modules/mbscasecmp-tests (Files): Likewise.
11973         * modules/mbscasestr-tests (Files): Likewise.
11974         * modules/mbschr-tests (Files): Likewise.
11975         * modules/mbscspn-tests (Files): Likewise.
11976         * modules/mbsinit-tests (Files): Likewise.
11977         * modules/mbsncasecmp-tests (Files): Likewise.
11978         * modules/mbsnrtowcs-tests (Files): Likewise.
11979         * modules/mbspbrk-tests (Files): Likewise.
11980         * modules/mbspcasecmp-tests (Files): Likewise.
11981         * modules/mbsrchr-tests (Files): Likewise.
11982         * modules/mbsrtowcs-tests (Files): Likewise.
11983         * modules/mbsspn-tests (Files): Likewise.
11984         * modules/mbsstr-tests (Files): Likewise.
11985         * modules/memchr-tests (Files): Likewise.
11986         * modules/memchr2-tests (Files): Likewise.
11987         * modules/memcmp-tests (Files): Likewise.
11988         * modules/memmem-tests (Files): Likewise.
11989         * modules/memrchr-tests (Files): Likewise.
11990         * modules/mkdir-tests (Files): Likewise.
11991         * modules/mkfifo-tests (Files): Likewise.
11992         * modules/mkfifoat-tests (Files): Likewise.
11993         * modules/mknod-tests (Files): Likewise.
11994         * modules/nanosleep-tests (Files): Likewise.
11995         * modules/nl_langinfo-tests (Files): Likewise.
11996         * modules/obstack-printf-tests (Files): Likewise.
11997         * modules/open-tests (Files): Likewise.
11998         * modules/openat-tests (Files): Likewise.
11999         * modules/pipe-filter-gi-tests (Files): Likewise.
12000         * modules/pipe-filter-ii-tests (Files): Likewise.
12001         * modules/pipe2-tests (Files): Likewise.
12002         * modules/popen-safer-tests (Files): Likewise.
12003         * modules/popen-tests (Files): Likewise.
12004         * modules/posixtm-tests (Files): Likewise.
12005         * modules/pread-tests (Files): Likewise.
12006         * modules/printf-frexp-tests (Files): Likewise.
12007         * modules/printf-frexpl-tests (Files): Likewise.
12008         * modules/printf-posix-tests (Files): Likewise.
12009         * modules/priv-set-tests (Files): Likewise.
12010         * modules/quotearg-tests (Files): Likewise.
12011         * modules/random_r-tests (Files): Likewise.
12012         * modules/rawmemchr-tests (Files): Likewise.
12013         * modules/rbtree-list-tests (Files): Likewise.
12014         * modules/rbtree-oset-tests (Files): Likewise.
12015         * modules/rbtreehash-list-tests (Files): Likewise.
12016         * modules/readlink-tests (Files): Likewise.
12017         * modules/remove-tests (Files): Likewise.
12018         * modules/rename-tests (Files): Likewise.
12019         * modules/renameat-tests (Files): Likewise.
12020         * modules/rmdir-tests (Files): Likewise.
12021         * modules/round-tests (Files): Likewise.
12022         * modules/roundf-tests (Files): Likewise.
12023         * modules/roundl-tests (Files): Likewise.
12024         * modules/safe-alloc-tests (Files): Likewise.
12025         * modules/setenv-tests (Files): Likewise.
12026         * modules/sigaction-tests (Files): Likewise.
12027         * modules/signbit-tests (Files): Likewise.
12028         * modules/sleep-tests (Files): Likewise.
12029         * modules/snprintf-posix-tests (Files): Likewise.
12030         * modules/snprintf-tests (Files): Likewise.
12031         * modules/sprintf-posix-tests (Files): Likewise.
12032         * modules/stat-tests (Files): Likewise.
12033         * modules/stat-time-tests (Files): Likewise.
12034         * modules/strcasestr-tests (Files): Likewise.
12035         * modules/strchrnul-tests (Files): Likewise.
12036         * modules/strerror-tests (Files): Likewise.
12037         * modules/striconv-tests (Files): Likewise.
12038         * modules/striconveh-tests (Files): Likewise.
12039         * modules/striconveha-tests (Files): Likewise.
12040         * modules/strsignal-tests (Files): Likewise.
12041         * modules/strstr-tests (Files): Likewise.
12042         * modules/strtod-tests (Files): Likewise.
12043         * modules/strverscmp-tests (Files): Likewise.
12044         * modules/symlink-tests (Files): Likewise.
12045         * modules/symlinkat-tests (Files): Likewise.
12046         * modules/trunc-tests (Files): Likewise.
12047         * modules/truncf-tests (Files): Likewise.
12048         * modules/truncl-tests (Files): Likewise.
12049         * modules/uname-tests (Files): Likewise.
12050         * modules/unicase/cased-tests (Files): Likewise.
12051         * modules/unicase/ignorable-tests (Files): Likewise.
12052         * modules/unicase/locale-language-tests (Files): Likewise.
12053         * modules/unicase/tolower-tests (Files): Likewise.
12054         * modules/unicase/totitle-tests (Files): Likewise.
12055         * modules/unicase/toupper-tests (Files): Likewise.
12056         * modules/unicase/u8-casecmp-tests (Files): Likewise.
12057         * modules/unicase/u8-casecoll-tests (Files): Likewise.
12058         * modules/unicase/u8-casefold-tests (Files): Likewise.
12059         * modules/unicase/u8-is-cased-tests (Files): Likewise.
12060         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
12061         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
12062         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
12063         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
12064         * modules/unicase/u8-tolower-tests (Files): Likewise.
12065         * modules/unicase/u8-totitle-tests (Files): Likewise.
12066         * modules/unicase/u8-toupper-tests (Files): Likewise.
12067         * modules/unicase/u16-casecmp-tests (Files): Likewise.
12068         * modules/unicase/u16-casecoll-tests (Files): Likewise.
12069         * modules/unicase/u16-casefold-tests (Files): Likewise.
12070         * modules/unicase/u16-is-cased-tests (Files): Likewise.
12071         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
12072         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
12073         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
12074         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
12075         * modules/unicase/u16-tolower-tests (Files): Likewise.
12076         * modules/unicase/u16-totitle-tests (Files): Likewise.
12077         * modules/unicase/u16-toupper-tests (Files): Likewise.
12078         * modules/unicase/u32-casecmp-tests (Files): Likewise.
12079         * modules/unicase/u32-casecoll-tests (Files): Likewise.
12080         * modules/unicase/u32-casefold-tests (Files): Likewise.
12081         * modules/unicase/u32-is-cased-tests (Files): Likewise.
12082         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
12083         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
12084         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
12085         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
12086         * modules/unicase/u32-tolower-tests (Files): Likewise.
12087         * modules/unicase/u32-totitle-tests (Files): Likewise.
12088         * modules/unicase/u32-toupper-tests (Files): Likewise.
12089         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
12090         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
12091         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
12092         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
12093         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
12094         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
12095         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
12096         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
12097         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
12098         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
12099         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
12100         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
12101         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
12102         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
12103         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
12104         * modules/unictype/bidicategory-name-tests (Files): Likewise.
12105         * modules/unictype/bidicategory-of-tests (Files): Likewise.
12106         * modules/unictype/bidicategory-test-tests (Files): Likewise.
12107         * modules/unictype/block-list-tests (Files): Likewise.
12108         * modules/unictype/block-of-tests (Files): Likewise.
12109         * modules/unictype/block-test-tests (Files): Likewise.
12110         * modules/unictype/category-C-tests (Files): Likewise.
12111         * modules/unictype/category-Cc-tests (Files): Likewise.
12112         * modules/unictype/category-Cf-tests (Files): Likewise.
12113         * modules/unictype/category-Cn-tests (Files): Likewise.
12114         * modules/unictype/category-Co-tests (Files): Likewise.
12115         * modules/unictype/category-Cs-tests (Files): Likewise.
12116         * modules/unictype/category-L-tests (Files): Likewise.
12117         * modules/unictype/category-Ll-tests (Files): Likewise.
12118         * modules/unictype/category-Lm-tests (Files): Likewise.
12119         * modules/unictype/category-Lo-tests (Files): Likewise.
12120         * modules/unictype/category-Lt-tests (Files): Likewise.
12121         * modules/unictype/category-Lu-tests (Files): Likewise.
12122         * modules/unictype/category-M-tests (Files): Likewise.
12123         * modules/unictype/category-Mc-tests (Files): Likewise.
12124         * modules/unictype/category-Me-tests (Files): Likewise.
12125         * modules/unictype/category-Mn-tests (Files): Likewise.
12126         * modules/unictype/category-N-tests (Files): Likewise.
12127         * modules/unictype/category-Nd-tests (Files): Likewise.
12128         * modules/unictype/category-Nl-tests (Files): Likewise.
12129         * modules/unictype/category-No-tests (Files): Likewise.
12130         * modules/unictype/category-P-tests (Files): Likewise.
12131         * modules/unictype/category-Pc-tests (Files): Likewise.
12132         * modules/unictype/category-Pd-tests (Files): Likewise.
12133         * modules/unictype/category-Pe-tests (Files): Likewise.
12134         * modules/unictype/category-Pf-tests (Files): Likewise.
12135         * modules/unictype/category-Pi-tests (Files): Likewise.
12136         * modules/unictype/category-Po-tests (Files): Likewise.
12137         * modules/unictype/category-Ps-tests (Files): Likewise.
12138         * modules/unictype/category-S-tests (Files): Likewise.
12139         * modules/unictype/category-Sc-tests (Files): Likewise.
12140         * modules/unictype/category-Sk-tests (Files): Likewise.
12141         * modules/unictype/category-Sm-tests (Files): Likewise.
12142         * modules/unictype/category-So-tests (Files): Likewise.
12143         * modules/unictype/category-Z-tests (Files): Likewise.
12144         * modules/unictype/category-Zl-tests (Files): Likewise.
12145         * modules/unictype/category-Zp-tests (Files): Likewise.
12146         * modules/unictype/category-Zs-tests (Files): Likewise.
12147         * modules/unictype/category-and-not-tests (Files): Likewise.
12148         * modules/unictype/category-and-tests (Files): Likewise.
12149         * modules/unictype/category-byname-tests (Files): Likewise.
12150         * modules/unictype/category-name-tests (Files): Likewise.
12151         * modules/unictype/category-none-tests (Files): Likewise.
12152         * modules/unictype/category-of-tests (Files): Likewise.
12153         * modules/unictype/category-or-tests (Files): Likewise.
12154         * modules/unictype/category-test-withtable-tests (Files): Likewise.
12155         * modules/unictype/combining-class-tests (Files): Likewise.
12156         * modules/unictype/ctype-alnum-tests (Files): Likewise.
12157         * modules/unictype/ctype-alpha-tests (Files): Likewise.
12158         * modules/unictype/ctype-blank-tests (Files): Likewise.
12159         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
12160         * modules/unictype/ctype-digit-tests (Files): Likewise.
12161         * modules/unictype/ctype-graph-tests (Files): Likewise.
12162         * modules/unictype/ctype-lower-tests (Files): Likewise.
12163         * modules/unictype/ctype-print-tests (Files): Likewise.
12164         * modules/unictype/ctype-punct-tests (Files): Likewise.
12165         * modules/unictype/ctype-space-tests (Files): Likewise.
12166         * modules/unictype/ctype-upper-tests (Files): Likewise.
12167         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
12168         * modules/unictype/decimal-digit-tests (Files): Likewise.
12169         * modules/unictype/digit-tests (Files): Likewise.
12170         * modules/unictype/mirror-tests (Files): Likewise.
12171         * modules/unictype/numeric-tests (Files): Likewise.
12172         * modules/unictype/property-alphabetic-tests (Files): Likewise.
12173         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
12174         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
12175         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
12176         Likewise.
12177         * modules/unictype/property-bidi-block-separator-tests (Files):
12178         Likewise.
12179         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
12180         Likewise.
12181         * modules/unictype/property-bidi-common-separator-tests (Files):
12182         Likewise.
12183         * modules/unictype/property-bidi-control-tests (Files): Likewise.
12184         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
12185         Likewise.
12186         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
12187         Likewise.
12188         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
12189         Likewise.
12190         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
12191         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
12192         Likewise.
12193         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
12194         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
12195         Likewise.
12196         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
12197         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
12198         * modules/unictype/property-bidi-segment-separator-tests (Files):
12199         Likewise.
12200         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
12201         * modules/unictype/property-byname-tests (Files): Likewise.
12202         * modules/unictype/property-combining-tests (Files): Likewise.
12203         * modules/unictype/property-composite-tests (Files): Likewise.
12204         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
12205         * modules/unictype/property-dash-tests (Files): Likewise.
12206         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
12207         * modules/unictype/property-default-ignorable-code-point-tests (Files):
12208         Likewise.
12209         * modules/unictype/property-deprecated-tests (Files): Likewise.
12210         * modules/unictype/property-diacritic-tests (Files): Likewise.
12211         * modules/unictype/property-extender-tests (Files): Likewise.
12212         * modules/unictype/property-format-control-tests (Files): Likewise.
12213         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
12214         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
12215         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
12216         * modules/unictype/property-hex-digit-tests (Files): Likewise.
12217         * modules/unictype/property-hyphen-tests (Files): Likewise.
12218         * modules/unictype/property-id-continue-tests (Files): Likewise.
12219         * modules/unictype/property-id-start-tests (Files): Likewise.
12220         * modules/unictype/property-ideographic-tests (Files): Likewise.
12221         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
12222         * modules/unictype/property-ids-trinary-operator-tests (Files):
12223         Likewise.
12224         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
12225         * modules/unictype/property-iso-control-tests (Files): Likewise.
12226         * modules/unictype/property-join-control-tests (Files): Likewise.
12227         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
12228         * modules/unictype/property-line-separator-tests (Files): Likewise.
12229         * modules/unictype/property-logical-order-exception-tests (Files):
12230         Likewise.
12231         * modules/unictype/property-lowercase-tests (Files): Likewise.
12232         * modules/unictype/property-math-tests (Files): Likewise.
12233         * modules/unictype/property-non-break-tests (Files): Likewise.
12234         * modules/unictype/property-not-a-character-tests (Files): Likewise.
12235         * modules/unictype/property-numeric-tests (Files): Likewise.
12236         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
12237         * modules/unictype/property-other-default-ignorable-code-point-tests
12238         (Files): Likewise.
12239         * modules/unictype/property-other-grapheme-extend-tests (Files):
12240         Likewise.
12241         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
12242         * modules/unictype/property-other-id-start-tests (Files): Likewise.
12243         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
12244         * modules/unictype/property-other-math-tests (Files): Likewise.
12245         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
12246         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
12247         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
12248         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
12249         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
12250         * modules/unictype/property-private-use-tests (Files): Likewise.
12251         * modules/unictype/property-punctuation-tests (Files): Likewise.
12252         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
12253         * modules/unictype/property-radical-tests (Files): Likewise.
12254         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
12255         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
12256         * modules/unictype/property-space-tests (Files): Likewise.
12257         * modules/unictype/property-terminal-punctuation-tests (Files):
12258         Likewise.
12259         * modules/unictype/property-test-tests (Files): Likewise.
12260         * modules/unictype/property-titlecase-tests (Files): Likewise.
12261         * modules/unictype/property-unassigned-code-value-tests (Files):
12262         Likewise.
12263         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
12264         * modules/unictype/property-uppercase-tests (Files): Likewise.
12265         * modules/unictype/property-variation-selector-tests (Files): Likewise.
12266         * modules/unictype/property-white-space-tests (Files): Likewise.
12267         * modules/unictype/property-xid-continue-tests (Files): Likewise.
12268         * modules/unictype/property-xid-start-tests (Files): Likewise.
12269         * modules/unictype/property-zero-width-tests (Files): Likewise.
12270         * modules/unictype/scripts-tests (Files): Likewise.
12271         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
12272         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
12273         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
12274         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
12275         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
12276         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
12277         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
12278         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
12279         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
12280         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
12281         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
12282         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
12283         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
12284         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
12285         * modules/uninorm/composition-tests (Files): Likewise.
12286         * modules/uninorm/decomposing-form-tests (Files): Likewise.
12287         * modules/uninorm/decomposition-tests (Files): Likewise.
12288         * modules/uninorm/filter-tests (Files): Likewise.
12289         * modules/uninorm/nfc-tests (Files): Likewise.
12290         * modules/uninorm/nfd-tests (Files): Likewise.
12291         * modules/uninorm/nfkc-tests (Files): Likewise.
12292         * modules/uninorm/nfkd-tests (Files): Likewise.
12293         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
12294         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
12295         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
12296         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
12297         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
12298         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
12299         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
12300         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
12301         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
12302         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
12303         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
12304         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
12305         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
12306         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
12307         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
12308         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
12309         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
12310         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
12311         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
12312         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
12313         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
12314         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
12315         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
12316         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
12317         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
12318         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
12319         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
12320         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
12321         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
12322         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
12323         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
12324         * modules/uniwidth/u8-width-tests (Files): Likewise.
12325         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
12326         * modules/uniwidth/u16-width-tests (Files): Likewise.
12327         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
12328         * modules/uniwidth/u32-width-tests (Files): Likewise.
12329         * modules/uniwidth/width-tests (Files): Likewise.
12330         * modules/unlink-tests (Files): Likewise.
12331         * modules/unsetenv-tests (Files): Likewise.
12332         * modules/usleep-tests (Files): Likewise.
12333         * modules/utimens-tests (Files): Likewise.
12334         * modules/utimensat-tests (Files): Likewise.
12335         * modules/vasnprintf-posix-tests (Files): Likewise.
12336         * modules/vasnprintf-tests (Files): Likewise.
12337         * modules/vasprintf-posix-tests (Files): Likewise.
12338         * modules/vasprintf-tests (Files): Likewise.
12339         * modules/vdprintf-posix-tests (Files): Likewise.
12340         * modules/vfprintf-posix-tests (Files): Likewise.
12341         * modules/vprintf-posix-tests (Files): Likewise.
12342         * modules/vsnprintf-posix-tests (Files): Likewise.
12343         * modules/vsnprintf-tests (Files): Likewise.
12344         * modules/vsprintf-posix-tests (Files): Likewise.
12345         * modules/wcrtomb-tests (Files): Likewise.
12346         * modules/wcsnrtombs-tests (Files): Likewise.
12347         * modules/wcsrtombs-tests (Files): Likewise.
12348         * modules/wctype-tests (Files): Likewise.
12349         * modules/wcwidth-tests (Files): Likewise.
12350         * modules/xmemdup0-tests (Files): Likewise.
12351         * modules/xprintf-posix-tests (Files): Likewise.
12352         * modules/xvasprintf-tests (Files): Likewise.
12353
12354 2009-12-24  Eric Blake  <ebb9@byu.net>
12355
12356         test-nanosleep: fix typo
12357         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
12358         patch.
12359         Reported by Bruno Haible.
12360
12361 2009-12-24  Bruno Haible  <bruno@clisp.org>
12362
12363         Reduce namespace pollution on glibc systems.
12364         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
12365         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
12366         systems.
12367         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
12368         <getopt.h> on glibc systems.
12369         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
12370         systems.
12371         * lib/fcntl.c: Include <unistd.h> here instead.
12372
12373 2009-12-24  Bruno Haible  <bruno@clisp.org>
12374
12375         * lib/stdlib.in.h (includes): Fix typo in today's commit.
12376
12377 2009-12-24  Eric Blake  <ebb9@byu.net>
12378
12379         tests: add signature checks
12380         * tests/signature.h (SIGNATURE_CHECK): New file.
12381         * modules/atexit-tests (Files): Use it.
12382         * modules/btowc-tests (Files): Likewise.
12383         * modules/canonicalize-lgpl-tests (Files): Likewise.
12384         * modules/ceilf-tests (Files): Likewise.
12385         * modules/ceill-tests (Files): Likewise.
12386         * modules/chown-tests (Files): Likewise.
12387         * modules/dprintf-posix-tests (Files): Likewise.
12388         * modules/dup2-tests (Files): Likewise.
12389         * modules/dup3-tests (Files): Likewise.
12390         * modules/duplocale-tests (Files): Likewise.
12391         * modules/fchdir-tests (Files): Likewise.
12392         * modules/fcntl-tests (Files): Likewise.
12393         * modules/fdopendir-tests (Files): Likewise.
12394         * modules/fflush-tests (Files): Likewise.
12395         * modules/flock-tests (Files): Likewise.
12396         * modules/floorf-tests (Files): Likewise.
12397         * modules/floorl-tests (Files): Likewise.
12398         * modules/fnmatch-tests (Files): Likewise.
12399         * modules/fopen-tests (Files): Likewise.
12400         * modules/fprintf-posix-tests (Files): Likewise.
12401         * modules/freopen-tests (Files): Likewise.
12402         * modules/frexp-nolibm-tests (Files): Likewise.
12403         * modules/frexp-tests (Files): Likewise.
12404         * modules/frexpl-nolibm-tests (Files): Likewise.
12405         * modules/frexpl-tests (Files): Likewise.
12406         * modules/fseek-tests (Files): Likewise.
12407         * modules/fseeko-tests (Files): Likewise.
12408         * modules/fsync-tests (Files): Likewise.
12409         * modules/ftell-tests (Files): Likewise.
12410         * modules/ftello-tests (Files): Likewise.
12411         * modules/futimens-tests (Files): Likewise.
12412         * modules/getaddrinfo-tests (Files): Likewise.
12413         * modules/getcwd-tests (Files): Likewise.
12414         * modules/getdelim-tests (Files): Likewise.
12415         * modules/getdtablesize-tests (Files): Likewise.
12416         * modules/getgroups-tests (Files): Likewise.
12417         * modules/gethostname-tests (Files): Likewise.
12418         * modules/getline-tests (Files): Likewise.
12419         * modules/getopt-posix-tests (Files): Likewise.
12420         * modules/gettimeofday-tests (Files): Likewise.
12421         * modules/glob-tests (Files): Likewise.
12422         * modules/iconv-tests (Files): Likewise.
12423         * modules/inet_ntop-tests (Files): Likewise.
12424         * modules/inet_pton-tests (Files): Likewise.
12425         * modules/isblank-tests (Files): Likewise.
12426         * modules/lchown-tests (Files): Likewise.
12427         * modules/ldexpl-tests (Files): Likewise.
12428         * modules/link-tests (Files): Likewise.
12429         * modules/linkat-tests (Files): Likewise.
12430         * modules/lseek-tests (Files): Likewise.
12431         * modules/lstat-tests (Files): Likewise.
12432         * modules/mbrtowc-tests (Files): Likewise.
12433         * modules/mbsinit-tests (Files): Likewise.
12434         * modules/mbsnrtowcs-tests (Files): Likewise.
12435         * modules/mbsrtowcs-tests (Files): Likewise.
12436         * modules/memchr-tests (Files): Likewise.
12437         * modules/memcmp-tests (Files): Likewise.
12438         * modules/memmem-tests (Files): Likewise.
12439         * modules/memrchr-tests (Files): Likewise.
12440         * modules/mkdir-tests (Files): Likewise.
12441         * modules/mkfifo-tests (Files): Likewise.
12442         * modules/mkfifoat-tests (Files): Likewise.
12443         * modules/mknod-tests (Files): Likewise.
12444         * modules/nanosleep-tests (Files): Likewise.
12445         * modules/nl_langinfo-tests (Files): Likewise.
12446         * modules/obstack-printf-tests (Files): Likewise.
12447         * modules/open-tests (Files): Likewise.
12448         * modules/openat-tests (Files): Likewise.
12449         * modules/perror-tests (Files): Likewise.
12450         * modules/pipe2-tests (Files): Likewise.
12451         * modules/poll-tests (Files): Likewise.
12452         * modules/popen-tests (Files): Likewise.
12453         * modules/posix_spawn-tests (Files): Likewise.
12454         * modules/posix_spawnp-tests (Files): Likewise.
12455         * modules/pread-tests (Files): Likewise.
12456         * modules/printf-posix-tests (Files): Likewise.
12457         * modules/pty-tests (Files): Likewise.
12458         * modules/random_r-tests (Files): Likewise.
12459         * modules/rawmemchr-tests (Files): Likewise.
12460         * modules/readlink-tests (Files): Likewise.
12461         * modules/remove-tests (Files): Likewise.
12462         * modules/rename-tests (Files): Likewise.
12463         * modules/renameat-tests (Files): Likewise.
12464         * modules/rmdir-tests (Files): Likewise.
12465         * modules/round-tests (Files): Likewise.
12466         * modules/roundf-tests (Files): Likewise.
12467         * modules/roundl-tests (Files): Likewise.
12468         * modules/select-tests (Files): Likewise.
12469         * modules/setenv-tests (Files): Likewise.
12470         * modules/sigaction-tests (Files): Likewise.
12471         * modules/sleep-tests (Files): Likewise.
12472         * modules/snprintf-posix-tests (Files): Likewise.
12473         * modules/snprintf-tests (Files): Likewise.
12474         * modules/sprintf-posix-tests (Files): Likewise.
12475         * modules/stat-tests (Files): Likewise.
12476         * modules/strcasestr-tests (Files): Likewise.
12477         * modules/strchrnul-tests (Files): Likewise.
12478         * modules/strerror-tests (Files): Likewise.
12479         * modules/strsignal-tests (Files): Likewise.
12480         * modules/strstr-tests (Files): Likewise.
12481         * modules/strtod-tests (Files): Likewise.
12482         * modules/strverscmp-tests (Files): Likewise.
12483         * modules/symlink-tests (Files): Likewise.
12484         * modules/symlinkat-tests (Files): Likewise.
12485         * modules/times-tests (Files): Likewise.
12486         * modules/trunc-tests (Files): Likewise.
12487         * modules/truncf-tests (Files): Likewise.
12488         * modules/truncl-tests (Files): Likewise.
12489         * modules/tsearch-tests (Files): Likewise.
12490         * modules/uname-tests (Files): Likewise.
12491         * modules/unlink-tests (Files): Likewise.
12492         * modules/unsetenv-tests (Files): Likewise.
12493         * modules/usleep-tests (Files): Likewise.
12494         * modules/utimensat-tests (Files): Likewise.
12495         * modules/vasprintf-tests (Files): Likewise.
12496         * modules/vdprintf-posix-tests (Files): Likewise.
12497         * modules/vfprintf-posix-tests (Files): Likewise.
12498         * modules/vprintf-posix-tests (Files): Likewise.
12499         * modules/vsnprintf-posix-tests (Files): Likewise.
12500         * modules/vsnprintf-tests (Files): Likewise.
12501         * modules/vsprintf-posix-tests (Files): Likewise.
12502         * modules/wcrtomb-tests (Files): Likewise.
12503         * modules/wcsnrtombs-tests (Files): Likewise.
12504         * modules/wcsrtombs-tests (Files): Likewise.
12505         * modules/wcwidth-tests (Files): Likewise.
12506         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
12507         * tests/test-isinf.c (isinf): Likewise.
12508         * tests/test-isnan.c (isnan): Likewise.
12509         * tests/test-signbit.c (signbit): Likewise.
12510         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
12511         declaration, either as macro or with correct signature.
12512         (select): Ensure function under test is declared with correct
12513         signature in correct header.
12514         * tests/test-atexit.c (atexit): Likewise.
12515         * tests/test-btowc.c (btowc): Likewise.
12516         * tests/test-canonicalize-lgpl.c (realpath)
12517         (canonicalize_file_name): Likewise.
12518         * tests/test-ceilf1.c (ceilf): Likewise.
12519         * tests/test-ceill.c (ceill): Likewise.
12520         * tests/test-chown.c (chown): Likewise.
12521         * tests/test-dprintf-posix.c (dprintf): Likewise.
12522         * tests/test-dup2.c (dup2): Likewise.
12523         * tests/test-dup3.c (dup3): Likewise.
12524         * tests/test-duplocale.c (duplocale): Likewise.
12525         * tests/test-fchdir.c (fchdir): Likewise.
12526         * tests/test-fchownat.c (fchownat): Likewise.
12527         * tests/test-fcntl.c (fcntl): Likewise.
12528         * tests/test-fdopendir.c (fdopendir): Likewise.
12529         * tests/test-fflush.c (fflush): Likewise.
12530         * tests/test-flock.c (flock): Likewise.
12531         * tests/test-floorf1.c (floorf): Likewise.
12532         * tests/test-floorl.c (floorl): Likewise.
12533         * tests/test-fnmatch.c (fnmatch): Likewise.
12534         * tests/test-fopen.c (fopen): Likewise.
12535         * tests/test-fprintf-posix.c (fprintf): Likewise.
12536         * tests/test-freopen.c (freopen): Likewise.
12537         * tests/test-frexp.c (frexp): Likewise.
12538         * tests/test-frexpl.c (frexpl): Likewise.
12539         * tests/test-fseek.c (fseek): Likewise.
12540         * tests/test-fseeko.c (fseeko): Likewise.
12541         * tests/test-fstatat.c (fstatat): Likewise.
12542         * tests/test-fsync.c (fsync): Likewise.
12543         * tests/test-ftell.c (ftell): Likewise.
12544         * tests/test-ftello.c (ftello): Likewise.
12545         * tests/test-futimens.c (futimens): Likewise.
12546         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
12547         (gai_strerror): Likewise.
12548         * tests/test-getcwd.c (getcwd): Likewise.
12549         * tests/test-getdelim.c (getdelim): Likewise.
12550         * tests/test-getdtablesize.c (getdtablesize): Likewise.
12551         * tests/test-getgroups.c (getgroups): Likewise.
12552         * tests/test-gethostname.c (gethostname): Likewise.
12553         * tests/test-getline.c (getline): Likewise.
12554         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
12555         Likewise.
12556         * tests/test-gettimeofday.c (gettimeofday): Likewise.
12557         * tests/test-glob.c (glob, globfree): Likewise.
12558         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
12559         * tests/test-inet_ntop.c (inet_ntop): Likewise.
12560         * tests/test-inet_pton.c (inet_pton): Likewise.
12561         * tests/test-isblank.c (isblank): Likewise.
12562         * tests/test-lchown.c (lchown): Likewise.
12563         * tests/test-ldexpl.c (ldexpl): Likewise.
12564         * tests/test-link.c (link): Likewise.
12565         * tests/test-linkat.c (linkat): Likewise.
12566         * tests/test-lseek.c (lseek): Likewise.
12567         * tests/test-lstat.c (lstat): Likewise.
12568         * tests/test-mbrtowc.c (mbrtowc): Likewise.
12569         * tests/test-mbsinit.c (mbsinit): Likewise.
12570         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
12571         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
12572         * tests/test-memchr.c (memchr): Likewise.
12573         * tests/test-memcmp.c (memcmp): Likewise.
12574         * tests/test-memmem.c (memmem): Likewise.
12575         * tests/test-memrchr.c (memrchr): Likewise.
12576         * tests/test-mkdir.c (mkdir): Likewise.
12577         * tests/test-mkdirat.c (mkdirat): Likewise.
12578         * tests/test-mkfifo.c (mkfifo): Likewise.
12579         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
12580         * tests/test-mknod.c (mknod): Likewise.
12581         * tests/test-nanosleep.c (nanosleep): Likewise.
12582         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
12583         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
12584         Likewise.
12585         * tests/test-open.c (open): Likewise.
12586         * tests/test-openat.c (openat): Likewise.
12587         * tests/test-perror.c (perror): Likewise.
12588         * tests/test-pipe2.c (pipe2): Likewise.
12589         * tests/test-poll.c (poll): Likewise.
12590         * tests/test-popen.c (popen, pclose): Likewise.
12591         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
12592         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
12593         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
12594         (posix_spawn_file_actions_destroy)
12595         (posix_spawn_file_actions_addclose)
12596         (posix_spawn_file_actions_addopen)
12597         (posix_spawn_file_actions_adddup2): Likewise.
12598         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
12599         * tests/test-pread.c (pread): Likewise.
12600         * tests/test-printf-posix.c (printf): Likewise.
12601         * tests/test-pty.c (openpty, forkpty): Likewise.
12602         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
12603         (random_r): Likewise.
12604         * tests/test-rawmemchr.c (rawmemchr): Likewise.
12605         * tests/test-readlink.c (readlink): Likewise.
12606         * tests/test-remove.c (remove): Likewise.
12607         * tests/test-rename.c (rename): Likewise.
12608         * tests/test-renameat.c (renameat): Likewise.
12609         * tests/test-rmdir.c (rmdir): Likewise.
12610         * tests/test-round1.c (round): Likewise.
12611         * tests/test-roundf1.c (roundf): Likewise.
12612         * tests/test-roundl.c (roundl): Likewise.
12613         * tests/test-setenv.c (setenv): Likewise.
12614         * tests/test-sigaction.c (sigaction): Likewise.
12615         * tests/test-sleep.c (sleep): Likewise.
12616         * tests/test-snprintf.c (snprintf): Likewise.
12617         * tests/test-sprintf-posix.c (sprintf): Likewise.
12618         * tests/test-stat.c (stat): Likewise.
12619         * tests/test-stpncpy.c (stpncpy): Likewise.
12620         * tests/test-strcasestr.c (strcasestr): Likewise.
12621         * tests/test-strchrnul.c (strchrnul): Likewise.
12622         * tests/test-strerror.c (strerror): Likewise.
12623         * tests/test-strsignal.c (strsignal): Likewise.
12624         * tests/test-strstr.c (strstr): Likewise.
12625         * tests/test-strtod.c (strtod): Likewise.
12626         * tests/test-strverscmp.c (strverscmp): Likewise.
12627         * tests/test-symlink.c (symlink): Likewise.
12628         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
12629         * tests/test-times.c (times): Likewise.
12630         * tests/test-trunc1.c (trunc): Likewise.
12631         * tests/test-truncf1.c (truncf): Likewise.
12632         * tests/test-truncl.c (truncl): Likewise.
12633         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
12634         Likewise.
12635         * tests/test-uname.c (uname): Likewise.
12636         * tests/test-unlink.c (unlink): Likewise.
12637         * tests/test-unlinkat.c (unlinkat): Likewise.
12638         * tests/test-unsetenv.c (unsetenv): Likewise.
12639         * tests/test-usleep.c (usleep): Likewise.
12640         * tests/test-utimensat.c (utimensat): Likewise.
12641         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
12642         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
12643         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
12644         * tests/test-vprintf-posix.c (vprintf): Likewise.
12645         * tests/test-vsnprintf.c (vsnprintf): Likewise.
12646         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
12647         * tests/test-wcrtomb.c (wcrtomb): Likewise.
12648         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
12649         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
12650         * tests/test-wcwidth.c (wcwidth): Likewise.
12651
12652         build: pull in conditional headers during GNULIB_POSIXCHECK
12653         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
12654         definitions from any conditionally-included headers.
12655         * lib/stdlib.in.h (includes): Likewise.
12656         * lib/unistd.in.h (includes): Likewise.
12657
12658 2009-12-24  Bruno Haible  <bruno@clisp.org>
12659
12660         * tests/test-argv-iter.c: Include header file being tested immediately
12661         after config.h.
12662         * tests/test-base64.c: Likewise.
12663         * tests/test-flock.c: Likewise.
12664         * tests/test-fsync.c: Likewise.
12665         * tests/test-getdate.c: Likewise.
12666         * tests/test-getndelim2.c: Likewise.
12667         * tests/test-isfinite.c: Likewise.
12668         * tests/test-isinf.c: Likewise.
12669         * tests/test-strerror.c: Likewise.
12670         * tests/test-strsignal.c: Likewise.
12671
12672 2009-12-23  Eric Blake  <ebb9@byu.net>
12673
12674         unistd: work around cygwin bug
12675         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
12676         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
12677         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12678
12679 2009-12-23  Bruno Haible  <bruno@clisp.org>
12680
12681         localename: More tests.
12682         * tests/test-localename.c (SIZEOF): New macro.
12683         (categories): New variable.
12684         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
12685         test_locale_name_default): Add test w.r.t. thread locale.
12686         (test_locale_name_thread): New function.
12687         (main): Invoke it.
12688
12689         localename: Make aware of thread locale.
12690         * lib/localename.h (gl_locale_name_thread): New declaration.
12691         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
12692         behaviour with respect to thread locale.
12693         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
12694         <langinfo.h>, glthread/lock.h.
12695         (SIZE_BITS): New macro.
12696         (string_hash): New function.
12697         (struct hash_node): New type.
12698         (HASH_TABLE_SIZE): New macro.
12699         (struniq_hash_table, struniq_lock): New variables.
12700         (struniq): New function.
12701         (gl_locale_name_thread): New function.
12702         (gl_locale_name): Invoke it.
12703         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
12704         * modules/localename (Depends-on): Add lock.
12705         Reported by Mike Gran <spk121@yahoo.com>.
12706
12707 2009-12-23  Eric Blake  <ebb9@byu.net>
12708
12709         va-args: new module
12710         * modules/va-args: New file.
12711         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
12712         * MODULES.html.sh (Core language properties): Mention it.
12713
12714         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
12715         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
12716         named alias for __attribute__((__unused__)).
12717         * lib/chown.c: Update client.
12718         * lib/fchmodat.c: Likewise.
12719         * lib/fts.c: Likewise.
12720         * lib/getdate.y: Likewise.
12721         * lib/getgroups.c: Likewise.
12722         * lib/getopt.c: Likewise.
12723         * lib/getugroups.c: Likewise.
12724         * lib/mkdir.c: Likewise.
12725         * lib/mkfifo.c: Likewise.
12726         * lib/mkfifoat.c: Likewise.
12727         * lib/mknod.c: Likewise.
12728         * lib/mknodat.c: Likewise.
12729         * lib/readlink.c: Likewise.
12730         * lib/se-context.in.h: Likewise.
12731         * lib/se-selinux.in.h: Likewise.
12732         * lib/sockets.c: Likewise.
12733         * lib/symlink.c: Likewise.
12734         * lib/symlinkat.c: Likewise.
12735         * lib/unicodeio.c: Likewise.
12736         * lib/unistr.h: Likewise.
12737         * tests/test-areadlink.c: Likewise.
12738         * tests/test-areadlinkat.c: Likewise.
12739         * tests/test-filenamecat.c: Likewise.
12740         * tests/test-fseeko.c: Likewise.
12741         * tests/test-ftello.c: Likewise.
12742         * tests/test-getdate.c: Likewise.
12743         * tests/test-getgroups.c: Likewise.
12744         * tests/test-gethostname.c: Likewise.
12745         * tests/test-quotearg.c: Likewise.
12746         * tests/test-version-etc.c: Likewise.
12747         * tests/test-xalloc-die.c: Likewise.
12748         * tests/test-xfprintf-posix.c: Likewise.
12749         * tests/test-xprintf-posix.c: Likewise.
12750         * tests/test-xvasprintf.c: Likewise.
12751
12752         tests: avoid compiler warnings
12753         * tests/test-fcntl.c (main): Delete unused parameters.
12754         * tests/test-freopen-safer.c (main): Likewise.
12755         * tests/test-xalloc-die.c (main): Mark unused parameters.
12756         * tests/test-fseeko.c (main): Likewise.
12757         * tests/test-ftello.c (main): Likewise.
12758         * tests/test-nanosleep.c (main): Avoid declaration warning.
12759         * tests/test-sleep.c (main): Likewise.
12760         * tests/test-unsetenv.c (main): Silence warning about string
12761         literal.
12762         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12763
12764 2009-12-23  Bruno Haible  <bruno@clisp.org>
12765
12766         * tests/test-localename.c (test_locale_name): New function, extracted
12767         from main. Also test mixed situations.
12768         (test_locale_name_posix, test_locale_name_environ,
12769         test_locale_name_default): New functions.
12770         (main): Invoke them all.
12771         * modules/localename-tests (configure.ac): Test for newlocale.
12772
12773 2009-12-23  Bruno Haible  <bruno@clisp.org>
12774
12775         unistd: Ensure getcwd gets declared before being overridden.
12776         * lib/unistd.in.h: Conditionally include <io.h>.
12777
12778 2009-12-22  Bruno Haible  <bruno@clisp.org>
12779
12780         wchar: Diagnose broken combination of glibc and gcc versions and flags.
12781         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
12782         (gl_WCHAR_H): Invoke it.
12783         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
12784         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
12785         Reported by Karl Berry <karl@freefriends.org>.
12786
12787 2009-12-22  Eric Blake  <ebb9@byu.net>
12788
12789         math, unistd: avoid redundant includes
12790         * lib/math.in.h (isnan): No need to re-include <math.h>.
12791         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
12792
12793         getsubopt: work around cygwin bug
12794         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
12795         avoid conflicting with system getsubopt.
12796         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
12797         bug.
12798
12799         getopt: synchronize from glibc
12800         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
12801         parameter order.  Adjust all callers.
12802         (_getopt_internal_r, main): Adjust quoting in error messages.
12803         Drop considerations for outdated POSIX 1003.2 error message.
12804         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
12805         callers.
12806         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
12807
12808         test-getopt: test stderr behavior
12809         * modules/getopt-posix-tests (Depends-on): Add dup2.
12810         * tests/test-getopt.c (ASSERT): Avoid stderr.
12811         (main): Move stderr to a temporary file.
12812         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
12813         Instead, add parameter to inform caller if output occurred.
12814         (test_getopt): Adjust all existing tests to expect silence, and
12815         add new tests of leading ":".
12816         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12817         glibc shortcomings with leading "-:" or "+:" in optstring.
12818         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12819         Likewise.
12820         * doc/posix-functions/getopt.texi (getopt): Likewise.
12821
12822         test-getopt: enhance test
12823         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
12824         supports optind=0.
12825         * tests/test-getopt.c (OPTIND_MIN): Move...
12826         * tests/test-getopt.h (OPTIND_MIN): ...here.
12827         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
12828         Require that optind=0 works, since modern BSD supports it in
12829         addition to optreset, and since coreutils expects it.
12830         (test_getopt_long_only): New test.
12831         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12832         glibc shortcomings with 'W;', and enforcement of optind=0.
12833         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12834         Likewise.
12835
12836 2009-12-21  Bruno Haible  <bruno@clisp.org>
12837
12838         localename: Improvements for MacOS X and Cygwin.
12839         * lib/localename.h (gl_locale_name_environ): New declaration.
12840         * lib/localename.c (gl_locale_name_environ): New function, extracted from
12841         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
12842         (gl_locale_name_posix): Invoke it.
12843         (gl_locale_name_default): Add comments. Use Windows native API also on
12844         Cygwin.
12845
12846 2009-12-21  Bruno Haible  <bruno@clisp.org>
12847
12848         Update list of Win32 locale ids.
12849         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
12850         (LANG_SAMI): Renamed from LANG_SAAMI.
12851         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
12852         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
12853         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
12854         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
12855         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
12856         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
12857         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
12858         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
12859         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
12860         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
12861         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
12862         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
12863         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
12864         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
12865         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
12866         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
12867         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
12868         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
12869         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
12870         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
12871         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
12872         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
12873         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
12874         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
12875         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
12876         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
12877         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
12878         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
12879         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
12880         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
12881         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
12882         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
12883         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
12884         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
12885         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
12886         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
12887         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
12888         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
12889         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
12890         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
12891         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
12892         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
12893         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
12894         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
12895         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
12896         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
12897         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
12898         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
12899         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
12900         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
12901         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
12902         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
12903         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
12904         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
12905         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
12906         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
12907         Add more languages and countries for Sami, Sorbian. Add more countries
12908         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
12909         for Pashto. Change country for Syriac, Tswana.
12910
12911 2009-12-21  Eric Blake  <ebb9@byu.net>
12912
12913         test-utimens: avoid spurious failure
12914         * tests/test-chown.h (nap): Factor...
12915         * tests/nap.h: ...into new file.
12916         * tests/test-lchown.h (nap): Avoid duplication.
12917         * tests/test-utimens-common.h (nap): Use shared implementation,
12918         necessary on file systems with 1-second resolution.
12919         * modules/chown-tests (Files): Include new file.
12920         * modules/fdutimensat-tests (Files): Likewise.
12921         * modules/futimens-tests (Files): Likewise.
12922         * modules/lchown-tests (Files): Likewise.
12923         * modules/openat-tests (Files): Likewise.
12924         * modules/utimens-tests (Files): Likewise.
12925         * modules/utimensat-tests (Files): Likewise.
12926
12927 2009-12-19  Eric Blake  <ebb9@byu.net>
12928
12929         futimens, utimensat: work around Linux bug
12930         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
12931         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12932         * lib/utimensat.c (rpl_utimensat): Work around it.
12933         * lib/futimens.c (rpl_futimens): Adjust comment.
12934
12935         utimens: work around Linux ctime bug
12936         * lib/utimens.c (detect_ctime_bug): New helper function.
12937         (update_timespec): Differentiate between workaround needed for
12938         this bug vs. what is needed for systems that lack utimensat.
12939         (fdutimens, lutimens): Work around bug.
12940
12941         utimens: check for ctime update
12942         * tests/test-utimens-common.h (check_ctime): Define.
12943         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
12944         * tests/test-futimens.h (test_futimens): Likewise.
12945         * tests/test-lutimens.h (test_lutimens): Likewise.
12946         * doc/posix-functions/futimens.texi (futimens): Document the bug.
12947         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12948
12949 2009-12-19  Bruno Haible  <bruno@clisp.org>
12950
12951         dprintf-posix: Check against memory leak fixed on 2009-12-15.
12952         * tests/test-dprintf-posix2.sh: New file.
12953         * tests/test-dprintf-posix2.c: New file.
12954         * modules/dprintf-posix-tests (Files): Add them.
12955         (configure.ac): Check for getrlimit and setrlimit.
12956         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
12957
12958 2009-12-19  Bruno Haible  <bruno@clisp.org>
12959
12960         fprintf-posix: Check against memory leak fixed on 2009-12-15.
12961         * tests/test-fprintf-posix3.sh: New file.
12962         * tests/test-fprintf-posix3.c: New file.
12963         * modules/fprintf-posix-tests (Files): Add them.
12964         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
12965
12966 2009-12-19  Eric Blake  <ebb9@byu.net>
12967
12968         dirfd: fix prototype
12969         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
12970         * lib/dirfd.c (dirfd): Likewise.
12971
12972         canonicalize: reduce memory usage
12973         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
12974         allocation to size.
12975         Reported by Solar Designer <solar@openwall.com>.
12976
12977 2009-12-19  Bruno Haible  <bruno@clisp.org>
12978
12979         New module attribute 'Applicability'.
12980         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
12981         * gnulib-tool: New option --extract-applicability.
12982         (func_usage): Document it.
12983         (sed_extract_prog): Recognize it.
12984         (func_get_applicability): New function.
12985         (func_import): Generalize handling of 'link-warning' module.
12986         * modules/link-warning (Applicability): New section.
12987         * modules/arg-nonnull (Applicability): New section.
12988         Repoted by Simon Josefsson <simon@josefsson.org>.
12989
12990 2009-12-19  Bruno Haible  <bruno@clisp.org>
12991
12992         fflush: tweak
12993         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
12994         * lib/fseeko.c (rpl_fseeko): Likewise.
12995
12996 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
12997
12998         * lib/gl_list.h: Fix typo in comment.
12999
13000 2009-12-16  Eric Blake  <ebb9@byu.net>
13001
13002         fcntl: use to simplify other modules
13003         * modules/cloexec (Depends-on): Add fcntl.
13004         * modules/fchdir (Depends-on): Likewise.
13005         * modules/fd-safer-flag (Depends-on): Likewise.
13006         * modules/unistd-safer (Depends-on): Likewise.
13007         * modules/dup3 (configure.ac): Set module indicator.
13008         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
13009         missing.
13010         * lib/fchdir.c (_gl_register_dup): Fix comment.
13011         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
13012         * lib/dup-safer.c (dup_safer): Likewise.
13013         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
13014         * lib/dup3.c (dup3): Likewise.
13015         * tests/test-fchdir.c (main): Enhance test.
13016         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
13017
13018         fcntl: port portions of fcntl to mingw
13019         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
13020         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
13021         replacement for mingw.
13022         * modules/fcntl (Description): Update.
13023         (Depends-on): Add dup2.
13024         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
13025         * modules/fcntl-h (Makefile.am): Substitute it.
13026         * lib/fcntl.in.h (fcntl): Update declaration.
13027         (F_DUPFD, F_GETFD): New macros, when needed.
13028         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
13029         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
13030         * tests/test-fcntl.c (check_flags, main): Enhance test for items
13031         we now guarantee.
13032
13033         fcntl: work around cygwin bug in F_DUPFD
13034         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
13035         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
13036         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
13037         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
13038         * doc/posix-functions/fcntl.texi (fcntl): Document it.
13039
13040         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
13041         * modules/fcntl (Files): List new files.
13042         (configure.ac): Run a test.
13043         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
13044         * lib/fcntl.c (rpl_fcntl): Likewise.
13045         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
13046         (gl_FCNTL_H): Always replace fcntl.h.
13047         * modules/fcntl-h (Makefile.am): Substitute witnesses.
13048         * lib/fcntl.in.h (fcntl): Declare replacement.
13049         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
13050         needed, plus a witness.
13051         * doc/posix-functions/fcntl.texi (fcntl): Document this.
13052         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
13053         * tests/test-fcntl.c: New file.
13054         * modules/fcntl-tests: Likewise.
13055
13056         binary-io: avoid potential compilation warning
13057         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
13058         directives.
13059
13060         fflush: avoid compilation error on NetBSD
13061         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
13062         between off_t and fpos_t, since the latter is sometimes a struct.
13063         * lib/fseeko.c (rpl_fseeko): Likewise.
13064         Reported by Alexander Nasonov <alnsn@yandex.ru>.
13065
13066 2009-12-15  Eric Blake  <ebb9@byu.net>
13067
13068         fcntl-h, stdio, sys_ioctl: fix declarations
13069         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
13070         function must not take arguments.
13071         * lib/sys_ioctl.in.h (ioctl): Likewise.
13072         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
13073         (open): Add a link warning.
13074
13075 2009-12-15  Jim Meyering  <meyering@redhat.com>
13076
13077         areadlink, areadlink-with-size: relax license to LGPLv2+
13078         * modules/areadlink (License): Relax to LGPLv2+.
13079         * modules/areadlink-with-size (License): Likewise.
13080
13081 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
13082             Bruno Haible  <bruno@clisp.org>
13083
13084         *printf: Fix memory leak.
13085         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
13086         * lib/vfprintf.c (vfprintf): Likewise.
13087         * lib/dprintf.c (dprintf): Likewise.
13088         * lib/vdprintf.c (vdprintf): Likewise.
13089
13090 2009-12-14  Eric Blake  <ebb9@byu.net>
13091
13092         accept4: adjust module dependencies
13093         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
13094
13095         utimens: one more try at avoiding compiler warning
13096         * lib/utimens.c (lutimens): Lower scope of result.
13097
13098 2009-12-13  Bruno Haible  <bruno@clisp.org>
13099
13100         Move the malloc checking from module 'list' to new module 'xlist'.
13101         * modules/xlist: New file.
13102         * lib/gl_xlist.h: New file.
13103         * lib/gl_xlist.c: New file.
13104         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
13105         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
13106         gl_list_add_last, gl_list_add_before, gl_list_add_after,
13107         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
13108         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
13109         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
13110         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
13111         gl_sortedlist_nx_add): New declarations.
13112         (struct gl_list_implementation): Rename and change methods accordingly.
13113         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
13114         (gl_list_nx_create): Renamed from gl_list_create.
13115         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13116         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13117         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13118         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13119         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13120         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13121         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13122         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13123         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
13124         gl_list_create_empty.
13125         (gl_list_nx_create): Renamed from gl_list_create.
13126         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13127         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13128         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13129         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13130         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13131         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13132         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13133         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13134         * lib/gl_array_list.c: Don't include xalloc.h.
13135         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
13136         NULL upon out-of-memory.
13137         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
13138         out-of-memory.
13139         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
13140         Change return type to 'int'.
13141         (gl_array_nx_set_at): Renamed from gl_array_set_at.
13142         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13143         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
13144         upon out-of-memory.
13145         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
13146         upon out-of-memory.
13147         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
13148         upon out-of-memory.
13149         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
13150         upon out-of-memory.
13151         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
13152         out-of-memory.
13153         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
13154         Update.
13155         (gl_array_list_implementation): Update.
13156         * lib/gl_carray_list.c: Don't include xalloc.h.
13157         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
13158         Return NULL upon out-of-memory.
13159         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
13160         out-of-memory.
13161         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
13162         Change return type to 'int'.
13163         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
13164         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13165         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
13166         upon out-of-memory.
13167         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
13168         upon out-of-memory.
13169         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
13170         out-of-memory.
13171         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
13172         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
13173         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
13174         Update.
13175         (gl_carray_list_implementation): Update.
13176         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
13177         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
13178         gl_linked_create_empty. Return NULL upon out-of-memory.
13179         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
13180         out-of-memory.
13181         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
13182         Change return type to 'int'. Return -1 upon out-of-memory.
13183         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
13184         out-of-memory.
13185         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
13186         upon out-of-memory.
13187         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
13188         upon out-of-memory.
13189         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
13190         NULL upon out-of-memory.
13191         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
13192         upon out-of-memory.
13193         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
13194         out-of-memory.
13195         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
13196         Update.
13197         * lib/gl_linked_list.c: Don't include xalloc.h.
13198         (gl_linked_list_implementation): Update.
13199         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
13200         (add_to_bucket): Change return type to 'int'.
13201         (gl_linkedhash_list_implementation): Update.
13202         * lib/gl_anytree_list1.h (free_subtree): New function.
13203         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
13204         gl_tree_create_empty. Return NULL upon out-of-memory.
13205         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
13206         Change return type to 'int'. Return -1 upon out-of-memory.
13207         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
13208         out-of-memory.
13209         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
13210         (gl_tree_remove_node): New function, moved here from
13211         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
13212         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
13213         Update.
13214         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
13215         malloc, not xmalloc. Return NULL upon out-of-memory.
13216         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13217         out-of-memory.
13218         (gl_tree_remove_node_from_tree): New function, extracted from
13219         gl_tree_remove_node.
13220         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13221         upon out-of-memory.
13222         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13223         out-of-memory.
13224         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13225         upon out-of-memory.
13226         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13227         upon out-of-memory.
13228         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13229         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
13230         not xmalloc. Return NULL upon out-of-memory.
13231         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13232         out-of-memory.
13233         (gl_tree_remove_node_from_tree): New function, extracted from
13234         gl_tree_remove_node.
13235         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13236         upon out-of-memory.
13237         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13238         out-of-memory.
13239         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13240         upon out-of-memory.
13241         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13242         upon out-of-memory.
13243         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13244         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
13245         gl_anytree_list1.h before gl_anyavltree_list2.h.
13246         (gl_avltree_list_implementation): Update.
13247         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
13248         gl_anytree_list1.h before gl_anyavltree_list2.h.
13249         (gl_rbtree_list_implementation): Update.
13250         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
13251         Change return type to 'int'. Return -1 upon out-of-memory. Use
13252         __builtin_expect.
13253         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
13254         (gl_avltreehash_list_implementation): Update.
13255         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
13256         (gl_rbtreehash_list_implementation): Update.
13257         * modules/array-list (Depends-on): Remove xalloc.
13258         * modules/carray-list (Depends-on): Likewise.
13259         * modules/linked-list (Depends-on): Likewise.
13260         * modules/linkedhash-list (Depends-on): Likewise.
13261         * modules/avltree-list (Depends-on): Likewise.
13262         * modules/rbtree-list (Depends-on): Likewise.
13263         * modules/avltreehash-list (Depends-on): Likewise.
13264         * modules/rbtreehash-list (Depends-on): Likewise.
13265
13266         * modules/xsublist: New file.
13267         * lib/gl_xsublist.h: New file.
13268         * lib/gl_xsublist.c: New file.
13269         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
13270         (gl_sublist_nx_create): New declaration.
13271         * lib/gl_sublist.c: Don't include xalloc.h.
13272         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
13273         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
13274         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
13275         Change return type to 'int'. Return -1 upon out-of-memory.
13276         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
13277         upon out-of-memory.
13278         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
13279         NULL upon out-of-memory.
13280         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
13281         upon out-of-memory.
13282         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
13283         NULL upon out-of-memory.
13284         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
13285         NULL upon out-of-memory.
13286         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
13287         upon out-of-memory.
13288         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
13289         (gl_sublist_list_implementation): Update.
13290         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
13291         upon out-of-memory.
13292         * modules/sublist (Depends-on): Remove xalloc.
13293
13294         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
13295         * tests/test-carray_list.c: Likewise.
13296         * tests/test-linked_list.c: Likewise.
13297         * tests/test-linkedhash_list.c: Likewise.
13298         * tests/test-avltree_list.c: Likewise.
13299         * tests/test-rbtree_list.c: Likewise.
13300         * tests/test-avltreehash_list.c: Likewise.
13301         * tests/test-rbtreehash_list.c: Likewise.
13302         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
13303         * modules/carray-list-tests (Makefile.am): Likewise.
13304         * modules/linked-list-tests (Makefile.am): Likewise.
13305         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13306         * modules/avltree-list-tests (Makefile.am): Likewise.
13307         * modules/rbtree-list-tests (Makefile.am): Likewise.
13308         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13309         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13310
13311         * NEWS: Mention the changes.
13312
13313         * lib/clean-temp.c: Include gl_xlist.h.
13314         * modules/clean-temp (Depends-on): Add xlist.
13315
13316         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
13317         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
13318
13319         * tests/test-array_oset.c: Include gl_xlist.h.
13320         * modules/array-oset-tests (Depends-on): Add xlist.
13321
13322         Reported by José E. Marchesi <jemarch@gnu.org>.
13323
13324 2009-12-13  Bruno Haible  <bruno@clisp.org>
13325
13326         Move the malloc checking from module 'oset' to new module 'xoset'.
13327         * modules/xoset: New file.
13328         * lib/gl_xoset.h: New file.
13329         * lib/gl_xoset.c: New file.
13330         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
13331         declarations.
13332         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
13333         (struct gl_oset_implementation): Rename and change methods accordingly.
13334         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
13335         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13336         'int'. Mark as __warn_unused_result__.
13337         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
13338         gl_oset_create_empty.
13339         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13340         'int'.
13341         * lib/gl_array_oset.c: Don't include xalloc.h.
13342         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
13343         malloc, not xmalloc.
13344         (grow): Change return type to 'int'. Don't call xalloc_die.
13345         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
13346         to 'int'.
13347         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
13348         'int'.
13349         (gl_array_oset_implementation): Update.
13350         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
13351         gl_tree_create_empty.
13352         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
13353         'int'.
13354         * lib/gl_avltree_oset.c: Don't include xalloc.h.
13355         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13356         xmalloc.
13357         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13358         not xmalloc.
13359         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13360         xmalloc.
13361         (gl_avltree_oset_implementation): Update.
13362         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
13363         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13364         xmalloc.
13365         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13366         not xmalloc.
13367         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13368         xmalloc.
13369         (gl_rbtree_oset_implementation): Update.
13370         * modules/array-oset (Depends-on): Remove xalloc.
13371         * modules/avltree-oset (Depends-on): Likewise.
13372         * modules/rbtree-oset (Depends-on): Likewise.
13373         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
13374         * tests/test-avltree_oset.c: Likewise.
13375         * tests/test-rbtree_oset.c: Likewise.
13376         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
13377         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
13378         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13379         * NEWS: Mention the change.
13380
13381 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
13382
13383         maint.mk: allow a project to override release-prep commands
13384         * top/maint.mk (alpha, beta, stable): Move release-preparatory
13385         commands into a new rule.
13386         (release-prep): New rule.
13387         (release-prep-hook): New overridable variable.
13388
13389 2009-12-13  Bruno Haible  <bruno@clisp.org>
13390
13391         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
13392
13393 2009-12-13  Jim Meyering  <meyering@redhat.com>
13394
13395         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
13396         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
13397
13398 2009-12-12  Bruno Haible  <bruno@clisp.org>
13399
13400         duplocale: Tweak.
13401         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
13402
13403 2009-12-12  Karl Berry  <karl@gnu.org>
13404
13405         * config/srclist.txt (strtoll.c): tab changes, no more sync.
13406
13407 2009-12-12  Bruno Haible  <bruno@clisp.org>
13408
13409         * m4/po.m4: Undo incorrect untabification.
13410
13411 2009-12-12  Bruno Haible  <bruno@clisp.org>
13412
13413         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
13414         * modules/c-strtod (Depends-on): Add locale.
13415         * modules/c-strtold (Depends-on): Likewise.
13416
13417 2009-12-12  Bruno Haible  <bruno@clisp.org>
13418
13419         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
13420
13421 2009-12-11  Eric Blake  <ebb9@byu.net>
13422
13423         setenv: relax requirement in light of POSIX ruling
13424         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
13425         not NULL.
13426         * tests/test-setenv.c (main): Relax test.
13427         * tests/test-unsetenv.c (main): Likewise.
13428         * doc/posix-functions/setenv.texi (setenv): Document this.
13429         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13430
13431 2009-12-11  Bruno Haible  <bruno@clisp.org>
13432
13433         New module 'fd-safer-flag'.
13434         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
13435         * lib/dup-safer.c (dup_safer_flag): Remove function.
13436         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
13437         * lib/fd-safer.c (fd_safer_flag): Remove function.
13438         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
13439         * modules/cloexec (configure.ac): Drop indicator macro.
13440         * modules/fd-safer-flag: New file.
13441         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
13442         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
13443         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
13444
13445 2009-12-11  Bruno Haible  <bruno@clisp.org>
13446
13447         Tests for module 'nl_langinfo'.
13448         * modules/nl_langinfo-tests: New file.
13449         * tests/test-nl_langinfo.sh: New file.
13450         * tests/test-nl_langinfo.c: New file.
13451
13452         New module 'nl_langinfo'.
13453         * lib/nl_langinfo.c: New file.
13454         * m4/nl_langinfo.m4: New file.
13455         * modules/nl_langinfo: New file.
13456         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
13457
13458 2009-12-11  Bruno Haible  <bruno@clisp.org>
13459
13460         Tests for module 'langinfo'.
13461         * modules/langinfo-tests: New file.
13462         * tests/test-langinfo.c: New file.
13463
13464         New module 'langinfo'.
13465         * lib/langinfo.in.h: New file.
13466         * m4/langinfo_h.m4: New file.
13467         * modules/langinfo: New file.
13468         * doc/posix-headers/langinfo.texi: Mention the new module.
13469
13470 2009-12-11  Bruno Haible  <bruno@clisp.org>
13471
13472         * lib/config.charset: Untabify.
13473
13474 2009-12-11  Bruno Haible  <bruno@clisp.org>
13475
13476         * modules/unistd-safer (configure.ac): Drop indicator macro.
13477
13478 2009-12-11  Bruno Haible  <bruno@clisp.org>
13479
13480         Move pipe2-safer code to its own file.
13481         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
13482         * lib/pipe-safer.c (pipe2_safer): Remove function.
13483         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
13484         (Makefile.am): Add it to lib_SOURCES.
13485
13486 2009-12-10  Bruno Haible  <bruno@clisp.org>
13487
13488         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
13489
13490 2009-12-10  Bruno Haible  <bruno@clisp.org>
13491
13492         Declare which arguments expect non-NULL values, for GCC and clang.
13493         * build-aux/arg-nonnull.h: New file.
13494         * modules/arg-nonnull: New file.
13495         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
13496         (inet_ntop, inet_pton): Use it.
13497         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
13498         (closedir, dirfd, opendir, scandir, alphasort): Use it.
13499         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
13500         (open, openat): Use it.
13501         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
13502         (fnmatch): Use it.
13503         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
13504         (getopt, getopt_long, getopt_long_only): Use it.
13505         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
13506         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
13507         Use it.
13508         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
13509         (iconv_open): Use it.
13510         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
13511         (strtoimax, strtoumax): Use it.
13512         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
13513         (duplocale): Use it.
13514         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
13515         (frexp, frexpl): Use it.
13516         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
13517         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
13518         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
13519         (tsearch, tfind, tdelete, twalk): Use it.
13520         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
13521         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
13522         sigpending): Use it.
13523         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
13524         (posix_spawn, posix_spawnp, posix_spawnattr_init,
13525         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
13526         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
13527         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
13528         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
13529         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
13530         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
13531         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
13532         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
13533         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
13534         Use it.
13535         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
13536         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
13537         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
13538         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
13539         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
13540         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
13541         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
13542         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
13543         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
13544         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
13545         strtoull, unsetenv): Use it.
13546         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
13547         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
13548         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
13549         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
13550         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
13551         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
13552         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
13553         (strcasecmp, strncasecmp): Use it.
13554         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
13555         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
13556         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
13557         rpl_setsockopt): Use it.
13558         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
13559         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
13560         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
13561         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
13562         (gettimeofday): Use it.
13563         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
13564         (times): Use it.
13565         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
13566         (uname): Use it.
13567         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
13568         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
13569         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
13570         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
13571         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
13572         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
13573         unlinkat, write): Use it.
13574         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
13575         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
13576         * lib/argv-iter.h: Include arg-nonnull.h.
13577         (_ATTRIBUTE_NONNULL_): Remove macro.
13578         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
13579         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
13580         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
13581         optimization.
13582         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
13583         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
13584         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
13585         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
13586         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
13587         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
13588         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
13589         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
13590         * modules/arpa_inet (Depends-on): Add arg-nonnull.
13591         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
13592         * modules/dirent (Depends-on): Add arg-nonnull.
13593         (Makefile.am): Insert arg-nonnull.h into dirent.h.
13594         * modules/fcntl-h (Depends-on): Add arg-nonnull.
13595         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
13596         * modules/fnmatch (Depends-on): Add arg-nonnull.
13597         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
13598         * modules/getopt-posix (Depends-on): Add arg-nonnull.
13599         (Makefile.am): Insert arg-nonnull.h into getopt.h.
13600         * modules/glob (Depends-on): Add arg-nonnull.
13601         (Makefile.am): Insert arg-nonnull.h into glob.h.
13602         * modules/iconv_open (Depends-on): Add arg-nonnull.
13603         (Makefile.am): Insert arg-nonnull.h into iconv.h.
13604         * modules/inttypes (Depends-on): Add arg-nonnull.
13605         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
13606         * modules/locale (Depends-on): Add arg-nonnull.
13607         (Makefile.am): Insert arg-nonnull.h into locale.h.
13608         * modules/math (Depends-on): Add arg-nonnull.
13609         (Makefile.am): Insert arg-nonnull.h into math.h.
13610         * modules/netdb (Depends-on): Add arg-nonnull.
13611         (Makefile.am): Insert arg-nonnull.h into netdb.h.
13612         * modules/search (Depends-on): Add arg-nonnull.
13613         (Makefile.am): Insert arg-nonnull.h into search.h.
13614         * modules/signal (Depends-on): Add arg-nonnull.
13615         (Makefile.am): Insert arg-nonnull.h into signal.h.
13616         * modules/spawn (Depends-on): Add arg-nonnull.
13617         (Makefile.am): Insert arg-nonnull.h into spawn.h.
13618         * modules/stdio (Depends-on): Add arg-nonnull.
13619         (Makefile.am): Insert arg-nonnull.h into stdio.h.
13620         * modules/stdlib (Depends-on): Add arg-nonnull.
13621         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
13622         * modules/string (Depends-on): Add arg-nonnull.
13623         (Makefile.am): Insert arg-nonnull.h into string.h.
13624         * modules/strings (Depends-on): Add arg-nonnull.
13625         (Makefile.am): Insert arg-nonnull.h into strings.h.
13626         * modules/sys_socket (Depends-on): Add arg-nonnull.
13627         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
13628         * modules/sys_stat (Depends-on): Add arg-nonnull.
13629         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
13630         * modules/sys_time (Depends-on): Add arg-nonnull.
13631         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
13632         * modules/sys_times (Depends-on): Add arg-nonnull.
13633         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
13634         * modules/sys_utsname (Depends-on): Add arg-nonnull.
13635         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
13636         * modules/time (Depends-on): Add arg-nonnull.
13637         (Makefile.am): Insert arg-nonnull.h into time.h.
13638         * modules/unistd (Depends-on): Add arg-nonnull.
13639         (Makefile.am): Insert arg-nonnull.h into unistd.h.
13640         * modules/wchar (Depends-on): Add arg-nonnull.
13641         (Makefile.am): Insert arg-nonnull.h into wchar.h.
13642         * modules/argv-iter (Depends-on): Add arg-nonnull.
13643         * tests/test-canonicalize.c (null_ptr): New function.
13644         (main): Use it.
13645         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
13646         (main): Use it.
13647         * tests/test-memmem.c (null_ptr): New function.
13648         (main): Use it.
13649         Reported by Jim Meyering.
13650
13651 2009-12-10  Bruno Haible  <bruno@clisp.org>
13652
13653         Use spaces for indentation, not tabs.
13654         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13655         * m4/*.m4: Untabify.
13656         * build-aux/*.h: Untabify.
13657         * tests/**/*.[hc]: Untabify.
13658         * README: New section "Indent with spaces, not TABs", based on
13659         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
13660         * NEWS: Mention the change.
13661
13662 2009-12-10  Bruno Haible  <bruno@clisp.org>
13663
13664         pty test: Fix link error.
13665         * modules/pty-tests (Makefile.am): Add the default LDADD value to
13666         test_pty_LDADD.
13667
13668 2009-12-07  Simon Josefsson  <simon@josefsson.org>
13669
13670         * modules/pty: New file.
13671         * modules/pty-tests: New file.
13672         * m4/pty.m4: New file.
13673         * tests/test-pty.c: New file.
13674         * doc/glibc-headers/pty.texi: Modified.
13675         * doc/glibc-functions/forkpty.texi: Modified.
13676         * doc/glibc-functions/openpty.texi: Modified.
13677
13678 2009-12-10  Bruno Haible  <bruno@clisp.org>
13679
13680         Avoid syntax error in C++ mode.
13681         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
13682
13683 2009-12-10  Bruno Haible  <bruno@clisp.org>
13684
13685         Use sed with option -e.
13686         * gnulib-tool (func_version, func_emit_copyright_notice,
13687         func_emit_initmacro_end, func_import, func_create_testdir): Pass
13688         option -e to sed.
13689         * modules/link-warning (Makefile.am): Likewise.
13690
13691 2009-12-10  Jim Meyering  <meyering@redhat.com>
13692
13693         mgetgroups: do not write bytes beyond end of malloc'd buffer
13694         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
13695         username, we call getgroups with a one-element-shorter buffer,
13696         but still told it the length was original, max_n_groups.
13697
13698 2009-12-09  Eric Blake  <ebb9@byu.net>
13699
13700         cloexec: relax license
13701         * modules/cloexec (Maintainer): Add myself.
13702         (License): Use LGPL, not GPL.
13703
13704         link-warning: optimize generation
13705         * modules/link-warning (Makefile.am): Reduce process usage.
13706
13707 2009-12-09  Bruno Haible  <bruno@clisp.org>
13708
13709         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
13710         workaround was added on 2009-11-17.
13711
13712 2009-12-09  Jim Meyering  <meyering@redhat.com>
13713             Bruno Haible  <bruno@clisp.org>
13714
13715         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
13716         * modules/link-warning (Makefile.am): Make the comment-removing sed
13717         command more robust in the face of bootstrap-prepended comment lines.
13718
13719 2009-12-09  Bruno Haible  <bruno@clisp.org>
13720
13721         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
13722         most one group.
13723
13724 2009-12-09  Simon Josefsson <simon@josefsson.org>
13725             Bruno Haible  <bruno@clisp.org>
13726
13727         * build-aux/link-warning.h: Add copyright notice.
13728         * modules/link-warning (Makefile.am): Generate link-warning.h from
13729         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
13730         * NEWS: Mention change in link-warning module.
13731         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
13732         * modules/dirent (Makefile.am): Add dependency to dirent.h.
13733         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
13734         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
13735         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
13736         * modules/math (Makefile.am): Add dependency to math.h.
13737         * modules/search (Makefile.am): Add dependency to search.h.
13738         * modules/signal (Makefile.am): Add dependency to signal.h.
13739         * modules/spawn (Makefile.am): Add dependency to spawn.h.
13740         * modules/stdio (Makefile.am): Add dependency to stdio.h.
13741         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
13742         * modules/string (Makefile.am): Add dependency to string.h.
13743         * modules/strings (Makefile.am): Add dependency to strings.h.
13744         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
13745         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
13746         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
13747         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
13748         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
13749         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
13750         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
13751         * modules/unistd (Makefile.am): Add dependency to unistd.h.
13752         * modules/wchar (Makefile.am): Add dependency to wchar.h.
13753
13754 2009-12-09  Bruno Haible  <bruno@clisp.org>
13755
13756         fchdir: Optimize away rpl_fstat when possible.
13757         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
13758         REPLACE_OPEN_DIRECTORY.
13759         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
13760
13761 2009-12-09  Bruno Haible  <bruno@clisp.org>
13762
13763         * lib/fchdir.c: Update comment.
13764
13765 2009-12-09  Bruno Haible  <bruno@clisp.org>
13766
13767         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
13768
13769 2009-12-08  Eric Blake  <ebb9@byu.net>
13770
13771         fchdir: avoid memory leak on re-registration.
13772         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
13773
13774 2009-12-08  Jim Meyering  <meyering@redhat.com>
13775
13776         init.sh: avoid Solaris 10 /bin/sh portability problem
13777         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
13778         sourced script:
13779           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
13780           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
13781           bar
13782         tests/init.sh relied on that, accepting a --set-path=DIR argument,
13783         and two tests used that idiom.
13784         * tests/init.sh: Update suggested usage comments.
13785         (path_prepend_): New function, to be used in place
13786         of the --src-path=DIR option.
13787         (setup_): Move PATH-prepending code into path_prepend_.
13788         * tests/test-pread.sh: Adapt to new usage.
13789         * tests/test-xalloc-die.sh: Likewise.
13790
13791 2009-12-08  Simon Josefsson  <simon@josefsson.org>
13792
13793         * doc/gnulib.texi (Glibc pty.h): Add.
13794         * doc/glibc-functions/forkpty.texi: Add.
13795         * doc/glibc-functions/openpty.texi: Add.
13796         Suggested by Bruno Haible.
13797
13798 2009-12-08  Eric Blake  <ebb9@byu.net>
13799
13800         fchdir: fix logic bugs
13801         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
13802         * tests/test-fchdir.c (main): Enhance test.
13803         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
13804         is in use.
13805
13806         dup2: fix logic bugs
13807         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
13808         REPLACE_DUP2 to decide when rpl_dup2 is needed.
13809         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
13810         exists.
13811         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
13812
13813 2009-12-07  Eric Blake  <ebb9@byu.net>
13814
13815         unlink: fix m4 detection
13816         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
13817
13818         unistd-safer: add unit test
13819         * modules/unistd-safer-tests: New file.
13820         * tests/test-dup-safer.c: Likewise.
13821         * tests/test-cloexec.c (setmode): Avoid compiler warning.
13822         * tests/test-dup2.c (setmode): Likewise.
13823         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
13824
13825         cloexec: preserve text vs. binary across dup_cloexec
13826         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
13827         mode.
13828         * modules/dup2-tests (Depends-on): Add binary-io.
13829         * modules/cloexec-tests (Depends-on): Likewise.
13830         * tests/test-dup2.c (setmode, is_mode): New helpers.
13831         (main): Add tests that translation mode is preserved.
13832         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
13833         Reported by Bruno Haible.
13834
13835         mgetgroups: reduce duplicate listings
13836         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
13837         resulting array.
13838         * tests/test-chown.h (test_chown): Simplify client.
13839         * tests/test-lchown.h (test_lchown): Likewise.
13840
13841 2009-12-06  Bruno Haible  <bruno@clisp.org>
13842
13843         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
13844         value.
13845
13846 2009-12-06  Bruno Haible  <bruno@clisp.org>
13847
13848         * lib/progname.c: Include stdio.h, stdlib.h.
13849         (set_program_name): Reject a NULL argument.
13850
13851 2009-12-05  Eric Blake  <ebb9@byu.net>
13852
13853         pipe2-safer: new module
13854         * modules/pipe2-safer: New file.
13855         * lib/unistd-safer.h (pipe2_safer): New prototype.
13856         * lib/unistd--.h (pipe2): New wrapper.
13857         * lib/pipe-safer.c (pipe2_safer): New function.
13858         * modules/pipe (Depends-on): Add pipe2-safer.
13859         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
13860
13861         stdlib-safer: preserve cloexec flag for mkostemp[s]
13862         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
13863         fd_safer_flag.
13864
13865         unistd-safer: allow preservation of cloexec status via flag
13866         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
13867         prototypes.
13868         * lib/dup-safer.c (dup_safer_flag): New function.
13869         * lib/fd-safer.c (fd_safer_flag): Likewise.
13870         * modules/cloexec (configure.ac): Set witness.
13871
13872         test-dup2: enhance test
13873         * modules/dup2-tests (Depends-on): Add cloexec.
13874         * tests/test-dup2.c (main): Enhance test.
13875
13876         cloexec: add dup_cloexec
13877         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
13878         header and comments.
13879         * lib/cloexec.c (set_cloexec_flag): Add comments.
13880         (dup_cloexec): New function, with mingw implementation borrowed
13881         from...
13882         * lib/w32spawn.h (dup_noinherit): ...here.
13883         * modules/execute (Depends-on): Add cloexec.
13884         * modules/pipe (Depends-on): Likewise.
13885         * modules/cloexec (Depends-on): Add dup2.
13886         * modules/cloexec-tests (Files): New file.
13887         * tests/test-cloexec.c: Likewise.
13888
13889         test-xalloc-die: fix test for mingw
13890         * modules/xalloc-die-tests (Files): Add tests/init.sh.
13891         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
13892         directory and .exe suffix off argv[0] output.
13893
13894         test-fseeko: fix test for mingw
13895         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
13896         than undefining fseek, so test will pass on mingw.
13897
13898 2009-12-05  Bruno Haible  <bruno@clisp.org>
13899
13900         * lib/progname.h (set_program_name): Clarify specification.
13901         * lib/progname.c (set_program_name): Likewise.
13902         Reported by Jim Meyering.
13903
13904 2009-12-05  Jim Meyering  <meyering@redhat.com>
13905
13906         maint.mk: backslash-escape parens in default regexp
13907         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
13908         backslash-escape the literal parentheses.
13909
13910         maint.mk: news-date-check: use grep -E
13911         * top/maint.mk (today): Define a Make variable, not a...
13912         (news-date-check): ...shell variable.
13913         (news-date-regexp): Use the Make variable.
13914         Use grep's -E option.  Change the failing diagnostic to mention
13915         the variable, $(news-date-regexp).
13916
13917 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
13918
13919         maintainer-makefile: allow customization of NEWS entry format
13920         * top/maint.mk (news-date-regexp): New overridable variable.
13921         (news-date-check): Use it.
13922
13923 2009-12-04  Eric Blake  <ebb9@byu.net>
13924
13925         mgetgroups: add xgetgroups, and avoid ENOSYS failures
13926         * lib/mgetgroups.h (xgetgroups): New prototype.
13927         * lib/mgetgroups.c (xgetgroups): New wrapper.
13928         (mgetgroups): Handle ENOSYS.
13929         * modules/mgetgroups (Depends-on): Add realloc.
13930         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
13931
13932         mgetgroups: avoid argument promotion issues with -1
13933         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
13934         for invalid gid_t.
13935         * tests/test-chown.h (getegid, test_chown): Likewise.
13936         * tests/test-lchown.h (getegid, test_lchown): Likewise.
13937
13938 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
13939
13940         exclude: Fix header file problems.
13941         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
13942
13943 2009-12-01  Jim Meyering  <meyering@redhat.com>
13944
13945         fts: fts_open: do not let an empty string cause immediate failure
13946         This is required in support of GNU rm, for which the command
13947         "rm A '' B" must process and remove both A and B, in spite of
13948         the empty string argument.
13949         * lib/fts.c (fts_open): Do not let the presence of an empty string
13950         cause fts_open to fail immediately.  Most fts-using tools must be
13951         able to process all arguments, in order, and can be expected to
13952         diagnose such arguments themselves.
13953
13954 2009-11-30  Eric Blake  <ebb9@byu.net>
13955
13956         utimens: fix compilation error
13957         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
13958         Declare variable at right scope.
13959
13960 2009-11-29  Jim Meyering  <meyering@redhat.com>
13961
13962         bootstrap: handle perl-5.11's changed --version output
13963         * build-aux/bootstrap (get_version): Handle perl separately,
13964         since perl-5.11's --version output is different.
13965
13966 2009-11-28  Jim Meyering  <meyering@redhat.com>
13967
13968         userspec: depend on the inttostr module, too
13969         * modules/userspec (Depends-on): Add inttostr.
13970
13971         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
13972         * lib/userspec.c (parse_with_separator): Do not accept a user ID
13973         number of MAXUID when it evaluates to (uid_t) -1.
13974         Likewise for group ID.  Reported by Matt McCutchen in
13975         <http://savannah.gnu.org/bugs/?28113>
13976
13977         userspec: reformat to use spaces, not TABs
13978         * lib/userspec.c: Expand TABs to spaces.
13979         Add Emacs' "indent-tabs-mode: nil" hint.
13980
13981 2009-11-27  Eric Blake  <ebb9@byu.net>
13982
13983         getopt-gnu: flush out another BSD bug
13984         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
13985         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
13986         flush out BSD bug.
13987         * tests/test-getopt.h (test_getopt): End lists with NULL.
13988         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13989         (test_getopt_long_posix): Enhance test.
13990         * modules/getopt-posix-tests (Depends-on): Add stdbool.
13991         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
13992         getopt-gnu.
13993         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13994         Likewise.
13995
13996 2009-11-27  Simon Josefsson  <simon@josefsson.org>
13997
13998         * modules/idpriv-droptemp-tests (Notice): Fix text.
13999
14000 2009-11-27  Jim Meyering  <meyering@redhat.com>
14001
14002         test-xalloc-die: avoid spurious failure due to libtool argv difference
14003         In a libtool-enabled project, this test would fail due to a difference
14004         in the emitted program name, e.g.,
14005         -test-xalloc-die: memory exhausted
14006         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
14007         Use program to avoid that.
14008         * modules/xalloc-die-tests (Depends-on): Add progname.
14009         * tests/test-xalloc-die.c: Include progname.h".
14010         (program_name): Remove decl.
14011         (main): Call set_program_name.
14012         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
14013
14014 2009-11-26  Richard Jones  <rjones@redhat.com>
14015
14016         w32sock: leave win32 error in place.
14017         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
14018
14019 2009-11-26  Eric Blake  <ebb9@byu.net>
14020
14021         init.sh: suggest to use skip_ and fail_ functions in comments
14022         * tests/init.sh: Add a sentence.
14023
14024 2009-11-25  Bruno Haible  <bruno@clisp.org>
14025
14026         init.sh: add documentation in comments
14027         * tests/init.sh: Add some developer and user documentation.
14028
14029 2009-11-26  Jim Meyering  <meyering@redhat.com>
14030
14031         init.sh: accommodate even those who specify bogus srcdir manually
14032         * tests/init.sh: Normally, srcdir is guaranteed by automake and
14033         configure-time tests to be sanitized, so that there is no need to
14034         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
14035         (with no double quotes) suffices.  However, since tests may be
14036         invoked manually, and since you may explicitly set srcdir to the
14037         name of a directory containing spaces, do quote its uses here.
14038         * tests/test-pread.sh: Likewise.
14039         Suggested by Bruno Haible.
14040
14041         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
14042         * tests/test-pread.sh: Write no data into the pipe, because
14043         test-pread actually reads none.  This avoids a diagnostic,
14044         "bash: echo: write error: Broken pipe", that arises in the unusual
14045         event something is ignoring SIGPIPE, and might be interpreted
14046         as some sort of failure.  Reported by Bruno Haible.
14047
14048 2009-11-25  Jim Meyering  <meyering@redhat.com>
14049
14050         test-pread: cover failure with ESPIPE and EINVAL
14051         * tests/test-pread.c (main): Test for failure, too.
14052         * tests/test-pread.sh: Invoke with stdin on a pipe.
14053         Suggested by Eric Blake.
14054
14055         pread: improvement and fix
14056         * modules/pread (Depends-on): Depend on lseek, for portability to
14057         e.g., mingw.  Suggested by Eric Blake.
14058         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
14059
14060         unistd.in.h: correct declaration of pread
14061         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
14062         Reported by Richard W.M. Jones.
14063
14064         test-pread.sh: distribute the test script
14065         * modules/pread-tests (Files): Include test-pread.sh.
14066
14067         test-pread.sh: clean up
14068         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
14069         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
14070         That is unnecessary, since it's always ".".
14071         Suggestion from Eric Blake.
14072
14073         test-pread.sh: make executable
14074         * tests/test-pread.sh: Set executable bit.
14075         Reported by Eric Blake.
14076
14077         correct typo in test-pread.sh
14078         * tests/test-pread.sh: Add #! line.
14079
14080         test pread
14081         * tests/test-pread.c: New file.
14082         * tests/test-pread.sh: Likewise.
14083         * modules/pread-tests: Likewise.
14084
14085         pread: new module
14086         * modules/pread: New file.
14087         * lib/unistd.in.h (pread): Define/declare.
14088         * lib/pread.c (pread): New file.
14089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
14090         * modules/unistd (Makefile.am): Substitute witnesses.
14091         * doc/posix-functions/pread.texi (pread): Update.
14092         * MODULES.html.sh: Add pread.
14093
14094 2009-11-25  Jim Meyering  <meyering@redhat.com>
14095
14096         tests/init.sh: new file to be used via most *.sh tests
14097         * tests/init.sh: New file.
14098
14099 2009-11-25  Eric Blake  <ebb9@byu.net>
14100
14101         utimens: work around older Linux failure with symlinks
14102         * lib/utimens.c (lutimensat_works_really): New variable.
14103         (fdutimens, lutimens): Use it to manage kernels that support
14104         nanosecond times on files, but not on symlinks.
14105         Reported by OndÅ™ej Vašík.
14106
14107         utimes: fix configure grammar
14108         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
14109
14110 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
14111
14112         regex: Fix fastmap for multibyte character ranges.
14113         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
14114         characters when a multibyte character range is included.
14115
14116 2009-11-22  Andy Wingo  <wingo@pobox.com>
14117
14118         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
14119         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
14120
14121 2009-11-24  Bruno Haible  <bruno@clisp.org>
14122
14123         doc: Most *_l functions exist in MacOS X 10.5.
14124         * doc/posix-functions/duplocale.texi: Update platforms list.
14125         * doc/posix-functions/freelocale.texi: Likewise.
14126         * doc/posix-functions/newlocale.texi: Likewise.
14127         * doc/posix-functions/uselocale.texi: Likewise.
14128         * doc/posix-functions/isalnum_l.texi: Likewise.
14129         * doc/posix-functions/isalpha_l.texi: Likewise.
14130         * doc/posix-functions/isblank_l.texi: Likewise.
14131         * doc/posix-functions/iscntrl_l.texi: Likewise.
14132         * doc/posix-functions/isdigit_l.texi: Likewise.
14133         * doc/posix-functions/isgraph_l.texi: Likewise.
14134         * doc/posix-functions/islower_l.texi: Likewise.
14135         * doc/posix-functions/isprint_l.texi: Likewise.
14136         * doc/posix-functions/ispunct_l.texi: Likewise.
14137         * doc/posix-functions/isspace_l.texi: Likewise.
14138         * doc/posix-functions/isupper_l.texi: Likewise.
14139         * doc/posix-functions/iswalnum_l.texi: Likewise.
14140         * doc/posix-functions/iswalpha_l.texi: Likewise.
14141         * doc/posix-functions/iswblank_l.texi: Likewise.
14142         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14143         * doc/posix-functions/iswctype_l.texi: Likewise.
14144         * doc/posix-functions/iswdigit_l.texi: Likewise.
14145         * doc/posix-functions/iswgraph_l.texi: Likewise.
14146         * doc/posix-functions/iswlower_l.texi: Likewise.
14147         * doc/posix-functions/iswprint_l.texi: Likewise.
14148         * doc/posix-functions/iswpunct_l.texi: Likewise.
14149         * doc/posix-functions/iswspace_l.texi: Likewise.
14150         * doc/posix-functions/iswupper_l.texi: Likewise.
14151         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14152         * doc/posix-functions/isxdigit_l.texi: Likewise.
14153         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
14154         * doc/posix-functions/strcasecmp_l.texi: Likewise.
14155         * doc/posix-functions/strcoll_l.texi: Likewise.
14156         * doc/posix-functions/strfmon_l.texi: Likewise.
14157         * doc/posix-functions/strftime_l.texi: Likewise.
14158         * doc/posix-functions/strncasecmp_l.texi: Likewise.
14159         * doc/posix-functions/strxfrm_l.texi: Likewise.
14160         * doc/posix-functions/tolower_l.texi: Likewise.
14161         * doc/posix-functions/toupper_l.texi: Likewise.
14162         * doc/posix-functions/towctrans_l.texi: Likewise.
14163         * doc/posix-functions/towlower_l.texi: Likewise.
14164         * doc/posix-functions/towupper_l.texi: Likewise.
14165         * doc/posix-functions/wcscoll_l.texi: Likewise.
14166         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14167         * doc/posix-functions/wctrans_l.texi: Likewise.
14168         * doc/posix-functions/wctype_l.texi: Likewise.
14169         * doc/glibc-functions/strptime_l.texi: Likewise.
14170         * doc/glibc-functions/strtod_l.texi: Likewise.
14171         * doc/glibc-functions/strtof_l.texi: Likewise.
14172         * doc/glibc-functions/strtol_l.texi: Likewise.
14173         * doc/glibc-functions/strtold_l.texi: Likewise.
14174         * doc/glibc-functions/strtoll_l.texi: Likewise.
14175         * doc/glibc-functions/strtoul_l.texi: Likewise.
14176         * doc/glibc-functions/strtoull_l.texi: Likewise.
14177         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14178         * doc/glibc-functions/wcstod_l.texi: Likewise.
14179         * doc/glibc-functions/wcstof_l.texi: Likewise.
14180         * doc/glibc-functions/wcstol_l.texi: Likewise.
14181         * doc/glibc-functions/wcstold_l.texi: Likewise.
14182         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14183         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14184         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14185
14186 2009-11-24  Bruno Haible  <bruno@clisp.org>
14187
14188         duplocale: Fix logic bug.
14189         * lib/duplocale.c: Don't include <langinfo.h>.
14190         (_NL_LOCALE_NAME): Remove macro.
14191         (rpl_duplocale): Use setlocale instead of nl_langinfo.
14192         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
14193
14194 2009-11-23  Jim Meyering  <meyering@redhat.com>
14195
14196         test-update-copyright: don't hard-code /usr/bin/perl
14197         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
14198         perl to print the current year.  Gilles Espinasse reported that
14199         the replaced use of perl was hard-coded as /usr/bin/perl.
14200
14201 2009-11-23  Bruno Haible  <bruno@clisp.org>
14202
14203         duplocale: Add support for glibc 2.3.x.
14204         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
14205
14206 2009-11-22  Bruno Haible  <bruno@clisp.org>
14207
14208         vasnprintf: Tiny optimization.
14209         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
14210         MacOS X.
14211
14212 2009-11-22  Bruno Haible  <bruno@clisp.org>
14213
14214         Tests for module 'duplocale'.
14215         * modules/duplocale-tests: New file.
14216         * tests/test-duplocale.c: New file.
14217
14218         New module 'duplocale'.
14219         * m4/duplocale.m4: New file.
14220         * lib/locale.in.h (duplocale): New declaration.
14221         * lib/duplocale.c: New file.
14222         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
14223         gl_LOCALE_H_DEFAULTS): New macros.
14224         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
14225         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
14226         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
14227         REPLACE_DUPLOCALE.
14228         * modules/duplocale: New file.
14229         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
14230
14231 2009-11-22  Bruno Haible  <bruno@clisp.org>
14232
14233         * modules/locale-tests (configure.ac): Test for newlocale function.
14234         * tests/test-locale.c: When the system has extended locale functions,
14235         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
14236
14237         locale: Make locale_t available when possible.
14238         * lib/locale.in.h: Include <xlocale.h> when it exists.
14239         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
14240         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
14241         * modules/locale (Depends-on): Add extensions.
14242         (Makefile.am): Also substitute HAVE_XLOCALE_H.
14243         * doc/posix-headers/locale.texi: Document the problem with locale_t.
14244
14245 2009-11-22  Bruno Haible  <bruno@clisp.org>
14246
14247         Add comments.
14248         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
14249         invocation.
14250         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14251         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14252         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14253
14254 2009-11-22  Bruno Haible  <bruno@clisp.org>
14255
14256         error: account for the possibility of freopen (stdout).
14257         * lib/error.c: Include <unistd.h>.
14258         (flush_stdout): New function, extracted from error and error_at_line.
14259         Determine stdout's fd dynamically.
14260         (error, error_at_line): Invoke flush_stdout.
14261         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
14262         * modules/error (Depends-on): Add unistd.
14263
14264 2009-11-22  Bruno Haible  <bruno@clisp.org>
14265
14266         diffseq: Add comment.
14267         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
14268
14269 2009-11-22  Jim Meyering  <meyering@redhat.com>
14270
14271         c-stack: avoid defining an unused static function
14272         * lib/c-stack.c (find_stack_direction): Do not define this function
14273         when it will not be used.
14274
14275         diffseq: avoid spurious gcc warnings
14276         * lib/diffseq.h (IF_LINT2): Define.
14277         (compareseq): Use it to initialize two members of "part".
14278         This avoids two used-uninitialized warnings.
14279
14280 2009-11-21  Jim Meyering  <meyering@redhat.com>
14281
14282         c-stack: avoid "ignoring return value of `write'" warning
14283         * lib/c-stack.c: Include "ignore-value.h".
14284         (die): Explicitly ignore each write return value.
14285         * modules/c-stack (Depends-on): Add ignore-value.
14286
14287 2009-11-21  Bruno Haible  <bruno@clisp.org>
14288
14289         diffseq: reduce scope of variable 'best'.
14290         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
14291         variable, earlier used for two different purposes.
14292
14293 2009-11-21  Jim Meyering  <meyering@redhat.com>
14294
14295         diffseq: remove useless assignment to "best"
14296         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
14297         assignment.  At that point "best" is already guaranteed to be zero.
14298
14299 2009-11-20  Eric Blake  <ebb9@byu.net>
14300
14301         build: mention ftp redirector in release announcements
14302         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
14303         values that used to come from cfg.mk; mention FTP redirect URL.
14304         * build-aux/announce-gen: Mention the mirror list.
14305         Suggested by Karl Berry.
14306
14307         nanosleep: improve port to mingw
14308         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
14309         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
14310         LIB_NANOSLEEP, but only when needed.
14311         * modules/select (Link): Document LIBSOCKET.
14312         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
14313         enough.
14314
14315         nanosleep: work around cygwin bug
14316         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
14317         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
14318         bug.
14319         (getnow): Delete, not needed.
14320         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
14321         LIB_CLOCK_GETTIME.
14322         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
14323         clock-time, gettime.
14324         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
14325         bug.
14326         * modules/nanosleep-tests: New test.
14327         * tests/test-nanosleep.c: New file.
14328
14329         sleep: work around cygwin bug
14330         * lib/sleep.c (rpl_sleep): Work around the bug.
14331         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
14332         (gl_PREREQ_SLEEP): Delete unused macro.
14333         * modules/sleep (Depends-on): Add verify.
14334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14335         * modules/unistd (Makefile.am): Substitute witness.
14336         * lib/unistd.in.h (sleep): Update prototype.
14337         * doc/posix-functions/sleep.texi (sleep): Document the bug.
14338         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
14339         * modules/sleep-tests (Depends-on): Check for alarm.
14340
14341 2009-11-20  Jim Meyering  <meyering@redhat.com>
14342
14343         maint.mk: improve sc_prohibit_magic_number_exit
14344         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
14345         so it does not match uses like System.exit(1).
14346         Add comments showing how to correct all offenders.
14347
14348 2009-11-19  Eric Blake  <ebb9@byu.net>
14349
14350         xalloc-die-tests: add missing library
14351         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
14352
14353         test-xvasprintf: silence compiler warnings
14354         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
14355         empty string from gcc.
14356
14357 2009-11-19  Jim Meyering  <meyering@redhat.com>
14358
14359         xfreopen: new module, from coreutils
14360         * modules/xfreopen: New module.
14361         * lib/xfreopen.c: New file.
14362         * lib/xfreopen.h: New file.
14363         * MODULES.html.sh (File stream based Input/Output"): Add it.
14364
14365 2009-11-19  Eric Blake  <ebb9@byu.net>
14366
14367         manywarnings: depend on warnings
14368         * modules/manywarnings (Depends-on): Add warnings.
14369
14370         build: avoid compiler warnings
14371         * lib/select.c (rpl_select): Delete unused variable.
14372         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
14373
14374 2009-11-18  Eric Blake  <ebb9@byu.net>
14375
14376         tests: avoid false negative with --with-packager
14377         * tests/test-version-etc.sh: Discard packager information.
14378         * tests/test-argp-version-etc-1.sh: Likewise.
14379         Reported by Mike Frysinger.
14380
14381         utimens: fix regression on Solaris
14382         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
14383         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
14384         can only change fd timestamps via futimesat.  Instead, use an
14385         additional witness macro to avoid BSD bug.
14386         Reported by Jim Meyering.
14387
14388 2009-11-17  Eric Blake  <ebb9@byu.net>
14389
14390         usleep: use it to simplify tests
14391         * modules/stat-time-tests (Depends-on): Add usleep.
14392         (configure.ac): Drop usleep check.
14393         * modules/chown-tests (Depends-on, configure.ac): Likewise.
14394         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
14395         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
14396         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
14397         * modules/openat-tests (Depends-on, configure.ac): Likewise.
14398         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
14399         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
14400         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
14401         Likewise.
14402         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
14403         * tests/test-lchown.h (nap): Likewise.
14404         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
14405         * tests/test-stat-time.c (nap): Likewise.
14406         * tests/test-utimens-common.h (nap): Update comments.
14407
14408         usleep: new module
14409         * modules/usleep: New file.
14410         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14411         * lib/usleep.c (usleep): Likewise.
14412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14413         * modules/unistd (Makefile.am): Substitute witnesses.
14414         * lib/unistd.in.h (usleep): Add declaration.
14415         * doc/pastposix-functions/usleep.texi (usleep): Document this.
14416         * MODULES.html.sh (Date and time): Likewise.
14417         * modules/usleep-tests (Depends-on): New test.
14418         * tests/test-usleep.c: New file.
14419
14420         chown: work around OpenBSD bug
14421         * lib/chown.c (rpl_chown): Work around the bug.
14422         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
14423         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
14424         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
14425         * modules/chown (Depends-on): Add stdbool.
14426         * modules/lchown (Depends-on): Likewise.
14427         * doc/posix-functions/chown.texi (chown): Document the bug.
14428         * doc/posix-functions/lchown.texi (lchown): Likewise.
14429         * tests/test-lchown.h (test_chown): Relax test.
14430
14431         mkstemp: avoid conflict with C++ keyword template
14432         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
14433         * lib/mkostemp.c (mkostemp): Likewise.
14434         * lib/mkostemps.c (mkostemps): Likewise.
14435         * lib/mkstemp.c (mkstemp): Likewise.
14436         * lib/mkstemps.c (mkstemps): Likewise.
14437
14438         xalloc-die-tests: optimize
14439         * tests/test-xalloc-die.sh: Reduce number of processes.
14440
14441 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14442
14443         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
14444         patch from ludo@gnu.org (Ludovic Courtès).
14445
14446 2009-11-17  Jim Meyering  <meyering@redhat.com>
14447
14448         version-etc: use proper license string
14449         * modules/version-etc (License): Use LGPL, not LGPLv3+.
14450         * modules/version-etc-fsf: Likewise.
14451
14452 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14453
14454         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
14455         printed to stdout.  Deal with EOL differences.
14456
14457 2009-11-17  Eric Blake  <ebb9@byu.net>
14458
14459         unsetenv: work around Solaris bug
14460         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
14461         * lib/unsetenv.c (rpl_unsetenv): Work around it.
14462         Reported by Jim Meyering.
14463
14464         vasnprintf: avoid compiler warnings
14465         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
14466         variables.
14467         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
14468
14469 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14470
14471         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
14472         settings since xalloc-die is no longer the self test,
14473         xalloc-die.sh is.
14474
14475 2009-11-17  Jim Meyering  <meyering@redhat.com>
14476
14477         test-xalloc-die.sh: make the code agree with the commit log
14478         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
14479         at the end, just in case you happen to have a test-xalloc-die
14480         program in some other PATH directory.
14481
14482         test-xalloc-die.sh: fix a portability bug
14483         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
14484         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
14485         Otherwise, argv[0] (as often seen in diagnostics) would be too
14486         system-dependent, sometimes with, and sometimes without the leading "./".
14487
14488         version-etc-fsf: relax license to LGPLv3+
14489         * modules/version-etc-fsf (License): Relax license.
14490
14491 2009-11-16  Eric Blake  <ebb9@byu.net>
14492
14493         xalloc-die-tests: avoid printing null pointer
14494         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
14495         shell script.
14496         * tests/test-xalloc-die.c (program_name): Declare.
14497         * tests/test-xalloc-die.sh (tmpfiles): New file.
14498
14499         setenv, unsetenv: work around various bugs
14500         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
14501         (setenv) [HAVE_SETENV]: Work around bugs.
14502         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
14503         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
14504         for bugs.
14505         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
14506         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
14507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
14508         * modules/stdlib (Makefile.am): Update substitutions.
14509         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
14510         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
14511         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14512         * modules/setenv-tests: New test.
14513         * modules/unsetenv-tests: Likewise.
14514         * tests/test-setenv.c: New file.
14515         * tests/test-unsetenv.c: Likewise.
14516
14517 2009-11-16  Jim Meyering  <meyering@redhat.com>
14518
14519         version-etc: relax license to LGPLv3+
14520         * modules/version-etc (License): Relax license.
14521
14522         better AC_REQUIRE expanded-before-required-warning avoidance
14523         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
14524         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
14525         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
14526         which is no longer needed.
14527
14528 2009-11-16  Eric Blake  <ebb9@byu.net>
14529
14530         test-freading: clean up temporary file
14531         * tests/test-freading.c (main): Remove file on success, and use
14532         ASSERT more liberally.
14533         Reported by Jim Meyering.
14534
14535 2009-11-16  Jim Meyering  <meyering@redhat.com>
14536
14537         avoid new AC_REQUIRE expanded-before-required warnings
14538         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
14539         merely using it.
14540         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
14541         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
14542
14543 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14544
14545         * tests/test-xalloc-die.c: New file.
14546         * modules/xalloc-die-tests: New file.
14547         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
14548         XFAIL_TESTS so it can be appended by modules.
14549
14550 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14551
14552         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
14553         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
14554
14555 2009-11-14  Eric Blake  <ebb9@byu.net>
14556
14557         fnmatch: avoid compiler warning
14558         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
14559         to silence compiler warning about mismatch signedness in ?:.
14560         Reported by Robert Millan.
14561
14562         intprops: add double-inclusion guard
14563         * lib/intprops.h: Allow idempotent includes.
14564         Suggested by Bruce Korb.
14565
14566         openat: detect Solaris fchownat bug
14567         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
14568         penalizing glibc chownat when only lchownat is broken.
14569         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
14570         trailing slash bugs.
14571         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
14572         * modules/openat-tests (Files): Include more files.
14573         (Depends-on): Add mgetgroups, sleep, stat-time.
14574         (configure.ac): Add additional checks.
14575         (Makefile.am): Build new test.
14576         * tests/test-fchownat.c: New file.
14577
14578         lchown: detect Solaris and FreeBSD bug
14579         * lib/lchown.c (rpl_lchown): Work around bug.
14580         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
14581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14582         * modules/unistd (Makefile.am): Populate it.
14583         * lib/unistd.in.h (lchown): Update declaration.
14584         * doc/posix-functions/lchown.texi (lchown): Document the bug.
14585         * modules/lchown-tests: New file.
14586         * tests/test-lchown.h (test_lchown): Likewise.
14587         * tests/test-lchown.c (main): Likewise.
14588
14589         chown: detect Solaris and FreeBSD bug
14590         * lib/chown.c (rpl_chown): Work around bug.
14591         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
14592         (gl_PREREQ_CHOWN): Delete.
14593         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14594         * modules/unistd (Makefile.am): Populate it.
14595         * lib/unistd.in.h (chown): Update declaration.
14596         * lib/lchown.c (chown): Update client.
14597         * modules/lchown (Depends-on): Add lstat.
14598         * doc/posix-functions/chown.texi (chown): Document the bug.
14599         * doc/posix-functions/getgroups.texi (getgroups): Document
14600         getgroups pitfall.
14601         * modules/chown-tests: New file.
14602         * tests/test-chown.h (test_chown): Likewise.
14603         * tests/test-chown.c (main): Likewise.
14604
14605 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
14606
14607         gnulib-tool: correctly detect absence of m4 directories
14608         * gnulib-tool: Avoid extra newline on data passed to wc -l.
14609
14610 2009-11-14  Jim Meyering  <meyering@redhat.com>
14611
14612         maint.mk: Prohibit inclusion of "xalloc.h" without use.
14613         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14614
14615 2009-11-14  John W. Eaton  <jwe@gnu.org>
14616
14617         strftime.h: wrap funtion declaration in extern "C" block
14618         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
14619
14620 2009-11-13  Eric Blake  <ebb9@byu.net>
14621
14622         getgroups: avoid compiler warning
14623         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
14624
14625         getgroups: work around FreeBSD bug
14626         * lib/getgroups.c (rpl_getgroups): Work around the bug.
14627         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
14628         * doc/posix-functions/getgroups.texi (getgroups): Document it.
14629         * tests/test-getgroups.c (main): Fix buffer overrun.
14630
14631         getgroups: avoid compilation failure
14632         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
14633         * modules/getgroups (Depends-on): Add stdint.
14634
14635 2009-11-13  Jim Meyering  <meyering@redhat.com>
14636
14637         test-getgroups: avoid compilation failure
14638         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
14639
14640 2009-11-13  Eric Blake  <ebb9@byu.net>
14641
14642         mgetgroups: new module, taken from coreutils
14643         * modules/mgetgroups: New file.
14644         * lib/mgetgroups.h: Likewise.
14645         * lib/mgetgroups.c (mgetgroups): Likewise.
14646         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
14647         * MODULES.html.sh (Users and groups): Mention it.
14648
14649         getgroups: don't expose GETGROUPS_T to user
14650         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
14651         an element at a time if GETGROUPS_T is wrong size.
14652         * lib/getugroups.h (getugroups): Change signature.
14653         * lib/unistd.in.h (getgroups): Likewise.
14654         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
14655         signature needs fixing.
14656         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
14657         AC_TYPE_GETGROUPS.
14658         * modules/group-member (Depends-on): Add getgroups.
14659         * lib/group-member.c (group_info, get_group_info): Use gid_t.
14660         (group_member): Rely on getgroups replacement.
14661         * lib/getugroups.c (getugroups): Use gid_t.
14662         * tests/test-getgroups.c (main): Likewise.
14663         * NEWS: Mention the signature change.
14664         * doc/posix-functions/getgroups.texi (getgroups): Mention the
14665         problem with signature.
14666         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
14667         GETGROUPS_T is still useful for setgroups.
14668
14669         getgroups, getugroups: provide stubs for mingw
14670         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
14671         * lib/getugroups.c (getugroups): Likewise.
14672         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
14673         function.  Modernize replacement scheme.
14674         (gl_PREREQ_GETGROUPS): Delete.
14675         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
14676         * modules/getgroups (configure.ac): Declare witness.
14677         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14678         * modules/unistd (Depends-on): Substitute witness.
14679         * lib/unistd.in.h (getgroups): Declare replacement.
14680
14681         getgroups: avoid calling exit
14682         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
14683         drop xalloc.
14684         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
14685         dependencies.
14686         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
14687         exiting, in the rare case of malloc failure.
14688
14689         getgroups: fix logic error
14690         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
14691         has more than 20 groups.
14692         * modules/getgroups-tests: New test.
14693         * tests/test-getgroups.c: New file.
14694
14695 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14696
14697         * tests/test-base64.c: Improve.
14698
14699 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14700
14701         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
14702         Blake <ebb9@byu.net>.
14703
14704 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14705
14706         * tests/test-xvasprintf.c: Add %s%s related checks.
14707
14708 2009-11-12  Eric Blake  <ebb9@byu.net>
14709
14710         version-etc: match standards.texi style
14711         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
14712         and use <> only for URLs.
14713
14714 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
14715
14716         fts: do not fail on a submount during traversal
14717         * lib/fts.c (fts_build): Read the stat info again after opening
14718         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
14719         Original report at http://bugzilla.redhat.com/501848.
14720
14721 2009-11-12  Jim Meyering  <meyering@redhat.com>
14722
14723         bootstrap: sync from coreutils
14724         * build-aux/bootstrap (bootstrap_epilogue): New function.
14725         Use git_modules_config in one more place.  This make bootstrap's
14726         --gnulib-srcdir option more useful for testing.
14727
14728         bootstrap: generalize autoheader check
14729         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
14730         AC_CONFIG_HEADERS.
14731
14732 2009-11-11  Eric Blake  <ebb9@byu.net>
14733
14734         mkfifoat: use new modules for Solaris and BSD bugs
14735         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
14736         * lib/mkfifoat.c (mknodat): Split...
14737         * lib/mknodat.c (mknodat): ...into new file.
14738         * modules/mkfifoat (Files): Ship new file.
14739         (Depends-on): Add mkfifo, mknod.
14740         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
14741         (Depends-on): Add symlink.
14742         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
14743         redundant with test_mkfifo.h.
14744         (do_mkfifoat, do_mknodat): New helpers.
14745
14746         mknod: new module
14747         * modules/mknod: New file.
14748         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
14749         * lib/mknod.c (mknod): Likewise.
14750         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14751         defaults.
14752         * modules/sys_stat (Makefile.am): Substitute them.
14753         * lib/sys_stat.in.h (mknod): Declare replacement.
14754         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14755         Document it.
14756         * doc/posix-functions/mknod.texi (mknod): Likewise.
14757         * modules/mknod-tests: New test.
14758         * tests/test-mknod.c: Likewise.
14759
14760         mkfifo: new module
14761         * modules/mkfifo: New file.
14762         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14763         * lib/mkfifo.c (mkfifo): Likewise.
14764         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14765         defaults.
14766         * modules/sys_stat (Makefile.am): Substitute them.
14767         * lib/sys_stat.in.h (mkfifo): Declare replacement.
14768         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14769         Document it.
14770         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
14771         * modules/mkfifo-tests: New test.
14772         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
14773         from test-mkfifoat.c.
14774         * tests/test-mkfifo.c: New file.
14775
14776         readlink: detect FreeBSD bug
14777         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
14778         slash on symlink.
14779         * doc/posix-functions/readlink.texi (readlink): Document the bug.
14780         * tests/test-readlink.h (test_readlink): Enhance test.
14781
14782         symlink: detect FreeBSD bug
14783         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
14784         slash on symlink.
14785         * doc/posix-functions/symlink.texi (symlink): Document the bug.
14786         * tests/test-symlink.h (test_symlink): Enhance test.
14787
14788 2009-11-10  Eric Blake  <ebb9@byu.net>
14789
14790         link: detect FreeBSD bug
14791         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
14792         symlink.
14793         * doc/posix-functions/link.texi (link): Document the bug.
14794         * tests/test-link.h (test_link): Enhance test.
14795         * tests/test-linkat.c (main): Update caller.
14796
14797         unlink, remove: detect FreeBSD bug
14798         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
14799         slash on symlink.
14800         * doc/posix-functions/unlink.texi (unlink): Document the bug.
14801         * doc/posix-functions/remove.texi (remove): Likewise.
14802         * tests/test-unlink.h (test_unlink): Enhance test.
14803         * tests/test-remove.c (main): Likewise.
14804
14805 2009-11-09  Eric Blake  <ebb9@byu.net>
14806
14807         rename: detect FreeBSD bug
14808         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
14809         slash on symlink.
14810         * modules/renameat-tests (Depends-on): Add filenamecat.
14811         * tests/test-rename.h (test_rename): Allow one more errno.
14812         * tests/test-renameat.c (main): Likewise.
14813         * doc/posix-functions/rename.texi (rename): Document the bug.
14814
14815         open: detect FreeBSD bug
14816         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
14817         symlink.
14818         * doc/posix-functions/open.texi (open): Document the bug.
14819         * doc/posix-functions/utimes.texi (utimes): Likewise.
14820         * tests/test-open.h (test_open): Add parameters, and test symlink
14821         handling.
14822         * tests/test-open.c (main): Adjust caller.
14823         * tests/test-fcntl-safer.c (main): Likewise.
14824         * modules/open-tests (Depends-on): Add stdbool, symlink.
14825         * modules/fcntl-safer-tests (Depends-on): Likewise.
14826         * tests/test-openat.c (main): Add test-open tests.
14827
14828         stat: detect FreeBSD bug
14829         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
14830         symlink.
14831         * doc/posix-functions/stat.texi (stat): Document the bug.
14832         * tests/test-stat.h (test_stat_func): Add argument.
14833         * tests/test-stat.c (main): Adjust caller.
14834         * tests/test-fstatat.c (main): Likewise.
14835         * modules/stat-tests (Depends-on): Add stdbool, symlink.
14836         Reported by Jim Meyering.
14837
14838 2009-11-09  James Youngman  <jay@gnu.org>
14839
14840         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
14841         * lib/strftime.c: Correct placement of #include "ignore-value.h".
14842
14843 2009-11-08  Jim Meyering  <meyering@redhat.com>
14844
14845         utimens: remove invalid futimesat call
14846         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
14847         It used the file descriptor of the target file as the DIR_FD
14848         parameter and NULL as the file name.  That caused failure with
14849         errno == EFAULT on FreeBSD-8.0-rc2
14850
14851 2009-11-07  Eric Blake  <ebb9@byu.net>
14852
14853         fflush, freadseek: use fseeko, not fseek
14854         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
14855         (clear_ungetc_buffer): Avoid potential problems on large files.
14856         * lib/freadseek.c (freadseek): Likewise.
14857         * modules/freadseek (Depends-on): Add fseeko.
14858         * modules/fseek (configure.ac): Set a witness.
14859         * tests/test-fflush.c (main): Use fseeko.
14860         * tests/test-fpurge.c (fseek): Disable link warning.
14861         * tests/test-freadable.c (fseek): Likewise.
14862         * tests/test-freading.c (fseek): Likewise.
14863         * tests/test-fseeko.c (fseek): Likewise.
14864         * tests/test-ftell.c (fseek): Likewise.
14865         * tests/test-ftello.c (fseek): Likewise.
14866         * tests/test-fwritable.c (fseek): Likewise.
14867         * tests/test-fwriting.c (fseek): Likewise.
14868
14869 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14870
14871         * modules/memchr (Depends-on): Drop getpagesize dependency.
14872
14873 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14874
14875         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
14876         Reported by Ludovic Courtès.
14877         * build-aux/pmccabe2html: Improve example usage.
14878         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
14879
14880 2009-11-06  Jim Meyering  <meyering@redhat.com>
14881
14882         do-release-commit-and-tag: New module.
14883         Automate the release-commit and tag process.
14884         * build-aux/do-release-commit-and-tag: New script, from coreutils.
14885         * modules/do-release-commit-and-tag: New file.
14886         * MODULES.html.sh (Support for maintaining and releasing): Add it.
14887
14888 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14889
14890         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
14891         because test-select.c uses inet_pton.
14892
14893 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14894
14895         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
14896         GETADDRINFO_LIB.  Bump serial number.
14897         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
14898         Suggested by Eric Blake <ebb9@byu.net>.
14899
14900 2009-11-05  Eric Blake  <ebb9@byu.net>
14901
14902         strtod: detect darwin bug
14903         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
14904         Reported by Leo Davis.
14905
14906         freopen-safer: new module
14907         * modules/freopen-safer: New module.
14908         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
14909         * lib/freopen-safer.c (freopen_safer): New file.
14910         * lib/stdio-safer.h (freopen_safer): New declaration.
14911         * lib/stdio--.h (freopen): New override.
14912         * MODULES.html.sh (File stream based Input/Output): Mention it.
14913         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
14914         freopen-safer module.
14915         * doc/posix-functions/stderr.texi (stderr): Likewise.
14916         * doc/posix-functions/stdin.texi (stdin): Likewise.
14917         * doc/posix-functions/stdout.texi (stdout): Likewise.
14918         * modules/freopen-safer-tests: New test.
14919         * tests/test-reopen-safer.c: New file.
14920
14921 2009-11-05  Jim Meyering  <meyering@redhat.com>
14922
14923         maint.mk: Prohibit inclusion of "close-stream.h" without use.
14924         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14925
14926 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14927
14928         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
14929
14930 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14931
14932         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
14933
14934 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14935
14936         Fix link error.
14937         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
14938         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14939
14940 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14941
14942         * tests/test-func.c: Also test value of __func__.
14943
14944 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14945
14946         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
14947         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
14948
14949 2009-11-05  Bruno Haible  <bruno@clisp.org>
14950
14951         Fix link error.
14952         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
14953         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14954         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
14955
14956 2009-11-05  Bruno Haible  <bruno@clisp.org>
14957
14958         Tests for module 'inet_pton'.
14959         * modules/inet_pton-tests: New file.
14960         * tests/test-inet_pton.c: New file.
14961
14962 2009-11-05  Bruno Haible  <bruno@clisp.org>
14963
14964         Tests for module 'inet_ntop'.
14965         * modules/inet_ntop-tests: New file.
14966         * tests/test-inet_ntop.c: New file.
14967
14968 2009-11-04  Eric Blake  <ebb9@byu.net>
14969
14970         stdlib-safer: wrap all mkstemp variants
14971         * modules/mkostemp (configure.ac): Set witness.
14972         * modules/mkostemps (configure.ac): Likewise.
14973         * modules/mkstemps (configure.ac): Likewise.
14974         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
14975         (mkstemps_safer): Wrap more functions.
14976         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
14977         wrapping.
14978         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
14979         (mkstemps_safer): Implement the wrappers.
14980
14981         mkstemps, mkostemps: new modules
14982         * modules/mkostemps: New module.
14983         * modules/mkstemps: Likewise.
14984         * lib/mkostemps.c (mkostemps): New file.
14985         * lib/mkstemps.c (mkstemps): Likewise.
14986         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
14987         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
14988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
14989         * modules/stdlib (Makefile.am): Substitute them.
14990         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
14991         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
14992         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
14993         * doc/gnulib.texi (Glibc stdlib.h): Include them.
14994         * MODULES.html.sh (File system functions): Mention them.
14995
14996         tempname: resync from glibc
14997         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
14998         same values for __GT_FILE as glibc.  Abort even when assertions
14999         are disabled.
15000         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
15001         match its value otherwise.  Allow idempotent inclusion.
15002         * lib/mkdtemp.c (mkdtemp): Adjust caller.
15003         * lib/mkostemp.c (mkostemp): Likewise.
15004         * lib/mkstemp.c (mkstemp): Likewise.
15005         * lib/tmpfile.c (tmpfile): Likewise.
15006         * NEWS: Document this.
15007
15008         utimens: fix use of futimens on older Linux
15009         * lib/utimens.c (fdutimens): Use updated, rather than original,
15010         timespec to avoid bug in older Linux kernel.
15011         Reported by Simon Josefsson.
15012
15013 2009-11-04  Bruno Haible  <bruno@clisp.org>
15014
15015         Make num_processors more flexible and consistent.
15016         * lib/nproc.h (enum nproc_query): New type.
15017         (num_processors): Add a 'query' argument.
15018         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
15019         (num_processors): Add a 'query' argument. Test the value of the
15020         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
15021         mingw, count the number of CPUs available for the current process.
15022         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
15023         Check for sched_getaffinity and sched_getaffinity_np.
15024         * modules/nproc (Depends-on): Add c-ctype, extensions.
15025         * NEWS: Mention the change.
15026
15027 2009-11-03  Bruno Haible  <bruno@clisp.org>
15028
15029         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
15030
15031 2009-11-03  Jim Meyering  <meyering@redhat.com>
15032
15033         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
15034         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
15035         if it is defined.
15036
15037 2009-11-02  Eric Blake  <ebb9@byu.net>
15038
15039         mktime, timegm: share common declaration
15040         * lib/mktime-internal.h: New file.
15041         * lib/mktime.c: Use it rather than open-coding a declaration.
15042         * lib/timegm.c: Likewise.
15043         * modules/mktime (Files): Ship it.
15044         * modules/timegm (Files): Likewise.
15045         Suggested by Bruno Haible.
15046
15047         test-update-copyright: update test to match script changes
15048         * tests/test-update-copyright.sh: Avoid hard-coding perl
15049         location.  Don't update *.bak created by earlier runs.
15050
15051 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15052             Simon Josefsson  <simon@josefsson.org>
15053             Bruno Haible  <bruno@clisp.org>
15054
15055         Fix link error on Solaris 8.
15056         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
15057         also in libnsl. Define also INET_PTON_LIB.
15058         * modules/inet_pton (Link): New section.
15059
15060 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15061             Bruno Haible  <bruno@clisp.org>
15062
15063         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
15064         * modules/inet_ntop (Link): New section.
15065         Reported by Boyan Kasarov <bkasarov@gmail.com>.
15066
15067 2009-11-02  Eric Blake  <ebb9@byu.net>
15068
15069         maint: avoid compiler warnings in m4 macros
15070         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
15071         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
15072
15073 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15074
15075         * m4/pmccabe2html.m4: Remove file.
15076         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
15077         function.  Change maintainer.
15078         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
15079         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
15080         Courtès).
15081
15082 2009-10-31  Eric Blake  <ebb9@byu.net>
15083
15084         fseeko: fix m4 regression
15085         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
15086         regression from 2009-10-27.
15087         Reported by Ralf Wildenhues.
15088
15089 2009-10-31  Jim Meyering  <meyering@redhat.com>
15090
15091         inttostr: aesthetics and improved (compile-time) safety
15092         Define inttype_is_signed rather than inttype_is_unsigned,
15093         since the sole use is via "#if inttype_is_signed".
15094         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
15095         inttype_is_unsigned.
15096         * lib/offtostr.c (inttype_is_signed): Likewise.
15097         * lib/uinttostr.c (inttype_is_signed): Likewise.
15098         * lib/umaxtostr.c (inttype_is_signed): Likewise.
15099         * lib/inttostr.c (inttostr): Use verify to cross-check the
15100         inttype_is_signed value and the signedness of the actual type.
15101         * modules/inttostr (Depends-on): Add verify.
15102
15103 2009-10-30  Eric Blake  <ebb9@byu.net>
15104
15105         build: avoid compiler warnings
15106         * lib/fchmodat.c (lchmod): Mark unused variables.
15107         * lib/getopt.c (_getopt_initialize): Likewise.
15108         * lib/mktime.c (__mktime_internal): Provide prototype.
15109         * lib/inttostr.c (inttostr): Avoid compiler warning even with
15110         older gcc that do not understand #pragma GCC diagnostic.
15111         * lib/uinttostr.c (inttype_is_unsigned): Define.
15112         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
15113
15114 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15115
15116         stat: fix compilation on AIX
15117         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
15118         only see struct stat64.
15119
15120 2009-10-30  Eric Blake  <ebb9@byu.net>
15121
15122         exclude: make more robust
15123         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
15124         rather than masking a coding bug.
15125         Suggested by Bruno Haible.
15126
15127 2009-10-30  Jim Meyering  <meyering@redhat.com>
15128
15129         perl scripts: remove #!/usr/bin/perl in favor of more portable...
15130         Rather than putting #!/usr/bin/perl on the first line,
15131         start with a variant of what's recommended by "man perlrun" that
15132         invokes the first "perl" program from your shell's search path.
15133         * build-aux/gitlog-to-changelog: Replace #!... as above.
15134         Add a "Local Variables" perl mode setting.
15135         Prompted by a patch from Ludovic Courtès.
15136         Improved by Eric Blake.
15137         * build-aux/useless-if-before-free: Likewise.
15138         * build-aux/announce-gen: Likewise.
15139         * build-aux/update-copyright: Likewise.
15140
15141 2009-10-29  Eric Blake  <ebb9@byu.net>
15142
15143         filenamecat-lgpl: adjust clients
15144         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
15145         filenamecat.
15146         * modules/renameat (Depends-on): Likewise.
15147
15148         filenamecat: split into filenamecat-lgpl
15149         * modules/filenamecat-lgpl: New module.
15150         * modules/filenamecat (Files): Move library-safe files into
15151         filenamecat-lgpl.
15152         (Depends-on): Add filenamecat-lgpl.
15153         (configure.ac): Declare witness.
15154         * lib/filenamecat.h (file_name_concat): Only declare when using
15155         GPL module.
15156         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
15157         Move...
15158         * lib/filenamecat-lgpl.c: ...into new file.
15159         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
15160         (gl_FILE_NAME_CONCAT): Use it.
15161         * MODULES.html.sh (File system functions): Mention new module.
15162
15163         argp: avoid memory leak
15164         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
15165         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
15166         base_name, since the latter malloc()s and can call exit().
15167         Leak introduced 2006-07-03.
15168
15169         dirname-lgpl: adjust clients that don't need full dirname
15170         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
15171         * modules/filenamecat (Depends-on): Likewise.
15172         * modules/linkat (Depends-on): Likewise.
15173         * modules/mkancesdirs (Depends-on): Likewise.
15174         * modules/mkdir (Depends-on): Likewise.
15175         * modules/openat (Depends-on): Likewise.
15176         * modules/savewd (Depends-on): Likewise.
15177         * modules/rename (Depends-on): Likewise.
15178         (License): Relax license.
15179         * modules/mkdir-tests (Depends-on): Drop progname.
15180         (Makefile.am): Delete unneeded LDADD.
15181         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
15182
15183         dirname: split into dirname-lgpl
15184         * modules/dirname-lgpl: New module.
15185         * modules/dirname (Files): Move library-safe files into
15186         dirname-lgpl.
15187         (Depends-on): Add dirname-lgpl.
15188         (configure.ac): Declare witness.
15189         * modules/double-slash-root (License): Relax license.
15190         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
15191         module.
15192         * lib/dirname.c (dir_len, mdir_name): Move...
15193         * lib/dirname-lgpl.c: ...into new file.
15194         * lib/basename.c (last_component, base_len): Move...
15195         * lib/basename-lgpl.c: ...into new file.
15196         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
15197         (gl_DIRNAME): Use it.
15198         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
15199         Mention new module.
15200         * modules/dirname-tests (Depends-on): Add progname.
15201         * tests/test-dirname.c (program_name): Delete.
15202
15203         mkdir: make safe for libraries
15204         * modules/mkdir (Depends-on): Drop xalloc.
15205         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
15206         exit.
15207
15208         tests: avoid some compiler warnings
15209         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
15210         literals.
15211         * tests/test-memchr.c (main): Avoid type mismatch.
15212         * tests/test-arpa_inet.c (main): Avoid unused parameters.
15213         * tests/test-base64.c (main): Likewise.
15214         * tests/test-getdelim.c (main): Likewise.
15215         * tests/test-gethostname.c (main): Likewise.
15216         * tests/test-getline.c (main): Likewise.
15217         * tests/test-netinet_in.c (main): Likewise.
15218         * tests/test-select.c (open_server_socket, main): Likewise.
15219         * tests/test-select-stdin.c (main): Likewise.
15220         * tests/test-sockets.c (main): Likewise.
15221         * tests/test-strsignal.c (main): Likewise.
15222         * tests/test-sys_select.c (main): Likewise.
15223         * tests/test-sys_socket.c (main): Likewise.
15224         * tests/test-u64.c (main): Likewise.
15225         * tests/test-xfprintf-posix.c (main): Likewise.
15226         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
15227
15228         sockets: avoid compiler warning
15229         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
15230
15231         maint: detect usage(1) and other suspicious exits
15232         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
15233
15234 2009-10-29  Jim Meyering  <meyering@redhat.com>
15235
15236         timespec: long-to-int truncation could make timespec_cmp malfunction
15237         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
15238         a multiple of 2^32 nanoseconds as no difference.
15239
15240 2009-10-28  Jim Meyering  <meyering@redhat.com>
15241
15242         fprintftime: wrap macro code argument in "do {...} while(0)"
15243         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
15244         cpy macro must be a statement that can be followed by a semicolon.
15245         Now that the else clause contains a comment and is hence longer
15246         than one line, I require curly braces.  That in turn requires
15247         that we wrap this code block in the standard do...while(0).
15248
15249         fprintftime: remove stray semicolon from previous change
15250         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
15251
15252         fprintftime: avoid a warning about ignored fwrite return value
15253         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
15254         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
15255         that is unsafe.
15256         * modules/fprintftime (Depends-on): Add ignore-value.
15257
15258         exclude: avoid an unwarranted warning
15259         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
15260
15261 2009-10-27  Eric Blake  <ebb9@byu.net>
15262
15263         fseek: avoid compilation failure when fflush is replaced
15264         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
15265         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
15266         module is in use.
15267         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
15268         module is not in use; since REPLACE_FSEEK worked otherwise.
15269         (GNULIB_FTELLO): Likewise for ftell.
15270         Reported by Ian Beckwith and others.
15271
15272 2009-10-27  Bruno Haible  <bruno@clisp.org>
15273
15274         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
15275         Reported by Jim Meyering.
15276
15277 2009-10-27  Jim Meyering  <jim@meyering.net>
15278             Bruno Haible  <bruno@clisp.org>
15279
15280         Avoid warning despite dropping the return value of fwrite.
15281         * lib/unicodeio.c: Include ignore-value.h.
15282         (fwrite_success_callback): Explicitly ignore fwrite's return value.
15283         * modules/unicodeio (Depends-on): Add ignore-value.
15284
15285 2009-10-26  Eric Blake  <ebb9@byu.net>
15286
15287         areadlinkat: fix fallback path
15288         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
15289         pointer and zero.
15290
15291 2009-10-22  Pádraig Brady  <P@draigBrady.com>
15292
15293         Use a better IO block size for modern systems
15294         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
15295         * lib/md2.c: Likewise.
15296         * lib/md4.c: Likewise.
15297         * lib/md5.c: Likewise.
15298         * lib/sha1.c: Likewise.
15299         * lib/sha256.c: Likewise.
15300         * lib/sha512.c: Likewise.
15301
15302 2009-10-22  Eric Blake  <ebb9@byu.net>
15303
15304         tests: avoid several compiler warnings
15305         * tests/test-getcwd.c (main): Avoid buffer underflow.
15306         * tests/test-getdate.c (main): String literals are not safe with
15307         putenv, so use setenv.  Declare unused argument.
15308         * modules/getdate-tests (Depends-on): Add setenv.
15309         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
15310         problems with string literals in char *.
15311         * tests/test-hash.c (main): Avoid shadowing declaration.
15312         (insert_new): Treat string literals as char const *.
15313         * tests/test-getopt.h (test_getopt): Likewise.
15314         (getopt_loop): Alter types to minimize casting elsewhere.
15315         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
15316         (test_getopt_long_posix): Likewise.
15317         (do_getopt_long): Add wrapper to minimize casting.
15318         * tests/test-atexit.c (clear_temp_file): Use void.
15319         * tests/test-areadlink-with-size.c (main): Declare unused
15320         arguments.
15321         * tests/test-areadlink.c (main): Likewise.
15322         * tests/test-areadlinkat-with-size.c (main): Likewise.
15323         * tests/test-areadlinkat.c (main): Likewise.
15324         * tests/test-canonicalize-lgpl.c (main): Likewise.
15325         * tests/test-canonicalize.c (main): Likewise.
15326         * tests/test-dirent-safer.c (main): Likewise.
15327         * tests/test-dirname.c (main): Likewise.
15328         * tests/test-dup2.c (main): Likewise.
15329         * tests/test-fchdir.c (main): Likewise.
15330         * tests/test-fcntl-h.c (main): Likewise.
15331         * tests/test-fcntl-safer.c (main): Likewise.
15332         * tests/test-fdopendir.c (main): Likewise.
15333         * tests/test-fdutimensat.c (main): Likewise.
15334         * tests/test-fflush.c (main): Likewise.
15335         * tests/test-filenamecat.c (main): Likewise.
15336         * tests/test-filevercmp.c (main): Likewise.
15337         * tests/test-fopen-safer.c (main): Likewise.
15338         * tests/test-fopen.c (main): Likewise.
15339         * tests/test-fpending.c (main): Likewise.
15340         * tests/test-fpurge.c (main): Likewise.
15341         * tests/test-freading.c (main): Likewise.
15342         * tests/test-fstatat.c (main): Likewise.
15343         * tests/test-fsync.c (main): Likewise.
15344         * tests/test-futimens.c (main): Likewise.
15345         * tests/test-getndelim2.c (main): Likewise.
15346         * tests/test-gettimeofday.c (main): Likewise.
15347         * tests/test-getopt.c (main): Likewise.
15348         * tests/test-i-ring.c (main): Likewise.
15349         * tests/test-inttypes.c (main): Likewise.
15350         * tests/test-link.c (main): Likewise.
15351         * tests/test-lstat.c (main): Likewise.
15352         * tests/test-math.c (main): Likewise.
15353         * tests/test-md5.c (main): Likewise.
15354         * tests/test-memchr2.c (main): Likewise.
15355         * tests/test-memrchr.c (main): Likewise.
15356         * tests/test-mkdir.c (main): Likewise.
15357         * tests/test-mkdirat.c (main): Likewise.
15358         * tests/test-mkfifoat.c (main): Likewise.
15359         * tests/test-open.c (main): Likewise.
15360         * tests/test-openat-safer.c (main): Likewise.
15361         * tests/test-openat.c (main): Likewise.
15362         * tests/test-quotearg.c (main): Likewise.
15363         * tests/test-rawmemchr.c (main): Likewise.
15364         * tests/test-readlink.c (main): Likewise.
15365         * tests/test-remove.c (main): Likewise.
15366         * tests/test-rename.c (main): Likewise.
15367         * tests/test-renameat.c (main): Likewise.
15368         * tests/test-rmdir.c (main): Likewise.
15369         * tests/test-sha1.c (main): Likewise.
15370         * tests/test-signal.c (main): Likewise.
15371         * tests/test-sigaction.c (main): Likewise.
15372         * tests/test-stat.c (main): Likewise.
15373         * tests/test-stat-time.c (main): Likewise.
15374         * tests/test-stddef.c (main): Likewise.
15375         * tests/test-stdint.c (main): Likewise.
15376         * tests/test-stdio.c (main): Likewise.
15377         * tests/test-stdlib.c (main): Likewise.
15378         * tests/test-strchrnul.c (main): Likewise.
15379         * tests/test-strerror.c (main): Likewise.
15380         * tests/test-string.c (main): Likewise.
15381         * tests/test-strtod.c (main): Likewise.
15382         * tests/test-strverscmp.c (main): Likewise.
15383         * tests/test-symlink.c (main): Likewise.
15384         * tests/test-symlinkat.c (main): Likewise.
15385         * tests/test-sys_stat.c (main): Likewise.
15386         * tests/test-sys_time.c (main): Likewise.
15387         * tests/test-time.c (main): Likewise.
15388         * tests/test-unistd.c (main): Likewise.
15389         * tests/test-unlink.c (main): Likewise.
15390         * tests/test-unlinkat.c (main): Likewise.
15391         * tests/test-utimens.c (main): Likewise.
15392         * tests/test-utimensat.c (main): Likewise.
15393         * tests/test-version-etc.c (main): Likewise.
15394         * tests/test-wchar.c (main): Likewise.
15395         * tests/test-wctype.c (main): Likewise.
15396         * tests/test-xprintf-posix.c (main): Likewise.
15397         * tests/test-posixtm.c (main): Likewise.
15398         (STREQ): Delete unused macro.
15399         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
15400         shadowed variables.
15401         * tests/test-memchr.c (main): Likewise.
15402
15403 2009-10-21  Eric Blake  <ebb9@byu.net>
15404
15405         areadlinkat: avoid failure on older glibc
15406         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
15407         rather than mis-comparing 0 against FUNC_RESULT of char*.
15408
15409 2009-10-21  Bruno Haible  <bruno@clisp.org>
15410
15411         * modules/stpncpy (License): Relicense under LGPLv2+.
15412         Reported by David Lutterkort <lutter@redhat.com>.
15413
15414 2009-10-20  Eric Blake  <ebb9@byu.net>
15415
15416         utimensat: work around Solaris 9 bug
15417         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
15418         has trailing slash bugs.
15419         * tests/test-lutimens.h (test_lutimens): Enhance test.
15420         * tests/test-utimens.h (test_utimens): Likewise.
15421         * doc/posix-functions/utime.texi (utime): Enhance documentation.
15422         * doc/posix-functions/utimes.texi (utimes): Likewise.
15423         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15424         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
15425         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
15426         * doc/posix-functions/futimens.texi (futimens): Likewise.
15427
15428         fdutimensat: new module
15429         * modules/fdutimensat: New file.
15430         * lib/fdutimensat.c (fdutimensat): Likewise.
15431         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
15432         * MODULES.html.sh (File system functions): Mention module.
15433         * modules/fdutimensat-tests: New test.
15434         * tests/test-fdutimensat.c: Likewise.
15435
15436         doc: regenerate INSTALL
15437         * doc/INSTALL: Reflect recent autoconf update.
15438         * doc/INSTALL.ISO: Likewise.
15439         * doc/INSTALL.UTF-8: Likewise.
15440
15441 2009-10-20  Pádraig Brady  <P@draigBrady.com>
15442
15443         acl: warn if ACL support is not detected
15444         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
15445
15446 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
15447
15448         * lib/nproc.h: Add extern "C" block for C++.
15449
15450 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
15451             Bruno Haible  <bruno@clisp.org>
15452
15453         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
15454         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
15455         * doc/posix-functions/isalpha.texi: Likewise.
15456         * doc/posix-functions/isblank.texi: Likewise.
15457         * doc/posix-functions/iscntrl.texi: Likewise.
15458         * doc/posix-functions/isdigit.texi: Likewise.
15459         * doc/posix-functions/isgraph.texi: Likewise.
15460         * doc/posix-functions/islower.texi: Likewise.
15461         * doc/posix-functions/isprint.texi: Likewise.
15462         * doc/posix-functions/ispunct.texi: Likewise.
15463         * doc/posix-functions/isspace.texi: Likewise.
15464         * doc/posix-functions/isupper.texi: Likewise.
15465         * doc/posix-functions/isxdigit.texi: Likewise.
15466
15467 2009-10-18  Bruno Haible  <bruno@clisp.org>
15468
15469         Tests for module 'isblank'.
15470         * modules/isblank-tests: New file.
15471         * tests/test-isblank.c: New file.
15472
15473         New module 'isblank'.
15474         * lib/isblank.c: New file.
15475         * m4/isblank.m4: New file.
15476         * modules/isblank: New file.
15477         * doc/posix-functions/isblank.texi: Mention the new module.
15478
15479 2009-10-18  Bruno Haible  <bruno@clisp.org>
15480
15481         New module 'ctype'.
15482         * lib/ctype.in.h: New file.
15483         * m4/ctype.m4: New file.
15484         * modules/ctype: New file.
15485         * doc/posix-headers/ctype.texi: Mention the new module.
15486
15487 2009-10-18  Jim Meyering  <meyering@redhat.com>
15488
15489         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
15490         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
15491         right after its initialization, rather than farther down.
15492         Keeping these in close proximity makes it easier to ensure
15493         that each such variable is initialized.  E.g.,
15494
15495             LIB_CLOCK_GETTIME=
15496             AC_SUBST([LIB_CLOCK_GETTIME])
15497
15498         This change also increments these serial numbers.
15499         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
15500         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15501         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15502
15503 2009-10-18  Bruno Haible  <bruno@clisp.org>
15504
15505         Don't let environment variables perturb build.
15506         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
15507         (gl_PREREQ_GETHRXTIME): ... not here.
15508
15509 2009-10-18  Bruno Haible  <bruno@clisp.org>
15510
15511         Avoid symlink attack in localcharset module.
15512         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
15513         (O_NOFOLLOW): Define fallback.
15514         (get_charset_aliases): Don't open the file if it is a symbolic link.
15515         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
15516         gl_FCNTL_H.
15517         (gl_FCNTL_H): Require it.
15518         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
15519         * modules/localcharset (Files): Add m4/fcntl_h.m4.
15520         Reported by Fergal Glynn <fglynn@veracode.com>.
15521
15522 2009-10-18  Bruno Haible  <bruno@clisp.org>
15523
15524         Implement nproc for mingw.
15525         * lib/nproc.c: Include <windows.h>
15526         (num_processors): On native Windows platforms, try GetSystemInfo.
15527
15528 2009-10-18  Bruno Haible  <bruno@clisp.org>
15529
15530         Implement nproc for IRIX.
15531         * lib/nproc.c: Include <sys/sysmp.h>.
15532         (num_processors): On IRIX systems, try sysmp.
15533         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
15534
15535 2009-10-18  Bruno Haible  <bruno@clisp.org>
15536
15537         Implement nproc for HP-UX.
15538         * lib/nproc.c: Include <sys/pstat.h>
15539         (num_processors): On HP-UX systems, try pstat_getdynamic.
15540         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
15541         pstat_getdynamic.
15542
15543 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
15544             Bruno Haible  <bruno@clisp.org>
15545
15546         Implement nproc for NetBSD, OpenBSD.
15547         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
15548         (ARRAY_SIZE): New macro.
15549         (num_processors): On BSD systems, try sysctl of HW_NCPU.
15550         * m4/nproc.m4: New file.
15551         * modules/nproc (Files): Add m4/nproc.m4.
15552         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
15553         (Makefile.am): Instead, augment lib_SOURCES.
15554
15555 2009-10-18  Bruno Haible  <bruno@clisp.org>
15556
15557         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
15558         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
15559         sys/param.h.
15560
15561 2009-10-16  Eric Blake  <ebb9@byu.net>
15562
15563         utimensat: new module
15564         * modules/utimensat: New file.
15565         * lib/utimensat.c (utimensat): Likewise.
15566         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15567         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
15568         so we can work around Linux bugs.
15569         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15570         * modules/sys_stat (Makefile.am): Substitute them.
15571         * lib/sys_stat.in.h (utimensat): Declare it.
15572         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15573         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15574         * modules/utimensat-tests: New test.
15575         * tests/test-utimensat.c: Likewise.
15576
15577         utimens: let lutimens work on non-symlinks
15578         * lib/utimens.c (lutimens): Fall back to utimens rather than
15579         failing with ENOSYS, when file is not a symlink.
15580         (utimens): Reduce redirection.
15581         * tests/test-lutimens.h (test_lutimens): Update test to cover
15582         non-symlinks.
15583         * tests/test-utimens.h (test_utimens): Update test to cover
15584         symlinks.
15585         * tests/test-utimens.c (main): Update caller.
15586
15587         utimens: cache whether utimensat syscall works
15588         * lib/utimens.c (utimensat_works_really): New cache variable.
15589         (fdutimens, lutimens): Use it to avoid failing syscall.
15590
15591         test-stat-time, test-utimens: improve portability
15592         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
15593         ext4 on alpha, and for cygwin.
15594         * tests/test-utimens-common.h: New file.
15595         (nap): Factor delays into single function.
15596         * tests/test-lutimens.h (test_lutimens): Use new header.
15597         * tests/test-futimens.h (test_futimens): Likewise.
15598         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
15599         timestamps to occur from same machine, as was done previously for
15600         test_utimens.
15601         * modules/utimens-tests (Files): Ship new file.
15602         * modules/futimens-tests (Files): Likewise.
15603         Reported in part by Jim Meyering.
15604
15605         sys_stat: sort replacement declarations
15606         * lib/sys_stat.in.h: Sort declarations.
15607         * lib/futimens.c (futimens): Fix typo.
15608
15609 2009-10-15  Jim Meyering  <meyering@redhat.com>
15610
15611         don't let environment settings perturb build
15612         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
15613         could cause a configure-time and/or build-time malfunction.
15614         Typically, a configure-time function-in-library test is performed
15615         via code like this:
15616
15617           LIB_VAR=
15618           AC_SUBST([LIB_VAR])
15619           prefix_saved_LIBS=$LIBS
15620             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
15621                        [test "$ac_cv_search_FUNC" = "none required" ||
15622                         LIB_VAR=$ac_cv_search_FUNC])
15623           LIBS=$prefix_saved_LIBS
15624
15625         However, in each of the files affected by this change, the LIB_VAR=
15626         initialization was omitted.  Thus, when set in the environment, its
15627         value would propagate into generated Makefiles when FUNC is not found
15628         in LIB_NAME.
15629         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
15630         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15631         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15632
15633 2009-10-14  Eric Blake  <ebb9@byu.net>
15634
15635         fchdir: avoid infinite recursion in mingw
15636         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
15637         recursing.
15638
15639         test-stat-time: port to mingw
15640         * tests/test-stat-time.c (force_unlink): Return a value.
15641         (test_ctime) [W32]: Fix compilation error.
15642         (nap): Don't call usleep with too large an argument.  Use
15643         force_unlink.
15644         * doc/pastposix-functions/usleep.texi (usleep): Document the
15645         portability issue.
15646
15647 2009-10-13  Jim Meyering  <meyering@redhat.com>
15648
15649         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
15650         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
15651         * modules/pipe-filter-ii: Likewise.
15652         * modules/sys_socket-tests: Likewise.
15653         * modules/tsearch-tests: Likewise.
15654         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
15655         (check): Depend on it.
15656
15657 2009-10-12  Eric Blake  <ebb9@byu.net>
15658
15659         utimens-tests: port to NFS file systems
15660         * tests/test-utimens.h (test_utimens): Refactor utimecmp
15661         comparisons to avoid spurious failures from timestamp drift
15662         between NFS machines.
15663
15664 2009-10-12  Eric Blake  <ebb9@byu.net>
15665
15666         stat-time-tests: minor cleanups
15667         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
15668         * tests/test-stat-time.c (nap): Separate assignment from call.
15669         Suggested by Paolo Bonzini and Bruno Haible.
15670
15671         sys_stat: guarantee struct timespec
15672         * lib/sys_stat.in.h (includes): Always include <time.h>
15673         * modules/sys_stat (Depends-on): Add time.
15674         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
15675         mode_t permission values.
15676         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
15677         get at subsecond timestamps.
15678
15679 2009-10-10  Eric Blake  <ebb9@byu.net>
15680
15681         futimens: new module
15682         * modules/futimens: New file.
15683         * lib/futimens.c (futimens): Likewise.
15684         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
15685         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
15686         we can work around Linux bugs.
15687         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15688         * modules/sys_stat (Makefile.am): Substitute them.
15689         * lib/sys_stat.in.h (futimens): Declare it.
15690         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15691         * doc/posix-functions/futimens.texi (futimens): Likewise.
15692         * modules/futimens-tests: New test.
15693         * tests/test-futimens.c: Likewise.
15694
15695         utimens: introduce fdutimens
15696         * lib/utimens.h (fdutimens): New prototype.
15697         * lib/utimens.c (gl_futimens): Move guts...
15698         (fdutimens): ...to new interface.
15699         * tests/test-utimens.c (do_fdutimens): Use it.
15700
15701         utimens: add UTIME_NOW and UTIME_OMIT support
15702         * lib/utimens.c (validate_timespec, update_timespec): New helper
15703         functions.
15704         (gl_futimens, lutimens): Use them.
15705         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
15706         stdbool, sys_stat.
15707         (Link): Mention resulting library dependency.
15708         * modules/utimecmp (Link): Likewise.
15709         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
15710         (Makefile.am): Pick up library dependency.
15711         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
15712         definition.
15713         * tests/test-sys_stat.c: Test the definitions.
15714         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
15715         * NEWS: Document library dependency.
15716
15717         utimecmp: support symlink timestamps
15718         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
15719         hashing when possible.  Use pathconf when available.
15720         (SYSCALL_RESOLUTION): Recognize tighter resolution.
15721         * modules/utimecmp (Depends-on): Add lstat.
15722
15723         utimens: add lutimens interface
15724         * lib/utimens.c (lutimens): New function.
15725         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
15726         * lib/utimens.h (lutimens): Declare new interface.
15727         * tests/test-utimens.c (main): Enhance test.
15728         * tests/test-lutimens.h (test_lutimens): New file.
15729         * modules/utimens-tests (Files): Distribute it.
15730         (Depends-on): Add symlink.
15731         (configure.ac): Check for usleep.
15732
15733         utimens: validate futimens usage
15734         * lib/utimens.c (gl_futimens): Require valid fd up front, using
15735         fewer syscalls on failure later on.  Avoid compiler warning on
15736         mingw.
15737         * modules/utimens (Depends-on): Add dup2.
15738
15739         utimens: add test
15740         * modules/utimens-tests: New test.
15741         * tests/test-utimens.h: New file.
15742         * tests/test-futimens.h: Likewise.
15743         * tests/test-utimens.c: Likewise.
15744
15745         doc: mention timestamp portability issues
15746         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
15747         instead.
15748         * doc/posix-functions/utime.texi (utime): Likewise.
15749         * doc/posix-functions/utimes.texi (utimes): Likewise.
15750         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
15751         instead.
15752         * doc/posix-functions/futimens.texi (futimens): Mention utimens
15753         module.
15754         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15755         Mention weakness with symlink timestamps.
15756         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
15757         to utimensat/futimens instead.
15758         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
15759
15760         test-dup2: enhance test
15761         * tests/test-dup2.c (main): Also check AT_FDCWD.
15762
15763         test-stat-time: avoid more spurious failures
15764         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
15765         xfs; and avoid race if the two timestamps cross quantization edge.
15766
15767         relocatable: prefer 'file system' over 'filesystem'
15768         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
15769         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
15770         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
15771         * doc/relocatable.texi (Enabling Relocatability): Likewise.
15772         * lib/relocatable.c (compute_curr_prefix): Likewise.
15773
15774 2009-10-10  Jim Meyering  <meyering@redhat.com>
15775
15776         stat-time-tests: check for the usleep function
15777         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
15778
15779 2009-10-10  Bruno Haible  <bruno@clisp.org>
15780
15781         * modules/xnanosleep: Put the Link section after the Include section.
15782
15783 2009-10-09  Eric Blake  <ebb9@byu.net>
15784
15785         dup2: work around FreeBSD 6.1 bug
15786         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
15787         * doc/posix-functions/dup2.texi (dup2): Document it.
15788         Reported by Nelson H. F. Beebe and Jim Meyering.
15789
15790         test-stat-time: port to buggy NFS clients
15791         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
15792         (test_ctime): Also skip test if mtime and ctime are skewed.
15793
15794         maint: prefer 'file system' over 'filesystem'
15795         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15796         * doc/posix-functions/lstat.texi (lstat): Likewise.
15797         * lib/file-has-acl.c (file_has_acl): Likewise.
15798         * lib/fwriteerror.c [TEST]: Likewise.
15799         * tests/test-areadlink.h (test_areadlink): Likewise.
15800         * tests/test-areadlinkat-with-size.c (main): Likewise.
15801         * tests/test-areadlinkat.c (main): Likewise.
15802         * tests/test-canonicalize-lgpl.c (main): Likewise.
15803         * tests/test-canonicalize.c (main): Likewise.
15804         * tests/test-fstatat.c (main): Likewise.
15805         * tests/test-linkat.c (main): Likewise.
15806         * tests/test-lstat.h (test_lstat_func): Likewise.
15807         * tests/test-mkdir.h (test_mkdir): Likewise.
15808         * tests/test-readlink.h (test_readlink): Likewise.
15809         * tests/test-remove.c (main): Likewise.
15810         * tests/test-rename.h (test_rename): Likewise.
15811         * tests/test-renameat.c (main): Likewise.
15812         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15813         * tests/test-symlink.h (test_symlink): Likewise.
15814         * tests/test-symlinkat.c (main): Likewise.
15815         * tests/test-unlink.h (test_unlink_func): Likewise.
15816         * tests/test-unlinkat.c (main): Likewise.
15817
15818         maint: make realtime library usage explicit
15819         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
15820         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
15821         * modules/settime (Link): Likewise.
15822         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
15823
15824         test-stat-time: speed up execution
15825         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
15826         warning on mingw.
15827         (nap): New helper function.
15828         (prepare_test): Use it to reduce sleep time.
15829         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
15830         execution.
15831         * modules/stat-time-tests (configure.ac): Check for usleep.
15832
15833 2009-10-09  Jim Meyering  <meyering@redhat.com>
15834
15835         selinux-h: always use getfilecon wrappers
15836         * lib/getfilecon.c: New file.
15837         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
15838         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
15839         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
15840         (fgetfilecon): Provide a stub.
15841         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
15842         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
15843         file unconditionally.
15844         When <selinux/selinux.h> is found, arrange to use wrappers.
15845         * modules/selinux-h (Files): Add getfilecon.c.
15846         (Makefile.am): Substitute include-next-related bits
15847         into the now-always-generated selinux/selinux.h file.
15848         * doc/glibc-functions/lgetfilecon.texi: New file.
15849         * doc/glibc-functions/fgetfilecon.texi: New file.
15850         * doc/glibc-functions/getfilecon.texi: New file.
15851         * doc/glibc-functions/getfilecon-desc.texi: New file.
15852         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
15853         which to pull in the new files.
15854         * MODULES.html.sh (Misc): Add selinux-h.
15855
15856 2009-10-08  Jim Meyering  <meyering@redhat.com>
15857
15858         unistd: fix comment typo
15859         * lib/unistd.in.h (euidaccess): Fix a comment typo.
15860
15861 2009-10-08  Eric Blake  <ebb9@byu.net>
15862
15863         areadlink: use SIZE_MAX consistently
15864         * modules/areadlink (Depends-on): Add stdint.
15865         * modules/areadlink-with-size (Depends-on): Likewise.
15866         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
15867         gives NULL; drop sys/types, since unistd gives size_t; and add
15868         stdint for SIZE_MAX.
15869         (SIZE_MAX): Rely on headers.
15870         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
15871         and add stdint.
15872         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
15873         (SIZE_MAX): Likewise.
15874         (INITIAL_BUF_SIZE): Turn into enum.
15875         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
15876
15877 2009-10-08  Jim Meyering  <meyering@redhat.com>
15878
15879         areadlinkat: avoid compilation failure
15880         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
15881         Fix typo in comment.
15882
15883 2009-10-07  Eric Blake  <ebb9@byu.net>
15884
15885         areadlinkat-with-size: new module
15886         * modules/areadlinkat-with-size: New module.
15887         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
15888         * lib/areadlink.h (areadlinkat): Declare it.
15889         * MODULES.html.sh (File system functions): Mention it.
15890         * modules/areadlinkat-with-size-tests: New test.
15891         * tests/test-areadlinkat-with-size.c: New file.
15892
15893         xreadlinkat: new module
15894         * modules/xreadlinkat: New module.
15895         * lib/xreadlinkat.c (xreadlinkat): New file.
15896         * lib/xreadlink.h (xreadlinkat): Declare it.
15897         * MODULES.html.sh (File system functions): Mention it.
15898
15899         areadlinkat: new module
15900         * lib/at-func.c (FUNC_FAIL): New define.
15901         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
15902         * modules/areadlinkat: New module.
15903         * lib/linkat.c (areadlinkat): Move...
15904         * lib/areadlinkat.c (areadlinkat): ...to new file.
15905         * lib/areadlink.h (areadlinkat): Declare it.
15906         * modules/linkat (Depends-on): Add areadlinkat.
15907         * MODULES.html.sh (File system functions): Mention it.
15908         * modules/areadlinkat-tests: New test.
15909         * tests/test-areadlinkat.c: New file.
15910
15911         areadlink, areadlink-with-size: add tests
15912         * modules/areadlink-tests: New test.
15913         * modules/areadlink-with-size-tests: Likewise.
15914         * tests/test-areadlink.h: New file.
15915         * tests/test-areadlink.c: Likewise.
15916         * tests/test-areadlink-with-size.c: Likewise.
15917
15918         maint: minor cleanups
15919         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
15920         _UNUSED_PARAMETER_ instead.
15921         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
15922         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
15923         * modules/linkat-tests (Files): Distribute test-link.h.
15924
15925         openat, utimens: whitespace cleanup
15926         * lib/openat.c: Prefer space throughout, rather than mix of 8
15927         spaces vs. tabs.
15928         * lib/at-func.c: Likewise.
15929         * lib/utimens.c: Likewise.
15930
15931         openat: avoid using wrong fd
15932         * lib/openat.c (openat_permissive): Reject user's fd if saving the
15933         working directory chooses same fd.
15934         * lib/at-func.c (AT_FUNC_NAME): Likewise.
15935
15936         mkdir, mkdirat: fix cygwin 1.5.x bug
15937         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
15938         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
15939         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
15940         bug.
15941         (gl_PREREQ_MKDIR): Delete unused macro.
15942         * modules/mkdir (Files): Track file rename.
15943         (configure.ac): Update macro name.
15944         * modules/openat (Depends-on): Add mkdir.
15945         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
15946
15947         mkdir, mkdirat: add tests
15948         * modules/mkdir-tests: New test.
15949         * tests/test-mkdir.h: New file.
15950         * tests/test-mkdir.c: Likewise.
15951         * tests/test-mkdirat.c: Likewise.
15952         * modules/openat-tests (Files): Add new files.
15953         (Makefile.am): Run new test.
15954
15955 2009-10-06  Eric Blake  <ebb9@byu.net>
15956
15957         doc: tweak *at function documentation
15958         * doc/posix-functions/faccessat.texi (faccessat): Mention
15959         known issue with replacement.
15960         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
15961         * doc/posix-functions/linkat.texi (linkat): Likewise.
15962         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15963         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15964         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15965         * doc/posix-functions/renameat.texi (renameat): Likewise.
15966         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15967
15968         openat: fix GNU/Hurd bug in unlinkat
15969         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
15970         broken.
15971         * doc/posix-functions/unlink.texi (unlink): Document this.
15972         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
15973
15974         fdopendir: fix GNU/Hurd bug
15975         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
15976         allowing non-directory fds.
15977         * lib/fdopendir.c (rpl_fdopendir): Work around it.
15978         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15979         * modules/dirent (Makefile.am): Substitute it.
15980         * lib/dirent.in.h (fdopendir): Declare replacement.
15981         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
15982         * tests/test-fdopendir.c (main): Test something other than
15983         /dev/null, since on Hurd that behaves like a directory.
15984
15985         test-symlink: port to GNU/Hurd
15986         * tests/test-symlink.h (test_symlink): Relax expected errno.
15987
15988         doc: tweak more cygwin information
15989         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
15990         now compatible with glibc.
15991         * doc/posix-functions/getopt.texi (getopt): Likewise.
15992
15993         getopt-gnu: add another test
15994         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
15995         guarantee behavior relied on by m4.
15996         * tests/test-getopt.c (main): Use it.
15997         * modules/getopt-posix-tests (Depends-on): Add setenv.
15998         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
15999
16000         getopt: fix compilation on darwin
16001         * lib/getopt.in.h (includes): Leave breadcrumbs during system
16002         include.
16003         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
16004         Reported by Ludovic Courtès.
16005
16006 2009-10-06  Bruno Haible  <bruno@clisp.org>
16007
16008         * modules/size_max (Description): Discourage its use.
16009         Reported by Simon Josefsson.
16010
16011 2009-10-06  Jim Meyering  <meyering@redhat.com>
16012
16013         linkat: avoid compilation failure
16014         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
16015
16016 2009-10-05  Eric Blake  <ebb9@byu.net>
16017
16018         linkat: support Linux 2.6.17
16019         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
16020         linkat on Linux, but allow cache variable override.
16021         * lib/linkat.c (rpl_linkat): Define override.
16022         * modules/linkat (Depends-on): Add symlinkat.
16023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
16024         * modules/unistd (Makefile.am): Substitute it.
16025         * lib/unistd.in.h (linkat): Declare replacement.
16026         Reported by Pádraig Brady.
16027
16028         quotearg: port test to systems with C.UTF-8 locale
16029         * tests/test-quotearg.c (struct result_strings): Add another
16030         member, differentiating between C.ASCII and C.UTF-8 handling.
16031         (compare_strings): Add parameter.
16032         (main): Adjust all callers.
16033
16034         getopt: avoid clash with FreeBSD _getopt_internal
16035         * lib/getopt.in.h (_getopt_internal): Override the name.
16036         * lib/getopt_int.h (includes): Pick up any overrides.
16037         Reported by Reuben Thomas.
16038
16039         hash: allow C89 compilation
16040         * lib/hash.c (check_tuning): Move declaration before statement.
16041         Reported by Reuben Thomas.
16042
16043 2009-10-05  Karl Berry  <karl@gnu.org>
16044
16045         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
16046
16047 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
16048             Bruno Haible  <bruno@clisp.org>
16049
16050         * lib/uname.c (uname): Use a table-driven algorithm to compute
16051         Windows NT versions.
16052
16053 2009-10-04  Bruno Haible  <bruno@clisp.org>
16054
16055         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
16056         program_invocation_short_name.
16057         * modules/progname (configure.ac): Test for presence of
16058         program_invocation_short_name.
16059         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16060
16061 2009-10-04  Bruno Haible  <bruno@clisp.org>
16062
16063         * lib/progname.c (set_program_name): Fix comment.
16064         Reported by Jim Meyering.
16065
16066 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16067             Bruno Haible  <bruno@clisp.org>
16068
16069         * lib/uname.c: Include <string.h>.
16070         (uname): Do only one call to GetVersionEx in the common case.
16071
16072 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16073             Bruno Haible  <bruno@clisp.org>
16074
16075         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
16076         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
16077         (uname): Add support for Windows CE and various non-x86 CPU types.
16078
16079 2009-10-03  Bruno Haible  <bruno@clisp.org>
16080
16081         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
16082         invocation to tests/configure.ac.
16083         Reported by Ian Beckwith <ianb@erislabs.net>.
16084
16085 2009-10-02  Eric Blake  <ebb9@byu.net>
16086
16087         fchdir: avoid compiler warning
16088         * lib/fchdir.c (canonicalize_file_name)
16089         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
16090
16091         test-open: support mingw errno values
16092         * tests/test-open.h (test_open): Relax test.
16093         * tests/test-fopen.h (test_fopen): Likewise.
16094         * tests/test-openat-safer.c (main): Likewise.
16095
16096         open: fix opening directory on mingw
16097         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
16098
16099         test-open: on GNU/Hurd, /dev/null is a directory
16100         * tests/test-fopen.h (main): Rename...
16101         (test_fopen): ...to this.  Use a guaranteed non-directory when
16102         confirming open behavior on trailing slash.
16103         * tests/test-openat-safer.c (main): Likewise.
16104         * tests/test-open.h (main): Likewise....
16105         (test_open): ...to this.
16106         * tests/test-fopen.c (main): Adjust caller.
16107         * tests/test-fopen-safer.c (main): Likewise.
16108         * tests/test-open.c (main): Likewise.
16109         * tests/test-fcntl-safer.c (main): Likewise.
16110         Reported by Samuel Thibault.
16111
16112         rename, fchdir: don't ignore chdir failure
16113         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
16114         * lib/rename.c (rpl_rename) [W32]: Likewise.
16115         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
16116         an empty destination directory if source cannot be renamed,
16117         although there is still possibility for failure.
16118         * doc/posix-functions/rename.texi (rename): Document the race.
16119         Reported by Jim Meyering.
16120
16121         maint: cleanup whitespace in recent commits
16122         * lib/rename.c (rpl_rename): Remove tabs.
16123         * tests/test-link.h (test_link): Likewise.
16124         * lib/fchdir.c (get_name): Likewise.
16125         Reported by Jim Meyering.
16126
16127 2009-10-02  Ben Pfaff  <blp@gnu.org>
16128
16129         relocatable-prog-wrapper: Add missing dependency on
16130         double-slash-root.
16131         * modules/relocatable-prog-wrapper: Add dependency.
16132         Reported by Ian Beckwith <ianb@erislabs.net>.
16133
16134 2009-10-02  Eric Blake  <ebb9@byu.net>
16135
16136         renameat: fix Solaris bugs
16137         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
16138         needed fixing.
16139         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
16140         * modules/stdio (Makefile.am): Substitute it.
16141         * lib/stdio.in.h (renameat): Declare replacement.
16142         * lib/renameat.c (rpl_renameat): Implement fix.
16143
16144         renameat: new module
16145         * modules/renameat: New file.
16146         * lib/renameat.c (renameat): Likewise.
16147         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
16148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16149         * modules/stdio (Makefile.am): Substitute them.
16150         * lib/stdio.in.h (renameat): Declare it.
16151         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16152         * doc/posix-functions/renameat.texi (renameat): Likewise.
16153         * modules/renameat-tests: New test.
16154         * tests/test-renameat.c: Likewise.
16155
16156         rename: fix mingw bugs
16157         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
16158         directory overwrite bugs.
16159
16160         rename: fix another cygwin 1.5 bug
16161         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
16162         checks.
16163         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
16164         unnecessary cygwin workarounds.  Also work around bug with moving
16165         full directory onto an empty one.
16166         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
16167
16168         rename-dest-slash: merge into rename module
16169         * modules/rename-dest-slash (Status): Mark obsolete.
16170         (Depends-on): Add rename.
16171         (Files): Let rename do it all.
16172         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
16173         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
16174         * m4/rename-dest-slash.m4: ...so this file can be deleted.
16175         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
16176         * lib/rename.c (rpl_rename): Update comments.
16177
16178         rename: fix cygwin 1.5.x bugs
16179         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
16180         * lib/rename.c (rpl_rename): Work around them.
16181         * modules/rename (Depends-on): Add same-inode.
16182
16183         rename: fix Solaris 10 bug
16184         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16185         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
16186         was the only bug.
16187
16188         rename: fix Solaris 9 bug
16189         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
16190         on non-directory.  Avoid calling exit.
16191         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
16192         strdup.
16193         * modules/rename-tests (Depends-on): Drop lstat.
16194         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16195         (gl_PREREQ_RENAME): Delete unused macro.
16196
16197         rename-dest-slash: fix NetBSD bug
16198         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
16199         links.
16200         * modules/rename-dest-slash (Depends-on): Add same-inode.
16201
16202         rename-tests: new test, exposes several platform bugs
16203         * modules/rename-tests: New file.
16204         * tests/test-rename.h: Likewise.
16205         * tests/test-rename.c: Likewise.
16206         * doc/posix-functions/rename.texi (rename): Improve documentation,
16207         including bugs that will eventually be fixed in gnulib.
16208
16209 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
16210
16211         * lib/uname.c: Include <stdlib.h>
16212         (uname): Assume version info is available.
16213
16214 2009-10-02  Jim Meyering  <meyering@redhat.com>
16215
16216         gnu-web-doc-update: correct --help output
16217         * build-aux/gnu-web-doc-update: Make --help output relevant.
16218
16219         gnu-web-doc-update: add standard options
16220         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
16221
16222         gnu-web-doc-update: New module.
16223         Use this script to automatically update the on-line web documentation
16224         for your GNU project at http://www.gnu.org/software/$pkg/manual/
16225         * modules/gnu-web-doc-update: New file, from coreutils.
16226         * build-aux/gnu-web-doc-update: New script.
16227
16228 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
16229
16230         link: LoadLibrary is not needed.
16231         * lib/link.c: Use GetModuleHandle.
16232
16233 2009-10-01  Eric Blake  <ebb9@byu.net>
16234
16235         getopt: bump serial number
16236         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
16237         change.
16238
16239         tests: tighten link, rmdir, and remove tests
16240         * tests/test-link.h (includes): No need to use <config.h> here.
16241         Clean up if directory hard link was created, otherwise test for
16242         trailing '.'.
16243         * tests/test-linkat.c (main): Simplify.
16244         * tests/test-remove.c (main): Enhance test for trailing '.'.
16245         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16246
16247 2009-10-01  Jim Meyering  <meyering@redhat.com>
16248
16249         maint.mk: requiring "make major" was annoying, for a "minor" release.
16250         What is intended is "stable", to contrast with alpha and beta,
16251         so require "make stable", not "make major".
16252         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
16253         (get_tool_versions): Likewise.
16254         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
16255
16256 2009-09-30  Ben Pfaff  <blp@gnu.org>
16257
16258         Fix broken build of replacement for Windows tmpfile().
16259         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
16260         flags argument added along with the 'mkostemp' module.
16261
16262 2009-09-28  Bruno Haible  <bruno@clisp.org>
16263
16264         Avoid identifier clash with POSIX function 'remove' defined as a macro.
16265         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
16266         to 'remove_elt'.
16267         (gl_list_remove): Update.
16268         * lib/gl_list.c (gl_list_remove): Update.
16269         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
16270         to 'remove_elt'.
16271         (gl_oset_remove): Update.
16272         * lib/gl_list.c (gl_oset_remove): Update.
16273         Reported by Eric Blake.
16274
16275 2009-09-28  Eric Blake  <ebb9@byu.net>
16276
16277         doc: mention yet more cygwin 1.7 status
16278         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
16279         cygwin.
16280         * doc/glibc-functions/execvpe.texi (execvpe): New file.
16281         * doc/gnulib.texi (Glibc unistd.h): Mention it.
16282
16283         argp: fix test failure
16284         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
16285         that are not upper-case.  Pass correct range to tolower.
16286
16287 2009-09-27  Jim Meyering  <meyering@redhat.com>
16288
16289         test-yesno: work around sparc-dash here-document infelicity
16290         Without this change, the literal \177 byte in a here document
16291         would make dash 0.5.5.1-3 access uninitialized memory.
16292         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
16293         Instead, use a marker, "@", and filter through tr to create the desired
16294         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
16295
16296 2009-09-27  Bruno Haible  <bruno@clisp.org>
16297
16298         Disable untested support for new flavours of ACLs on AIX.
16299         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
16300         progress.
16301         * lib/set-mode-acl.c (qset_acl): Likewise.
16302
16303 2008-12-07  Bruno Haible  <bruno@clisp.org>
16304
16305         Add support for new flavours of ACLs on AIX. (Untested.)
16306         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
16307         (file_has_acl): Add support for newer AIX.
16308         * lib/set-mode-acl.c (qset_acl): Likewise.
16309         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
16310         Rainer Tammer <tammer@tammer.net>.
16311
16312 2009-09-26  Eric Blake  <ebb9@byu.net>
16313
16314         argp: fix compilation of getopt
16315         * lib/getopt.in.h (includes): Use different guard than glibc.
16316         Reported by Sergey Poznyakoff.
16317
16318         doc: mention more cygwin 1.7 status
16319         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
16320         bug.
16321         * doc/posix-functions/execl.texi (execl): Likewise.
16322         * doc/posix-functions/execle.texi (execle): Likewise.
16323         * doc/posix-functions/execlp.texi (execlp): Likewise.
16324         * doc/posix-functions/execv.texi (execv): Likewise.
16325         * doc/posix-functions/execve.texi (execve): Likewise.
16326         * doc/posix-functions/execvp.texi (execvp): Likewise.
16327         * doc/glibc-functions/canonicalize_file_name.texi
16328         (canonicalize_file_name): Cygwin 1.7 now provides this.
16329         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
16330         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
16331         on AT_SYMLINK_NOFOLLOW.
16332
16333 2009-09-24  Eric Blake  <ebb9@byu.net>
16334
16335         test-linkat: make test more robust
16336         * tests/test-linkat.c (main): Avoid collision with EEXIST.
16337
16338         getopt: fix inclusion guards for cygwin
16339         * modules/getopt-posix (Depends-on): Add include-next.
16340         (Makefile.am): Substitute more items in replacement header.
16341         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
16342         <getopt.h>.
16343         * lib/getopt.in.h (includes): Use split inclusion guard, and
16344         prefer <getopt.h> over include <unistd.h> when one is present.
16345         (option): Also override name of 'struct option'.
16346
16347         same-inode: revert prior change; it is not yet ready
16348         * NEWS: Undo mention of this change.
16349         * lib/same-inode.h (same-inode.h): Undo tri-state change.
16350         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16351         * lib/cycle-check.c (cycle_check): Likewise.
16352         * lib/same.c (same_name): Likewise.
16353         * lib/at-func2.c (at_func2): Likewise.
16354
16355 2009-09-23  Eric Blake  <ebb9@byu.net>
16356
16357         linkat: new module
16358         * modules/linkat: New file.
16359         * lib/at-func2.c (at_func2): Likewise.
16360         * lib/linkat.c (linkat): Likewise.
16361         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16362         * lib/openat-priv.h (at_func2): Add declaration.
16363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16364         * modules/unistd (Makefile.am): Substitute them.
16365         * lib/unistd.in.h (linkat): Declare it.
16366         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16367         * doc/posix-functions/linkat.texi (linkat): Likewise.
16368         * doc/posix-functions/link.texi (link): Tweak wording.
16369         * tests/test-link.c (main): Move guts...
16370         * tests/test-link.h (test_link): ...into new file.
16371         * modules/linkat-tests: New test.
16372         * tests/test-linkat.c: Likewise.
16373         * modules/link-tests (Files): Ship new file.
16374         (Depends-on): Add stdbool.
16375
16376         dirname: add library-safe mdir_name
16377         * lib/dirname.h (mdir_name): New prototype.
16378         * lib/dirname.c (dir_name): Move guts...
16379         (mdir_name): ...to new function that avoids xalloc_die.
16380
16381         fchdir: another mingw fix
16382         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
16383         * lib/fchdir.c (get_name): New helper method; skips canonicalize
16384         on mingw (where it has not yet been ported), and make it optional
16385         elsewhere.
16386         (_gl_register_fd): Use it.
16387
16388         same-inode: make SAME_INODE tri-state, to port to mingw
16389         * NEWS: Mention this change.
16390         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
16391         st_ino always being 0.
16392         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16393         * lib/cycle-check.c (cycle_check): Likewise.
16394         * lib/same.c (same_name): Likewise.
16395
16396         lstat: avoid mingw compilation error
16397         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
16398         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
16399         lstat ourselves.
16400         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
16401         was adequate.
16402         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
16403         the checks for lstat.
16404         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
16405
16406         link: fix test failure on Solaris 9
16407         * lib/link.c (rpl_link): Don't assume link will catch bogus
16408         trailing slash on source.
16409
16410         test-symlinkat: enhance test
16411         * tests/test-readlink.c (main): Move guts...
16412         * tests/test-readlink.h (test_readlink): ...into new file.
16413         * tests/test-symlink.c (main): Move guts...
16414         * tests/test-symlink.h (test_symlink): ...into new file.
16415         * tests/test-symlinkat.c (main): Use new files for further
16416         coverage.
16417         (do_symlink, do_readlink): New helper functions.
16418         * modules/symlink-tests (Files): Ship new file.
16419         (Depends-on): Add stdbool.
16420         * modules/readlink-tests (Files): Ship new file.
16421         (Depends-on): Add stdbool.
16422         * modules/symlinkat-tests (Files): Use new files.
16423
16424 2009-09-23  Eric Blake  <ebb9@byu.net>
16425
16426         readlink: document portability issue with symlink length
16427         * doc/posix-functions/lstat.texi (lstat): Mention that some file
16428         systems have bogus st_size on symlinks, and mention the
16429         areadlink-with-size module.
16430         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16431         * doc/posix-functions/readlink.texi (readlink): Mention the
16432         areadlink module, and ERANGE failure.
16433         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16434         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
16435
16436         readlink: fix Solaris 9 bug with trailing slash
16437         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
16438         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
16439         * doc/posix-functions/readlink.texi (readlink): Document this.
16440         * modules/readlink-tests: New test.
16441         * tests/test-readlink.c: Likewise.
16442
16443         readlink: fix cygwin 1.5.x bug with return type
16444         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
16445         * lib/unistd.in.h (readlink): Use ssize_t.
16446         * lib/readlink.c (readlink): Likewise.
16447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16448         * modules/unistd (Makefile.am): Substitute it.
16449         * lib/unistd.in.h (readlink): Declare replacement.
16450         * doc/posix-functions/readlink.texi (readlink): Document this.
16451
16452         symlink: use throughout gnulib
16453         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
16454         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
16455         symlink is not used.
16456         * modules/symlinkat (Depends-on): Add symlink.
16457         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16458         * modules/canonicalize-tests (Depends-on): Likewise.
16459         * modules/lstat-tests (Depends-on): Likewise.
16460         * modules/openat-tests (Depends-on): Likewise.
16461         * modules/remove-tests (Depends-on): Likewise.
16462         * modules/rmdir-tests (Depends-on): Likewise.
16463         * modules/unlink-tests (Depends-on): Likewise.
16464         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
16465         * tests/test-canonicalize.c (symlink): Likewise.
16466         * tests/test-fstatat.c (symlink): Likewise.
16467         * tests/test-lstat.c (symlink): Likewise.
16468         * tests/test-remove.c (symlink): Likewise.
16469         * tests/test-rmdir.c (symlink): Likewise.
16470         * tests/test-unlink.c (symlink): Likewise.
16471         * tests/test-unlinkat.c (symlink): Likewise.
16472
16473         symlink: new module, for Solaris 9 bug
16474         * modules/symlink: New file.
16475         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16476         * lib/symlink.c: Likewise.
16477         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
16478         * modules/unistd (Makefile.am): Substitute them.
16479         * lib/unistd.in.h (symlink): Declare replacement.
16480         * MODULES.html.sh (File system functions): Mention it.
16481         * doc/posix-functions/symlink.texi (symlink): Likewise.
16482         * modules/symlink-tests: New test.
16483         * tests/test-symlink.c: Likewise.
16484
16485 2009-09-23  Bruno Haible  <bruno@clisp.org>
16486
16487         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
16488         when needed.
16489         Test case: gnulib-tool --import --with-tests atexit inttypes.
16490         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
16491
16492 2009-09-23  Bruno Haible  <bruno@clisp.org>
16493
16494         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
16495         subcommand, not in a subshell.
16496
16497 2009-09-22  Eric Blake  <ebb9@byu.net>
16498
16499         unistd: sort replacement declarations
16500         * lib/unistd.in.h: Sort declarations.
16501
16502         open, openat: minor optimization
16503         * lib/open.c (open): If open succeeded, len is non-zero.
16504         * lib/openat.c (rpl_openat): Likewise.
16505
16506         link-follow: ensure correct result
16507         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
16508         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
16509         distinguish between possible failures.
16510
16511 2009-09-21  Eric Blake  <ebb9@byu.net>
16512
16513         fts: avoid compiler warning
16514         * lib/fts.c (dirent_inode_sort_may_be_useful)
16515         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
16516
16517 2009-09-19  Bruno Haible  <bruno@clisp.org>
16518
16519         * lib/progreloc.c (canonicalize_file_name): New declaration.
16520
16521 2009-09-19  Eric Blake  <ebb9@byu.net>
16522
16523         link: fix quoting
16524         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
16525
16526         openat: fix openat bugs on Solaris 9
16527         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
16528         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
16529         * modules/openat (Depends-on): Add open.
16530         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
16531         * modules/fcntl-h (Makefile.am): Substitute it.
16532         * lib/fcntl.in.h (openat): Declare replacement.
16533         * doc/posix-functions/openat.texi (openat): Document this.
16534
16535         openat: move fstatat and unlinkat into correct files
16536         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
16537         compiled.
16538         * lib/openat.c (fstatat, unlinkat): Move...
16539         * lib/fstatat.c (fstatat): ...into correct files.
16540         * lib/unlinkat.c (unlinkat): Likewise.
16541
16542         openat: fix unlinkat bugs on Solaris 9
16543         * lib/unlinkat.c (unlinkat): New file.
16544         * modules/openat (Depends-on): Add unlink.
16545         (Files): Distribute it.
16546         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
16547         trailing slash behavior is broken.
16548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16549         * modules/unistd (Makefile.am): Substitute it.
16550         * lib/unistd.in.h (unlinkat): Declare replacement.
16551         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
16552
16553         openat: fix fstatat bugs on Solaris 9
16554         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
16555         stat.
16556         * doc/posix-functions/fstatat.texi (fstatat): Document this.
16557
16558         test-unlinkat: enhance test, to expose Solaris 9 bug
16559         * tests/test-unlink.c (main): Factor guts...
16560         * tests/test-unlink.h (test_rmdir_func): ...into new file.
16561         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
16562         * tests/test-rmdir.c (main): Adjust caller.
16563         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
16564         (unlinker): New helper function.
16565         (rmdirat): Enhance check.
16566         * modules/rmdir-tests (Depends-on): Add stdbool.
16567         * modules/unlink-tests (Depends-on): Likewise.
16568         (Files): Add test-unlink.h.
16569         * modules/openat-tests (Files): Likewise.
16570         (Depends-on): Add unlinkdir.
16571
16572         test-fstatat: new test, to expose Solaris 9 bugs
16573         * tests/test-stat.c (main): Factor guts...
16574         * tests/test-stat.h (test_stat_func): ...into new file.
16575         * tests/test-lstat.c (main): Factor guts...
16576         * tests/test-lstat.h (test_lstat_func): ...into new file.
16577         * tests/test-fstatat.c: New file.
16578         * modules/stat-tests (Files): Add test-stat.h.
16579         * modules/lstat-tests (Files): Add test-lstat.h.
16580         (Depends-on): Add stdbool.
16581         * modules/openat-tests (Depends-on): Add pathmax.
16582         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
16583         (Makefile.am): Run new test.
16584
16585         remove: new module, for mingw and Solaris 9 bugs
16586         * modules/remove: New file.
16587         * lib/remove.c: Likewise.
16588         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
16589         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16590         * modules/stdio (Makefile.am): Use them.
16591         * lib/stdio.in.h (remove): Declare replacement.
16592         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16593         * doc/posix-functions/remove.texi (remove): Likewise.
16594         * modules/remove-tests: New test.
16595         * tests/test-remove.c: Likewise.
16596
16597         unlink: new module, for Solaris 9 bug
16598         * modules/unlink: New file.
16599         * lib/unlink.c: Likewise.
16600         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16602         * modules/unistd (Makefile.am): Use them.
16603         * lib/unistd.in.h (stat): Declare replacement.
16604         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16605         * doc/posix-functions/unlink.texi (unlink): Likewise.
16606         * modules/unlink-tests: New test.
16607         * tests/test-unlink.c: Likewise.
16608
16609         lstat: fix Solaris 9 bug
16610         * lib/lstat.c (lstat): Also check for trailing slash on
16611         non-symlink, non-directories.  Use stat module to simplify logic.
16612         * doc/posix-functions/lstat.texi (lstat): Document it.
16613         * modules/lstat-tests (Depends-on): Add errno, same-inode.
16614         (configure.ac): Check for symlink.
16615         * tests/test-lstat.c (main): Add more tests.
16616
16617         stat: add as dependency to other modules
16618         * modules/chown (Depends-on): Add stat.
16619         * modules/euidaccess (Depends-on): Likewise.
16620         * modules/fchdir (Depends-on): Likewise.
16621         * modules/isdir (Depends-on): Likewise.
16622         * modules/link (Depends-on): Likewise.
16623         * modules/lstat (Depends-on): Likewise.
16624         * modules/mkdir-p (Depends-on): Likewise.
16625         * modules/modechange (Depends-on): Likewise.
16626         * modules/open (Depends-on): Likewise.
16627         * modules/readlink (Depends-on): Likewise.
16628         * modules/same (Depends-on): Likewise.
16629
16630         stat: fix Solaris 9 bug
16631         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
16632         slash.
16633         * lib/stat.c (rpl_stat): Work around it.
16634         * doc/posix-functions/stat.texi (stat): Update documentation.
16635
16636         stat: new module, for mingw bug
16637         * modules/stat: New file.
16638         * lib/stat.c: Likewise.
16639         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16640         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16641         * modules/sys_stat (Makefile.am): Use them.
16642         * lib/sys_stat.in.h (stat): Declare replacement.
16643         * lib/openat.c (fstatat): Deal with lstat and stat being function
16644         macros.
16645         * modules/openat (Depends-on): Add inline.
16646         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16647         * doc/posix-functions/stat.texi (stat): Likewise.
16648         * modules/stat-tests: New test.
16649         * tests/test-stat.c: Likewise.
16650
16651 2009-09-19  Jim Meyering  <meyering@redhat.com>
16652
16653         syntax-check: detect unnecessary inclusion of canonicalize.h
16654         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
16655
16656 2009-09-19  Eric Blake  <ebb9@byu.net>
16657
16658         canonicalize-lgpl: adjust clients to use correct header
16659         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16660         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
16661         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
16662         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
16663         * lib/progreloc.c (includes): Likewise.
16664
16665 2009-09-19  Jim Meyering  <meyering@redhat.com>
16666
16667         test-posixtm.c: correct a comment
16668         * tests/test-posixtm.c: Correct first-line comment.
16669         Spotted by Eric Blake.
16670
16671 2009-09-16  Jim Meyering  <meyering@redhat.com>
16672
16673         posixtm-tests: make T const-correct; add a test case
16674         * tests/test-posixtm.c (T): Declare const.
16675         Add a test for -(2^31+1).
16676         Remove useless can-succeed-only-in-2002 test.
16677
16678         posixtm-tests: adjust the sole failing test
16679         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
16680         expected output matches what mktime now produces.  Cross-checked via
16681         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
16682
16683         posixtm: move #ifdef'd tests into a new module
16684         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
16685         * tests/test-posixtm.c: ... this new file.
16686         * modules/posixtm-tests: New module.
16687
16688 2009-09-19  Eric Blake  <ebb9@byu.net>
16689
16690         openat: simplify use of at-func.c
16691         * lib/at-func.c (includes): Include prerequisites here, to
16692         simplify requirements on client files.
16693         * lib/openat-priv.h: Add double-inclusion guard.
16694         * lib/faccessat.c (includes): Simplify.
16695         * lib/fchmodat.c (includes): Likewise.
16696         * lib/fchownat.c (includes): Likewise.
16697         * lib/mkdirat.c (includes): Likewise.
16698         * lib/mkfifoat.c (includes): Likewise.
16699         * lib/symlinkat.c (includes): Likewise.
16700
16701         openat: allow return of fd 0
16702         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
16703         * modules/save-cwd (Depends-on): Replace fcntl-safer with
16704         unistd-safer.
16705         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
16706         <fcntl.h>; this module does not leak fds.
16707         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
16708         must be allowed to return 0, leaving openat_safer to add the
16709         safety.
16710         (openat_permissive): Avoid writing to just-opened fd 2 if
16711         restoring the current directory fails.
16712         * lib/openat-die.c (openat_restore_fail): Add comment.
16713         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
16714         (save_cwd): Guarantee safe fd, but without use of open_safer.
16715         * tests/test-openat.c: New test.
16716         * modules/openat-tests (Files, Makefile.am): Distribute and build
16717         new file.
16718
16719         relocatable-prog-wrapper: fix build
16720         * modules/relocatable-prog-wrapper (Files): Update name of
16721         canonicalize m4 file, broken on 2009-09-17.
16722         Reported by emad hajjar <aleppos@hotmail.com>.
16723
16724 2009-09-19  Bruno Haible  <bruno@clisp.org>
16725
16726         * lib/safe-alloc.h: Use the standard header with GPL copyright.
16727         * lib/safe-alloc.c: Likewise.
16728         Reported by Ian Beckwith <ianb@erislabs.net>.
16729
16730 2009-09-18  Bruno Haible  <bruno@clisp.org>
16731
16732         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
16733         Reported by <erobles@sensacd.com.mx>.
16734
16735 2009-09-17  Eric Blake  <ebb9@byu.net>
16736
16737         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
16738         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
16739         slashes when checking if last component is missing.
16740         * tests/test-canonicalize.c (main): Test this.
16741
16742         canonicalize, canonicalize-lgpl: honor // if distinct from /
16743         * modules/canonicalize (Files): Add double-slash-root.m4.
16744         * modules/canonicalize-lgpl (Files): Likewise.
16745         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16746         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
16747         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
16748         fallback definition.
16749         (canonicalize_filename_mode): Use it to protect //.
16750         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
16751         (__realpath): Likewise.
16752         * tests/test-canonicalize.c (main): Test this.
16753         * tests/test-canonicalize-lgpl.c (main): Likewise.
16754         * modules/canonicalize-tests (Depends-on): Add same-inode.
16755         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16756
16757         canonicalize-lgpl: fix glibc bug with trailing slash
16758         * m4/canonicalize-lgpl.m4: Move contents...
16759         * m4/canonicalize.m4: ...here.
16760         (gl_CANONICALIZE_LGPL): Factor realpath check...
16761         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
16762         glibc 2.3.5 bug, fixed 2005-04-27.
16763         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
16764         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
16765         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
16766         * modules/canonicalize-lgpl (Files): Manage file rename.
16767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16768         * modules/stdlib (Makefile.am): Substitute witness.
16769         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
16770         is needed.
16771         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
16772         replacement is required.
16773         * lib/canonicalize.c (canonicalize_file_name): Likewise.
16774         * doc/glibc-functions/canonicalize_file_name.texi
16775         (canonicalize_file_name): Document this.
16776         * doc/posix-functions/realpath.texi (realpath): Likewise.
16777
16778         canonicalize-lgpl: reject non-directory with trailing slash
16779         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
16780         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
16781         catches failures in glibc 2.3.5.
16782         * tests/test-canonicalize.c (main): Likewise.
16783
16784         canonicalize-lgpl: use native realpath if it works
16785         * lib/canonicalize-lgpl.c (realpath): Guard with
16786         FUNC_REALPATH_WORKS.
16787         * lib/stdlib.in.h (realpath): Make declaration optional based on
16788         HAVE_REALPATH.
16789         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
16790         native realpath works.
16791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16792         * modules/stdlib (Makefile.am): Substitute witness.
16793
16794         canonicalize, canonicalize-lgpl: use <stdlib.h>
16795         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
16796         (Include): Mention <stdlib.h>.
16797         (configure.ac): Mention functions we provide.
16798         * modules/canonicalize (configure.ac): Likewise.
16799         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
16800         realpath if canonicalize_file_name is missing.
16801         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
16802         * modules/stdlib (Makefile.am): Substitute witnesses.
16803         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
16804         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
16805         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
16806         * NEWS: Document this.
16807         * doc/glibc-functions/canonicalize_file_name.texi
16808         (canonicalize_file_name): Likewise.
16809         * doc/posix-functions/realpath.texi (realpath): Likewise.
16810         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
16811
16812         test-canonicalize: consolidate into single C program
16813         * tests/test-canonicalize.sh: Delete; move setup into...
16814         * tests/test-canonicalize.c (main): ...the program, making it
16815         easier to run in debugger.  Add some tests.
16816         * modules/canonicalize-tests (Files): Remove unused file.
16817         (Depends-on): Add progname.
16818         (configure.ac, Makefile.am): Simplify.
16819
16820         test-canonicalize-lgpl: consolidate into single C program
16821         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
16822         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
16823         easier to run in debugger.  Add some tests.
16824         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
16825         (configure.ac, Makefile.am): Simplify.
16826
16827         canonicalize: avoid resolvepath
16828         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
16829         unnecessary checks.
16830         * lib/canonicalize.c (includes): Simplify.
16831         (canonicalize_file_name): Drop resolvepath implementation.
16832         * modules/canonicalize (Depends-on): Drop filenamecat.
16833
16834         canonicalize: don't lose errno
16835         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
16836         over calls to free.
16837
16838         canonicalize: simplify errno handling
16839         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
16840         assignment.
16841
16842         canonicalize, canonicalize-lgpl: update module dependencies
16843         * modules/canonicalize (Depends-on): Add extensions, lstat,
16844         pathmax, stdlib.
16845         (Files): Drop pathmax.h.
16846         (configure.ac): Adjust macro name.
16847         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
16848         lstat, stdlib, sys_stat.
16849         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
16850         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
16851         extensions.
16852         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
16853         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
16854         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
16855         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
16856         declaration, if available.
16857         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
16858         we can rely on the readlink module.
16859         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
16860         (includes): Use <unistd.h> unconditionally.
16861
16862 2009-09-17  Eric Blake  <ebb9@byu.net>
16863
16864         maint: make Include sections of modules consistent
16865         * modules/alloca: Use only header name; no need to list #include.
16866         * modules/alloca-opt: Likewise.
16867         * modules/arpa_inet: Likewise.
16868         * modules/canon-host: Likewise.
16869         * modules/configmake: Likewise.
16870         * modules/dirent: Likewise.
16871         * modules/eealloc: Likewise.
16872         * modules/environ: Likewise.
16873         * modules/fchdir: Likewise.
16874         * modules/fcntl: Likewise.
16875         * modules/fcntl-h: Likewise.
16876         * modules/gethrxtime: Likewise.
16877         * modules/gettime: Likewise.
16878         * modules/ignore-value: Likewise.
16879         * modules/inet_ntop: Likewise.
16880         * modules/inet_pton: Likewise.
16881         * modules/inttypes: Likewise.
16882         * modules/isnand-nolibm: Likewise.
16883         * modules/isnanf-nolibm: Likewise.
16884         * modules/mbchar: Likewise.
16885         * modules/mbfile: Likewise.
16886         * modules/mbiter: Likewise.
16887         * modules/mbuiter: Likewise.
16888         * modules/netdb: Likewise.
16889         * modules/netinet_in: Likewise.
16890         * modules/nproc: Likewise.
16891         * modules/pagealign_alloc: Likewise.
16892         * modules/poll: Likewise.
16893         * modules/printf-frexp: Likewise.
16894         * modules/pthread: Likewise.
16895         * modules/putenv: Likewise.
16896         * modules/random_r: Likewise.
16897         * modules/relocatable-prog: Likewise.
16898         * modules/search: Likewise.
16899         * modules/select: Likewise.
16900         * modules/selinux-h: Likewise.
16901         * modules/settime: Likewise.
16902         * modules/signal: Likewise.
16903         * modules/size_max: Likewise.
16904         * modules/socklen: Likewise.
16905         * modules/ssize_t: Likewise.
16906         * modules/stdarg: Likewise.
16907         * modules/stdbool: Likewise.
16908         * modules/stddef: Likewise.
16909         * modules/stdint: Likewise.
16910         * modules/stdio: Likewise.
16911         * modules/stdlib: Likewise.
16912         * modules/string: Likewise.
16913         * modules/strings: Likewise.
16914         * modules/sys_file: Likewise.
16915         * modules/sys_ioctl: Likewise.
16916         * modules/sys_select: Likewise.
16917         * modules/sys_socket: Likewise.
16918         * modules/sys_stat: Likewise.
16919         * modules/sys_time: Likewise.
16920         * modules/sys_times: Likewise.
16921         * modules/sys_utsname: Likewise.
16922         * modules/sys_wait: Likewise.
16923         * modules/sysexits: Likewise.
16924         * modules/time: Likewise.
16925         * modules/times: Likewise.
16926         * modules/tmpfile: Likewise.
16927         * modules/trim: Likewise.
16928         * modules/unistd: Likewise.
16929         * modules/wchar: Likewise.
16930         * modules/wctype: Likewise.
16931
16932 2009-09-17  Bruno Haible  <bruno@clisp.org>
16933
16934         Make getdate.y compile on QNX and NetBSD 5 / i386.
16935         * m4/getdate.m4 (gl_GETDATE): Conditionally define
16936         TIME_T_FITS_IN_LONG_INT.
16937         * lib/getdate.y (long_time_t): New type.
16938         (relative_time): Change type of 'seconds' field to long_time_t.
16939         (get_date): Update types of local variables. Check against overflow
16940         during conversion from long_time_t to time_t.
16941         Reported by Matt Kraai <kraai@ftbfs.org>
16942         and Hasso Tepper <hasso@netbsd.org>.
16943
16944 2009-09-17  Bruno Haible  <bruno@clisp.org>
16945
16946         * modules/COPYING: Update copyright years.
16947         * modules/README: Likeiwse.
16948         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
16949         Reported by Ian Beckwith <ianb@erislabs.net>.
16950
16951 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
16952
16953         * users.txt: Update references for gnuit package.
16954
16955 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
16956
16957         * m4/getdelim.m4: Fix typo in copyright line.
16958
16959 2009-09-17  Bruno Haible  <bruno@clisp.org>
16960
16961         * lib/atoll.c: Use the standard header with GPL copyright.
16962         * lib/argz.in.h: Likewise.
16963         * lib/glob.c: Likewise.
16964         * lib/glob-libc.h: Likewise.
16965         * lib/random_r.c: Likewise.
16966         * lib/siglist.h: Likewise.
16967         * lib/strsignal.c: Likewise.
16968         Reported by Ian Beckwith <ianb@erislabs.net>.
16969
16970 2009-09-17  Eric Blake  <ebb9@byu.net>
16971
16972         rmdir: ensure correct dependency order
16973         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
16974
16975 2009-09-17  Bruno Haible  <bruno@clisp.org>
16976
16977         Disable assertion that fails on NetBSD 5 / i386.
16978         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
16979         Reported by Sam Steingold <sds@gnu.org>
16980         and Hasso Tepper <hasso@netbsd.org>.
16981
16982 2009-09-16  Eric Blake  <ebb9@byu.net>
16983
16984         unlinkdir: port to mingw
16985         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
16986         on which no one can unlink a directory.
16987
16988         stdlib: sort witness names
16989         * modules/stdlib (Makefile.am): Sort replacements.
16990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
16991         * lib/stdlib.in.h: Likewise.
16992
16993         parse-duration-tests: avoid link failure
16994         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
16995         LIBINTL.
16996         Reported by Tom G. Christensen.
16997
16998         openat-tests: ensure unlinkat behaves like rmdir
16999         * tests/test-rmdir.c (main): Factor guts...
17000         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
17001         * modules/rmdir-tests (Files): Ship new file.
17002         * modules/openat-tests: New test.
17003         * tests/test-unlinkat.c: Likewise.
17004
17005         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
17006         * modules/rmdir-errno (Status, Notice): Now obsolete.
17007
17008         rmdir: work around cygwin 1.5.x and mingw bugs
17009         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
17010         * lib/rmdir.c (rmdir): Work around it.
17011         * modules/rmdir (Status, Notice): No longer obsolete.
17012         (Files): Add dos.m4.
17013         (Depends-on): Add unistd.
17014         (configure.ac): Set witnesses.
17015         (License): Relax to LGPLv2+.
17016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
17017         * modules/unistd (Makefile.am): Substitute witnesses.
17018         * lib/unistd.in.h (rmdir): Declare replacement.
17019         * doc/posix-functions/rmdir.texi (rmdir): Document this.
17020         * modules/rmdir-tests: New tests.
17021         * tests/test-rmdir.c: Likewise.
17022
17023 2009-09-15  Eric Blake  <ebb9@byu.net>
17024
17025         fchdir: improve use of replacement functions
17026         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
17027         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
17028         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
17029         REPLACE_CLOSEDIR.
17030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
17031         * modules/sys_stat (Makefile.am): Substitute correct witness.
17032         * modules/dirent (Makefile.am): Likewise.
17033         * modules/unistd (Makefile.am): Likewise.
17034         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
17035         * lib/unistd.in.h (dup): Likewise.
17036         * lib/sys_stat.in.h (fstat): Likewise.
17037
17038         maint: ignore gnulib-tool temp files
17039         * .gitignore: Ignore files created during gnulib-tool --test.
17040
17041 2009-09-13  Jim Meyering  <meyering@redhat.com>
17042
17043         posixtm: don't reject a time that specify "60" as the number of seconds
17044         * lib/posixtm.c (posixtime): The code to reject invalid dates
17045         would also reject a time specified with the .60 suffix.
17046         But POSIX allows that, in order to accommodate leap seconds.
17047         So don't reject it.
17048         (main): Adjust tests accordingly.
17049         * modules/posixtm (Depends-on): Add stpcpy.
17050
17051 2009-09-11  Jim Meyering  <meyering@redhat.com>
17052
17053         announce-gen: include [$release_type] in emitted Subject:
17054         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
17055         e.g., [stable] in the emitted Subject: line.
17056
17057 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17058
17059         Remove obsolete macros from several modules.
17060         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
17061         obsolete Autoconf macros with their modern counterparts.
17062         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
17063         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
17064         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
17065         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
17066         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
17067         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17069         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17070         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17071         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
17072         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17073         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17074         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
17075         * m4/sockets.m4 (gl_SOCKETS): Likewise.
17076         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
17077         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
17078         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
17079         * m4/time_r.m4 (gl_TIME_R): Likewise.
17080         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17081         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
17082         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
17083
17084         Fix copyright header in build-aux scripts.
17085         * build-aux/git-version-gen: Fix copyright header to match GPLv3
17086         recommendation.
17087         * build-aux/ncftpput-ftp: Likewise.
17088         * build-aux/update-copyright: Likewise.
17089
17090 2009-09-09  Eric Blake  <ebb9@byu.net>
17091
17092         test-link: allow Linux choice of errno
17093         * tests/test-link.c (main): Relax test for alternate error.
17094
17095         strndup: fix improper m4 caching
17096         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
17097         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
17098         (gl_PREREQ_STRNDUP): Delete.
17099         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
17100         * modules/string (Makefile.am): Substitute it.
17101         * lib/string.in.h (strndup): Modernize prototype.
17102
17103         getcwd: port to mingw
17104         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
17105         different from the POSIX assumptions made throughout the getcwd
17106         module; fortunately, the mingw getcwd does not need replacement.
17107         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
17108         * modules/getcwd-tests: New test.
17109         * tests/test-getcwd.c: Likewise.
17110
17111         link: fix platform bugs
17112         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
17113         * lib/link.c (link): Work around them.  Fix related mingw bug.
17114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
17115         * modules/unistd (Makefile.am): Substitute it.
17116         * lib/unistd.in.h (link): Declare replacement.
17117         * doc/posix-functions/link.texi (link): Document this.
17118         * modules/link (Depends-on): Add strdup-posix, sys_stat.
17119
17120         test-link: consolidate into single C program, test more cases
17121         * tests/test-link.sh: Delete.
17122         * tests/test-link.c: Test more error conditions.  Exposes bugs on
17123         at least Cygwin and Solaris.
17124         * modules/link-tests (Files): Remove unused file.
17125         (Depends-on): Add errno, sys_stat.
17126         (Makefile.am): Simplify.
17127
17128 2009-09-08  Bruno Haible  <bruno@clisp.org>
17129
17130         Work around towlower, towupper bug on mingw.
17131         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
17132         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
17133         * doc/posix-functions/towlower.texi: Mention the mingw bug.
17134         * doc/posix-functions/towupper.texi: Likewise.
17135         Reported by Eric Blake.
17136
17137 2009-09-08  Jim Meyering  <meyering@redhat.com>
17138
17139         build: don't try to run autoheader if we don't use it
17140         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
17141         is not used in configure.ac.
17142
17143 2009-09-08  Eric Blake  <ebb9@byu.net>
17144
17145         euidaccess: fix compilation error
17146         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
17147
17148         rawmemchr: relax license
17149         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
17150         okay.
17151         Reported by Jim Meyering.
17152
17153         mkfifoat: new module
17154         * modules/mkfifoat: New file.
17155         * lib/mkfifoat.c: Likewise.
17156         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
17157         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17158         * modules/sys_stat (Makefile.am): Use them.
17159         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
17160         * MODULES.html.sh (File system functions): Mention module.
17161         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17162         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17163         * modules/mkfifoat-tests: New test.
17164         * tests/test-mkfifoat.c: Likewise.
17165
17166         strchrnul: relax license
17167         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
17168         okay.
17169         Reported by Jim Meyering.
17170
17171 2009-09-08  Eric Blake  <ebb9@byu.net>
17172
17173         fstatat: fix compilation on Solaris
17174         * lib/fstatat.c (includes): Add fcntl.h.
17175         Reported by Pádraig Brady.
17176
17177 2009-09-07  Eric Blake  <ebb9@byu.net>
17178
17179         rename: modernize replacement
17180         * modules/rename (Depends-on): Add stdio.
17181         (configure.ac): Declare witness.
17182         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
17183         stdio take care of replacement.
17184         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17185         * modules/stdio (Makefile.am): Substitute them.
17186         * lib/stdio.in.h (rename): Declare replacement.
17187         * lib/rename.c (includes): Allow cross-compilation to non-windows
17188         machines.
17189         * doc/posix-functions/rename.texi (rename): Improve
17190         documentation.
17191
17192         stdio: sort witness names
17193         * modules/stdio (Makefile.am): Sort replacements.
17194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17195         * lib/stdio.in.h: Likewise.
17196
17197         getcwd: minor cleanups
17198         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
17199         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
17200
17201         openat: provide more convenience names
17202         * modules/faccessat (configure.ac): Add C witness.
17203         * lib/unistd.in.h (readlinkat): Fix typo.
17204         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
17205         convenience wrappers.
17206         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
17207         wrappers in syntax checks.
17208
17209 2009-09-06  Eric Blake  <ebb9@byu.net>
17210
17211         doc: fix comments in recent patches
17212         * lib/faccessat.c: Mention correct function.
17213         * lib/fchmodat.c: Likewise.
17214         * lib/fchownat.c: Likewise.
17215         * lib/symlinkat.c: Likewise.
17216         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
17217         constants.
17218
17219         faccessat, symlinkat: continue cleanup of previous patch
17220         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
17221         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17222         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
17223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
17224         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
17225         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
17226         set.
17227
17228 2009-09-06  Bruno Haible  <bruno@clisp.org>
17229
17230         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
17231         (fstatat): Declare if GNULIB_FSTATAT is set.
17232         (mkdirat): Declare if GNULIB_MKDIRAT is set.
17233         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
17234         (unlinkat): Declare if GNULIB_UNLINKAT is set.
17235         * modules/fcntl-h (Files): Remove m4/openat.m4.
17236         * modules/sys_stat (Files): Remove m4/openat.m4.
17237         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
17238         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
17239         * modules/unistd (Files): Remove m4/openat.m4.
17240         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
17241         GNULIB_OPENAT.
17242         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
17243         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
17244         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
17245         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
17246         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
17247         gl_OPENAT_DEFAULTS.
17248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
17249         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
17250         Don't require gl_OPENAT_DEFAULTS.
17251         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
17252         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
17253         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
17254         (gl_OPENAT_DEFAULTS): Remove macro.
17255
17256 2009-09-06  Bruno Haible  <bruno@clisp.org>
17257
17258         * modules/openat (configure.ac): Remove unneeded witness.
17259
17260 2009-09-06  Bruno Haible  <bruno@clisp.org>
17261
17262         Set errno to ENOSYS when a function is entirely unsupported.
17263         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
17264         EOPNOTSUPP.
17265         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17266         * modules/chown (Depends-on): Remove errno.
17267
17268 2009-09-06  Bruno Haible  <bruno@clisp.org>
17269
17270         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
17271
17272 2009-09-06  Bruno Haible  <bruno@clisp.org>
17273
17274         * lib/sys_stat.in.h: Fix preprocessor command indentation.
17275
17276 2009-09-06  Ben Pfaff  <blp@gnu.org>
17277             Bruno Haible  <bruno@clisp.org>
17278
17279         Work around a glibc bug in strtok_r.
17280         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
17281         Undefine if UNDEFINE_STRTOK_R is set.
17282         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
17283         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17284         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
17285         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
17286         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
17287         UNDEFINE_STRTOK_R.
17288         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
17289
17290 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17291
17292         exclude: minor fix
17293         * lib/exclude.c: Include wctype.h
17294
17295 2009-09-06  Akim Demaille  <demaille@gostai.com>
17296
17297         bootstrap: improve error message
17298         * build-aux/bootstrap (find_tool): Upon failure, report the list
17299         of candidates.
17300         Honor the initial value of the envvar.
17301
17302 2009-09-05  Eric Blake  <ebb9@byu.net>
17303
17304         symlinkat: new module
17305         * modules/symlinkat: New file.
17306         * lib/symlinkat.c: Likewise.
17307         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
17308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17309         * modules/unistd (Makefile.am): Use them.
17310         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
17311         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
17312         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
17313         * MODULES.html.sh (File system functions): Mention module.
17314         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17315         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17316         * modules/symlinkat-tests: New test.
17317         * tests/test-symlinkat.c: Likewise.
17318
17319         test-openat-safer: add more checks
17320         * tests/test-openat-safer.c (main): Check more code paths.
17321
17322 2009-09-05  Jim Meyering  <meyering@redhat.com>
17323
17324         syntax-check: detect unnecessary inclusion of openat.h
17325         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
17326
17327 2009-09-05  Bruno Haible  <bruno@clisp.org>
17328
17329         Support towlower, towupper.
17330         * doc/posix-functions/towlower.texi: Mention module wctype.
17331         * doc/posix-functions/towupper.texi: Likewise.
17332         * lib/wctype.in.h (towlower, towupper): New functions.
17333         * tests/test-wctype.c: Include stdio.h, stdlib.h.
17334         (ASSERT): New macro.
17335         (e): New variable.
17336         (main): Test also towlower, towupper. Test WEOF argument.
17337         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
17338
17339 2009-09-05  Bruno Haible  <bruno@clisp.org>
17340
17341         Fix conversion behaviour when the input is invalid.
17342         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
17343         mark occurring in first pass of indirect conversion.
17344         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
17345         input.
17346         Found by clang's static analyzer.
17347
17348 2009-09-05  Bruno Haible  <bruno@clisp.org>
17349
17350         * tests/test-striconveh.c (main): Test indirect conversion on platforms
17351         where direct conversion is possible.
17352
17353 2009-09-04  Eric Blake  <ebb9@byu.net>
17354
17355         openat: fail with ENOENT on empty name
17356         * lib/openat-proc.c (openat_proc_name): Special-case the empty
17357         buffer.
17358
17359         link-follow: fix logic bug in prior patch
17360         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
17361         reversed sense of yes and no in prior patch.  Avoid confusing
17362         compilation failure with desired semantics.
17363
17364         link-follow: accomodate mingw and cross-compilation
17365         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
17366         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
17367         cross-compilation results to -1, to make linkat easier to
17368         implement when cross-compiling.  Trivially support mingw.
17369         * modules/link-follow (configure.ac): Call new name.
17370         * NEWS: Mention this.
17371
17372 2009-09-03  Eric Blake  <ebb9@byu.net>
17373
17374         faccessat: compile replacement
17375         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
17376         needed.
17377
17378         fts: fix compilation error
17379         * lib/fts.c (includes): Re-add "openat.h", for
17380         openat_needs_fchdir.
17381
17382         faccessat: new module
17383         * modules/faccessat: New file.
17384         * lib/faccessat.c: Likewise.
17385         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17387         * modules/unistd (Makefile.am): Use it.
17388         * lib/unistd.in.h (faccessat): Declare it.
17389         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
17390         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
17391         * MODULES.html.sh (File system functions): Mention it.
17392         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
17393         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17394
17395         euidaccess: prefer POSIX over non-standard implementation
17396         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
17397         * lib/euidaccess.c (euidaccess): Use it if available.
17398
17399         openat: make template easier to use
17400         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
17401         AT_FUNC_F2 to be undefined.
17402         (VALIDATE_FLAG): New macro; use it to reject bad flags.
17403         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
17404         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
17405         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
17406         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
17407         Likewise.
17408         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
17409         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
17410         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
17411         Likewise.
17412
17413         openat: declare in POSIX headers
17414         * NEWS: Mention this.
17415         * modules/openat (configure.ac): Declare witnesses.
17416         (Depends-on): Add fcntl-h, sys_stat, unistd.
17417         (Include): Mention correct headers.
17418         * modules/fcntl-h (Depends-on): Add link-warning.
17419         (Files): Add openat.m4.
17420         (Makefile.am): Substitute witnesses.
17421         * modules/sys_stat (Files, Makefile.am): Likewise.
17422         * modules/unistd (Files, Makefile.am): Likewise.
17423         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
17424         (gl_OPENAT_DEFAULTS): New macro.
17425         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
17426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
17427         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
17428         (SYS_STAT_H): Remove unused variable.
17429         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
17430         * lib/fcntl--.h (includes): Remove unneeded header.
17431         * lib/openat-safer.c (includes): Likewise.
17432         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
17433         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
17434         appropriate headers.
17435         (__OPENAT_PREFIX): Delete.
17436         * lib/fcntl.in.h (openat): Provide declaration.
17437         (AT_FDCWD): Fix Solaris bug.
17438         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
17439         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
17440         * lib/fchmodat.c (includes):  Adjust to find declaration.
17441         * lib/fchownat.c (includes): Likewise.
17442         * lib/mkdirat.c (includes): Likewise.
17443         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
17444         still visible.
17445
17446 2009-09-02  Eric Blake  <ebb9@byu.net>
17447
17448         errno: use consistently
17449         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
17450         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
17451         * lib/canonicalize.c (ELOOP): Likewise.
17452         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
17453         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
17454         * lib/lchown.c (EOPNOTSUPP): Likewise.
17455         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
17456         * lib/savewd.c (ESTALE): Likewise.
17457         * lib/settime.c (ENOSYS): Likewise.
17458         * lib/utimens.c (ENOSYS): Likewise.
17459         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
17460         * lib/chdir-safer.c (ELOOP): Likewise.
17461         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
17462         * modules/c-stack (Depends-on): Add errno.
17463         * modules/canonicalize (Depends-on): Likewise.
17464         * modules/chdir-safer (Depends-on): Likewise.
17465         * modules/fdopendir (Depends-on): Likewise.
17466         * modules/inet_ntop (Depends-on): Likewise.
17467         * modules/inet_pton (Depends-on): Likewise.
17468         * modules/lchown (Depends-on): Likewise.
17469         * modules/openat (Depends-on): Likewise.
17470         * modules/savewd (Depends-on): Likewise.
17471         * modules/settime (Depends-on): Likewise.
17472         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
17473
17474         fts: avoid leaking fds
17475         * modules/fts (Depends-on): Add cloexec.
17476         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
17477         flag.
17478
17479         fts: make directory fds more robust
17480         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
17481         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
17482
17483         backupfile, chdir-long, fts, savedir: make safer
17484         * lib/backupfile.c (includes): Use "dirent--.h", since
17485         numbered_backup can write to stderr during readdir.
17486         * lib/savedir.c (includes): Likewise.
17487         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
17488         emulation can write to stderr on failure.
17489         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
17490         * lib/getcwd.c: Document why opendir_safer is unused.
17491         * lib/glob.c: Likewise.
17492         * lib/scandir.c: Likewise.
17493         * lib/openat-proc.c: Likewise, for open_safer.
17494         * modules/backupfile (Depends-on): Add dirent-safer.
17495         * modules/savedir (Depends-on): Likewise.
17496         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
17497         * modules/chdir-long (Depends-on): Add openat-safer.
17498
17499         openat-safer: new module
17500         * modules/openat-safer: New file.
17501         * lib/openat-safer.c: Likewise.
17502         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
17503         * lib/fcntl-safer.h (openat_safer): Declare.
17504         * lib/fcntl--.h (openat): Override.
17505         * MODULES.html.sh (File descriptor based I/O): Mention it.
17506         * lib/openat.h: Add double-inclusion guards.
17507         * lib/openat.c (includes): Only include "fcntl-safer.h", not
17508         "fcntl--.h", so we can implement openat.
17509         * modules/openat-safer-tests: New test.
17510         * tests/test-openat-safer.c: New file.
17511
17512         dirent-safer: new module
17513         * modules/dirent-safer: New file.
17514         * lib/dirent--.h: Likewise.
17515         * lib/dirent-safer.h: Likewise.
17516         * lib/opendir-safer.c: Likewise.
17517         * m4/dirent-safer.m4: Likewise.
17518         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
17519         * modules/dirent-safer-tests: New test.
17520         * tests/test-dirent-safer.c: New file.
17521         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
17522
17523         fdopendir: optimize on mingw
17524         * lib/unistd.in.h (_gl_directory_name): New prototype.
17525         * lib/fchdir.c (_gl_directory_name): Implement it.
17526         (fchdir): Use it to simplify implementation.
17527         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
17528         fchdir, when available, to avoid calling [f]chdir().
17529
17530         fdopendir: split into its own module
17531         * lib/openat.c (fdopendir): Move...
17532         * lib/fdopendir.c: ...into new file.
17533         * modules/fdopendir: New module.
17534         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
17535         * modules/openat (Depends-on): Add fdopendir.
17536         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
17537         fdopendir here.
17538         * modules/savedir (Depends-on): Only need fdopendir, not full
17539         openat.
17540         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
17541         * lib/openat.h (fdopendir): Drop prototype.
17542         * lib/dirent.in.h (fdopendir): Provide prototype.
17543         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
17544         * modules/dirent (Makefile.am): Substitute them.
17545         * MODULES.html.sh (File system functions): Mention it.
17546         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
17547         * modules/fdopendir-tests: New file.
17548         * tests/test-fdopendir.c: Likewise.
17549
17550         fchdir: use more consistent macro convention
17551         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
17552         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
17553         REPLACE_FCHDIR, rather than relying on config.h macros.
17554         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
17555         inside a single make-time REPLACE_FCHDIR block, rather than using
17556         the config.h FCHDIR_REPLACEMENT.
17557         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
17558         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
17559         Manage fstat replacement.
17560         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
17561         REPLACE_FCHDIR.
17562         * modules/sys_stat (Files): Add m4/unistd_h.m4.
17563         (Makefile.am): Substitute REPLACE_FCHDIR.
17564         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
17565         FCHDIR_REPLACEMENT.
17566         * lib/dup-safer.c (dup_safer): Likewise.
17567         * lib/dup2.c (rpl_dup2): Likewise.
17568         * lib/dup3.c (rpl_dup3): Likewise.
17569         * lib/open.c (rpl_open): Likewise.
17570
17571         fchdir: simplify error handling, and support dup3
17572         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
17573         stdbool, malloc-posix, realloc-posix.
17574         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
17575         (ensure_dirs_slot): Return false on allocation failure.
17576         (rpl_dup2): Delete.
17577         (_gl_register_dup): New function.
17578         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
17579         (_gl_register_fd): Close fd on allocation failure.
17580         * lib/fcntl.in.h (_gl_register_fd): Update signature.
17581         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
17582         prototype.
17583         (rpl_dup2_fchdir): Delete prototype.
17584         * lib/open.c (open): Update caller.
17585         * lib/dup2.c (dup2): Track fchdir metadata.
17586         * lib/dup3.c (dup3): Likewise.
17587         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
17588         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
17589
17590 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17591
17592         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
17593         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
17594         don't pass arguments to AC_OUTPUT.
17595
17596 2009-09-02  Bruno Haible  <bruno@clisp.org>
17597
17598         * modules/mkdtemp (License): Relicense under LGPLv2+.
17599         Reported by Paolo Bonzini.
17600
17601 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17602
17603         Replace uses of obsolete autoconf macros in Jim's modules.
17604         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
17605         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
17606         can evoke a warning from autoconf when run with -Wobsolete
17607         enabled.  They were declared obsolete for good reasons (see
17608         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
17609         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
17610         should not continue using the deprecated macros.
17611         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
17612         obsolete Autoconf macros with modern counterparts.
17613         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17614         * m4/dos.m4 (gl_AC_DOS): Likewise.
17615         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
17616         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17617         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
17618         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
17619         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
17620         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
17621         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
17622         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
17623         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
17624         Likewise.
17625         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17626         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
17627         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
17628         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
17629         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17630         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
17631
17632 2009-09-01  Eric Blake  <ebb9@byu.net>
17633
17634         fchdir: fix off-by-one bug in previous patch
17635         * lib/fchdir.c (rpl_fstat): Use correct bounds.
17636         (_gl_unregister_fd): Delete useless if.
17637
17638 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
17639
17640         maint.mk: sort the list of syntax-check rules
17641         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
17642         easier to get a sense of progress when the rules are run sequentially
17643         and take a long time.
17644
17645 2009-09-01  Simon Josefsson  <simon@josefsson.org>
17646
17647         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
17648         * modules/netinet_in: Likewise.
17649         * modules/sys_file: Likewise.
17650         * modules/sys_ioctl: Likewise.
17651         * modules/sys_select: Likewise.
17652         * modules/sys_socket: Likewise.
17653         * modules/sys_stat: Likewise.
17654         * modules/sys_time: Likewise.
17655         * modules/sys_times: Likewise.
17656         * modules/sys_utsname: Likewise.
17657         * modules/sys_wait: Likewise.
17658
17659 2009-09-01  Jim Meyering  <meyering@redhat.com>
17660
17661         fts: help ensure that return values are not ignored
17662         * lib/fts_.h (__GNUC_PREREQ): Define.
17663         (__attribute_warn_unused_result__): Define.
17664         (fts_children, fts_close, fts_open, fts_read): Declare with
17665         __attribute_warn_unused_result__.
17666
17667         fts: fts_close now fails also when closing a dir file descriptor fails
17668         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
17669         and propagate to caller, along with errno.
17670
17671         announce-gen: correct formatting in --help output
17672         * build-aux/announce-gen (usage): Move the one-line description in
17673         --help output "up", to where it belongs, just after Usage:.
17674
17675 2009-08-31  Eric Blake  <ebb9@byu.net>
17676
17677         fchdir: port to mingw
17678         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
17679         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
17680         opened, then use a substitute.
17681         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
17682         replacement.
17683         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
17684         (_gl_register_fd): No need to check stat if open already filters
17685         all directories.
17686         (fchdir): Fix error condition to match POSIX.
17687         * modules/fchdir (Depends-on): Add sys_stat.
17688         * doc/posix-functions/open.texi (open): Document the limitation.
17689         * modules/fchdir-tests: New file.
17690         * tests/test-fchdir.c: Likewise.
17691
17692         canonicalize: allow cross-testing from cygwin to mingw
17693         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
17694         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
17695         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
17696         Likewise.
17697         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
17698         target does not support symlinks.
17699         * tests/test-canonicalize-lgpl.sh: Likewise.
17700
17701         chown: avoid compilation warning on mingw
17702         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
17703         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
17704         mingw.
17705         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17706         * modules/chown (Depends-on): Add errno.
17707
17708 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17709
17710         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
17711         command.
17712
17713 2009-08-31  Jim Meyering  <meyering@redhat.com>
17714
17715         canonicalize: remove useless initialization
17716         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
17717         initialization of local, "end".
17718
17719 2009-08-30  Bruno Haible  <bruno@clisp.org>
17720
17721         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
17722         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
17723         ENOSYS.
17724
17725 2009-08-30  Bruno Haible  <bruno@clisp.org>
17726
17727         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
17728         /usr/xpg4/bin/tr when it exists.
17729         * tests/test-pipe-filter-gi1.sh: Likewise.
17730
17731 2009-08-30  Bruno Haible  <bruno@clisp.org>
17732
17733         Work around deficient /usr/bin/id program on Solaris.
17734         * tests/test-file-has-acl.sh (ID): New variable.
17735         * tests/test-set-mode-acl.sh (ID): Likewise.
17736         * tests/test-copy-acl.sh (ID): Likewise.
17737         * tests/test-copy-file.sh (ID): Likewise.
17738
17739 2009-08-30  Bruno Haible  <bruno@clisp.org>
17740
17741         New module 'xstriconveh'.
17742         * lib/xstriconveh.h: New file.
17743         * lib/xstriconveh.c: New file.
17744         * modules/xstriconveh: New file.
17745
17746 2009-08-30  Bruno Haible  <bruno@clisp.org>
17747
17748         Make it easier to use mem_cd_iconveh.
17749         * lib/striconveh.h (iconveh_t): New type.
17750         (iconveh_open, iconveh_close): New declarations.
17751         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17752         with a single 'const iconveh_t *' argument.
17753         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
17754         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17755         with a single 'const iconveh_t *' argument.
17756         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
17757         * tests/test-striconveh.c (main): Update.
17758         * NEWS: Mention the change.
17759
17760 2009-08-30  Bruno Haible  <bruno@clisp.org>
17761
17762         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
17763         problem.
17764
17765 2009-08-30  Bruno Haible  <bruno@clisp.org>
17766
17767         Work around iconv_open problem on Solaris.
17768         * lib/iconv_open-solaris.gperf: New file.
17769         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
17770         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
17771         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
17772         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
17773         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
17774         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
17775
17776 2009-08-29  Jim Meyering  <meyering@redhat.com>
17777
17778         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
17779         * top/maint.mk (cvs-check): Remove target; it was just an alias
17780         to the better-named vc-diff-check.
17781         (maintainer-distcheck): Remove rule.  It was used only from
17782         the (alpha/beta/major) target, and all of its commands but one
17783         were coreutils-specific.
17784         (vc-dist): Remove rule.
17785         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
17786         Run vc-diff-check, not vc-dist.
17787         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
17788
17789 2009-08-27  Bruno Haible  <bruno@clisp.org>
17790
17791         * tests/test-bitrotate.c (main): Remove test that uses a shift count
17792         of 0.
17793
17794 2009-08-27  Bruno Haible  <bruno@clisp.org>
17795
17796         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
17797         compilers.
17798         * doc/func.texi: Document the SunPRO C bug.
17799
17800 2009-08-27  Bruno Haible  <bruno@clisp.org>
17801
17802         Fix link error on Solaris.
17803         * tests/test-parse-duration.c (xstrdup): Remove function.
17804
17805 2009-08-26  Pádraig Brady  <P@draigbrady.com>
17806
17807         ignore-value: handle pointer types, too
17808         * lib/ignore-value.h (__attribute__): Remove definition.
17809         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
17810         of a more concise and more-often effective "(void) i" statement.
17811         (ignore_ptr): New function to suppress warnings from functions that
17812         return pointers, and to make it explicit that one function doesn't
17813         handle all cases.
17814
17815 2009-08-25  Bruno Haible  <bruno@clisp.org>
17816
17817         dup2: work around a Linux bug.
17818         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
17819         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
17820         * doc/posix-functions/dup2.texi: Mention the Linux bug.
17821         Reported by Simon Josefsson.
17822
17823 2009-08-25  Jim Meyering  <meyering@redhat.com>
17824
17825         libguestfs uses gnulib
17826         * users.txt: Add libguestfs.
17827
17828 2009-08-24  Eric Blake  <ebb9@byu.net>
17829
17830         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
17831         * lib/pipe2.c (includes): Add binary-io.h.
17832         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
17833
17834 2009-08-24  Bruno Haible  <bruno@clisp.org>
17835
17836         Tolerate declared but missing accept4 syscall.
17837         * lib/accept4.c (accept4): Invoke original accept4 function first, if
17838         available.
17839         * lib/sys_socket.in.h (accept4): If the function is already present,
17840         override it.
17841         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
17842         * modules/accept4 (Makefile.am): Compile accept4.c always.
17843         Reported by Paolo Bonzini and Eric Blake.
17844
17845 2009-08-23  Bruno Haible  <bruno@clisp.org>
17846
17847         New module 'accept4'.
17848         * lib/sys_socket.in.h (accept4): New declaration.
17849         * lib/accept4.c: New file.
17850         * m4/accept4.m4: New file.
17851         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17852         GNULIB_ACCEPT4, HAVE_ACCEPT4.
17853         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
17854         HAVE_ACCEPT4.
17855         * modules/accept4: New file.
17856         * doc/glibc-functions/accept4.texi: Mention the new module.
17857
17858 2009-08-24  Jim Meyering  <meyering@redhat.com>
17859
17860         progname: also set global program_invocation_name, when possible
17861         Before this change, a libtool-enabled program that calls glibc's
17862         error function would report the program name as
17863         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
17864         * modules/progname (configure.ac): Check for a declaration of
17865         program_invocation_name.
17866         * lib/progname.c:  Include <errno.h>.
17867         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
17868         Set program_invocation_name.
17869
17870 2009-08-23  Bruno Haible  <bruno@clisp.org>
17871
17872         * lib/dup3.c: Include <string.h>.
17873
17874 2009-08-23  Bruno Haible  <bruno@clisp.org>
17875
17876         * lib/dup3.c (dup3): Test only once whether the system actually exists.
17877         * lib/pipe2.c (pipe2): Likewise.
17878         Suggested by Eric Blake.
17879
17880 2009-08-23  Bruno Haible  <bruno@clisp.org>
17881
17882         Tolerate declared but missing dup3 syscall.
17883         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
17884         * lib/unistd.in.h (dup3): If the function is already present,
17885         override it.
17886         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
17887         * modules/dup3 (Makefile.am): Compile dup3.c always.
17888         Reported by Paolo Bonzini.
17889
17890 2009-08-23  Bruno Haible  <bruno@clisp.org>
17891
17892         Tolerate declared but missing pipe2 syscall.
17893         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
17894         available.
17895         * lib/unistd.in.h (pipe2): If the function is already present,
17896         override it.
17897         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
17898         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
17899         Reported by Paolo Bonzini.
17900
17901 2009-08-23  Bruno Haible  <bruno@clisp.org>
17902
17903         * lib/pipe2.c (pipe2): Move #ifs inside function.
17904
17905 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17906
17907         quotearg: document limitations of quote_these_too
17908         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
17909         those limitations are created.
17910         * lib/quotearg.h (set_char_quoting): Document that digits and
17911         letters that are special after backslash are not permitted.
17912         (quotearg_char): Cross-reference set_char_quoting documentation.
17913
17914 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
17915
17916         quotearg: implement custom_quoting_style
17917         * lib/quotearg.c: (struct quoting_options): Add left_quote and
17918         right_quote fields.
17919         (set_custom_quoting): New public function.
17920         (quotearg_buffer_restyled): Add left_quote and right_quote
17921         arguments, handle them very much like locale quoting, and update
17922         all uses.
17923         (quotearg_n_custom): New public function.
17924         (quotearg_n_custom_mem): New public function.
17925         (quotearg_custom): New public function.
17926         (quotearg_custom_mem): New public function.
17927         * lib/quotearg.h: Prototype and document new public functions.
17928         (enum quoting_style): For escape_quoting_style and
17929         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
17930         ignored even though they're otherwise like c_quoting_style.
17931         Add custom_quoting_style member and document with comparison to
17932         clocale_quoting_style.
17933         * tests/test-quotearg.c (custom_quotes): New array.
17934         (custom_results): New array.
17935         (main): Extend to test custom quoting.
17936
17937 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17938
17939         quotearg: fix right quote escaping when it's in quote_these_too
17940         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
17941         quote, be sure to prepend only one backslash.
17942         * tests/test-quotearg.c (use_quote_double_quotes): New function.
17943         (main): Test it.
17944
17945 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17946
17947         quotearg-tests: test escaping of embedded locale quotes
17948         * tests/test-quotearg.c (struct result_strings): Add member for
17949         new input.
17950         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
17951         (inputs): Add new input.
17952         (results_g): Add expected results.
17953         (flag_results): Likewise.
17954         (locale_results): Likewise.
17955         (compare_strings): Check those.
17956
17957 2009-08-23  Bruno Haible  <bruno@clisp.org>
17958
17959         Tests for module 'dup3'.
17960         * modules/dup3-tests: New file.
17961         * tests/test-dup3.c: New file.
17962
17963         New module 'dup3'.
17964         * lib/unistd.in.h (dup3): New declaration.
17965         * lib/dup3.c: New file.
17966         * m4/dup3.m4: New file.
17967         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
17968         HAVE_DUP3.
17969         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
17970         * modules/dup3: New file.
17971         * doc/glibc-functions/dup3.texi: Mention the new module.
17972
17973 2009-08-23  Bruno Haible  <bruno@clisp.org>
17974
17975         Tweak the dup2 test.
17976         * tests/test-dup2.c (main): Create the test file empty. Verify that an
17977         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
17978         the test file is still empty. Fix argument order of lseek.
17979
17980 2009-08-23  Bruno Haible  <bruno@clisp.org>
17981
17982         Avoid test link errors when the modules getopt-gnu, gettext are used.
17983         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
17984         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17985
17986 2009-08-23  Bruno Haible  <bruno@clisp.org>
17987
17988         Fix getdtablesize() on mingw.
17989         * lib/getdtablesize.c (getdtablesize): Implement differently.
17990         * lib/unistd.in.h (getdtablesize): Improve comment.
17991
17992 2009-08-23  Bruno Haible  <bruno@clisp.org>
17993
17994         New module 'mkostemp'.
17995         Based on Ulrich Drepper's 2007-08-10 change in glibc.
17996         * lib/stdlib.in.h (mksotemp): New declaration.
17997         * lib/mkostemp.c: New file, from glibc with modifications.
17998         * lib/tempname.h (GT_FILE): Remove outdated comment.
17999         (gen_tempname): Add flags argument.
18000         * lib/tempname.c (__GT_BIGFILE): Remove macro.
18001         (__GT_FILE): Map to 1.
18002         (small_open, large_open): Remove macros.
18003         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
18004         * lib/mkstemp.c (mkstemp): Update.
18005         * lib/mkdtemp.c (mkdtemp): Likewise.
18006         * m4/mkostemp.m4: New file.
18007         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
18008         HAVE_MKOSTEMP.
18009         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
18010         HAVE_MKOSTEMP.
18011         * modules/mkostemp: New file, based on modules/mkstemp.
18012         * doc/glibc-functions/mkostemp.texi: Mention the new module.
18013         * NEWS: Mention the change.
18014
18015 2009-08-23  Bruno Haible  <bruno@clisp.org>
18016
18017         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
18018         Reported by Eric Blake.
18019
18020 2009-08-23  Bruno Haible  <bruno@clisp.org>
18021
18022         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
18023         Reported by Eric Blake.
18024
18025 2009-08-23  Bruno Haible  <bruno@clisp.org>
18026
18027         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
18028         * modules/pipe2 (Depends-on): Likewise.
18029
18030 2009-08-23  Eric Blake  <ebb9@byu.net>
18031
18032         fcntl-h: add O_TTY_INIT support
18033         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
18034         * tests/test-fcntl-h.c (o): Test it.
18035         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18036
18037         fcntl-h: rename from fcntl, in preparation for fcntl(2)
18038         * modules/fcntl: Move <fcntl.h> header replacement...
18039         * modules/fcntl-h: ...to new name, so as not to collide with
18040         like-named function.
18041         * tests/test-fcntl.c: Rename...
18042         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
18043         * modules/fcntl-tests: Rename...
18044         * modules/fcntl-h-tests: ...to this.  Update test file name.
18045         * modules/chdir-long (Depends-on): Update clients.
18046         * modules/chdir-safer (Depends-on): Likewise.
18047         * modules/fcntl-safer (Depends-on): Likewise.
18048         * modules/fts (Depends-on): Likewise.
18049         * modules/mkancesdirs (Depends-on): Likewise.
18050         * modules/mkdir-p (Depends-on): Likewise.
18051         * modules/open (Depends-on): Likewise.
18052         * modules/savewd (Depends-on): Likewise.
18053         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
18054         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18055
18056 2009-08-22  Bruno Haible  <bruno@clisp.org>
18057
18058         * modules/binary-io (License): Relicense under LGPL.
18059         * modules/pipe2 (License): Likewise.
18060
18061 2009-08-22  Bruno Haible  <bruno@clisp.org>
18062
18063         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
18064         return value.
18065         * lib/pipe-filter-gi.c (filter_init): Likewise.
18066         Reported by Eric Blake.
18067
18068 2009-08-22  Bruno Haible  <bruno@clisp.org>
18069
18070         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
18071         * modules/pipe (Depends-on): Add pipe2.
18072
18073 2009-08-22  Bruno Haible  <bruno@clisp.org>
18074
18075         Tests for module 'pipe2'.
18076         * modules/pipe2-tests: New file.
18077         * tests/test-pipe2.c: New file.
18078
18079         New module 'pipe2'.
18080         * lib/unistd.in.h (pipe2): New declaration.
18081         * lib/pipe2.c: New file.
18082         * m4/pipe2.m4: New file.
18083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
18084         HAVE_PIPE2.
18085         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
18086         * modules/pipe2: New file.
18087         * doc/glibc-functions/pipe2.texi: Mention the new module.
18088
18089 2009-08-22  Bruno Haible  <bruno@clisp.org>
18090
18091         Reference some new glibc functions.
18092         * doc/glibc-functions/accept4.texi: New file.
18093         * doc/glibc-functions/dup3.texi: New file.
18094         * doc/glibc-functions/mkostemp.texi: New file.
18095         * doc/glibc-functions/pipe2.texi: New file.
18096         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
18097         (Glibc sys/socket.h): Refer to accept4.
18098         (Glibc unistd.h): Refer to dup3, pipe2.
18099         Reported by Eric Blake.
18100
18101 2009-08-22  Jim Meyering  <meyering@redhat.com>
18102             Bruno Haible  <bruno@clisp.org>
18103
18104         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
18105         This makes it so packages using automake-1.11's silent-rules option
18106         can print e.g., a single "GEN    configmake.h" line, rather than
18107         the 30+ statements that perform the job.  If you want to see the
18108         actual commands, you can still run "make V=1".
18109         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
18110         so that make output is abbreviated when those variables are defined
18111         appropriately.
18112         * modules/argz: Likewise.
18113         * modules/arpa_inet: Likewise.
18114         * modules/byteswap: Likewise.
18115         * modules/configmake: Likewise.
18116         * modules/dirent: Likewise.
18117         * modules/errno: Likewise.
18118         * modules/fcntl: Likewise.
18119         * modules/float: Likewise.
18120         * modules/fnmatch: Likewise.
18121         * modules/getopt-posix: Likewise.
18122         * modules/glob: Likewise.
18123         * modules/iconv_open: Likewise.
18124         * modules/inttypes: Likewise.
18125         * modules/localcharset: Likewise.
18126         * modules/locale: Likewise.
18127         * modules/math: Likewise.
18128         * modules/netdb: Likewise.
18129         * modules/netinet_in: Likewise.
18130         * modules/poll: Likewise.
18131         * modules/posix_spawnp-tests: Likewise.
18132         * modules/sched: Likewise.
18133         * modules/search: Likewise.
18134         * modules/selinux-h: Likewise.
18135         * modules/signal: Likewise.
18136         * modules/spawn: Likewise.
18137         * modules/stdarg: Likewise.
18138         * modules/stdbool: Likewise.
18139         * modules/stddef: Likewise.
18140         * modules/stdint: Likewise.
18141         * modules/stdio: Likewise.
18142         * modules/stdlib: Likewise.
18143         * modules/string: Likewise.
18144         * modules/strings: Likewise.
18145         * modules/sys_file: Likewise.
18146         * modules/sys_ioctl: Likewise.
18147         * modules/sys_select: Likewise.
18148         * modules/sys_socket: Likewise.
18149         * modules/sys_stat: Likewise.
18150         * modules/sys_time: Likewise.
18151         * modules/sys_times: Likewise.
18152         * modules/sys_utsname: Likewise.
18153         * modules/sys_wait: Likewise.
18154         * modules/sysexits: Likewise.
18155         * modules/time: Likewise.
18156         * modules/unistd: Likewise.
18157         * modules/wchar: Likewise.
18158         * modules/wctype: Likewise.
18159
18160 2009-08-22  Jim Meyering  <meyering@redhat.com>
18161
18162         announce-gen: detect write failure
18163         * build-aux/announce-gen: Add Coda at end.
18164         Remove equivalent-but-more-verbose block at top.
18165
18166 2009-08-19  Akim Demaille  <demaille@gostai.com>
18167
18168         bootstrap: --help to stdout.
18169         * bootstrap (usage): Don't send --help to stderr.
18170         Use a here doc instead of a long string.
18171
18172 2009-08-21  Eric Blake  <ebb9@byu.net>
18173
18174         test-popen-safer: split from test-popen
18175         * tests/test-popen.c (main): Move...
18176         * tests/test-popen.h: ...into new file.
18177         * tests/test-popen-safer2.c: New file.
18178         * modules/popen-tests (Files): Add test-popen.h.
18179         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
18180         Suggested by Bruno Haible.
18181
18182         test-fcntl-safer: split from test-open
18183         * tests/test-open.c (main): Move...
18184         * tests/test-open.h: ...into new file.
18185         * tests/test-fcntl-safer.c: New file.
18186         * modules/open-tests (Files): Add test-open.h.
18187         * modules/fcntl-safer-tests: New file.
18188         Suggested by Bruno Haible.
18189
18190         test-fopen-safer: split from test-fopen
18191         * tests/test-fopen.c (main): Move...
18192         * tests/test-fopen.h: ...into new file.
18193         * tests/test-fopen-safer.c: New file.
18194         * modules/fopen-tests (Files): Add test-fopen.h.
18195         * modules/fopen-safer-tests: New file.
18196         Suggested by Bruno Haible.
18197
18198 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18199
18200         popen-safer: test O_CLOEXEC at run-time.
18201         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
18202
18203 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18204
18205         fcntl: move more flags to the header
18206         * lib/cloexec.c: Do not define FD_CLOEXEC here.
18207         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
18208         * lib/fcntl.in.h: Do both things here.
18209
18210 2009-08-21  Jim Meyering  <meyering@redhat.com>
18211
18212         consistently remove $@-t before redirecting to it
18213         * modules/argz: Remove $@-t and $@ before redirecting to the former.
18214         * modules/alloca-opt: Likewise.
18215         * modules/byteswap: Likewise.
18216         * modules/fnmatch: Likewise.
18217         * modules/getopt-posix: Likewise.
18218         * modules/glob: Likewise.
18219         * modules/poll: Likewise.
18220         * modules/posix_spawnp-tests: Likewise.
18221         * modules/sys_socket: Likewise.
18222         * modules/sysexits: Likewise.
18223
18224 2009-08-21  Eric Blake  <ebb9@byu.net>
18225
18226         popen: simplify access to original popen
18227         * lib/popen.c (rpl_popen): No need to worry about popen being a
18228         macro.
18229         Reported by Bruno Haible.
18230
18231 2009-08-20  Eric Blake  <ebb9@byu.net>
18232
18233         build: avoid some compiler warnings
18234         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
18235         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
18236         type.
18237         (new_exclude_segment, excluded_file_pattern_p)
18238         (excluded_file_name_p): Reduce scope.
18239         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
18240         old-style declaration.
18241
18242 2009-08-20  Simon Josefsson  <simon@josefsson.org>
18243
18244         * tests/test-exclude1.sh: Handle Windows EOL.
18245         * tests/test-exclude2.sh: Likewise.
18246         * tests/test-exclude3.sh: Likewise.
18247         * tests/test-exclude4.sh: Likewise.
18248         * tests/test-exclude5.sh: Likewise.
18249         * tests/test-exclude6.sh: Likewise.
18250         * tests/test-exclude7.sh: Likewise.
18251
18252 2009-08-19  Akim Demaille  <demaille@gostai.com>
18253
18254         bootstrap: find sha1sum when named gsha1sum.
18255         * bootstrap (find_tool): New.
18256         ($SHA1SUM): New.
18257         Use it.
18258
18259 2009-08-20  Jim Meyering  <meyering@redhat.com>
18260
18261         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
18262         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
18263         expression that converts "." in a file name to "\." in the resulting
18264         regexp.  Start with a dummy statement, so that prior shell variable
18265         definitions are expanded portably.  Reported by Simon Josefsson.
18266
18267 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
18268
18269         Fix polling for writeability of a screen buffer.
18270         * lib/poll.c: Distinguish input and screen buffers for the
18271         Win32 implementation.
18272         * lib/select.c: Likewise.
18273
18274 2009-08-19  Eric Blake  <ebb9@byu.net>
18275
18276         popen-safer: prevent popen from clobbering std descriptors
18277         * modules/popen-safer: New file.
18278         * lib/popen-safer.c: Likewise.
18279         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
18280         * lib/stdio--.h (popen): Provide override.
18281         * lib/stdio-safer.h (popen_safer): Provide declaration.
18282         * tests/test-popen.c (includes): Partially test this.
18283         * modules/popen-safer-tests: New file, for more tests.
18284         * tests/test-popen-safer.c: Likewise.
18285         * MODULES.html.sh (file stream based Input/Output): Mention it.
18286
18287         tests: test some of the *-safer modules
18288         * modules/fopen-safer (Depends-on): Add fopen.
18289         * modules/fcntl-safer (Depends-on): Add fcntl.
18290         * modules/stdlib-safer (Depends-on): Add stdlib.
18291         (configure.ac): Set indicator.
18292         * modules/unistd-safer (configure.ac): Likewise.
18293         * modules/tmpfile-safer (configure.ac): Likewise.
18294         (Depends-on): Add tmpfile.
18295         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
18296         active.
18297         * tests/test-fopen.c (includes): Test safer versions when they are
18298         in use.
18299         * tests/test-open.c (includes): Likewise.
18300
18301         popen: fix cygwin 1.5 bug when stdin closed
18302         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
18303         * modules/popen: New file.
18304         * modules/popen-tests: Likewise.
18305         * tests/test-popen.c: Likewise.
18306         * m4/popen.m4: Likewise.
18307         * lib/popen.c: Likewise.
18308         * lib/stdio.in.h (popen): New declaration.
18309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
18310         * modules/stdio (Makefile.am): Likewise.
18311         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
18312
18313 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
18314
18315         maint.mk: give full control over update-copyright exclusions
18316         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
18317         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
18318         (update-copyright): Don't force inclusion of top-level
18319         ChangeLog.  Don't force exclusion of all COPYING files, but make
18320         them the default exclusion instead.
18321
18322 2009-08-16  Bruno Haible  <bruno@clisp.org>
18323
18324         Fix test failures on Solaris 10.
18325         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
18326         tests when Solaris iconv() is used.
18327         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
18328         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
18329         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
18330         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
18331         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
18332
18333 2009-08-16  Bruno Haible  <bruno@clisp.org>
18334
18335         Fix test failures on Solaris 10.
18336         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
18337         'tr' program and pass it as first argument.
18338         * tests/test-pipe-filter-gi1.sh: Likewise.
18339         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
18340         program as first argument.
18341         * tests/test-pipe-filter-gi1.c (main): Likewise.
18342
18343 2009-08-16  Eric Blake  <ebb9@byu.net>
18344
18345         fpurge: fix previous commits
18346         * modules/fpurge (Makefile.am): Make replacement conditional,
18347         partially reverting 2007-04-29 change; missed in previous
18348         attempt.
18349         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
18350         is missing.
18351
18352 2009-08-16  Bruno Haible  <bruno@clisp.org>
18353
18354         Clarify fpurge's effect on the file position.
18355         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
18356         * tests/test-fpurge.c (main): Make a second pass for checking the file
18357         position.
18358
18359 2009-08-16  Bruno Haible  <bruno@clisp.org>
18360
18361         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
18362         declaration of fpurge is missing.
18363         * tests/test-fpurge.c (main): Check that the file has not more contents
18364         than expected. Close the file before removing it.
18365
18366 2009-08-15  Eric Blake  <ebb9@byu.net>
18367
18368         fpurge: don't wrap working cygwin implementation
18369         * lib/fpurge.c (fpurge): Fix comment typo.
18370         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
18371         1.7 to avoid replacement.
18372         * tests/test-fpurge.c (main): Enhance test.
18373
18374 2009-08-15  Eric Blake  <ebb9@byu.net>
18375         and Jim Meyering  <meyering@redhat.com>
18376
18377         test-update-copyright: skip if perl is insufficient
18378         * tests/test-update-copyright.sh: Failure to run maintainer tool
18379         should not cause testsuite failure on cygwin 1.5.
18380
18381 2009-08-14  Eric Blake  <ebb9@byu.net>
18382
18383         doc: mention more functions added in cygwin 1.7.0
18384         * doc/posix-headers/limits.texi (limits.h): Update for recent
18385         cygwin additions.
18386         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
18387         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18388         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
18389         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
18390         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
18391
18392 2009-08-14  Eric Blake  <ebb9@byu.net>
18393
18394         maint.mk: simplify update-copyright rule
18395         * top/maint.mk (update-copyright-local): Delete, and document how
18396         to do it in cfg.mk instead.
18397         (update-copyright-exclude-regexp): Delete, and document how to do
18398         it in .x-update-copyright instead.
18399         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
18400         exclude ChangeLog.
18401
18402 2009-08-14  Bruno Haible  <bruno@clisp.org>
18403
18404         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
18405
18406 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18407
18408         maint.mk: support update-copyright-env
18409         * top/maint.mk (update-copyright-env): Define place-holder.
18410         (update-copyright): Expand $(update-copyright-env) before
18411         invoking update-copyright.
18412
18413 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18414
18415         update-copyright: implement forced reformatting
18416         * build-aux/update-copyright: Implement and document
18417         UPDATE_COPYRIGHT_FORCE.
18418         * tests/test-update-copyright.sh: Test it.
18419
18420 2009-08-14  Eric Blake  <ebb9@byu.net>
18421         and Bruno Haible  <bruno@clisp.org>
18422
18423         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
18424         * tests/test-locale.c: Revert previous patch related to NULL.
18425         * tests/test-stdio.c: Likewise.
18426         * tests/test-stdlib.c: Likewise.
18427         * tests/test-string.c: Likewise.
18428         * tests/test-unistd.c: Likewise.
18429         * modules/time-tests (Depends-on): Add verify.
18430         * modules/wchar-tests (Depends-on): Likewise.
18431         * tests/test-time.c: Test for NULL compliance.
18432         * tests/test-wchar.c: Likewise.
18433         * modules/locale (Depends-on): Add stddef.
18434         * modules/stdio (Depends-on): Likewise.
18435         * modules/stdlib (Depends-on): Likewise.
18436         * modules/string (Depends-on): Likewise.
18437         * modules/time (Depends-on): Likewise.
18438         * modules/unistd (Depends-on): Likewise.
18439         * modules/wchar (Depends-on): Likewise.
18440         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
18441         * lib/stdlib.in.h (includes): Likewise.
18442         * lib/string.in.h (includes): Likewise.
18443         * lib/time.in.h (includes): Likewise.
18444         * lib/unistd.in.h (includes): Likewise.
18445         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
18446         replaced.
18447         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18448         * m4/stddef_h.m4: New file.
18449         * modules/stddef: Likewise.
18450         * lib/stddef.in.h: Likewise.
18451         * modules/stddef-tests: Likewise.
18452         * tests/test-stddef.c: Likewise.
18453         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
18454         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
18455         * doc/posix-headers/locale.texi (locale.h): Likewise.
18456         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
18457         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18458         * doc/posix-headers/string.texi (string.h): Likewise.
18459         * doc/posix-headers/time.texi (time.h): Likewise.
18460         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
18461         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
18462
18463 2009-08-14  Eric Blake  <ebb9@byu.net>
18464
18465         doc: improve git diff of texinfo files
18466         * .gitattributes: Add rule for *.texi files, with hint on how to
18467         use it.
18468         Copied from m4, and based on a report by Bruno Haible.
18469
18470 2009-08-14  Bruno Haible  <bruno@clisp.org>
18471
18472         Disable multithread support by default on Cygwin 1.5.x for real.
18473         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
18474
18475 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18476
18477         update-copyright: much ado about intervals
18478         * build-aux/update-copyright: Implement and document
18479         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
18480         of copyright year intervals.
18481         Also, document UPDATE_COPYRIGHT_YEAR.
18482         * tests/test-update-copyright.sh: Test it.
18483
18484         update-copyright: convert 2-digit to 4-digit years
18485         * build-aux/update-copyright: Implement and document.
18486         * tests/test-update-copyright.sh: Update.
18487
18488 2009-08-14  Jim Meyering  <meyering@redhat.com>
18489
18490         test-exclude: avoid coreutils "make check" failure
18491         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
18492         just as in test-argmatch.c.
18493
18494 2009-08-13  Eric Blake  <ebb9@byu.net>
18495
18496         test-dup2: fix bad assumption
18497         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
18498         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
18499
18500         test-version-etc: fix CRLF portability issue
18501         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
18502         recognize \r.
18503         * tests/test-argp-version-etc-1.sh: Likewise.
18504
18505         getopt: update client modules
18506         * modules/argp (Depends-on): Use getopt-gnu.
18507         * modules/git-merge-changelog (Depends-on): Likewise.
18508         * modules/long-options (Depends-on): Likewise.
18509         * modules/xstrtol (Depends-on): Likewise.
18510
18511 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18512
18513         * tests/test-version-etc.sh: Don't fail on different
18514         project/version.  Don't fail on CRLF differences.  Rewrite to use
18515         multiple -e instead of multiple sed forks, suggested by Eric Blake
18516         <ebb9@byu.net>.
18517         * tests/test-argp-version-etc-1.sh: Likewise.
18518
18519 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18520
18521         * tests/test-version-etc.sh: Don't fail on different
18522         project/version.
18523
18524 2009-08-12  Bruno Haible  <bruno@clisp.org>
18525
18526         Tests for modules 'getopt-posix', 'getopt-gnu'.
18527         * modules/getopt-posix-tests: New file.
18528         * tests/test-getopt.c: New file.
18529         * tests/test-getopt.h: New file.
18530         * tests/test-getopt_long.h: New file.
18531
18532         New modules 'getopt-posix', 'getopt-gnu'.
18533         * modules/getopt-gnu: New file, renamed from modules/getopt.
18534         * modules/getopt-posix: New file.
18535         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
18536         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
18537         (gl_GETOPT): Remove macro.
18538         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
18539         Disable the test against BSD systems that declare optreset. Test
18540         against mingw bug. Test against lack of support of optional arguments
18541         on many platforms.
18542         * doc/glibc-headers/getopt.texi: Update module name and list of
18543         relevant platforms.
18544         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
18545         'getopt-gnu' and more portability problems.
18546         * NEWS: Mention the changes.
18547
18548 2009-08-12  Bruno Haible  <bruno@clisp.org>
18549
18550         Ensure that optarg etc. get declared by <unistd.h>.
18551         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
18552         AC_USE_SYSTEM_EXTENSIONS.
18553         * modules/getopt (Depends-on): Add 'extensions'.
18554
18555 2009-08-12  Bruno Haible  <bruno@clisp.org>
18556
18557         Avoid test link errors.
18558         * modules/pipe-filter-ii-tests (Makefile.am): Define
18559         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
18560         * modules/pipe-filter-gi-tests (Makefile.am): Define
18561         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
18562         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18563
18564 2009-08-12  Bruno Haible  <bruno@clisp.org>
18565
18566         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
18567         gl_GETOPT_SUBSTITUTE before.
18568         (gl_GETOPT): Use it.
18569         * m4/argp.m4 (gl_ARGP): Update.
18570         Reported by Sergey Poznyakoff.
18571
18572         * m4/getopt.m4: Reorder macros.
18573         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
18574         (gl_GETOPT_SUBSTITUTE): Remove macro.
18575
18576 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18577
18578         Minor improvement in gitlog-to-changelog
18579
18580         * build-aux/gitlog-to-changelog: New option `--format' makes
18581         output format string configurable.
18582
18583 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18584
18585         Optimize exclude: use hash tables for non-wildcard patterns.
18586
18587         * lib/exclude.c: Include hash.h and mbuiter.h
18588         (struct exclude_pattern, exclude_segment): New data types.
18589         (struct exclude): Rewrite.
18590         (fnmatch_pattern_has_wildcards): New function.
18591         (new_exclude_segment, free_exclude_segment): New functions.
18592         (excluded_file_pattern_p, excluded_file_name_p): New functions.
18593         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
18594         * lib/exclude.h (is_fnmatch_pattern): New prototype.
18595         * modules/exclude: Depend on hash and mbuiter.
18596
18597         * modules/exclude-tests: New file.
18598         * tests/test-exclude.c: New file.
18599         * tests/test-exclude1.sh: New file.
18600         * tests/test-exclude2.sh: New file.
18601         * tests/test-exclude3.sh: New file.
18602         * tests/test-exclude4.sh: New file.
18603         * tests/test-exclude5.sh: New file.
18604         * tests/test-exclude6.sh: New file.
18605         * tests/test-exclude7.sh: New file.
18606
18607 2009-08-12  Bruno Haible  <bruno@clisp.org>
18608
18609         Ensure that getopt() gets declared by <unistd.h>.
18610         * lib/unistd.in.h: Conditionally include getopt.h.
18611         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
18612         Set GNULIB_UNISTD_H_GETOPT.
18613         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18614         GNULIB_UNISTD_H_GETOPT.
18615         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
18616
18617 2009-08-12  Bruno Haible  <bruno@clisp.org>
18618
18619         Clarify logic.
18620         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
18621         gl_replace_getopt instead of GETOPT_H.
18622
18623 2009-08-12  Bruno Haible  <bruno@clisp.org>
18624
18625         * m4/getopt.m4: Add comments.
18626
18627 2009-08-12  Bruno Haible  <bruno@clisp.org>
18628
18629         Disable multithread support by default on Cygwin 1.5.x.
18630         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
18631         set gl_use_threads=no if not specified otherwise.
18632
18633 2009-08-11  Bruno Haible  <bruno@clisp.org>
18634
18635         Avoid compilation error on NetBSD 5.0.
18636         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
18637         * tests/test-stdio.c: Likewise.
18638         * tests/test-stdlib.c: Likewise.
18639         * tests/test-string.c: Likewise.
18640         * tests/test-unistd.c: Likewise.
18641         Reported by Greg Troxel <gdt@ir.bbn.com>
18642         at <https://savannah.gnu.org/support/?106973>.
18643
18644 2009-08-11  Bruno Haible  <bruno@clisp.org>
18645
18646         * modules/dup2-tests (Depends-on): Remove close.
18647
18648         Undo 2009-07-19 commit.
18649         * modules/acl-tests (Depends-on): Remove close.
18650         * modules/binary-io-tests (Depends-on): Likewise.
18651         * modules/closein-tests (Depends-on): Likewise.
18652         * modules/flock-tests (Depends-on): Likewise.
18653         * modules/fsync-tests (Depends-on): Likewise.
18654         * modules/lseek-tests (Depends-on): Likewise.
18655         * modules/pipe-tests (Depends-on): Likewise.
18656         * modules/posix_spawn-tests (Depends-on): Likewise.
18657         * modules/posix_spawnp-tests (Depends-on): Likewise.
18658         * modules/stat-time-tests (Depends-on): Likewise.
18659         * modules/yesno-tests (Depends-on): Likewise.
18660
18661 2009-08-10  Bruno Haible  <bruno@clisp.org>
18662
18663         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
18664
18665 2009-08-10  Bruno Haible  <bruno@clisp.org>
18666
18667         Fix a gcc warning.
18668         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
18669
18670 2009-08-10  Bruno Haible  <bruno@clisp.org>
18671
18672         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
18673         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
18674         not only the first time.
18675         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
18676         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
18677         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
18678         is 1, not only the the first time.
18679
18680 2009-08-10  Bruno Haible  <bruno@clisp.org>
18681
18682         Make it possible to use module 'gethostname' without module 'close'.
18683         * lib/unistd.in.h (close): Evoke a link error only if
18684         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18686         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18687         * modules/unistd (Makefile.am): Substitute
18688         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18689         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
18690         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18691         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18692         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18693         * modules/sys_ioctl (Makefile.am): Substitute
18694         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18695         * modules/socket (configure.ac): On native Windows, set
18696         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
18697         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18698         Reported by Sam Steingold <sds@gnu.org>.
18699
18700 2009-08-10  Bruno Haible  <bruno@clisp.org>
18701
18702         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
18703         * modules/ioctl (configure.ac): Likewise.
18704
18705 2009-08-10  Bruno Haible  <bruno@clisp.org>
18706
18707         Avoid collision between gnulib wrapper and libintl wrapper.
18708         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
18709         already defined in intl/printf.c.
18710         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
18711         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
18712
18713 2009-08-09  Bruno Haible  <bruno@clisp.org>
18714
18715         Make <sys/select.h> really self-contained, also on Solaris 10.
18716         * lib/sys_select.in.h: Include <string.h>.
18717         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
18718         Solaris 10 problem.
18719         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
18720         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
18721         Reported by Jim Meyering.
18722
18723 2009-08-09  Bruno Haible  <bruno@clisp.org>
18724
18725         Avoid warnings from 'aclocal' that are due to a use of macro name
18726         AM_XGETTEXT_OPTION that is not defined in automake.
18727         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
18728         automake.
18729         * modules/error (configure.ac): Likewise.
18730         * modules/propername (configure.ac): Likewise.
18731         * modules/vasprintf (configure.ac): Likewise.
18732         * modules/verror (configure.ac): Likewise.
18733         * modules/xprintf (configure.ac): Likewise.
18734         * modules/xvasprintf (configure.ac): Likewise.
18735
18736 2009-08-08  Bruno Haible  <bruno@clisp.org>
18737
18738         Avoid compilation error in C++ mode.
18739         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
18740         Reported by Sam Steingold <sds@gnu.org>.
18741
18742 2009-08-08  Bruno Haible  <bruno@clisp.org>
18743
18744         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
18745         for the various Unix platforms.
18746         * doc/posix-headers/limits.texi: Update platforms list regarding
18747         HOST_NAME_MAX.
18748         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18749
18750 2009-08-07  Jim Meyering  <meyering@redhat.com>
18751
18752         selinux-at: fix typo in a comment
18753         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
18754         Spotted by Paolo Bonzini.
18755
18756         selinux-at: remove redundant m4 code, add documentation
18757         * modules/selinux-at (configure.ac): Remove redundant code.
18758         LIB_SELINUX is already set via the dependent module, selinux-h.
18759         (Include): Add quotes around selinux-at.h.
18760         * lib/selinux-at.h: Add documentation.
18761         Reported by Bruno Haible in
18762         http://marc.info/?l=gnulib-bug&m=124958988300749
18763
18764 2009-08-07  Bruno Haible  <bruno@clisp.org>
18765
18766         Avoid link error on MacOS X 10.3 and 10.4.
18767         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
18768         on non-ELF systems.
18769         * lib/argp-pv.c (argp_program_version): Likewise.
18770         Reported by Simon Josefsson.
18771
18772 2009-08-07  Simon Josefsson  <simon@josefsson.org>
18773
18774         * tests/test-version-etc.sh: Use $EXEEXT.
18775
18776 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
18777
18778         update-copyright: update documentation to point to maint.mk
18779         * build-aux/update-copyright: Here.
18780
18781 2009-08-06  Jim Meyering  <meyering@redhat.com>
18782
18783         maint.mk: support update-copyright-local
18784         * top/maint.mk (update-copyright-local): Define place-holder.
18785         (update-copyright): Depend on $(update-copyright-local).
18786
18787 2009-08-06  Jim Meyering  <meyering@redhat.com>
18788
18789         selinux-at: new module
18790         Initially written for coreutils, this module will soon be
18791         used by findutils, too.
18792         * MODULES.html.sh [Misc]: Add selinux-at.
18793         * lib/selinux-at.h: New file, from coreutils.
18794         * lib/selinux-at.c: Likewise.
18795         * modules/selinux-at: Likewise.
18796         (License): Change from LGPL to GPL, since it depends
18797         on the GPL'd openat module.
18798
18799         doc: update README
18800         * README: Remove references to cogito.
18801         Remove cvs-repo-updating instructions from 2007.
18802         Don't imply that CVS is better if you have limited disk space.
18803
18804 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18805
18806         update-copyright: support C-style comments
18807         * build-aux/update-copyright: Implement and document.
18808         * tests/test-update-copyright.sh: Test.
18809
18810 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18811
18812         update-copyright: support omitted "(C)"
18813         * build-aux/update-copyright: Implement and document.  Also,
18814         allow variable whitespace before "(C)".
18815         * tests/test-update-copyright.sh: Test.
18816
18817 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18818
18819         update-copyright: don't trip on non-FSF copyright statements
18820         * build-aux/update-copyright: Fix so that the first correctly
18821         formatted FSF copyright statement is recognized no matter what
18822         appears before it.  Update documentation.
18823         * tests/test-update-copyright.sh: Test that.
18824
18825 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18826
18827         update-copyright: clean up code a little
18828         * build-aux/update-copyright: Append "_re" to the name of any
18829         variable holding a regular expression.
18830         Replace "old" and "new" with "stmt" in variable names.
18831         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
18832         handled correctly.
18833         Format code more consistently.
18834
18835 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18836
18837         update-copyright-tests: improve portability
18838         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
18839         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
18840
18841 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
18842
18843         update-copyright: support @copyright{} and &copy;
18844         * build-aux/update-copyright: Implement and document.
18845         * tests/test-update-copyright.sh: Test.
18846
18847 2009-08-04  Jim Meyering  <meyering@redhat.com>
18848
18849         update-copyright-tests: correctly test EOL=\r\n handling
18850         * tests/test-update-copyright.sh: Put \r at the end of some lines
18851         for the dos-eol tests.  Based on a patch by Joel E. Denny.
18852
18853         maint.mk: make update-copyright exclusion list more configurable
18854         * top/maint.mk (update-copyright): Default to excluding COPYING,
18855         but allow an override, in case someone does want to update that file.
18856
18857         maint.mk: don't update copyright date in COPYING
18858         * top/maint.mk (update-copyright): Exclude COPYING.
18859
18860         maint.mk: add a copyright-updating rule
18861         * top/maint.mk (update-copyright): New rule.
18862         Derived from coreutils/Makefile.am.
18863
18864         update-copyright: rename some variables
18865         * build-aux/update-copyright: Rename a few variables for clarity.
18866         Tweak syntax.  List Joel E. Denny as coauthor.
18867
18868 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
18869
18870         update-copyright: fix bug for 2-digit last year and add tests
18871         * build-aux/update-copyright: Fix bug.
18872         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
18873         specified.
18874         * modules/update-copyright-tests: New
18875         * tests/test-update-copyright.sh: New.
18876
18877 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18878
18879         update-copyright: handle leading tabs in line prefix
18880         * build-aux/update-copyright: Count leading tabs as 8 spaces
18881         when computing margin.  This helps with the formatting of
18882         ChangeLogs, for example.
18883         Fix documentation a little.
18884
18885 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18886
18887         update-copyright: support EOL=\r\n
18888         * build-aux/update-copyright: Implement that.
18889
18890 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18891
18892         update-copyright: automatically format copyright statements
18893         * build-aux/update-copyright: Implement that.
18894         Also, be a little more predictable and safer by always failing
18895         when the full copyright format is not perfectly recognized as an
18896         unbroken whole.  Discussed at
18897         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
18898         Rewrite documentation.
18899
18900 2009-08-03  Bruno Haible  <bruno@clisp.org>
18901
18902         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
18903
18904 2009-08-02  Bruno Haible  <bruno@clisp.org>
18905
18906         Tests for module 'uname'.
18907         * modules/uname-tests: New file.
18908         * tests/test-uname.c: New file.
18909
18910         New module 'uname'.
18911         * lib/uname.c: New file.
18912         * m4/uname.m4: New file.
18913         * modules/uname: New file.
18914         * doc/posix-functions/uname.texi: Mention the new module.
18915
18916 2009-08-02  Bruno Haible  <bruno@clisp.org>
18917
18918         Tests for module 'sys_utsname'.
18919         * modules/sys_utsname-tests: New file.
18920         * tests/test-sys_utsname.c: New file.
18921
18922         New module 'sys_utsname'.
18923         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
18924         * m4/sys_utsname_h.m4: New file.
18925         * modules/sys_utsname: New file.
18926         * doc/posix-headers/sys_utsname.texi: Mention the new module.
18927
18928 2009-08-02  Bruno Haible  <bruno@clisp.org>
18929
18930         Implicitly initialize the sockets library.
18931         * lib/gethostname.c: Include sockets.h.
18932         (rpl_gethostname): Invoke gl_sockets_startup.
18933         * lib/socket.c: Include sockets.h.
18934         (rpl_socket): Invoke gl_sockets_startup.
18935         * modules/gethostname (Depends-on): Add sockets.
18936         * modules/socket (Depends-on): Likewise.
18937         * tests/test-poll.c: Don't include sockets.h.
18938         (main): Don't invoke gl_sockets_startup.
18939         * tests/test-select.c: Don't include sockets.h.
18940         (main): Don't invoke gl_sockets_startup.
18941
18942 2009-08-02  Bruno Haible  <bruno@clisp.org>
18943
18944         Allow multiple calls to gl_sockets_startup.
18945         * lib/sockets.c (initialized_sockets_version): New variable.
18946         (gl_sockets_startup): Do nothing if already called for this or a higher
18947         version.
18948         (gl_sockets_cleanup): Reset initialized_sockets_version.
18949
18950 2009-08-03  Simon Josefsson  <simon@josefsson.org>
18951
18952         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
18953         different project/version.
18954
18955 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
18956             Bruno Haible  <bruno@clisp.org>
18957
18958         Tests for module 'pipe-filter-gi'.
18959         * modules/pipe-filter-gi-tests: New file.
18960         * tests/test-pipe-filter-gi1.sh: New file.
18961         * tests/test-pipe-filter-gi1.c: New file.
18962         * tests/test-pipe-filter-gi2.sh: New file.
18963         * tests/test-pipe-filter-gi2-main.c: New file.
18964         * tests/test-pipe-filter-gi2-child.c: New file.
18965
18966         New module 'pipe-filter-gi'.
18967         * lib/pipe-filter-gi.c: New file.
18968         * modules/pipe-filter-gi: New file.
18969
18970 2009-08-02  Bruno Haible  <bruno@clisp.org>
18971             Paolo Bonzini  <bonzini@gnu.org>
18972
18973         Tests for module 'pipe-filter-ii'.
18974         * modules/pipe-filter-ii-tests: New file.
18975         * tests/test-pipe-filter-ii1.sh: New file.
18976         * tests/test-pipe-filter-ii1.c: New file.
18977         * tests/test-pipe-filter-ii2.sh: New file.
18978         * tests/test-pipe-filter-ii2-main.c: New file.
18979         * tests/test-pipe-filter-ii2-child.c: New file.
18980
18981         New module 'pipe-filter-ii'.
18982         * lib/pipe-filter.h: New file.
18983         * lib/pipe-filter-ii.c: New file.
18984         * lib/pipe-filter-aux.h: New file.
18985         * modules/pipe-filter-ii: New file.
18986
18987 2009-08-02  Simon Josefsson  <simon@josefsson.org>
18988
18989         * lib/gc-libgcrypt.c: Change copyright to FSF.
18990         * lib/gc-gnulib.c: Likewise.
18991
18992 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
18993
18994         * lib/gethostname.c: Include limits.h.
18995
18996 2009-08-02  Simon Josefsson  <simon@josefsson.org>
18997             Bruno Haible  <bruno@clisp.org>
18998
18999         Ensure HOST_NAME_MAX as part of the gethostname module.
19000         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
19001         define also HOST_NAME_MAX.
19002         * tests/test-gethostname.c: Include <limits.h>.
19003         (main): Check also HOST_NAME_MAX.
19004         * doc/posix-headers/limits.texi: Document the mingw problem.
19005
19006 2009-08-02  Bruno Haible  <bruno@clisp.org>
19007
19008         * lib/gethostname.c (gethostname): Fix handling of large len argument.
19009         Add comments.
19010
19011 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19012
19013         * lib/gethostname.c: Add Windows wrapper.
19014         * m4/gethostname.m4: Look for gethostname in -lws2_32.
19015         * modules/gethostname: Depend on sys_socket & errno, for also
19016         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
19017         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
19018
19019 2009-07-31  Jim Meyering  <meyering@redhat.com>
19020
19021         getloadavg: fix symbol name in comment
19022         * lib/getloadavg.c: Correct a typo I introduced when adding
19023         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
19024         Matt Kraai spotted the problem.
19025
19026 2009-07-29  Matt Kraai  <mkraai@beckman.com>
19027
19028         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
19029         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
19030         code also if ! defined N_NAME_POINTER.
19031         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
19032         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
19033         but the n_name member is a 12-byte array.
19034
19035 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
19036
19037         update-copyright: generalize comment handling
19038         * build-aux/update-copyright: Handle copyright statements
19039         within more comment styles.
19040         Document usage.
19041         Report any file with an external copyright holder or parse failure.
19042
19043 2009-07-29  Jim Meyering  <meyering@redhat.com>
19044
19045         mktime: correct setting of REPLACE_MKTIME
19046         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
19047
19048         update-copyright: new module
19049         * modules/update-copyright: New file.
19050         * build-aux/update-copyright: New file.
19051         * MODULES.html.sh (maint+release support): Add update-copyright.
19052
19053 2009-07-27  Bruno Haible  <bruno@clisp.org>
19054
19055         Fix compilation error when <ctime> is used and mktime is replaced.
19056         * lib/time.in.h (mktime): New declaration.
19057         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
19058         REPLACE_MKTIME instead of defining mktime in config.h.
19059         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
19060         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
19061         Reported by Ross McFarland <rwmcfa1@neces.com>.
19062
19063 2009-07-27  Bruno Haible  <bruno@clisp.org>
19064
19065         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
19066         Reported by Matt Kraai <mkraai@beckman.com>.
19067
19068 2009-07-25  Jim Meyering  <meyering@redhat.com>
19069
19070         maint.mk: avoid warnings about missing files
19071         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
19072         diagnostic when .prev-version does not exist.
19073         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
19074         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
19075         nonexistent cfg.mk.
19076         Suggestions from Simon Josefsson.
19077
19078 2009-07-25  Bruno Haible  <bruno@clisp.org>
19079
19080         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
19081         defined as macros. Needed on QNX 6.4.1.
19082         Reported by Matt Kraai <mkraai@beckman.com>.
19083
19084 2009-07-23  Jim Meyering  <meyering@redhat.com>
19085
19086         maint.mk: invoke "make dist" with a working value of XZ_OPT
19087         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
19088
19089 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
19090
19091         Make fseeko.c compile on QNX.
19092         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
19093
19094 2009-07-22  Peter Simons  <simons@cryp.to>
19095
19096         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
19097         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
19098         * lib/md4.h: Likewise.
19099         * lib/md5.h: Likewise.
19100         * lib/sha1.h: Likewise.
19101         * lib/sha256.h: Likewise.
19102         * lib/sha512.h: Likewise.
19103
19104         tests-sha1: don't assign literal string to 'char *' variable
19105         * tests/test-sha1.c (main): Declare locals with "const" to match
19106         attributes of the right hand side.
19107
19108 2009-07-21  Eric Blake  <ebb9@byu.net>
19109
19110         dup2: fix more mingw problems
19111         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
19112         fd to itself.
19113         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19114         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
19115         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
19116         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
19117         care of mingw bugs.
19118
19119 2009-07-21  Jim Meyering  <meyering@redhat.com>
19120
19121         vc-list-files: avoid failure when /bin/sh is dash
19122         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
19123         On some Debian based systems, /bin/sh is a symlink to dash, and running
19124         this command would omit the "/" following each 'tests' prefix:
19125           dash -x build-aux/vc-list-files -C . tests
19126         That is because bash and dash work differently:
19127           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
19128           bash ok
19129           dash odd
19130
19131 2009-07-21  Eric Blake  <ebb9@byu.net>
19132
19133         dup2-tests: test previous patch
19134         * modules/dup2-tests: New file.
19135         * tests/test-dup2.c: Likewise.
19136         * tests/test-open.c (main): Avoid unspecified behavior.
19137         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
19138         test.
19139
19140         dup2: work around mingw and cygwin 1.5 bug
19141         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
19142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19143         * modules/unistd (Makefile.am): Substitute it.
19144         * lib/unistd.in.h (dup2): Declare the replacement.
19145         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
19146         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
19147         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
19148         * modules/execute (Depends-on): Add dup2.
19149         * modules/fseterr (Depends-on): Likewise.
19150         * modules/pipe (Depends-on): Likewise.
19151         * modules/posix_spawn-internal (Depends-on): Likewise.
19152
19153 2009-07-21  Bruno Haible  <bruno@clisp.org>
19154
19155         * modules/.gitattributes: New file.
19156
19157 2009-07-20  Bruno Haible  <bruno@clisp.org>
19158
19159         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
19160         (main): Use it.
19161
19162 2009-07-20  Eric Blake  <ebb9@byu.net>
19163
19164         test-pipe: make a bit more robust.
19165         * tests/test-pipe.c (myerr): Allow error messages regardless of
19166         what we do to stderr.
19167         (test_pipe): Rearrange to avoid deadlock.
19168         (child_main): Try a larger read, to ensure we avoided deadlock.
19169         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
19170         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
19171         if misused.
19172
19173 2009-07-19  Jim Meyering  <meyering@redhat.com>
19174
19175         fts: avoid false-positive cycle-detection
19176         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
19177         for each new command line argument.
19178
19179 2009-07-19  Bruno Haible  <bruno@clisp.org>
19180
19181         Fix build error on mingw with the modules sys_select and unistd.
19182         * modules/acl-tests (Depends-on): Add close.
19183         * modules/binary-io-tests (Depends-on): Likewise.
19184         * modules/closein-tests (Depends-on): Likewise.
19185         * modules/flock-tests (Depends-on): Likewise.
19186         * modules/fsync-tests (Depends-on): Likewise.
19187         * modules/lseek-tests (Depends-on): Likewise.
19188         * modules/pipe-tests (Depends-on): Likewise.
19189         * modules/posix_spawn-tests (Depends-on): Likewise.
19190         * modules/posix_spawnp-tests (Depends-on): Likewise.
19191         * modules/stat-time-tests (Depends-on): Likewise.
19192         * modules/yesno-tests (Depends-on): Likewise.
19193
19194 2009-07-19  Bruno Haible  <bruno@clisp.org>
19195
19196         Unify conditionals.
19197         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
19198         macros, not at the compiler macros.
19199         * lib/pipe.c: Likewise.
19200         * lib/execute.c: Likewise.
19201         * lib/spawni.c: Likewise.
19202
19203 2009-07-19  Bruno Haible  <bruno@clisp.org>
19204
19205         Fix handling of closed stdin/stdout/stderr on mingw.
19206         * lib/w32spawn.h: Include unistd.h.
19207         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
19208         file descriptor with O_NOINHERIT flag.
19209         (fd_safer_noinherit): New function, based on fd-safer.c.
19210         (dup_safer_noinherit): New function, based on dup-safer.c.
19211         (undup_safer_noinherit): New function.
19212         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
19213         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
19214         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
19215         instead of fd_safer.
19216         * tests/test-pipe.c: Include <windows.h>.
19217         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
19218
19219         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
19220         from main.
19221         (test_pipe): Pass an extra argument for disambiguation.
19222         (main): Invoke parent_main or child_main.
19223
19224         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
19225         consistently.
19226
19227 2009-07-18  Eric Blake  <ebb9@byu.net>
19228
19229         test-pipe: fix mingw build
19230         * tests/test-pipe.c (main): Avoid fcntl on mingw.
19231
19232 2009-07-18  Bruno Haible  <bruno@clisp.org>
19233
19234         * modules/pipe-tests (Makefile.am): Fix typo.
19235
19236 2009-07-18  Eric Blake  <ebb9@byu.net>
19237
19238         error: fix mingw build
19239         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
19240         Reported by Bruno Haible.
19241
19242         error: avoid undefined use of stdout
19243         * lib/error.c (error, error_at_line): Check that fd 1 is open
19244         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
19245         is handling faults and the close_stdout module wants to report the
19246         detection of closed stdout as an error.
19247
19248 2009-07-17  Eric Blake  <ebb9@byu.net>
19249
19250         pipe: be robust in face of closed fds
19251         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
19252         should cause child to misbehave.
19253         * modules/pipe-tests: New module.
19254         * tests/test-pipe.c: New file.
19255         * tests/test-pipe.sh: New file.
19256         Reported by Akim Demaille.
19257
19258 2009-07-14  Bruno Haible  <bruno@clisp.org>
19259
19260         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
19261         Reported by anonymous kc.
19262
19263 2009-07-07  Jim Meyering  <meyering@redhat.com>
19264
19265         maint.mk: don't look for translatable strings in *.m4 or *.mk
19266         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
19267         when searching for translatable strings.
19268
19269 2009-07-05  Jim Meyering  <meyering@redhat.com>
19270
19271         remove superfluous parentheses in STREQ definition
19272         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
19273         * lib/getugroups.c (STREQ): Likewise.
19274         * lib/fnmatch.c (STREQ): Likewise.
19275         Spotted by Bruno Haible.
19276
19277 2009-07-04  Jim Meyering  <meyering@redhat.com>
19278
19279         argv-iter: new module
19280         * MODULES.html.sh: Add argv-iter.
19281         * lib/argv-iter.c, lib/argv-iter.h: New files.
19282         * modules/argv-iter: New file.
19283         * modules/argv-iter-tests: New file.
19284         * tests/test-argv-iter.c: Test it.
19285
19286 2009-07-04  Bruno Haible  <bruno@clisp.org>
19287
19288         Fix assertion.
19289         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
19290         contains more exact copies of a given entry than file2, leave the extra
19291         copies unpaired rather than aborting.
19292         Reported by Eric Blake.
19293
19294 2009-07-02  Bruno Haible  <bruno@clisp.org>
19295
19296         Speedup git-merge-changelog for git cherry-pick.
19297         * lib/git-merge-changelog.c (struct entries_mapping): New type.
19298         (entries_mapping_get): New function, extracted from compute_mapping.
19299         (entries_mapping_reverse_get): New function.
19300         (compute_mapping): Add a 'full' argument. Return the result in a
19301         'struct entries_mapping'.
19302         (main): Update. Access the mappings through entries_mapping_get.
19303         Reported by Eric Blake.
19304
19305 2009-07-02  Bruno Haible  <bruno@clisp.org>
19306
19307         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
19308         best_i.
19309
19310 2009-07-02  Bruno Haible  <bruno@clisp.org>
19311
19312         Speed up approximate search for matching ChangeLog entries.
19313         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
19314         argument. Call fstrcmp_bounded instead of fstrcmp.
19315         (compute_mapping, try_split_merged_entry, main): Update callers.
19316
19317 2009-07-02  Bruno Haible  <bruno@clisp.org>
19318
19319         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
19320
19321 2009-06-30  Bruno Haible  <bruno@clisp.org>
19322
19323         Reduce the number of uc_is_cased calls.
19324         * lib/unicase.h (casing_suffix_context_t): Add
19325         'first_char_except_ignorable' field.
19326         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
19327         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
19328         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
19329         Update initializer.
19330         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
19331         case-ignorable characters.
19332         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
19333         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
19334         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
19335         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
19336         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
19337
19338 2009-06-30  Bruno Haible  <bruno@clisp.org>
19339
19340         Tests for module 'unicase/ignorable'.
19341         * modules/unicase/ignorable-tests: New file.
19342         * tests/unicase/test-ignorable.c: New file, generated by
19343         gen-uni-tables.
19344
19345         Tests for module 'unicase/cased'.
19346         * modules/unicase/cased-tests: New file.
19347         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
19348         * tests/unicase/test-predicate-part1.h: New file, derived from
19349         tests/unictype/test-predicate-part1.h.
19350         * tests/unicase/test-predicate-part2.h: New file, same as
19351         tests/unictype/test-predicate-part2.h.
19352
19353         Fix evaluation of "Before C" condition of FINAL_SIGMA.
19354         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
19355         (output_casing_properties): New function.
19356         (main): Call it.
19357         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
19358         * lib/unicase/cased.c: Include unictype/bitmap.h.
19359         (uc_is_cased): Define through a bitmap lookup.
19360         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
19361         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
19362         (uc_is_case_ignorable): Define through a bitmap lookup.
19363         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
19364         lib/unictype/bitmap.h.
19365         (Depends-on): Add inline. Clean up.
19366         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
19367         lib/unictype/bitmap.h.
19368         (Depends-on): Add inline. Clean up.
19369         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
19370         recognition.
19371         * tests/unicase/test-u16-tolower.c (main): Likewise.
19372         * tests/unicase/test-u32-tolower.c (main): Likewise.
19373
19374 2009-06-30  Bruno Haible  <bruno@clisp.org>
19375
19376         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
19377         * lib/unicase/u16-casemap.c: Likewise.
19378         * lib/unicase/u32-casemap.c: Likewise.
19379
19380 2009-06-29  Bruno Haible  <bruno@clisp.org>
19381
19382         Define u32_casefold as a wrapper around u32_ct_casefold.
19383         * lib/unicase/u32-casefold.c: Update.
19384         * modules/unicase/u32-casefold (Depends-on): Add
19385         unicase/u32-ct-casefold, unicase/empty-prefix-context,
19386         unicase/empty-suffix-context. Clean up.
19387
19388         Define u16_casefold as a wrapper around u16_ct_casefold.
19389         * lib/unicase/u16-casefold.c: Update.
19390         * modules/unicase/u16-casefold (Depends-on): Add
19391         unicase/u16-ct-casefold, unicase/empty-prefix-context,
19392         unicase/empty-suffix-context. Clean up.
19393
19394         Define u8_casefold as a wrapper around u8_ct_casefold.
19395         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
19396         * lib/unicase/u8-casefold.c: Update.
19397         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
19398         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19399
19400         Define u32_totitle as a wrapper around u32_ct_totitle.
19401         * lib/unicase/u32-totitle.c: Update.
19402         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
19403         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19404
19405         Define u16_totitle as a wrapper around u16_ct_totitle.
19406         * lib/unicase/u16-totitle.c: Update.
19407         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
19408         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19409
19410         Define u8_totitle as a wrapper around u8_ct_totitle.
19411         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
19412         functions.
19413         (FUNC): Delegate to U_CT_TOTITLE.
19414         * lib/unicase/u8-totitle.c: Update.
19415         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
19416         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19417
19418         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
19419         invocation.
19420         * modules/unicase/u32-tolower (Depends-on): Add
19421         unicase/empty-prefix-context, unicase/empty-suffix-context.
19422
19423         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
19424         invocation.
19425         * modules/unicase/u16-tolower (Depends-on): Add
19426         unicase/empty-prefix-context, unicase/empty-suffix-context.
19427
19428         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
19429         * modules/unicase/u8-tolower (Depends-on): Add
19430         unicase/empty-prefix-context, unicase/empty-suffix-context.
19431
19432         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
19433         invocation.
19434         * modules/unicase/u32-toupper (Depends-on): Add
19435         unicase/empty-prefix-context, unicase/empty-suffix-context.
19436
19437         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
19438         invocation.
19439         * modules/unicase/u16-toupper (Depends-on): Add
19440         unicase/empty-prefix-context, unicase/empty-suffix-context.
19441
19442         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
19443         * modules/unicase/u8-toupper (Depends-on): Add
19444         unicase/empty-prefix-context, unicase/empty-suffix-context.
19445
19446         New module 'unicase/u32-ct-casefold'.
19447         * lib/unicase/u32-ct-casefold.c: New file.
19448         * modules/unicase/u32-ct-casefold: New file.
19449
19450         New module 'unicase/u16-ct-casefold'.
19451         * lib/unicase/u16-ct-casefold.c: New file.
19452         * modules/unicase/u16-ct-casefold: New file.
19453
19454         New module 'unicase/u8-ct-casefold'.
19455         * lib/unicase/u8-ct-casefold.c: New file.
19456         * lib/unicase/u-ct-casefold.h: New file, derived from
19457         lib/unicase/u-casefold.h.
19458         * modules/unicase/u8-ct-casefold: New file.
19459
19460         New module 'unicase/u32-ct-totitle'.
19461         * lib/unicase/u32-ct-totitle.c: New file.
19462         * modules/unicase/u32-ct-totitle: New file.
19463
19464         New module 'unicase/u16-ct-totitle'.
19465         * lib/unicase/u16-ct-totitle.c: New file.
19466         * modules/unicase/u16-ct-totitle: New file.
19467
19468         New module 'unicase/u8-ct-totitle'.
19469         * lib/unicase/u8-ct-totitle.c: New file.
19470         * lib/unicase/u-ct-totitle.h: New file, derived from
19471         lib/unicase/u-totitle.h.
19472         * modules/unicase/u8-ct-totitle: New file.
19473
19474         New module 'unicase/u32-ct-tolower'.
19475         * lib/unicase/u32-ct-tolower.c: New file.
19476         * modules/unicase/u32-ct-tolower: New file.
19477
19478         New module 'unicase/u16-ct-tolower'.
19479         * lib/unicase/u16-ct-tolower.c: New file.
19480         * modules/unicase/u16-ct-tolower: New file.
19481
19482         New module 'unicase/u8-ct-tolower'.
19483         * lib/unicase/u8-ct-tolower.c: New file.
19484         * modules/unicase/u8-ct-tolower: New file.
19485
19486         New module 'unicase/u32-ct-toupper'.
19487         * lib/unicase/u32-ct-toupper.c: New file.
19488         * modules/unicase/u32-ct-toupper: New file.
19489
19490         New module 'unicase/u16-ct-toupper'.
19491         * lib/unicase/u16-ct-toupper.c: New file.
19492         * modules/unicase/u16-ct-toupper: New file.
19493
19494         New module 'unicase/u8-ct-toupper'.
19495         * lib/unicase/u8-ct-toupper.c: New file.
19496         * modules/unicase/u8-ct-toupper: New file.
19497
19498         Add context arguments to u*_casemap functions.
19499         * lib/unicase/unicasemap.h: Include unicase.h.
19500         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
19501         suffix_context arguments.
19502         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
19503         functions.
19504         (FUNC): Add prefix_context and suffix_context arguments. Use
19505         uc_is_cased and uc_is_case_ignorable.
19506         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
19507         * lib/unicase/u16-casemap.c: Likewise.
19508         * lib/unicase/u32-casemap.c: Likewise.
19509         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
19510         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19511         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
19512         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19513         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
19514         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19515
19516         New module 'unicase/u32-suffix-context'.
19517         * lib/unicase/u32-suffix-context.c: New file.
19518         * modules/unicase/u32-suffix-context: New file.
19519
19520         New module 'unicase/u16-suffix-context'.
19521         * lib/unicase/u16-suffix-context.c: New file.
19522         * modules/unicase/u16-suffix-context: New file.
19523
19524         New module 'unicase/u8-suffix-context'.
19525         * lib/unicase/u8-suffix-context.c: New file.
19526         * lib/unicase/u-suffix-context.h: New file.
19527         * modules/unicase/u8-suffix-context: New file.
19528
19529         New module 'unicase/empty-suffix-context'.
19530         * lib/unicase/empty-suffix-context.c: New file.
19531         * modules/unicase/empty-suffix-context: New file.
19532
19533         New module 'unicase/u32-prefix-context'.
19534         * lib/unicase/u32-prefix-context.c: New file.
19535         * modules/unicase/u32-prefix-context: New file.
19536
19537         New module 'unicase/u16-prefix-context'.
19538         * lib/unicase/u16-prefix-context.c: New file.
19539         * modules/unicase/u16-prefix-context: New file.
19540
19541         New module 'unicase/u8-prefix-context'.
19542         * lib/unicase/u8-prefix-context.c: New file.
19543         * lib/unicase/u-prefix-context.h: New file.
19544         * lib/unicase/context.h: New file.
19545         * modules/unicase/u8-prefix-context: New file.
19546
19547         New module 'unicase/empty-prefix-context'.
19548         * lib/unicase/empty-prefix-context.c: New file.
19549         * modules/unicase/empty-prefix-context: New file.
19550
19551         New module 'unicase/ignorable'.
19552         * lib/unicase/ignorable.c: New file.
19553         * modules/unicase/ignorable: New file.
19554
19555         New module 'unicase/cased'.
19556         * lib/unicase/caseprop.h: New file.
19557         * lib/unicase/cased.c: New file.
19558         * modules/unicase/cased: New file.
19559
19560         New functions for case mapping of substrings.
19561         * lib/unicase.h (casing_prefix_context_t): New type.
19562         (unicase_empty_prefix_context): New variable.
19563         (u8_casing_prefix_context, u16_casing_prefix_context,
19564         u32_casing_prefix_context, u8_casing_prefixes_context,
19565         u16_casing_prefixes_context, u32_casing_prefixes_context): New
19566         declarations.
19567         (casing_suffix_context_t): New type.
19568         (unicase_empty_suffix_context): New variable.
19569         (u8_casing_suffix_context, u16_casing_suffix_context,
19570         u32_casing_suffix_context, u8_casing_suffixes_context,
19571         u16_casing_suffixes_context, u32_casing_suffixes_context,
19572         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
19573         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
19574         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
19575         declarations.
19576
19577 2009-06-28  Jim Meyering  <meyering@redhat.com>
19578
19579         boostrap: indent only with spaces
19580         * build-aux/bootstrap: Indent only with spaces, never TABs.
19581
19582         bootstrap: split long lines
19583         * build-aux/bootstrap: Keep line length < 80.
19584
19585         bootstrap: sync from coreutils
19586         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
19587         just as autoreconf does.  Verify a list of prerequisite
19588         package-name,version-number pairs if defined in bootstrap.conf.
19589         Refer to README-prereq, if prerequisites are not satisfied.
19590
19591 2009-06-27  Eric Blake  <ebb9@byu.net>
19592
19593         tests: add test for bogus NULL definition
19594         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
19595         * tests/test-stdlib.c: Likewise.
19596         * tests/test-string.c: Likewise.
19597         * tests/test-locale.c: Likewise.
19598         * tests/test-unistd.c: Likewise.
19599         * modules/stdio-tests (Depends-on): Add verify.
19600         * modules/stdlib-tests (Depends-on): Likewise.
19601         * modules/string-tests (Depends-on): Likewise.
19602         * modules/locale-tests (Depends-on): Likewise.
19603         * modules/unistd-tests (Depends-on): Likewise.
19604
19605 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
19606
19607         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
19608         self-explaining comment.
19609         * m4/selinux-selinux-h: Update serial.
19610         (gl_LIBSELINUX): New macro, adding a warning for missing development
19611         packages to code extracted from...
19612         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
19613         Add warning for missing development packages here, too.
19614
19615 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
19616
19617         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
19618
19619 2009-06-25  Eric Blake  <ebb9@byu.net>
19620
19621         version-etc: fix regression
19622         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
19623         gcc.
19624         (version_etc): Use it, to catch bugs with trailing NULL.
19625         * lib/version-etc.c (version_etc_arn): Delete unused argument.
19626         (version_etc_va): Fix logic bug.
19627         * modules/version-etc-tests: Add test.
19628         * tests/test-version-etc.c: New file.
19629         * tests/test-version-etc.sh: Likewise.
19630
19631 2009-06-25  Sam Steingold  <sds@gnu.org>
19632
19633         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
19634         mbtowc declaration.
19635
19636 2009-06-25  Eric Blake  <ebb9@byu.net>
19637
19638         fpurge: migrate into <stdio.h>
19639         * lib/fpurge.h: Delete...
19640         * lib/stdio.in.h (fpurge): ...and declare here, instead.
19641         * lib/fpurge.c (fpurge): Change declaring header.
19642         * modules/fpurge (Files): Drop deleted file.
19643         (Depends-on): Add stdio.
19644         (configure.ac): Set witness.
19645         * modules/stdio (Makefile.am): Support fpurge macros.
19646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19647         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
19648         * lib/fflush.c: Update client.
19649         * tests/test-fpurge.c: Likewise.
19650         * NEWS: Mention the change.
19651
19652 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19653
19654         * lib/argp-version-etc.c (program_authors): Add const
19655         qualifier.
19656         * lib/version-etc.c: Fix typos in the comments.
19657         * modules/argp-version-etc: Depends on version-etc.
19658
19659 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19660
19661         argp-version-etc: new module.
19662
19663         * lib/argp-version-etc.c: New file.
19664         * lib/argp-version-etc.h: New file.
19665         * modules/argp-version-etc: New file.
19666         * modules/argp-version-etc-tests: New file.
19667         * tests/test-argp-version-etc.c: New test.
19668         * tests/test-argp-version-etc-1.sh: New test.
19669
19670 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19671
19672         Provide additional interfaces and documentation for version-etc
19673         module.
19674
19675         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
19676         interfaces.
19677         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
19678         prototypes.
19679
19680 2009-06-24  Bruno Haible  <bruno@clisp.org>
19681
19682         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
19683         HAVE_LIB${NAME} macro.
19684         Reported by Sam Steingold <sds@gnu.org>.
19685
19686 2009-06-23  Simon Josefsson  <simon@josefsson.org>
19687
19688         * modules/hash-tests (test_hash_LDADD): Link to libintl when
19689         needed.
19690
19691 2009-06-21  Bruno Haible  <bruno@clisp.org>
19692
19693         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
19694         work.
19695         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
19696         together with LIB${NAME}, LTLIB${NAME}.
19697         Reported by Sam Steingold <sds@gnu.org>.
19698
19699 2009-06-20  Jim Meyering  <meyering@redhat.com>
19700
19701         tests: make sc_require_test_exit_idiom more generic
19702         * top/maint.mk (Exit_witness_file): New overridable variable.
19703         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
19704         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
19705
19706 2009-06-19  Jim Meyering  <meyering@redhat.com>
19707
19708         hash: reverse order of src/dst parameters in an internal interface
19709         * lib/hash.c (transfer_entries): Reverse order of parameters to
19710         put DST before SRC.  Adjust callers.
19711
19712         tests: test-hash: avoid wholesale duplication
19713         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
19714         Instead, use a loop and add a single conditional.
19715
19716         tests: test-hash: allow seed selection via a command line argument
19717         * tests/test-hash.c (get_seed): New function.
19718         (main): Use it.
19719
19720 2009-06-19  Eric Blake  <ebb9@byu.net>
19721
19722         hash: avoid memory leak on allocation failure
19723         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
19724         failure.  Factor repeated algorithm...
19725         (transfer_entries): ...into new helper routine.
19726         (hash_delete): React to hash_rehash return value.
19727
19728         hash: reduce memory pressure in hash_rehash no-op case
19729         * lib/hash.c (next_prime): Avoid overflow.
19730         (hash_initialize): Factor bucket size computation...
19731         (compute_bucket_size): ...into new helper function.
19732         (hash_rehash): Use new function and open coding to reduce memory
19733         pressure, and avoid a memory leak in USE_OBSTACK code.
19734         Reported by Jim Meyering.
19735
19736 2009-06-18  Eric Blake  <ebb9@byu.net>
19737
19738         hash: make rotation more obvious
19739         * modules/hash (Depends-on): Add bitrotate and stdint.
19740         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
19741         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
19742         (SIZE_MAX): Rely on headers for definition.
19743         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
19744         (raw_hasher): Use rotr_sz.
19745         Suggested by Jim Meyering.
19746
19747         hash: fix memory leak in last patch
19748         * lib/hash.c (hash_rehash): Avoid memory leak.
19749
19750         hash: avoid no-op rehashing
19751         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
19752
19753         hash: provide default callback functions
19754         * lib/hash.c (raw_hasher, raw_comparator): New functions.
19755         (hash_initialize): Use them as defaults.
19756         * tests/test-hash.c (main): Test this.
19757
19758         hash: minor optimization
19759         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
19760         when possible.
19761         (hash_initialize): Document this promise.
19762         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
19763         * tests/test-hash.c (hash_compare_strings): Test this.
19764
19765 2009-06-18  Bruno Haible  <bruno@clisp.org>
19766
19767         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
19768         going to be replaced anyway.
19769
19770 2009-06-18  Bruno Haible  <bruno@clisp.org>
19771
19772         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
19773         in one place.
19774         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
19775         be replaced anyway.
19776
19777 2009-06-18  Eric Blake  <ebb9@byu.net>
19778
19779         hash: check for resize before insertion
19780         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
19781         threshold before insertion, so that a pathological hash_rehash
19782         that fills every bucket can still trigger another rehash.
19783
19784 2009-06-18  Jim Meyering  <meyering@redhat.com>
19785
19786         hash-tests: add a loop around the small tests
19787         * tests/test-hash.c (main): Repeat small tests with selected
19788         small initial table sizes.
19789
19790 2009-06-17  Eric Blake  <ebb9@byu.net>
19791
19792         hash: minor cleanups
19793         * lib/hash.h (hash_entry): Make opaque, by moving...
19794         * lib/hash.c (hash_entry): ...here.
19795         (hash_insert): Clarify restrictions on what can be inserted.
19796         (hash_get_next): Clarify when it is safe to remove an element
19797         during traversal.
19798         (check_tuning): Skip verification when tuning is known safe.
19799         (hash_initialize): Clarify restrictions on tuning.
19800
19801 2009-06-17  Jim Meyering  <jim@meyering.net>
19802         and Eric Blake  <ebb9@byu.net>
19803
19804         hash-tests: new module
19805         * modules/hash-tests: New file.
19806         * tests/test-hash.c: New file.
19807
19808 2009-06-17  Eric Blake  <ebb9@byu.net>
19809
19810         strstr-simple: document new module
19811         * MODULES.html.sh: Document new module.
19812
19813         strstr, strcasestr: replace on platforms with broken memchr
19814         * modules/strstr: Split into...
19815         * modules/strstr-simple: ...new module that does not care about
19816         performance, but does care about glibc bug.
19817         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
19818         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
19819         if platform memchr is broken, per Debian bug 521737.
19820         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
19821         memchr.
19822         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
19823         * doc/posix-functions/strstr.texi (strstr): Document the fix.
19824         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19825         * modules/mountlist (Depends-on): Add strstr-simple.
19826         * modules/gen-uni-tables (Depends-on): Likewise.
19827         * modules/argz (Depends-on): Add strstr.
19828
19829 2009-06-17  Bruno Haible  <bruno@clisp.org>
19830
19831         * modules/posix_spawn-internal (Depends-on): Add errno.
19832
19833 2009-06-17  Bruno Haible  <bruno@clisp.org>
19834
19835         Define missing ESTALE on Interix 3.5.
19836         * lib/errno.in.h (ESTALE): Assign a value if missing.
19837         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
19838         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
19839         missing.
19840         * doc/posix-headers/errno.texi: Mention the Interix bug.
19841         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
19842
19843 2009-06-15  Eric Blake  <ebb9@byu.net>
19844
19845         memchr, memchr2: add valgrind exception
19846         * lib/memchr.valgrind: New file.
19847         * lib/memchr2.valgrind: New file.
19848         * modules/memchr (Files): Distribute valgrind file.
19849         * modules/memchr2 (Files): Likewise.
19850
19851         docs: memchr is no longer obsolete
19852         * MODULES.html.sh: Move memchr from obsolete to string.h section.
19853         * lib/string.in.h (memchr): Simplify logic.
19854
19855 2009-06-14  Jim Meyering  <meyering@redhat.com>
19856
19857         link-follow: fix the "checking..." message to not mention trailing slash
19858         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
19859         never considered trailing slashes.
19860
19861 2009-06-14  Bruno Haible  <bruno@clisp.org>
19862
19863         * m4/memchr.m4: Mention also the bug on IA-64.
19864         * doc/posix-functions/memchr.texi: Likewise.
19865
19866 2009-06-12  Eric Blake  <ebb9@byu.net>
19867
19868         memchr: detect broken x86_64 and alpha implementations
19869         * modules/memchr-tests (Depends-on): Move mmap detection...
19870         * modules/memchr (Depends-on): ...here.
19871         (configure.ac): Set indicator.
19872         * lib/string.in.h (memchr): Declare replacement.
19873         * modules/string (Makefile.am): Trigger replacement.
19874         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
19875         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
19876         bugs.
19877         * doc/posix-functions/memchr.texi (memchr): Document the bug.
19878         * modules/getpagesize (License): Relax license.
19879
19880 2009-06-11  Bruno Haible  <bruno@clisp.org>
19881
19882         * lib/idpriv.h: Add more references.
19883
19884 2009-06-08  Bruno Haible  <bruno@clisp.org>
19885
19886         Tests for module 'idpriv-droptemp'.
19887         * modules/idpriv-droptemp-tests: New file.
19888         * tests/test-idpriv-droptemp.sh: New file.
19889         * tests/test-idpriv-droptemp.su.sh: New file.
19890         * tests/test-idpriv-droptemp.c: New file.
19891
19892         New module 'idpriv-droptemp'.
19893         * lib/idpriv-droptemp.c: New file.
19894         * modules/idpriv-droptemp: New file.
19895
19896 2009-06-08  Bruno Haible  <bruno@clisp.org>
19897
19898         Tests for module 'idpriv-drop'.
19899         * modules/idpriv-drop-tests: New file.
19900         * tests/test-idpriv-drop.sh: New file.
19901         * tests/test-idpriv-drop.su.sh: New file.
19902         * tests/test-idpriv-drop.c: New file.
19903
19904         New module 'idpriv-drop'.
19905         * lib/idpriv.h: New file.
19906         * lib-idpriv-drop.c: New file.
19907         * m4/idpriv.m4: New file.
19908         * modules/idpriv-drop: New file.
19909
19910 2009-06-08  Bruno Haible  <bruno@clisp.org>
19911
19912         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
19913         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19914         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19915         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19916         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19917         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19918         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19919
19920 2009-06-08  Eric Blake  <ebb9@byu.net>
19921
19922         test-strstr: use memory fence, when possible
19923         * tests/test-strstr.c (main): Use memory fence, in order to be
19924         more likely to trigger Debian bug 521737.
19925         * modules/strstr-tests (Files): Pull in additional files.
19926
19927         memchr: no longer obsolete, for wider field testing
19928         * modules/memchr (Status, Notice): Delete, this module is no
19929         longer obsolete.
19930         * modules/vasnprintf (Depends-on): Add memchr.
19931
19932 2009-06-07  Jim Meyering  <meyering@redhat.com>
19933
19934         hash: declare some functions with the warn_unused_result attribute
19935         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
19936
19937 2009-06-07  Bruno Haible  <bruno@clisp.org>
19938
19939         * tests/test-alignof.c: Don't test int64_t if it does not exist.
19940         Reported by Eric Blake.
19941
19942 2009-06-06  Eric Blake  <ebb9@byu.net>
19943
19944         test-alignof: fix typo with long double
19945         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
19946         compiler error.
19947
19948 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
19949
19950         Escape non-texinfo { and }s.
19951         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
19952         markup error.
19953
19954 2009-06-04  Jim Meyering  <meyering@redhat.com>
19955
19956         gitlog-to-changelog: don't infloop on an empty commit log
19957         * build-aux/gitlog-to-changelog: Warn about an empty log message.
19958         Reported by Boris Petersen <transacid@centerim.org>.
19959
19960 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
19961
19962         version-etc: extend for packagers
19963         Add three new configure options, intended for packagers:
19964           --with-packager="packager name"
19965           --with-packager-version="packager-specific version"
19966           --with-packager-bug-reports="packager bug reporting"
19967         An example with coreutils:
19968           $ ./configure \
19969             --with-packager=Gentoo \
19970             --with-packager-bug-report=http://bugs.gentoo.org/ \
19971             --with-packager-version="patchset 1.6"
19972           $ ./src/ls --version | head -n2
19973           ls (GNU coreutils) 7.1-dirty
19974           Packaged by Gentoo (patchset 1.6)
19975         Note that the bug reporting info via --help doesn't show up because
19976         coreutils uses its own custom emit_bug_reporting_address() implementation
19977         in src/system.h.  If it didn't, it'd look like:
19978           $ ./src/ls --help | tail -n4
19979           Report bugs to <bug-coreutils@gnu.org>.
19980           Report Gentoo bugs to <http://bugs.gentoo.org/>.
19981           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
19982           General help using GNU software: <http://www.gnu.org/gethelp/>.
19983         * lib/version-etc.c: Print new information, if provided.
19984         * m4/version-etc.m4: New file.
19985         * modules/version-etc (Files): Add m4/version-etc.m4.
19986         (configure.ac): Add gl_VERSION_ETC.
19987
19988 2009-05-31  Bruno Haible  <bruno@clisp.org>
19989
19990         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
19991         and 'int64_t'.
19992         * modules/alignof-tests (Dependencies): Add stdint.
19993         Reported by Eric Blake.
19994
19995 2009-05-31  Bruno Haible  <bruno@clisp.org>
19996
19997         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
19998         restriction due to compiler bugs.
19999         Reported by Eric Blake.
20000
20001 2009-05-31  Simon Josefsson  <simon@josefsson.org>
20002             Bruno Haible  <bruno@clisp.org>
20003
20004         Fix test-alignof failure.
20005         * lib/alignof.h (alignof_slot): New macro.
20006         (alignof_type): New macro, with the same semantics as the previous
20007         'alignof'.
20008         (alignof): Alias to alignof_slot.
20009         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
20010         check that the results are usable as constant expressions.
20011
20012 2009-05-31  Bruno Haible  <bruno@clisp.org>
20013
20014         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
20015         * tests/test-memchr.c (main): Check that memchr does not read past the
20016         first occurrence of the byte.
20017         * tests/test-strstr.c (main): Update comment.
20018         Suggested by Eric Blake.
20019
20020 2009-05-30  Bruno Haible  <bruno@clisp.org>
20021
20022         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
20023         detail how to use dumpbin.
20024         Reported by David Byron <dbyron@dbyron.com>.
20025
20026 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20027
20028         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
20029
20030 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20031
20032         * m4/manywarnings.m4: Add GCC 4.4 warnings.
20033
20034 2009-05-28  Bruno Haible  <bruno@clisp.org>
20035
20036         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
20037         build-aux/ files.
20038
20039 2009-05-28  Simon Josefsson  <simon@josefsson.org>
20040
20041         * gnulib-tool (func_import): Transform license on build-aux/ files too.
20042
20043 2009-05-27  Simon Josefsson  <simon@josefsson.org>
20044
20045         * gnulib-tool (sed_transform_main_lib_file)
20046         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
20047         regexps.
20048
20049 2009-05-26  Simon Josefsson  <simon@josefsson.org>
20050
20051         * tests/test-strstr.c: Add another self-test.
20052         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
20053         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
20054
20055 2009-05-23  Bruno Haible  <bruno@clisp.org>
20056
20057         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
20058         change.
20059
20060 2009-05-21  Bruno Haible  <bruno@clisp.org>
20061
20062         Simplify use of mode_t varargs.
20063         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
20064         uses 'mode_t' or 'int'.
20065         * lib/openat.c (openat): Likewise.
20066         * lib/open-safer.c (open_safer): Likewise.
20067         * m4/mode_t.m4: New file.
20068         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
20069         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
20070         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
20071         * modules/open (Files): Add m4/mode_t.m4.
20072         * modules/openat (Files): Likewise.
20073         * modules/fcntl-safer (Files): Likewise.
20074         Suggested by Eric Blake.
20075
20076 2009-05-21  Pádraig Brady  <P@draigbrady.com>
20077
20078         * doc/glibc-functions/fallocate.texi: New file.
20079         * doc/gnulib.texi: Include it.
20080
20081 2009-05-21  Eric Blake  <ebb9@byu.net>
20082             Bruno Haible  <bruno@clisp.org>
20083
20084         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
20085         invocations.
20086         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20087
20088 2009-05-21  Eric Blake  <ebb9@byu.net>
20089             Bruno Haible  <bruno@clisp.org>
20090
20091         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
20092         include_next. Fix of 2008-11-20 commit.
20093         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
20094         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
20095         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
20096         NEXT_MATH_H.
20097         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
20098         instead of NEXT_MATH_H.
20099
20100 2009-05-21  Bruno Haible  <bruno@clisp.org>
20101
20102         Avoid redefinition warnings for SIZE_MAX.
20103         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
20104         Reported by Simon Josefsson.
20105
20106 2009-05-21  Bruno Haible  <bruno@clisp.org>
20107
20108         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
20109         AC_CACHE_VAL.
20110
20111 2009-05-20  Bruno Haible  <bruno@clisp.org>
20112
20113         Make zeroptr.h work on mingw.
20114         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
20115         mprotect.
20116         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
20117         * modules/memchr2-tests (configure.ac): Likewise.
20118         * modules/memcmp-tests (configure.ac): Likewise.
20119         * modules/memmem-tests (configure.ac): Likewise.
20120         * modules/memrchr-tests (configure.ac): Likewise.
20121         Reported by Simon Josefsson.
20122
20123 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20124
20125         * tests/test-glob.c: Include string.h for strcmp prototype.
20126
20127 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20128
20129         * modules/getdelim (Depends-on): Add explicit stdint, although it
20130         was implicitly already pulled in via realloc-posix.
20131         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
20132
20133 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20134
20135         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
20136         G. Christensen" <tgc@jupiterrise.com>.
20137         * m4/sys_socket_h.m4: Check for sa_family_t.
20138         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
20139         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
20140         * tests/test-sys_socket.c: Check that sa_family_t works.
20141
20142 2009-05-18  Eric Blake  <ebb9@byu.net>
20143
20144         maint.mk: allow gnulib_dir in VPATH build
20145         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
20146
20147 2009-05-15  Jim Meyering  <meyering@redhat.com>
20148
20149         maint.mk: Give gnulib_dir a default definition.
20150         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
20151         Thus, most packages no longer need to specify this variable in cfg.mk
20152
20153 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
20154
20155         rename.m4: fix typos that would make non-mingw cross-configure fail
20156         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
20157
20158 2009-05-13  Eric Blake  <ebb9@byu.net>
20159
20160         mmap-anon: avoid out-of-order autoconf expansion
20161         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
20162         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
20163         * modules/memchr-tests (Depends-on): Add extensions.
20164         * modules/memchr2-tests (Depends-on): Add extensions.
20165         * modules/memcmp-tests (Depends-on): Add extensions.
20166         * modules/memmem-tests (Depends-on): Add extensions.
20167         * modules/memrchr-tests (Depends-on): Add extensions.
20168
20169 2009-05-13  Bruno Haible  <bruno@clisp.org>
20170
20171         Make some tests ISO C 99 compliant.
20172         * tests/zerosize-ptr.h: New file.
20173         * tests/test-memchr.c: Include zerosize-ptr.h.
20174         (main): Use a zero-size object pointer instead of NULL.
20175         * tests/test-memchr2.c: Include zerosize-ptr.h.
20176         (main): Use a zero-size object pointer instead of NULL.
20177         * tests/test-memcmp.c: Include zerosize-ptr.h.
20178         (main): Use a zero-size object pointer instead of NULL.
20179         * tests/test-memmem.c: Include zerosize-ptr.h.
20180         (main): Use a zero-size object pointer instead of NULL.
20181         * tests/test-memrchr.c: Include zerosize-ptr.h.
20182         (main): Use a zero-size object pointer instead of NULL.
20183         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
20184         m4/mmap-anon.m4.
20185         (Depends-on): Add getpagesize.
20186         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20187         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
20188         m4/mmap-anon.m4.
20189         (Depends-on): Add getpagesize.
20190         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20191         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
20192         m4/mmap-anon.m4.
20193         (Depends-on): Add getpagesize.
20194         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20195         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
20196         m4/mmap-anon.m4.
20197         (Depends-on): Add getpagesize.
20198         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20199         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
20200         m4/mmap-anon.m4.
20201         (Depends-on): Add getpagesize.
20202         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20203
20204 2009-05-12  Bruno Haible  <bruno@clisp.org>
20205
20206         Tests for module 'alignof'.
20207         * modules/alignof-tests: New file.
20208         * tests/test-alignof.c: New file.
20209
20210 2009-05-12  Bruno Haible  <bruno@clisp.org>
20211
20212         Fix alignof macro.
20213         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
20214         vendor compilers that are always correct.
20215
20216 2009-05-12  Bruno Haible  <bruno@clisp.org>
20217
20218         Make the MAP_ANONYMOUS detection work on HP-UX 11.
20219         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
20220         not whether its fully works.
20221
20222 2009-05-12  Bruno Haible  <bruno@clisp.org>
20223
20224         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
20225
20226 2009-05-12  Jim Meyering  <meyering@redhat.com>
20227
20228         * top/maint.mk: Adjust backslash alignment.
20229
20230 2009-05-11  Simon Josefsson  <simon@josefsson.org>
20231
20232         * top/maint.mk: Make $(srcdir)/build-aux configurable.
20233
20234 2009-05-11  Eric Blake  <ebb9@byu.net>
20235
20236         argp: avoid undefined behavior
20237         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
20238         macros.
20239
20240 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20241
20242         * tests/test-vc-list-files-git.sh: Do git config of user.email and
20243         user.name to prevent git commit from complaining.
20244
20245 2009-05-10  Bruno Haible  <bruno@clisp.org>
20246
20247         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
20248         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
20249         it rewrites every file name only once.
20250         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
20251
20252 2009-05-08  Bruno Haible  <bruno@clisp.org>
20253
20254         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
20255         instead of 'max'.
20256
20257 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20258
20259         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
20260         sockaddr_storage test.
20261
20262 2009-05-07  Simon Josefsson  <simon@josefsson.org>
20263
20264         * modules/sys_socket (Makefile.am): Substitute
20265         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
20266         * m4/sys_socket_h.m4: Check for sockaddr_storage.
20267         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
20268         * tests/test-sys_socket.c: Check sockaddr_storage.
20269
20270 2009-05-08  Bruno Haible  <bruno@clisp.org>
20271
20272         New module 'alignof'.
20273         * lib/alignof.h: New file.
20274         * modules/alignof: New file.
20275
20276 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20277             Bruno Haible  <bruno@clisp.org>
20278
20279         Fix test-file-has-acl on FreeBSD.
20280         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
20281         mask is implicitly added.
20282         * tests/test-file-has-acl.c: Include <signal.h>.
20283         (main): Terminate the test after 5 seconds.
20284         * modules/acl-tests (configure.ac): Check for alarm function.
20285
20286 2009-05-04  Bruno Haible  <bruno@clisp.org>
20287
20288         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
20289         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
20290         * modules/errno (configure.ac): Drop AC_REQUIRE.
20291         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
20292         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
20293
20294 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20295
20296         * modules/glob-tests: New module.
20297         * tests/test-glob.c: Add.
20298
20299 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20300
20301         * modules/fnmatch-tests: New module.
20302         * tests/test-fnmatch.c: Add.
20303
20304 2009-05-04  Eric Blake  <ebb9@byu.net>
20305
20306         maint: make the new no-submodule-changes rule VPATH-safe
20307         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
20308
20309 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20310             Bruno Haible  <bruno@clisp.org>
20311
20312         acl: Fix infinite loop on FreeBSD.
20313         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
20314         of return value from acl_get_entry.
20315         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
20316         Likewise.
20317
20318 2009-05-03  Bruno Haible  <bruno@clisp.org>
20319
20320         * lib/acl-internal.h (acl_entries): Clarify return value.
20321         * lib/acl_entries.c (acl_entries): Likewise.
20322
20323 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20324
20325         Bug fix in acl module.
20326         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
20327
20328 2009-05-03  Bruno Haible  <bruno@clisp.org>
20329
20330         Create gperf-generated file in the source dir, not in the build dir.
20331         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
20332         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
20333         * modules/unicase/locale-language (unicase/locale-languages.h):
20334         Likewise.
20335         * modules/unicase/special-casing (unicase/special-casing-table.h):
20336         Likewise.
20337         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
20338         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
20339         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
20340         Reported by Ralf Wildenhues.
20341
20342 2009-05-03  Bruno Haible  <bruno@clisp.org>
20343
20344         * modules/fnmatch (Description, configure.ac): Taken from
20345         fnmatch-posix.
20346         * modules/fnmatch-posix: Turn into a symbolic reference to the
20347         'fnmatch' module, and deprecate.
20348         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
20349
20350 2009-05-03  Bruno Haible  <bruno@clisp.org>
20351
20352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
20353         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
20354         Reported by Ralf Wildenhues.
20355
20356 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20357
20358         * m4/fnmatch.m4: Fix fnmatch re-define.
20359
20360 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20361
20362         priv-set: new module and tests; adapt write-any-file
20363         * lib/priv-set.c: New file.
20364         * lib/priv-set.h: New file.
20365         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
20366         * lib/write-any-file.c: Simplify by using priv-set module.
20367         * m4/priv-set.m4: New file.
20368         * modules/priv-set: New file.
20369         * modules/unlinkdir: Add dependency on priv-set module.
20370         * modules/write-any-file: Likewise.
20371
20372         Tests for module 'priv-set'.
20373         * modules/priv-set-tests: New file.
20374         * tests/test-priv-set.c: New file.
20375
20376 2009-05-03  Jim Meyering  <meyering@redhat.com>
20377             Bruno Haible  <bruno@clisp.org>
20378
20379         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
20380         use the converted UTF-8 variant of the name instead.
20381
20382 2009-05-03  Jim Meyering  <meyering@redhat.com>
20383
20384         tests: tighten some getdate tests
20385         * tests/test-getdate.c (main): Tighten tests: require equality,
20386         not just greater than.  Set TZ envvar to UTC0.
20387
20388 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20389
20390         getdate: correctly interpret "next monday" when run on a Monday
20391         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
20392         that e.g., "next tues" (when run on a tuesday) results in a date
20393         that is one week in the future, and not today's date.
20394         I.e., add a week when the wday is the same as the current one.
20395         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
20396         and earlier by Martin Bernreuther and Jan Minář.
20397         * tests/test-getdate.c (main): Check that "next DAY" is always in
20398         the future and that "last DAY" is always in the past.
20399
20400 2009-05-02  Jim Meyering  <meyering@redhat.com>
20401
20402         build: ensure that a release build fails when a submodule is unclean
20403         * top/maint.mk (no-submodule-changes): New rule.
20404         (alpha beta major): Depend on it.
20405
20406 2009-05-02  Bruno Haible  <bruno@clisp.org>
20407
20408         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
20409         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
20410         shell variable gl_fnmatch_required to detect which variant is
20411         requested.
20412         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
20413         gl_FUNC_FNMATCH_POSIX.
20414         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
20415         exclude fnmatch-posix.
20416
20417 2009-05-02  Bruno Haible  <bruno@clisp.org>
20418
20419         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
20420         * modules/mbsrtowcs (License): Change to LGPLv2+.
20421         * modules/strnlen1 (License): Likewise.
20422         Reported by Simon Josefsson.
20423
20424 2009-05-02  Bruno Haible  <bruno@clisp.org>
20425
20426         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
20427         "cross".
20428         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
20429         gnulib-tool was called with option --source-base=lib.
20430
20431 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20432
20433         Use automake *-local hooks without commands, for extensibility.
20434         * modules/localcharset (Makefile.am): Rename install-exec-local
20435         rule to install-exec-localcharset, and make it a prerequisite of
20436         install-exec-local.  Likewise, rename the uninstall-local rule to
20437         uninstall-localcharset, and make it a prerequisite of the former.
20438
20439 2009-05-01  Bruno Haible  <bruno@clisp.org>
20440
20441         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
20442         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20443         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
20444         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
20445         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
20446         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20447         m4/locale-zh.m4, m4/codeset.m4.
20448
20449         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20450         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
20451         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20452         m4/locale-zh.m4.
20453
20454         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
20455         REPLACE_WCRTOMB if mbstate_t must be replaced.
20456         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
20457         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
20458
20459 2009-05-01  Bruno Haible  <bruno@clisp.org>
20460
20461         Avoid compiler warnings when redefining macros defined by <libintl.h>.
20462         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
20463         dngettext, dcngettext, textdomain, bindtextdomain,
20464         bind_textdomain_codeset): Undefine before redefining.
20465
20466 2009-04-30  Bruno Haible  <bruno@clisp.org>
20467
20468         Fix bug introduced on 2009-04-25.
20469         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
20470         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
20471         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
20472         is defined.
20473         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
20474         is defined.
20475         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
20476         is defined.
20477         Reported by Elbert_Pol <elbert.pol@gmail.com>.
20478
20479 2009-04-28  Bruno Haible  <bruno@clisp.org>
20480
20481         Comment tweaks.
20482         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
20483         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
20484         * lib/unicase.h (u*_casexfrm): Likewise.
20485         Reported by Paolo Bonzini.
20486
20487 2009-04-28  Bruno Haible  <bruno@clisp.org>
20488
20489         Fix a compilation error.
20490         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
20491         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20492         Reported by Jim Meyering.
20493
20494 2009-04-27  Bruno Haible  <bruno@clisp.org>
20495
20496         New module 'libunistring'.
20497         * modules/libunistring: New file.
20498         * m4/libunistring.m4: New file.
20499         * MODULES.html.sh (Unicode string functions): Add it.
20500
20501 2009-04-27  Eric Blake  <ebb9@byu.net>
20502
20503         maint.mk: allow package-specific header to provide <config.h>
20504         * top/maint.mk (sc_require_config_h): New variable.
20505         (sc_require_config_h, sc_require_config_h_first): Use it.
20506
20507 2009-04-27  Simon Josefsson  <simon@josefsson.org>
20508
20509         * top/maint.mk (sc_avoid_if_before_free): Except
20510         useless-if-before-free script.
20511
20512 2009-04-27  Eric Blake  <ebb9@byu.net>
20513
20514         maintainer-makefile: depend on all required helper scripts
20515         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
20516         useless-if-before-free.
20517         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
20518         version, rather than assuming gnulib checkout is available.
20519         Reported by Simen Josefsson.
20520
20521 2009-04-26  Bruno Haible  <bruno@clisp.org>
20522
20523         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
20524         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
20525         "../" or "..".
20526
20527 2009-04-26  Bruno Haible  <bruno@clisp.org>
20528
20529         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
20530         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
20531         AC_LIB_HAVE_LINKFLAGS.
20532
20533 2009-04-26  Bruno Haible  <bruno@clisp.org>
20534
20535         Simplify calling convention of u*_conv_from_encoding.
20536         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
20537         u32_conv_from_encoding): Expect a resultbuf argument and return the
20538         result directly as a pointer.
20539         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
20540         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
20541         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
20542         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
20543         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
20544         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20545         Update.
20546         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
20547         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
20548         * lib/vasnprintf.c (VASNPRINTF): Update.
20549         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
20550         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
20551         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
20552         * NEWS: Mention the change.
20553
20554 2009-04-26  Bruno Haible  <bruno@clisp.org>
20555
20556         Simplify calling convention of u*_conv_to_encoding.
20557         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
20558         u32_conv_to_encoding): Expect a resultbuf argument and return the
20559         result directly as a pointer.
20560         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20561         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
20562         freeing scaled_offsets if mem_iconveha failed.
20563         * lib/unicase/u-casexfrm.h (FUNC): Update.
20564         * lib/uninorm/u-normxfrm.h (FUNC): Update.
20565         * lib/vasnprintf.c (VASNPRINTF): Update.
20566         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
20567         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
20568         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
20569         * NEWS: Mention the change.
20570
20571 2009-04-26  Bruno Haible  <bruno@clisp.org>
20572
20573         Avoid test failures on AIX and OSF/1.
20574         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
20575         malloc(0).
20576         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20577         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20578         Likewise.
20579         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
20580         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
20581         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
20582         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
20583         * doc/posix-functions/malloc.texi: Document the portability problem
20584         related to malloc(0).
20585
20586 2009-04-26  Bruno Haible  <bruno@clisp.org>
20587
20588         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
20589         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
20590         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
20591
20592 2009-04-25  Bruno Haible  <bruno@clisp.org>
20593
20594         Avoid link error when creating a namespace clean library.
20595         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
20596         as macro with arguments if already defined as an alias.
20597         * lib/signbitf.c (gl_signbitf): Don't undefine.
20598         * lib/signbitd.c (gl_signbitd): Don't undefine.
20599         * lib/signbitl.c (gl_signbitl): Don't undefine.
20600
20601 2009-04-25  Jim Meyering  <meyering@redhat.com>
20602
20603         vc-list-files: fix another quoting bug
20604         * build-aux/vc-list-files: Avoid sed backslash expansion
20605         of pathological directory names.
20606
20607 2009-04-25  Eric Blake  <ebb9@byu.net>
20608
20609         vc-list-files: fix shell quoting error
20610         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
20611         timestamp.
20612
20613 2009-04-25  Jim Meyering  <meyering@redhat.com>
20614
20615         vc-list-files: restore lost functionality with subdir argument
20616         * build-aux/vc-list-files: When given a non-"." sub-directory
20617         argument, substitute the $dir/ prefix back onto each resulting name.
20618         Otherwise, coreutils' root_tests check would fail.
20619
20620 2009-04-24  Eric Blake  <ebb9@byu.net>
20621
20622         vc-list-files: ignore git symlinks
20623         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
20624         than ls-files, to ignore git symlinks.
20625
20626         maint.mk: import improvements from m4
20627         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
20628         (move_if_change): Delete unused macro.
20629         (news-date-check, vc-diff-check): Support VPATH builds.
20630         (announcement): Likewise.  Split --bootstrap-tools list...
20631         (boostrap-tools): ...into separate list, which can be overridden
20632         in cfg.mk.
20633         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
20634         requiring dependency on useless-if-before-free module.
20635         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
20636         Support VPATH builds.
20637
20638 2009-04-24  Jim Meyering  <meyering@redhat.com>
20639
20640         maint.mk: remove coreutils-specific rules and variables
20641         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
20642         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
20643         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
20644
20645         maint.mk: remove obsolete rule
20646         * top/maint.mk (rel-check): Remove rule.
20647         (WGET, WGETFLAGS): Remove now-unused variables.
20648
20649 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20650
20651         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
20652         consistency.
20653
20654         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
20655         '$(PATH_SEPARATOR)' instead of ':'.
20656
20657 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20658
20659         * lib/getopt1.c (main): Use 'const' for static array.
20660
20661 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20662
20663         * top/maint.mk: Sync with coreutils.
20664         * NEWS: Explain incompatibilities.
20665
20666 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20667             Bruno Haible  <bruno@clisp.org>
20668
20669         Fix cross-compilation results.
20670         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
20671         statement, as third argument of AC_TRY_RUN.
20672         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20673         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20674         Likewise.
20675         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20676         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20677         Likewise.
20678         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20679         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
20680         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
20681
20682 2009-04-20  Bruno Haible  <bruno@clisp.org>
20683
20684         Avoid test failure on mingw.
20685         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
20686
20687 2009-04-20  Bruno Haible  <bruno@clisp.org>
20688
20689         Avoid compilation error on mingw.
20690         * modules/localename-tests (Depends-on): Add locale.
20691
20692 2009-04-19  Bruno Haible  <bruno@clisp.org>
20693
20694         Support for building a shared library on Windows platforms.
20695         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
20696         (main): Test the presence of UNINORM_NFC here.
20697         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
20698         (main): Test the presence of UNINORM_NFD here.
20699         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
20700         (main): Test the presence of UNINORM_NFKC here.
20701         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
20702         (main): Test the presence of UNINORM_NFKD here.
20703
20704 2009-04-19  Bruno Haible  <bruno@clisp.org>
20705
20706         Avoid a compiler warning.
20707         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
20708         Change type of variable 'sequence'.
20709
20710 2009-04-19  Bruno Haible  <bruno@clisp.org>
20711
20712         * modules/configmake (Makefile.am): When the contents of configmake.h
20713         does not change, arrange to preserve its modification time.
20714
20715 2009-04-17  Simon Josefsson  <simon@josefsson.org>
20716
20717         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
20718         gettext domain.
20719
20720 2009-04-16  Jim Meyering  <meyering@redhat.com>
20721
20722         useless-if-before-free: improve conversion code
20723         * build-aux/useless-if-before-free: Adjust code-in-comment to match
20724         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
20725
20726 2009-04-14  Bruno Haible  <bruno@clisp.org>
20727
20728         * modules/fcntl (Depends-on): Add extensions.
20729         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
20730
20731 2009-04-12  Ben Pfaff  <blp@gnu.org>
20732
20733         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
20734         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
20735
20736 2009-03-20  Ben Pfaff  <blp@gnu.org>
20737
20738         Make rename replace existing destinations on Windows.
20739         * m4/rename.m4: Add test for Mingw.
20740         * lib/rename.c: Add rename replacement that uses MoveFileEx with
20741         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
20742         * doc/posix-functions/rename.texi: Document.
20743
20744 2009-04-10  Bruno Haible  <bruno@clisp.org>
20745
20746         New include file "iconveh.h".
20747         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
20748         * lib/striconveh.h: Include it.
20749         (enum iconv_ilseq_handler): Remove definition.
20750         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
20751         striconveh.h.
20752         * lib/striconveha.c: Include striconveh.h.
20753         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
20754         * modules/striconveh (Files): Add lib/iconveh.h.
20755         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
20756         lib/striconveh.h.
20757
20758 2009-04-10  Bruno Haible  <bruno@clisp.org>
20759
20760         * lib/uniconv.h: Update comment.
20761
20762 2009-04-10  Bruno Haible  <bruno@clisp.org>
20763
20764         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
20765         always.
20766         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
20767         * lib/unistr/u16-mbtouc-aux.c: Likewise.
20768         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
20769         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
20770         "unistring-notinline.h", so that the function gets defined always.
20771         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
20772         * lib/unistr/u8-uctomb.c: Likewise.
20773         * lib/unistr/u16-mbtouc.c: Likewise.
20774         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
20775         * lib/unistr/u16-uctomb.c: Likewise.
20776         * lib/unistr/u32-mbtouc.c: Likewise.
20777         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
20778         * lib/unistr/u32-uctomb.c: Likewise.
20779
20780 2009-04-10  Bruno Haible  <bruno@clisp.org>
20781
20782         Mark 'utime' obsolete.
20783         * modules/utime (Status, Notice): New sections.
20784         Suggested by Jim Meyering.
20785
20786         Fix cross-compile guess for utime test.
20787         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
20788         autoconf.
20789         * doc/posix-functions/utime.texi: Give more precisions.
20790         Reported by Jan <ipif@ymail.com>.
20791
20792 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
20793
20794         filevercmp: correct today's change
20795         * lib/filevercmp.c: Also handle coreutils' test inputs.
20796         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
20797
20798         Fix regression in 'filevercmp' module. Thanks Sven Joachim
20799         for reporting it.
20800         * lib/filevercmp.c: Special handle for "", "." and "..".
20801         * tests/test-filevercmp.c: Enlarge the set suite.
20802
20803 2009-04-07  Jim Meyering  <meyering@redhat.com>
20804
20805         useless-if-before-free: show how to remove braced useless free, too
20806         * build-aux/useless-if-before-free: still only in a comment, though.
20807
20808 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
20809
20810         maint.mk: import changes to syntax-check macros from coreutils
20811         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
20812         Use them in the relevant macros.
20813
20814 2009-04-06  Bruno Haible  <bruno@clisp.org>
20815
20816         Fix unportable use of bit-fields.
20817         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
20818         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
20819         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
20820
20821 2009-04-06  Bruno Haible  <bruno@clisp.org>
20822
20823         Avoid test failures on AIX and OSF/1.
20824         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
20825         that malloc(0) = NULL.
20826         * tests/unicase/test-u8-tolower.c (check): Likewise.
20827         * tests/unicase/test-u8-totitle.c (check): Likewise.
20828         * tests/unicase/test-u8-toupper.c (check): Likewise.
20829         * tests/unicase/test-u16-casefold.c (check): Likewise.
20830         * tests/unicase/test-u16-tolower.c (check): Likewise.
20831         * tests/unicase/test-u16-totitle.c (check): Likewise.
20832         * tests/unicase/test-u16-toupper.c (check): Likewise.
20833         * tests/unicase/test-u32-casefold.c (check): Likewise.
20834         * tests/unicase/test-u32-tolower.c (check): Likewise.
20835         * tests/unicase/test-u32-totitle.c (check): Likewise.
20836         * tests/unicase/test-u32-toupper.c (check): Likewise.
20837         * tests/uninorm/test-u8-nfc.c (check): Likewise.
20838         * tests/uninorm/test-u8-nfd.c (check): Likewise.
20839         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
20840         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
20841         * tests/uninorm/test-u16-nfc.c (check): Likewise.
20842         * tests/uninorm/test-u16-nfd.c (check): Likewise.
20843         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
20844         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
20845         * tests/uninorm/test-u32-nfc.c (check): Likewise.
20846         * tests/uninorm/test-u32-nfd.c (check): Likewise.
20847         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
20848         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
20849
20850 2009-04-05  Bruno Haible  <bruno@clisp.org>
20851
20852         Work around an autoconf limitation.
20853         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
20854         comment line if it would be longer than 3 KB.
20855
20856 2009-04-05  Bruno Haible  <bruno@clisp.org>
20857
20858         Avoid test failure with libiconv-1.13.
20859         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
20860         of the expected test results.
20861
20862 2009-04-05  Bruno Haible  <bruno@clisp.org>
20863
20864         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
20865         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
20866         that it should be installed.
20867
20868 2009-04-05  Bruno Haible  <bruno@clisp.org>
20869
20870         * gnulib-tool: New option --copy-file.
20871         (func_usage): Document it.
20872         (func_dest_tmpfilename): Moved out of func_import.
20873         (func_add_file, func_update_file): New functions, extracted from
20874         func_import.
20875         (func_import): Update.
20876
20877 2009-04-05  Karl Berry  <karl@gnu.org>
20878
20879         * README: prominently mention gnulib-tool.
20880         Rearrange sections so getting the code is near the top.
20881
20882 2009-04-05  Bruno Haible  <bruno@clisp.org>
20883
20884         * lib/unicase.h: Mention u*_cmp2.
20885         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
20886         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
20887         * lib/unicase/ulc-casecmp.c: Likewise.
20888         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
20889         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
20890         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
20891         unistr/u8-cmp.
20892         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
20893         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
20894         unistr/u16-cmp.
20895         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
20896         unistr/u32-cmp.
20897
20898         * lib/uninorm.h: Mention u*_cmp2.
20899         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
20900         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
20901         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
20902         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
20903         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
20904         unistr/u8-cmp.
20905         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
20906         unistr/u16-cmp.
20907         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
20908         unistr/u32-cmp.
20909
20910         New module 'unistr/u32-cmp2'.
20911         * lib/unistr/u32-cmp2.c: New file.
20912         * modules/unistr/u32-cmp2: New file.
20913
20914         New module 'unistr/u16-cmp2'.
20915         * lib/unistr/u16-cmp2.c: New file.
20916         * modules/unistr/u16-cmp2: New file.
20917
20918         New module 'unistr/u8-cmp2'.
20919         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
20920         * lib/unistr/u8-cmp2.c: New file.
20921         * lib/unistr/u-cmp2.h: New file.
20922         * modules/unistr/u8-cmp2: New file.
20923
20924 2009-04-05  Bruno Haible  <bruno@clisp.org>
20925
20926         * lib/unictype.h (uc_property_is_valid): New macro.
20927         * tests/unictype/test-pr_byname.c (main): Use it.
20928
20929         * lib/unistr.h: Doc fixes.
20930         * lib/uniconv.h: Doc fixes.
20931         * lib/unictype.h: Doc fixes.
20932
20933 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
20934
20935         Port coreutils 7.2 to Solaris 8.
20936
20937         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
20938         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
20939         for Solaris 8.  This is a bit of a hack, as it means it's the
20940         caller's responsibility to add -lnsl if needed, but most likely it
20941         won't be needed since only getaddrinfo uses this and getaddrinfo
20942         isn't needed on Solaris 8.
20943
20944         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
20945         problem to Solaris 8 encountered with coreutils 7.2, which
20946         resulted in a message "fnmatch.c:292: warning: passing argument 4
20947         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
20948         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
20949
20950 2009-04-03  Simon Josefsson  <simon@josefsson.org>
20951
20952         * m4/ld-version-script.m4: Add FIXME comment.
20953
20954 2009-04-02  Simon Josefsson  <simon@josefsson.org>
20955
20956         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
20957         SOVERSION variable.
20958
20959 2009-04-02  Bruno Haible  <bruno@clisp.org>
20960
20961         * Makefile (info, html, dvi, pdf): Combine the rules.
20962         Suggested by Jim Meyering.
20963
20964 2009-04-01  Bruno Haible  <bruno@clisp.org>
20965
20966         * Makefile (info, html, dvi, pdf): New targets.
20967         Reported by Reuben Thomas <rrt@sc3d.org>.
20968
20969 2009-04-01  Bruno Haible  <bruno@clisp.org>
20970
20971         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
20972         can be put into PATH.
20973         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
20974
20975 2009-04-01  Bruno Haible  <bruno@clisp.org>
20976
20977         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
20978
20979 2009-04-01  Bruno Haible  <bruno@clisp.org>
20980
20981         Rename module 'visibility'.
20982         * modules/lib-symbol-visibility: Renamed from modules/visibility.
20983         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
20984         * doc/gnulib.texi: Update.
20985         * MODULES.html.sh (Misc): Update.
20986         * NEWS: Mention the change.
20987
20988 2009-04-01  Simon Josefsson  <simon@josefsson.org>
20989
20990         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
20991         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
20992         Eric Blake <ebb9@byu.net> for review.
20993         * MODULES.html.sh: Add lib-msvc-compat.
20994         * doc/gnulib.texi: Link to new section.
20995         * m4/ld-output-def.m4: New file.
20996         * doc/ld-output-def.texi: New file.
20997
20998 2009-04-01  Simon Josefsson  <simon@josefsson.org>
20999
21000         Rename ld-version-script to lib-symbol-versions.  Suggested by
21001         Bruno Haible <bruno@clisp.org>.
21002         * modules/ld-version-script: Renamed to lib-symbol-versions.
21003         * doc/ld-version-script.texi: Fix module name.
21004         * MODULES.html.sh: Add lib-symbol-versions.
21005
21006 2009-03-31  Simon Josefsson  <simon@josefsson.org>
21007
21008         * modules/u64-tests: New file.
21009         * tests/test-u64.c: New file.
21010
21011 2009-03-04  Simon Josefsson  <simon@josefsson.org>
21012
21013         * MODULES.html.sh: Mention u64.
21014         * modules/u64: New module.
21015         * modules/crypto/sha512: Depend on u64 module instead of providing
21016         u64.h.
21017
21018 2009-03-27  Eric Blake  <ebb9@byu.net>
21019
21020         test-strerror: make debugging EAI_SYSTEM easier
21021         * modules/getaddrinfo-tests (Depends-on): Add strerror.
21022         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
21023         failure was EAI_SYSTEM.
21024
21025 2009-03-25  Bruno Haible  <bruno@clisp.org>
21026
21027         Fix a problem with --enable-relocatable on Solaris 7.
21028         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
21029         since 2008-02-24.
21030
21031 2009-03-25  Eric Blake  <ebb9@byu.net>
21032
21033         test-sockets: avoid gcc warning
21034         * tests/test-sockets.c (main): Silence compiler warning.
21035
21036 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
21037
21038         New modules nproc, pthread, contributed by Glen Lenker.
21039
21040         * MODULES.html.sh: Add pthread, nproc.
21041         * lib/nproc.c: New file.
21042         * lib/nproc.h: New file.
21043         * lib/pthread.in.h: New file.
21044         * m4/pthread.m4: New file.
21045         * modules/nproc: New file.
21046         * modules/pthread: New file.
21047
21048 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21049
21050         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
21051         New variable.
21052
21053 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
21054
21055         filevercmp: handle simple~ and numbered.~3~ backup suffixes
21056         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
21057         * tests/test-filevercmp.c: Add tests for backup suffixes.
21058
21059 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21060
21061         * modules/stdlib (Depends-on): Add stdint, needed when defining
21062         struct random_data on, for example, HP-UX 10.20.  Reported by
21063         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21064
21065 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21066
21067         * lib/readline.c (readline): Call fflush on stdout after printing
21068         prompt.
21069
21070 2009-03-20  Bruno Haible  <bruno@clisp.org>
21071
21072         Remove dependency from 'close' module to -lws2_32 on native Windows.
21073         * lib/close-hook.h: New file.
21074         * lib/close-hook.c: New file.
21075         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
21076         w32sock.h.
21077         (_gl_close_fd_maybe_socket): Remove function.
21078         (rpl_close): Invoke execute_all_close_hooks instead of
21079         _gl_close_fd_maybe_socket.
21080         * lib/sockets.c: Include close-hook.h, w32sock.h.
21081         (close_fd_maybe_socket): New function, essentially from lib/close.c.
21082         (close_sockets_hook): New variable.
21083         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
21084         (gl_sockets_cleanup): Unregister it.
21085         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
21086         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
21087         * modules/close-hook: New file.
21088         * modules/close (Files): Remove lib/w32sock.h.
21089         (Depends-on): Add close-hook.
21090         (Link): Remove section.
21091         * modules/sockets (Files): Add lib/w32sock.h.
21092         (Depends-on): Add close-hook.
21093         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
21094         invocation.
21095         * NEWS: Mention that LIB_CLOSE is gone.
21096
21097 2009-03-23  Eric Blake  <ebb9@byu.net>
21098
21099         signal-tests: test previous patch
21100         * tests/test-signal.c: New file.
21101         * modules/signal-tests: Likewise.
21102
21103         signal.h: always support 'volatile sig_atomic_t'
21104         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
21105         (gl_SIGNAL_H_DEFAULTS): Add a default.
21106         * modules/signal (Makefile.am): Substitute if needed.
21107         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
21108         users can blindly add volatile.
21109         * doc/posix-headers/signal.texi (signal.h): Document it.
21110         Reported by Matthew Woehlke.
21111
21112 2009-03-23  Jim Meyering  <meyering@redhat.com>
21113
21114         pathmax: PATH_MAX: use pathconf only when available
21115         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
21116         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
21117         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
21118         This avoids a link failure in a PSP cross-compilation environment
21119         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
21120
21121         * lib/vasnprintf.c (divide): Fix typo in comment.
21122
21123 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21124
21125         * gnulib-tool (func_filter_filelist): Fix comment.
21126
21127 2009-03-20  Bruno Haible  <bruno@clisp.org>
21128
21129         Make sockets.h self-contained.
21130         * lib/sockets.c: Include sockets.h first.
21131         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
21132
21133 2009-03-19  Eric Blake  <ebb9@byu.net>
21134
21135         doc: mention more functions added in cygwin 1.7.0
21136         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
21137         addition.
21138         * doc/posix-functions/log2f.texi: Likewise.
21139
21140 2009-03-19  Jim Meyering  <meyering@redhat.com>
21141
21142         fsusage: avoid syntax error due to statement-before-declaration
21143         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
21144         after all declarations.  Reported by Matthew Woehlke in
21145         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
21146
21147 2009-03-18  Eric Blake  <ebb9@byu.net>
21148
21149         build-aux/compile: sync from automake
21150         * build-aux/compile: New file, from automake.
21151         * config/srclist.txt: Mention build-aux/compile.
21152
21153 2009-03-17  Bruno Haible  <bruno@clisp.org>
21154
21155         * lib/git-merge-changelog.c: Fix typo in comment.
21156         Reported by Reuben Thomas <rrt@sc3d.org>.
21157
21158 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
21159
21160         * m4/regex.m4: update and improve help for
21161         --without-included-regex.
21162
21163 2009-03-17  Simon Josefsson  <simon@josefsson.org>
21164
21165         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
21166         failure on missing include files.
21167
21168 2009-03-17  Eric Blake  <ebb9@byu.net>
21169
21170         doc: mention more functions added in cygwin 1.7.0
21171         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
21172         addition.
21173         * doc/posix-functions/fwscanf.texi: Likewise.
21174         * doc/posix-functions/swprintf.texi: Likewise.
21175         * doc/posix-functions/swscanf.texi: Likewise.
21176         * doc/posix-functions/vfwprintf.texi: Likewise.
21177         * doc/posix-functions/vfwscanf.texi: Likewise.
21178         * doc/posix-functions/vswprintf.texi: Likewise.
21179         * doc/posix-functions/vswscanf.texi: Likewise.
21180         * doc/posix-functions/vwprintf.texi: Likewise.
21181         * doc/posix-functions/vwscanf.texi: Likewise.
21182         * doc/posix-functions/wcscasecmp.texi: Likewise.
21183         * doc/posix-functions/wcsdup.texi: Likewise.
21184         * doc/posix-functions/wcsftime.texi: Likewise.
21185         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21186         * doc/posix-functions/wprintf.texi: Likewise.
21187         * doc/posix-functions/wscanf.texi: Likewise.
21188         * doc/glibc-functions/gethostbyname2.texi: Likewise.
21189
21190 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21191
21192         maint.mk: really add $(AM_MAKEFLAGS)
21193         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
21194         was inadvertently omitted in the last commit.
21195         Spotted by Bruno Haible.
21196
21197         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
21198         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
21199         $(AM_MAKEFLAGS)' rather than plain `make'.
21200
21201         gnulib-tool: execute $MAKE not make
21202         * gnulib-tool: Default $MAKE to 'make'.
21203         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
21204         than make.  Initialize $MAKE in the do-autobuild script.
21205
21206         gnulib-tool: use $MAKE not make in generated files
21207         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
21208         make, in generated files.  Initialize $MAKE in the do-autobuild
21209         script.
21210
21211         * top/GNUmakefile (_have-git-version-gen): Fix typo.
21212
21213         GNUmakefile: disable parallelism only for multiple, recursive targets
21214         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
21215         additions in the Makefile.
21216         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
21217         by Automake.
21218         (.NOTPARALLEL): Only disable parallel builds if multiple targets
21219         are listed on the command line and at least one of them is
21220         listed in $(ALL_RECURSIVE_TARGETS).
21221
21222 2009-03-14  Bruno Haible  <bruno@clisp.org>
21223
21224         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
21225         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
21226         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
21227         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
21228         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
21229         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
21230         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
21231         unistr/u8-uctomb.
21232         * modules/unistr/u8-strchr (Depends-on): Likewise.
21233         * modules/unistr/u8-strrchr (Depends-on): Likewise.
21234         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
21235         unistr/u16-uctomb.
21236         * modules/unistr/u16-strchr (Depends-on): Likewise.
21237         * modules/unistr/u16-strrchr (Depends-on): Likewise.
21238
21239 2009-03-12  Bruno Haible  <bruno@clisp.org>
21240
21241         Work around select() bug on Interix 3.5.
21242         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
21243         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
21244         * m4/select.m4: New file.
21245         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
21246         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
21247         * modules/select (Files): Add m4/select.m4.
21248         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
21249         * modules/nanosleep (Depends-on): Add select.
21250         * modules/poll (Depends-on): Likewise.
21251         * doc/posix-functions/select.texi: Mention the Interix bug.
21252         Reported by Markus Duft <mduft@gentoo.org>.
21253
21254         * lib/select.c: Renamed from lib/winsock-select.c.
21255         * modules/select (Files): Add lib/select.c, remove
21256         lib/winsock-select.c.
21257         (configure.ac): Update.
21258
21259 2009-03-12  Jim Meyering  <meyering@redhat.com>
21260
21261         avoid gcc warnings about unused macro definitions
21262         * lib/readtokens.c (STREQ): Remove unused definition.
21263         * lib/xmalloc.c (SIZE_MAX): Likewise.
21264         * lib/openat-die.c (N_): Likewise.
21265         * lib/mountlist.c (SIZE_MAX): Remove definition.
21266         Instead, include <stdint.h>.
21267         * lib/readutmp.c: Likewise.
21268         * modules/readutmp (Depends-on): Add stdint.
21269         * modules/mountlist (Depends-on): Add stdint.
21270         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
21271
21272 2009-03-10  Bruno Haible  <bruno@clisp.org>
21273
21274         Tests for module 'mbmemcasecoll'.
21275         * modules/mbmemcasecoll-tests: New file.
21276         * tests/test-mbmemcasecoll1.sh: New file.
21277         * tests/test-mbmemcasecoll2.sh: New file.
21278         * tests/test-mbmemcasecoll3.sh: New file.
21279         * tests/test-mbmemcasecoll.c: New file.
21280
21281         New module 'mbmemcasecoll'.
21282         * lib/mbmemcasecoll.h: New file.
21283         * lib/mbmemcasecoll.c: New file.
21284         * modules/mbmemcasecoll: New file.
21285
21286         * tests/test-mbmemcasecmp.h: New file, extracted from
21287         tests/test-mbmemcasecmp.c.
21288         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
21289         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
21290         (main): Update.
21291         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
21292
21293 2009-03-09  Bruno Haible  <bruno@clisp.org>
21294
21295         Tests for module 'mbmemcasecmp'.
21296         * modules/mbmemcasecmp-tests: New file.
21297         * tests/test-mbmemcasecmp1.sh: New file.
21298         * tests/test-mbmemcasecmp2.sh: New file.
21299         * tests/test-mbmemcasecmp3.sh: New file.
21300         * tests/test-mbmemcasecmp.c: New file.
21301
21302         New module 'mbmemcasecmp'.
21303         * lib/mbmemcasecmp.h: New file.
21304         * lib/mbmemcasecmp.c: New file.
21305         * modules/mbmemcasecmp: New file.
21306
21307 2009-03-09  Bruno Haible  <bruno@clisp.org>
21308
21309         Tests for module 'unicase/ulc-casecoll'.
21310         * modules/unicase/ulc-casecoll-tests: New file.
21311         * tests/unicase/test-ulc-casecoll1.sh: New file.
21312         * tests/unicase/test-ulc-casecoll2.sh: New file.
21313         * tests/unicase/test-ulc-casecoll.c: New file.
21314
21315         New module 'unicase/ulc-casecoll'.
21316         * lib/unicase.h (ulc_casecoll): New declaration.
21317         * lib/unicase/ulc-casecoll.c: New file.
21318         * modules/unicase/ulc-casecoll: New file.
21319
21320         New module 'unicase/ulc-casexfrm'.
21321         * lib/unicase.h (ulc_casexfrm): New declaration.
21322         * lib/unicase/ulc-casexfrm.c: New file.
21323         * modules/unicase/ulc-casexfrm: New file.
21324
21325 2009-03-09  Bruno Haible  <bruno@clisp.org>
21326
21327         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
21328         invocations.
21329
21330         * m4/mbscasecmp.m4: Remove file.
21331         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
21332         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
21333
21334         * m4/mbscasestr.m4: Remove file.
21335         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
21336         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
21337
21338         * m4/mbschr.m4: Remove file.
21339         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
21340         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
21341
21342         * m4/mbscspn.m4: Remove file.
21343         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
21344         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
21345
21346         * m4/mbslen.m4: Remove file.
21347         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
21348         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
21349
21350         * m4/mbsncasecmp.m4: Remove file.
21351         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
21352         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
21353
21354         * m4/mbsnlen.m4: Remove file.
21355         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
21356         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
21357
21358         * m4/mbspbrk.m4: Remove file.
21359         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
21360         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
21361
21362         * m4/mbspcasecmp.m4: Remove file.
21363         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
21364         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
21365
21366         * m4/mbsrchr.m4: Remove file.
21367         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
21368         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
21369
21370         * m4/mbssep.m4: Remove file.
21371         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
21372         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
21373
21374         * m4/mbsspn.m4: Remove file.
21375         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
21376         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
21377
21378         * m4/mbsstr.m4: Remove file.
21379         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
21380         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
21381
21382         * m4/mbstok_r.m4: Remove file.
21383         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
21384         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
21385
21386         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
21387
21388         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
21389         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
21390
21391         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
21392
21393 2009-03-08  Bruno Haible  <bruno@clisp.org>
21394
21395         Tests for module 'unicase/ulc-casecmp'.
21396         * modules/unicase/ulc-casecmp-tests: New file.
21397         * tests/unicase/test-ulc-casecmp1.sh: New file.
21398         * tests/unicase/test-ulc-casecmp2.sh: New file.
21399         * tests/unicase/test-ulc-casecmp.c: New file.
21400
21401         New module 'unicase/ulc-casecmp'.
21402         * lib/unicase.h (ulc_casecmp): New declaration.
21403         * lib/unicase/ulc-casecmp.c: New file.
21404         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
21405         'const SRC_UNIT *'.
21406         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
21407         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
21408         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
21409         * modules/unicase/ulc-casecmp: New file.
21410
21411         Tests for module 'unicase/u32-is-cased'.
21412         * modules/unicase/u32-is-cased-tests: New file.
21413         * tests/unicase/test-u32-is-cased.c: New file.
21414
21415         Tests for module 'unicase/u16-is-cased'.
21416         * modules/unicase/u16-is-cased-tests: New file.
21417         * tests/unicase/test-u16-is-cased.c: New file.
21418
21419         Tests for module 'unicase/u8-is-cased'.
21420         * modules/unicase/u8-is-cased-tests: New file.
21421         * tests/unicase/test-u8-is-cased.c: New file.
21422         * tests/unicase/test-is-cased.h: New file.
21423
21424         New module 'unicase/u32-is-cased'.
21425         * lib/unicase/u32-is-cased.c: New file.
21426         * modules/unicase/u32-is-cased: New file.
21427
21428         New module 'unicase/u16-is-cased'.
21429         * lib/unicase/u16-is-cased.c: New file.
21430         * modules/unicase/u16-is-cased: New file.
21431
21432         New module 'unicase/u8-is-cased'.
21433         * lib/unicase/u8-is-cased.c: New file.
21434         * lib/unicase/u-is-cased.h: New file.
21435         * modules/unicase/u8-is-cased: New file.
21436
21437         Tests for module 'unicase/u32-is-casefolded'.
21438         * modules/unicase/u32-is-casefolded-tests: New file.
21439         * tests/unicase/test-u32-is-casefolded.c: New file.
21440
21441         Tests for module 'unicase/u16-is-casefolded'.
21442         * modules/unicase/u16-is-casefolded-tests: New file.
21443         * tests/unicase/test-u16-is-casefolded.c: New file.
21444
21445         Tests for module 'unicase/u8-is-casefolded'.
21446         * modules/unicase/u8-is-casefolded-tests: New file.
21447         * tests/unicase/test-u8-is-casefolded.c: New file.
21448         * tests/unicase/test-is-casefolded.h: New file.
21449
21450         New module 'unicase/u32-is-casefolded'.
21451         * lib/unicase/u32-is-casefolded.c: New file.
21452         * modules/unicase/u32-is-casefolded: New file.
21453
21454         New module 'unicase/u16-is-casefolded'.
21455         * lib/unicase/u16-is-casefolded.c: New file.
21456         * modules/unicase/u16-is-casefolded: New file.
21457
21458         New module 'unicase/u8-is-casefolded'.
21459         * lib/unicase/u8-is-casefolded.c: New file.
21460         * modules/unicase/u8-is-casefolded: New file.
21461
21462         Tests for module 'unicase/u32-is-titlecase'.
21463         * modules/unicase/u32-is-titlecase-tests: New file.
21464         * tests/unicase/test-u32-is-titlecase.c: New file.
21465
21466         Tests for module 'unicase/u16-is-titlecase'.
21467         * modules/unicase/u16-is-titlecase-tests: New file.
21468         * tests/unicase/test-u16-is-titlecase.c: New file.
21469
21470         Tests for module 'unicase/u8-is-titlecase'.
21471         * modules/unicase/u8-is-titlecase-tests: New file.
21472         * tests/unicase/test-u8-is-titlecase.c: New file.
21473         * tests/unicase/test-is-titlecase.h: New file.
21474
21475         New module 'unicase/u32-is-titlecase'.
21476         * lib/unicase/u32-is-titlecase.c: New file.
21477         * modules/unicase/u32-is-titlecase: New file.
21478
21479         New module 'unicase/u16-is-titlecase'.
21480         * lib/unicase/u16-is-titlecase.c: New file.
21481         * modules/unicase/u16-is-titlecase: New file.
21482
21483         New module 'unicase/u8-is-titlecase'.
21484         * lib/unicase/u8-is-titlecase.c: New file.
21485         * modules/unicase/u8-is-titlecase: New file.
21486
21487         Tests for module 'unicase/u32-is-lowercase'.
21488         * modules/unicase/u32-is-lowercase-tests: New file.
21489         * tests/unicase/test-u32-is-lowercase.c: New file.
21490
21491         Tests for module 'unicase/u16-is-lowercase'.
21492         * modules/unicase/u16-is-lowercase-tests: New file.
21493         * tests/unicase/test-u16-is-lowercase.c: New file.
21494
21495         Tests for module 'unicase/u8-is-lowercase'.
21496         * modules/unicase/u8-is-lowercase-tests: New file.
21497         * tests/unicase/test-u8-is-lowercase.c: New file.
21498         * tests/unicase/test-is-lowercase.h: New file.
21499
21500         New module 'unicase/u32-is-lowercase'.
21501         * lib/unicase/u32-is-lowercase.c: New file.
21502         * modules/unicase/u32-is-lowercase: New file.
21503
21504         New module 'unicase/u16-is-lowercase'.
21505         * lib/unicase/u16-is-lowercase.c: New file.
21506         * modules/unicase/u16-is-lowercase: New file.
21507
21508         New module 'unicase/u8-is-lowercase'.
21509         * lib/unicase/u8-is-lowercase.c: New file.
21510         * modules/unicase/u8-is-lowercase: New file.
21511
21512         Tests for module 'unicase/u32-is-uppercase'.
21513         * modules/unicase/u32-is-uppercase-tests: New file.
21514         * tests/unicase/test-u32-is-uppercase.c: New file.
21515
21516         Tests for module 'unicase/u16-is-uppercase'.
21517         * modules/unicase/u16-is-uppercase-tests: New file.
21518         * tests/unicase/test-u16-is-uppercase.c: New file.
21519
21520         Tests for module 'unicase/u8-is-uppercase'.
21521         * modules/unicase/u8-is-uppercase-tests: New file.
21522         * tests/unicase/test-u8-is-uppercase.c: New file.
21523         * tests/unicase/test-is-uppercase.h: New file.
21524
21525         New module 'unicase/u32-is-uppercase'.
21526         * lib/unicase/u32-is-uppercase.c: New file.
21527         * modules/unicase/u32-is-uppercase: New file.
21528
21529         New module 'unicase/u16-is-uppercase'.
21530         * lib/unicase/u16-is-uppercase.c: New file.
21531         * modules/unicase/u16-is-uppercase: New file.
21532
21533         New module 'unicase/u8-is-uppercase'.
21534         * lib/unicase/u8-is-uppercase.c: New file.
21535         * modules/unicase/u8-is-uppercase: New file.
21536
21537         New module 'unicase/u32-is-invariant'.
21538         * lib/unicase/u32-is-invariant.c: New file.
21539         * modules/unicase/u32-is-invariant: New file.
21540
21541         New module 'unicase/u16-is-invariant'.
21542         * lib/unicase/u16-is-invariant.c: New file.
21543         * modules/unicase/u16-is-invariant: New file.
21544
21545         New module 'unicase/u8-is-invariant'.
21546         * lib/unicase/u8-is-invariant.c: New file.
21547         * lib/unicase/invariant.h: New file.
21548         * lib/unicase/u-is-invariant.h: New file.
21549         * modules/unicase/u8-is-invariant: New file.
21550
21551         Tests for module 'unicase/u32-casecoll'.
21552         * modules/unicase/u32-casecoll-tests: New file.
21553         * tests/unicase/test-u32-casecoll.c: New file.
21554
21555         Tests for module 'unicase/u16-casecoll'.
21556         * modules/unicase/u16-casecoll-tests: New file.
21557         * tests/unicase/test-u16-casecoll.c: New file.
21558
21559         Tests for module 'unicase/u8-casecoll'.
21560         * modules/unicase/u8-casecoll-tests: New file.
21561         * tests/unicase/test-u8-casecoll.c: New file.
21562
21563         New module 'unicase/u32-casecoll'.
21564         * lib/unicase/u32-casecoll.c: New file.
21565         * modules/unicase/u32-casecoll: New file.
21566
21567         New module 'unicase/u16-casecoll'.
21568         * lib/unicase/u16-casecoll.c: New file.
21569         * modules/unicase/u16-casecoll: New file.
21570
21571         New module 'unicase/u8-casecoll'.
21572         * lib/unicase/u8-casecoll.c: New file.
21573         * lib/unicase/u-casecoll.h: New file.
21574         * modules/unicase/u8-casecoll: New file.
21575
21576         New module 'unicase/u32-casexfrm'.
21577         * lib/unicase/u32-casexfrm.c: New file.
21578         * modules/unicase/u32-casexfrm: New file.
21579
21580         New module 'unicase/u16-casexfrm'.
21581         * lib/unicase/u16-casexfrm.c: New file.
21582         * modules/unicase/u16-casexfrm: New file.
21583
21584         New module 'unicase/u8-casexfrm'.
21585         * lib/unicase/u8-casexfrm.c: New file.
21586         * lib/unicase/u-casexfrm.h: New file.
21587         * modules/unicase/u8-casexfrm: New file.
21588
21589         Tests for module 'unicase/u32-casecmp'.
21590         * modules/unicase/u32-casecmp-tests: New file.
21591         * tests/unicase/test-u32-casecmp.c: New file.
21592
21593         Tests for module 'unicase/u16-casecmp'.
21594         * modules/unicase/u16-casecmp-tests: New file.
21595         * tests/unicase/test-u16-casecmp.c: New file.
21596
21597         Tests for module 'unicase/u8-casecmp'.
21598         * modules/unicase/u8-casecmp-tests: New file.
21599         * tests/unicase/test-u8-casecmp.c: New file.
21600         * tests/unicase/test-casecmp.h: New file.
21601
21602         New module 'unicase/u32-casecmp'.
21603         * lib/unicase/u32-casecmp.c: New file.
21604         * modules/unicase/u32-casecmp: New file.
21605
21606         New module 'unicase/u16-casecmp'.
21607         * lib/unicase/u16-casecmp.c: New file.
21608         * modules/unicase/u16-casecmp: New file.
21609
21610         New module 'unicase/u8-casecmp'.
21611         * lib/unicase/u8-casecmp.c: New file.
21612         * lib/unicase/u-casecmp.h: New file.
21613         * modules/unicase/u8-casecmp: New file.
21614
21615         Tests for module 'unicase/u32-casefold'.
21616         * modules/unicase/u32-casefold-tests: New file.
21617         * tests/unicase/test-u32-casefold.c: New file.
21618
21619         Tests for module 'unicase/u16-casefold'.
21620         * modules/unicase/u16-casefold-tests: New file.
21621         * tests/unicase/test-u16-casefold.c: New file.
21622
21623         Tests for module 'unicase/u8-casefold'.
21624         * modules/unicase/u8-casefold-tests: New file.
21625         * tests/unicase/test-u8-casefold.c: New file.
21626
21627         New module 'unicase/u32-casefold'.
21628         * lib/unicase/u32-casefold.c: New file.
21629         * modules/unicase/u32-casefold: New file.
21630
21631         New module 'unicase/u16-casefold'.
21632         * lib/unicase/u16-casefold.c: New file.
21633         * modules/unicase/u16-casefold: New file.
21634
21635         New module 'unicase/u8-casefold'.
21636         * lib/unicase/u8-casefold.c: New file.
21637         * lib/unicase/u-casefold.h: New file.
21638         * modules/unicase/u8-casefold: New file.
21639
21640         New module 'unicase/tocasefold'.
21641         * lib/unicase/casefold.h: New file.
21642         * lib/unicase/tocasefold.c: New file.
21643         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
21644         * modules/unicase/tocasefold: New file.
21645
21646         Tests for module 'unicase/u32-totitle'.
21647         * modules/unicase/u32-totitle-tests: New file.
21648         * tests/unicase/test-u32-totitle.c: New file.
21649
21650         Tests for module 'unicase/u16-totitle'.
21651         * modules/unicase/u16-totitle-tests: New file.
21652         * tests/unicase/test-u16-totitle.c: New file.
21653
21654         Tests for module 'unicase/u8-totitle'.
21655         * modules/unicase/u8-totitle-tests: New file.
21656         * tests/unicase/test-u8-totitle.c: New file.
21657
21658         New module 'unicase/u32-totitle'.
21659         * lib/unicase/u32-totitle.c: New file.
21660         * modules/unicase/u32-totitle: New file.
21661
21662         New module 'unicase/u16-totitle'.
21663         * lib/unicase/u16-totitle.c: New file.
21664         * modules/unicase/u16-totitle: New file.
21665
21666         New module 'unicase/u8-totitle'.
21667         * lib/unicase/u8-totitle.c: New file.
21668         * lib/unicase/u-totitle.h: New file.
21669         * modules/unicase/u8-totitle: New file.
21670
21671         Tests for module 'unicase/u32-tolower'.
21672         * modules/unicase/u32-tolower-tests: New file.
21673         * tests/unicase/test-u32-tolower.c: New file.
21674
21675         Tests for module 'unicase/u16-tolower'.
21676         * modules/unicase/u16-tolower-tests: New file.
21677         * tests/unicase/test-u16-tolower.c: New file.
21678
21679         Tests for module 'unicase/u8-tolower'.
21680         * modules/unicase/u8-tolower-tests: New file.
21681         * tests/unicase/test-u8-tolower.c: New file.
21682
21683         New module 'unicase/u32-tolower'.
21684         * lib/unicase/u32-tolower.c: New file.
21685         * modules/unicase/u32-tolower: New file.
21686
21687         New module 'unicase/u16-tolower'.
21688         * lib/unicase/u16-tolower.c: New file.
21689         * modules/unicase/u16-tolower: New file.
21690
21691         New module 'unicase/u8-tolower'.
21692         * lib/unicase/u8-tolower.c: New file.
21693         * modules/unicase/u8-tolower: New file.
21694
21695         Tests for module 'unicase/u32-toupper'.
21696         * modules/unicase/u32-toupper-tests: New file.
21697         * tests/unicase/test-u32-toupper.c: New file.
21698
21699         Tests for module 'unicase/u16-toupper'.
21700         * modules/unicase/u16-toupper-tests: New file.
21701         * tests/unicase/test-u16-toupper.c: New file.
21702
21703         Tests for module 'unicase/u8-toupper'.
21704         * modules/unicase/u8-toupper-tests: New file.
21705         * tests/unicase/test-u8-toupper.c: New file.
21706
21707         New module 'unicase/u32-toupper'.
21708         * lib/unicase/u32-toupper.c: New file.
21709         * modules/unicase/u32-toupper: New file.
21710
21711         New module 'unicase/u16-toupper'.
21712         * lib/unicase/u16-toupper.c: New file.
21713         * modules/unicase/u16-toupper: New file.
21714
21715         New module 'unicase/u8-toupper'.
21716         * lib/unicase/u8-toupper.c: New file.
21717         * modules/unicase/u8-toupper: New file.
21718
21719         New module 'unicase/u32-casemap'.
21720         * lib/unicase/u32-casemap.c: New file.
21721         * modules/unicase/u32-casemap: New file.
21722
21723         New module 'unicase/u16-casemap'.
21724         * lib/unicase/u16-casemap.c: New file.
21725         * modules/unicase/u16-casemap: New file.
21726
21727         New module 'unicase/u8-casemap'.
21728         * lib/unicase/unicasemap.h: New file.
21729         * lib/unicase/u8-casemap.c: New file.
21730         * lib/unicase/u-casemap.h: New file.
21731         * modules/unicase/u8-casemap: New file.
21732
21733         New module 'unicase/special-casing'.
21734         * lib/unicase/special-casing.h: New file.
21735         * lib/unicase/special-casing.c: New file.
21736         * lib/unicase/special-casing-table.gperf: New file, generated by
21737         gen-uni-tables.c.
21738         * modules/unicase/special-casing: New file.
21739
21740         Tests for module 'unicase/locale-language'.
21741         * modules/unicase/locale-language-tests: New file.
21742         * tests/unicase/test-locale-language.sh: New file.
21743         * tests/unicase/test-locale-language.c: New file.
21744
21745         New module 'unicase/locale-language'.
21746         * lib/unicase/locale-language.c: New file.
21747         * lib/unicase/locale-languages.gperf: New file.
21748         * modules/unicase/locale-language: New file.
21749
21750         Generate more tables for case conversion and case folding.
21751         * lib/gen-uni-tables.c (SCC_*): New enum items.
21752         (struct special_casing_rule): New type.
21753         (casing_rules, num_casing_rules, allocated_casing_rules): New
21754         variables.
21755         (add_casing_rule, fill_casing_rules): New functions.
21756         (struct casefold_rule): New type.
21757         (casefolding_rules, num_casefolding_rules,
21758         allocated_casefolding_rules): New variables.
21759         (fill_casefolding_rules): New function.
21760         (unicode_casefold): New variable.
21761         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
21762         sort_casing_rules, output_casing_rules): New functions.
21763         (main): Accept to more arguments: SpecialCasing.txt and
21764         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
21765         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
21766         Output mapping for casefolding.
21767
21768         * lib/unicase.h: Include stdbool.h, uninorm.h.
21769         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
21770         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
21771         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
21772         arguments.
21773         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
21774         resultp arguments.
21775         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
21776         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
21777         resultp arguments.
21778         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
21779         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
21780         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
21781         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
21782         declarations.
21783         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
21784
21785 2009-03-08  Bruno Haible  <bruno@clisp.org>
21786
21787         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21788         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
21789         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
21790         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21791
21792 2009-03-07  Bruno Haible  <bruno@clisp.org>
21793
21794         Adjust u*_normcmp, u*_normcoll API.
21795         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21796         u16_normcoll, u32_normcoll): Change failure conventions.
21797         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
21798         errno and return -1.
21799         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21800
21801 2009-03-07  Bruno Haible  <bruno@clisp.org>
21802
21803         Tests for module 'uninorm/u32-normcoll'.
21804         * modules/uninorm/u32-normcoll-tests: New file.
21805         * tests/uninorm/test-u32-normcoll.c: New file.
21806
21807         Tests for module 'uninorm/u16-normcoll'.
21808         * modules/uninorm/u16-normcoll-tests: New file.
21809         * tests/uninorm/test-u16-normcoll.c: New file.
21810
21811         Tests for module 'uninorm/u8-normcoll'.
21812         * modules/uninorm/u8-normcoll-tests: New file.
21813         * tests/uninorm/test-u8-normcoll.c: New file.
21814
21815 2009-03-07  Bruno Haible  <bruno@clisp.org>
21816
21817         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
21818         tests/uninorm/test-u32-normcmp.c.
21819         * tests/uninorm/test-u32-normcmp.c: Include it.
21820         (test_nonascii): New function, extracted from main. Add some more
21821         tests.
21822         (main): Invoke test_ascii and test_nonascii.
21823         * modules/uninorm/u32-normcmp-tests (Files): Add
21824         tests/uninorm/test-u32-normcmp.h.
21825         (Depends-on): Remove uninorm/u32-normcmp.
21826
21827         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
21828         tests/uninorm/test-u16-normcmp.c.
21829         * tests/uninorm/test-u16-normcmp.c: Include it.
21830         (test_nonascii): New function, extracted from main. Add some more
21831         tests.
21832         (main): Invoke test_ascii and test_nonascii.
21833         * modules/uninorm/u16-normcmp-tests (Files): Add
21834         tests/uninorm/test-u16-normcmp.h.
21835         (Depends-on): Remove uninorm/u16-normcmp.
21836
21837         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
21838         tests/uninorm/test-u8-normcmp.c.
21839         * tests/uninorm/test-u8-normcmp.c: Include it.
21840         (test_nonascii): New function, extracted from main. Add some more
21841         tests.
21842         (main): Invoke test_ascii and test_nonascii.
21843         * modules/uninorm/u8-normcmp-tests (Files): Add
21844         tests/uninorm/test-u8-normcmp.h.
21845         (Depends-on): Remove uninorm/u8-normcmp.
21846
21847 2009-03-07  Bruno Haible  <bruno@clisp.org>
21848
21849         New module 'uninorm/u32-normcoll'.
21850         * lib/uninorm/u32-normcoll.c: New file.
21851         * modules/uninorm/u32-normcoll: New file.
21852
21853         New module 'uninorm/u16-normcoll'.
21854         * lib/uninorm/u16-normcoll.c: New file.
21855         * modules/uninorm/u16-normcoll: New file.
21856
21857         New module 'uninorm/u8-normcoll'.
21858         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
21859         declarations.
21860         * lib/uninorm/u8-normcoll.c: New file.
21861         * lib/uninorm/u-normcoll.h: New file.
21862         * modules/uninorm/u8-normcoll: New file.
21863
21864         New module 'uninorm/u32-normxfrm'.
21865         * lib/uninorm/u32-normxfrm.c: New file.
21866         * modules/uninorm/u32-normxfrm: New file.
21867
21868         New module 'uninorm/u16-normxfrm'.
21869         * lib/uninorm/u16-normxfrm.c: New file.
21870         * modules/uninorm/u16-normxfrm: New file.
21871
21872         New module 'uninorm/u8-normxfrm'.
21873         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
21874         declarations.
21875         * lib/uninorm/u8-normxfrm.c: New file.
21876         * lib/uninorm/u-normxfrm.h: New file.
21877         * modules/uninorm/u8-normxfrm: New file.
21878
21879 2009-03-07  Bruno Haible  <bruno@clisp.org>
21880
21881         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
21882         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
21883         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
21884
21885 2009-03-07  Bruno Haible  <bruno@clisp.org>
21886
21887         New module 'memxfrm'.
21888         * lib/memxfrm.h: New file.
21889         * lib/memxfrm.c: New file.
21890         * modules/memxfrm: New file.
21891
21892 2009-03-07  Bruno Haible  <bruno@clisp.org>
21893
21894         New module 'memcmp2'.
21895         * lib/memcmp2.h: New file.
21896         * lib/memcmp2.c: New file.
21897         * modules/memcmp2: New file.
21898
21899 2009-03-07  Bruno Haible  <bruno@clisp.org>
21900
21901         Tests for module 'uninorm/decomposing-form'.
21902         * modules/uninorm/decomposing-form-tests: New file.
21903         * tests/uninorm/test-decomposing-form.c: New file.
21904
21905         New module 'uninorm/decomposing-form'.
21906         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
21907         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
21908         Add 'decomposing_variant' field.
21909         * lib/uninorm/decomposing-form.c: New file.
21910         * lib/uninorm/nfc.c (uninorm_nfc): Update.
21911         * lib/uninorm/nfd.c (uninorm_nfd): Update.
21912         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
21913         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
21914         * modules/uninorm/decomposing-form: New file.
21915         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
21916         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
21917
21918 2009-03-07  Bruno Haible  <bruno@clisp.org>
21919
21920         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
21921         strings.
21922
21923 2009-03-06  Bruno Haible  <bruno@clisp.org>
21924
21925         Tests for module 'uninorm/u32-normcmp'.
21926         * tests/uninorm/test-u32-normcmp.c: New file.
21927         * modules/uninorm/u32-normcmp-tests: New file.
21928
21929         Tests for module 'uninorm/u16-normcmp'.
21930         * tests/uninorm/test-u16-normcmp.c: New file.
21931         * modules/uninorm/u16-normcmp-tests: New file.
21932
21933         Tests for module 'uninorm/u8-normcmp'.
21934         * tests/uninorm/test-u8-normcmp.c: New file.
21935         * modules/uninorm/u8-normcmp-tests: New file.
21936
21937         New module 'uninorm/u32-normcmp'.
21938         * lib/uninorm/u32-normcmp.c: New file.
21939         * modules/uninorm/u32-normcmp: New file.
21940
21941         New module 'uninorm/u16-normcmp'.
21942         * lib/uninorm/u16-normcmp.c: New file.
21943         * modules/uninorm/u16-normcmp: New file.
21944
21945         New module 'uninorm/u8-normcmp'.
21946         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
21947         declarations.
21948         * lib/uninorm/u8-normcmp.c: New file.
21949         * lib/uninorm/u-normcmp.h: New file.
21950         * modules/uninorm/u8-normcmp: New file.
21951
21952 2009-03-06  Bruno Haible  <bruno@clisp.org>
21953
21954         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
21955         Reported by Eric Blake.
21956
21957 2009-03-06  Eric Blake  <ebb9@byu.net>
21958             Bruno Haible  <bruno@clisp.org>
21959
21960         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
21961         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
21962         condition.
21963         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
21964         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
21965         condition.
21966         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
21967
21968 2009-03-06  Eric Blake  <ebb9@byu.net>
21969
21970         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
21971         to avoid compiler warnings.
21972         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
21973
21974 2009-03-05  Bruno Haible  <bruno@clisp.org>
21975
21976         * tests/test-ftell.c (main): Disable test beyond end of file on
21977         FreeMiNT.
21978         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
21979
21980 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
21981
21982         * lib/filevercmp.c: Move hidden files up in ordering.
21983         * tests/test-filevercmp.c: Add tests for hidden files.
21984
21985 2009-03-04  Bruno Haible  <bruno@clisp.org>
21986
21987         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
21988         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
21989         AM_CFLAGS.
21990         Reported by Simon Josefsson.
21991
21992 2009-03-03  Bruno Haible  <bruno@clisp.org>
21993
21994         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
21995         Reported by Simon Josefsson.
21996
21997         * doc/ld-version-script.texi: Update node reference.
21998
21999 2009-03-03  Bruno Haible  <bruno@clisp.org>
22000
22001         * modules/visibility (License): Change to 'unlimited'.
22002         Suggested by Simon Josefsson.
22003
22004 2009-03-03  Jim Meyering  <meyering@redhat.com>
22005
22006         unlinkdir: cannot_unlink_dir may modify process state
22007         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
22008         it's neither thread-safe nor appropriate for use in a library.
22009
22010 2009-03-03  Eric Blake  <ebb9@byu.net>
22011
22012         test-closein: silence test under Darwin
22013         * tests/test-closein.sh: Ignore stderr from cat, since we don't
22014         care if it dies from EPIPE or EBADF.
22015
22016 2009-03-03  Bruno Haible  <bruno@clisp.org>
22017
22018         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
22019         earlier.
22020         * doc/visibility.texi: Fix @node and @section.
22021
22022 2009-03-03  Simon Josefsson  <simon@josefsson.org>
22023
22024         * doc/gnulib.texi: Link to sections for ld version script and
22025         visibility.
22026         * doc/visibility.texi: Add @node and @section.
22027         * modules/ld-version-script: New module.
22028         * m4/ld-version-script.m4: New file.
22029         * doc/ld-version-script.texi: New file.
22030
22031 2009-03-02  David Lutterkort  <lutter@redhat.com>
22032
22033         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
22034         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22035
22036 2009-03-02  Bruno Haible  <bruno@clisp.org>
22037
22038         * doc/visibility.texi: Mention libtool's -export-symbols option.
22039
22040 2009-03-02  Jim Meyering  <meyering@redhat.com>
22041
22042         announce-gen: new option: --no-print-checksums
22043         * build-aux/announce-gen (usage): Describe it.
22044         (print_checksums): Print a newline here, not in the [*] footnote.
22045         (main): Honor it.
22046
22047 2009-03-01  Bruno Haible  <bruno@clisp.org>
22048
22049         Use socklen_t in the native Windows replacements prototypes.
22050         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
22051         instead of 'int'.
22052         * lib/getsockopt.c (rpl_getsockopt): Likewise.
22053         * lib/setsockopt.c (rpl_setsockopt): Likewise.
22054         * modules/getsockopt (Depends-on): Add socklen.
22055         * modules/setsockopt (Depends-on): Add socklen.
22056
22057 2009-03-01  Bruno Haible  <bruno@clisp.org>
22058
22059         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
22060         least 4.2.
22061
22062 2009-03-01  Eric Blake  <ebb9@byu.net>
22063             Bruno Haible  <bruno@clisp.org>
22064
22065         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
22066         error messages.
22067         * lib/wait-process.c (wait_subprocess): Omit error message about
22068         deadly signal sent to the child of termsigp != NULL.
22069
22070 2009-03-01  Eric Blake  <ebb9@byu.net>
22071
22072         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
22073
22074 2009-03-01  Bruno Haible  <bruno@clisp.org>
22075
22076         Avoid a gcc warning.
22077         * tests/test-sched.c (b): Make global.
22078         Reported by Eric Blake.
22079
22080 2009-01-19  Martin Lambers  <marlam@marlam.de>
22081
22082         Provide POSIX semantics for socket timeout options on W32.
22083         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
22084         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
22085         * modules/setsockopt: Depend on sys_time module for struct timeval.
22086         * modules/getsockopt: Depend on sys_time module for struct timeval.
22087
22088 2009-03-01  Simon Josefsson  <simon@josefsson.org>
22089
22090         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
22091         __USE_GNU, for consistency with netdb.in.h.
22092         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22093
22094 2009-03-01  Bruno Haible  <bruno@clisp.org>
22095
22096         More support for FreeMiNT.
22097         * lib/fseeko.c (rpl_fseeko): Complete last commit.
22098         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22099
22100 2009-03-01  Bruno Haible  <bruno@clisp.org>
22101
22102         More support for FreeMiNT.
22103         * lib/fpurge.c (fpurge): Correct last commit.
22104         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22105
22106 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22107
22108         Fix unportable awk script in vc-list-files.
22109         * build-aux/vc-list-files: In the replacement awk script, use
22110         substr with a second argument of 1, not zero.
22111         Report by Simon Josefsson.
22112
22113 2009-02-28  Bruno Haible  <bruno@clisp.org>
22114
22115         More support for FreeMiNT.
22116         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
22117         to FreeMiNT today.
22118         * lib/fwriting.c (fwriting): Likewise.
22119         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
22120
22121 2009-02-28  Bruno Haible  <bruno@clisp.org>
22122
22123         * tests/test-freadseek.c (main): Disable test beyond end of file on
22124         FreeMiNT.
22125         * tests/test-ftello.c (main): Likewise.
22126         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22127
22128 2009-02-28  Bruno Haible  <bruno@clisp.org>
22129
22130         Add tentative support for FreeMiNT.
22131         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
22132         * lib/fpurge.c (fpurge): Likewise.
22133         * lib/freadable.c (freadable): Likewise.
22134         * lib/freading.c (freading): Likewise.
22135         * lib/freadptr.c (freadptr): Likewise.
22136         * lib/freadseek.c (freadptrinc): Likewise.
22137         * lib/fseeko.c (rpl_fseeko): Likewise.
22138         * lib/fseterr.c (fseterr): Likewise.
22139         * lib/fwritable.c (fwritable): Likewise.
22140         * lib/fwriting.c (fwriting): Likewise.
22141         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
22142         Hourihane.
22143         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22144
22145 2009-02-28  Bruno Haible  <bruno@clisp.org>
22146
22147         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
22148         SIGCHLD.
22149         Reported by Jim Meyering.
22150
22151 2009-02-28  Bruno Haible  <bruno@clisp.org>
22152
22153         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
22154         Mention the results of these tests on various platforms.
22155         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
22156         order.
22157         * doc/posix-functions/printf.texi: Likewise.
22158         * doc/posix-functions/snprintf.texi: Likewise.
22159         * doc/posix-functions/sprintf.texi: Likewise.
22160         * doc/posix-functions/vfprintf.texi: Likewise.
22161         * doc/posix-functions/vprintf.texi: Likewise.
22162         * doc/posix-functions/vsnprintf.texi: Likewise.
22163         * doc/posix-functions/vsprintf.texi: Likewise.
22164         * doc/glibc-functions/obstack_printf.texi: Likewise.
22165         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22166
22167 2009-02-28  Bruno Haible  <bruno@clisp.org>
22168
22169         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
22170         Reported by Loïc Minier <lool@dooz.org>.
22171
22172 2009-02-27  Bruno Haible  <bruno@clisp.org>
22173
22174         * gnulib-tool (func_import): Make the sed expression used to create the
22175         sed script for updating the .gitignore file POSIX compliant.
22176         Reported by Eric Blake.
22177
22178 2009-02-27  Bruno Haible  <bruno@clisp.org>
22179
22180         * gnulib-tool (sed): Don't alias as "sed --posix".
22181         Reported by Eric Blake.
22182
22183 2009-02-27  Bruno Haible  <bruno@clisp.org>
22184
22185         Avoid test link errors.
22186         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
22187         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
22188         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
22189         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
22190         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22191
22192 2009-02-27  Bruno Haible  <bruno@clisp.org>
22193
22194         Avoid spurious "(cached)" in configure output.
22195         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
22196         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
22197         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22198         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22199         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22200         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22201         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22202         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22203         Reported by Eric Blake.
22204
22205 2009-02-27  Eric Blake  <ebb9@byu.net>
22206
22207         printf: fix regression in previous patch
22208         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
22209
22210 2009-02-27  Bruno Haible  <bruno@clisp.org>
22211
22212         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
22213         value.
22214         * lib/stdint.in.h: Likewise.
22215         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
22216
22217 2009-02-27  Eric Blake  <ebb9@byu.net>
22218
22219         doc: mention more functions added in cygwin 1.7.0
22220         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
22221         addition.
22222         * doc/posix-functions/open_wmemstream.texi: Likewise.
22223         * doc/posix-functions/wcsnlen.texi: Likewise.
22224         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22225         * doc/posix-functions/wcstod.texi: Likewise.
22226         * doc/posix-functions/wcstof.texi: Likewise.
22227         * doc/posix-functions/wcstoimax.texi: Likewise.
22228         * doc/posix-functions/wcstok.texi: Likewise.
22229         * doc/posix-functions/wcstoumax.texi: Likewise.
22230
22231         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
22232         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
22233         * doc/posix-functions/fprintf.texi: Update.
22234         * doc/posix-functions/printf.texi: Update.
22235         * doc/posix-functions/snprintf.texi: Update.
22236         * doc/posix-functions/sprintf.texi: Update.
22237         * doc/posix-functions/vfprintf.texi: Update.
22238         * doc/posix-functions/vprintf.texi: Update.
22239         * doc/posix-functions/vsnprintf.texi: Update.
22240         * doc/posix-functions/vsprintf.texi: Update.
22241         * doc/glibc-functions/obstack_printf.texi: Update.
22242         * doc/glibc-functions/obstack_vprintf.texi: Update.
22243
22244 2009-02-26  Eric Blake  <ebb9@byu.net>
22245
22246         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
22247         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
22248         compilation bug by using runtime conversion.
22249         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22250         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
22251         * modules/ceill-tests (Files): Use nan.h.
22252         * modules/floorl-tests (Files): Likewise.
22253         * modules/frexpl-tests (Files): Likewise.
22254         * modules/isnanl-tests (Files): Likewise.
22255         * modules/ldexpl-tests (Files): Likewise.
22256         * modules/roundl-tests (Files): Likewise.
22257         * modules/truncl-tests (Files): Likewise.
22258         * tests/test-ceill.c (main): Use a working NaN.
22259         * tests/test-floorl.c (main): Likewise.
22260         * tests/test-frexpl.c (main): Likewise.
22261         * tests/test-isnan.c (test_long_double): Likewise.
22262         * tests/test-isnanl.h (main): Likewise.
22263         * tests/test-ldexpl.h (main): Likewise.
22264         * tests/test-roundl.h (main): Likewise.
22265         * tests/test-truncl.h (main): Likewise.
22266         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
22267
22268 2009-02-26  Eric Blake  <ebb9@byu.net>
22269             Bruno Haible  <bruno@clisp.org>
22270
22271         Work around a *printf bug with %ls on Solaris.
22272         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
22273         precision is specified, sprintf stops converting the wide string
22274         argument when the number of bytes that have been produced by this
22275         conversion equals or exceeds the precision.
22276         * doc/posix-functions/fprintf.texi: Update.
22277         * doc/posix-functions/printf.texi: Update.
22278         * doc/posix-functions/snprintf.texi: Update.
22279         * doc/posix-functions/sprintf.texi: Update.
22280         * doc/posix-functions/vfprintf.texi: Update.
22281         * doc/posix-functions/vprintf.texi: Update.
22282         * doc/posix-functions/vsnprintf.texi: Update.
22283         * doc/posix-functions/vsprintf.texi: Update.
22284         * doc/glibc-functions/obstack_printf.texi: Update.
22285         * doc/glibc-functions/obstack_vprintf.texi: Update.
22286
22287 2009-02-26  Eric Blake  <ebb9@byu.net>
22288
22289         stdlib: favor compiler check of random.h
22290         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
22291         to avoid an ObjC random.h installed by Swarm.
22292
22293 2009-02-26  Bruno Haible  <bruno@clisp.org>
22294
22295         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
22296         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
22297         Reported by Gary V. Vaughan <gary@gnu.org>.
22298
22299 2009-02-26  Bruno Haible  <bruno@clisp.org>
22300
22301         Fix *printf behaviour regarding the %ls directive.
22302         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
22303         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
22304         NEED_PRINTF_DIRECTIVE_LS.
22305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
22306         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
22307         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22308         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
22309         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
22310         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
22311         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22312         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22313         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22314         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22315         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22316         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
22317         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22318         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22319         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22320         * doc/posix-functions/fprintf.texi: Update.
22321         * doc/posix-functions/printf.texi: Update.
22322         * doc/posix-functions/snprintf.texi: Update.
22323         * doc/posix-functions/sprintf.texi: Update.
22324         * doc/posix-functions/vfprintf.texi: Update.
22325         * doc/posix-functions/vprintf.texi: Update.
22326         * doc/posix-functions/vsnprintf.texi: Update.
22327         * doc/posix-functions/vsprintf.texi: Update.
22328         * doc/glibc-functions/obstack_printf.texi: Update.
22329         * doc/glibc-functions/obstack_vprintf.texi: Update.
22330         Reported by Eric Blake.
22331
22332 2009-02-25  Bruno Haible  <bruno@clisp.org>
22333
22334         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
22335         with known value.
22336         Reported by Gary V. Vaughan <gary@gnu.org>.
22337
22338 2009-02-25  Bruno Haible  <bruno@clisp.org>
22339
22340         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
22341         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
22342         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
22343         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
22344         Reported by Gary V. Vaughan <gary@gnu.org>.
22345
22346 2009-02-25  Bruno Haible  <bruno@clisp.org>
22347
22348         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
22349         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
22350         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
22351         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
22352         Reported by Gary V. Vaughan <gary@gnu.org>.
22353
22354 2009-02-25  Eric Blake  <ebb9@byu.net>
22355
22356         tests: skip fseek/ftell tests if ungetc is broken
22357         * m4/ungetc.m4: New file.
22358         * modules/fseek-tests: Split test, so ungetc dependency is
22359         separate from rest of test.
22360         * modules/fseeko-tests: Likewise.
22361         * modules/ftell-tests: Likewise.
22362         * modules/ftello-tests: Likewise.
22363         * tests/test-fseek.c (main): Isolate ungetc dependency.
22364         * tests/test-fseeko.c (main): Likewise.
22365         * tests/test-ftell.c (main): Likewise.
22366         * tests/test-ftello.c (main): Likewise.
22367         * tests/test-fseek2.sh: New file.
22368         * tests/test-fseeko2.sh: Likewise.
22369         * tests/test-ftell2.sh: Likewise.
22370         * tests/test-ftello2.sh: Likewise.
22371
22372 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
22373
22374         test-getaddrinfo: fix usage of skip return code 77
22375         * tests/test-gettaddrinfo.c: Return skip code 77 only
22376         for first occurance of skip (4x77 is not 77)
22377
22378 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
22379
22380         strtod: avoid C99 decl-after-statement
22381         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
22382
22383 2009-02-24  Eric Blake  <ebb9@byu.net>
22384
22385         strtod: detect HP-UX 11.31 bug
22386         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
22387         Reported by Gary V. Vaughan.
22388
22389 2009-02-23  Bruno Haible  <bruno@clisp.org>
22390
22391         Fix invalid read past end of memory block.
22392         * lib/vasnprintf.c (DCHAR_SET): Define.
22393         (local_wcslen): Define only when needed.
22394         (local_strnlen, local_wcsnlen): New functions.
22395         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
22396         directives that involve a conversion ourselves.
22397         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
22398         wcsnlen, mbrtowc, wcrtomb.
22399         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
22400         * tests/test-vasprintf-posix.c (test_function): Likewise.
22401         * tests/test-snprintf-posix.h (test_function): Likewise.
22402         * tests/test-sprintf-posix.h (test_function): Likewise.
22403         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22404
22405 2009-02-22  Bruno Haible  <bruno@clisp.org>
22406
22407         Implement new clarified decomposition of Hangul syllables.
22408         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
22409         of type LTV, return only a pairwise decomposition.
22410         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
22411         Likewise.
22412         * tests/uninorm/test-decomposition.c (main): Updated expected result.
22413         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
22414         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
22415
22416 2009-02-22  Bruno Haible  <bruno@clisp.org>
22417
22418         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
22419         zero-length results and shrink excess allocated memory.
22420         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
22421         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
22422         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
22423         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
22424         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
22425         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
22426         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
22427         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
22428         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
22429         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
22430         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
22431         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
22432
22433 2009-02-21  Bruno Haible  <bruno@clisp.org>
22434
22435         * doc/gnulib.texi: Include safe-alloc.texi earlier.
22436         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
22437         spaces after a period. Put a space between a macro name and its
22438         argument list. Trivial rewordings.
22439         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
22440         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
22441         (main): Return 0 explicitly.
22442
22443 2009-02-21  Bruno Haible  <bruno@clisp.org>
22444
22445         Tests for module 'uninorm/filter'.
22446         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
22447         * modules/uninorm/filter-tests: New file.
22448
22449         New module 'uninorm/filter'.
22450         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
22451         uninorm_filter_flush, uninorm_filter_free): New declarations.
22452         * lib/uninorm/uninorm-filter.c: New file.
22453         * modules/uninorm/filter: New file.
22454
22455 2009-02-21  Bruno Haible  <bruno@clisp.org>
22456
22457         Tests for module 'uninorm/nfkc'.
22458         * tests/uninorm/test-nfkc.c: New file.
22459         * tests/uninorm/test-u8-nfkc.c: New file.
22460         * tests/uninorm/test-u16-nfkc.c: New file.
22461         * tests/uninorm/test-u32-nfkc.c: New file.
22462         * tests/uninorm/test-u32-nfkc-big.sh: New file.
22463         * tests/uninorm/test-u32-nfkc-big.c: New file.
22464         * modules/uninorm/nfkc-tests: New file.
22465
22466         New module 'uninorm/nfkc'.
22467         * lib/uninorm/nfkc.c: New file.
22468         * modules/uninorm/nfkc: New file.
22469
22470         Tests for module 'uninorm/nfkd'.
22471         * tests/uninorm/test-nfkd.c: New file.
22472         * tests/uninorm/test-u8-nfkd.c: New file.
22473         * tests/uninorm/test-u16-nfkd.c: New file.
22474         * tests/uninorm/test-u32-nfkd.c: New file.
22475         * tests/uninorm/test-u32-nfkd-big.sh: New file.
22476         * tests/uninorm/test-u32-nfkd-big.c: New file.
22477         * modules/uninorm/nfkd-tests: New file.
22478
22479         New module 'uninorm/nfkd'.
22480         * lib/uninorm/nfkd.c: New file.
22481         * modules/uninorm/nfkd: New file.
22482
22483         Tests for module 'uninorm/nfc'.
22484         * tests/uninorm/test-nfc.c: New file.
22485         * tests/uninorm/test-u8-nfc.c: New file.
22486         * tests/uninorm/test-u16-nfc.c: New file.
22487         * tests/uninorm/test-u32-nfc.c: New file.
22488         * tests/uninorm/test-u32-nfc-big.sh: New file.
22489         * tests/uninorm/test-u32-nfc-big.c: New file.
22490         * modules/uninorm/nfc-tests: New file.
22491
22492         New module 'uninorm/nfc'.
22493         * lib/uninorm/nfc.c: New file.
22494         * modules/uninorm/nfc: New file.
22495
22496         Tests for module 'uninorm/nfd'.
22497         * tests/uninorm/test-nfd.c: New file.
22498         * tests/uninorm/test-u8-nfd.c: New file.
22499         * tests/uninorm/test-u16-nfd.c: New file.
22500         * tests/uninorm/test-u32-nfd.c: New file.
22501         * tests/uninorm/test-u32-nfd-big.sh: New file.
22502         * tests/uninorm/test-u32-nfd-big.c: New file.
22503         * tests/uninorm/test-u32-normalize-big.h: New file.
22504         * tests/uninorm/test-u32-normalize-big.c: New file.
22505         * tests/uninorm/NormalizationTest.txt: New file, created from
22506         Unicode 5.1.0 NormalizationTest.txt.
22507         * modules/uninorm/nfd-tests: New file.
22508
22509         New module 'uninorm/nfd'.
22510         * lib/uninorm/nfd.c: New file.
22511         * modules/uninorm/nfd: New file.
22512
22513         New module 'uninorm/u32-normalize'.
22514         * lib/uninorm/u32-normalize.c: New file.
22515         * modules/uninorm/u32-normalize: New file.
22516
22517         New module 'uninorm/u16-normalize'.
22518         * lib/uninorm/u16-normalize.c: New file.
22519         * modules/uninorm/u16-normalize: New file.
22520
22521         New module 'uninorm/u8-normalize'.
22522         * lib/uninorm/u8-normalize.c: New file.
22523         * lib/uninorm/normalize-internal.h: New file.
22524         * lib/uninorm/u-normalize-internal.h: New file.
22525         * modules/uninorm/u8-normalize: New file.
22526
22527         New module 'uninorm/decompose-internal'.
22528         * lib/uninorm/decompose-internal.c: New file.
22529         * modules/uninorm/decompose-internal: New file.
22530
22531         Tests for module 'uninorm/composition'.
22532         * tests/uninorm/test-composition.c: New file.
22533         * modules/uninorm/composition-tests: New file.
22534
22535         New module 'uninorm/composition'.
22536         * lib/uninorm/composition.c: New file.
22537         * lib/uninorm/composition-table.gperf: New file, generated by
22538         gen-uni-tables.
22539         * modules/uninorm/composition: New file.
22540
22541         Tests for module 'uninorm/compat-decomposition'.
22542         * tests/uninorm/test-compat-decomposition.c: New file.
22543         * modules/uninorm/compat-decomposition-tests: New file.
22544
22545         New module 'uninorm/compat-decomposition'.
22546         * lib/uninorm/decompose-internal.h: New file.
22547         * lib/uninorm/compat-decomposition.c: New file.
22548         * modules/uninorm/compat-decomposition: New file.
22549
22550         Tests for module 'uninorm/canonical-decomposition'.
22551         * tests/uninorm/test-canonical-decomposition.c: New file.
22552         * modules/uninorm/canonical-decomposition-tests: New file.
22553
22554         New module 'uninorm/canonical-decomposition'.
22555         * lib/uninorm/canonical-decomposition.c: New file.
22556         * modules/uninorm/canonical-decomposition: New file.
22557
22558         Tests for module 'uninorm/decomposition'.
22559         * tests/uninorm/test-decomposition.c: New file.
22560         * modules/uninorm/decomposition-tests: New file.
22561
22562         New module 'uninorm/decomposition'.
22563         * lib/uninorm/decomposition.c: New file.
22564         * modules/uninorm/decomposition: New file.
22565
22566         New module 'uninorm/decomposition-table'.
22567         * lib/uninorm/decomposition-table.h: New file.
22568         * lib/uninorm/decomposition-table.c: New file.
22569         * lib/uninorm/decomposition-table1.h: New file, generated by
22570         gen-uni-tables.
22571         * lib/uninorm/decomposition-table2.h: New file, generated by
22572         gen-uni-tables.
22573         * modules/uninorm/decomposition-table: New file.
22574
22575         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
22576         (UC_DECOMP_*): New enumeration items.
22577         (get_decomposition): New function.
22578         (struct decomp_table): New type.
22579         (output_decomposition, output_decomposition_tables): New functions.
22580         (unicode_composition_exclusions): New variable.
22581         (fill_composition_exclusions, debug_output_composition_tables): New
22582         functions.
22583         (main): Accept one more argument. Invoke fill_composition_exclusions.
22584         Output decomposition and composition tables.
22585
22586         New module 'uninorm/base'.
22587         * lib/uninorm.h: New file.
22588         * lib/unictype.h: Update comment.
22589         * modules/uninorm/base: New file.
22590
22591 2009-02-21  David Lutterkort  <lutter@redhat.com>
22592
22593         Tests for module 'safe-alloc'.
22594         * tests/test-safe-alloc.c: New file.
22595         * modules/safe-alloc-tests: New file.
22596
22597         New module 'safe-alloc'.
22598         * lib/safe-alloc.h: New file.
22599         * lib/safe-alloc.c: New file.
22600         * m4/safe-alloc.m4: New file.
22601         * modules/safe-alloc: New file.
22602         * doc/safe-alloc.texi: New file.
22603         * doc/gnulib.texi: Include it.
22604         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22605         safe-alloc.
22606
22607 2009-02-18  Bruno Haible  <bruno@clisp.org>
22608
22609         Fix link error on non-glibc systems.
22610         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
22611         variable.
22612         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22613
22614 2009-02-18  Jim Meyering  <meyering@redhat.com>
22615
22616         fts: avoid used-uninitialized error due to recent change
22617         * lib/fts.c (fts_read): Guard uses of the new member,
22618         parent->fts_n_dirs_remaining, since it's not relevant for
22619         the parent of a directory specified on the command-line.
22620
22621 2009-02-17  James Youngman  <jay@gnu.org>
22622             Bruno Haible  <bruno@clisp.org>
22623
22624         * m4/include_next.m4: Reformulate comment.
22625
22626 2009-02-16  Jim Meyering  <meyering@redhat.com>
22627
22628         fts: add #if guards so that the fts_lgpl module still builds
22629         * lib/fts.c: Guard just-added hash-table-using parts with
22630         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
22631         Reported by Simon Josefsson.
22632
22633 2009-02-15  Bruno Haible  <bruno@clisp.org>
22634
22635         * modules/array-mergesort-tests: New file.
22636         * tests/test-array-mergesort.c: New file.
22637
22638         New module 'array-mergesort'.
22639         * modules/array-mergesort: New file.
22640         * lib/array-mergesort.h: New file.
22641
22642 2009-02-15  Bruno Haible  <bruno@clisp.org>
22643
22644         Fix 2009-02-07 commit.
22645         * lib/gen-uni-tables.c (output_predicate, output_category,
22646         output_combclass, output_bidi_category, output_decimal_digit,
22647         output_digit, output_numeric, output_mirror, output_scripts,
22648         output_ident_category, output_simple_mapping): Fix format directives.
22649         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
22650
22651 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
22652
22653         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
22654         fixes are available from IBM.
22655
22656 2009-02-13  Jim Meyering  <meyering@redhat.com>
22657
22658         fts: arrange not to stat non-directories in more cases
22659         This makes GNU find (when it doesn't need to stat each file)
22660         *much* more efficient at traversing reiserfs file systems.
22661         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
22662         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
22663         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
22664         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
22665         (leaf_optimization_applies): New function.
22666         (LCO_hash, LCO_compare): New helper functions.
22667         (link_count_optimize_ok): New function.
22668         (fts_stat): Initialize new member (if dir).
22669         (fts_read): Decrement parent's fts_n_dirs_remaining count if
22670         we've just stat'ed a directory.  Skip the stat call when possible.
22671         ---
22672         Note this AFS-related exchange:
22673         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
22674         and note find's pioctl call in find/fstype.c.
22675         But that is necessary only if you want to enable the
22676         optimization for AFS, and for now, I don't.
22677
22678         fts: move a function definition "up" (no semantic change)
22679         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
22680         "up" to precede upcoming use of a related function.
22681
22682 2009-02-11  Jim Meyering  <meyering@redhat.com>
22683
22684         fts: correct internal computation of nlinks (optimization-related)
22685         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
22686         whether the current entry is a directory, so don't test it.
22687
22688 2009-02-10  Bruno Haible  <bruno@clisp.org>
22689
22690         Tests for module 'uniwbrk/ulc-wordbreaks'.
22691         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
22692         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
22693         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
22694
22695         Tests for module 'uniwbrk/u32-wordbreaks'.
22696         * modules/uniwbrk/u32-wordbreaks-tests: New file.
22697         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
22698
22699         Tests for module 'uniwbrk/u16-wordbreaks'.
22700         * modules/uniwbrk/u16-wordbreaks-tests: New file.
22701         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
22702
22703         Tests for module 'uniwbrk/u8-wordbreaks'.
22704         * modules/uniwbrk/u8-wordbreaks-tests: New file.
22705         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
22706
22707 2009-02-10  Bruno Haible  <bruno@clisp.org>
22708
22709         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
22710         property.
22711         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
22712         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
22713         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
22714
22715 2009-02-10  Simon Josefsson  <simon@josefsson.org>
22716
22717         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
22718         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
22719
22720 2009-02-10  Bruno Haible  <bruno@clisp.org>
22721
22722         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
22723         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
22724         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
22725         * lib/unilbrk/u8-possible-linebreaks.c: Update.
22726         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
22727         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
22728
22729 2009-02-09  Simon Josefsson  <simon@josefsson.org>
22730
22731         * lib/sockets.h (gl_fd_to_handle): New function.
22732
22733         * tests/test-sockets.c: Call gl_fd_to_handle.
22734
22735 2009-02-09  Bruno Haible  <bruno@clisp.org>
22736
22737         * doc/havelib.texi: Document the conventions on bi-arch systems.
22738
22739 2009-02-08  Bruno Haible  <bruno@clisp.org>
22740
22741         Document the AC_LIB_LINKFLAGS macro.
22742         * doc/havelib.texi: New file, mostly written on 2005-05-24.
22743         * doc/gnulib.texi: Include it.
22744
22745 2009-02-08  Bruno Haible  <bruno@clisp.org>
22746
22747         Fix wrong order of sections, compared to TOC.
22748         * doc/gnulib.texi: Include relocatable-maint.texi after the
22749         "Regular expressions" node, not before.
22750
22751 2009-02-08  Bruno Haible  <bruno@clisp.org>
22752
22753         Tests for module 'unicase/totitle'.
22754         * modules/unicase/totitle-tests: New file.
22755
22756         Tests for module 'unicase/tolower'.
22757         * modules/unicase/tolower-tests: New file.
22758
22759         Tests for module 'unicase/toupper'.
22760         * modules/unicase/toupper-tests: New file.
22761         * tests/unicase/test-mapping-part1.h: New file.
22762         * tests/unicase/test-mapping-part2.h: New file.
22763
22764         New module 'unicase/totitle'.
22765         * modules/unicase/totitle: New file.
22766         * lib/unicase/totitle.c: New file.
22767
22768         New module 'unicase/tolower'.
22769         * modules/unicase/tolower: New file.
22770         * lib/unicase/tolower.c: New file.
22771
22772         New module 'unicase/toupper'.
22773         * modules/unicase/toupper: New file.
22774         * lib/unicase/toupper.c: New file.
22775         * lib/unicase/simple-mapping.h: New file.
22776
22777         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
22778         (mapping_table): New structure.
22779         (output_simple_mapping): New function.
22780         (main): Invoke output_simple_mapping_test and output_simple_mapping.
22781         * modules/gen-uni-tables (Description): Update.
22782         * lib/unicase/toupper.h: New file, automatically generated by
22783         gen-uni-tables.
22784         * lib/unicase/tolower.h: New file, automatically generated by
22785         gen-uni-tables.
22786         * lib/unicase/totitle.h: New file, automatically generated by
22787         gen-uni-tables.
22788         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
22789         gen-uni-tables.
22790         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
22791         gen-uni-tables.
22792         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
22793         gen-uni-tables.
22794
22795         New module 'unicase/base'.
22796         * modules/unicase/base: New file.
22797         * lib/unicase.h: New file.
22798
22799 2009-02-08  Bruno Haible  <bruno@clisp.org>
22800
22801         New module 'uniwbrk/ulc-wordbreaks'.
22802         * modules/uniwbrk/ulc-wordbreaks: New file.
22803         * lib/uniwbrk/ulc-wordbreaks.c: New file.
22804
22805         New module 'uniwbrk/u32-wordbreaks'.
22806         * modules/uniwbrk/u32-wordbreaks: New file.
22807         * lib/uniwbrk/u32-wordbreaks.c: New file.
22808
22809         New module 'uniwbrk/u16-wordbreaks'.
22810         * modules/uniwbrk/u16-wordbreaks: New file.
22811         * lib/uniwbrk/u16-wordbreaks.c: New file.
22812
22813         New module 'uniwbrk/u8-wordbreaks'.
22814         * modules/uniwbrk/u8-wordbreaks: New file.
22815         * lib/uniwbrk/u8-wordbreaks.c: New file.
22816         * lib/uniwbrk/u-wordbreaks.h: New file.
22817
22818         New module 'uniwbrk/table'.
22819         * modules/uniwbrk/table: New file.
22820         * lib/uniwbrk/wbrktable.h: New file.
22821         * lib/uniwbrk/wbrktable.c: New file.
22822
22823         New module 'uniwbrk/wordbreak-property'.
22824         * modules/uniwbrk/wordbreak-property: New file.
22825         * lib/uniwbrk/wordbreak-property.c: New file.
22826
22827         * lib/gen-uni-tables.c (WBP_*): New enum items.
22828         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
22829         (unicode_org_wbp): New variable.
22830         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
22831         New functions.
22832         (wbp_table): New structure.
22833         (output_wbp, output_wbrk_tables): New functions.
22834         (main): Accept additional argument. Invoke fill_org_wbp,
22835         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
22836         output_wbrk_tables.
22837         * modules/gen-uni-tables (Description): Update.
22838         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
22839         gen-uni-tables.
22840
22841         New module 'uniwbrk/base'.
22842         * modules/uniwbrk/base: New file.
22843         * lib/uniwbrk.h: New file.
22844
22845 2009-02-08  Bruno Haible  <bruno@clisp.org>
22846
22847         Update to Unicode 5.1.0.
22848         * lib/gen-uni-tables.c (is_property_alphabetic): Include
22849         U+2185..U+2188.
22850         (is_property_default_ignorable_code_point): Don't include characters
22851         of category Cc or Cs and not-a-characters.
22852         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
22853         U+0D79, U+109E, U+109F, U+A60C.
22854         * lib/unictype/bidi_of.h: Regenerated.
22855         * lib/unictype/blocks.h: Regenerated.
22856         * lib/unictype/categ_C.h: Regenerated.
22857         * lib/unictype/categ_Cf.h: Regenerated.
22858         * lib/unictype/categ_Cn.h: Regenerated.
22859         * lib/unictype/categ_L.h: Regenerated.
22860         * lib/unictype/categ_Ll.h: Regenerated.
22861         * lib/unictype/categ_Lm.h: Regenerated.
22862         * lib/unictype/categ_Lo.h: Regenerated.
22863         * lib/unictype/categ_Lu.h: Regenerated.
22864         * lib/unictype/categ_M.h: Regenerated.
22865         * lib/unictype/categ_Mc.h: Regenerated.
22866         * lib/unictype/categ_Me.h: Regenerated.
22867         * lib/unictype/categ_Mn.h: Regenerated.
22868         * lib/unictype/categ_N.h: Regenerated.
22869         * lib/unictype/categ_Nd.h: Regenerated.
22870         * lib/unictype/categ_Nl.h: Regenerated.
22871         * lib/unictype/categ_No.h: Regenerated.
22872         * lib/unictype/categ_P.h: Regenerated.
22873         * lib/unictype/categ_Pd.h: Regenerated.
22874         * lib/unictype/categ_Pe.h: Regenerated.
22875         * lib/unictype/categ_Pf.h: Regenerated.
22876         * lib/unictype/categ_Pi.h: Regenerated.
22877         * lib/unictype/categ_Po.h: Regenerated.
22878         * lib/unictype/categ_Ps.h: Regenerated.
22879         * lib/unictype/categ_S.h: Regenerated.
22880         * lib/unictype/categ_Sk.h: Regenerated.
22881         * lib/unictype/categ_Sm.h: Regenerated.
22882         * lib/unictype/categ_So.h: Regenerated.
22883         * lib/unictype/categ_of.h: Regenerated.
22884         * lib/unictype/combining.h: Regenerated.
22885         * lib/unictype/ctype_alnum.h: Regenerated.
22886         * lib/unictype/ctype_alpha.h: Regenerated.
22887         * lib/unictype/ctype_graph.h: Regenerated.
22888         * lib/unictype/ctype_lower.h: Regenerated.
22889         * lib/unictype/ctype_print.h: Regenerated.
22890         * lib/unictype/ctype_punct.h: Regenerated.
22891         * lib/unictype/ctype_upper.h: Regenerated.
22892         * lib/unictype/decdigit.h: Regenerated.
22893         * lib/unictype/digit.h: Regenerated.
22894         * lib/unictype/mirror.h: Regenerated.
22895         * lib/unictype/numeric.h: Regenerated.
22896         * lib/unictype/pr_alphabetic.h: Regenerated.
22897         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
22898         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
22899         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
22900         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
22901         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
22902         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
22903         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
22904         * lib/unictype/pr_combining.h: Regenerated.
22905         * lib/unictype/pr_dash.h: Regenerated.
22906         * lib/unictype/pr_decimal_digit.h: Regenerated.
22907         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
22908         * lib/unictype/pr_deprecated.h: Regenerated.
22909         * lib/unictype/pr_diacritic.h: Regenerated.
22910         * lib/unictype/pr_extender.h: Regenerated.
22911         * lib/unictype/pr_format_control.h: Regenerated.
22912         * lib/unictype/pr_grapheme_base.h: Regenerated.
22913         * lib/unictype/pr_grapheme_extend.h: Regenerated.
22914         * lib/unictype/pr_grapheme_link.h: Regenerated.
22915         * lib/unictype/pr_id_continue.h: Regenerated.
22916         * lib/unictype/pr_id_start.h: Regenerated.
22917         * lib/unictype/pr_ideographic.h: Regenerated.
22918         * lib/unictype/pr_ignorable_control.h: Regenerated.
22919         * lib/unictype/pr_lowercase.h: Regenerated.
22920         * lib/unictype/pr_math.h: Regenerated.
22921         * lib/unictype/pr_numeric.h: Regenerated.
22922         * lib/unictype/pr_other_alphabetic.h: Regenerated.
22923         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
22924         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
22925         * lib/unictype/pr_other_id_continue.h: Regenerated.
22926         * lib/unictype/pr_other_lowercase.h: Regenerated.
22927         * lib/unictype/pr_other_math.h: Regenerated.
22928         * lib/unictype/pr_punctuation.h: Regenerated.
22929         * lib/unictype/pr_sentence_terminal.h: Regenerated.
22930         * lib/unictype/pr_soft_dotted.h: Regenerated.
22931         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
22932         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
22933         * lib/unictype/pr_unified_ideograph.h: Regenerated.
22934         * lib/unictype/pr_uppercase.h: Regenerated.
22935         * lib/unictype/pr_xid_continue.h: Regenerated.
22936         * lib/unictype/pr_xid_start.h: Regenerated.
22937         * lib/unictype/pr_zero_width.h: Regenerated.
22938         * lib/unictype/scripts.h: Regenerated.
22939         * lib/unictype/scripts_byname.gperf: Regenerated.
22940         * lib/unictype/sy_java_ident.h: Regenerated.
22941         * lib/unilbrk/lbrkprop1.h: Regenerated.
22942         * lib/unilbrk/lbrkprop2.h: Regenerated.
22943         * tests/unictype/test-categ_C.c: Regenerated.
22944         * tests/unictype/test-categ_Cf.c: Regenerated.
22945         * tests/unictype/test-categ_Cn.c: Regenerated.
22946         * tests/unictype/test-categ_L.c: Regenerated.
22947         * tests/unictype/test-categ_Ll.c: Regenerated.
22948         * tests/unictype/test-categ_Lm.c: Regenerated.
22949         * tests/unictype/test-categ_Lo.c: Regenerated.
22950         * tests/unictype/test-categ_Lu.c: Regenerated.
22951         * tests/unictype/test-categ_M.c: Regenerated.
22952         * tests/unictype/test-categ_Mc.c: Regenerated.
22953         * tests/unictype/test-categ_Me.c: Regenerated.
22954         * tests/unictype/test-categ_Mn.c: Regenerated.
22955         * tests/unictype/test-categ_N.c: Regenerated.
22956         * tests/unictype/test-categ_Nd.c: Regenerated.
22957         * tests/unictype/test-categ_Nl.c: Regenerated.
22958         * tests/unictype/test-categ_No.c: Regenerated.
22959         * tests/unictype/test-categ_P.c: Regenerated.
22960         * tests/unictype/test-categ_Pd.c: Regenerated.
22961         * tests/unictype/test-categ_Pe.c: Regenerated.
22962         * tests/unictype/test-categ_Pf.c: Regenerated.
22963         * tests/unictype/test-categ_Pi.c: Regenerated.
22964         * tests/unictype/test-categ_Po.c: Regenerated.
22965         * tests/unictype/test-categ_Ps.c: Regenerated.
22966         * tests/unictype/test-categ_S.c: Regenerated.
22967         * tests/unictype/test-categ_Sk.c: Regenerated.
22968         * tests/unictype/test-categ_Sm.c: Regenerated.
22969         * tests/unictype/test-categ_So.c: Regenerated.
22970         * tests/unictype/test-ctype_alnum.c: Regenerated.
22971         * tests/unictype/test-ctype_alpha.c: Regenerated.
22972         * tests/unictype/test-ctype_graph.c: Regenerated.
22973         * tests/unictype/test-ctype_lower.c: Regenerated.
22974         * tests/unictype/test-ctype_print.c: Regenerated.
22975         * tests/unictype/test-ctype_punct.c: Regenerated.
22976         * tests/unictype/test-ctype_upper.c: Regenerated.
22977         * tests/unictype/test-decdigit.h: Regenerated.
22978         * tests/unictype/test-digit.h: Regenerated.
22979         * tests/unictype/test-numeric.h: Regenerated.
22980         * tests/unictype/test-pr_alphabetic.c: Regenerated.
22981         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
22982         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
22983         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
22984         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
22985         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
22986         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
22987         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
22988         * tests/unictype/test-pr_combining.c: Regenerated.
22989         * tests/unictype/test-pr_dash.c: Regenerated.
22990         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
22991         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
22992         * tests/unictype/test-pr_deprecated.c: Regenerated.
22993         * tests/unictype/test-pr_diacritic.c: Regenerated.
22994         * tests/unictype/test-pr_extender.c: Regenerated.
22995         * tests/unictype/test-pr_format_control.c: Regenerated.
22996         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
22997         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
22998         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
22999         * tests/unictype/test-pr_id_continue.c: Regenerated.
23000         * tests/unictype/test-pr_id_start.c: Regenerated.
23001         * tests/unictype/test-pr_ideographic.c: Regenerated.
23002         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
23003         * tests/unictype/test-pr_lowercase.c: Regenerated.
23004         * tests/unictype/test-pr_math.c: Regenerated.
23005         * tests/unictype/test-pr_numeric.c: Regenerated.
23006         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
23007         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
23008         Regenerated.
23009         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
23010         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
23011         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
23012         * tests/unictype/test-pr_other_math.c: Regenerated.
23013         * tests/unictype/test-pr_punctuation.c: Regenerated.
23014         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
23015         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
23016         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
23017         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
23018         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
23019         * tests/unictype/test-pr_uppercase.c: Regenerated.
23020         * tests/unictype/test-pr_xid_continue.c: Regenerated.
23021         * tests/unictype/test-pr_xid_start.c: Regenerated.
23022         * tests/unictype/test-pr_zero_width.c: Regenerated.
23023
23024         Update to Unicode 5.1.0.
23025         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
23026         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
23027         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
23028         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
23029         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
23030         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
23031         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
23032         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
23033         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
23034         (nonspacing_table_ind): Update.
23035         * tests/uniwidth/test-uc_width2.sh: Update expected result.
23036
23037         Update to Unicode 5.1.0.
23038         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
23039         code transform.
23040         * lib/uniname/uniname.c (unicode_character_name,
23041         unicode_name_character): Add the range 0x1Fxxx to the code transform.
23042         * lib/uniname/uninames.h: Regenerated.
23043         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
23044
23045 2009-02-07  Bruno Haible  <bruno@clisp.org>
23046
23047         Merge gen-ctype and gen-lbrk into a single program.
23048         * lib/gen-uni-tables.c: New file, incorporating
23049         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
23050         Add directory prefixes to the names of the generated files.
23051         * lib/unictype/gen-ctype.c: Remove file.
23052         * lib/unilbrk/gen-lbrk.c: Remove file.
23053         * modules/gen-uni-tables: New file.
23054         * modules/unictype/gen-ctype: Remove file.
23055         * modules/unilbrk/gen-lbrk: Remove file.
23056
23057 2009-02-07  Bruno Haible  <bruno@clisp.org>
23058
23059         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
23060
23061         New module 'unistr/u32-strcoll'.
23062         * modules/unistr/u32-strcoll: New file.
23063         * lib/unistr/u32-strcoll.c: New file.
23064
23065         New module 'unistr/u16-strcoll'.
23066         * modules/unistr/u16-strcoll: New file.
23067         * lib/unistr/u16-strcoll.c: New file.
23068
23069         New module 'unistr/u8-strcoll'.
23070         * modules/unistr/u8-strcoll: New file.
23071         * lib/unistr/u8-strcoll.c: New file.
23072         * lib/unistr/u-strcoll.h: New file.
23073
23074 2009-02-07  Bruno Haible  <bruno@clisp.org>
23075
23076         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
23077         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23078         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23079         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
23080         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
23081         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
23082
23083 2009-02-07  Bruno Haible  <bruno@clisp.org>
23084
23085         Make 64-bit clean.
23086         * lib/unictype/gen-ctype.c (output_predicate, output_category,
23087         output_combclass, output_bidi_category, output_decimal_digit,
23088         output_digit, output_numeric, output_mirror, output_scripts,
23089         output_ident_category): Use proper width specifier in format strings.
23090
23091 2009-02-07  Bruno Haible  <bruno@clisp.org>
23092
23093         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
23094         failure behaviour.
23095
23096 2009-02-07  Jim Meyering  <meyering@redhat.com>
23097
23098         regex: avoid compilation failure with upcoming gcc-4.4
23099         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
23100         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
23101         "... error: integer overflow in preprocessor expression".
23102
23103 2009-02-05  Ben Pfaff  <blp@gnu.org>
23104
23105         Fix link errors on Windows when close module is used.
23106         * modules/close: Add $(LIB_CLOSE) to Link section.
23107         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
23108         $(LIB_CLOSE) on Windows.
23109
23110 2009-02-05  Jim Meyering  <meyering@redhat.com>
23111
23112         still avoid unused-parameter warnings, but do it cleanly
23113         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
23114         (get_fs_usage): Cast to void instead.
23115         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
23116         (dev_from_mount_options, read_file_system_list): Cast to void.
23117         Prompted by Bruno Haible.
23118
23119 2009-02-04  Jim Meyering  <meyering@redhat.com>
23120
23121         fsusage.c: correct copyright year
23122         * lib/fsusage.c: Reflect year in which the change is pushed into
23123
23124         avoid misc. warnings
23125         * lib/fsusage.c (UNUSED_PARAM): Define.
23126         (get_fs_usage): Mark parameter "disk" as unused.
23127         * lib/getugroups.c (getgrent): Use "void" in prototype.
23128         * lib/mountlist.c: Mark unused parameters.
23129         (read_file_system_list): Declare a local with "const".
23130         * lib/nanosleep.c (getnow): Declare static.
23131         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
23132
23133         dirfd: set errno upon failure
23134         * lib/dirfd.c: Include <errno.h>.
23135         Set errno to ENOTSUP when returning -1.
23136         * modules/dirfd (Depends-on): Add errno.
23137         Suggested by John Kodis <kodis@comcast.net>.
23138
23139 2009-02-01  Bruno Haible  <bruno@clisp.org>
23140
23141         Don't assume sizeof (long) >= sizeof (void *).
23142         * lib/memcmp.c: Include stdint.h.
23143         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
23144         srcp2 to 'const byte *'.
23145         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
23146         types to uintptr_t.
23147         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
23148         * modules/memcmp (Depends-on): Add stdint.
23149         Reported by Ozkan Sezer <sezeroz@gmail.com>.
23150
23151 2009-01-30  Eric Blake  <ebb9@byu.net>
23152
23153         fix more require-before-expand issues
23154         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
23155         expand, AC_PROG_AWK.
23156         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
23157
23158 2009-01-28  Eric Blake  <ebb9@byu.net>
23159
23160         version-etc: use consistent URL formatting
23161         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
23162         Improve formatting.  Use fputs for string without %.
23163
23164 2009-01-28  Jim Meyering  <meyering@redhat.com>
23165
23166         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
23167         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
23168         "underquoted definition of NAME" from autoconf-2.59.
23169
23170 2009-01-28  Bruno Haible  <bruno@clisp.org>
23171
23172         * doc/gnulib.texi: Add "Obsolete modules" to index.
23173
23174 2009-01-28  Jim Meyering  <meyering@redhat.com>
23175
23176         useless-if-before-free: recognize more variants
23177         * build-aux/useless-if-before-free: Also recognize e.g.,
23178         if (NULL != p) free (p);
23179
23180 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
23181
23182         test-getaddrinfo: skip (don't fail) this test when there's no network
23183         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
23184         on the presumption that it means you lack network access.
23185
23186 2009-01-26  Jim Meyering  <meyering@redhat.com>
23187
23188         fflush: avoid warnings on modern systems
23189         * lib/fflush.c (rpl_fflush): Move declarations of locals,
23190         pos and result, into scopes where they're used.
23191
23192 2009-01-26  Eric Blake  <ebb9@byu.net>
23193
23194         Silence warning reintroduced by recent extensions patch.
23195         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
23196         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
23197         autoconf.
23198
23199         Backport improved autoconf semantics of AC_DEFUN_ONCE.
23200         * m4/00gnulib.m4: New file.
23201         * gnulib-tool (func_get_filelist): Always use it.
23202         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
23203         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
23204
23205 2009-01-25  Bruno Haible  <bruno@clisp.org>
23206
23207         Make test-quotearg work on MacOS X and AIX.
23208         * tests/test-quotearg.sh: New file.
23209         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
23210         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
23211         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
23212         include <libintl.h>.
23213         (fake_locale): Remove variable.
23214         (gettext, dgettext, dcgettext): Remove functions.
23215         (main): Instead of setting a fake locale, set a real locale. Call
23216         textdomain and bindtextdomain.
23217         * modules/quotearg-tests (Files): Add the new files.
23218         (Depends-on): Add gettext, setenv, unsetenv.
23219         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
23220         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
23221         Augment TESTS_ENVIRONMENT.
23222
23223 2009-01-25  Bruno Haible  <bruno@clisp.org>
23224
23225         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
23226         fr_FR.ISO8859-1 locale on MacOS X.
23227         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
23228         ja_JP.eucJP locale on MacOS X.
23229         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
23230         zh_CN.GB18030 locale on MacOS X.
23231
23232 2009-01-25  Bruno Haible  <bruno@clisp.org>
23233
23234         Avoid link errors on MacOS X 10.3.
23235         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
23236         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23237
23238 2009-01-25  Bruno Haible  <bruno@clisp.org>
23239
23240         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23241         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
23242         * modules/pipe (Files): Remove m4/posix_spawn.m4.
23243         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23244         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
23245         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23246         posix_spawnattr_init, posix_spawnattr_setsigmask,
23247         posix_spawnattr_setflags, posix_spawnattr_destroy.
23248
23249         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23250         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
23251         * modules/execute (Files): Remove m4/posix_spawn.m4.
23252         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23253         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23254         posix_spawnattr_init, posix_spawnattr_setsigmask,
23255         posix_spawnattr_setflags, posix_spawnattr_destroy.
23256
23257 2009-01-25  Bruno Haible  <bruno@clisp.org>
23258
23259         * lib/glthread/threadlib.c: Include <stdlib.h>.
23260
23261 2009-01-25  Bruno Haible  <bruno@clisp.org>
23262
23263         * lib/glthread/threadlib.c (dummy): New declaration.
23264
23265 2009-01-25  Bruno Haible  <bruno@clisp.org>
23266
23267         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
23268         multibyte characters also for the GB18030 encoding. Don't crash when
23269         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
23270
23271 2009-01-25  Bruno Haible  <bruno@clisp.org>
23272
23273         Avoid redefining 'struct random_data' on OSF/1 5.1.
23274         * lib/stdlib.in.h: Include <random.h> if it exists.
23275         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
23276         HAVE_RANDOM_H. Include <random.h> when testing whether
23277         'struct random_data' exists.
23278         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
23279
23280 2009-01-25  Bruno Haible  <bruno@clisp.org>
23281
23282         Don't install charset.alias on MacOS X >= 10.3.
23283         * lib/localcharset.c (DARWIN7): New macro.
23284         (get_charset_aliases): Hardcode the result for Darwin7.
23285         * modules/localcharset (install-exec-local): Don't install
23286         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
23287
23288 2009-01-25  Bruno Haible  <bruno@clisp.org>
23289
23290         Don't install charset.alias on mingw and Cygwin.
23291         * modules/localcharset (install-exec-local): Don't install
23292         charset.alias on mingw and Cygwin, if the file does not yet exist.
23293         The result for these platforms is hardcoded in localcharset.c.
23294
23295 2009-01-25  Bruno Haible  <bruno@clisp.org>
23296
23297         Make it possible again to use AC_GNU_SOURCE together with gnulib.
23298         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
23299         before requiring AC_USE_SYSTEM_EXTENSIONS.
23300
23301 2009-01-25  Jim Meyering  <meyering@redhat.com>
23302
23303         c-strtod: avoid warnings
23304         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
23305         "assignment discards qualifiers from pointer target type" warnings.
23306
23307 2009-01-24  Bruno Haible  <bruno@clisp.org>
23308
23309         Add support for non-UTF-8 locales on MacOS X.
23310         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
23311         canonical encodings. For Darwin 7 and newer, don't map traditional
23312         encodings to UTF-8.
23313         Reported by Vincent Lefevre <vincent@vinc17.org>
23314         at <http://savannah.gnu.org/bugs/?25235>.
23315
23316 2009-01-24  Bruno Haible  <bruno@clisp.org>
23317
23318         * doc/gnulib.texi (Obsolete modules): New section.
23319         Reported by Mike Frysinger <vapier@gentoo.org>.
23320
23321 2009-01-24  Bruno Haible  <bruno@clisp.org>
23322
23323         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
23324         (%.dvi): New rule.
23325
23326 2009-01-24  Bruno Haible  <bruno@clisp.org>
23327
23328         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
23329         Reported by Eric Blake.
23330
23331 2009-01-24  Bruno Haible  <bruno@clisp.org>
23332
23333         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
23334         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
23335         Reported by Gary V. Vaughan <gary@gnu.org>.
23336
23337 2009-01-24  Bruno Haible  <bruno@clisp.org>
23338
23339         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
23340
23341 2009-01-23  Bruno Haible  <bruno@clisp.org>
23342
23343         Make c-strtod, c-strtold usable in libraries.
23344         * lib/c-strtod.c: Include string.h instead of xalloc.h.
23345         (C_STRTOD): Call strdup instead of xstrdup.
23346         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
23347         * modules/c-strtold (Depends-on): Likewise.
23348         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
23349         * NEWS: Mention the change.
23350         Reported by Michael Gold <mgold@ncf.ca>.
23351
23352 2009-01-23  Jim Meyering  <meyering@redhat.com>
23353
23354         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
23355         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
23356         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
23357
23358 2009-01-23  Simon Josefsson  <simon@josefsson.org>
23359
23360         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
23361         GNU CoreUtils.
23362         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
23363         * modules/version-etc (Description): Update.
23364
23365 2009-01-22  Bruno Haible  <bruno@clisp.org>
23366
23367         Cache the C locale object.
23368         * lib/c-strtod.c (c_locale_cache): New variable.
23369         (c_locale): New function.
23370         (C_STRTOD): Use it, and don't call freelocale.
23371         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
23372         Suggested by Paolo Bonzini.
23373
23374 2009-01-21  Bruno Haible  <bruno@clisp.org>
23375
23376         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
23377         conditions other than overflow.
23378
23379 2009-01-21  Bruno Haible  <bruno@clisp.org>
23380
23381         * lib/c-strtod.c: Include errno.h.
23382         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
23383         value from STRTOD_L and STRTOD.
23384
23385 2009-01-21  Bruno Haible  <bruno@clisp.org>
23386         and Jim Meyering  <meyering@redhat.com>
23387
23388         nanosleep: skip configure test (fail it) for apple universal builds
23389         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
23390         universal builds, assume that nanosleep does not work.
23391         * modules/nanosleep (Depends-on): Add multiarch.
23392
23393         mktime: skip configure test (fail it) for apple universal builds
23394         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
23395         universal builds, assume that mktime does not work.
23396         * modules/mktime (Depends-on): Add multiarch.
23397
23398 2009-01-21  Eric Blake  <ebb9@byu.net>
23399
23400         multiarch: avoid expand-before-require warning
23401         * modules/multiarch (configure.ac): Require, rather than expand,
23402         gl_MULTIARCH.
23403         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
23404         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
23405         enforce that all clients require it.  Partial reversion of
23406         2008-12-29 patch.
23407
23408         error: avoid expand-before-require warning
23409         * modules/errno (configure.ac): Require, rather than expand,
23410         gl_HEADER_ERRNO_H.
23411         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
23412         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
23413         enforce that all clients require it.
23414
23415         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
23416         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
23417         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
23418         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
23419
23420 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
23421
23422         Revert:
23423         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23424
23425         regex: do not depend on obsolete modules.
23426         * modules/regex: Remove memcmp and memmove.
23427
23428 2009-01-20  Bruno Haible  <bruno@clisp.org>
23429
23430         Make the 'link' module link on Windows NT 4.
23431         * lib/link.c (_WIN32_WINNT): Don't define.
23432         (CreateHardLinkFuncType): New type.
23433         (CreateHardLinkFunc, initialized): New variables.
23434         (initialize): New function.
23435         (link): Invoke CreateHardLink indirectly through the function pointer.
23436
23437 2009-01-20  Bruno Haible  <bruno@clisp.org>
23438
23439         Fix compilation failure on mingw.
23440         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
23441
23442 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
23443
23444         * doc/c-strtod.texi: Mention a couple of restrictions.
23445
23446 2009-01-20  Jim Meyering  <meyering@redhat.com>
23447
23448         gettimeofday: move more declarations out of functions
23449         * lib/gettimeofday.c: Move extern declarations of tzset and
23450         gmtime out of containing functions.  Prompted by Bruno Haible.
23451
23452 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23453
23454         regex: do not depend on obsolete modules.
23455         * modules/regex: Remove memcmp and memmove.
23456
23457 2009-01-19  Bruno Haible  <bruno@clisp.org>
23458
23459         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23460         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
23461         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23462         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
23463         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
23464
23465 2009-01-19  Bruno Haible  <bruno@clisp.org>
23466
23467         * tests/test-link.c: Include <errno.h>.
23468         (main): Exit with code 77 when a hard link cannot be created due to
23469         the file system.
23470         * tests/test-link.sh: Skip test when a hard link cannot be created due
23471         to the file system.
23472         Suggested by Eric Blake.
23473
23474 2009-01-19  Martin Lambers  <marlam@marlam.de>
23475
23476         * modules/link-tests: New file.
23477         * tests/test-link.sh: New file.
23478         * tests/test-link.c: New file.
23479
23480 2009-01-19  Eric Blake  <ebb9@byu.net>
23481
23482         doc: mention another function added in cygwin 1.7.0
23483         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
23484         Another new function in cygwin 1.7.
23485
23486 2009-01-19  Bruno Haible  <bruno@clisp.org>
23487
23488         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23489         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
23490         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
23491         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23492         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23493         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23494         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23495         * m4/md4.m4 (gl_MD4): Likewise.
23496         * m4/md5.m4 (gl_MD5): Likewise.
23497         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
23498         * m4/sha1.m4 (gl_SHA1): Likewise.
23499         * m4/sha256.m4 (gl_SHA256): Likewise.
23500         * m4/sha512.m4 (gl_SHA512): Likewise.
23501
23502 2009-01-19  Bruno Haible  <bruno@clisp.org>
23503
23504         * modules/uniname/uniname-tests (Depends-on): Add progname.
23505         * tests/uniname/test-uninames.c: Include progname.h.
23506         (main): Call set_program_name.
23507
23508         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
23509         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
23510         (main): Call set_program_name.
23511
23512         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
23513         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
23514         (main): Call set_program_name.
23515
23516         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
23517         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
23518         (main): Call set_program_name.
23519
23520         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
23521         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
23522         (main): Call set_program_name.
23523
23524         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
23525         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
23526         (main): Call set_program_name.
23527
23528         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
23529         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
23530         (main): Call set_program_name.
23531
23532         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
23533         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
23534         (main): Call set_program_name.
23535
23536         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
23537         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
23538         (main): Call set_program_name.
23539
23540 2009-01-19  Eric Blake  <ebb9@byu.net>
23541
23542         test-unistd: test previous patch
23543         * tests/test-unistd.c: Test *_FILENO macros.
23544
23545         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
23546         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23547         Guarantee a definition.
23548         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
23549         * modules/unistd-safer (Depends-on): Add dependency on unistd.
23550         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
23551         * lib/dup-safer.c (STDERR_FILENO): Likewise.
23552         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23553         Likewise.
23554         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
23555         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
23556         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23557         Likewise.
23558         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
23559         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
23560         (STDERR_FILENO): Likewise.
23561         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
23562         (STDERR_FILENO): Likewise.
23563         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
23564         (STDERR_FILENO): Likewise.
23565         Reported by Elbert Pol.
23566
23567 2009-01-19  Eric Blake  <ebb9@byu.net>
23568
23569         doc: mention more functions added in cygwin 1.7.0
23570         * doc/posix-functions/abort.texi (abort): Update wording related
23571         to cygwin.
23572         * doc/posix-functions/daylight.texi (daylight): Likewise.
23573         * doc/posix-functions/optarg.texi (optarg): Likewise.
23574         * doc/posix-functions/optarg.texi (opterr): Likewise.
23575         * doc/posix-functions/optarg.texi (optind): Likewise.
23576         * doc/posix-functions/optarg.texi (optopt): Likewise.
23577         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
23578         worked in 1.5.x, and was withdrawn in 1.7.
23579         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
23580         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
23581         cygwin versions.
23582         * doc/posix-functions/perror.texi (perror): Likewise.
23583         * doc/posix-functions/printf.texi (printf): Likewise.
23584         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
23585         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
23586         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
23587         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
23588         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23589         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
23590         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23591         Likewise.
23592         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23593         Likewise.
23594         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
23595         this function.
23596         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
23597         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
23598         Likewise.
23599         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
23600         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
23601         * doc/posix-functions/confstr.texi (confstr): Likewise.
23602         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
23603         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
23604         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
23605         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
23606         * doc/posix-functions/fputws.texi (fputws): Likewise.
23607         * doc/posix-functions/fwide.texi (fwide): Likewise.
23608         * doc/posix-functions/getwc.texi (getwc): Likewise.
23609         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
23610         * doc/posix-functions/putwc.texi (putwc): Likewise.
23611         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
23612         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
23613         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
23614         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
23615         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
23616         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
23617         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
23618         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
23619         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
23620         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
23621         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
23622
23623 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23624
23625         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
23626         * lib/ioctl.c: Include <sys/ioctl.h>.
23627
23628 2009-01-19  Simon Josefsson  <simon@josefsson.org>
23629
23630         * modules/getdate-tests (Depends-on): Add progname.
23631         * tests/test-getdate.c: Use progname module, to avoid link errors
23632         on non-glibc systems.
23633
23634 2009-01-18  Simon Josefsson  <simon@josefsson.org>
23635
23636         * modules/filenamecat-tests (Depends-on): Add progname.
23637         * modules/fstrcmp-tests (Depends-on): Likewise.
23638
23639         * tests/test-filenamecat.c: Use progname module, to avoid link
23640         errors on non-glibc systems.
23641         * tests/test-fstrcmp.c: Likewise.
23642
23643 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23644
23645         gettimeofday: avoid warning: nested extern declaration of 'localtime'
23646         * lib/gettimeofday.c: Move extern declaration out of function.
23647
23648 2009-01-18  Bruno Haible  <bruno@clisp.org>
23649
23650         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
23651         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
23652         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
23653
23654 2009-01-18  Bruno Haible  <bruno@clisp.org>
23655
23656         * lib/strftime.c (MEMPCPY): Remove unused macro.
23657         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
23658
23659 2009-01-18  Martin Lambers  <marlam@marlam.de>
23660
23661         New module 'link'.
23662         * lib/unistd.in.h (link): New declaration.
23663         * lib/link.c: New file.
23664         * m4/link.m4: New file.
23665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
23666         HAVE_LINK.
23667         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
23668         * modules/link: New file.
23669         * doc/posix-functions/link.texi: Mention the new module.
23670
23671 2009-01-18  Bruno Haible  <bruno@clisp.org>
23672
23673         * tests/test-avltree_list.c (main): Call set_program_name.
23674         * tests/test-avltree_oset.c (main): Likewise.
23675         * tests/test-obstack-printf.c: Include progname.h.
23676         (main): Call set_program_name.
23677         * tests/test-quotearg.c: Include progname.h.
23678         (main): Call set_program_name.
23679         * tests/test-xmemdup0.c: Include progname.h.
23680         (main): Call set_program_name.
23681
23682 2009-01-18  Bruno Haible  <bruno@clisp.org>
23683
23684         New module 'alphasort'.
23685         * lib/dirent.in.h (alphasort): New declaration.
23686         * lib/alphasort.c: New file, from glibc with modifications.
23687         * m4/alphasort.m4: New file.
23688         * modules/alphasort: New file.
23689         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
23690         HAVE_ALPHASORT.
23691         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
23692         HAVE_ALPHASORT.
23693         * doc/posix-functions/alphasort.texi: Mention the new module and the
23694         portability problems.
23695
23696 2009-01-18  Bruno Haible  <bruno@clisp.org>
23697
23698         New module 'scandir'.
23699         * lib/dirent.in.h (scandir): New declaration.
23700         * lib/scandir.c: New file, from glibc with modifications.
23701         * m4/scandir.m4: New file.
23702         * modules/scandir: New file.
23703         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
23704         HAVE_SCANDIR.
23705         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
23706         HAVE_SCANDIR.
23707         * doc/posix-functions/scandir.texi: Mention the new module and the
23708         portability problems.
23709
23710 2009-01-17  Bruno Haible  <bruno@clisp.org>
23711
23712         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
23713         Update documentation.
23714         (func_remove_suffix): Escape all dots in the suffix. Update
23715         documentation.
23716         (func_filter_filelist): Update documentation.
23717         Reported by Ralf Wildenhues.
23718
23719 2009-01-17  Bruno Haible  <bruno@clisp.org>
23720
23721         * modules/dprintf-posix-tests: New file.
23722         * tests/test-dprintf-posix.sh: New file.
23723         * tests/test-dprintf-posix.c: New file.
23724
23725         New modules 'dprintf', 'dprintf-posix'.
23726         * lib/stdio.in.h (dprintf): New declaration.
23727         * lib/dprintf.c: New file.
23728         * m4/dprintf.m4: New file.
23729         * m4/dprintf-posix.m4: New file.
23730         * modules/dprintf: New file.
23731         * modules/dprintf-posix: New file.
23732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
23733         HAVE_DPRINTF, REPLACE_DPRINTF.
23734         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
23735         HAVE_DPRINTF, REPLACE_DPRINTF.
23736         * doc/posix-functions/dprintf.texi: Mention the new modules.
23737
23738 2009-01-17  Bruno Haible  <bruno@clisp.org>
23739
23740         * modules/vdprintf-posix-tests: New file.
23741         * tests/test-vdprintf-posix.sh: New file.
23742         * tests/test-vdprintf-posix.c: New file.
23743
23744         New modules 'vdprintf', 'vdprintf-posix'.
23745         * lib/stdio.in.h (vdprintf): New declaration.
23746         * lib/vdprintf.c: New file.
23747         * m4/vdprintf.m4: New file.
23748         * m4/vdprintf-posix.m4: New file.
23749         * modules/vdprintf: New file.
23750         * modules/vdprintf-posix: New file.
23751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
23752         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23753         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
23754         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23755         * doc/posix-functions/vdprintf.texi: Mention the new modules.
23756
23757 2009-01-17  Bruno Haible  <bruno@clisp.org>
23758
23759         Fix replacement of fopen on mingw.
23760         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
23761         mingw.
23762
23763 2009-01-17  Bruno Haible  <bruno@clisp.org>
23764
23765         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
23766         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
23767
23768 2009-01-17  Bruno Haible  <bruno@clisp.org>
23769
23770         Avoid test-fflush2.sh failure on mingw.
23771         * tests/test-fflush2.c: Include binary-io.h.
23772         (main): Put standard input into binary mode.
23773         * modules/fflush-tests (Depends-on): Add binary-io.
23774
23775 2009-01-17  Bruno Haible  <bruno@clisp.org>
23776
23777         * lib/wchar.in.h: In another particular situation, include only the
23778         system's <wchar.h> file.
23779         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
23780         Reported by Albert Chin-A-Young <china@thewrittenword.com>
23781         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
23782
23783 2009-01-17  Bruno Haible  <bruno@clisp.org>
23784
23785         Support for stripping executables in --enable-relocatable.
23786         * build-aux/install-reloc: Expect one more argument, or an environment
23787         variable RELOC_STRIP_PROG. If set, strip the destination program and
23788         its wrapper.
23789         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
23790         RELOC_STRIP_PROG.
23791         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
23792         to set RELOCATABLE_STRIP.
23793         * NEWS: Mention the new Makefile requirement.
23794
23795 2009-01-17  Bruno Haible  <bruno@clisp.org>
23796
23797         * build-aux/install-reloc: Remove debugging information left over by
23798         C compiler on MacOS X.
23799
23800 2009-01-17  Bruno Haible  <bruno@clisp.org>
23801
23802         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
23803         * lib/progreloc.c (find_executable): Fix type of pointer passed to
23804         _NSGetExecutablePath.
23805
23806 2009-01-16  Jim Meyering  <meyering@redhat.com>
23807
23808         strerror: avoid warnings about discarding "const"
23809         * lib/strerror.c (rpl_strerror): Instead of returning a const
23810         string from each and every "case", use a variable, and add a single
23811         cast after the switch.
23812
23813 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
23814
23815         * lib/arpa_inet.in.h: Add extern "C" block for C++.
23816
23817 2009-01-16  Bruno Haible  <bruno@clisp.org>
23818
23819         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
23820         array initializer syntax that also works in C++ mode.
23821         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23822
23823 2009-01-16  Jim Meyering  <meyering@redhat.com>
23824
23825         poll: suppress a warning
23826         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
23827         to ignore "...unsigned expression < 0 is always false" warnings.
23828
23829 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
23830
23831         poll: remove declarations of unused variables
23832         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
23833         sockbuf and optlen.
23834
23835 2009-01-15  Bruno Haible  <bruno@clisp.org>
23836
23837         Make fflush-after-ungetc POSIX compliant on BSD systems.
23838         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
23839         (clear_ungetc_buffer): Implement also for other systems.
23840         (rpl_fflush): On glibc systems, invoke
23841         clear_ungetc_buffer_preserving_position. Otherwise, invoke
23842         clear_ungetc_buffer after fetching the stream's position, not before.
23843
23844 2009-01-15  Bruno Haible  <bruno@clisp.org>
23845
23846         Make fflush-after-ungetc POSIX compliant on glibc systems.
23847         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
23848         after ungetc.
23849         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
23850         (rpl_fflush): On glibc systems, simply call the system's fflush
23851         function after clearing the ungetc buffer.
23852         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
23853         Instead, lseek only to the end of file, then use the system's fseeko
23854         for the rest. On glibc systems, reset the EOF indicator bit.
23855
23856 2009-01-15  Jim Meyering  <meyering@redhat.com>
23857
23858         openmp.m4: revert quote-adding change, for portability to older autoconf
23859         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
23860         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
23861         Simon Josefsson noticed the problem when using autoconf-2.61.
23862
23863 2009-01-15  Bruno Haible  <bruno@clisp.org>
23864
23865         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
23866         * tests/test-fflush2.c (ASSERT): Always fail.
23867         (main): Add two tests for fflush() after ungetc(), taking into account
23868         the Austin Group's clarification.
23869         Suggested by Eric Blake.
23870
23871 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
23872
23873         mktime.m4: remove K&R-style function prototypes
23874         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
23875         for the Sun C++ compiler.
23876
23877 2009-01-14  Bruno Haible  <bruno@clisp.org>
23878
23879         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
23880         while including <wchar.h>.
23881         * lib/wchar.in.h: In two particular situations on HP-UX, include only
23882         the system's <wchar.h> file.
23883         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23884
23885 2009-01-14  Bruno Haible  <bruno@clisp.org>
23886
23887         * m4/csharp.m4: Don't mention gettext on the serial number line.
23888         * m4/csharpexec.m4: Likewise.
23889         * m4/eaccess.m4: Likewise.
23890         * m4/javaexec.m4: Likewise.
23891         * m4/sig_atomic_t.m4: Likewise.
23892         * m4/tmpdir.m4: Likewise.
23893         * m4/intldir.m4: Bump gettext version.
23894         * m4/lib-ld.m4: Likewise.
23895
23896 2009-01-14  Bruno Haible  <bruno@clisp.org>
23897
23898         * lib/progname.c (set_program_name): Add more comments.
23899         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23900
23901 2009-01-14  Simon Josefsson  <simon@josefsson.org>
23902
23903         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
23904         were sys/stat.h does not define it.
23905
23906 2009-01-14  Jim Meyering  <meyering@redhat.com>
23907
23908         many *.m4 files: improve m4 quoting
23909         99% of this change was performed by running the following commands:
23910         git ls-files | grep '\.m4$' | xargs perl -pi \
23911           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
23912           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
23913           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
23914           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
23915         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
23916         The remainder were to add Copyright dates, increment serial numbers,
23917         undo some changes in comments, exclude m4/intl.m4, and add quotes
23918         around the "1" in ",1" where the unusual spacing prohibited the
23919         above regexps from doing the job.  For more details, see
23920         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
23921         * m4/acl.m4: Modified.
23922         * m4/afs.m4: Likewise.
23923         * m4/alloca.m4: Likewise.
23924         * m4/argp.m4: Likewise.
23925         * m4/argz.m4: Likewise.
23926         * m4/atexit.m4: Likewise.
23927         * m4/bison-i18n.m4: Likewise.
23928         * m4/bison.m4: Likewise.
23929         * m4/byteswap.m4: Likewise.
23930         * m4/c-stack.m4: Likewise.
23931         * m4/c-strtod.m4: Likewise.
23932         * m4/calloc.m4: Likewise.
23933         * m4/canonicalize-lgpl.m4: Likewise.
23934         * m4/chown.m4: Likewise.
23935         * m4/clock_time.m4: Likewise.
23936         * m4/codeset.m4: Likewise.
23937         * m4/copy-file.m4: Likewise.
23938         * m4/csharp.m4: Likewise.
23939         * m4/csharpcomp.m4: Likewise.
23940         * m4/csharpexec.m4: Likewise.
23941         * m4/d-ino.m4: Likewise.
23942         * m4/d-type.m4: Likewise.
23943         * m4/dirfd.m4: Likewise.
23944         * m4/double-slash-root.m4: Likewise.
23945         * m4/eaccess.m4: Likewise.
23946         * m4/eealloc.m4: Likewise.
23947         * m4/environ.m4: Likewise.
23948         * m4/errno_h.m4: Likewise.
23949         * m4/euidaccess.m4: Likewise.
23950         * m4/execute.m4: Likewise.
23951         * m4/fatal-signal.m4: Likewise.
23952         * m4/fchdir.m4: Likewise.
23953         * m4/fcntl_h.m4: Likewise.
23954         * m4/fileblocks.m4: Likewise.
23955         * m4/filenamecat.m4: Likewise.
23956         * m4/findprog.m4: Likewise.
23957         * m4/flexmember.m4: Likewise.
23958         * m4/fnmatch.m4: Likewise.
23959         * m4/fopen.m4: Likewise.
23960         * m4/fpending.m4: Likewise.
23961         * m4/fprintf-posix.m4: Likewise.
23962         * m4/free.m4: Likewise.
23963         * m4/frexp.m4: Likewise.
23964         * m4/frexpl.m4: Likewise.
23965         * m4/fsusage.m4: Likewise.
23966         * m4/ftruncate.m4: Likewise.
23967         * m4/gc-camellia.m4: Likewise.
23968         * m4/gc-random.m4: Likewise.
23969         * m4/gc.m4: Likewise.
23970         * m4/getaddrinfo.m4: Likewise.
23971         * m4/getcwd-abort-bug.m4: Likewise.
23972         * m4/getcwd-path-max.m4: Likewise.
23973         * m4/getdate.m4: Likewise.
23974         * m4/getdomainname.m4: Likewise.
23975         * m4/getgroups.m4: Likewise.
23976         * m4/gethostname.m4: Likewise.
23977         * m4/gethrxtime.m4: Likewise.
23978         * m4/getline.m4: Likewise.
23979         * m4/getloadavg.m4: Likewise.
23980         * m4/getndelim2.m4: Likewise.
23981         * m4/getpass.m4: Likewise.
23982         * m4/gettext.m4: Likewise.
23983         * m4/gettime.m4: Likewise.
23984         * m4/gettimeofday.m4: Likewise.
23985         * m4/gnulib-common.m4: Likewise.
23986         * m4/group-member.m4: Likewise.
23987         * m4/host-os.m4: Likewise.
23988         * m4/iconv.m4: Likewise.
23989         * m4/iconv_open.m4: Likewise.
23990         * m4/inet_ntop.m4: Likewise.
23991         * m4/inet_pton.m4: Likewise.
23992         * m4/inline.m4: Likewise.
23993         * m4/intldir.m4: Likewise.
23994         * m4/intlmacosx.m4: Likewise.
23995         * m4/intmax.m4: Likewise.
23996         * m4/intmax_t.m4: Likewise.
23997         * m4/inttypes.m4: Likewise.
23998         * m4/inttypes_h.m4: Likewise.
23999         * m4/inttypes-pri.m4: Likewise.
24000         * m4/isapipe.m4: Likewise.
24001         * m4/isnand.m4: Likewise.
24002         * m4/isnanf.m4: Likewise.
24003         * m4/isnanl.m4: Likewise.
24004         * m4/javacomp.m4: Likewise.
24005         * m4/javaexec.m4: Likewise.
24006         * m4/jm-winsz1.m4: Likewise.
24007         * m4/jm-winsz2.m4: Likewise.
24008         * m4/lchown.m4: Likewise.
24009         * m4/lcmessage.m4: Likewise.
24010         * m4/ldexpl.m4: Likewise.
24011         * m4/lib-ld.m4: Likewise.
24012         * m4/lib-link.m4: Likewise.
24013         * m4/libsigsegv.m4: Likewise.
24014         * m4/link-follow.m4: Likewise.
24015         * m4/localcharset.m4: Likewise.
24016         * m4/locale-fr.m4: Likewise.
24017         * m4/locale-ja.m4: Likewise.
24018         * m4/locale-tr.m4: Likewise.
24019         * m4/locale-zh.m4: Likewise.
24020         * m4/lock.m4: Likewise.
24021         * m4/longlong.m4: Likewise.
24022         * m4/ls-mntd-fs.m4: Likewise.
24023         * m4/lstat.m4: Likewise.
24024         * m4/malloc.m4: Likewise.
24025         * m4/mathl.m4: Likewise.
24026         * m4/mbrtowc.m4: Likewise.
24027         * m4/mbstate_t.m4: Likewise.
24028         * m4/mbswidth.m4: Likewise.
24029         * m4/memchr.m4: Likewise.
24030         * m4/memcmp.m4: Likewise.
24031         * m4/memcpy.m4: Likewise.
24032         * m4/memmem.m4: Likewise.
24033         * m4/memmove.m4: Likewise.
24034         * m4/mempcpy.m4: Likewise.
24035         * m4/memrchr.m4: Likewise.
24036         * m4/memset.m4: Likewise.
24037         * m4/minmax.m4: Likewise.
24038         * m4/mkdir-slash.m4: Likewise.
24039         * m4/mkdtemp.m4: Likewise.
24040         * m4/mktime.m4: Likewise.
24041         * m4/mmap-anon.m4: Likewise.
24042         * m4/mountlist.m4: Likewise.
24043         * m4/nanosleep.m4: Likewise.
24044         * m4/nls.m4: Likewise.
24045         * m4/nocrash.m4: Likewise.
24046         * m4/open.m4: Likewise.
24047         * m4/openat.m4: Likewise.
24048         * m4/openmp.m4: Likewise.
24049         * m4/pathmax.m4: Likewise.
24050         * m4/perl.m4: Likewise.
24051         * m4/physmem.m4: Likewise.
24052         * m4/pipe.m4: Likewise.
24053         * m4/po.m4: Likewise.
24054         * m4/poll.m4: Likewise.
24055         * m4/posixtm.m4: Likewise.
24056         * m4/posixver.m4: Likewise.
24057         * m4/printf-frexp.m4: Likewise.
24058         * m4/printf-frexpl.m4: Likewise.
24059         * m4/printf-posix.m4: Likewise.
24060         * m4/printf-posix-rpl.m4: Likewise.
24061         * m4/printf.m4: Likewise.
24062         * m4/progtest.m4: Likewise.
24063         * m4/putenv.m4: Likewise.
24064         * m4/readline.m4: Likewise.
24065         * m4/readlink.m4: Likewise.
24066         * m4/readutmp.m4: Likewise.
24067         * m4/realloc.m4: Likewise.
24068         * m4/regex.m4: Likewise.
24069         * m4/relocatable.m4: Likewise.
24070         * m4/relocatable-lib.m4: Likewise.
24071         * m4/rename-dest-slash.m4: Likewise.
24072         * m4/rename.m4: Likewise.
24073         * m4/rmdir-errno.m4: Likewise.
24074         * m4/rmdir.m4: Likewise.
24075         * m4/roundf.m4: Likewise.
24076         * m4/roundl.m4: Likewise.
24077         * m4/rpmatch.m4: Likewise.
24078         * m4/save-cwd.m4: Likewise.
24079         * m4/selinux-selinux-h.m4: Likewise.
24080         * m4/setenv.m4: Likewise.
24081         * m4/settime.m4: Likewise.
24082         * m4/sig2str.m4: Likewise.
24083         * m4/sig_atomic_t.m4: Likewise.
24084         * m4/signalblocking.m4: Likewise.
24085         * m4/signbit.m4: Likewise.
24086         * m4/sigpipe.m4: Likewise.
24087         * m4/sockets.m4: Likewise.
24088         * m4/sockpfaf.m4: Likewise.
24089         * m4/st_dm_mode.m4: Likewise.
24090         * m4/stat-time.m4: Likewise.
24091         * m4/stdbool.m4: Likewise.
24092         * m4/stdint.m4: Likewise.
24093         * m4/stdint_h.m4: Likewise.
24094         * m4/stpcpy.m4: Likewise.
24095         * m4/stpncpy.m4: Likewise.
24096         * m4/strcase.m4: Likewise.
24097         * m4/strchrnul.m4: Likewise.
24098         * m4/strcspn.m4: Likewise.
24099         * m4/strdup.m4: Likewise.
24100         * m4/strftime.m4: Likewise.
24101         * m4/strndup.m4: Likewise.
24102         * m4/strnlen.m4: Likewise.
24103         * m4/strpbrk.m4: Likewise.
24104         * m4/strptime.m4: Likewise.
24105         * m4/strsep.m4: Likewise.
24106         * m4/strtod.m4: Likewise.
24107         * m4/strtoimax.m4: Likewise.
24108         * m4/strtok_r.m4: Likewise.
24109         * m4/strtol.m4: Likewise.
24110         * m4/strtoll.m4: Likewise.
24111         * m4/strtoul.m4: Likewise.
24112         * m4/strtoull.m4: Likewise.
24113         * m4/strtoumax.m4: Likewise.
24114         * m4/strverscmp.m4: Likewise.
24115         * m4/threadlib.m4: Likewise.
24116         * m4/timegm.m4: Likewise.
24117         * m4/tm_gmtoff.m4: Likewise.
24118         * m4/tmpdir.m4: Likewise.
24119         * m4/tmpfile.m4: Likewise.
24120         * m4/tzset.m4: Likewise.
24121         * m4/uintmax_t.m4: Likewise.
24122         * m4/unlinkdir.m4: Likewise.
24123         * m4/unlocked-io.m4: Likewise.
24124         * m4/uptime.m4: Likewise.
24125         * m4/userspec.m4: Likewise.
24126         * m4/utimbuf.m4: Likewise.
24127         * m4/utime.m4: Likewise.
24128         * m4/utimes-null.m4: Likewise.
24129         * m4/utimes.m4: Likewise.
24130         * m4/vararrays.m4: Likewise.
24131         * m4/vasnprintf.m4: Likewise.
24132         * m4/vfprintf-posix.m4: Likewise.
24133         * m4/vprintf-posix.m4: Likewise.
24134         * m4/wait-process.m4: Likewise.
24135         * m4/wchar_t.m4: Likewise.
24136         * m4/wint_t.m4: Likewise.
24137         * m4/write-any-file.m4: Likewise.
24138         * m4/yield.m4: Likewise.
24139
24140 2009-01-13  Bruno Haible  <bruno@clisp.org>
24141
24142         Avoid test-copy-file.sh failures when ACL support insufficient.
24143         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
24144         TESTS_ENVIRONMENT.
24145         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
24146         Reported by Jim Meyering.
24147
24148 2009-01-13  Bruno Haible  <bruno@clisp.org>
24149
24150         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
24151         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
24152         * modules/unistdio/u8-printf-parse (Files): Likewise.
24153         * modules/unistdio/u32-printf-parse (Files): Likewise.
24154         * modules/unistdio/ulc-printf-parse (Files): Likewise.
24155
24156 2009-01-13  Simon Josefsson  <simon@josefsson.org>
24157
24158         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
24159         and m4/inttypes_h.m4 too.
24160
24161 2009-01-12  Eric Blake  <ebb9@byu.net>
24162
24163         tests: IRIX 6.2 cc can't compile -0.0 into .data
24164         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
24165         rather than at compile-time.
24166         * tests/test-floorl.c (minus_zero): Likewise.
24167         * tests/test-frexpl.c (minus_zero): Likewise.
24168         * tests/test-isnan.c (minus_zerol): Likewise.
24169         * tests/test-isnanl.h (minus_zero): Likewise.
24170         * tests/test-ldexpl.c (minus_zero): Likewise.
24171         * tests/test-roundl.c (minus_zero): Likewise.
24172         * tests/test-signbit.c (minus_zerol): Likewise.
24173         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24174         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24175         * tests/test-truncl.c (minus_zero): Likewise.
24176         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24177         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24178         Reported by Tom G. Christensen and Nelson H. F. Beebe.
24179
24180 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24181
24182         regex: fix glibc bug 9697
24183         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
24184         handling.
24185
24186 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24187
24188         regex: fix glibc bug 697
24189         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
24190         being NULL also if there are no backreferences.
24191
24192 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24193
24194         regex: merge glibc changes
24195         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
24196         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
24197         re_string_skip_chars, re_string_reconstruct): Likewise.
24198         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
24199
24200 2009-01-07  Jim Meyering  <meyering@redhat.com>
24201
24202         poll: filter through cppi
24203         * lib/poll.c: Indent cpp directives to reflect nesting.
24204
24205 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
24206
24207         poll: don't return uninitialized
24208         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
24209
24210 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
24211
24212         avoid compile failure on AIX 6.1
24213         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
24214         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
24215
24216 2009-01-04  Jim Meyering  <meyering@redhat.com>
24217
24218         remove duplicate inclusion of <stdio.h>
24219         * tests/test-fprintf-posix.c: Likewise.
24220         * tests/test-printf-posix.c: Likewise.
24221         * tests/test-snprintf-posix.c: Likewise.
24222         * tests/test-sprintf-posix.c: Likewise.
24223         * tests/test-vasprintf-posix.c: Likewise.
24224         * tests/test-vfprintf-posix.c: Likewise.
24225         * tests/test-vprintf-posix.c: Likewise.
24226         * tests/test-vsnprintf-posix.c: Likewise.
24227         * tests/test-vsprintf-posix.c: Likewise.
24228
24229 2009-01-03  Jim Meyering  <meyering@redhat.com>
24230
24231         gnulib-tool: fix sed-based filtering
24232         * gnulib-tool (func_filter_filelist): Remove extra backslash
24233         in sed_fff_filter definition.
24234
24235 2009-01-02  Jim Meyering  <meyering@redhat.com>
24236
24237         strftime: avoid compilation failure on Solaris 2.6
24238         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
24239         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
24240         Don't #define mbrlen or mbsinit, since now they're guaranteed to
24241         be available.  Reported by Tom G. Christensen.  Details in
24242         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
24243
24244 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24245             Bruno Haible  <bruno@clisp.org>
24246
24247         Speed up gnulib-tool by doing more string processing through shell
24248         built-ins.
24249         * gnulib-tool (fast_func_append): New variable.
24250         (func_remove_prefix, func_remove_suffix): New functions.
24251         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
24252         (func_filter_filelist): New function.
24253         (func_get_dependencies): Use func_remove_suffix instead of sed.
24254         (func_get_automake_snippet): Use func_filter_filelist instead of a
24255         subshell and sed invocation.
24256
24257 2009-01-01  Bruno Haible  <bruno@clisp.org>
24258
24259         Fix a security bug.
24260         * gnulib-tool (func_import, import, update): Don't allow the characters
24261         '"', '$', '`', '\' in macro arguments that become part of commands that
24262         are evaluated.
24263
24264 2009-01-01  Bruno Haible  <bruno@clisp.org>
24265
24266         * gnulib-tool (func_reset_sigpipe): Add more comments.
24267
24268 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24269
24270         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
24271         func_emit_tests_Makefile_am, func_import): Abort loops early if we
24272         already know the answer.
24273
24274 2009-01-01  Jim Meyering  <meyering@redhat.com>
24275
24276         * lib/version-etc.c (version_etc_va): Update copyright year.
24277
24278 2008-12-30  Bruno Haible  <bruno@clisp.org>
24279
24280         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
24281         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
24282         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
24283
24284 2008-12-29  Eric Blake  <ebb9@byu.net>
24285
24286         multiarch: avoid autoconf AC_REQUIRE bug
24287         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
24288         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
24289         2.63 and older.
24290         Reported by Bruno Haible, and analyzed in
24291         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
24292
24293 2008-12-29  Bruno Haible  <bruno@clisp.org>
24294
24295         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
24296         files in subdirectories correctly.
24297         Reported by Ralf Wildenhues.
24298
24299 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24300
24301         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
24302         rather than 'join FILE -', for Solaris join.
24303
24304 2008-12-29  Bruno Haible  <bruno@clisp.org>
24305
24306         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
24307         quoting.
24308         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24309         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24310         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24311         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
24312         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24313         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
24314         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
24315         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
24316         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24317         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
24318         * m4/nls.m4 (AM_NLS): Likewise.
24319         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
24320         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
24321         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24322         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
24323         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
24324         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24325         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
24326         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
24327         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
24328         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
24329         * m4/xsize.m4 (gl_XSIZE): Likewise.
24330         Suggested by Jim Meyering.
24331
24332 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24333
24334         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
24335         * lib/parse-duration.c: use a switch instead of cascading if's.
24336
24337 2008-12-29  Eric Blake  <ebb9@byu.net>
24338
24339         wchar.h: supply WEOF on Irix 5.3
24340         * lib/wchar.in.h (wint_t): Also supply WEOF.
24341         * lib/wctype.in.h (wint_t): Likewise.
24342         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
24343         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
24344         Reported by Tom G. Christensen.
24345
24346 2008-12-26  Bruno Haible  <bruno@clisp.org>
24347
24348         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
24349         i486, i586, i686.
24350
24351 2008-12-26  Bruno Haible  <bruno@clisp.org>
24352
24353         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
24354
24355 2008-12-26  Bruno Haible  <bruno@clisp.org>
24356
24357         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
24358         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
24359         not __STDC_CONSTANT_MACROS.
24360         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24361
24362 2008-12-25  Bruno Haible  <bruno@clisp.org>
24363
24364         Add support for universal builds to vasnprintf.
24365         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
24366         universal builds, guess no.
24367         * modules/vasnprintf-posix (Depends-on): Add multiarch.
24368         * modules/vasprintf-posix (Depends-on): Likewise.
24369         * modules/fprintf-posix (Depends-on): Likewise.
24370         * modules/vfprintf-posix (Depends-on): Likewise.
24371         * modules/snprintf-posix (Depends-on): Likewise.
24372         * modules/vsnprintf-posix (Depends-on): Likewise.
24373         * modules/sprintf-posix (Depends-on): Likewise.
24374         * modules/vsprintf-posix (Depends-on): Likewise.
24375         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24376         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24377         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24378         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24379         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24380         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24381         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24382
24383         Add support for universal builds to <inttypes.h>.
24384         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
24385         _SCNu64_PREFIX): In Apple
24386         universal builds, define directly, using _LP64.
24387         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
24388         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
24389         * modules/inttypes (Depends-on): Add multiarch.
24390         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24391
24392         Add support for universal builds to <stdint.h>.
24393         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
24394         universal builds, define directly, using _LP64.
24395         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
24396         Apple universal builds, don't test for the size and suffix of ptrdiff_t
24397         and size_t.
24398         * modules/stdint (Depends-on): Add multiarch.
24399         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24400
24401         New module 'multiarch'.
24402         * modules/multiarch: New file.
24403         * m4/multiarch.m4: New file.
24404
24405 2008-12-25  Bruno Haible  <bruno@clisp.org>
24406
24407         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
24408
24409 2008-12-25  Bruno Haible  <bruno@clisp.org>
24410
24411         * modules/btowc (License): Relicense under LGPLv2+.
24412         * modules/mbsinit (License): Likewise.
24413         * modules/mbrtowc (License): Likewise.
24414         * modules/wcrtomb (License): Likewise.
24415         * modules/streq (License): Likewise.
24416         Reported by David Lutterkort <lutter@redhat.com>.
24417
24418 2008-12-23  Bruno Haible  <bruno@clisp.org>
24419
24420         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
24421
24422 2008-12-23  Bruno Haible  <bruno@clisp.org>
24423
24424         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
24425         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
24426         GETADDRINFO_LIB, not in LIBS.
24427         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
24428         * modules/canon-host (Link): Likewise.
24429         * NEWS: Mention the change.
24430         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
24431         GETADDRINFO_LIB.
24432
24433 2008-12-22  Bruno Haible  <bruno@clisp.org>
24434
24435         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
24436         * doc/posix-functions/iswalpha_l.texi: Likewise.
24437         * doc/posix-functions/iswblank_l.texi: Likewise.
24438         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24439         * doc/posix-functions/iswctype_l.texi: Likewise.
24440         * doc/posix-functions/iswdigit_l.texi: Likewise.
24441         * doc/posix-functions/iswgraph_l.texi: Likewise.
24442         * doc/posix-functions/iswlower_l.texi: Likewise.
24443         * doc/posix-functions/iswprint_l.texi: Likewise.
24444         * doc/posix-functions/iswpunct_l.texi: Likewise.
24445         * doc/posix-functions/iswspace_l.texi: Likewise.
24446         * doc/posix-functions/iswupper_l.texi: Likewise.
24447         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24448         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
24449         * doc/posix-functions/open_wmemstream.texi: Likewise.
24450         * doc/posix-functions/swscanf.texi: Likewise.
24451         * doc/posix-functions/towctrans_l.texi: Likewise.
24452         * doc/posix-functions/towlower.texi: Likewise.
24453         * doc/posix-functions/towlower_l.texi: Likewise.
24454         * doc/posix-functions/towupper.texi: Likewise.
24455         * doc/posix-functions/towupper_l.texi: Likewise.
24456         * doc/posix-functions/vfwprintf.texi: Likewise.
24457         * doc/posix-functions/vfwscanf.texi: Likewise.
24458         * doc/posix-functions/vswscanf.texi: Likewise.
24459         * doc/posix-functions/vwprintf.texi: Likewise.
24460         * doc/posix-functions/vwscanf.texi: Likewise.
24461         * doc/posix-functions/wcpcpy.texi: Likewise.
24462         * doc/posix-functions/wcpncpy.texi: Likewise.
24463         * doc/posix-functions/wcscasecmp.texi: Likewise.
24464         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
24465         * doc/posix-functions/wcscoll_l.texi: Likewise.
24466         * doc/posix-functions/wcsdup.texi: Likewise.
24467         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24468         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
24469         * doc/posix-functions/wcsnlen.texi: Likewise.
24470         * doc/posix-functions/wcsnrtombs.texi: Likewise.
24471         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24472         * doc/posix-functions/wctrans_l.texi: Likewise.
24473         * doc/posix-functions/wctype_l.texi: Likewise.
24474         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
24475         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
24476         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
24477         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
24478         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
24479         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
24480         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
24481         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
24482         * doc/glibc-functions/wcschrnul.texi: Likewise.
24483         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24484         * doc/glibc-functions/wcstod_l.texi: Likewise.
24485         * doc/glibc-functions/wcstof_l.texi: Likewise.
24486         * doc/glibc-functions/wcstol_l.texi: Likewise.
24487         * doc/glibc-functions/wcstold_l.texi: Likewise.
24488         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24489         * doc/glibc-functions/wcstoq.texi: Likewise.
24490         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24491         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24492         * doc/glibc-functions/wcstouq.texi: Likewise.
24493         * doc/glibc-functions/wmempcpy.texi: Likewise.
24494
24495 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
24496             Eric Blake  <ebb9@byu.net>
24497             Paolo Bonzini  <bonzini@gnu.org>
24498             Bruno Haible  <bruno@clisp.org>
24499
24500         Make c-stack work on Haiku.
24501         * lib/c-stack.c (SA_ONSTACK): Define fallback.
24502         (c_stack_action): Use SA_ONSTACK flag.
24503
24504 2008-12-22  Bruno Haible  <bruno@clisp.org>
24505
24506         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
24507
24508 2008-12-22  Bruno Haible  <bruno@clisp.org>
24509
24510         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
24511         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
24512         being overridden.
24513         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
24514         New macros.
24515         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
24516         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
24517         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
24518         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
24519
24520 2008-12-22  Bruno Haible  <bruno@clisp.org>
24521
24522         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
24523         from test code.
24524
24525 2008-12-22  Eric Blake  <ebb9@byu.net>
24526
24527         Avoid gcc warnings on cygwin.
24528         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
24529         Avoid unused variable.
24530         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
24531         Likewise.
24532
24533 2008-12-22  Bruno Haible  <bruno@clisp.org>
24534
24535         Remove HAVE_MBRTOWC conditionals.
24536         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
24537         (mbscasecmp): Assume mbrtowc function.
24538         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
24539         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
24540         * lib/mbschr.c: Include mbuiter.h unconditionally.
24541         (mbschr): Assume mbrtowc function.
24542         * lib/mbscspn.c: Include mbuiter.h unconditionally.
24543         (mbscspn): Assume mbrtowc function.
24544         * lib/mbslen.c: Include mbuiter.h unconditionally.
24545         (mbslen): Assume mbrtowc function.
24546         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
24547         (mbsncasecmp): Assume mbrtowc function.
24548         * lib/mbsnlen.c: Include mbiter.h unconditionally.
24549         (mbsnlen): Assume mbrtowc function.
24550         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
24551         (mbspbrk): Assume mbrtowc function.
24552         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
24553         (mbspcasecmp): Assume mbrtowc function.
24554         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
24555         (mbsrchr): Assume mbrtowc function.
24556         * lib/mbssep.c: Include mbuiter.h unconditionally.
24557         (mbssep): Assume mbrtowc function.
24558         * lib/mbsspn.c: Include mbuiter.h unconditionally.
24559         (mbsspn): Assume mbrtowc function.
24560         * lib/mbsstr.c: Include mbuiter.h unconditionally.
24561         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
24562         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
24563         (mbstok_r): Assume mbrtowc function.
24564         * lib/propername.c: Include mbuiter.h unconditionally.
24565         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
24566         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
24567         (trim2): Assume mbrtowc function.
24568         * lib/mbswidth.c (mbsinit): Remove fallback definition.
24569         (mbsnwidth): Assume mbrtowc function.
24570         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
24571         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
24572         fallback definitions.
24573         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
24574
24575 2008-12-22  Bruno Haible  <bruno@clisp.org>
24576
24577         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
24578
24579 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
24580
24581         * modules/regex: Request emulations for the mb*/wc* functions we need.
24582         * m4/regex.m4: Don't look for those functions here.
24583         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
24584
24585 2008-12-22  Bruno Haible  <bruno@clisp.org>
24586
24587         * modules/fnmatch (Depends-on): Remove duplicated dependency.
24588
24589 2008-12-21  Bruno Haible  <bruno@clisp.org>
24590
24591         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
24592         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
24593         (Include): Remove conditionalization.
24594         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
24595         (Include): Remove conditionalization.
24596         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
24597         (Include): Remove conditionalization.
24598         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
24599         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24600         * NEWS: Mention the change.
24601         Reported by Alan Hourihane <alanh@fairlite.co.uk>
24602         via Sergey Poznyakoff <gray@gnu.org.ua>.
24603
24604 2008-12-21  Bruno Haible  <bruno@clisp.org>
24605
24606         * MODULES.html.sh (Extended multibyte and wide character utilities
24607         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
24608         wcrtomb, wcsrtombs.
24609         (Support for systems lacking POSIX:2008): Add accept, bind, close,
24610         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
24611         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
24612         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
24613
24614 2008-12-21  Bruno Haible  <bruno@clisp.org>
24615
24616         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
24617
24618 2008-12-21  Bruno Haible  <bruno@clisp.org>
24619
24620         * modules/wcsnrtombs-tests: New file.
24621         * tests/test-wcsnrtombs1.sh: New file.
24622         * tests/test-wcsnrtombs2.sh: New file.
24623         * tests/test-wcsnrtombs3.sh: New file.
24624         * tests/test-wcsnrtombs4.sh: New file.
24625         * tests/test-wcsnrtombs.c: New file.
24626
24627         New module 'wcsnrtombs'.
24628         * lib/wchar.in.h (wcsnrtombs): New declaration.
24629         * lib/wcsnrtombs.c: New file.
24630         * lib/wcsrtombs-state.c: New file.
24631         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
24632         (internal_state): Remove variable.
24633         * m4/wcsnrtombs.m4: New file.
24634         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
24635         compilation units.
24636         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
24637         HAVE_WCSNRTOMBS.
24638         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
24639         HAVE_WCSNRTOMBS.
24640         * modules/wcsnrtombs: New file.
24641         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
24642         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
24643
24644 2008-12-21  Bruno Haible  <bruno@clisp.org>
24645
24646         * modules/wcsrtombs-tests: New file.
24647         * tests/test-wcsrtombs1.sh: New file.
24648         * tests/test-wcsrtombs2.sh: New file.
24649         * tests/test-wcsrtombs3.sh: New file.
24650         * tests/test-wcsrtombs4.sh: New file.
24651         * tests/test-wcsrtombs.c: New file.
24652
24653         New module 'wcsrtombs'.
24654         * lib/wchar.in.h (wcsrtombs): New declaration.
24655         * lib/wcsrtombs.c: New file.
24656         * m4/wcsrtombs.m4: New file.
24657         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
24658         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24659         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
24660         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24661         * modules/wcsrtombs: New file.
24662         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
24663         bugs.
24664
24665 2008-12-21  Bruno Haible  <bruno@clisp.org>
24666
24667         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
24668         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
24669         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
24670         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
24671         if not correct.
24672         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
24673         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
24674         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24675         m4/locale-zh.m4, m4/codeset.m4.
24676         * doc/posix-functions/wcrtomb.texi: Document the bug.
24677
24678 2008-12-21  Bruno Haible  <bruno@clisp.org>
24679
24680         Work around a btowc() bug on IRIX 6.5.
24681         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
24682         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
24683         REPLACE_WTOBC if not.
24684         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
24685         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
24686         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
24687
24688 2008-12-21  Bruno Haible  <bruno@clisp.org>
24689
24690         * modules/wcrtomb-tests: New file.
24691         * tests/test-wcrtomb.sh: New file.
24692         * tests/test-wcrtomb.c: New file.
24693
24694         New module 'wcrtomb'.
24695         * lib/wchar.in.h (wcrtomb): New declaration.
24696         * lib/wcrtomb.c: New file.
24697         * m4/wcrtomb.m4: New file.
24698         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
24699         HAVE_WCRTOMB.
24700         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
24701         HAVE_WCRTOMB.
24702         * modules/wcrtomb: New file.
24703         * doc/posix-functions/wcrtomb.texi: Mention the new module.
24704
24705 2008-12-21  Bruno Haible  <bruno@clisp.org>
24706
24707         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
24708         * modules/mbsrtowcs (Files): Likewise.
24709         * modules/wctob (Files): Likewise.
24710         * modules/c-strcase-tests (Files): Likewise.
24711         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24712         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24713         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24714         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24715         * modules/vasnprintf-posix-tests (Files): Likewise.
24716
24717 2008-12-21  William Pursell  <bill.pursell@gmail.com>
24718
24719         gitlog-to-changelog: pass all command-line arguments to git-log
24720         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
24721         it is sometimes convenient to filter the commits in various ways.
24722         gitlog-to-changelog only allows --since to specify a start date,
24723         but git-log itself supports many other filtering mechanisms.
24724         At the moment, I want to filter by branch name.  Rather than
24725         adding a --branch option to gitlog-to-changelog, it seems more
24726         flexible to simply pass all options directly to git-log and let
24727         git do the work.  Notice that this effectively makes --since a
24728         redundant option for gitlog-to-changelog, but removing it would
24729         require current usage to change since calls would then require
24730         an additional '--'.
24731
24732 2008-12-21  Bruno Haible  <bruno@clisp.org>
24733
24734         * modules/mbsnrtowcs-tests: New file.
24735         * tests/test-mbsnrtowcs1.sh: New file.
24736         * tests/test-mbsnrtowcs2.sh: New file.
24737         * tests/test-mbsnrtowcs3.sh: New file.
24738         * tests/test-mbsnrtowcs4.sh: New file.
24739         * tests/test-mbsnrtowcs.c: New file.
24740
24741         New module 'mbsnrtowcs'.
24742         * lib/wchar.in.h (mbsnrtowcs): New declaration.
24743         * lib/mbsnrtowcs.c: New file.
24744         * lib/mbsrtowcs-state.c: New file.
24745         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
24746         (internal_state): Remove variable.
24747         * m4/mbsnrtowcs.m4: New file.
24748         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
24749         compilation units.
24750         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
24751         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24752         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
24753         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24754         * modules/mbsnrtowcs: New file.
24755         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
24756         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
24757         portability problem.
24758
24759 2008-12-21  Bruno Haible  <bruno@clisp.org>
24760
24761         Work around mbsrtowcs bug.
24762         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
24763         (gl_FUNC_MBSRTOWCS): Invoke it.
24764         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24765         m4/locale-zh.m4.
24766         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
24767
24768 2008-12-21  Bruno Haible  <bruno@clisp.org>
24769
24770         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
24771
24772 2008-12-21  Bruno Haible  <bruno@clisp.org>
24773
24774         Update doc for AIX.
24775         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
24776         16-bit wchar_t type.
24777         * doc/posix-functions/btowc.texi: Likewise.
24778         * doc/posix-functions/fgetwc.texi: Likewise.
24779         * doc/posix-functions/fgetws.texi: Likewise.
24780         * doc/posix-functions/fputwc.texi: Likewise.
24781         * doc/posix-functions/fputws.texi: Likewise.
24782         * doc/posix-functions/fwide.texi: Likewise.
24783         * doc/posix-functions/fwprintf.texi: Likewise.
24784         * doc/posix-functions/fwscanf.texi: Likewise.
24785         * doc/posix-functions/getwchar.texi: Likewise.
24786         * doc/posix-functions/getwc.texi: Likewise.
24787         * doc/posix-functions/iswalnum.texi: Likewise.
24788         * doc/posix-functions/iswalpha.texi: Likewise.
24789         * doc/posix-functions/iswblank.texi: Likewise.
24790         * doc/posix-functions/iswcntrl.texi: Likewise.
24791         * doc/posix-functions/iswctype.texi: Likewise.
24792         * doc/posix-functions/iswdigit.texi: Likewise.
24793         * doc/posix-functions/iswgraph.texi: Likewise.
24794         * doc/posix-functions/iswlower.texi: Likewise.
24795         * doc/posix-functions/iswprint.texi: Likewise.
24796         * doc/posix-functions/iswpunct.texi: Likewise.
24797         * doc/posix-functions/iswspace.texi: Likewise.
24798         * doc/posix-functions/iswupper.texi: Likewise.
24799         * doc/posix-functions/iswxdigit.texi: Likewise.
24800         * doc/posix-functions/mbrtowc.texi: Likewise.
24801         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24802         * doc/posix-functions/mbstowcs.texi: Likewise.
24803         * doc/posix-functions/mbtowc.texi: Likewise.
24804         * doc/posix-functions/putwchar.texi: Likewise.
24805         * doc/posix-functions/putwc.texi: Likewise.
24806         * doc/posix-functions/swprintf.texi: Likewise.
24807         * doc/posix-functions/tolower.texi: Likewise.
24808         * doc/posix-functions/toupper.texi: Likewise.
24809         * doc/posix-functions/towctrans.texi: Likewise.
24810         * doc/posix-functions/ungetwc.texi: Likewise.
24811         * doc/posix-functions/vswprintf.texi: Likewise.
24812         * doc/posix-functions/wcrtomb.texi: Likewise.
24813         * doc/posix-functions/wcscat.texi: Likewise.
24814         * doc/posix-functions/wcschr.texi: Likewise.
24815         * doc/posix-functions/wcscmp.texi: Likewise.
24816         * doc/posix-functions/wcscoll.texi: Likewise.
24817         * doc/posix-functions/wcscpy.texi: Likewise.
24818         * doc/posix-functions/wcscspn.texi: Likewise.
24819         * doc/posix-functions/wcsftime.texi: Likewise.
24820         * doc/posix-functions/wcslen.texi: Likewise.
24821         * doc/posix-functions/wcsncat.texi: Likewise.
24822         * doc/posix-functions/wcsncmp.texi: Likewise.
24823         * doc/posix-functions/wcsncpy.texi: Likewise.
24824         * doc/posix-functions/wcspbrk.texi: Likewise.
24825         * doc/posix-functions/wcsrchr.texi: Likewise.
24826         * doc/posix-functions/wcsrtombs.texi: Likewise.
24827         * doc/posix-functions/wcsspn.texi: Likewise.
24828         * doc/posix-functions/wcsstr.texi: Likewise.
24829         * doc/posix-functions/wcstod.texi: Likewise.
24830         * doc/posix-functions/wcstof.texi: Likewise.
24831         * doc/posix-functions/wcstoimax.texi: Likewise.
24832         * doc/posix-functions/wcstok.texi: Likewise.
24833         * doc/posix-functions/wcstold.texi: Likewise.
24834         * doc/posix-functions/wcstoll.texi: Likewise.
24835         * doc/posix-functions/wcstol.texi: Likewise.
24836         * doc/posix-functions/wcstombs.texi: Likewise.
24837         * doc/posix-functions/wcstoull.texi: Likewise.
24838         * doc/posix-functions/wcstoul.texi: Likewise.
24839         * doc/posix-functions/wcstoumax.texi: Likewise.
24840         * doc/posix-functions/wcswidth.texi: Likewise.
24841         * doc/posix-functions/wcsxfrm.texi: Likewise.
24842         * doc/posix-functions/wctob.texi: Likewise.
24843         * doc/posix-functions/wctomb.texi: Likewise.
24844         * doc/posix-functions/wctrans.texi: Likewise.
24845         * doc/posix-functions/wctype.texi: Likewise.
24846         * doc/posix-functions/wcwidth.texi: Likewise.
24847         * doc/posix-functions/wmemchr.texi: Likewise.
24848         * doc/posix-functions/wmemcmp.texi: Likewise.
24849         * doc/posix-functions/wmemcpy.texi: Likewise.
24850         * doc/posix-functions/wmemmove.texi: Likewise.
24851         * doc/posix-functions/wmemset.texi: Likewise.
24852         * doc/posix-functions/wprintf.texi: Likewise.
24853         * doc/posix-functions/wscanf.texi: Likewise.
24854
24855 2008-12-21  Bruno Haible  <bruno@clisp.org>
24856
24857         Update doc for HP-UX 11.11.
24858         * doc/posix-functions/btowc.texi: Clarify that the function is missing
24859         in HP-UX version 11.00, not in all versions of HP-UX 11.
24860         * doc/posix-functions/fwide.texi: Likewise.
24861         * doc/posix-functions/fwprintf.texi: Likewise.
24862         * doc/posix-functions/fwscanf.texi: Likewise.
24863         * doc/posix-functions/inet_ntop.texi: Likewise.
24864         * doc/posix-functions/inet_pton.texi: Likewise.
24865         * doc/posix-functions/mbrlen.texi: Likewise.
24866         * doc/posix-functions/mbrtowc.texi: Likewise.
24867         * doc/posix-functions/mbsinit.texi: Likewise.
24868         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24869         * doc/posix-functions/swprintf.texi: Likewise.
24870         * doc/posix-functions/swscanf.texi: Likewise.
24871         * doc/posix-functions/towctrans.texi: Likewise.
24872         * doc/posix-functions/vfwprintf.texi: Likewise.
24873         * doc/posix-functions/vswprintf.texi: Likewise.
24874         * doc/posix-functions/vwprintf.texi: Likewise.
24875         * doc/posix-functions/wcrtomb.texi: Likewise.
24876         * doc/posix-functions/wcsrtombs.texi: Likewise.
24877         * doc/posix-functions/wcsstr.texi: Likewise.
24878         * doc/posix-functions/wctob.texi: Likewise.
24879         * doc/posix-functions/wctrans.texi: Likewise.
24880         * doc/posix-functions/wmemchr.texi: Likewise.
24881         * doc/posix-functions/wmemcmp.texi: Likewise.
24882         * doc/posix-functions/wmemcpy.texi: Likewise.
24883         * doc/posix-functions/wmemmove.texi: Likewise.
24884         * doc/posix-functions/wmemset.texi: Likewise.
24885         * doc/posix-functions/wprintf.texi: Likewise.
24886         * doc/posix-functions/wscanf.texi: Likewise.
24887
24888 2008-12-21  Bruno Haible  <bruno@clisp.org>
24889
24890         Work around a portability problem.
24891         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
24892         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
24893
24894 2008-12-20  Bruno Haible  <bruno@clisp.org>
24895
24896         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
24897         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
24898         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
24899         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
24900         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
24901
24902         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
24903         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
24904         set.
24905         (GNULIB_defined_mbstate_t): New macro.
24906         (mbsinit): Redefine if REPLACE_MBSINIT is set.
24907         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
24908         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
24909         reuses the system's mbrtowc function but works around the bugs.
24910         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
24911         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
24912         macros.
24913         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
24914         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
24915         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
24916         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
24917         REPLACE_MBSINIT if mbsinit needs to be overridden.
24918         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
24919         REPLACE_MBSINIT, REPLACE_MBRTOWC.
24920         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
24921         REPLACE_MBSINIT, REPLACE_MBRTOWC.
24922         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24923         m4/locale-zh.m4.
24924         (Depends): Add mbsinit.
24925         * modules/mbsinit (Depends): Add mbrtowc.
24926         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
24927
24928 2008-12-20  Bruno Haible  <bruno@clisp.org>
24929
24930         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
24931         so that there are no conversion errors on AIX.
24932         * tests/test-mbsrtowcs.c (main): LIkewise.
24933
24934 2008-12-20  Bruno Haible  <bruno@clisp.org>
24935
24936         Work around wctob bug on Solaris <= 9.
24937         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
24938         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
24939         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
24940         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
24941         * modules/wctob (Files): Add m4/locale-fr.m4.
24942         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
24943
24944 2008-12-20  Bruno Haible  <bruno@clisp.org>
24945
24946         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
24947         /dev/null.
24948         * tests/test-select-in.sh: Likewise.
24949         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24950
24951 2008-12-20  Bruno Haible  <bruno@clisp.org>
24952
24953         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
24954         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
24955         Cygwin 1.5.x.
24956
24957 2008-12-20  Bruno Haible  <bruno@clisp.org>
24958
24959         Ensure mbstate_t is defined on HP-UX 11.11.
24960         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
24961         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
24962         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
24963         AC_USE_SYSTEM_EXTENSIONS.
24964         * modules/fnmatch (Depends-on): Add extensions.
24965         * modules/mbrlen (Depends-on): Likewise.
24966         * modules/mbrtowc (Depends-on): Likewise.
24967         * modules/mbsinit (Depends-on): Likewise.
24968         * modules/mbsrtowcs (Depends-on): Likewise.
24969         * modules/mbswidth (Depends-on): Likewise.
24970         * modules/quotearg (Depends-on): Likewise.
24971         * modules/strftime (Depends-on): Likewise.
24972
24973 2008-12-20  Bruno Haible  <bruno@clisp.org>
24974
24975         Ensure wctob is declared on IRIX 6.5.
24976         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
24977         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
24978         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
24979         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
24980         of HAVE_WCTOB.
24981         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
24982         HAVE_WCTOB.
24983         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
24984
24985 2008-12-19  Bruno Haible  <bruno@clisp.org>
24986
24987         * modules/mbsrtowcs-tests: New file.
24988         * tests/test-mbsrtowcs1.sh: New file.
24989         * tests/test-mbsrtowcs2.sh: New file.
24990         * tests/test-mbsrtowcs3.sh: New file.
24991         * tests/test-mbsrtowcs4.sh: New file.
24992         * tests/test-mbsrtowcs.c: New file.
24993
24994         New module 'mbsrtowcs'.
24995         * lib/wchar.in.h (mbsrtowcs): New declaration.
24996         * lib/mbsrtowcs.c: New file.
24997         * m4/mbsrtowcs.m4: New file.
24998         * modules/mbsrtowcs: New file.
24999         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
25000         HAVE_MBSRTOWCS.
25001         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
25002         HAVE_MBSRTOWCS.
25003         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
25004
25005 2008-12-19  Bruno Haible  <bruno@clisp.org>
25006
25007         New module 'mbrlen'.
25008         * lib/wchar.in.h (mbrlen): New declaration.
25009         * lib/mbrlen.c: New file.
25010         * m4/mbrlen.m4: New file.
25011         * modules/mbrlen: New file.
25012         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
25013         HAVE_MBRLEN.
25014         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
25015         HAVE_MBRLEN.
25016         * doc/posix-functions/mbrlen.texi: Document the new module.
25017
25018 2008-12-19  Bruno Haible  <bruno@clisp.org>
25019
25020         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
25021         * modules/mbrtowc (Depends-on): Add verify.
25022         Suggested by Paul Eggert.
25023
25024 2008-12-18  Bruno Haible  <bruno@clisp.org>
25025
25026         * modules/mbsinit-tests: New file.
25027         * tests/test-mbsinit.sh: New file.
25028         * tests/test-mbsinit.c: New file.
25029
25030 2008-12-18  Bruno Haible  <bruno@clisp.org>
25031
25032         * modules/mbrtowc-tests: New file.
25033         * tests/test-mbrtowc1.sh: New file.
25034         * tests/test-mbrtowc2.sh: New file.
25035         * tests/test-mbrtowc3.sh: New file.
25036         * tests/test-mbrtowc4.sh: New file.
25037         * tests/test-mbrtowc.c: New file.
25038
25039         New module 'mbrtowc'.
25040         * lib/wchar.in.h (mbstate_t): Override when the system does not have
25041         mbsinit and mbrtowc.
25042         (mbrtowc): New declaration.
25043         * lib/mbrtowc.c: New file.
25044         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
25045         * modules/mbrtowc: New file.
25046         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
25047         HAVE_MBRTOWC.
25048         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
25049         HAVE_MBRTOWC.
25050         * doc/posix-functions/mbrtowc.texi: Document the new module.
25051
25052 2008-12-18  Bruno Haible  <bruno@clisp.org>
25053
25054         New module 'wctob'.
25055         * lib/wchar.in.h (wctob): New declaration.
25056         * lib/wctob.c: New file.
25057         * m4/wctob.m4: New file.
25058         * modules/wctob: New file.
25059         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
25060         HAVE_WCTOB.
25061         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
25062         * doc/posix-functions/wctob.texi: Document the new module.
25063
25064 2008-12-18  Bruno Haible  <bruno@clisp.org>
25065
25066         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
25067         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
25068
25069 2008-12-18  Simon Josefsson  <simon@josefsson.org>
25070
25071         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
25072         G. Christensen" <tgc@jupiterrise.com>.
25073
25074         * lib/flock.c: Need to include errno.h.  Reported by "Tom
25075         G. Christensen" <tgc@jupiterrise.com>.
25076
25077         * lib/flock.c: Need to include string.h.  Reported by "Tom
25078         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
25079         <ebb9@byu.net>.
25080
25081 2008-12-18  Bruno Haible  <bruno@clisp.org>
25082
25083         * m4/locale-ja.m4: New file, from GNU gettext.
25084
25085 2008-12-17  Bruno Haible  <bruno@clisp.org>
25086
25087         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
25088         Suggested by Eric Blake.
25089
25090 2008-12-17  Bruno Haible  <bruno@clisp.org>
25091
25092         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
25093
25094 2008-12-17  Bruno Haible  <bruno@clisp.org>
25095
25096         * lib/mbsinit.c: Include verify.h. Verify an assumption.
25097         * modules/mbsinit (Depends-on): Add verify.
25098         Suggested by Paul Eggert.
25099
25100 2008-12-17  Bruno Haible  <bruno@clisp.org>
25101
25102         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
25103         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
25104         gl_FUNC_MBRTOWC.
25105         * m4/mbiter.m4 (gl_MBITER): LIkewise.
25106         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
25107         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
25108         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
25109         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
25110         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
25111         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
25112         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
25113         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
25114         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
25115         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
25116         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
25117         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
25118         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
25119         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
25120         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25121         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
25122         * modules/trim (configure.ac): Likewise.
25123
25124 2008-12-17  Bruno Haible  <bruno@clisp.org>
25125
25126         * modules/btowc-tests: New file.
25127         * tests/test-btowc1.sh: New file.
25128         * tests/test-btowc2.sh: New file.
25129         * tests/test-btowc.c: New file.
25130
25131         New module 'btowc'.
25132         * lib/wchar.in.h (btowc): New declaration.
25133         * lib/btowc.c: New file.
25134         * m4/btowc.m4: New file.
25135         * modules/btowc: New file.
25136         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
25137         HAVE_BTOWC.
25138         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
25139         * doc/posix-functions/btowc.texi: Document the new module.
25140
25141 2008-12-17  Bruno Haible  <bruno@clisp.org>
25142
25143         New module 'mbsinit'.
25144         * lib/wchar.in.h (mbsinit): New declaration.
25145         * lib/mbsinit.c: New file.
25146         * m4/mbsinit.m4: New file.
25147         * modules/mbsinit: New file.
25148         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
25149         HAVE_MBSINIT.
25150         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
25151         HAVE_MBSINIT.
25152         * doc/posix-functions/mbsinit.texi: Document the new module.
25153
25154 2008-12-16  Bruno Haible  <bruno@clisp.org>
25155
25156         * lib/unistd.in.h: Add comment.
25157         * tests/test-environ.c: Don't include <stdlib.h>.
25158
25159 2008-12-16  Bruno Haible  <bruno@clisp.org>
25160
25161         * lib/parse-duration.h (parse_duration): Document return value
25162         convention.
25163         * lib/parse-duration.c: Include specification header first. Add
25164         comments.
25165         (_): Remove macro.
25166         (parse_year_month_day, parse_hour_minute_second): Move side effects
25167         outside of strchr call.
25168         (parse_non_iso8601): Move side effects outside of isspace call.
25169         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
25170         call.
25171
25172 2008-12-16  Bruno Haible  <bruno@clisp.org>
25173
25174         * tests/test-parse-duration.sh: Produce no output when the test
25175         succeeds.
25176
25177 2008-12-16  Bruno Haible  <bruno@clisp.org>
25178
25179         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
25180         expressions.
25181
25182 2008-12-15  Bruno Haible  <bruno@clisp.org>
25183
25184         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
25185         * doc/glibc-functions/flistxattr.texi: Likewise.
25186         * doc/glibc-functions/fopencookie.texi: Likewise.
25187         * doc/glibc-functions/fremovexattr.texi: Likewise.
25188         * doc/glibc-functions/fsetxattr.texi: Likewise.
25189         * doc/glibc-functions/getxattr.texi: Likewise.
25190         * doc/glibc-functions/lgetxattr.texi: Likewise.
25191         * doc/glibc-functions/listxattr.texi: Likewise.
25192         * doc/glibc-functions/llistxattr.texi: Likewise.
25193         * doc/glibc-functions/lremovexattr.texi: Likewise.
25194         * doc/glibc-functions/lsetxattr.texi: Likewise.
25195         * doc/glibc-functions/removexattr.texi: Likewise.
25196         * doc/glibc-functions/setxattr.texi: Likewise.
25197         * doc/posix-functions/open_memstream.texi: Likewise.
25198
25199 2008-12-15  Eric Blake  <ebb9@byu.net>
25200
25201         Update doc for cygwin 1.7.
25202         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
25203         functions.
25204         * doc/posix-functions/fchmodat.texi: Likewise.
25205         * doc/posix-functions/fchownat.texi: Likewise.
25206         * doc/posix-functions/fdopendir.texi: Likewise.
25207         * doc/posix-functions/fmemopen.texi: Likewise.
25208         * doc/posix-functions/freeaddrinfo.texi: Likewise.
25209         * doc/posix-functions/fstatat.texi: Likewise.
25210         * doc/posix-functions/futimens.texi: Likewise.
25211         * doc/posix-functions/gai_strerror.texi: Likewise.
25212         * doc/posix-functions/getaddrinfo.texi: Likewise.
25213         * doc/posix-functions/getnameinfo.texi: Likewise.
25214         * doc/posix-functions/if_freenameindex.texi: Likewise.
25215         * doc/posix-functions/if_indextoname.texi: Likewise.
25216         * doc/posix-functions/if_nameindex.texi: Likewise.
25217         * doc/posix-functions/if_nametoindex.texi: Likewise.
25218         * doc/posix-functions/insque.texi: Likewise.
25219         * doc/posix-functions/linkat.texi: Likewise.
25220         * doc/posix-functions/llrint.texi: Likewise.
25221         * doc/posix-functions/llrintf.texi: Likewise.
25222         * doc/posix-functions/llrintl.texi: Likewise.
25223         * doc/posix-functions/lockf.texi: Likewise.
25224         * doc/posix-functions/lrintl.texi: Likewise.
25225         * doc/posix-functions/mkdirat.texi: Likewise.
25226         * doc/posix-functions/mkfifoat.texi: Likewise.
25227         * doc/posix-functions/mknodat.texi: Likewise.
25228         * doc/posix-functions/mq_close.texi: Likewise.
25229         * doc/posix-functions/mq_getattr.texi: Likewise.
25230         * doc/posix-functions/mq_notify.texi: Likewise.
25231         * doc/posix-functions/mq_open.texi: Likewise.
25232         * doc/posix-functions/mq_receive.texi: Likewise.
25233         * doc/posix-functions/mq_send.texi: Likewise.
25234         * doc/posix-functions/mq_setattr.texi: Likewise.
25235         * doc/posix-functions/mq_timedreceive.texi: Likewise.
25236         * doc/posix-functions/mq_timedsend.texi: Likewise.
25237         * doc/posix-functions/mq_unlink.texi: Likewise.
25238         * doc/posix-functions/open_memstream.texi: Likewise.
25239         * doc/posix-functions/openat.texi: Likewise.
25240         * doc/posix-functions/posix_fadvise.texi: Likewise.
25241         * doc/posix-functions/posix_fallocate.texi: Likewise.
25242         * doc/posix-functions/posix_madvise.texi: Likewise.
25243         * doc/posix-functions/posix_memalign.texi: Likewise.
25244         * doc/posix-functions/posix_openpt.texi: Likewise.
25245         * doc/posix-functions/readlinkat.texi: Likewise.
25246         * doc/posix-functions/remque.texi: Likewise.
25247         * doc/posix-functions/renameat.texi: Likewise.
25248         * doc/posix-functions/rintl.texi: Likewise.
25249         * doc/posix-functions/sem_unlink.texi: Likewise.
25250         * doc/posix-functions/shm_open.texi: Likewise.
25251         * doc/posix-functions/shm_unlink.texi: Likewise.
25252         * doc/posix-functions/signgam.texi: Likewise.
25253         * doc/posix-functions/sigset.texi: Likewise.
25254         * doc/posix-functions/stpcpy.texi: Likewise.
25255         * doc/posix-functions/stpncpy.texi: Likewise.
25256         * doc/posix-functions/strerror.texi: Likewise.
25257         * doc/posix-functions/strtod.texi: Likewise.
25258         * doc/posix-functions/symlinkat.texi: Likewise.
25259         * doc/posix-functions/unlinkat.texi: Likewise.
25260         * doc/posix-functions/utimensat.texi: Likewise.
25261         * doc/glibc-functions/bindresvport.texi: Likewise.
25262         * doc/glibc-functions/dn_expand.texi: Likewise.
25263         * doc/glibc-functions/exp10.texi: Likewise.
25264         * doc/glibc-functions/exp10f.texi: Likewise.
25265         * doc/glibc-functions/fgetxattr.texi: Likewise.
25266         * doc/glibc-functions/flistxattr.texi: Likewise.
25267         * doc/glibc-functions/fopencookie.texi: Likewise.
25268         * doc/glibc-functions/freeifaddrs.texi: Likewise.
25269         * doc/glibc-functions/fremovexattr.texi: Likewise.
25270         * doc/glibc-functions/fsetxattr.texi: Likewise.
25271         * doc/glibc-functions/getifaddrs.texi: Likewise.
25272         * doc/glibc-functions/getxattr.texi: Likewise.
25273         * doc/glibc-functions/lgetxattr.texi: Likewise.
25274         * doc/glibc-functions/listxattr.texi: Likewise.
25275         * doc/glibc-functions/llistxattr.texi: Likewise.
25276         * doc/glibc-functions/lremovexattr.texi: Likewise.
25277         * doc/glibc-functions/lsetxattr.texi: Likewise.
25278         * doc/glibc-functions/pow10.texi: Likewise.
25279         * doc/glibc-functions/pow10f.texi: Likewise.
25280         * doc/glibc-functions/rcmd_af.texi: Likewise.
25281         * doc/glibc-functions/removexattr.texi: Likewise.
25282         * doc/glibc-functions/res_init.texi: Likewise.
25283         * doc/glibc-functions/res_mkquery.texi: Likewise.
25284         * doc/glibc-functions/res_query.texi: Likewise.
25285         * doc/glibc-functions/res_querydomain.texi: Likewise.
25286         * doc/glibc-functions/res_send.texi: Likewise.
25287         * doc/glibc-functions/rresvport_af.texi: Likewise.
25288         * doc/glibc-functions/setxattr.texi: Likewise.
25289         * doc/glibc-functions/strcasestr.texi: Likewise.
25290
25291 2008-12-15  Bruno Haible  <bruno@clisp.org>
25292
25293         Fix compilation error on OSF/1 4.0.
25294         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
25295         <sys/time.h>, simply delegate to the system header.
25296         Reported by Daniel Richard G. <oss@teragram.com>.
25297
25298 2008-12-15  Bruno Haible  <bruno@clisp.org>
25299
25300         * doc/posix-functions/openat.texi: Mention the 'openat' module.
25301         * doc/posix-functions/fchmodat.texi: Likewise.
25302         * doc/posix-functions/fchownat.texi: Likewise.
25303         * doc/posix-functions/fdopendir.texi: Likewise.
25304         * doc/posix-functions/fstatat.texi: Likewise.
25305         * doc/posix-functions/mkdirat.texi: Likewise.
25306         * doc/posix-functions/unlinkat.texi: Likewise.
25307
25308 2008-12-14  Bruno Haible  <bruno@clisp.org>
25309
25310         Update doc for POSIX:2008.
25311         * doc/posix-functions/faccessat.texi: New file.
25312         * doc/posix-functions/fchmodat.texi: New file.
25313         * doc/posix-functions/fchownat.texi: New file.
25314         * doc/posix-functions/fdopendir.texi: New file.
25315         * doc/posix-functions/fstatat.texi: New file.
25316         * doc/posix-functions/futimens.texi: New file.
25317         * doc/posix-functions/linkat.texi: New file.
25318         * doc/posix-functions/mkdirat.texi: New file.
25319         * doc/posix-functions/mkfifoat.texi: New file.
25320         * doc/posix-functions/mknodat.texi: New file.
25321         * doc/posix-functions/open_wmemstream.texi: New file.
25322         * doc/posix-functions/openat.texi: New file.
25323         * doc/posix-functions/psiginfo.texi: New file.
25324         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
25325         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
25326         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
25327         * doc/posix-functions/readlinkat.texi: New file.
25328         * doc/posix-functions/renameat.texi: New file.
25329         * doc/posix-functions/strerror_l.texi: New file.
25330         * doc/posix-functions/symlinkat.texi: New file.
25331         * doc/posix-functions/unlinkat.texi: New file.
25332         * doc/posix-functions/utimensat.texi: New file.
25333         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25334
25335 2008-12-14  Bruno Haible  <bruno@clisp.org>
25336
25337         Update doc for POSIX:2008.
25338         * doc/posix-functions/alphasort.texi: Renamed from
25339         doc/glibc-functions/alphasort.texi.
25340         * doc/posix-functions/dirfd.texi: Renamed from
25341         doc/glibc-functions/dirfd.texi.
25342         * doc/posix-functions/dprintf.texi: Renamed from
25343         doc/glibc-functions/dprintf.texi.
25344         * doc/posix-functions/duplocale.texi: Renamed from
25345         doc/glibc-functions/duplocale.texi.
25346         * doc/posix-functions/fexecve.texi: Renamed from
25347         doc/glibc-functions/fexecve.texi.
25348         * doc/posix-functions/fmemopen.texi: Renamed from
25349         doc/glibc-functions/fmemopen.texi.
25350         * doc/posix-functions/freelocale.texi: Renamed from
25351         doc/glibc-functions/freelocale.texi.
25352         * doc/posix-functions/getdate_err.texi: Renamed from
25353         doc/glibc-functions/getdate_err.texi.
25354         * doc/posix-functions/isalnum_l.texi: Renamed from
25355         doc/glibc-functions/isalnum_l.texi.
25356         * doc/posix-functions/isalpha_l.texi: Renamed from
25357         doc/glibc-functions/isalpha_l.texi.
25358         * doc/posix-functions/isblank_l.texi: Renamed from
25359         doc/glibc-functions/isblank_l.texi.
25360         * doc/posix-functions/iscntrl_l.texi: Renamed from
25361         doc/glibc-functions/iscntrl_l.texi.
25362         * doc/posix-functions/isdigit_l.texi: Renamed from
25363         doc/glibc-functions/isdigit_l.texi.
25364         * doc/posix-functions/isgraph_l.texi: Renamed from
25365         doc/glibc-functions/isgraph_l.texi.
25366         * doc/posix-functions/islower_l.texi: Renamed from
25367         doc/glibc-functions/islower_l.texi.
25368         * doc/posix-functions/isprint_l.texi: Renamed from
25369         doc/glibc-functions/isprint_l.texi.
25370         * doc/posix-functions/ispunct_l.texi: Renamed from
25371         doc/glibc-functions/ispunct_l.texi.
25372         * doc/posix-functions/isspace_l.texi: Renamed from
25373         doc/glibc-functions/isspace_l.texi.
25374         * doc/posix-functions/isupper_l.texi: Renamed from
25375         doc/glibc-functions/isupper_l.texi.
25376         * doc/posix-functions/iswalnum_l.texi: Renamed from
25377         doc/glibc-functions/iswalnum_l.texi.
25378         * doc/posix-functions/iswalpha_l.texi: Renamed from
25379         doc/glibc-functions/iswalpha_l.texi.
25380         * doc/posix-functions/iswblank_l.texi: Renamed from
25381         doc/glibc-functions/iswblank_l.texi.
25382         * doc/posix-functions/iswcntrl_l.texi: Renamed from
25383         doc/glibc-functions/iswcntrl_l.texi.
25384         * doc/posix-functions/iswctype_l.texi: Renamed from
25385         doc/glibc-functions/iswctype_l.texi.
25386         * doc/posix-functions/iswdigit_l.texi: Renamed from
25387         doc/glibc-functions/iswdigit_l.texi.
25388         * doc/posix-functions/iswgraph_l.texi: Renamed from
25389         doc/glibc-functions/iswgraph_l.texi.
25390         * doc/posix-functions/iswlower_l.texi: Renamed from
25391         doc/glibc-functions/iswlower_l.texi.
25392         * doc/posix-functions/iswprint_l.texi: Renamed from
25393         doc/glibc-functions/iswprint_l.texi.
25394         * doc/posix-functions/iswpunct_l.texi: Renamed from
25395         doc/glibc-functions/iswpunct_l.texi.
25396         * doc/posix-functions/iswspace_l.texi: Renamed from
25397         doc/glibc-functions/iswspace_l.texi.
25398         * doc/posix-functions/iswupper_l.texi: Renamed from
25399         doc/glibc-functions/iswupper_l.texi.
25400         * doc/posix-functions/iswxdigit_l.texi: Renamed from
25401         doc/glibc-functions/iswxdigit_l.texi.
25402         * doc/posix-functions/isxdigit_l.texi: Renamed from
25403         doc/glibc-functions/isxdigit_l.texi.
25404         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
25405         doc/glibc-functions/mbsnrtowcs.texi.
25406         * doc/posix-functions/mkdtemp.texi: Renamed from
25407         doc/glibc-functions/mkdtemp.texi.
25408         * doc/posix-functions/newlocale.texi: Renamed from
25409         doc/glibc-functions/newlocale.texi.
25410         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
25411         doc/glibc-functions/nl_langinfo_l.texi.
25412         * doc/posix-functions/open_memstream.texi: Renamed from
25413         doc/glibc-functions/open_memstream.texi.
25414         * doc/posix-functions/opterr.texi: Renamed from
25415         doc/glibc-functions/opterr.texi.
25416         * doc/posix-functions/optind.texi: Renamed from
25417         doc/glibc-functions/optind.texi.
25418         * doc/posix-functions/optopt.texi: Renamed from
25419         doc/glibc-functions/optopt.texi.
25420         * doc/posix-functions/psignal.texi: Renamed from
25421         doc/glibc-functions/psignal.texi.
25422         * doc/posix-functions/scandir.texi: Renamed from
25423         doc/glibc-functions/scandir.texi.
25424         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
25425         doc/glibc-functions/sched_get_priority_min.texi.
25426         * doc/posix-functions/signgam.texi: Renamed from
25427         doc/glibc-functions/signgam.texi.
25428         * doc/posix-functions/stpcpy.texi: Renamed from
25429         doc/glibc-functions/stpcpy.texi.
25430         * doc/posix-functions/stpncpy.texi: Renamed from
25431         doc/glibc-functions/stpncpy.texi.
25432         * doc/posix-functions/strcasecmp_l.texi: Renamed from
25433         doc/glibc-functions/strcasecmp_l.texi.
25434         * doc/posix-functions/strcoll_l.texi: Renamed from
25435         doc/glibc-functions/strcoll_l.texi.
25436         * doc/posix-functions/strfmon_l.texi: Renamed from
25437         doc/glibc-functions/strfmon_l.texi.
25438         * doc/posix-functions/strftime_l.texi: Renamed from
25439         doc/glibc-functions/strftime_l.texi.
25440         * doc/posix-functions/strncasecmp_l.texi: Renamed from
25441         doc/glibc-functions/strncasecmp_l.texi.
25442         * doc/posix-functions/strndup.texi: Renamed from
25443         doc/glibc-functions/strndup.texi.
25444         * doc/posix-functions/strnlen.texi: Renamed from
25445         doc/glibc-functions/strnlen.texi.
25446         * doc/posix-functions/strsignal.texi: Renamed from
25447         doc/glibc-functions/strsignal.texi.
25448         * doc/posix-functions/strxfrm_l.texi: Renamed from
25449         doc/glibc-functions/strxfrm_l.texi.
25450         * doc/posix-functions/timer_gettime.texi: Renamed from
25451         doc/glibc-functions/timer_gettime.texi.
25452         * doc/posix-functions/tolower_l.texi: Renamed from
25453         doc/glibc-functions/tolower_l.texi.
25454         * doc/posix-functions/toupper_l.texi: Renamed from
25455         doc/glibc-functions/toupper_l.texi.
25456         * doc/posix-functions/towctrans_l.texi: Renamed from
25457         doc/glibc-functions/towctrans_l.texi.
25458         * doc/posix-functions/towlower_l.texi: Renamed from
25459         doc/glibc-functions/towlower_l.texi.
25460         * doc/posix-functions/towupper_l.texi: Renamed from
25461         doc/glibc-functions/towupper_l.texi.
25462         * doc/posix-functions/uselocale.texi: Renamed from
25463         doc/glibc-functions/uselocale.texi.
25464         * doc/posix-functions/vdprintf.texi: Renamed from
25465         doc/glibc-functions/vdprintf.texi.
25466         * doc/posix-functions/wcpcpy.texi:
25467         Renamed from doc/glibc-functions/wcpcpy.texi.
25468         * doc/posix-functions/wcpncpy.texi: Renamed from
25469         doc/glibc-functions/wcpncpy.texi.
25470         * doc/posix-functions/wcscasecmp.texi: Renamed from
25471         doc/glibc-functions/wcscasecmp.texi.
25472         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
25473         doc/glibc-functions/wcscasecmp_l.texi.
25474         * doc/posix-functions/wcscoll_l.texi: Renamed from
25475         doc/glibc-functions/wcscoll_l.texi.
25476         * doc/posix-functions/wcsdup.texi: Renamed from
25477         doc/glibc-functions/wcsdup.texi.
25478         * doc/posix-functions/wcsncasecmp.texi: Renamed from
25479         doc/glibc-functions/wcsncasecmp.texi.
25480         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
25481         doc/glibc-functions/wcsncasecmp_l.texi.
25482         * doc/posix-functions/wcsnlen.texi: Renamed from
25483         doc/glibc-functions/wcsnlen.texi.
25484         * doc/posix-functions/wcsnrtombs.texi: Renamed from
25485         doc/glibc-functions/wcsnrtombs.texi.
25486         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
25487         doc/glibc-functions/wcsxfrm_l.texi.
25488         * doc/posix-functions/wctrans_l.texi: Renamed from
25489         doc/glibc-functions/wctrans_l.texi.
25490         * doc/posix-functions/wctype_l.texi: Renamed from
25491         doc/glibc-functions/wctype_l.texi.
25492         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25493         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
25494         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
25495         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
25496         these subsections.
25497         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
25498         Remove sections.
25499
25500 2008-12-14  Bruno Haible  <bruno@clisp.org>
25501
25502         Update doc for POSIX:2008.
25503         * doc/posix-functions/*.texi: Update URL of POSIX specification.
25504
25505 2008-12-14  Bruno Haible  <bruno@clisp.org>
25506
25507         Update doc for POSIX:2008.
25508         * doc/pastposix-functions/bcmp.texi: Renamed from
25509         doc/posix-functions/bcmp.texi.
25510         * doc/pastposix-functions/bcopy.texi: Renamed from
25511         doc/posix-functions/bcopy.texi.
25512         * doc/pastposix-functions/bsd_signal.texi: Renamed from
25513         doc/posix-functions/bsd_signal.texi.
25514         * doc/pastposix-functions/bzero.texi: Renamed from
25515         doc/posix-functions/bzero.texi.
25516         * doc/pastposix-functions/ecvt.texi: Renamed from
25517         doc/posix-functions/ecvt.texi.
25518         * doc/pastposix-functions/fcvt.texi: Renamed from
25519         doc/posix-functions/fcvt.texi.
25520         * doc/pastposix-functions/ftime.texi: Renamed from
25521         doc/posix-functions/ftime.texi.
25522         * doc/pastposix-functions/gcvt.texi: Renamed from
25523         doc/posix-functions/gcvt.texi.
25524         * doc/pastposix-functions/getcontext.texi: Renamed from
25525         doc/posix-functions/getcontext.texi.
25526         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
25527         doc/posix-functions/gethostbyaddr.texi.
25528         * doc/pastposix-functions/gethostbyname.texi: Renamed from
25529         doc/posix-functions/gethostbyname.texi.
25530         * doc/pastposix-functions/getwd.texi: Renamed from
25531         doc/posix-functions/getwd.texi.
25532         * doc/pastposix-functions/h_errno.texi: Renamed from
25533         doc/posix-functions/h_errno.texi.
25534         * doc/pastposix-functions/index.texi: Renamed from
25535         doc/posix-functions/index.texi.
25536         * doc/pastposix-functions/makecontext.texi: Renamed from
25537         doc/posix-functions/makecontext.texi.
25538         * doc/pastposix-functions/mktemp.texi: Renamed from
25539         doc/posix-functions/mktemp.texi.
25540         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
25541         doc/posix-functions/pthread_attr_getstackaddr.texi.
25542         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
25543         doc/posix-functions/pthread_attr_setstackaddr.texi.
25544         * doc/pastposix-functions/rindex.texi: Renamed from
25545         doc/posix-functions/rindex.texi.
25546         * doc/pastposix-functions/scalb.texi: Renamed from
25547         doc/posix-functions/scalb.texi.
25548         * doc/pastposix-functions/setcontext.texi: Renamed from
25549         doc/posix-functions/setcontext.texi.
25550         * doc/pastposix-functions/swapcontext.texi: Renamed from
25551         doc/posix-functions/swapcontext.texi.
25552         * doc/pastposix-functions/ualarm.texi: Renamed from
25553         doc/posix-functions/ualarm.texi.
25554         * doc/pastposix-functions/usleep.texi: Renamed from
25555         doc/posix-functions/usleep.texi.
25556         * doc/pastposix-functions/vfork.texi: Renamed from
25557         doc/posix-functions/vfork.texi.
25558         * doc/pastposix-functions/wcswcs.texi: Renamed from
25559         doc/posix-functions/wcswcs.texi.
25560         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
25561         (Function Substitutes): Update.
25562
25563 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25564
25565         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
25566         m4/strerror.m4.
25567
25568 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25569             Bruno Haible  <bruno@clisp.org>
25570
25571         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
25572
25573 2008-12-13  Bruno Haible  <bruno@clisp.org>
25574
25575         * modules/strtoull (Depends-on): Remove unistd.
25576
25577 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25578
25579         * modules/strtoull (Depends-on): Add stdlib.
25580
25581 2008-12-11  Simon Josefsson  <simon@josefsson.org>
25582
25583         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
25584
25585 2008-12-10  Jim Meyering  <meyering@redhat.com>
25586
25587         gl_ASSERT: don't say assertions are disabled when they're not
25588         * m4/assert.m4 (gl_ASSERT): Do not make configure report
25589         "checking whether to enable assertions... no", when they are in
25590         fact enabled.  This is solely a bug in the output of configure.
25591         In spite of saying "no", NDEBUG was not defined in that case.
25592         Also, as noted by Eric Blake, leave assertions enabled upon
25593         --enable-assert=INVALID.
25594
25595 2008-12-10  Bruno Haible  <bruno@clisp.org>
25596
25597         Change MODULES.html to refer to POSIX:2008 where possible.
25598         * MODULES.html.sh (POSIX2008_URL): New variable.
25599         (posix_headers): Remove sys/timeb, ucontext.
25600         (posix2001_headers): New variable.
25601         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
25602         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
25603         index, makecontext, mktemp, pthread_attr_getstackaddr,
25604         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
25605         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
25606         (posix2001_functions): New variable.
25607         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
25608         otherwise.
25609
25610 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25611
25612         add missing include to parse-duration.c
25613         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
25614         * modules/parse-duration (Depends-on): Add xalloc.
25615
25616         fix sed script reading maint.mk
25617         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
25618         (syntax-check-rules): Use it.
25619
25620 2008-12-09  Bruno Haible  <bruno@clisp.org>
25621
25622         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
25623         MacOS X 10.4/PowerPC.
25624         Reported by Simon Josefsson.
25625
25626 2008-12-08  Jim Meyering  <meyering@redhat.com>
25627
25628         work around mingw's lack of some S_IF definitions
25629         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
25630         Reported by Simon Josefsson.
25631
25632 2008-12-08  Bruno Haible  <bruno@clisp.org>
25633
25634         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
25635         applied to variables. Needed on MacOS X 10.4/PowerPC.
25636         Reported by Simon Josefsson.
25637
25638 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
25639         and Eric Blake  <ebb9@byu.net>
25640
25641         assert: honor --enable-assert
25642         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
25643         order to honor --enable-assert, rather than treating it as a
25644         synonym for --disable-assert.
25645
25646 2008-12-08  Jim Meyering  <meyering@redhat.com>
25647
25648         * lib/posixtm.c: Remove now-useless declaration of mktime.
25649
25650         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
25651
25652 2008-12-07  Bruno Haible  <bruno@clisp.org>
25653
25654         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
25655         test_once): Mark functions as static.
25656         * tests/test-tls.c (test_tls): Likewise.
25657
25658 2008-12-07  Bruno Haible  <bruno@clisp.org>
25659
25660         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
25661         iconv_register_autodetect.
25662
25663 2008-12-07  Jim Meyering  <meyering@redhat.com>
25664
25665         posixtm.c: avoid a warning
25666         * lib/posixtm.c (posixtime): Don't initialize tm0.
25667         It's no longer needed to placate gcc4's -Wuninitialized,
25668         and the attempt to placate would elicit a new warning.
25669
25670         unicodeio.c: mark unused parameters
25671         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25672         (fallback_failure_callback): Likewise.
25673
25674 2008-12-07  Bruno Haible  <bruno@clisp.org>
25675
25676         * gnulib-tool (func_create_testdir): When building the tests
25677         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
25678         Reported by Simon Josefsson.
25679
25680 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25681
25682         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
25683
25684 2008-12-06  Bruno Haible  <bruno@clisp.org>
25685
25686         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
25687         Suggested by Eric Blake.
25688
25689 2008-12-06  Bruno Haible  <bruno@clisp.org>
25690
25691         Fix a c-stack test failure on MacOS X.
25692         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
25693         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
25694         handler for SIGBUS as well.
25695         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
25696         install a signal handler for SIGBUS as well.
25697         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
25698
25699 2008-12-06  Bruno Haible  <bruno@clisp.org>
25700
25701         Advocacy documentation.
25702         * doc/gnulib-intro.texi (Benefits): New section.
25703         * doc/gnulib.texi: Update.
25704
25705 2008-12-06  Bruno Haible  <bruno@clisp.org>
25706
25707         Document the 'manywarnings' module.
25708         * doc/manywarnings.texi: New file.
25709         * doc/gnulib.texi: Include it.
25710
25711 2008-12-05  Eric Blake  <ebb9@byu.net>
25712
25713         tests: silence some gcc warnings
25714         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
25715         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
25716         type mismatches.
25717
25718 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25719             Bruno Haible  <bruno@clisp.org>
25720
25721         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
25722
25723 2008-11-29  Jim Meyering  <meyering@redhat.com>
25724
25725         unicodeio.c: mark unused parameters
25726         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25727         (fallback_failure_callback): Likewise.
25728
25729         fts: fix a thinko
25730         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
25731         (set_stat_type): Return S_IF*-valued "type" directly.
25732         Prompted by James Youngman's spotting a related bug.
25733         Confirmed by further testing through find.
25734
25735         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
25736         * lib/fts.c (D_TYPE): Define.
25737         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
25738         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
25739         (s_ifmt_shift_bits): New function.
25740         (set_stat_type): New function.
25741         (fts_build): When not calling fts_stat, call set_stat_type
25742         to propagate dirent.d_type info to fts_read caller.
25743         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
25744         fts_statp->st_mode type information may be valid.
25745
25746 2008-11-28  Simon Josefsson  <simon@josefsson.org>
25747
25748         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
25749         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
25750         <sds@gnu.org>.
25751
25752 2008-11-20  Bruno Haible  <bruno@clisp.org>
25753
25754         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
25755         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
25756         INCLUDE_NEXT.
25757         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
25758         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
25759         * modules/math (Makefile.am): Substitute
25760         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
25761         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25762
25763 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
25764             Bruno Haible  <bruno@clisp.org>
25765
25766         * lib/stdint.in.h: Define all type macros so that their expansion is
25767         a single typedef'ed token. Fixes a compilation failure in Boost which
25768         does "using ::int8_t;".
25769
25770 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25771
25772         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
25773         gl_MANYWARN_ALL_GCC.
25774         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
25775         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
25776         * modules/manywarnings: New file.
25777         * MODULES.html.sh: Mention manywarnings module.
25778
25779 2008-11-18  Bruno Haible  <bruno@clisp.org>
25780
25781         * doc/gnulib-tool.texi (Unit tests): New section.
25782
25783 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25784
25785         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
25786         paths like 'lib/po/foo.po'.
25787
25788 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25789
25790         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
25791         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
25792
25793 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25794
25795         * m4/warnings.m4: Use CPPFLAGS to really check whether the
25796         parameter works.
25797
25798 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25799
25800         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
25801
25802 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25803
25804         * modules/parse-duration-tests: New file.
25805         * tests/test-parse-duration.sh: New file.
25806         * tests/test-parse-duration.c: New file.
25807
25808         New module 'parse-duration'.
25809         * lib/parse-duration.h: New file.
25810         * lib/parse-duration.c: New file.
25811         * modules/parse-duration: New file.
25812
25813 2008-11-17  Bruno Haible  <bruno@clisp.org>
25814
25815         * tests/test-select-out.sh: Comment out the first pipe test.
25816         Reported by Simon Josefsson.
25817
25818 2008-11-17  Bruno Haible  <bruno@clisp.org>
25819
25820         * modules/getaddrinfo (Depends-on): Add servent, hostent.
25821         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
25822         gl_HOSTENT.
25823
25824 2008-11-17  Bruno Haible  <bruno@clisp.org>
25825
25826         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
25827         -lnetwork and -lnet. Needed for Haiku and BeOS.
25828
25829 2008-11-16  Bruno Haible  <bruno@clisp.org>
25830
25831         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
25832
25833 2008-11-16  Bruno Haible  <bruno@clisp.org>
25834
25835         Avoid test failure on Haiku.
25836         * tests/test-fsync.c: Include <errno.h>.
25837         (main): Don't require that fsync (0) fails.
25838
25839 2008-11-15  Bruno Haible  <bruno@clisp.org>
25840
25841         New module 'hostent'.
25842         * modules/hostent: New file.
25843         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
25844
25845 2008-11-15  Bruno Haible  <bruno@clisp.org>
25846
25847         New module 'servent'.
25848         * modules/servent: New file.
25849         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
25850
25851 2008-11-15  Bruno Haible  <bruno@clisp.org>
25852
25853         Avoid generating same test program with two different rules.
25854         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
25855         test-frexp to test-frexp-nolibm.
25856         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
25857         test-frexpl to test-frexpl-nolibm.
25858
25859 2008-11-15  Bruno Haible  <bruno@clisp.org>
25860
25861         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
25862         $(FREXPL_LIBM).
25863
25864 2008-11-15  Bruno Haible  <bruno@clisp.org>
25865
25866         * lib/netdb.in.h: Activate the definitions also when the system's
25867         <netdb.h> has 'struct addrinfo'.
25868         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
25869         EAI_OVERFLOW or AI_NUMERICSERV.
25870         * doc/posix-headers/netdb.texi: Document the problem.
25871
25872 2008-11-15  Bruno Haible  <bruno@clisp.org>
25873
25874         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
25875
25876         Make the 'sched' module work on platforms where <sched.h> exists but
25877         is incomplete (such as Haiku).
25878         * lib/sched.in.h; Include the system's <sched.h> if it exists.
25879         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
25880         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
25881         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
25882         HAVE_STRUCT_SCHED_PARAM.
25883         * modules/sched (Depends-on): Add include_next.
25884         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
25885         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
25886         * doc/posix-headers/sched.texi: Document the issue.
25887
25888 2008-11-13  Jim Meyering  <meyering@redhat.com>
25889
25890         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
25891         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
25892         test would fail due to the difference in the Report bugs to ...
25893         line.  The expected address is empty, "<>", while the actual
25894         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
25895
25896 2008-11-12  Bruno Haible  <bruno@clisp.org>
25897
25898         lstat: don't compile lstat.c on systems lacking lstat
25899         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
25900         which don't have lstat; this is handled by lib/sys_stat.in.h already.
25901         Reported by Daniel P. Berrange via Jim Meyering.
25902
25903 2008-11-12  Jim Meyering  <meyering@redhat.com>
25904
25905         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
25906
25907 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25908
25909         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
25910         instead.
25911
25912 2008-11-12  Bruno Haible  <bruno@clisp.org>
25913
25914         * lib/unicodeio.c: Include unistr.h.
25915         (utf8_wctomb): Remove function.
25916         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
25917
25918 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25919
25920         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
25921         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
25922         <bruno@clisp.org>.
25923         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
25924
25925 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25926
25927         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
25928         * doc/gnulib.texi: Add section for warnings.
25929
25930 2008-11-11  Bruno Haible  <bruno@clisp.org>
25931
25932         * lib/sockets.h: Add a comment.
25933
25934 2008-11-11  Karl Berry  <karl@gnu.org>
25935
25936         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
25937
25938 2008-11-11  Eric Blake  <ebb9@byu.net>
25939
25940         fdl.texi: avoid git symlinks
25941         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
25942
25943 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25944
25945         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
25946
25947 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25948
25949         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
25950         (gl_WARN_ADD): Substitute $2 if literal.
25951
25952 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25953
25954         * m4/warning.m4: Remove.
25955
25956 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25957
25958         * m4/warnings.m4: Almost complete rewrite. :-)
25959
25960 2008-11-10  Simon Josefsson  <simon@josefsson.org>
25961
25962         * modules/warnings: New module.
25963         * m4/warnings.m4: New file.
25964         * MODULES.html.sh: Mention warnings module.
25965         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
25966         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25967
25968 2008-11-10  Eric Blake  <ebb9@byu.net>
25969
25970         fdl.texi: make a symlink to the latest version
25971         * doc/standards.texi: Revert today's earlier change.
25972         * doc/fdl-1.2.texi: Rename from old fdl.texi...
25973         * doc/fdl.texi: ...and replace this with a symlink to the newer
25974         fdl-1.3.texi.
25975
25976 2008-11-10  Bruno Haible  <bruno@clisp.org>
25977
25978         * tests/test-select-fd.c (main): Accept the result file name as fourth
25979         argument.
25980         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
25981         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
25982
25983 2008-11-10  Bruno Haible  <bruno@clisp.org>
25984
25985         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
25986         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
25987         as autoconf-substituted macros.
25988         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
25989         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
25990         gl_NETDB_H_DEFAULTS. Set these variables.
25991         * modules/netdb (Makefile.am): Substitute these variables.
25992
25993 2008-11-10  Eric Blake  <ebb9@byu.net>
25994
25995         standards.texi: include correct file for FDL 1.3
25996         * doc/standards.texi (GNU Free Documentation License): Change
25997         include file to pull in FDL 1.3, not 1.2.
25998
25999         fdl.texi: revert accidental change to license
26000         * doc/fdl.texi: This is FDL 1.2, not 1.3.
26001
26002 2008-11-10  Bruno Haible  <bruno@clisp.org>
26003
26004         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
26005         cross-compiling guesses also when the native compile gives no result.
26006
26007 2008-11-10  Bruno Haible  <bruno@clisp.org>
26008
26009         * lib/spawni.c (__spawni): Force variable into the stack.
26010
26011 2008-11-10  Bruno Haible  <bruno@clisp.org>
26012
26013         Add support for Haiku.
26014         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
26015         glibc and BeOS, but also on Haiku.
26016         * lib/fpurge.c (fpurge): Likewise.
26017         * lib/freadable.c (freadable): Likewise.
26018         * lib/freadahead.c (freadahead): Likewise.
26019         * lib/freading.c (freading): Likewise.
26020         * lib/freadptr.c (freadptr): Likewise.
26021         * lib/freadseek.c (freadptrinc): Likewise.
26022         * lib/fseeko.c (rpl_fseeko): Likewise.
26023         * lib/fseterr.c (fseterr): Likewise.
26024         * lib/fwritable.c (fwritable): Likewise.
26025         * lib/fwriting.c (fwriting): Likewise.
26026         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
26027
26028 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26029
26030         * lib/config.charset: Treat Haiku like BeOS.
26031
26032 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26033
26034         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
26035         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
26036
26037 2008-11-08  Bruno Haible  <bruno@clisp.org>
26038
26039         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
26040         AC_CACHE_CHECK.
26041
26042 2008-11-08  Bruno Haible  <bruno@clisp.org>
26043
26044         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
26045
26046 2008-11-08  Bruno Haible  <bruno@clisp.org>
26047
26048         * tests/test-select-fd.c: New file.
26049         * tests/test-select-in.sh: New file.
26050         * tests/test-select-out.sh: New file.
26051         * tests/test-select-stdin.c: New file.
26052         * modules/select-tests (Files): Add the new files.
26053         (Depends-on): Add gettimeofday.
26054         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
26055         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
26056         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
26057
26058 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
26059             Bruno Haible  <bruno@clisp.org>
26060
26061         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
26062
26063 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
26064
26065         * build-aux/pmccabe2html: Added support for C++ source files.
26066
26067 2008-11-05  Ben Pfaff  <blp@gnu.org>
26068
26069         Fix lib/close.c build on Windows.
26070         * modules/close (Files): Add lib/w32sock.h.
26071
26072 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
26073
26074         Accept Bison's NEWS format.
26075         * build-aux/announce-gen (print_news_deltas): Tweak
26076         $re_prefix.
26077
26078 2008-11-04  Bruno Haible  <bruno@clisp.org>
26079
26080         * modules/random_r (Maintainer): Add glibc.
26081
26082 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26083
26084         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
26085         by karl@freefriends.org (Karl Berry).
26086         * doc/alloca.texi: Likewise.
26087         * doc/c-ctype.texi: Likewise.
26088         * doc/c-strcase.texi: Likewise.
26089         * doc/c-strcaseeq.texi: Likewise.
26090         * doc/c-strcasestr.texi: Likewise.
26091         * doc/c-strstr.texi: Likewise.
26092         * doc/c-strtod.texi: Likewise.
26093         * doc/c-strtold.texi: Likewise.
26094         * doc/ctime.texi: Likewise.
26095         * doc/error.texi: Likewise.
26096         * doc/fdl.texi: Likewise.
26097         * doc/gcd.texi: Likewise.
26098         * doc/getdate.texi: Likewise.
26099         * doc/gnulib-intro.texi: Likewise.
26100         * doc/gnulib-tool.texi: Likewise.
26101         * doc/gnulib.texi: Likewise.
26102         * doc/inet_ntoa.texi: Likewise.
26103         * doc/maintain.texi: Likewise.
26104         * doc/make-stds.texi: Likewise.
26105         * doc/quote.texi: Likewise.
26106         * doc/regexprops-generic.texi: Likewise.
26107         * doc/standards.texi: Likewise.
26108         * doc/verify.texi: Likewise.
26109         * doc/visibility.texi: Likewise.
26110         * doc/gnulib.texi (GNU Free Documentation License): Include
26111         fdl-1.3.texi instead of fdl.texi.
26112
26113 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26114
26115         * doc/fdl-1.3.texi: New file, from
26116         <http://www.gnu.org/licenses/fdl-1.3.texi>.
26117         * modules/fdl-1.3: Add.
26118         * MODULES.html.sh: Add fdl-1.3.
26119
26120 2008-11-03  Bruno Haible  <bruno@clisp.org>
26121
26122         Make determination of absolute name of header file work with AIX xlc.
26123         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
26124         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
26125         preprocessing.
26126         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26127         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
26128
26129 2008-11-03  Simon Josefsson  <simon@josefsson.org>
26130
26131         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
26132         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
26133         <ludo@gnu.org>.
26134
26135 2008-11-02  Bruno Haible  <bruno@clisp.org>
26136
26137         Mark 'strpbrk' obsolete.
26138         * modules/strpbrk (Status, Notice): New sections.
26139         * modules/strtok_r (Depends-on): Add strpbrk.
26140
26141 2008-11-02  Bruno Haible  <bruno@clisp.org>
26142
26143         Mark 'strdup' obsolete.
26144         * modules/strdup (Status, Notice): New sections.
26145         * modules/findprog (Depends-on): Add strdup.
26146         * modules/getaddrinfo (Depends-on): Likewise.
26147         * modules/localename (Depends-on): Likewise.
26148         * modules/relocatable-lib (Depends-on): Likewise.
26149         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
26150         * modules/relocatable-prog (Depends-on): Likewise.
26151         * modules/trim (Depends-on): Likewise.
26152         * modules/unictype/gen-ctype (Depends-on): Likewise.
26153         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26154
26155 2008-11-02  Bruno Haible  <bruno@clisp.org>
26156
26157         Mark 'strcspn' obsolete.
26158         * modules/strcspn (Status, Notice): New sections.
26159
26160 2008-11-02  Bruno Haible  <bruno@clisp.org>
26161
26162         Mark 'rmdir' obsolete.
26163         * modules/rmdir (Status, Notice): New sections.
26164         * modules/clean-temp (Depends-on): Add rmdir.
26165         * modules/openat (Depends-on): Likewise.
26166
26167 2008-11-02  Bruno Haible  <bruno@clisp.org>
26168
26169         Mark 'raise' obsolete.
26170         * modules/raise (Status, Notice): New sections.
26171         (Include): Specify <signal.h>.
26172         * modules/stdio (Depends-on): Add raise.
26173         * modules/write (Depends-on): Likewise.
26174
26175 2008-11-02  Bruno Haible  <bruno@clisp.org>
26176
26177         Mark 'memset' obsolete.
26178         * modules/memset (Status, Notice): New sections.
26179
26180 2008-11-02  Bruno Haible  <bruno@clisp.org>
26181
26182         Mark 'memmove' obsolete.
26183         * modules/memmove (Status, Notice): New sections.
26184         * modules/argp (Depends-on): Add memmove.
26185         * modules/argz (Depends-on): Likewise.
26186         * modules/canonicalize (Depends-on): Likewise.
26187         * modules/canonicalize-lgpl (Depends-on): Likewise.
26188         * modules/fts (Depends-on): Likewise.
26189         * modules/getcwd (Depends-on): Likewise.
26190         * modules/human (Depends-on): Likewise.
26191         * modules/regex (Depends-on): Likewise.
26192         * modules/striconveh (Depends-on): Likewise.
26193         * modules/trim (Depends-on): Likewise.
26194         * modules/unistr/u8-move (Depends-on): Likewise.
26195         * modules/unistr/u16-move (Depends-on): Likewise.
26196         * modules/unistr/u32-move (Depends-on): Likewise.
26197
26198 2008-11-02  Bruno Haible  <bruno@clisp.org>
26199
26200         Mark 'memcpy' obsolete.
26201         * modules/memcpy (Status, Notice): New sections.
26202
26203 2008-11-02  Bruno Haible  <bruno@clisp.org>
26204
26205         Mark 'memcmp' obsolete.
26206         * modules/memcmp (Status, Notice): New sections.
26207         * modules/argmatch (Depends-on): Add memchr.
26208         * modules/backupfile (Depends-on): Likewise.
26209         * modules/c-strcasestr (Depends-on): Likewise.
26210         * modules/crypto/des (Depends-on): Likewise.
26211         * modules/csharpcomp (Depends-on): Likewise.
26212         * modules/fnmatch (Depends-on): Likewise.
26213         * modules/git-merge-changelog (Depends-on): Likewise.
26214         * modules/isnand (Depends-on): Likewise.
26215         * modules/isnand-nolibm (Depends-on): Likewise.
26216         * modules/isnanf (Depends-on): Likewise.
26217         * modules/isnanf-nolibm (Depends-on): Likewise.
26218         * modules/isnanl (Depends-on): Likewise.
26219         * modules/isnanl-nolibm (Depends-on): Likewise.
26220         * modules/mbchar (Depends-on): Likewise.
26221         * modules/memcoll (Depends-on): Likewise.
26222         * modules/quotearg (Depends-on): Likewise.
26223         * modules/regex (Depends-on): Likewise.
26224         * modules/relocatable-prog (Depends-on): Likewise.
26225         * modules/same (Depends-on): Likewise.
26226         * modules/signbit (Depends-on): Likewise.
26227         * modules/strcasestr-simple (Depends-on): Likewise.
26228         * modules/unictype/gen-ctype (Depends-on): Likewise.
26229         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26230         * modules/uniname/uniname (Depends-on): Likewise.
26231         * modules/unistr/u8-cmp (Depends-on): Likewise.
26232
26233 2008-11-02  Bruno Haible  <bruno@clisp.org>
26234
26235         Mark 'memchr' obsolete.
26236         * modules/memchr (Status, Notice): New sections.
26237         * modules/argp (Depends-on): Add memchr.
26238         * modules/base64 (Depends-on): Likewise.
26239         * modules/c-strcasestr (Depends-on): Likewise.
26240         * modules/chdir-long (Depends-on): Likewise.
26241         * modules/fnmatch (Depends-on): Likewise.
26242         * modules/getsubopt (Depends-on): Likewise.
26243         * modules/git-merge-changelog (Depends-on): Likewise.
26244         * modules/glob (Depends-on): Likewise.
26245         * modules/strcasestr-simple (Depends-on): Likewise.
26246         * modules/strnlen (Depends-on): Likewise.
26247
26248 2008-11-02  Bruno Haible  <bruno@clisp.org>
26249
26250         Mark 'atexit' obsolete.
26251         * modules/atexit (Status, Notice): New sections.
26252         * modules/chdir-long (Depends-on): Add atexit.
26253         * modules/wait-process (Depends-on): Likewise.
26254
26255 2008-11-02  Bruno Haible  <bruno@clisp.org>
26256
26257         * gnulib-tool: New option --with-obsolete.
26258         (func_usage): Document it.
26259         (func_modules_transitive_closure): Drop obsolete dependencies if
26260         incobsolete is not true.
26261         (func_import): Read and save the incobsolete variable to the cache.
26262
26263 2008-11-02  Bruno Haible  <bruno@clisp.org>
26264
26265         * modules/TEMPLATE-EXTENDED: New field 'Status'.
26266         * gnulib-tool: New option --extract-status.
26267         (func_usage): Document it.
26268         (sed_extract_prog): Recognize it.
26269         (func_get_status): New function.
26270
26271 2008-10-30  Simon Josefsson  <simon@josefsson.org>
26272
26273         * modules/sockets (License): Change from LGPL to LGPLv2+.
26274
26275 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26276
26277         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
26278
26279 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26280
26281         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26282         Mention times and sys_times.
26283         * modules/sys_times, modules/sys_times-tests: New modules.
26284         * modules/times, modules/times-tests: Likewise
26285         * m4/sys_times_h.m4: New file.
26286         * lib/sys_times.in.h: Likewise
26287         * lib/times.c: Likewise.
26288         * tests/test-sys_times.c: Likewise.
26289         * tests/test-times.c: Likewise.
26290         * doc/posix-headers/sys_times.texi: Update.
26291         * doc/posix-functions/times.texi: Update.
26292
26293 2008-10-28  Jim Meyering  <meyering@redhat.com>
26294
26295         * modules/tempname (Depends-on): Add lstat.
26296
26297         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
26298
26299 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26300
26301         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
26302         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
26303         using idiom used elsewhere in gnulib.
26304
26305 2008-10-27  Jim Meyering  <meyering@redhat.com>
26306
26307         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
26308
26309 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26310
26311         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
26312         TESTS_ENVIRONMENT, for shell scripts that needs to call built
26313         programs.
26314         * tests/test-argp-2.sh: Use $EXEEXT when needed.
26315
26316 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26317
26318         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
26319
26320 2008-10-27  Bruno Haible  <bruno@clisp.org>
26321
26322         * tests/test-lstat.c: Include <stdio.h>.
26323
26324 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26325
26326         * modules/lstat-tests: New module.
26327         * tests/test-lstat.c: New file.
26328
26329 2008-10-26  Jim Meyering  <meyering@redhat.com>
26330
26331         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
26332
26333 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26334             Bruno Haible  <bruno@clisp.org>
26335
26336         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
26337         * modules/configmake (Include): Add a note that the include must come
26338         after all system headers.
26339         * lib/javaversion.c: Include configmake.h after all other includes.
26340
26341 2008-10-26  Bruno Haible  <bruno@clisp.org>
26342
26343         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
26344         HAVE_STRUCT_RANDOM_DATA to 1.
26345         (gl_STDLIB_H): Simplify.
26346
26347 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26348
26349         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
26350         substitute HAVE_STRUCT_RANDOM_DATA.
26351         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
26352         random_data.
26353         * modules/stdlib (Makefile.am): Substitute
26354         HAVE_STRUCT_RANDOM_DATA.
26355
26356 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26357
26358         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
26359         * doc/gnulib-intro.texi (Copyright): Likewise.
26360
26361 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26362
26363         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
26364         findings.
26365
26366 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
26367             Bruno Haible  <bruno@clisp.org>
26368
26369         * lib/unistd.in.h: Include <winsock2.h>.
26370         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
26371         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
26372         Provide dummy declarations.
26373         (gethostname): Override.
26374         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
26375         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
26376         gl_PREREQ_SYS_H_WINSOCK2.
26377         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
26378         * doc/posix-functions/gethostname.texi: More details.
26379
26380 2008-10-25  Bruno Haible  <bruno@clisp.org>
26381
26382         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
26383         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
26384         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
26385
26386         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
26387         here ...
26388         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
26389         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
26390         gl_UNISTD_H_DEFAULTS.
26391
26392 2008-10-25  Eric Blake  <ebb9@byu.net>
26393
26394         signbit: avoid spurious compiler failure
26395         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
26396         declarations inside function.
26397
26398 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26399             Bruno Haible  <bruno@clisp.org>
26400
26401         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
26402         * modules/random_r (Depends-on): Add stdint.
26403
26404 2008-10-24  Bruno Haible  <bruno@clisp.org>
26405
26406         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
26407         Eggert.
26408         * modules/strerror (License): Likewise.
26409
26410 2008-10-24  Jim Meyering  <meyering@redhat.com>
26411
26412         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
26413         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
26414
26415 2008-10-24  Eric Blake  <ebb9@byu.net>
26416
26417         getgroups: fix compilation when getgroups is available
26418         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
26419         but with <config.h> override of getgroups disabled.
26420
26421 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26422
26423         * doc/gnulib.texi (Header files): Add note about C++ problems.
26424         Explained by Bruno Haible <bruno@clisp.org>.
26425
26426 2008-10-23  Bruno Haible  <bruno@clisp.org>
26427
26428         Define a dummy SA_NODEFER macro on Interix.
26429         * lib/signal.in.h (SA_NODEFER): Define fallback.
26430         Reported by Aleksey Cheusov <cheusov@tut.by> via
26431         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
26432
26433 2008-10-23  Bruno Haible  <bruno@clisp.org>
26434
26435         * modules/freadahead (License): Change to LGPLv2+.
26436         Suggested by Simon Josefsson.
26437
26438 2008-10-23  Jim Meyering  <meyering@redhat.com>
26439
26440         random_r: new module
26441         * modules/random_r: New file.
26442         * m4/random_r.m4: New file.
26443         * lib/random_r.c: New file, from glibc.
26444         * modules/random_r-tests: New file.
26445         * tests/test-random_r.c: New file.
26446         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
26447          Declare.
26448         (RAND_MAX): Define.
26449         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
26450         * modules/stdlib: Substitute them, too.
26451         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
26452         * doc/glibc-functions/initstate_r.texi: Mention the new module.
26453         * doc/glibc-functions/random_r.texi: Likewise.
26454         * doc/glibc-functions/setstate_r.texi: Likewise.
26455         * doc/glibc-functions/srandom_r.texi: Likewise.
26456         * config/srclist.txt: Mention it.
26457
26458 2008-10-23  David Lutterkort  <lutter@redhat.com>
26459
26460         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
26461         link requirement
26462
26463 2008-10-23  Jim Meyering  <meyering@redhat.com>
26464
26465         selinux-h: mark parameters of stub functions as intentionally unused
26466         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
26467         * lib/se-context.in.h: Likewise.
26468
26469 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26470
26471         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
26472
26473 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26474
26475         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
26476
26477 2008-10-22  Eric Blake  <ebb9@byu.net>
26478
26479         glthread/thread: avoid compiler warning
26480         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
26481         Add unreachable abort to silence compiler.
26482
26483 2008-10-22  Eric Blake  <ebb9@byu.net>
26484
26485         netdb: also supply struct addrinfo for cygwin 1.5.x
26486         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
26487         older cygwin.
26488         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
26489         cygwin.
26490         * doc/posix-headers/netdb.texi (netdb.h): Document this.
26491
26492 2008-10-22  Bruno Haible  <bruno@clisp.org>
26493
26494         * users.txt: Update entry about pspp.
26495
26496 2008-10-21  Bruno Haible  <bruno@clisp.org>
26497
26498         Simplification.
26499         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
26500         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
26501
26502         Simplification.
26503         * lib/ioctl.c (ioctl): Don't undefine.
26504         * lib/socket.c (socket): Don't undefine.
26505
26506         Remove unused module indicator macros.
26507         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
26508         GNULIB_$1 as a C macro.
26509
26510         * doc/posix-functions/close.texi: Undo last change.
26511         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
26512         Windows platforms.
26513
26514 2008-10-21  Bruno Haible  <bruno@clisp.org>
26515
26516         Add gethostname() declaration to <unistd.h>.
26517         * lib/unistd.in.h (gethostname): New declaration.
26518         * lib/gethostname.c: Include <unistd.h>.
26519         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
26520         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
26521         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
26522         and HAVE_GETHOSTNAME.
26523         * modules/gethostname (Depends-on): Add unistd.
26524         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26525         (Include): Specify <unistd.h>.
26526         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
26527         HAVE_GETHOSTNAME.
26528         * tests/test-gethostname.c: Include <unistd.h> first.
26529
26530 2008-10-21  Bruno Haible  <bruno@clisp.org>
26531
26532         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
26533         * modules/select-tests (Depends-on): Likewise.
26534         Reported by Simon Josefsson.
26535
26536 2008-10-21  Simon Josefsson  <simon@josefsson.org>
26537
26538         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
26539         * lib/accept.c: New file, based on winsock.c.
26540         * lib/bind.c: New file, based on winsock.c.
26541         * lib/connect.c: New file, based on winsock.c.
26542         * lib/getpeername.c: New file, based on winsock.c.
26543         * lib/getsockname.c: New file, based on winsock.c.
26544         * lib/getsockopt.c: New file, based on winsock.c.
26545         * lib/ioctl.c: New file, based on winsock.c.
26546         * lib/listen.c: New file, based on winsock.c.
26547         * lib/recv.c: New file, based on winsock.c.
26548         * lib/recvfrom.c: New file, based on winsock.c.
26549         * lib/send.c: New file, based on winsock.c.
26550         * lib/sendto.c: New file, based on winsock.c.
26551         * lib/setsockopt.c: New file, based on winsock.c.
26552         * lib/shutdown.c: New file, based on winsock.c.
26553         * lib/socket.c: New file, based on winsock.c.
26554         * lib/w32sock.h: New file, based on winsock.c.
26555         * lib/winsock.c: Remove file.
26556         * modules/accept: Likewise.
26557         * modules/bind: Likewise.
26558         * modules/connect: Likewise.
26559         * modules/getpeername: Likewise.
26560         * modules/getsockname: Likewise.
26561         * modules/getsockopt: Likewise.
26562         * modules/ioctl: Likewise.
26563         * modules/listen: Likewise.
26564         * modules/recv: Likewise.
26565         * modules/recvfrom: Likewise.
26566         * modules/send: Likewise.
26567         * modules/sendto: Likewise.
26568         * modules/setsockopt: Likewise.
26569         * modules/shutdown: Likewise.
26570         * modules/socket: Use socket.c instead of winsock.c.
26571         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
26572         * doc/posix-functions/accept.texi: Doc fix.
26573         * doc/posix-functions/bind.texi: Doc fix.
26574         * doc/posix-functions/close.texi: Doc fix.
26575         * doc/posix-functions/connect.texi: Doc fix.
26576         * doc/posix-functions/getpeername.texi: Doc fix.
26577         * doc/posix-functions/getsockname.texi: Doc fix.
26578         * doc/posix-functions/getsockopt.texi: Doc fix.
26579         * doc/posix-functions/ioctl.texi: Doc fix.
26580         * doc/posix-functions/listen.texi: Doc fix.
26581         * doc/posix-functions/recv.texi: Doc fix.
26582         * doc/posix-functions/recvfrom.texi: Doc fix.
26583         * doc/posix-functions/send.texi: Doc fix.
26584         * doc/posix-functions/sendto.texi: Doc fix.
26585         * doc/posix-functions/setsockopt.texi: Doc fix.
26586         * doc/posix-functions/shutdown.texi: Doc fix.
26587         * doc/posix-functions/socket.texi: Doc fix.
26588
26589 2008-10-20  Bruno Haible  <bruno@clisp.org>
26590
26591         Take into account the role of SIGABRT_COMPAT on Windows 2008.
26592         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
26593         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
26594         as an alias for SIGABRT.
26595         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
26596         (sigaction): Map it to SIGABRT.
26597         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
26598
26599 2008-10-20  Bruno Haible  <bruno@clisp.org>
26600
26601         * lib/fts.c: Don't include lstat.h.
26602         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
26603
26604         Move the lstat() declaration to <sys/stat.h>.
26605         * lib/lstat.h: Remove file.
26606         * lib/sys_stat.in.h: Add special invocation convention.
26607         (lstat): New declaration.
26608         * lib/lstat.c (orig_lstat): New function.
26609         (rpl_lstat): Use orig_lstat instead of lstat.
26610         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
26611         AC_C_INLINE. Set REPLACE_LSTAT.
26612         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
26613         and REPLACE_LSTAT.
26614         * modules/lstat (Files): Remove lib/lstat.h.
26615         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26616         (Include): Specify <sys/stat.h> instead of lstat.h.
26617         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
26618         REPLACE_LSTAT.
26619         * NEWS: Mention the change.
26620
26621 2008-10-20  Bruno Haible  <bruno@clisp.org>
26622
26623         * modules/posix_spawn-tests: New file.
26624         * tests/test-posix_spawn3.c: New file.
26625
26626 2008-10-20  Bruno Haible  <bruno@clisp.org>
26627
26628         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
26629         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26630         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
26631         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26632         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
26633
26634 2008-10-20  Bruno Haible  <bruno@clisp.org>
26635
26636         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
26637         of posix_spawn on AIX 5.3.
26638
26639 2008-10-20  Bruno Haible  <bruno@clisp.org>
26640
26641         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
26642
26643 2008-10-20  Bruno Haible  <bruno@clisp.org>
26644
26645         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
26646         of AC_LANG_PROGRAM.
26647
26648 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26649
26650         * lib/netdb.in.h: Don't define GNU specific constants until they
26651         are supported or needed.  Reported by Bruno Haible
26652         <bruno@clisp.org>.
26653
26654 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26655
26656         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
26657
26658 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26659
26660         * lib/getaddrinfo.h: Remove file.
26661         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
26662         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
26663         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
26664         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
26665         * modules/netdb: Substitute GNULIB_GETADDRINFO.
26666         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
26667         * tests/test-getaddrinfo.c: Likewise.
26668         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
26669         * NEWS: Mention change.
26670
26671 2008-10-19  Bruno Haible  <bruno@clisp.org>
26672
26673         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
26674
26675 2008-10-19  Bruno Haible  <bruno@clisp.org>
26676
26677         * lib/wait-process.c: Include simply <sys/wait.h>.
26678         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
26679         WIFSTOPPED): Remove fallback definitions.
26680         * modules/wait-process (Depends-on): Add sys_wait.
26681
26682         New module 'sys_wait'.
26683         * modules/sys_wait: New file.
26684         * lib/sys_wait.in.h: New file, partially copied from
26685         lib/wait-process.c.
26686         * m4/sys_wait_h.m4: New file.
26687         * doc/posix-headers/sys_wait.texi: Mention the new module.
26688
26689 2008-10-19  Bruno Haible  <bruno@clisp.org>
26690
26691         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
26692
26693 2008-10-19  Bruno Haible  <bruno@clisp.org>
26694
26695         Assume that waitpid() fills an 'int' status, not a 'union wait'.
26696         * lib/wait-process.c (WAIT_T): Remove type.
26697         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
26698         (wait_subprocess): Update.
26699
26700 2008-10-19  Bruno Haible  <bruno@clisp.org>
26701
26702         New module 'atoll'.
26703         * modules/atoll: New file.
26704         * lib/stdlib.in.h (atoll): New declaration.
26705         * lib/atoll.c: New file, from glibc with modifications.
26706         * m4/atoll.m4: New file.
26707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
26708         HAVE_ATOLL.
26709         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
26710         * doc/posix-functions/atoll.texi: Mention the new module.
26711
26712 2008-10-19  Bruno Haible  <bruno@clisp.org>
26713
26714         Add strtoull() declaration to <stdlib.h>.
26715         * lib/stdlib.in.h (strtoull): New declaration.
26716         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26717         Set HAVE_STRTOULL.
26718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
26719         HAVE_STRTOULL.
26720         * modules/strtoull (Depends-on): Add stdlib.
26721         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26722         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
26723         HAVE_STRTOULL.
26724
26725 2008-10-19  Bruno Haible  <bruno@clisp.org>
26726
26727         Add strtoll() declaration to <stdlib.h>.
26728         * lib/stdlib.in.h (strtoll): New declaration.
26729         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26730         Set HAVE_STRTOLL.
26731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
26732         HAVE_STRTOLL.
26733         * modules/strtoll (Depends-on): Add stdlib.
26734         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26735         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
26736
26737 2008-10-19  Bruno Haible  <bruno@clisp.org>
26738
26739         * modules/bcopy (Depends-on): Add strings.
26740         (Include): Specify <strings.h>.
26741
26742 2008-10-19  Bruno Haible  <bruno@clisp.org>
26743
26744         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
26745
26746 2008-10-19  Bruno Haible  <bruno@clisp.org>
26747
26748         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
26749         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
26750         mingw.
26751
26752 2008-10-19  Bruno Haible  <bruno@clisp.org>
26753
26754         * lib/atanl.c: Don't include isnanl.h.
26755         * lib/cosl.c: Likewise.
26756         * lib/ldexpl.c: Likewise.
26757         * lib/logl.c: Likewise.
26758         * lib/sinl.c: Likewise.
26759         * lib/sqrtl.c: Likewise.
26760         * lib/tanl.c: Likewise.
26761
26762         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
26763         * lib/isnanf.h: Remove file.
26764         * lib/isnand.h: Remove file.
26765         * lib/isnanl.h: Remove file.
26766         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
26767         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
26768         macros.
26769         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
26770         HAVE_ISNANF, don't define it as a C macro.
26771         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
26772         HAVE_ISNAND, don't define it as a C macro.
26773         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
26774         HAVE_ISNANL, don't define it as a C macro.
26775         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
26776         HAVE_ISNAN[FDL].
26777         * modules/isnanf (Files): Remove lib/isnanf.h.
26778         (Depends-on): Add math.
26779         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26780         (Include): Specify <math.h> instead of isnanf.h.
26781         * modules/isnand (Files): Remove lib/isnand.h.
26782         (Depends-on): Add math.
26783         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26784         (Include): Specify <math.h> instead of isnand.h.
26785         * modules/isnanl (Files): Remove lib/isnanl.h.
26786         (Depends-on): Add math.
26787         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26788         (Include): Specify <math.h> instead of isnanl.h.
26789         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
26790         HAVE_ISNAN[FDL].
26791         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
26792         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
26793         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
26794         * NEWS: Mention the change.
26795
26796 2008-10-18  Bruno Haible  <bruno@clisp.org>
26797
26798         Add getusershell(), setusershell(), endusershell() declarations to
26799         <unistd.h>.
26800         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
26801         declarations.
26802         * lib/getusershell.c: Include unistd.h.
26803         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
26804         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26805         HAVE_GETUSERSHELL.
26806         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
26807         and HAVE_GETUSERSHELL.
26808         * modules/getusershell (Depends-on): Add unistd, extensions.
26809         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26810         (Include): Specify <unistd.h>.
26811         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
26812         HAVE_GETUSERSHELL.
26813
26814 2008-10-18  Bruno Haible  <bruno@clisp.org>
26815
26816         Add a getloadavg() declaration to <stdlib.h>.
26817         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
26818         getloadavg declaration.
26819         (getloadavg): New declaration.
26820         * lib/getloadavg.c: Include <stdlib.h> first.
26821         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
26822         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
26823         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
26824         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
26825         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
26826         * modules/getloadavg (Depends-on): Add stdlib, extensions.
26827         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26828         (Include): Specify <stdlib.h>.
26829         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
26830         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
26831
26832 2008-10-18  Bruno Haible  <bruno@clisp.org>
26833
26834         * lib/dirchownmod.c: Don't include lchmod.h.
26835
26836         Move the lchmod() declaration to <sys/stat.h>.
26837         * lib/lchmod.h: Remove file.
26838         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
26839         (lchmod): New declaration, moved here from lib/lchown.h.
26840         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
26841         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
26842         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
26843         and HAVE_LCHMOD.
26844         * modules/lchmod (Files): Remove lib/lchmod.h.
26845         (Depends-on): Add sys_stat, extensions.
26846         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26847         (Include): Specify <sys/stat.h> instead of lchmod.h.
26848         * modules/sys_stat (Depends-on): Add link-warning.
26849         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
26850         definition of GL_LINK_WARNING.
26851         * NEWS: Mention the change.
26852
26853 2008-10-18  Bruno Haible  <bruno@clisp.org>
26854
26855         * lib/fchdir.c: Don't include dirfd.h.
26856         * lib/fts.c: Likewise.
26857         * lib/getcwd.c: Likewise.
26858         * lib/glob.c: Likewise.
26859
26860         Move the dirfd() declaration to <dirent.h>.
26861         * lib/dirfd.h: Remove file.
26862         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
26863         (dirfd): New declaration.
26864         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
26865         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
26866         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
26867         HAVE_DECL_DIRFD.
26868         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
26869         HAVE_DECL_DIRFD.
26870         * modules/dirfd (Files): Remove lib/dirfd.h.
26871         (Depends-on): Add dirent, extensions.
26872         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
26873         (Include): Specify <dirent.h> instead of dirfd.h.
26874         * modules/dirent (Depends-on): Add link-warning.
26875         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
26876         definition of GL_LINK_WARNING.
26877         * NEWS: Mention the change.
26878
26879 2008-10-18  Bruno Haible  <bruno@clisp.org>
26880
26881         Move the euidaccess() declaration to <unistd.h>.
26882         * lib/euidaccess.h: Remove file.
26883         * lib/unistd.in.h (euidaccess): New declaration.
26884         * lib/euidaccess.c: Don't include euidaccess.h.
26885         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
26886         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
26887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
26888         and HAVE_EUIDACCESS.
26889         * modules/euidaccess (Files): Remove lib/euidaccess.h.
26890         (Depends-on): Add unistd.
26891         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26892         (Include): Specify <unistd.h> instead of euidaccess.h.
26893         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
26894         HAVE_EUIDACCESS.
26895         * NEWS: Mention the change.
26896
26897 2008-10-18  Bruno Haible  <bruno@clisp.org>
26898
26899         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
26900
26901         Move the getdomainname() declaration to <unistd.h>.
26902         * lib/getdomainname.h: Remove file.
26903         * lib/unistd.in.h (getdomainname): New declaration.
26904         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
26905         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26906         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26907         HAVE_GETDOMAINNAME.
26908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26909         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
26910         * modules/getdomainname (Files): Remove lib/getdomainname.h.
26911         (Depends-on): Add unistd, extensions.
26912         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26913         (Includes): Specify <unistd.h> instead of getdomainname.h.
26914         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
26915         HAVE_GETDOMAINNAME.
26916         * NEWS: Mention the change.
26917
26918 2008-10-18  Bruno Haible  <bruno@clisp.org>
26919
26920         * modules/dirent: New file.
26921         * m4/dirent_h.m4: New file.
26922         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
26923         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
26924         * modules/fchdir (Files): Remove lib/dirent.in.h.
26925         (Depends-on): Add dirent.
26926         (Makefile.am): Move rules to modules/dirent.
26927         * doc/posix-headers/dirent.texi: Mention the new module.
26928
26929 2008-10-18  Bruno Haible  <bruno@clisp.org>
26930
26931         Avoid -Wunused-parameter warnings in public gnulib header files.
26932         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
26933         macro.
26934         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
26935
26936 2008-10-18  Bruno Haible  <bruno@clisp.org>
26937
26938         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
26939         * doc/glibc-functions/error.texi: Mention the module 'error'.
26940         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
26941         * doc/glibc-functions/getdomainname.texi: Mention the module
26942         'getdomainname'.
26943         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
26944         * doc/glibc-functions/getpagesize.texi: Mention the module
26945         'getpagesize'.
26946         * doc/glibc-functions/getusershell.texi: Mention the module
26947         'getusershell'.
26948         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
26949         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
26950         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
26951         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
26952         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
26953         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
26954         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
26955         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
26956         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
26957         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
26958         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
26959         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
26960         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
26961         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
26962
26963 2008-10-17  Bruno Haible  <bruno@clisp.org>
26964
26965         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
26966         HP-UX and IRIX, use -0.0L.
26967         * tests/test-ceill.c (minus_zero): Likewise.
26968         * tests/test-floorl.c (minus_zero): Likewise.
26969         * tests/test-frexpl.c (minus_zero): Likewise.
26970         * tests/test-isnan.c (minus_zerol): Likewise.
26971         * tests/test-isnanl.h (minus_zero): Likewise.
26972         * tests/test-ldexpl.c (minus_zero): Likewise.
26973         * tests/test-roundl.c (minus_zero): Likewise.
26974         * tests/test-signbit.c (minus_zerol): Likewise.
26975         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
26976         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
26977         * tests/test-truncl.c (minus_zero): Likewise.
26978         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
26979         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
26980         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
26981         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
26982
26983 2008-10-17  Bruno Haible  <bruno@clisp.org>
26984
26985         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
26986         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
26987         that it gets activated only for gcc >= 3.0.
26988         * lib/dirent.in.h: Likewise.
26989         * lib/errno.in.h: Likewise.
26990         * lib/fcntl.in.h: Likewise.
26991         * lib/float.in.h: Likewise.
26992         * lib/iconv.in.h: Likewise.
26993         * lib/inttypes.in.h: Likewise.
26994         * lib/locale.in.h: Likewise.
26995         * lib/math.in.h: Likewise.
26996         * lib/netdb.in.h: Likewise.
26997         * lib/netinet_in.in.h: Likewise.
26998         * lib/search.in.h: Likewise.
26999         * lib/signal.in.h: Likewise.
27000         * lib/spawn.in.h: Likewise.
27001         * lib/stdarg.in.h: Likewise.
27002         * lib/stdint.in.h: Likewise.
27003         * lib/stdio.in.h: Likewise.
27004         * lib/stdlib.in.h: Likewise.
27005         * lib/string.in.h: Likewise.
27006         * lib/strings.in.h: Likewise.
27007         * lib/sys_file.in.h: Likewise.
27008         * lib/sys_ioctl.in.h: Likewise.
27009         * lib/sys_select.in.h: Likewise.
27010         * lib/sys_socket.in.h: Likewise.
27011         * lib/sys_stat.in.h: Likewise.
27012         * lib/sys_time.in.h: Likewise.
27013         * lib/sysexits.in.h: Likewise.
27014         * lib/time.in.h: Likewise.
27015         * lib/unistd.in.h: Likewise.
27016         * lib/wchar.in.h: Likewise.
27017         * lib/wctype.in.h: Likewise.
27018         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27019
27020 2008-10-17  Jim Meyering  <meyering@redhat.com>
27021
27022         ignore-value: don't depend on inline module
27023         * modules/ignore-value (Depends-on): Remove 'inline'.
27024         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
27025         Suggestion from Bruno Haible.
27026
27027 2008-10-17  Bruno Haible  <bruno@clisp.org>
27028
27029         New implementation of condition variables for Win32.
27030         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
27031         (gl_linked_waitqueue_t): New type.
27032         (gl_cond_t): Use it.
27033         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
27034         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
27035         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
27036         (glthread_cond_init_func, glthread_cond_wait_func,
27037         glthread_cond_timedwait_func, glthread_cond_signal_func,
27038         glthread_cond_broadcast_func, glthread_cond_destroy_func):
27039         Reimplemented on the basis of gl_linked_waitqueue_t.
27040         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
27041         gl_waitqueue_t.
27042         (gl_rwlock_t): Update.
27043         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
27044
27045 2008-10-17  Simon Josefsson  <simon@josefsson.org>
27046
27047         * modules/recvfrom (Depends-on): Add dependency on getpeername.
27048         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27049
27050 2008-10-17  Jim Meyering  <meyering@redhat.com>
27051
27052         ignore-value: new module
27053         * modules/ignore-value: New file.
27054         * lib/ignore-value.h: New file.
27055         * MODULES.html.sh (Compiler warning management): New section,
27056         just for this module.  More to come.
27057
27058 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27059
27060         open-safer.c: avoid 'signed and unsigned in conditional...' warning
27061         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
27062         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
27063
27064 2008-10-16  Jim Meyering  <meyering@redhat.com>
27065
27066         openat-die.c: avoid 'no previous prototype' warning
27067         * lib/openat-die.c: Include "openat.h".
27068         Reported by Reuben Thomas <rrt@sc3d.org>.
27069
27070 2008-10-16  Simon Josefsson  <simon@josefsson.org>
27071
27072         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
27073         * lib/netdb.in.h: Fix typo.
27074         Reported by Bruno Haible  <bruno@clisp.org>
27075
27076         * lib/netdb.in.h: Include sys/socket.h for platforms without
27077         netdb.h, to get structures like hostent on MinGW.
27078         * modules/netdb (Depends-on): Add sys_socket.
27079
27080 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27081
27082         * modules/netdb, modules/netdb-tests: New file.
27083         * m4/netdb_h.m4: New file.
27084         * lib/netdb.in.h: Add, currently just an empty file pending
27085         definitions.
27086         * tests/test-netdb.c: New file.
27087         * doc/posix-headers/netdb.texi: Mention that we replace it if
27088         needed.
27089         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27090         netdb.
27091
27092 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27093
27094         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
27095         with code.
27096
27097 2008-10-13  Bruno Haible  <bruno@clisp.org>
27098
27099         * lib/glthread/cond.c (glthread_cond_wait_func,
27100         glthread_cond_timedwait_func): Add a comment.
27101
27102 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27103
27104         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
27105         * tests/test-select.c: Likewise,
27106
27107 2008-10-13  Bruno Haible  <bruno@clisp.org>
27108
27109         * lib/glthread/cond.c (glthread_cond_wait_func,
27110         glthread_cond_timedwait_func): Fix variable name.
27111         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27112
27113 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
27114
27115         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
27116         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
27117         struct sockaddr.sa_len.
27118         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
27119
27120 2008-10-13  Simon Josefsson  <simon@josefsson.org>
27121
27122         * build-aux/pmccabe2html: Add css and css_url parameters.
27123
27124 2008-10-12  Bruno Haible  <bruno@clisp.org>
27125
27126         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
27127         calling aclx_get.
27128         Reported by Rainer Tammer <tammer@tammer.net>.
27129
27130 2008-10-12  Bruno Haible  <bruno@clisp.org>
27131
27132         Use msvcrt aware primitives for creation/termination of Win32 threads.
27133         * lib/glthread/thread.c: Include <process.h>.
27134         (glthread_create_func): Use _beginthreadex instead of CreateThread.
27135         (wrapper_func): Update signature.
27136         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
27137
27138 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27139             Bruno Haible  <bruno@clisp.org>
27140
27141         Provide a Win32 implementation of the 'cond' module.
27142         * lib/glthread/cond.h [USE_WIN32]: New implementation.
27143         * lib/glthread/cond.c (glthread_cond_init_func,
27144         glthread_cond_wait_func, glthread_cond_timedwait_func,
27145         glthread_cond_signal_func, glthread_cond_broadcast_func,
27146         glthread_cond_destroy_func) [USE_WIN32]: New functions.
27147         * modules/cond (Dependencies): Add gettimeofday.
27148
27149 2008-10-11  Bruno Haible  <bruno@clisp.org>
27150
27151         Make sleep work on older versions of mingw.
27152         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
27153         only whether it exists.
27154         * doc/posix-functions/sleep.texi: Mention the problem with older
27155         versions of mingw.
27156
27157 2008-10-11  Bruno Haible  <bruno@clisp.org>
27158
27159         New module 'shutdown'.
27160         * modules/shutdown: New file.
27161         * lib/sys_socket.in.h (shutdown): New declaration.
27162         * lib/winsock.c (shutdown): New function.
27163         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27164         GNULIB_SHUTDOWN.
27165         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
27166         * doc/posix-functions/shutdown.texi: Document the new module.
27167
27168 2008-10-11  Jim Meyering  <meyering@redhat.com>
27169
27170         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
27171
27172 2008-10-11  Bruno Haible  <bruno@clisp.org>
27173
27174         New module 'fclose'.
27175         * modules/fclose: New file.
27176         * lib/stdio.in.h (fclose): New declaration.
27177         * lib/fclose.c: New file.
27178         * m4/fclose.m4: New file.
27179         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
27180         REPLACE_FCLOSE.
27181         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
27182         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
27183         REPLACE_FCLOSE.
27184         * modules/close (Depends-on): fclose.
27185         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
27186
27187 2008-10-11  Bruno Haible  <bruno@clisp.org>
27188
27189         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
27190         set errno and don't call _close.
27191
27192 2008-10-10  Bruno Haible  <bruno@clisp.org>
27193
27194         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
27195         ACL, not afterwards. Fixes test failure on Cygwin.
27196
27197 2008-10-09  Ben Pfaff  <blp@gnu.org>
27198
27199         * build-aux/announce-gen: Fix gnulib version related part of usage
27200         message.  Die with a useful error message if no tarballs are
27201         found.
27202
27203 2008-10-10  Jim Meyering  <meyering@redhat.com>
27204
27205         bootstrap: use git's --depth=N option only if it's supported
27206         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
27207         recognize the --depth option.  Reported by Pádraig Brady.
27208
27209 2008-10-09  Bruno Haible  <bruno@clisp.org>
27210
27211         New module 'ioctl'.
27212         * modules/ioctl: New file.
27213         * lib/sys_socket.in.h (ioctl): Remove declaration.
27214         * lib/winsock.c: Include <sys/ioctl.h>.
27215         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
27216         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27217         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
27218         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
27219         * doc/posix-functions/ioctl.texi: Mention the new module.
27220
27221 2008-10-09  Bruno Haible  <bruno@clisp.org>
27222
27223         New module 'sys_ioctl'.
27224         * lib/sys_ioctl.in.h: New file.
27225         * m4/sys_ioctl_h.m4: New file.
27226         * modules/sys_ioctl: New file.
27227         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
27228
27229 2008-10-09  Bruno Haible  <bruno@clisp.org>
27230
27231         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
27232         * lib/winsock.c: Include <stdarg.h>.
27233         (rpl_ioctl): Change to second argument 'int' and then varargs.
27234
27235 2008-10-09  Bruno Haible  <bruno@clisp.org>
27236
27237         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
27238         when the sys_socket module is present and the system has <winsock2.h>.
27239
27240 2008-10-09  Bruno Haible  <bruno@clisp.org>
27241
27242         * doc/posix-functions/close.texi: Mention module 'close' instead of
27243         module 'sys_socket'.
27244
27245 2008-10-09  Bruno Haible  <bruno@clisp.org>
27246
27247         * doc/glibc-headers/sys_ioctl.texi: New file.
27248         * doc/gnulib.texi: Include it.
27249
27250 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27251             Bruno Haible  <bruno@clisp.org>
27252
27253         Combine the two replacements of 'close'.
27254         * lib/sys_socket.in.h (close): Define to a reminder to include
27255         <unistd.h>.
27256         (_gl_close_fd_maybe_socket): New declaration.
27257         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
27258         * lib/winsock.c (close): Remove undefinition.
27259         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
27260         needed for the gnulib module 'close'.
27261         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
27262         define to an error symbol or to a warning, if suitable.
27263         * lib/close.c: Include <sys/socket.h>.
27264         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
27265         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
27266         UNISTD_H_HAVE_WINSOCK2_H.
27267         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
27268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27269         UNISTD_H_HAVE_WINSOCK2_H.
27270         * modules/sys_socket (Files): Add m4/unistd_h.m4.
27271         (configure.ac): Set a module indicator.
27272         (Makefile.am): Substitute GNULIB_CLOSE.
27273         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
27274         * modules/poll-tests (Depends-on): Add close.
27275         * modules/select-tests (Depends-on): Likewise.
27276
27277 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27278             Bruno Haible  <bruno@clisp.org>
27279
27280         New module 'close'.
27281         * modules/close: New file.
27282         * lib/unistd.in.h (close): Move declaration out of the
27283         FCHDIR_REPLACEMENT scope.
27284         (_gl_unregister_fd): New declaration.
27285         * lib/close.c: New file.
27286         * lib/fchdir.c (rpl_close): Remove function.
27287         * m4/close.m4: New file.
27288         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27289         close.
27290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
27291         REPLACE_CLOSE.
27292         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
27293         REPLACE_CLOSE.
27294         * modules/fchdir (Depends-on): Add close.
27295
27296 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27297             Bruno Haible  <bruno@clisp.org>
27298
27299         * lib/fcntl.in.h (open): Simplify conditionals.
27300         (_gl_register_fd): New declaration.
27301         * lib/fchdir.c (rpl_open): Remove function.
27302         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
27303         also.
27304         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
27305         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27306         open.
27307
27308 2008-10-09  Jim Meyering  <meyering@redhat.com>
27309
27310         GNUmakefile: use the more name-space-friendly "_version"
27311         * top/GNUmakefile (_dummy): Update.
27312         (_version): Rename from "version".
27313
27314 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27315             Bruno Haible  <bruno@clisp.org>
27316
27317         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
27318         rpl_close.
27319         (_gl_register_fd): New function, extracted from rpl_open.
27320         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
27321         (rpl_open, rpl_opendir): Use _gl_register_fd.
27322
27323 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27324
27325         Fix organization of 'open' replacement.
27326         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
27327         (gl_FUNC_OPEN): Use it.
27328         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
27329
27330 2008-10-08  Bruno Haible  <bruno@clisp.org>
27331
27332         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
27333
27334 2008-10-08  Simon Josefsson  <simon@josefsson.org>
27335
27336         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
27337         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
27338         listen).
27339
27340 2008-10-08  Eric Blake  <ebb9@byu.net>
27341
27342         GNUmakefile: add 'make version' target
27343         * top/GNUmakefile (_curr-ver): Split version update rules...
27344         (version): ...into a target.
27345
27346 2008-10-07  Bruno Haible  <bruno@clisp.org>
27347
27348         Use a more portable replacement expression for -0.0L.
27349         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
27350         instead of -0.0L. Fix m4 quotation.
27351
27352         * tests/test-signbit.c: Include <float.h>.
27353         (minus_zero): New variable.
27354         (test_signbitl): Use minus_zero instead of -zero.
27355         * modules/signbit-tests (Depends-on): Add float.
27356
27357         * tests/test-ceill.c: Include <float.h>.
27358         (zero): Remove variable.
27359         (minus_zero): New variable.
27360         (main): Use minus_zero instead of -zero.
27361         * modules/ceill-tests (Depends-on): Add float.
27362
27363         * tests/test-floorl.c: Include <float.h>.
27364         (zero): Remove variable.
27365         (minus_zero): New variable.
27366         (main): Use minus_zero instead of -zero.
27367         * modules/floorl-tests (Depends-on): Add float.
27368
27369         * tests/test-roundl.c: Include <float.h>.
27370         (zero): Remove variable.
27371         (minus_zero): New variable.
27372         (main): Use minus_zero instead of -zero.
27373         * modules/roundl-tests (Depends-on): Add float.
27374
27375         * tests/test-truncl.c: Include <float.h>.
27376         (zero): Remove variable.
27377         (minus_zero): New variable.
27378         (main): Use minus_zero instead of -zero.
27379         * modules/truncl-tests (Depends-on): Add float.
27380
27381         * tests/test-frexpl.c (zero): Remove variable.
27382         (minus_zero): New variable.
27383         (main): Use minus_zero instead of -zero.
27384         * modules/frexpl-tests (Depends-on): Add float.
27385
27386         * tests/test-isnan.c (zerol): Remove variable.
27387         (minus_zerol): New variable.
27388         (test_long_double): Use minus_zerol instead of -zerol.
27389         * modules/isnan-tests (Depends-on): Add float.
27390
27391         * tests/test-isnanl.h (zero): Remove variable.
27392         (minus_zero): New variable.
27393         (main): Use minus_zero instead of -zero.
27394         * modules/isnanl-nolibm-tests (Depends-on): Add float.
27395         * modules/isnanl-tests (Depends-on): Add float.
27396
27397         * tests/test-ldexpl.c (zero): Remove variable.
27398         (minus_zero): New variable.
27399         (main): Use minus_zero instead of -zero.
27400         * modules/ldexpl-tests (Depends-on): Add float.
27401
27402         * tests/test-snprintf-posix.h (zerol): Remove variable.
27403         (minus_zerol): New variable.
27404         (test_function): Use minus_zerol instead of -zerol.
27405         * modules/snprintf-posix-tests (Depends-on): Add float.
27406         * modules/vsnprintf-posix-tests (Depends-on): Add float.
27407
27408         * tests/test-sprintf-posix.h (zerol): Remove variable.
27409         (minus_zerol): New variable.
27410         (test_function): Use minus_zerol instead of -zerol.
27411         * modules/sprintf-posix-tests (Depends-on): Add float.
27412         * modules/vsprintf-posix-tests (Depends-on): Add float.
27413
27414         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
27415         (minus_zerol): New variable.
27416         (test_function): Use minus_zerol instead of -zerol.
27417         * modules/vasnprintf-posix-tests (Depends-on): Add float.
27418
27419         * tests/test-vasprintf-posix.c (zerol): Remove variable.
27420         (minus_zerol): New variable.
27421         (test_function): Use minus_zerol instead of -zerol.
27422         * modules/vasprintf-posix-tests (Depends-on): Add float.
27423
27424 2008-10-07  Simon Josefsson  <simon@josefsson.org>
27425
27426         * MODULES.html.sh (Support for building documentation): Mention
27427         pmccabe2html.  Sort entries.
27428
27429         Add pmccabe2html module, from gnupdf.
27430         * build-aux/pmccabe.css: New file.
27431         * build-aux/pmccabe2html: New file.
27432         * m4/pmccabe2html.m4: New file.
27433         * modules/pmccabe2html: New file.
27434
27435 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
27436
27437         flock: new module
27438         * MODULES.html.sh: Add to list of modules.
27439         * lib/flock.c: flock implementation for Windows and Unix systems
27440         which have fcntl.
27441         * doc/glibc-functions/flock.texi: Update documentation.
27442         * lib/sys_file.in.h: <sys/file.h> header file.
27443         * m4/flock.m4: M4 macros.
27444         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
27445         * modules/flock: flock module.
27446         * modules/flock-tests: flock tests module.
27447         * modules/sys_file: sys/file.h module.
27448         * tests/test-flock.c: test suite for flock.
27449
27450 2008-10-06  Jim Meyering  <meyering@redhat.com>
27451
27452         bootstrap: check for LT_INIT more portably still ;-)
27453         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
27454         Spotted by Bruno Haible.
27455
27456 2008-10-06  Eric Blake  <ebb9@byu.net>
27457
27458         test-signbit: avoid tripping Irix cc bug on -0.0L
27459         * tests/test-signbit.c (minus_zerol): Delete, and replace with
27460         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
27461         entire testsuite consistent and avoids an Irix 6.2 bug.
27462
27463 2008-10-05  Bruno Haible  <bruno@clisp.org>
27464             Jim Meyering  <jim@meyering.net>
27465
27466         Add an option for ignoring EPIPE during close_stdout.
27467         * lib/closeout.h: Include <stdbool.h>.
27468         (close_stdout_set_ignore_EPIPE): New declaration.
27469         * lib/closeout.c: Include <stdbool.h>.
27470         (ignore_EPIPE): New variable.
27471         (close_stdout_set_ignore_EPIPE): New function.
27472         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
27473         * lib/close-stream.c (close_stream): Mention the possible EPIPE
27474         failure.
27475         * modules/closeout (Depends-on): Add stdbool.
27476
27477 2008-10-05  Bruno Haible  <bruno@clisp.org>
27478
27479         * modules/accept: New file.
27480         * modules/bind: New file.
27481         * modules/connect: New file.
27482         * modules/getpeername: New file.
27483         * modules/getsockname: New file.
27484         * modules/getsockopt: New file.
27485         * modules/listen: New file.
27486         * modules/recv: New file.
27487         * modules/recvfrom: New file.
27488         * modules/send: New file.
27489         * modules/sendto: New file.
27490         * modules/setsockopt: New file.
27491         * modules/socket: New file.
27492         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
27493         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27494         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
27495         the particular module is requested. Add a link warning when the
27496         particular module is not requested.
27497         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
27498         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
27499         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
27500         the particular module is requested.
27501         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
27502         gl_SYS_SOCKET_H_DEFAULTS): New macros.
27503         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
27504         * modules/sys_socket (Depends-on): Add link-warning.
27505         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
27506         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
27507         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
27508         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
27509         GL_LINK_WARNING.
27510         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
27511         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
27512         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
27513         * doc/posix-functions/getpeername.texi: Mention the new module
27514         'getpeername'.
27515         * doc/posix-functions/getsockname.texi: Mention the new module
27516         'getsockname'.
27517         * doc/posix-functions/getsockopt.texi: Mention the new module
27518         'getsockopt'.
27519         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
27520         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
27521         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
27522         * doc/posix-functions/send.texi: Mention the new module 'send'.
27523         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
27524         * doc/posix-functions/setsockopt.texi: Mention the new module
27525         'setsockopt'.
27526         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
27527         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
27528         listen, connect, accept.
27529         * modules/select-tests (Depends-on): Likewise.
27530
27531 2008-10-05  Bruno Haible  <bruno@clisp.org>
27532
27533         * lib/winsock.c (strerror): Remove unused #undef.
27534         (rpl_close): Remove unused local variable.
27535
27536         * modules/sys_socket (Depends-on); Add errno.
27537
27538 2008-10-05  Bruno Haible  <bruno@clisp.org>
27539
27540         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
27541         (select): Add a link warning when the 'select' module is not used.
27542         * modules/sys_select (Depends-on): Add link-warning.
27543         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
27544         Suggested by Paolo Bonzini.
27545
27546 2008-10-05  Jim Meyering  <meyering@redhat.com>
27547
27548         bootstrap: check for LT_INIT more portably
27549         * build-aux/bootstrap: Avoid using grep -E, since it's not
27550         portable enough.  Suggestion from Bruno Haible.
27551
27552 2008-10-05  Bruno Haible  <bruno@clisp.org>
27553
27554         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
27555         as being fixed by gnulib.
27556
27557 2008-10-05  Bruno Haible  <bruno@clisp.org>
27558
27559         * modules/select-tests: New file, mostly copied from
27560         modules/sys_select-tests.
27561         * tests/test-select.c: New file, mostly copied from
27562         tests/test-sys_select.c.
27563         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
27564         * modules/sys_select-tests (Depends-on): Remove all dependencies.
27565         (Makefile.am): Remove test_sys_select_LDADD.
27566
27567         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
27568         to an undefined symbol, for an error message.
27569         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
27570         (gl_SYS_SELECT_H_DEFAULTS): New macro.
27571         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
27572         winsock-select.c here.
27573         * modules/sys_select (Files): Remove lib/winsock-select.c.
27574         (Depends-on): Remove alloca.
27575         (Makefile.am): Substitute GNULIB_SELECT.
27576         * modules/select: New file.
27577         * doc/posix-functions/select.texi: Update.
27578
27579 2008-10-05  Bruno Haible  <bruno@clisp.org>
27580
27581         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
27582         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
27583         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
27584         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
27585         getdtablesize.
27586         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
27587         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
27588
27589 2008-10-05  Bruno Haible  <bruno@clisp.org>
27590
27591         * modules/getdtablesize-tests: New file.
27592         * tests/test-getdtablesize.c: New file.
27593
27594         New module 'getdtablesize'.
27595         * lib/unistd.in.h (getdtablesize): New declaration.
27596         * lib/getdtablesize.c: New file.
27597         * m4/getdtablesize.m4: New file.
27598         * modules/getdtablesize: New file.
27599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27600         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
27601         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
27602         HAVE_GETDTABLESIZE.
27603         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
27604
27605 2008-10-05  Bruno Haible  <bruno@clisp.org>
27606
27607         * modules/sched (Makefile.am): Fix typo.
27608         Reported by Simon Josefsson.
27609
27610 2008-10-05  Jim Meyering  <meyering@redhat.com>
27611
27612         bootstrap: check for LT_INIT, too
27613         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
27614         are deprecated.  Suggestion from Ralf Wildenhues.
27615
27616 2008-10-05  Bruno Haible  <bruno@clisp.org>
27617
27618         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
27619         overriding them by ours.
27620         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
27621
27622 2008-10-05  Jim Meyering  <meyering@redhat.com>
27623
27624         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
27625         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
27626         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
27627
27628 2008-10-04  Bruno Haible  <bruno@clisp.org>
27629
27630         * modules/dup2 (License): Change to LGPLv2+.
27631         * modules/sleep (License): Likewise.
27632         * modules/perror (License): Likewise.
27633         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
27634         Blake.
27635         * modules/signal (License): Likewise.
27636         * modules/sigprocmask (License): Likewise.
27637         * modules/raise (License): Change to LGPLv2+, with approval by Jim
27638         Meyering.
27639
27640 2008-10-04  Bruno Haible  <bruno@clisp.org>
27641
27642         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
27643         Reported by Rainer Tammer <tammer@tammer.net>.
27644
27645 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
27646             Bruno Haible  <bruno@clisp.org>
27647
27648         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
27649         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
27650         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
27651
27652 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
27653
27654         filevercmp: new module
27655         * lib/filevercmp.h: New function filevercmp comparing version strings.
27656         * lib/filevercmp.c: Implementation of filevercmp function.
27657         * modules/filevercmp: Module metadata.
27658         * tests/test-filevercmp.c: Unit test for new module.
27659         * modules/filevercmp-tests: Unit test metadata.
27660         * MODULES.html.sh: Add filevercmp module.
27661
27662 2008-10-03  Bruno Haible  <bruno@clisp.org>
27663
27664         * lib/c-ctype.h: Add comment.
27665         Reported by Jim Meyering.
27666
27667 2008-10-02  Bruno Haible  <bruno@clisp.org>
27668
27669         * modules/posix_spawn-internal (Depends-on): Add 'open'.
27670
27671 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27672
27673         * build-aux/bootstrap: Allow renaming bootstrap, and change the
27674         name of bootstrap.conf accordingly.
27675
27676 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27677
27678         * build-aux/bootstrap: Install git-merge-changelog configuration
27679         items into .gitconfig if needed.
27680
27681 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27682
27683         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
27684         git repository, and initialize/update it accordingly.
27685
27686 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
27687
27688         * modules/fsync-tests: New file.
27689         * tests/test-fsync.c: New file.
27690
27691         New module 'fsync'.
27692         * lib/fsync.c: New file.
27693         * m4/fsync.m4: New file.
27694         * modules/fsync: New file.
27695         * lib/unistd.in.h (fsync): New declaration.
27696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
27697         GNULIB_FSYNC and HAVE_FSYNC.
27698         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
27699         * MODULES.html.sh (posix_functions): Add fsync.
27700         * doc/posix-functions/fsync.texi: Mention the new module.
27701
27702 2008-10-02  Jim Meyering  <meyering@redhat.com>
27703
27704         fts.c: sync with similar code from coreutils' remove.c
27705         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
27706         Guard also with "#if defined __linux__", since for now at least,
27707         this code is Linux-kernel-specific.
27708
27709 2008-10-02  Jim Meyering  <meyering@redhat.com>
27710
27711         fts: bug fixes
27712         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
27713         Include <sys/vfs.h>, not <sys/statfs.h>.
27714
27715         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
27716         Include <sys/vfs.h>, not <sys/statfs.h>.
27717
27718 2008-10-01  Bruno Haible  <bruno@clisp.org>
27719
27720         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
27721         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
27722         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
27723         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
27724         * doc/posix-functions/posix_spawnp.texi: Likewise.
27725         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
27726         whether posix_spawn actually works.
27727         * m4/pipe.m4 (gl_PIPE): Likewise.
27728         * modules/execute (Files): Add m4/posix_spawn.m4.
27729         * modules/pipe (Files): Add m4/posix_spawn.m4.
27730         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
27731
27732 2008-10-01  Jim Meyering  <meyering@redhat.com>
27733
27734         remove trailing spaces
27735         * NEWS: Likewise.
27736         * lib/poll.c (poll): Likewise.
27737         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
27738         * lib/winsock.c (rpl_close): Likewise.
27739         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
27740         * modules/yield: Likewise.
27741         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
27742         * tests/test-sys_select.c (connect_to_socket): Likewise.
27743
27744         fts.c: adjust a new interface to be more generally useful
27745         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
27746         (fts_build): Adjust caller.
27747
27748 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27749
27750         * modules/cond-tests: New file.
27751         * tests/test-cond.c: New file.
27752
27753 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27754             Bruno Haible  <bruno@clisp.org>
27755
27756         * modules/cond (Dependencies): Add errno, time.
27757         * lib/glthread/cond.h: Include <time.h>.
27758         (gl_cond_define, gl_cond_define_initialized): Use the same definition
27759         across platforms.
27760
27761 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27762             Bruno Haible  <bruno@clisp.org>
27763
27764         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
27765
27766 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27767             Bruno Haible  <bruno@clisp.org>
27768
27769         * modules/tls-tests (Depends-on): Add thread, yield.
27770         (configure.ac): Remove all checks.
27771         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
27772         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27773         gl_thread_self): Remove definitions. Include glthread/thread.h and
27774         glthread/yield.h instead.
27775         (test_tls): Pass an additional NULL argument to gl_thread_join.
27776
27777 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27778             Bruno Haible  <bruno@clisp.org>
27779
27780         * modules/lock-tests (Depends-on): Add thread, yield.
27781         (configure.ac): Remove all checks.
27782         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
27783         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27784         gl_thread_self): Remove definitions. Include glthread/thread.h and
27785         glthread/yield.h instead.
27786         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
27787         additional NULL argument to gl_thread_join.
27788
27789 2008-09-30  Bruno Haible  <bruno@clisp.org>
27790
27791         Fix the Win32 implementation of the 'thread' module.
27792         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
27793         pointer type.
27794         (gl_thread_self): Invoke gl_thread_self_func.
27795         (gl_thread_self_func): New declaration.
27796         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
27797         (do_init_self_key, init_self_key): New functions.
27798         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
27799         Remove some fields.
27800         (running_threads, running_lock): Remove variables.
27801         (get_current_thread_handle): New function.
27802         (gl_thread_self_func, wrapper_func, glthread_create_func,
27803         glthread_join_func, gl_thread_exit_func): Largely rewritten and
27804         simplified.
27805
27806 2008-09-30  Bruno Haible  <bruno@clisp.org>
27807
27808         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
27809         files.
27810
27811 2008-09-30  Jim Meyering  <meyering@redhat.com>
27812
27813         fts.m4: correct the test for statfs.f_type
27814         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
27815         when checking for statfs.f_type.
27816
27817 2008-09-15  Simon Josefsson  <simon@josefsson.org>
27818
27819         tests: avoid some compiler warnings
27820         * tests/test-memchr.c (main): Pass NULL indirectly.
27821         * tests/test-getdate.c (main): Remove unused variable 'ret'.
27822
27823 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
27824
27825         getdate.y: disallow countable dayshifts like "4 yesterday ago"
27826         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
27827         exactly specified dayshifts.
27828         (dayshift): New rule.
27829         (rel): Add dayshift.
27830         (relative_time_table) [tomorrow, yesterday, today, now]:
27831         Use tDAY_SHIFT in place of tDAY_UNIT.
27832         * tests/test-getdate.c: Add tests for now-disallowed countable
27833         dayshifts, e.g., "4 yesterday ago".
27834
27835 2008-09-29  Bruno Haible  <bruno@clisp.org>
27836
27837         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
27838         * tests/test-posix_spawn1.in.sh: Renamed from
27839         tests/test-posix_spawn.in.sh.
27840         * tests/test-posix_spawn2.c: New file.
27841         * tests/test-posix_spawn2.in.sh: New file.
27842         * modules/posix_spawnp-tests (Files): Update.
27843         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
27844
27845 2008-09-29  Bruno Haible  <bruno@clisp.org>
27846
27847         Propagate effects of putenv/setenv/unsetenv to child processes.
27848         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
27849         * lib/pipe.c (create_pipe): Likewise.
27850
27851 2008-09-29  Bruno Haible  <bruno@clisp.org>
27852
27853         Enable use of shell scripts as executables in mingw.
27854         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
27855         run the program as a shell script.
27856         * lib/pipe.c (create_pipe): Likewise.
27857         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
27858         resulting array.
27859
27860 2008-09-29  Eric Blake  <ebb9@byu.net>
27861
27862         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
27863
27864 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
27865
27866         * doc/posix-functions/accept.texi: Update mingw problems.
27867         * doc/posix-functions/bind.texi: Update mingw problems.
27868         * doc/posix-functions/close.texi: Update mingw problems.
27869         * doc/posix-functions/connect.texi: Update mingw problems.
27870         * doc/posix-functions/getpeername.texi: Update mingw problems.
27871         * doc/posix-functions/getsockname.texi: Update mingw problems.
27872         * doc/posix-functions/getsockopt.texi: Update mingw problems.
27873         * doc/posix-functions/ioctl.texi: Update mingw problems.
27874         * doc/posix-functions/listen.texi: Update mingw problems.
27875         * doc/posix-functions/recv.texi: Update mingw problems.
27876         * doc/posix-functions/recvfrom.texi: Update mingw problems.
27877         * doc/posix-functions/select.texi: Update mingw problems.
27878         * doc/posix-functions/send.texi: Update mingw problems.
27879         * doc/posix-functions/sendto.texi: Update mingw problems.
27880         * doc/posix-functions/setsockopt.texi: Update mingw problems.
27881         * doc/posix-functions/socket.texi: Update mingw problems.
27882
27883 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
27884             Bruno Haible  <bruno@clisp.org>
27885
27886         * lib/sys_select.in.h: Include sys/time.h.
27887         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
27888         * modules/sys_select: Depend on sys_time.
27889         * tests/test-sys_select.c: Test that sys/select.h defines struct
27890         timeval fully.
27891
27892 2008-09-29  Bruno Haible  <bruno@clisp.org>
27893
27894         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
27895         * lib/sys_select.in.h: Likewise.
27896
27897 2008-09-29  Bruno Haible  <bruno@clisp.org>
27898
27899         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
27900
27901 2008-09-29  Bruno Haible  <bruno@clisp.org>
27902
27903         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
27904         Set LIBSOCKET instead of augmenting LIBS.
27905         * modules/sockets (Link): New section.
27906         * modules/sockets-tests (test_sockets_LDADD): New variable.
27907         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
27908         * modules/poll-tests (test_poll_LDADD): New variable.
27909         * NEWS: Document the change.
27910
27911 2008-09-29  Bruno Haible  <bruno@clisp.org>
27912
27913         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
27914         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
27915         ARPA_INET_H directly.
27916         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27917
27918 2008-09-28  Bruno Haible  <bruno@clisp.org>
27919
27920         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
27921         from gl_HEADER_SYS_SOCKET.
27922         (gl_HEADER_SYS_SOCKET): Invoke it.
27923         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27924
27925 2008-09-28  Bruno Haible  <bruno@clisp.org>
27926
27927         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
27928         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
27929         Needed on OSF/1 4.0.
27930
27931 2008-09-28  Bruno Haible  <bruno@clisp.org>
27932
27933         Override open more carefully.
27934         * lib/open.c (orig_open): New function.
27935         (rpl_open): Use orig_open instead of open.
27936         * lib/fcntl.in.h: Add special invocation convention.
27937         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
27938         (gl_FUNC_OPEN): Invoke it.
27939
27940         Override freopen more carefully.
27941         * lib/freopen.c (orig_freopen): New function.
27942         (rpl_freopen): Use orig_freopen instead of freopen.
27943         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
27944         (gl_FUNC_FREOPEN): Invoke it.
27945
27946         Override fopen more carefully.
27947         * lib/fopen.c (orig_fopen): New function.
27948         (rpl_fopen): Use orig_fopen instead of fopen.
27949         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
27950         (gl_FUNC_FOPEN): Invoke it.
27951         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
27952
27953 2008-09-28  Bruno Haible  <bruno@clisp.org>
27954
27955         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
27956         SIGPIPE.
27957
27958 2008-09-28  Bruno Haible  <bruno@clisp.org>
27959
27960         * tests/test-sigaction.c (handler, main): Disable the check whether
27961         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
27962         glibc systems with LinuxThreads.
27963
27964 2008-09-28  Bruno Haible  <bruno@clisp.org>
27965
27966         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
27967
27968         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
27969         with AIX xlc.
27970         * lib/fcntl.in.h (open): Likewise.
27971         Reported by Rainer Tammer <tammer@tammer.net>.
27972
27973 2008-09-28  Bruno Haible  <bruno@clisp.org>
27974
27975         * modules/posix_spawnp-tests: New file.
27976         * tests/test-posix_spawn.c: New file.
27977         * tests/test-posix_spawn.in.sh: New file.
27978
27979         New module 'posix_spawnp'.
27980         * modules/posix_spawnp: New file.
27981         * lib/spawnp.c: New file, from GNU libc with modifications.
27982         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
27983
27984         New module 'posix_spawn'.
27985         * modules/posix_spawn: New file.
27986         * lib/spawn.c: New file, from GNU libc with modifications.
27987         * doc/posix-functions/posix_spawn.texi: Mention the new module.
27988
27989         New module 'posix_spawnattr_destroy'.
27990         * modules/posix_spawnattr_destroy: New file.
27991         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
27992         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
27993         module.
27994
27995         New module 'posix_spawnattr_setsigmask'.
27996         * modules/posix_spawnattr_setsigmask: New file.
27997         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
27998         modifications.
27999         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
28000         new module.
28001
28002         New module 'posix_spawnattr_getsigmask'.
28003         * modules/posix_spawnattr_getsigmask: New file.
28004         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
28005         modifications.
28006         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
28007         new module.
28008
28009         New module 'posix_spawnattr_setsigdefault'.
28010         * modules/posix_spawnattr_setsigdefault: New file.
28011         * lib/spawnattr_setdefault.c: New file, from GNU libc with
28012         modifications.
28013         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
28014         new module.
28015
28016         New module 'posix_spawnattr_getsigdefault'.
28017         * modules/posix_spawnattr_getsigdefault: New file.
28018         * lib/spawnattr_getdefault.c: New file, from GNU libc with
28019         modifications.
28020         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
28021         new module.
28022
28023         New module 'posix_spawnattr_setschedpolicy'.
28024         * modules/posix_spawnattr_setschedpolicy: New file.
28025         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
28026         modifications.
28027         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
28028         new module.
28029
28030         New module 'posix_spawnattr_getschedpolicy'.
28031         * modules/posix_spawnattr_getschedpolicy: New file.
28032         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
28033         modifications.
28034         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
28035         new module.
28036
28037         New module 'posix_spawnattr_setschedparam'.
28038         * modules/posix_spawnattr_setschedparam: New file.
28039         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
28040         modifications.
28041         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
28042         new module.
28043
28044         New module 'posix_spawnattr_getschedparam'.
28045         * modules/posix_spawnattr_getschedparam: New file.
28046         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
28047         modifications.
28048         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
28049         new module.
28050
28051         New module 'posix_spawnattr_setpgroup'.
28052         * modules/posix_spawnattr_setpgroup: New file.
28053         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
28054         modifications.
28055         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
28056         module.
28057
28058         New module 'posix_spawnattr_getpgroup'.
28059         * modules/posix_spawnattr_getpgroup: New file.
28060         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
28061         modifications.
28062         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
28063         module.
28064
28065         New module 'posix_spawnattr_setflags'.
28066         * modules/posix_spawnattr_setflags: New file.
28067         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
28068         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
28069         module.
28070
28071         New module 'posix_spawnattr_getflags'.
28072         * modules/posix_spawnattr_getflags: New file.
28073         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
28074         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
28075         module.
28076
28077         New module 'posix_spawnattr_init'.
28078         * modules/posix_spawnattr_init: New file.
28079         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
28080         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
28081         module.
28082
28083         New module 'posix_spawn_file_actions_destroy'.
28084         * modules/posix_spawn_file_actions_destroy: New file.
28085         * lib/spawn_faction_destroy.c: New file, from GNU libc with
28086         modifications.
28087         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
28088         the new module.
28089
28090         New module 'posix_spawn_file_actions_addopen'.
28091         * modules/posix_spawn_file_actions_addopen: New file.
28092         * lib/spawn_faction_addopen.c: New file, from GNU libc with
28093         modifications.
28094         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
28095         the new module.
28096
28097         New module 'posix_spawn_file_actions_adddup2'.
28098         * modules/posix_spawn_file_actions_adddup2: New file.
28099         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
28100         modifications.
28101         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
28102         the new module.
28103
28104         New module 'posix_spawn_file_actions_addclose'.
28105         * modules/posix_spawn_file_actions_addclose: New file.
28106         * lib/spawn_faction_addclose.c: New file, from GNU libc with
28107         modifications.
28108         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
28109         the new module.
28110
28111         New module 'posix_spawn_file_actions_init'.
28112         * modules/posix_spawn_file_actions_init: New file.
28113         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
28114         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
28115         new module.
28116
28117         New module 'posix_spawn-internal'.
28118         * modules/posix_spawn-internal: New file.
28119         * lib/spawn_int.h: New file, from GNU libc with modifications.
28120         * lib/spawni.c: New file, from GNU libc with modifications.
28121         * m4/posix_spawn.m4: New file.
28122
28123         New module 'spawn'.
28124         * modules/spawn: New file.
28125         * lib/spawn.in.h: New file, from GNU libc with modifications.
28126         * m4/spawn_h.m4: New file.
28127         * doc/posix-headers/spawn.texi: Mention the new module.
28128
28129 2008-09-28  Bruno Haible  <bruno@clisp.org>
28130
28131         * modules/sched-tests: New file.
28132         * tests/test-sched.c: New file.
28133
28134         New module 'sched'.
28135         * modules/sched: New file.
28136         * lib/sched.in.h: New file.
28137         * m4/sched_h.m4: New file.
28138         * doc/posix-headers/sched.texi: Mention the new module.
28139
28140 2008-09-27  Eric Blake  <ebb9@byu.net>
28141
28142         Fix previous patch, and tweak references to $0.
28143         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
28144         (func_version, func_gnulib_dir): Don't call this program
28145         gnulib-tool.
28146         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
28147         with using $0 in function.
28148         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
28149         (func_fatal_error): Reuse the name the user invoked us with.
28150
28151 2008-09-27  Bruno Haible  <bruno@clisp.org>
28152
28153         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
28154         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
28155         (gl_ICONV_H): Not here.
28156         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28157         instead of assigning ICONV_H directly.
28158
28159         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
28160         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
28161         WCHAR_H directly.
28162
28163 2008-09-27  Bruno Haible  <bruno@clisp.org>
28164
28165         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
28166         * modules/arpa_inet (Depends-on): Add link-warning.
28167         (Makefile.am): Insert the definition of GL_LINK-WARNING.
28168         * modules/unistd (Makefile.am): Likewise.
28169
28170 2008-09-26  Bruno Haible  <bruno@clisp.org>
28171
28172         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
28173         variables.
28174         (func_version): Essentially copied from gnulib-tool.
28175         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
28176         func_readlink): Copied from gnulib-tool.
28177
28178 2008-09-26  Bruno Haible  <bruno@clisp.org>
28179
28180         * gnulib-tool (func_version): Change directory to $gnulib_dir before
28181         invoking git-version-gen.
28182
28183 2008-09-26  Bruno Haible  <bruno@clisp.org>
28184
28185         * posix-modules: Update to directory names changed on 2008-01-19.
28186         Remove commas in output before splitting into words. No more need to
28187         avoid 'ftruncate' since 2007-02-19.
28188
28189 2008-09-26  Bruno Haible  <bruno@clisp.org>
28190
28191         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
28192
28193 2008-09-26  Bruno Haible  <bruno@clisp.org>
28194
28195         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
28196         * modules/fwriteerror (Depends-on): Add errno.
28197
28198 2008-09-26  Bruno Haible  <bruno@clisp.org>
28199
28200         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
28201         * tests/test-vc-list-files-cvs.sh: Likewise.
28202
28203 2008-09-26  Bruno Haible  <bruno@clisp.org>
28204
28205         * doc/posix-headers/sys_resource.texi: Reorder items.
28206
28207 2008-09-26  Jim Meyering  <meyering@redhat.com>
28208
28209         fts: tweak inode comparison function
28210         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
28211         inode numbers, as documented.
28212
28213         fts: sort dirent entries on inode number before traversing
28214         This avoids a quadratic, seek-related performance penalty when
28215         operating on a directory containing many entries (measurable at 10k;
28216         3.5 hours at 2 million entries with a cold cache) on certain types
28217         of file systems, including ext3 and ext4, but not tmpfs.
28218         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
28219         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
28220         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
28221         (fs_handles_readdir_ordered_dirents_efficiently): New function.
28222         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
28223         (fts_build): Set the stat.st_ino member from D_INO.
28224         If it is likely to be useful, sort dirent entries on inode number.
28225
28226         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
28227         and the struct statfs.f_type member.
28228         * modules/fts (Depends-on): Add d-ino.
28229
28230 2008-09-26  Bruno Haible  <bruno@clisp.org>
28231
28232         * modules/sigpipe-die (Depends-on): Add sigpipe.
28233
28234         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
28235         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
28236         and GNULIB_STDIO_H_SIGPIPE are set.
28237         * lib/stdio-write.c: New file.
28238         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
28239         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28240         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28241         REPLACE_STDIO_WRITE_FUNCS.
28242         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
28243         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28244         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28245         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28246         * modules/stdio (Files): Add lib/stdio-write.c.
28247         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
28248         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28249         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28250         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28251         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
28252         REPLACE_FPRINTF_POSIX.
28253         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
28254         REPLACE_PRINTF_POSIX.
28255         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
28256         REPLACE_VFPRINTF_POSIX.
28257         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
28258         REPLACE_VPRINTF_POSIX.
28259         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
28260         SIGPIPE issue.
28261         * doc/posix-functions/fputc.texi: Likewise.
28262         * doc/posix-functions/fputs.texi: Likewise.
28263         * doc/posix-functions/fwrite.texi: Likewise.
28264         * doc/posix-functions/printf.texi: Likewise.
28265         * doc/posix-functions/putc.texi: Likewise.
28266         * doc/posix-functions/putchar.texi: Likewise.
28267         * doc/posix-functions/puts.texi: Likewise.
28268         * doc/posix-functions/vfprintf.texi: Likewise.
28269         * doc/posix-functions/vprintf.texi: Likewise.
28270
28271         * modules/safe-write (Depends-on): Add write.
28272
28273         * modules/sigpipe-tests: New file.
28274         * tests/test-sigpipe.c: New file.
28275         * tests/test-sigpipe.sh: New file.
28276
28277         * modules/write: New file.
28278         * lib/unistd.in.h: Include <sys/types.h>.
28279         (write): New declaration.
28280         * lib/write.c: New file.
28281         * m4/write.m4: New file.
28282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28283         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
28284         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
28285         GNULIB_WRITE, REPLACE_WRITE.
28286         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
28287         and the SIGPIPE issue.
28288
28289         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
28290         (raise): New declaration.
28291         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
28292         (ext_signal): New function.
28293         (rpl_raise): New function.
28294         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
28295         GNULIB_SIGNAL_H_SIGPIPE.
28296         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
28297         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
28298
28299         * modules/sigpipe: New file.
28300         * m4/sigpipe.m4: New file.
28301
28302 2008-09-25  Derek Price  <derek@ximbiot.com>
28303             Bruno Haible  <bruno@clisp.org>
28304
28305         * gnulib-tool (func_import): Report all license incompatibilities, not
28306         just the first one.
28307
28308 2008-09-25  Bruno Haible  <bruno@clisp.org>
28309
28310         * gnulib-tool (func_import): When computing the edits, consider not
28311         only the Makefile.ams that exist but also those that will be generated.
28312
28313 2008-09-25  Simon Josefsson  <simon@josefsson.org>
28314
28315         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
28316         fixes gnulib-tool --test warning about duplicate dependency.
28317
28318 2008-09-25  Bruno Haible  <bruno@clisp.org>
28319
28320         * gnulib-tool: Don't ask the user to perform edits in the generated
28321         Makefile.ams.
28322         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
28323         apply to the Makefile.am being generated.
28324         (func_emit_tests_Makefile_am): Execute edits that apply to the
28325         Makefile.am being generated.
28326         (func_import): Setup list of Makefile.am edits before emitting the
28327         Makefile.ams, not at the end.
28328         (func_create_testdir): Update.
28329         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28330
28331 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28332
28333         * gnulib-tool (func_import): Store the --tests-base option in the
28334         comment in gnulib-cache.m4.
28335
28336 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
28337
28338         * NEWS: Document increased portability that sys_select now provides.
28339
28340         * lib/sys_select.in.h: Install select wrapper.
28341         * lib/sys_socket.in.h: Use more descriptive name when there is no
28342         select wrapper.
28343         * lib/winsock-select.c: New.
28344         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
28345         Require gl_HEADER_SYS_SOCKET.
28346         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
28347         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
28348         * tests/test-sys_select.c: Add functional tests.
28349
28350 2008-09-24  Eric Blake  <ebb9@byu.net>
28351
28352         open, fopen: close fd leak in last patch
28353         * lib/open.c (rpl_open): Close fd before returning error.
28354         * lib/fopen.c (rpl_fopen): Close fd before returning error.
28355         * doc/posix-functions/open.texi (open): Document that Irix also
28356         has the bug.
28357         * doc/posix-functions/fopen.texi (fopen): Likewise.
28358         Reported by Paolo Bonzini.
28359
28360 2008-09-24  Bruno Haible  <bruno@clisp.org>
28361
28362         Ensure that a filename ending in a slash cannot be used to access a
28363         non-directory.
28364         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
28365         to check whether it's really a directory.
28366         * lib/fopen.c: Include fcntl.h, unistd.h.
28367         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
28368         and fdopen().
28369         * modules/fopen (Depends-on): Add unistd.
28370         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
28371         * tests/test-fopen.c (main): Likewise.
28372         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
28373         * doc/posix-functions/fopen.texi: Likewise.
28374         Reported by Eric Blake.
28375
28376 2008-09-23  Eric Blake  <ebb9@byu.net>
28377
28378         c-stack: avoid compiler optimizations when provoking overflow
28379         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
28380         recursion harder to optimize, to ensure a stack overflow occurs.
28381         * tests/test-c-stack.c (recurse): Likewise.
28382         Borrowed from libsigsegv.
28383
28384         c-stack: work around Irix sigaltstack bug
28385         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
28386         whether sigaltstack uses wrong end of stack_t (copied in part from
28387         libsigsegv).
28388         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
28389         Irix bug, without requiring an over-allocation.
28390         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
28391         bug.
28392
28393         fopen: document mingw bug on directories
28394         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
28395         not allowing a stream visiting a directory, even though reading
28396         from such a stream is not portable.
28397
28398 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28399
28400         * lib/poll.c: Rewrite.
28401         * modules/poll: Depend on alloca.
28402
28403 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28404
28405         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
28406         instead define prototypes for a full set of wrappers.  Ensure
28407         that Cygwin does not use the compatibility code, which is only
28408         for MinGW.
28409         * lib/winsock.c: New.
28410         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
28411         * modules/sys_socket: Add lib/winsock.c.
28412
28413         * modules/poll-tests: Add errno and perror.
28414         * tests/test-poll.c: Use ioctl, not ioctlsocket.
28415
28416 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28417
28418         * tests/test-poll.c: Downgrade minimum needed Winsock version.
28419
28420 2008-09-23  Bruno Haible  <bruno@clisp.org>
28421
28422         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
28423         * doc/glibc-functions/*: Likewise.
28424
28425 2008-09-23  Simon Josefsson  <simon@josefsson.org>
28426
28427         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
28428         success.
28429
28430 2008-09-22  Eric Blake  <ebb9@byu.net>
28431             Bruno Haible  <bruno@clisp.org>
28432
28433         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
28434         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
28435         supply %A but mishandle pseudo-NaN.
28436         Reported by Simon Josefsson.
28437
28438 2008-09-21  Bruno Haible  <bruno@clisp.org>
28439
28440         * tests/test-lock.c (main): Tweak skip message.
28441         * tests/test-tls.c (main): Likewise.
28442
28443 2008-09-21  Bruno Haible  <bruno@clisp.org>
28444
28445         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
28446         whether 'struct sigaction' has sa_sigaction here...
28447         (gl_PREREQ_SIG_HANDLER_H): ... not here.
28448         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
28449
28450 2008-09-21  Bruno Haible  <bruno@clisp.org>
28451
28452         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
28453         section.
28454         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
28455         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
28456         the new section.
28457         (Support for obsolete systems lacking POSIX:2001): New section.
28458         (String handling <string.h>): Move strdup to the new section.
28459         Suggested by Simon Josefsson and Paolo Bonzini.
28460
28461 2008-09-21  Bruno Haible  <bruno@clisp.org>
28462
28463         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
28464         exponents in %e and %g results on 'long double'. Needed for mingw's
28465         improved *printf functions.
28466         * tests/test-vasprintf-posix.c (test_function): Likewise.
28467         * tests/test-snprintf-posix.h (test_function): Likewise.
28468         * tests/test-sprintf-posix.h (test_function): Likewise.
28469         Reported by Eric Blake.
28470
28471 2008-09-21  Bruno Haible  <bruno@clisp.org>
28472
28473         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
28474         * tests/test-sprintf-posix.h (test_function): Likewise.
28475
28476 2008-09-21  Bruno Haible  <bruno@clisp.org>
28477
28478         * modules/getpass (Depends-on): Add strdup-posix.
28479
28480         New module 'strdup-posix'.
28481         * modules/strdup-posix: New file.
28482         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
28483         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
28484         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28485         REPLACE_STRDUP.
28486         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
28487         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
28488         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28489         strdup-posix.
28490
28491         * modules/strdup (Depends-on): Remove malloc-posix.
28492
28493 2008-09-20  Bruno Haible  <bruno@clisp.org>
28494
28495         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
28496         Wildenhues.
28497
28498 2008-09-20  Bruno Haible  <bruno@clisp.org>
28499
28500         Ensure that wint_t gets defined on IRIX 5.3.
28501         * lib/wchar.in.h (wint_t): Define if not defined by the system.
28502         * lib/wctype.in.h (wint_t): Likewise.
28503         (__wctype_wint_t): Remove type.
28504         (isw*): Use wint_t instead of __wctype_wint_t.
28505         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
28506         * modules/wchar (Files): Add m4/wint_t.m4.
28507         (Makefile.am): Substitute HAVE_WINT_T.
28508         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
28509         * tests/test-wctype.c: Check that wint_t is defined.
28510         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
28511         * doc/posix-headers/wctype.texi: Likewise.
28512         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28513
28514 2008-09-18  Bruno Haible  <bruno@clisp.org>
28515
28516         * gnulib-tool (func_exit): Update comment.
28517
28518 2008-09-18  Simon Josefsson  <simon@josefsson.org>
28519
28520         * modules/getaddrinfo (Depends-on): Remove strdup, this module
28521         assumes strdup exists and does not depend on strdup to return
28522         ENOMEM on out of memory conditions.
28523
28524 2008-09-18  Bruno Haible  <bruno@clisp.org>
28525
28526         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
28527         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
28528         digits for the exponent.
28529
28530 2008-09-18  Jim Meyering  <meyering@redhat.com>
28531             Bruno Haible  <bruno@clisp.org>
28532
28533         * lib/vasnprintf.c (decimal_point_char): Define also if
28534         NEED_PRINTF_INFINITE_LONG_DOUBLE.
28535
28536 2008-09-16  Bruno Haible  <bruno@clisp.org>
28537         and Eric Blake  <ebb9@byu.net>
28538
28539         vasnprintf: support Irix 5.3
28540         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
28541         that mishandle long double infinity.
28542         Reported by Tom G. Christensen.
28543
28544 2008-09-16  Bruno Haible  <bruno@clisp.org>
28545
28546         * doc/glibc-functions/scandir.texi: Mention the function is missing on
28547         Solaris 9.
28548         * doc/glibc-functions/alphasort.texi: Likewise.
28549         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
28550
28551 2008-09-16  Jim Meyering  <meyering@redhat.com>
28552
28553         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
28554         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
28555         a umask modification leak out of a subshell.  Otherwise, the
28556         opensolaris /bin/sh would be accepted and thus cause unwarranted
28557         failures in the coreutils test suite.
28558
28559 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
28560
28561         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
28562         to succeed.
28563
28564 2008-09-16  Jim Meyering  <meyering@redhat.com>
28565
28566         avoid spurious test failure when library is built without ACL support
28567         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
28568         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
28569         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
28570         * tests/test-copy-acl.sh: Likewise.
28571
28572 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28573
28574         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
28575         based on character occurrence counts.
28576
28577 2008-09-15  Eric Blake  <ebb9@byu.net>
28578
28579         tests: avoid some compiler warnings
28580         * tests/test-memchr.c (main): Pass NULL indirectly.
28581         * tests/test-closein.c (main): Avoid unused variable.
28582
28583 2008-09-15  Bruno Haible  <bruno@clisp.org>
28584
28585         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
28586         are missing on OpenBSD 4.0 individually.
28587         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28588
28589 2008-09-15  Bruno Haible  <bruno@clisp.org>
28590
28591         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
28592         * doc/posix-functions/strerror.texi: Mention also Cygwin.
28593         * doc/posix-functions/perror.texi: Likewise.
28594         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
28595         is missing.
28596         Reported by Eric Blake.
28597
28598         * lib/errno.in.h: Use replacement values >= 2000.
28599         Reported by Eric Blake.
28600
28601 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28602
28603         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
28604         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
28605         limit.
28606         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
28607         compareseq was aborted.
28608
28609 2008-09-14  Bruno Haible  <bruno@clisp.org>
28610
28611         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
28612         yvec_edit_count.
28613         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
28614         (fstrcmp_bounded): Simplify result computation accordingly.
28615
28616 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28617
28618         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
28619         (fstrcmp): Define in terms of fstrcmp_bounded.
28620         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
28621         lower_bound argument.
28622         Return quickly if the result is certainly < lower_bound.
28623         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
28624
28625 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28626
28627         * lib/diffseq.h (EARLY_ABORT): New macro.
28628         (compareseq): Change return type to bool. Return true when EARLY_ABORT
28629         evaluates to true.
28630
28631 2008-09-14  Bruno Haible  <bruno@clisp.org>
28632
28633         * modules/perror-tests: New file.
28634         * tests/test-perror.sh: New file.
28635         * tests/test-perror.c: New file.
28636
28637         New module 'perror'.
28638         * lib/stdio.in.h (perror): New declaration.
28639         * lib/perror.c: New file.
28640         * m4/perror.m4: New file.
28641         * modules/perror: New file.
28642         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
28643         * doc/posix-functions/perror.texi: Mention the perror module.
28644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
28645         REPLACE_PERROR.
28646         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
28647         REPLACE_PERROR.
28648
28649 2008-09-14  Bruno Haible  <bruno@clisp.org>
28650
28651         * modules/stdio (Makefile.am): Reorder to match the order in
28652         lib/stdio.in.h.
28653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28654
28655 2008-09-13  Bruno Haible  <bruno@clisp.org>
28656
28657         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
28658
28659 2008-09-13  Bruno Haible  <bruno@clisp.org>
28660
28661         Extend strerror to cover the added errno values.
28662         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
28663         (rpl_strerror): Provide error messages for the added errno values and
28664         for the WSA* values.
28665         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
28666         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
28667         strerror.
28668         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
28669         * modules/strerror (Depends-on): Add errno.
28670         * doc/posix-functions/strerror.texi: Document the change.
28671         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
28672         and EOVERFLOW.
28673
28674 2008-09-13  Bruno Haible  <bruno@clisp.org>
28675
28676         * modules/EOVERFLOW: Remove file.
28677         * m4/eoverflow.m4: Remove file.
28678         * modules/EOVERFLOW-tests: Remove file.
28679         * tests/test-EOVERFLOW.c: Remove file.
28680         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
28681         * modules/ftell (Depends-on): Likewise.
28682         * modules/getdelim (Depends-on): Likewise.
28683         * modules/getugroups (Depends-on): Likewise.
28684         * modules/poll (Depends-on): Likewise.
28685         * modules/snprintf (Depends-on): Likewise.
28686         * modules/sprintf-posix (Depends-on): Likewise.
28687         * modules/vasnprintf (Depends-on): Likewise.
28688         * modules/vasprintf (Depends-on): Likewise.
28689         * modules/vfprintf-posix (Depends-on): Likewise.
28690         * modules/vsnprintf (Depends-on): Likewise.
28691         * modules/vsprintf-posix (Depends-on): Likewise.
28692         * modules/xvasprintf (Depends-on): Likewise.
28693         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28694         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
28695         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
28696         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
28697         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28698         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
28699         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
28700         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
28701         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28702         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
28703         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
28704         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
28705         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28706         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
28707         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
28708         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
28709         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28710         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
28711         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
28712         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
28713         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28714         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
28715         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
28716         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
28717         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
28718         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28719         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
28720         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
28721         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
28722         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
28723         * MODULES.html.sh: Remove EOVERFLOW.
28724         * NEWS: Mention the change.
28725
28726 2008-09-13  Bruno Haible  <bruno@clisp.org>
28727
28728         * modules/errno-tests: New file.
28729         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
28730
28731         * lib/errno.in.h: New file.
28732         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
28733         * modules/errno: New file.
28734         * doc/posix-headers/errno.texi: Update documentation.
28735         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
28736
28737 2008-09-13  Bruno Haible  <bruno@clisp.org>
28738
28739         * tests/test-poll.c: Use #if for native Windows, rather than testing
28740         __MSVCRT__.
28741
28742 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28743             Bruno Haible  <bruno@clisp.org>
28744
28745         * lib/glob.c: Don't include <pwd.h> on native Windows.
28746         (WINDOWS32): New macro.
28747         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
28748
28749 2008-09-13  Bruno Haible  <bruno@clisp.org>
28750
28751         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
28752         (ETIMEDOUT): Remove macro.
28753         (glthread_cond_timedwait_multithreaded): New declaration.
28754         (glthread_cond_timedwait): Use it.
28755         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
28756         (glthread_cond_timedwait_multithreaded): New function.
28757
28758 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28759
28760         * modules/poll-tests: Do not check for io.h.
28761         * tests/test-poll.c: Check for __MSVCRT__ instead.
28762
28763 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28764
28765         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
28766         * modules/poll-tests: Add inet_pton, stdbool, sockets.
28767         * tests/test-poll.c: Use them.  Use _pipe on Windows.
28768
28769 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28770
28771         * modules/poll-tests: New.
28772         * tests/test-poll.c: New.
28773
28774 2008-09-12  Eric Blake  <ebb9@byu.net>
28775
28776         frexp: test for NetBSD failure on -0.0
28777         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
28778         not all, bugs from NetBSD 3.0 have been fixed.
28779         * doc/posix-functions/frexp.texi (frexp): Document bug.
28780         Reported by Thomas Klausner.
28781
28782         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
28783         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
28784         literal -0.0.
28785         Reported by Jonathan C. Patschke <jp@centtech.com>.
28786
28787 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28788
28789         * lib/glthread/cond.h: Use dummy implementation also if
28790         USE_WIN32_THREADS.
28791
28792 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28793
28794         * modules/fnmatch-posix (License): Change to LGPLv2+.
28795         * modules/fnmatch-gnu (License): Likewise.
28796
28797 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28798
28799         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
28800
28801 2008-09-11  Jim Meyering  <meyering@redhat.com>
28802
28803         * users.txt: Add gtk-vnc.
28804
28805 2008-09-08  Simon Josefsson  <simon@josefsson.org>
28806
28807         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
28808         rotate amounts.
28809
28810         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
28811         required for 16-bit and 8-bit rotates.
28812         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
28813         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
28814         UINT8_MAX instead of hard-coded constants.
28815         Suggested by Paul Eggert.
28816
28817 2008-09-07  Bruno Haible  <bruno@clisp.org>
28818
28819         * tests/test-striconveh.c (main): Check behaviour when converting from
28820         UTF-7.
28821
28822         Make striconveh work better with stateful encodings.
28823         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
28824         that iconv does not increment the inptr when returning -1/EINVAL.
28825
28826 2008-09-07  Bruno Haible  <bruno@clisp.org>
28827
28828         * build-aux/config.rpath: Update according to libtool-2.2.6.
28829         * build-aux/config.libpath: Likewise.
28830
28831 2008-09-06  Bruno Haible  <bruno@clisp.org>
28832
28833         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
28834         * lib/freadptr.c (freadptr): Likewise.
28835         * lib/freadseek.c (freadptrinc): Likewise.
28836         Reported by Simon Josefsson.
28837
28838 2008-09-06  Bruno Haible  <bruno@clisp.org>
28839
28840         * modules/freadptr (License): Change to LGPLv2+.
28841         * modules/freadseek (License): Likewise.
28842         Suggested by Eric Blake.
28843
28844         * modules/memchr2 (License): Change to LGPLv2+.
28845         Approved by Eric Blake.
28846
28847 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28848             Bruno Haible  <bruno@clisp.org>
28849
28850         Make gnulib-tool work with native 'sed' on AIX.
28851         * gnulib-tool (sed_noop): New variable.
28852         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
28853         func_add_or_update, func_create_testdir): Use it to initialize sed
28854         script variables.
28855         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28856
28857 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
28858             Bruno Haible  <bruno@clisp.org>
28859
28860         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
28861         also works after #include directives.
28862
28863 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
28864
28865         getdate.y: reject an out-of-range timezone value
28866         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
28867         the range [-24...+24].  When specified with only one or two digits,
28868         * tests/test-getdate.c: Tests for the fix.
28869         * doc/getdate.texi: Document this change.
28870
28871 2008-09-03  Bruno Haible  <bruno@clisp.org>
28872
28873         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
28874
28875 2008-09-02  Simon Josefsson  <simon@josefsson.org>
28876
28877         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
28878         <bruce.korb@gmail.com> with ideas from Ben Pfaff
28879         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
28880         Blake <ebb9@byu.net>.
28881
28882         * tests/test-bitrotate.c: Add more test vectors.
28883
28884 2008-09-02  Eric Blake  <ebb9@byu.net>
28885
28886         vasnprintf-posix: handle large precision via %.*d
28887         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
28888         when handling it ourselves.
28889         * tests/test-vasnprintf-posix.c (test_function): Add test.
28890         * tests/test-snprintf-posix.h (test_function): Likewise.
28891         * tests/test-sprintf-posix.h (test_function): Likewise.
28892         * tests/test-vasprintf-posix.c (test_function): Likewise.
28893         Reported by Alain Guibert.
28894
28895 2008-09-01  Eric Blake  <ebb9@byu.net>
28896
28897         c-stack: make configure-time check more robust
28898         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
28899         successful sigaction call.
28900         Reported by Tom G. Christensen.
28901
28902 2008-09-01  Bruno Haible  <bruno@clisp.org>
28903
28904         New module 'findprog-lgpl'.
28905         * modules/findprog-lgpl: New file.
28906         * lib/findprog-lgpl.c: New file.
28907         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
28908         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
28909         to decide whether to use strdup or xstrdup, concatenated_filename or
28910         xconcatenated_filename.
28911
28912 2008-09-01  Bruno Haible  <bruno@clisp.org>
28913
28914         Split module 'concat-filename' into 'concat-filename' (LGPL) and
28915         'xconcat-filename' (GPL).
28916         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
28917         (License): Change to LGPLv2+.
28918         * modules/xconcat-filename: New file.
28919         * lib/concat-filename.h (concatenated_filename): Change specification.
28920         (xconcatenated_filename): New declaration.
28921         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
28922         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
28923         memory situations.
28924         * lib/xconcat-filename.c: New file.
28925         * NEWS: Mention the change.
28926         * lib/findprog.c: Include concat-filename.h, not filename.h.
28927         (find_in_path): Use xconcatenated_filename instead of
28928         concatenated_filename.
28929         * lib/javacomp.c: Include concat-filename.h, not filename.h.
28930         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
28931         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
28932         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
28933         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
28934         instead of concatenated_filename.
28935         * lib/javaexec.c: Include concat-filename.h, not filename.h.
28936         (execute_java_class): Use xconcatenated_filename instead of
28937         concatenated_filename.
28938         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
28939         * modules/javacomp (Depends-on): Likewise.
28940         * modules/javaexec (Depends-on): Likewise.
28941
28942 2008-09-01  Bruno Haible  <bruno@clisp.org>
28943
28944         Split module 'filename' into 'filename' and 'concat-filename'.
28945         * modules/filename: Keep only lib/filename.h.
28946         (License): Change to LGPLv2+.
28947         * modules/concat-filename: New file, extracted from modules/filename.
28948         * lib/filename.h (concatenated_filename): Remove declaration.
28949         * lib/concat-filename.h: New file, extracted from lib/filename.h.
28950         * lib/concat-filename.c: Include concat-filename.h.
28951         * NEWS: Mention the change.
28952
28953 2008-09-01  Simon Josefsson  <simon@josefsson.org>
28954
28955         * lib/bitrotate.h (rotl8, rotr8): Add.
28956
28957         * modules/bitrotate (configure.ac): Need
28958         AC_REQUIRE([AC_C_INLINE]).
28959         (Description): Mention stdint.h.  Reported by Bruno Haible
28960         <bruno@clisp.org>.
28961
28962         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
28963         Paolo Bonzini <bonzini@gnu.org>.
28964
28965 2008-08-31  Bruno Haible  <bruno@clisp.org>
28966
28967         Assume Solaris specific bi-arch conventions on Solaris systems.
28968         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
28969         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
28970         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
28971         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
28972         like acl_libdirstem.
28973         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
28974         acl_libdirstem.
28975         * NEWS: Mention the change.
28976         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
28977
28978 2008-08-31  Jim Meyering  <meyering@redhat.com>
28979
28980         * lib/strftime.h: Add comments describing the two added arguments.
28981
28982         remove duplicate #include directives
28983         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
28984         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
28985
28986 2008-08-31  Bruno Haible  <bruno@clisp.org>
28987
28988         New module 'sigpipe-die'.
28989         * modules/sigpipe-die: New file.
28990         * lib/sigpipe-die.h: New file.
28991         * lib/sigpipe-die.c: New file.
28992         * MODULES.html.sh (Signal handling): Add sigpipe-die.
28993
28994 2008-08-31  Bruno Haible  <bruno@clisp.org>
28995
28996         Don't override previously installed signal handlers.
28997         * lib/fatal-signal.c (saved_sigactions): New variable.
28998         (uninstall_handlers): Reset the signal to the saved handler, not
28999         to SIG_DFL (except when ignored).
29000         (install_handlers): Save the previous handlers.
29001
29002 2008-08-30  Bruno Haible  <bruno@clisp.org>
29003
29004         * gnulib-tool (func_reset_sigpipe): New function.
29005         (func_get_automake_snippet, func_modules_transitive_closure,
29006         func_import): Invoke it before a join command that reads from stdin,
29007         to avoid "echo: write error: Broken pipe" error messages on stderr.
29008         Reported by Sam Steingold <sds@gnu.org>.
29009
29010 2008-08-30  Bruno Haible  <bruno@clisp.org>
29011
29012         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
29013         Code copied from m4/open.m4.
29014         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
29015         access and the filename ends in a slash. Code copied from lib/open.c.
29016         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
29017         * tests/test-fopen.c (main): Check against bug with trailing slash.
29018
29019 2008-08-29  Bruno Haible  <bruno@clisp.org>
29020
29021         Avoid some "gcc -pedantic" warnings.
29022         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
29023         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
29024         * lib/dirent.in.h: Likewise.
29025         * lib/fcntl.in.h: Likewise.
29026         * lib/float.in.h: Likewise.
29027         * lib/iconv.in.h: Likewise.
29028         * lib/inttypes.in.h: Likewise.
29029         * lib/locale.in.h: Likewise.
29030         * lib/math.in.h: Likewise.
29031         * lib/netinet_in.in.h: Likewise.
29032         * lib/search.in.h: Likewise.
29033         * lib/signal.in.h: Likewise.
29034         * lib/stdarg.in.h: Likewise.
29035         * lib/stdint.in.h: Likewise.
29036         * lib/stdio.in.h: Likewise.
29037         * lib/stdlib.in.h: Likewise.
29038         * lib/string.in.h: Likewise.
29039         * lib/strings.in.h: Likewise.
29040         * lib/sys_select.in.h: Likewise.
29041         * lib/sys_socket.in.h: Likewise.
29042         * lib/sys_stat.in.h: Likewise.
29043         * lib/sys_time.in.h: Likewise.
29044         * lib/sysexits.in.h: Likewise.
29045         * lib/time.in.h: Likewise.
29046         * lib/unistd.in.h: Likewise.
29047         * lib/wchar.in.h: Likewise.
29048         * lib/wctype.in.h: Likewise.
29049         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
29050         * modules/fchdir (Makefile.am): Likewise.
29051         * modules/fcntl (Makefile.am): Likewise.
29052         * modules/float (Makefile.am): Likewise.
29053         * modules/iconv_open (Makefile.am): Likewise.
29054         * modules/inttypes (Makefile.am): Likewise.
29055         * modules/locale (Makefile.am): Likewise.
29056         * modules/math (Makefile.am): Likewise.
29057         * modules/netinet_in (Makefile.am): Likewise.
29058         * modules/search (Makefile.am): Likewise.
29059         * modules/signal (Makefile.am): Likewise.
29060         * modules/stdarg (Makefile.am): Likewise.
29061         * modules/stdint (Makefile.am): Likewise.
29062         * modules/stdio (Makefile.am): Likewise.
29063         * modules/stdlib (Makefile.am): Likewise.
29064         * modules/string (Makefile.am): Likewise.
29065         * modules/strings (Makefile.am): Likewise.
29066         * modules/sys_select (Makefile.am): Likewise.
29067         * modules/sys_socket (Makefile.am): Likewise.
29068         * modules/sys_stat (Makefile.am): Likewise.
29069         * modules/sys_time (Makefile.am): Likewise.
29070         * modules/sysexits (Makefile.am): Likewise.
29071         * modules/time (Makefile.am): Likewise.
29072         * modules/unistd (Makefile.am): Likewise.
29073         * modules/wchar (Makefile.am): Likewise.
29074         * modules/wctype (Makefile.am): Likewise.
29075         Reported by Reuben Thomas <rrt@sc3d.org>.
29076
29077 2008-08-29  Bruno Haible  <bruno@clisp.org>
29078
29079         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
29080         any more.
29081
29082 2008-08-29  Simon Josefsson  <simon@josefsson.org>
29083
29084         * MODULES.html.sh (Misc): Add bitrotate.
29085
29086         * modules/bitrotate: New file.
29087
29088         * lib/bitrotate.h: New file.
29089
29090         * modules/bitrotate-tests: New file.
29091
29092         * tests/test-bitrotate.c: New file.
29093
29094         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
29095         on the bitrotate module.
29096
29097         * lib/arctwo.c: Use new bitrotate module.
29098
29099 2008-08-29  Jim Meyering  <meyering@redhat.com>
29100
29101         bootstrap: merge changes from coreutils
29102         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
29103         of copied files.  Remove a kludge, now that this is fixed.
29104         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
29105         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
29106         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
29107
29108 2008-08-29  Bruno Haible  <bruno@clisp.org>
29109
29110         * MODULES.html.sh: Remove --cvs-urls option.
29111
29112 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
29113
29114         maint.mk: adjust to file name change
29115         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
29116
29117 2008-08-28  Jim Meyering  <meyering@redhat.com>
29118
29119         * modules/getndelim2 (License): Relicense to LGPLv2+.
29120         Approved by Richard Stallman for the version of 1995, and by
29121         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
29122
29123 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
29124
29125         * lib/getdelim.c (flockfile, funlockfile): Make all of them
29126         dummy if one is not available.  Do not touch them if
29127         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
29128         (getc_maybe_unlocked): New.
29129         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
29130
29131 2008-08-26  Eric Blake  <ebb9@byu.net>
29132
29133         doc/INSTALL: resync from autoconf
29134         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
29135         (INSTALL_PRELUDE): Delete; this is done more efficiently by
29136         moving...
29137         * install.texi [!autoconf]: ...here.  Resync from autoconf.
29138         * INSTALL: Regenerate.
29139         * INSTALL.ISO: New file.
29140         * INSTALL.UTF-8: Likewise.
29141
29142 2008-08-26  Jim Meyering  <meyering@redhat.com>
29143
29144         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
29145         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
29146         these definitions conditional, so that they may be overridden, too.
29147
29148 2008-08-26  Bruno Haible  <bruno@clisp.org>
29149
29150         Generate INSTALL file variants with prettier quotes.
29151         * doc/Makefile (INSTALL_PRELUDE): New macro.
29152         (INSTALL): Use it.
29153         (INSTALL.ISO, INSTALL.UTF-8): New rules.
29154
29155 2008-08-26  Bruno Haible  <bruno@clisp.org>
29156
29157         Run makeinfo in an English locale.
29158         * doc/Makefile (MAKEINFO): New variable.
29159
29160 2008-08-26  Bruno Haible  <bruno@clisp.org>
29161
29162         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
29163         Suggested by Eric Blake.
29164
29165 2008-08-25  Bruno Haible  <bruno@clisp.org>
29166
29167         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
29168
29169 2008-08-25  Eric Blake  <ebb9@byu.net>
29170
29171         c-stack: test that stack overflow can be caught
29172         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
29173         that platform allows handling stack overflow; at least OS/2 EMX
29174         has sigaltstack, but crashes before transferring control to
29175         handler on stack overflow.
29176         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
29177         check for HAVE_STACK_OVERFLOW_HANDLING.
29178         Reported by Elbert Pol.
29179
29180 2008-08-25  Bruno Haible  <bruno@clisp.org>
29181
29182         * doc/posix-functions/strftime.texi: Fix description of strftime
29183         module.
29184
29185 2008-08-24  Bruno Haible  <bruno@clisp.org>
29186
29187         * tests/uniwidth/test-uc_width2.c: New file.
29188         * tests/uniwidth/test-uc_width2.sh: New file.
29189         * modules/uniwidth/width-tests (Files): Add the new files.
29190         (TESTS): Add uniwidth/test-uc_width2.sh.
29191         (TESTS_ENVIRONMENT): New variable.
29192         (check_PROGRAMS): Add test-uc_width2.
29193         (test_uc_width2_SOURCES): New variable.
29194
29195         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
29196         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
29197         not 0x00AB.
29198         Reported by Alexander V. Lukyanov <lav@netis.ru>.
29199
29200 2008-08-22  Eric Blake  <ebb9@byu.net>
29201
29202         test-lock, test-tls: mention why a test is skipped
29203         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
29204         skipped.
29205         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
29206
29207         count-one-bits: relax license
29208         * modules/count-one-bits (License): Relicense to LGPLv2+.
29209         Suggested by Ludovic Courtès, approved by Ben Pfaff.
29210
29211 2008-08-22  Andreas Schwab  <schwab@suse.de>
29212
29213         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29214         Remove spurious space in assignment.
29215
29216 2008-08-21  Simon Josefsson  <simon@josefsson.org>
29217
29218         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
29219         Paul Eggert <eggert@CS.UCLA.EDU>.
29220
29221 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
29222
29223         * modules/gettext: Add m4/threadlib.m4.
29224
29225 2008-08-19  Eric Blake  <ebb9@byu.net>
29226
29227         test-c-stack: fix compilation failure on FreeBSD 5.0
29228         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
29229         headers before <sys/resource.h>.
29230         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
29231         the bug.
29232         Reported by Nelson H. F. Beebe.
29233
29234         strverscmp: migrate from "strverscmp.h" to <string.h>
29235         * modules/string (Makefile.am): Add new hooks.
29236         * modules/strverscmp (Files): Remove strverscmp.h.
29237         (Depends-on): Add string.
29238         (configure.ac): Add indicator.
29239         (Include): Mention new header.
29240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
29241         defaults.
29242         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
29243         results.
29244         * lib/strverscmp.h: Delete.
29245         * lib/string.in.h (strverscmp): Provide declaration, when needed.
29246         * tests/test-strverscmp.c (includes): Adjust client.
29247         * lib/check-version.c (includes): Likewise.
29248         * NEWS: Document the change.
29249
29250         strverscmp: add unit test
29251         * modules/strverscmp-tests: New file.
29252         * tests/test-strverscmp.c: Likewise.
29253
29254 2008-08-19  Simon Josefsson  <simon@josefsson.org>
29255
29256         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
29257         regarding Windows crypto stuff, from Mono.
29258
29259 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
29260
29261         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
29262         if present, for intel RND.  Return error on failures.
29263
29264 2008-08-18  Ben Pfaff  <blp@gnu.org>
29265
29266         gitlog-to-changelog: give better diagnostic for failed pipe-open
29267         * build-aux/gitlog-to-changelog: Improve error message: suggest
29268         that the version of Git may be too old.
29269
29270 2008-08-18  Simon Josefsson  <simon@josefsson.org>
29271
29272         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
29273         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
29274
29275 2008-08-18  Bruno Haible  <bruno@clisp.org>
29276
29277         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
29278         pthread_in_use().
29279
29280 2008-08-18  Bruno Haible  <bruno@clisp.org>
29281
29282         * lib/glthread/threadlib.c: Include <pthread.h>.
29283
29284 2008-08-18  Bruno Haible  <bruno@clisp.org>
29285
29286         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
29287         glthread_recursive_lock_* macros.
29288         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
29289         Fix syntax error.
29290
29291 2008-08-18  Bruno Haible  <bruno@clisp.org>
29292
29293         * lib/glthread/thread.c: Avoid forcing a context switch right after
29294         thread creation.
29295
29296 2008-08-17  Bruno Haible  <bruno@clisp.org>
29297
29298         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
29299         * lib/glthread/thread.h: Provide Win32 specific implementation.
29300         * modules/thread (Files): Add lib/glthread/thread.c.
29301         (Depends-on): Add lock.
29302         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
29303
29304 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29305
29306         New module 'yield'.
29307         * modules/yield: New file.
29308         * lib/glthread/yield.h: New file.
29309         * m4/yield.m4: New file.
29310         * MODULES.html.sh (Multithreading): Add yield.
29311
29312 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29313
29314         New module 'thread'.
29315         * modules/thread: New file.
29316         * lib/glthread/thread.h: New file.
29317         * m4/thread.m4: New file.
29318         * MODULES.html.sh (Multithreading): Add thread.
29319
29320 2008-08-17  Bruno Haible  <bruno@clisp.org>
29321
29322         * lib/glthread/lock.h: Include <stdlib.h> always.
29323         * lib/glthread/tls.h: Likewise.
29324         * lib/glthread/cond.h: Likewise.
29325
29326 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29327
29328         New module 'cond'.
29329         * modules/cond: New file.
29330         * lib/glthread/cond.h: New file.
29331         * lib/glthread/cond.c: New file.
29332         * m4/cond.m4: New file.
29333         * MODULES.html.sh (Multithreading): Add cond.
29334
29335 2008-08-16  Eric Blake  <ebb9@byu.net>
29336
29337         c-stack: fix regression on Irix 5.3 from 2008-06-21
29338         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
29339         sa_sigaction...
29340         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
29341         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
29342         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
29343         * modules/signal (Makefile.am): Use the value.
29344         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
29345         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
29346         * doc/posix-headers/signal.texi (signal.h): Document this
29347         portability issue.
29348         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
29349         Reported by Tom G. Christensen.
29350
29351 2008-08-17  Bruno Haible  <bruno@clisp.org>
29352
29353         New module 'threadlib'.
29354         * modules/threadlib: New file.
29355         * lib/glthread/threadlib.c: New file, extracted from
29356         lib/glthread/lock.c.
29357         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
29358         functions.
29359         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
29360         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
29361         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
29362         macros.
29363         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
29364         (gl_DISABLE_THREADS): Remove macro.
29365         * modules/lock (Files): Remove build-aux/config.rpath.
29366         (Depends-on): Remove havelib. Add threadlib.
29367         (configure.ac-early): Remove section.
29368         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
29369         * modules/tls (Depends-on): Remove lock. Add threadlib.
29370         (Link): New section, copied from threadlib.
29371         * MODULES.html.sh (Multithreading): Add threadlib.
29372
29373 2008-08-14  Bruno Haible  <bruno@clisp.org>
29374
29375         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
29376         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
29377         glthread_rwlock_unlock, glthread_rwlock_destroy,
29378         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
29379         glthread_recursive_lock_destroy): Define as macros always.
29380         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
29381         glthread_lock_lock.
29382         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
29383         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
29384         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
29385         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
29386         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
29387         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
29388         (glthread_recursive_lock_lock_func): Renamed from
29389         glthread_recursive_lock_lock.
29390         (glthread_recursive_lock_unlock_func): Renamed from
29391         glthread_recursive_lock_unlock.
29392         (glthread_recursive_lock_destroy_func): Renamed from
29393         glthread_recursive_lock_destroy.
29394
29395 2008-08-14  Bruno Haible  <bruno@clisp.org>
29396
29397         * lib/glthread/lock.h: Renamed from lib/lock.h.
29398         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
29399         * lib/glthread/tls.h: Renamed from lib/tls.h.
29400         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
29401         * lib/fstrcmp.c: Update includes.
29402         * lib/strsignal.c: Update includes.
29403         * modules/lock (Files, Makefile.am): Update.
29404         (Include): Change to "glthread/lock.h".
29405         * modules/tls (Files, Makefile.am): Update.
29406         (Include): Change to "glthread/tls.h".
29407         * tests/test-lock.c: Update includes.
29408         * tests/test-tls.c: Update includes.
29409         * NEWS: Mention the renamed header files.
29410
29411 2008-08-11  Jim Meyering  <meyering@redhat.com>
29412
29413         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
29414
29415 2008-08-11  Eric Blake  <ebb9@byu.net>
29416
29417         test-c-stack: avoid C99-ism
29418         * tests/test-c-stack.c (main): Fix whitespace, move declaration
29419         before statement.
29420         Reported by Alain Guibert.
29421
29422 2008-08-10  Jim Meyering  <meyering@redhat.com>
29423
29424         ensure that return value of uinttostr et al are not ignored
29425         * lib/inttostr.h (__GNUC_PREREQ): Define.
29426         (__attribute_warn_unused_result__): Define.
29427         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
29428
29429 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
29430
29431         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
29432         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
29433
29434 2008-08-07  Jim Meyering  <meyering@redhat.com>
29435
29436         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
29437
29438         * modules/mkstemp (License): Relicense under LGPLv2+.
29439         * modules/tempname (License): Likewise.
29440
29441 2008-08-06  Bruno Haible  <bruno@clisp.org>
29442
29443         * lib/poll.c (poll): Further micro-optimization.
29444
29445 2008-08-06  Jim Meyering  <meyering@redhat.com>
29446
29447         inet_pton.c: use locale-independent tolower
29448         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
29449         (inet_pton6): Use c_tolower rather than tolower.
29450         * modules/inet_pton (Depends-on): Add c-ctype.
29451
29452 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
29453
29454         * lib/poll.c (poll): Avoid division when timeout is 0, cache
29455         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
29456
29457 2008-08-06  Jim Meyering  <meyering@redhat.com>
29458
29459         * modules/inet_pton (License): Relicense under LGPLv2+.
29460
29461 2008-08-03  Bruno Haible  <bruno@clisp.org>
29462
29463         Additional non-aborting API for lock and tls.
29464         * lib/lock.h: Include <errno.h>.
29465         (glthread_lock_init): New macro/function.
29466         (gl_lock_init): Define as wrapper around glthread_lock_init.
29467         (glthread_lock_lock): New macro/function.
29468         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
29469         (glthread_lock_unlock): New macro/function.
29470         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
29471         (glthread_lock_destroy): New macro/function.
29472         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
29473         (glthread_rwlock_init): New macro/function.
29474         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
29475         (glthread_rwlock_rdlock): New macro/function.
29476         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
29477         (glthread_rwlock_wrlock): New macro/function.
29478         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
29479         (glthread_rwlock_unlock): New macro/function.
29480         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
29481         (glthread_rwlock_destroy): New macro/function.
29482         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
29483         (glthread_recursive_lock_init): New macro/function.
29484         (gl_recursive_lock_init): Define as wrapper around
29485         glthread_recursive_lock_init.
29486         (glthread_recursive_lock_lock): New macro/function.
29487         (gl_recursive_lock_lock): Define as wrapper around
29488         glthread_recursive_lock_lock.
29489         (glthread_recursive_lock_unlock): New macro/function.
29490         (gl_recursive_lock_unlock): Define as wrapper around
29491         glthread_recursive_lock_unlock.
29492         (glthread_recursive_lock_destroy): New macro/function.
29493         (gl_recursive_lock_destroy): Define as wrapper around
29494         glthread_recursive_lock_destroy.
29495         (glthread_once): New macro/function.
29496         (gl_once): Define as wrapper around glthread_once.
29497         Update function declarations.
29498         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
29499         glthread_rwlock_init. Return error code.
29500         (glthread_rwlock_rdlock_multithreaded): Renamed from
29501         glthread_rwlock_rdlock. Return error code.
29502         (glthread_rwlock_wrlock_multithreaded): Renamed from
29503         glthread_rwlock_wrlock. Return error code.
29504         (glthread_rwlock_unlock_multithreaded): Renamed from
29505         glthread_rwlock_unlock. Return error code.
29506         (glthread_rwlock_destroy_multithreaded): Renamed from
29507         glthread_rwlock_destroy. Return error code.
29508         (glthread_recursive_lock_init_multithreaded): Renamed from
29509         glthread_recursive_lock_init. Return error code.
29510         (glthread_recursive_lock_lock_multithreaded): Renamed from
29511         glthread_recursive_lock_lock. Return error code.
29512         (glthread_recursive_lock_unlock_multithreaded): Renamed from
29513         glthread_recursive_lock_unlock. Return error code.
29514         (glthread_recursive_lock_destroy_multithreaded): Renamed from
29515         glthread_recursive_lock_destroy. Return error code.
29516         (glthread_once_call): Make static.
29517         (glthread_once_multithreaded): Renamed from glthread_once.
29518         * lib/tls.h: Include <errno.h>.
29519         (glthread_tls_key_init): New macro/function.
29520         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
29521         (glthread_tls_set): New macro/function.
29522         (gl_tls_set): Define as wrapper around glthread_tls_set.
29523         (glthread_tls_key_destroy): New macro/function.
29524         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
29525         Update function declarations.
29526         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
29527         glthread_tls_get.
29528         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29529
29530 2008-08-04  Eric Blake  <ebb9@byu.net>
29531
29532         gnumakefile: use space, not TAB, outside of targets
29533         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
29534
29535 2008-08-02  Jim Meyering  <meyering@redhat.com>
29536
29537         getdate.y: avoid locale-dependent date parsing failure
29538         In Turkish locales, getdate would fail to recognize keywords
29539         containing a lowercase "i".  The solution is not to rely on
29540         locale-sensitive case-conversion.
29541         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
29542         (lookup_word): Use c_toupper in place of toupper.
29543         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
29544         Reported by Vefa Bicakci <bicave@superonline.com> in
29545         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
29546         * modules/getdate (Depends-on): Add c-ctype.
29547
29548 2008-08-02  Bruno Haible  <bruno@clisp.org>
29549
29550         * gnulib-tool (func_import): When updating or creating a .gitignore
29551         file, prepend each added line with a slash, and ignore leading slashes
29552         from the existing lines.
29553         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29554
29555 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29556
29557         Portability fix for GNU make 3.79.1.
29558         * top/GNUmakefile: Avoid 'else COND', which older GNU make
29559         versions do not understand.
29560
29561 2008-08-01  Bruno Haible  <bruno@clisp.org>
29562
29563         Work around bug of HP-UX 10.20 cc with -0.0 literal.
29564         * tests/test-isnanf.h (zero): New variable.
29565         (main): Avoid literal -0.0f.
29566         * tests/test-isnand.h (zero): New variable.
29567         (main): Avoid literal -0.0.
29568         * tests/test-isnanl.h (zero): New variable.
29569         (main): Avoid literal -0.0L.
29570         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
29571         (test_float, test_double, test_long_double): Avoid literals -0.0f,
29572         -0.0, -0.0L.
29573         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
29574         (test_signbitd): Avoid literal -0.0.
29575         (test_signbitl): Avoid literal -0.0L.
29576         * tests/test-ceilf1.c (zero): New variable.
29577         (main): Avoid literal -0.0f.
29578         * tests/test-ceill.c (zero): New variable.
29579         (main): Avoid literal -0.0L.
29580         * tests/test-floorf1.c (zero): New variable.
29581         (main): Avoid literal -0.0f.
29582         * tests/test-floorl.c (zero): New variable.
29583         (main): Avoid literal -0.0L.
29584         * tests/test-roundf1.c (zero): New variable.
29585         (main): Avoid literal -0.0f.
29586         * tests/test-round1.c (zero): New variable.
29587         (main): Avoid literal -0.0.
29588         * tests/test-roundl.c (zero): New variable.
29589         (main): Avoid literal -0.0L.
29590         * tests/test-truncf1.c (zero): New variable.
29591         (main): Avoid literal -0.0f.
29592         * tests/test-trunc1.c (zero): New variable.
29593         (main): Avoid literal -0.0.
29594         * tests/test-truncl.c (zero): New variable.
29595         (main): Avoid literal -0.0L.
29596         * tests/test-frexp.c (zero): New variable.
29597         (main): Avoid literal -0.0.
29598         * tests/test-frexpl.c (zero): New variable.
29599         (main): Avoid literal -0.0L.
29600         * tests/test-ldexpl.c (zero): New variable.
29601         (main): Avoid literal -0.0L.
29602         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29603         (zerod, zerol): New variables.
29604         (test_function): Avoid literals -0.0, -0.0L.
29605         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29606         (zerod, zerol): New variables.
29607         (test_function): Avoid literals -0.0, -0.0L.
29608         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29609         (zerod, zerol): New variables.
29610         (test_function): Avoid literals -0.0, -0.0L.
29611         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29612         (zerod, zerol): New variables.
29613         (test_function): Avoid literals -0.0, -0.0L.
29614         * tests/test-strtod.c (zero): New variable.
29615         (main): Avoid literal -0.0.
29616         Reported by Jonathan C. Patschke <jp@centtech.com>.
29617
29618 2008-07-31  Jim Meyering  <meyering@redhat.com>
29619
29620         sha256.h: correct definition of SHA224_DIGEST_SIZE
29621         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
29622         Reported by Paulie Pena IV <paulie4@gmail.com>.
29623         Define as 224 / 8, rather than as a literal.
29624         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
29625         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
29626         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
29627
29628 2008-07-31  Bruno Haible  <bruno@clisp.org>
29629
29630         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
29631         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
29632         Reported by Jonathan Patschke <jp@centtech.com>.
29633
29634 2008-07-31  Bruno Haible  <bruno@clisp.org>
29635
29636         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
29637         Reported by Paolo Bonzini <bonzini@gnu.org>.
29638
29639 2008-07-30  Eric Blake  <ebb9@byu.net>
29640
29641         test-strtod: allow compilation without -lm
29642         * tests/test-strtod.c (main): Avoid link dependence on fabs.
29643         Reported by Dennis Clarke <blastwave@gmail.com>.
29644
29645 2008-07-28  Jim Meyering  <meyering@redhat.com>
29646
29647         bootstrap: work also when there are no .po files in po/
29648         * build-aux/bootstrap (update_po_files): Complete the change
29649         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
29650
29651 2008-07-27  Jim Meyering  <meyering@redhat.com>
29652
29653         * users.txt: Add zile.
29654
29655 2008-07-26  Ben Pfaff  <blp@gnu.org>
29656
29657         Add missing dependencies on new m4/exponent[fdl].m4 files.
29658         * modules/isnanf-nolibm: Add m4/exponentf.m4.
29659         * modules/isnand-nolibm: Add m4/exponentd.m4.
29660         * modules/isnanl-nolibm: Add m4/exponentl.m4.
29661         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
29662         m4/isnan[fdl].m4, because the macros actually used moved.
29663         Reported by Jim Meyering.
29664
29665 2008-07-14  Ben Pfaff  <blp@gnu.org>
29666
29667         Add isinf module.
29668         * lib/isinf.c: New file.
29669         * lib/math.in.h: Define isinf macro if we have decided to replace
29670         it.
29671         * m4/isinf.m4: New file.
29672         * m4/math_h.m4: Initialize and substitute variables for isinf
29673         module.
29674         * modules/isinf: New file.
29675         * modules/isinf-tests: New file.
29676         * modules/math: Add substitutions for new module.
29677         * tests/test-isinf.c: New file.
29678         * doc/posix-functions/isinf.texi: Mention new module.
29679         * MODULES.html.sh: Mention new module.
29680
29681 2008-07-14  Ben Pfaff  <blp@gnu.org>
29682
29683         Factor out some macros for use by additional modules.
29684         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
29685         exponentf.m4.
29686         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
29687         exponentd.m4.
29688         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
29689         file exponentl.m4.
29690         * m4/exponentf.m4: New file.
29691         * m4/exponentd.m4: New file.
29692         * m4/exponentl.m4: New file.
29693         * modules/isnanf: Use new file m4/exponentf.m4.
29694         * modules/isnand: Use new file m4/exponentd.m4.
29695         * modules/isnanl: Use new file m4/exponentl.m4.
29696
29697 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
29698
29699         mktime.c: normalize tp->tm_isdst value to -1/0/1.
29700         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
29701         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
29702         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
29703
29704         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
29705         readlink on platforms without PATH_MAX.
29706
29707 2008-07-21  Eric Blake  <ebb9@byu.net>
29708
29709         Warn, not fail, on stale version.
29710         * top/GNUmakefile (_curr-ver): Tone down previous patch.
29711
29712         Don't allow installation with stale devel version number.
29713         * top/GNUmakefile (_is-install-target): New macro.
29714         (_curr-ver): Forbid installation with stale version number.
29715
29716 2008-07-20  Bruno Haible  <bruno@clisp.org>
29717
29718         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
29719         TESTS_ENVIRONMENT.
29720         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
29721
29722 2008-07-20  Bruno Haible  <bruno@clisp.org>
29723
29724         * lib/c-stack.h (c_stack_action): Add documentation.
29725         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
29726
29727 2008-07-20  Bruno Haible  <bruno@clisp.org>
29728
29729         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
29730         * modules/readlink (License): Likewise.
29731
29732 2008-07-17  Eric Blake  <ebb9@byu.net>
29733
29734         * modules/c-stack (Link): Fix typo.
29735
29736         Make c-stack use libsigsegv, when available.
29737         * modules/c-stack (Depends-on): Add libsigsegv.
29738         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
29739         needed.
29740         * lib/c-stack.c (SIGSTKSZ): Define fallback.
29741         (segv_handler, overflow_handler, c_stack_action)
29742         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
29743         implementation when libsigsegv is available, but only when using
29744         the library is necessary.
29745         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
29746         comment, explaining why XSI check fails on Linux.
29747         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
29748         * tests/test-c-stack2.sh: Tweak skip message.
29749         * NEWS: Document new link-time requirements.
29750
29751 2008-07-16  Eric Blake  <ebb9@byu.net>
29752
29753         c-stack: Expose false positives when not using libsigsegv.
29754         * modules/c-stack-tests (Files): Expand test.
29755         * tests/test-c-stack.c (main): Add means to conditionally trigger
29756         non-overflow SIGSEGV.
29757         * tests/test-c-stack2.sh: New file.
29758
29759 2008-07-14  Bruno Haible  <bruno@clisp.org>
29760
29761         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
29762         Reported by Eric Blake.
29763
29764 2008-07-14  Sam Steingold  <sds@gnu.org>
29765             Bruno Haible  <bruno@clisp.org>
29766
29767         New module libsigsegv.
29768         * modules/libsigsegv: New file.
29769         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
29770         modifications.
29771         * MODULES.html.sh (Signal handling): New section.
29772
29773 2008-07-14  Bruno Haible  <bruno@clisp.org>
29774
29775         * modules/unictype/ctype-* (Description): Add the word "function".
29776         Improves the resulting doc in MODULES.html.
29777
29778 2008-07-12  Ben Pfaff  <blp@gnu.org>
29779
29780         Add longlong module.
29781         * modules/longlong: New file.
29782
29783 2008-07-12  Bruno Haible  <bruno@clisp.org>
29784
29785         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
29786         to empty.
29787
29788 2008-07-10  Ben Pfaff  <blp@gnu.org>
29789
29790         Add isnan module.
29791         * doc/posix-functions/isnan.texi: Mention new module.
29792         * lib/math.in.h: Define isnan macro if we have decided to replace
29793         it.
29794         * m4/isnan.m4: New file.
29795         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
29796         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
29797         also.
29798         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
29799         redundancy.
29800         * m4/math_h.m4: Initialize and substitute variables for isnan
29801         module.
29802         * modules/isnan: New file.
29803         * modules/isnan-tests: New file.
29804         * modules/math: Add substitutions for new module.
29805         * tests/test-isnan.c: New file.
29806         * MODULES.html.sh: Mention new module.
29807
29808 2008-07-10  Ben Pfaff  <blp@gnu.org>
29809
29810         Add isnanf module.
29811         * lib/isnanf.m4: New file.
29812         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
29813         (gl_HAVE_ISNANF_IN_LIBM): New macro.
29814         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
29815         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
29816         * modules/isnanf: New file.
29817         * modules/isnanf-tests: New file.
29818         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
29819         files.
29820         * tests/test-isnanf-nolibm.c: factored most of its contents into
29821         new file tests/test-isnanf.h.
29822         * tests/test-isnanf.h: New file.
29823         * tests/test-isnanf.c: New file.
29824         * MODULES.html.sh: Mention new module.
29825         * doc/glibc-functions/isnanf.texi: Mention new module.
29826
29827 2008-07-10  Ben Pfaff  <blp@gnu.org>
29828
29829         Add isnand module.
29830         * lib/isnand.h: New file.
29831         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
29832         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
29833         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
29834         functionality also.
29835         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
29836         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
29837         (gl_HAVE_ISNAND_IN_LIBM): New macro.
29838         * modules/isnand: New file.
29839         * modules/isnand-tests: New file.
29840         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
29841         files.
29842         * tests/test-isnand-nolibm.c: factored most of its contents into
29843         new file tests/test-isnand.h.
29844         * tests/test-isnand.h: New file.
29845         * tests/test-isnand.c: New file.
29846         * MODULES.html.sh: Mention new module.
29847
29848 2008-07-10  Ben Pfaff  <blp@gnu.org>
29849
29850         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
29851         * lib/isnand.h: Rename lib/isnand-nolibm.h.
29852         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
29853         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
29854         * modules/isnanf-nolibm: Update references to renamed files.
29855         * modules/isnand-nolibm: Likewise.
29856         * modules/isnanf-nolibm-tests: Likewise.
29857         * modules/isnand-nolibm-tests: Likewise.
29858         * lib/frexp.c: Likewise.
29859         * lib/isfinite.c: Likewise.
29860         * lib/signbitd.c: Likewise.
29861         * lib/signbitf.c: Likewise.
29862         * lib/vasnprintf.c: Likewise.
29863         * tests/test-ceilf1.c: Likewise.
29864         * tests/test-ceilf2.c: Likewise.
29865         * tests/test-floorf1.c: Likewise.
29866         * tests/test-floorf2.c: Likewise.
29867         * tests/test-frexp.c: Likewise.
29868         * tests/test-round1.c: Likewise.
29869         * tests/test-round2.c: Likewise.
29870         * tests/test-roundf1.c: Likewise.
29871         * tests/test-strtod.c: Likewise.
29872         * tests/test-trunc1.c: Likewise.
29873         * tests/test-trunc2.c: Likewise.
29874         * tests/test-truncf1.c: Likewise.
29875         * tests/test-truncf2.c: Likewise.
29876         * NEWS: Mention the renamed header files.
29877
29878 2008-07-11  Jim Meyering  <meyering@redhat.com>
29879
29880         vc-list-files: make the last-resort awk code more portable
29881         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
29882         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
29883         does not support it.
29884
29885 2008-07-10  Eric Blake  <ebb9@byu.net>
29886
29887         Work with tar's bootstrap.
29888         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
29889         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
29890         an m4 comment.
29891
29892 2008-07-09  Jim Meyering  <meyering@redhat.com>
29893
29894         posix-shell.m4: fix typo that made this test malfunction
29895         * m4/posix-shell.m4: Remove capitalization in variable name.
29896
29897 2008-07-08  Bruno Haible  <bruno@clisp.org>
29898
29899         * m4/onceonly.m4: Update comments.
29900         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29901
29902 2008-07-04  Jim Meyering  <meyering@redhat.com>
29903
29904         * users.txt: Add vc-dwim.
29905         (bison, coreutils): Use the gitweb URL.
29906
29907 2008-07-03  Jim Meyering  <meyering@redhat.com>
29908
29909         * users.txt: Add libffcall.  From Sam Steingold.
29910
29911 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
29912
29913         getdate.y: do not ignore TZ with relative day, month or year offset
29914         * lib/getdate.y (get_date): Move the tz-handling block to follow the
29915         relative-date-handling, since otherwise, the latter would clobber the
29916         sole output (an updated Start value) of the tz-handling block.
29917         * tests/test-getdate.c: Tests for the fix
29918
29919 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29920
29921         Recognize 'foo_LIBRARIES += libgnu.a'.
29922         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
29923         makefile snippet has already specified an installation location,
29924         also using '+='.
29925
29926 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
29927
29928         getdate.y: factor out common actions
29929         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
29930         Use them in place of open-coded actions.
29931
29932 2008-07-01  Simon Josefsson  <simon@josefsson.org>
29933
29934         Add self-test for getdate module.
29935         * modules/getdate-tests: New file.
29936         * tests/test-getdate.c: New file.
29937
29938 2008-06-29  Bruno Haible  <bruno@clisp.org>
29939
29940         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
29941         .gitignore.
29942         Reported by Sylvain Beucler <beuc@beuc.net>.
29943
29944 2008-06-29  Bruno Haible  <bruno@clisp.org>
29945
29946         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
29947         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
29948
29949 2008-06-29  Bruno Haible  <bruno@clisp.org>
29950
29951         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
29952         EXTRA_DIST.
29953         Reported by Sylvain Beucler <beuc@beuc.net>.
29954
29955 2008-06-26  Jim Meyering  <meyering@redhat.com>
29956
29957         make several modules depend on the "open" module
29958         This provides slightly increased consistency when opening-for-write
29959         the name of a non-directory spelled with a trailing slash.
29960         * modules/chdir-safer: Likewise.
29961         * modules/chown: Likewise.
29962         * modules/clean-temp: Likewise.
29963         * modules/copy-file: Likewise.
29964         * modules/fchdir: Likewise.
29965         * modules/fcntl-safer: Likewise.
29966         * modules/pipe: Likewise.
29967         * modules/utime: Likewise.
29968         Prompted by Eric Blake and Bruno Haible.
29969
29970 2008-06-24  Andreas Schwab  <schwab@suse.de>
29971
29972         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
29973         literals can be used as initializers for global variables.
29974
29975 2008-06-23  Eric Blake  <ebb9@byu.net>
29976
29977         Make gnulib-cache.m4 easier to diff.
29978         * gnulib-tool (func_import): Allow newlines when reading cached
29979         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
29980
29981 2008-06-23  Bruno Haible  <bruno@clisp.org>
29982
29983         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
29984         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
29985         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
29986         m4/signalblocking.m4.
29987         (gl_PREREQ_SIGACTION): Don't invoke it.
29988         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
29989         gl_PREREQ_SIG_HANDLER_H.
29990         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29991         Don't check for sigaction here.
29992
29993 2008-06-23  Bruno Haible  <bruno@clisp.org>
29994
29995         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
29996         (install_handlers): Don't set the SA_RESETHAND flag.
29997
29998 2008-06-23  Bruno Haible  <bruno@clisp.org>
29999
30000         * m4/sigaction.m4: Comment fixes.
30001         * lib/signal.in.h: Likewise.
30002
30003 2008-06-23  Eric Blake  <ebb9@byu.net>
30004
30005         Fix typo.
30006         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
30007
30008         Avoid SA_ namespace.
30009         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
30010         Reported by Ralf Wildenhues.
30011
30012         Avoid test failure due to SA_RESTORER.
30013         * tests/test-sigaction.c (SA_MASK): New macro.
30014         (main): Avoid failing due to extension flags being set.
30015         Reported by Jim Meyering.
30016
30017         Revert use of sig-handler.h in sigprocmask.c.
30018         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
30019         it requires the existence of struct sigaction.
30020         * lib/sigprocmask.c (handler_t): Restore typedef.
30021         (rpl_signal, old_handlers): Use local type.
30022
30023 2008-06-22  Bruno Haible  <bruno@clisp.org>
30024
30025         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
30026         conditionally.
30027         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30028
30029 2008-06-22  Bruno Haible  <bruno@clisp.org>
30030
30031         * doc/posix-functions/siginterrupt.texi: Move note.
30032
30033         * lib/signal.in.h (SA_RESTART): New macro.
30034         * lib/sigaction.c: Update comment.
30035
30036         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
30037
30038         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
30039         (gl_PREREQ_SIGPROCMASK): Invoke it.
30040         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
30041
30042         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
30043
30044         * lib/sigprocmask.c: Update a comment.
30045
30046 2008-06-21  Eric Blake  <ebb9@byu.net>
30047
30048         Use sigaction module rather than signal().
30049         * modules/c-stack (Depends-on): Add sigaction.
30050         * modules/fatal-signal (Depends-on): Likewise.
30051         * modules/nanosleep (Depends-on): Likewise.
30052         * modules/sigprocmask (Files): Add sig-handler.h.
30053         * modules/sigaction (Files): Likewise.
30054         * lib/sig-handler.h (get_handler): New file, suggested by Paul
30055         Eggert.
30056         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
30057         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
30058         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
30059         (init_fatal_signals): Likewise.
30060         * lib/nanosleep.c (rpl_nanosleep): Likewise.
30061         (siginterrupt): Delete fallback.
30062         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
30063         instead.
30064         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
30065         siginterrupt.
30066
30067         New module sigaction, for mingw.
30068         * modules/sigaction: New module...
30069         * modules/sigaction-tests: ...and its test.
30070         * m4/sigaction.m4: New file.
30071         * lib/sigaction.c: Likewise.
30072         * tests/test-sigaction.c: Likewise.
30073         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
30074         * modules/signal (Makefile.am): Likewise.
30075         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
30076         needed.
30077         * doc/posix-headers/signal.texi (signal.h): Mention provided
30078         types.
30079         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
30080         that sigaction is preferable.
30081         * doc/posix-functions/sigaction.texi (sigaction): Mention new
30082         module.
30083         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30084         sigaction.
30085
30086         Improve robustness of sigprocmask by overriding signal.
30087         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
30088         is in use.
30089         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
30090         (SIGKILL, SIGSTOP): Provide fallbacks.
30091         (rpl_signal): Implement.
30092         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
30093         signal can be called inside handlers.
30094
30095         Fix nanosleep module on mingw.
30096         * modules/nanosleep (Depends-on): Add sys_select.
30097         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
30098
30099         Fix licensing of sigprocmask.
30100         * modules/raise (License): Relicense as LGPL.
30101
30102 2008-06-21  Bruno Haible  <bruno@clisp.org>
30103
30104         * lib/propername.c (proper_name_utf8): Don't use the transliterated
30105         result if it contains question marks.
30106         Reported by Michael Geng <linux@michaelgeng.de>.
30107
30108 2008-06-19  Bruno Haible  <bruno@clisp.org>
30109
30110         Fix CVS-ism.
30111         * doc/gnulib.texi: Include updated-stamp.texi.
30112         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
30113         (updated-stamp.texi): New rule.
30114         (gnulib.info): Depend on it.
30115         * doc/.gitignore: Add updated-stamp.texi.
30116         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
30117
30118 2008-06-19  Bruno Haible  <bruno@clisp.org>
30119
30120         * doc/Makefile (gnulib.info): Update and simplify dependencies.
30121         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30122
30123 2008-06-19  Eric Blake  <ebb9@byu.net>
30124
30125         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
30126         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
30127         Reported by Stepan Kasal.
30128
30129 2008-06-18  Bruno Haible  <bruno@clisp.org>
30130
30131         * lib/fatal-signal.c (init_fatal_signals): Add comment.
30132         Reported by Eric Blake.
30133
30134 2008-06-18  Eric Blake  <ebb9@byu.net>
30135
30136         Work around cygwin 1.5.25 strsignal bug.
30137         * tests/test-strsignal.c: Allow for const char *.
30138         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
30139
30140 2008-06-18  Simon Josefsson  <simon@josefsson.org>
30141
30142         * users.txt: Update URL to article and add author/date
30143         information.
30144
30145 2008-06-17  Bruno Haible  <bruno@clisp.org>
30146
30147         New macro gl_DISABLE_THREADS.
30148         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
30149         if the user did not pass --enable-threads or --disable-threads option.
30150         (gl_DISABLE_THREADS): New macro.
30151         Reported by Eric Blake <ebb9@byu.net>.
30152
30153 2008-06-17  Bruno Haible  <bruno@clisp.org>
30154
30155         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
30156         when the macro ignores it.
30157         Based on a patch by Eric Blake <ebb9@byu.net>.
30158
30159 2008-06-17  Bruno Haible  <bruno@clisp.org>
30160
30161         * modules/tls (License): Change to LGPLv2+.
30162         Reported by Eric Blake.
30163
30164 2008-06-17  Eric Blake  <ebb9@byu.net>
30165
30166         Simplify c-stack prerequisites.
30167         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
30168         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
30169         no longer requires <ucontext.h> to exist.  Optimize setrlimit
30170         check.
30171         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
30172         <sys/resource.h>.
30173
30174         Move c-stack test into testsuite.
30175         * modules/c-stack-tests: New file.
30176         * lib/c-stack.c [DEBUG]: Move test program...
30177         * tests/test-c-stack.c: ...into this new file.  Skip rather than
30178         fail test if sigaltstack is lacking.
30179         * tests/test-c-stack.sh: New driver file.
30180
30181 2008-06-16  Eric Blake  <ebb9@byu.net>
30182
30183         Use raise module consistently.
30184         * modules/fatal-signal (Depends-on): Add raise.
30185         * modules/sigprocmask (Depends-on): Likewise.
30186         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
30187         * lib/sigprocmask.c (sigprocmask): Likewise.
30188         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30189         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
30190
30191         Fix compliance bug in sigpending.
30192         * lib/sigprocmask.c (sigpending): Return pending array via
30193         parameter, not return value.
30194
30195 2008-06-14  Eric Blake  <ebb9@byu.net>
30196
30197         Improve obstack-printf test code.
30198         * tests/test-obstack-printf.c (test_function): Fix comment, and
30199         simplify usage of obstack_* in macros.  Add a test for coverage.
30200         Reported by Bruno Haible.
30201
30202 2008-06-14  Bruno Haible  <bruno@clisp.org>
30203
30204         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
30205         array size as a constant, not as a const variable.
30206         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
30207         AC_USE_SYSTEM_EXTENSIONS.
30208         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30209         Test whether the obstack_printf function actually exists.
30210         * modules/obstack-printf (Depends-on): Add extensions.
30211         (Include): Remove obstack.h.
30212         * modules/obstack-printf-posix (Depends-on): Add extensions.
30213         (Include): Remove obstack.h.
30214
30215 2008-06-13  Eric Blake  <ebb9@byu.net>
30216
30217         Add obstack-printf and obstack-printf-posix modules.
30218         * modules/obstack-printf: New file.
30219         * modules/obstack-printf-posix: Likewise.
30220         * MODULES.html.sh (Misc): Mention them.
30221         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30222         Likewise.
30223         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30224         Likewise.
30225         * modules/stdio (Makefile.am): Accomodate new modules.
30226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30227         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
30228         Declare.
30229         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
30230         functions.
30231         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
30232         (gl_REPLACE_OBSTACK_PRINTF): New macros
30233         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
30234         * tests/test-obstack-printf.c: New file.
30235         * modules/obstack-printf-tests: Likewise.
30236         * modules/obstack-printf-posix-tests: Likewise.
30237
30238 2008-06-11  Bruno Haible  <bruno@clisp.org>
30239
30240         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
30241         * lib/open.c: Include errno.h.
30242         (open): Fail when attempting to write to a file that has a trailing
30243         slash.
30244         * tests/test-open.c (main): Test against trailing slash bug.
30245         * doc/posix-functions/open.texi: Mention the trailing slash bug.
30246
30247 2008-06-10  Bruno Haible  <bruno@clisp.org>
30248
30249         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
30250         for $? to work inside the trap command, with various /bin/sh-s.
30251         * tests/test-vc-list-files-cvs.sh: Likewise.
30252
30253 2008-06-10  Bruno Haible  <bruno@clisp.org>
30254
30255         * lib/acl-internal.h: Don't include gettext.h here.
30256         * lib/set-mode-acl.c: Include gettext.h here.
30257         * lib/copy-acl.c: Likewise.
30258
30259 2008-06-10  Bruno Haible  <bruno@clisp.org>
30260
30261         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
30262         * lib/wait-process.c (wait_subprocess): Likewise.
30263         * lib/execute.h (execute): Add termsigp argument.
30264         * lib/execute.c (execute): Likewise.
30265         * lib/csharpcomp.c (compile_csharp_using_pnet,
30266         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
30267         * lib/csharpexec.c (execute_csharp_using_pnet,
30268         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
30269         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
30270         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
30271         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
30272         is_jikes_present): Update.
30273         * lib/javaexec.c (execute_java_class): Update.
30274         * lib/javaversion.c (execute_and_read_line): Update.
30275         * NEWS: Document the changes.
30276         Reported by Eric Blake.
30277
30278 2008-06-10  Eric Blake  <ebb9@byu.net>
30279
30280         Add missing include.
30281         * tests/test-strstr.c (includes): Add <signal.h>.
30282         * tests/test-strcasestr.c (includes): Likewise.
30283         * tests/test-memmem.c (includes): Likewise.
30284
30285 2008-06-10  Bruno Haible  <bruno@clisp.org>
30286
30287         * lib/wait-process.c (wait_subprocess): Add an assertion.
30288
30289 2008-06-10  Bruno Haible  <bruno@clisp.org>
30290
30291         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
30292
30293 2008-06-10  Bruno Haible  <bruno@clisp.org>
30294
30295         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
30296         using alarm().
30297         * tests/test-strcasestr.c (main): Likewise.
30298         * tests/test-strstr.c (main): Likewise.
30299
30300 2008-06-09  Bruno Haible  <bruno@clisp.org>
30301
30302         Work around the Solaris 10 ACE ACLs ABI change.
30303         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
30304         declare if ACL_NO_TRIVIAL is present.
30305         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
30306         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
30307         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
30308         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
30309         define if ACL_NO_TRIVIAL is present.
30310         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
30311         and use the current ABI.
30312         (file_has_acl): Use same #if condition as elsewhere.
30313         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
30314         in use, and use the current ABI.
30315         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
30316         Reported by Jim Meyering.
30317
30318 2008-06-09  Eric Blake  <ebb9@byu.net>
30319
30320         Work around environments that (stupidly) ignore SIGALRM.
30321         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
30322         before using alarm().
30323         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30324         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30325         Reported by Ian Beckwith <ianb@erislabs.net>.
30326
30327         Produce autobuild blurb earlier in log.
30328         * modules/autobuild (configure.ac-early): Move AB_INIT here.
30329
30330 2008-06-09  Jim Meyering  <meyering@redhat.com>
30331         and OndÅ™ej Vašík  <ovasik@redhat.com>
30332
30333         utimens.c: correct kernel bug work-around
30334         OndÅ™ej Vašík found that the invalid return value of 280 indicates
30335         failure, not success, and the kernel bug we're trying to work
30336         around affects not just the utimensat call, but also the fallback
30337         futimens call.
30338         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
30339         not success.
30340         [HAVE_FUTIMENS]: Use the same work-around, here.
30341
30342 2008-06-09  Jim Meyering  <meyering@redhat.com>
30343
30344         add more guards around definition of ACE_-related code
30345         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
30346         ALLOW and ACE_OWNER are also defined.
30347
30348 2008-06-08  Bruno Haible  <bruno@clisp.org>
30349
30350         * lib/acl-internal.h: Add me as co-author.
30351         * lib/file-has-acl.c: Likewise.
30352         * lib/set-mode-acl.c: Likewise.
30353         * lib/copy-acl.c: Likewise.
30354
30355 2008-06-08  Bruno Haible  <bruno@clisp.org>
30356
30357         Add support for AIX ACLs.
30358         * lib/acl-internal.h (acl_nontrivial): New declaration.
30359         * lib/file-has-acl.c (acl_nontrivial): New function.
30360         (file_has_acl): Add implementation using AIX 4 ACL API.
30361         * lib/set-mode-acl.c (qset_acl): Likewise.
30362         * lib/copy-acl.c (qcopy_acl): Likewise.
30363
30364 2008-06-08  Bruno Haible  <bruno@clisp.org>
30365
30366         Add support for HP-UX ACLs.
30367         * lib/acl-internal.h (acl_nontrivial): New declaration.
30368         * lib/file-has-acl.c (acl_nontrivial): New function.
30369         (file_has_acl): Add implementation using HP-UX 11 ACL API.
30370         * lib/set-mode-acl.c (qset_acl): Likewise.
30371         * lib/copy-acl.c (qcopy_acl): Likewise.
30372
30373 2008-06-08  Bruno Haible  <bruno@clisp.org>
30374
30375         Add support for Cygwin ACLs.
30376         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
30377         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
30378         the chmod_or_fchmod call.
30379         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
30380
30381 2008-06-08  Bruno Haible  <bruno@clisp.org>
30382
30383         Fix bug with setuid modes in Solaris 10+ code.
30384         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
30385         succeeded, when the mode contains some special bits.
30386
30387 2008-06-08  Bruno Haible  <bruno@clisp.org>
30388
30389         Add support for Solaris 7..10 ACLs.
30390         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
30391         declarations.
30392         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
30393         functions.
30394         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
30395         * lib/set-mode-acl.c (qset_acl): Likewise.
30396         * lib/copy-acl.c (qcopy_acl): Likewise.
30397
30398 2008-06-08  Bruno Haible  <bruno@clisp.org>
30399
30400         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
30401         declaration.
30402         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
30403         (acl_access_nontrivial): Remove MacOS X case.
30404         (file_has_acl): Use acl_extended_nontrivial.
30405         * lib/copy-acl.c (qcopy_acl): Likewise.
30406
30407 2008-06-08  Bruno Haible  <bruno@clisp.org>
30408
30409         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
30410
30411 2008-06-08  Jim Meyering  <meyering@redhat.com>
30412
30413         * modules/acl (Maintainer): Add Bruno Haible.
30414
30415 2008-06-07  Bruno Haible  <bruno@clisp.org>
30416
30417         Improve support for Tru64 ACLs.
30418         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
30419         ACL on OSF/1.
30420
30421 2008-06-07  Bruno Haible  <bruno@clisp.org>
30422
30423         Add support for MacOS X ACLs.
30424         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
30425         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
30426         * lib/set-mode-acl.c (qset_acl): Likewise.
30427         * lib/copy-acl.c (qcopy_acl): Likewise.
30428
30429 2008-06-07  Bruno Haible  <bruno@clisp.org>
30430
30431         Fix memory leak introduced on 2008-05-22.
30432         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
30433         use.
30434
30435 2008-06-07  Bruno Haible  <bruno@clisp.org>
30436
30437         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
30438         to construct an empty ACL.
30439
30440 2008-06-07  Bruno Haible  <bruno@clisp.org>
30441
30442         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
30443         precisely.
30444         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
30445
30446 2008-06-07  Bruno Haible  <bruno@clisp.org>
30447
30448         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
30449         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
30450
30451 2008-06-07  Bruno Haible  <bruno@clisp.org>
30452
30453         * doc/posix-functions/_setjmp.texi: Explain the use of this function
30454         regardless of POSIX.
30455         * doc/posix-functions/_longjmp.texi: Likewise.
30456         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
30457         SystemV platform in this case.
30458
30459 2008-06-06  Eric Blake  <ebb9@byu.net>
30460
30461         Document abort() bugs.
30462         * doc/posix-functions/abort.texi (abort): Mention anomalies.
30463
30464         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
30465         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
30466         sigsetjmp.
30467         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
30468         siglongjmp, but only as a macro.
30469         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
30470         is obsolete.
30471         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
30472
30473         Tweak documentation to cover cygwin argz bugs.
30474         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
30475         argz bug fix; no code change needed since no cygwin releases
30476         occurred between the last fix and the bug being tested.
30477         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
30478         module and recently fixed cygwin bugs.
30479         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
30480         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
30481         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
30482         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
30483         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
30484         Likewise.
30485         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
30486         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
30487         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
30488         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
30489         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
30490         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
30491         Likewise.
30492
30493         Avoid gcc warning on cygwin.
30494         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
30495         !ACL_NO_TRIVIAL]: Avoid unused variable.
30496
30497 2008-06-05  Eric Blake  <ebb9@byu.net>
30498
30499         Be tolerant of UNKNOWN version in gnulib-tool test dir.
30500         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
30501         git-version-gen fails to come up with a version.
30502         Reported by Simon Josefsson.
30503
30504 2008-06-05  Jim Meyering  <meyering@redhat.com>
30505             Paul Eggert  <eggert@cs.ucla.edu>
30506
30507         utimens.c: work around a probable Linux kernel bug
30508         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
30509         appears to be a kernel bug that causes utimensat to return 280
30510         instead of 0, indicating success.
30511
30512 2008-06-04  Bruno Haible  <bruno@clisp.org>
30513
30514         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
30515         2008-06-01 commit.
30516
30517 2008-06-04  Bruno Haible  <bruno@clisp.org>
30518
30519         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
30520         * lib/file-has-acl.c (acl_access_nontrivial): New function.
30521         (file_has_acl): Use it. Save errno afterwards.
30522         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
30523
30524 2008-06-03  Bruno Haible  <bruno@clisp.org>
30525
30526         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
30527         draft code. Simplify #ifs.
30528         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
30529         Put Solaris code after POSIX-draft code. Fix comments regarding
30530         Solaris 10, HP-UX. Mention Cygwin.
30531         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
30532
30533 2008-06-03  Eric Blake  <ebb9@byu.net>
30534
30535         Provide fallback for older kernels.
30536         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
30537         Provide runtime fallback if kernel lacks support.
30538         Reported by Mike Frysinger.
30539
30540 2008-06-02  Bruno Haible  <bruno@clisp.org>
30541
30542         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
30543         it exists.
30544
30545 2008-06-02  Bruno Haible  <bruno@clisp.org>
30546
30547         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
30548         * lib/copy-acl.c (qcopy_acl): Update comment.
30549
30550 2008-06-02  Bruno Haible  <bruno@clisp.org>
30551
30552         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
30553         like ACL APIs.
30554
30555 2008-06-02  Bruno Haible  <bruno@clisp.org>
30556
30557         * tests/test-file-has-acl.sh: Use different code for Cygwin.
30558         * tests/test-set-mode-acl.sh: Likewise.
30559         * tests/test-copy-acl.sh: Likewise.
30560         * tests/test-copy-file.sh: Likewise.
30561
30562 2008-06-02  Bruno Haible  <bruno@clisp.org>
30563
30564         * tests/test-file-has-acl.sh: Remove unused code.
30565
30566 2008-06-01  Bruno Haible  <bruno@clisp.org>
30567
30568         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
30569         (copy_acl): Just a wrapper around qcopy_acl that emits the error
30570         messages.
30571         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
30572
30573 2008-06-01  Bruno Haible  <bruno@clisp.org>
30574
30575         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
30576         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
30577         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
30578         APIs.
30579         * modules/acl-tests (configure.ac): Remove tests now contained in
30580         m4/acl.m4.
30581
30582 2008-06-02  Jim Meyering  <meyering@redhat.com>
30583
30584         announce-gen: use a better key-server host name
30585         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
30586         it may be more consistently reliable.  Suggested by Werner Koch
30587         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
30588
30589 2008-06-01  Bruno Haible  <bruno@clisp.org>
30590
30591         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
30592         Reported by Voroskoi Andras <voroskoi@gmail.com>.
30593
30594 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
30595
30596         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
30597
30598 2008-06-01  Bruno Haible  <bruno@clisp.org>
30599
30600         New ACL tests.
30601         * tests/test-file-has-acl.sh: New file.
30602         * tests/test-file-has-acl.c: New file.
30603         * tests/test-set-mode-acl.sh: New file.
30604         * tests/test-set-mode-acl.c: New file.
30605         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
30606         * tests/test-copy-acl.c: New file.
30607         * modules/acl-tests: New file, based on modules/copy-file-tests.
30608         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
30609         (Depends-on): Add acl-tests.
30610         (configure.ac): Remove checks.
30611         (Makefile.am): Don't create test-sameacls program here any more.
30612
30613 2008-06-01  Bruno Haible  <bruno@clisp.org>
30614
30615         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
30616         * tests/test-sameacls.c: Include progname.h.
30617         (main): Invoke set_program_name. Portability fixes for MacOS X,
30618         Solaris, HP-UX.
30619
30620 2008-06-01  Bruno Haible  <bruno@clisp.org>
30621
30622         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
30623         function.
30624         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
30625
30626 2008-06-01  Bruno Haible  <bruno@clisp.org>
30627
30628         * modules/rpmatch (Depends-on): Add strdup.
30629
30630 2008-06-01  Bruno Haible  <bruno@clisp.org>
30631
30632         * lib/pipe.c: Include unistd-safer.h.
30633         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
30634         * modules/pipe (Depends-on): Add unistd-safer.
30635
30636 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30637
30638         * modules/autobuild (configure.ac): Call AB_INIT.
30639
30640 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30641
30642         * tests/test-getaddrinfo.c: Don't print debug messages by default.
30643         Suggested by Bruno Haible <bruno@clisp.org>.
30644
30645 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30646
30647         * tests/test-base64.c: Cast size_t to unsigned long when invoking
30648         printf.  Use %lu instead of %d.  Reported by Bruno Haible
30649         <bruno@clisp.org>.
30650
30651 2008-05-29  Eric Blake  <ebb9@byu.net>
30652
30653         Prefer new POSIX 200x interfaces over futimesat.
30654         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
30655         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
30656         when available.
30657         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
30658
30659 2008-05-28  Bruno Haible  <bruno@clisp.org>
30660
30661         * modules/stpcpy (License): Change to LGPLv2+.
30662         Requested by David Lutterkort <dlutter@redhat.com>.
30663
30664 2008-05-27  Bruno Haible  <bruno@clisp.org>
30665
30666         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
30667         current mingw.
30668         Reported by Jose E. Marchesi <jemarch@gnu.org>.
30669
30670 2008-05-27  Bruno Haible  <bruno@clisp.org>
30671
30672         * modules/iconv_open (Link): New section, from module 'iconv'.
30673         * modules/striconv (Link): Likewise.
30674         * modules/striconveh (Link): Likewise.
30675         * modules/xstriconv (Link): Likewise.
30676         * modules/unicodeio (Link): Likewise.
30677         * modules/propername (Link): Likewise.
30678         Reported by Jim Meyering.
30679
30680 2008-05-26  Jim Meyering  <meyering@redhat.com>
30681
30682         sha256: do not artificially restrict buffer length to be < 2^32
30683         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
30684         uint32_t to size_t.
30685         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
30686         to match.
30687
30688         avoid unaligned access errors, e.g., on sparc
30689         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
30690         direct access through a possibly-unaligned uint64* pointer.
30691         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
30692         direct access through a possibly-unaligned uint32* pointer.
30693         Prompted by this patch from Tom "spot" Callaway:
30694         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
30695
30696         sha512.c: fix typo in comment
30697         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
30698
30699 2008-05-25  Bruno Haible  <bruno@clisp.org>
30700
30701         * lib/set-mode-acl.c: Renamed from lib/acl.c.
30702         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
30703         (Makefile.am): Update lib_SOURCES.
30704
30705 2008-05-25  Bruno Haible  <bruno@clisp.org>
30706
30707         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
30708
30709 2008-05-25  Jim Meyering  <meyering@redhat.com>
30710
30711         useless-if-before-free: freed expr may have white-space differences
30712         * build-aux/useless-if-before-free: Recognize cases in which the
30713         freed expression differs from the tested one in embedded white
30714         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
30715         $1 was used, so we can't make any regexp shy.  Improved tests now
30716         detect this.
30717
30718         useless-if-before-free: accept white space in the expression.
30719         * build-aux/useless-if-before-free: For now, any white space
30720         in the expression must be identical in the free argument.
30721
30722         useless-if-before-free: efficiency tweak
30723         * build-aux/useless-if-before-free: Make the expression-matching
30724         regexp "shy".
30725         Make the *outer* regexp shy, not the expr-matching one.
30726
30727         update code-in-comment to accept cast of free arg
30728         * build-aux/useless-if-before-free: Update regexp.
30729
30730 2008-05-25  Bruno Haible  <bruno@clisp.org>
30731
30732         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
30733         * modules/copy-file-tests (Files, Makefile.am): Update.
30734         * tests/test-copy-file.c (func_test_copy): Update.
30735
30736 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
30737
30738         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
30739
30740 2008-05-23  Bruno Haible  <bruno@clisp.org>
30741
30742         Improve support for ACLs on OSF/1.
30743         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
30744         Remove fallback for unknown flavors of ACLs.
30745
30746 2008-05-22  Bruno Haible  <bruno@clisp.org>
30747
30748         Add support for ACLs on OSF/1.
30749         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
30750         replacements.
30751         (acl_free_text): New macro fallback.
30752         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
30753         acl_free.
30754         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
30755         acl_free_text function. Require AC_C_INLINE.
30756
30757 2008-05-22  Bruno Haible  <bruno@clisp.org>
30758
30759         Make copy_acl work on MacOS X 10.5.
30760         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
30761         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
30762         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
30763         If MODE_INSIDE_ACL, don't assume that every system has the same text
30764         representation for ACLs as FreeBSD.
30765         * lib/copy-acl.c (copy_acl): Add support for platforms with
30766         !MODE_INSIDE_ACL.
30767         * lib/file-has-acl.c (file_has_acl): Likewise.
30768         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
30769         FreeBSD, MacOS X, or IRIX, respectively.
30770
30771 2008-05-22  Bruno Haible  <bruno@clisp.org>
30772
30773         * lib/acl.h: Don't include <sys/acl.h>.
30774         (GETACLCNT): Move fallback to lib/acl-internal.h.
30775         * lib/acl-internal.h: Include <sys/acl.h> here.
30776         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
30777
30778 2008-05-22  Bruno Haible  <bruno@clisp.org>
30779
30780         Split off copy_acl function to separate file.
30781         * lib/copy-acl.c: New file, extracted from lib/acl.c.
30782         * lib/acl.c (copy_acl): Moved function to separate file.
30783         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
30784         * modules/acl (Files): Add lib/copy-acl.c.
30785         (Makefiles.am): Augment lib_SOURCES.
30786
30787 2008-05-22  Bruno Haible  <bruno@clisp.org>
30788
30789         * modules/copy-file-tests: New file.
30790         * tests/test-copy-file.sh: New file.
30791         * tests/test-copy-file.c: New file.
30792         * tests/test-copy-file-sameacls.c: New file.
30793
30794 2008-05-22  Eric Blake  <ebb9@byu.net>
30795
30796         Avoid gcc warning.
30797         * tests/test-memcmp.c (main): Pass NULL indirectly.
30798
30799 2008-05-21  Bruno Haible  <bruno@clisp.org>
30800
30801         Add reference doc about ACLs.
30802         * doc/acl-resources.txt: New file.
30803         * doc/acl-cygwin.txt: New file.
30804
30805 2008-05-21  Bruno Haible  <bruno@clisp.org>
30806
30807         Avoid one more warning from gcc.
30808         * lib/vasnprintf.c (IF_LINT): Update comments.
30809         (VASNPRINTF): Use it also for the 'prefix' array initializer.
30810
30811 2008-05-21  Jim Meyering  <meyering@redhat.com>
30812
30813         avoid a warning from gcc
30814         * lib/vasnprintf.c (IF_LINT): Define.
30815         (scale10_round_decimal_long_double):
30816         Use it to avoid a "may be used uninitialized" warning.
30817         (scale10_round_decimal_double): Likewise.
30818
30819 2008-05-21  Simon Josefsson  <simon@josefsson.org>
30820
30821         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
30822         declared.
30823
30824 2008-05-20  Bruno Haible  <bruno@clisp.org>
30825
30826         * tests/test-memcmp.c (main): Test also the sign of the result. Test
30827         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
30828
30829 2008-05-20  Simon Josefsson  <simon@josefsson.org>
30830
30831         * modules/memcmp-tests: New file.
30832         * tests/test-memcmp.c: New file.
30833
30834 2008-05-19  Bruno Haible  <bruno@clisp.org>
30835
30836         * modules/propername (Notice, configure.ac): Put quoted "..." into
30837         --keyword option.
30838         * lib/propername.h: Update comments accordingly.
30839         Reported by Eric Blake.
30840
30841 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
30842
30843         * modules/getpass-gnu (Depends-on): Add fseeko.
30844
30845 2008-05-19  Simon Josefsson  <simon@josefsson.org>
30846
30847         * modules/base64-tests: New file.
30848
30849 2008-05-19  Bo Borgerson <gigabo@gmail.com>
30850
30851         * lib/base64.c (base64_decode_ctx): If a decode context structure
30852         was passed in use it to ignore newlines.  If a context structure
30853         was _not_ passed in, continue to treat newlines as garbage (this
30854         is the historical behavior).  Formerly base64_decode.
30855         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
30856         takes a decode context structure.
30857         * lib/base64.h (base64_decode): Macro for four-argument calls.
30858         (base64_decode_alloc): Likewise.
30859         * lib/base64.c (base64_decode_ctx): If a decode context structure
30860         was passed in use it to ignore newlines.  If a context structure
30861         was _not_ passed in, continue to treat newlines as garbage (this
30862         is the historical behavior).  Formerly base64_decode.
30863         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
30864         takes a decode context structure.
30865         * lib/base64.h (base64_decode): Macro for four-argument calls.
30866         (base64_decode_alloc): Likewise.
30867
30868 2008-05-19  Jim Meyering  <meyering@redhat.com>
30869
30870         avoid a warning from gcc
30871         * lib/trim.c (IF_LINT): Define.
30872         (trim2): Use it to avoid a "may be used uninitialized" warning.
30873
30874         Fix doc typo.
30875         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
30876
30877 2008-05-19  Bruno Haible  <bruno@clisp.org>
30878
30879         * doc/glibc-functions/getpass.texi: Document limits of other
30880         implementations.
30881
30882 2008-05-19  Simon Josefsson  <simon@josefsson.org>
30883             Bruno Haible <bruno@clisp.org>
30884
30885         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
30886
30887 2008-05-18  Bruno Haible  <bruno@clisp.org>
30888
30889         * modules/propername: New file, from GNU gettext.
30890         * lib/propername.h: New file, from GNU gettext.
30891         * lib/propername.c: New file, from GNU gettext.
30892         * MODULES.html.sh (Internationalization functions): Add propername.
30893
30894 2008-05-16  Jim Meyering  <meyering@redhat.com>
30895             Bruno Haible  <bruno@clisp.org>
30896
30897         Avoid some warnings from "gcc -Wshadow".
30898         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
30899
30900 2008-05-15  Eric Blake  <ebb9@byu.net>
30901
30902         Extend previous patch to cygwin 1.7.0.
30903         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
30904         fast implementation in cygwin >= 1.7.0.
30905         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30906         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30907
30908 2008-05-15  Bruno Haible  <bruno@clisp.org>
30909
30910         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
30911         implementation in glibc >= 2.9.
30912         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30913         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30914
30915 2008-05-15  Bruno Haible  <bruno@clisp.org>
30916
30917         * MODULES.html.sh (Internationalization functions): Remove linebreak.
30918         (Unicode string functions): Add unilbrk/*.
30919         Reported by Karl Berry.
30920
30921 2008-05-15  Eric Blake  <ebb9@byu.net>
30922
30923         Fix violation of <stdbool.h> replacement in regex.
30924         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
30925         * lib/regexec.c (re_search_internal): Likewise.
30926         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
30927
30928 2008-05-15  Jim Meyering  <meyering@redhat.com>
30929
30930         avoid distracting test output when git or cvs is not found
30931         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
30932         * tests/test-vc-list-files-git.sh: Likewise.
30933
30934 2008-05-15  Eric Blake  <ebb9@byu.net>
30935
30936         Glibc finally accepted the memmem speedup code, bugzilla #5514.
30937         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
30938         glibc version.
30939         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30940         * doc/posix-functions/strstr.texi (strstr): Likewise.
30941         * lib/str-two-way.h (MAX): Sychronize with glibc.
30942
30943 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
30944
30945         * lib/regcomp.c (optimize_utf8): Add a note on why we test
30946         opr.ctx_type.
30947         (calc_first): Initialize constraint field.
30948         (duplicate_node_closure): Use it instead of special casing ANCHORS.
30949         Fix grammar.
30950         (duplicate_node): Merge constraint field for all node types.
30951         (calc_eclosure_iter): Look at constraint field for all node types.
30952         * lib/regex_internal.c (create_cd_newstate): Don't look at
30953         opr.ctx_type.
30954
30955 2008-05-14  Bruno Haible  <bruno@clisp.org>
30956
30957         Help GCC to do better code generation.
30958         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
30959         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
30960         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
30961         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
30962         Declare with attribute 'malloc' if supported.
30963
30964 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
30965
30966         use "echo STR|wc -c" rather than unportable "expr length STR"
30967         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
30968         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
30969
30970 2008-05-14  Jim Meyering  <meyering@redhat.com>
30971
30972         use dd ibs=$n count=1 ... rather than less-portable head -c$n
30973         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
30974         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
30975         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
30976         via Collin Lasse.
30977
30978 2008-05-14  Eric Blake  <ebb9@byu.net>
30979
30980         Avoid quadratic growth in gl_LIBSOURCES.
30981         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
30982         Suggested by Bruno Haible.
30983
30984         Test xmemdup0.
30985         * modules/xmemdup0-tests: New file.
30986         * tests/test-xmemdup0.c: Likewise.
30987
30988 2008-05-13  Eric Blake  <ebb9@byu.net>
30989
30990         Split xmemdup0 into its own module.
30991         * modules/xmemdup0: New file.
30992         * lib/xmemdup0.h: Likewise.
30993         * lib/xmemdup0.c: Likewise.
30994         * MODULES.html.sh (Memory management functions): Add xmemdup0.
30995         * lib/xalloc.h (xmemdup0): Remove.
30996         * lib/xmalloc.c (xmemdup0): Likewise.
30997
30998 2008-05-13  Eric Blake  <ebb9@byu.net>
30999             Bruno Haible  <bruno@clisp.org>
31000
31001         Reduce number of forks required during autoconf.
31002         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
31003         and gl_LIBSOURCES_DIR.
31004         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
31005         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
31006         m4_syscmd per file.
31007         <m4_foreach_w>: Move...
31008         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
31009
31010 2008-05-13  Eric Blake  <ebb9@byu.net>
31011
31012         * gnulib-tool: Fix various comment typos.
31013
31014 2008-05-12  Bruno Haible  <bruno@clisp.org>
31015
31016         Tailor the linebreaking algorithm.
31017         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
31018
31019 2008-05-12  Bruno Haible  <bruno@clisp.org>
31020
31021         Update to Unicode 5.0.0.
31022         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31023         LBP_JV, LBP_JT. Redistribute values.
31024         (unilbrk_table): Change size.
31025         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
31026         Unicode TR#14 rev. 22.
31027         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31028         LBP_JV, LBP_JT. Redistribute values.
31029         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
31030         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
31031         Update.
31032         * lib/unilbrk/lbrkprop1.h: Regenerated.
31033         * lib/unilbrk/lbrkprop2.h: Regenerated.
31034         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
31035         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
31036         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
31037         Likewise.
31038         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
31039         Likewise.
31040         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
31041         result.
31042         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
31043         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
31044         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
31045         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
31046         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
31047         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
31048
31049 2008-05-11  Bruno Haible  <bruno@clisp.org>
31050
31051         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
31052
31053 2008-05-11  Bruno Haible  <bruno@clisp.org>
31054
31055         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
31056         * modules/unilbrk/gen-lbrk: New file.
31057
31058 2008-05-11  Bruno Haible  <bruno@clisp.org>
31059
31060         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
31061         * m4/sha512.m4 (gl_SHA512): Likewise.
31062
31063 2008-05-11  Jim Meyering  <meyering@redhat.com>
31064
31065         New modules: crypto/sha256, crypto/sha512 (from coreutils)
31066         * modules/crypto/sha256: New file.
31067         * modules/crypto/sha512: Likewise.
31068         * lib/sha256.c: Likewise.
31069         * lib/sha256.h: Likewise.
31070         * lib/sha512.c: Likewise.
31071         * lib/sha512.h: Likewise.
31072         * lib/u64.h: Likewise.
31073         * m4/sha256.m4: Likewise.
31074         * m4/sha512.m4: Likewise.
31075         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
31076
31077 2008-05-10  Bruno Haible  <bruno@clisp.org>
31078
31079         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
31080         (Input/Output <stdio.h>): Add xprintf.
31081         (Signal handling <signal.h>): Add strsignal.
31082         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
31083         (Core language properties): Add func.
31084         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
31085         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
31086         strings.
31087         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
31088         (Input/output): New section.
31089         (File system functions): Add openat-die, stat-macros.
31090         (Networking functions): Add sockets.
31091         (Unicode string functions): Add unictype/*.
31092         (Support for building libraries and executables): Add gperf.
31093         (Support for building documentation): Add agpl-3.0.
31094         (Misc): Add nocrash.
31095
31096 2008-05-10  Bruno Haible  <bruno@clisp.org>
31097
31098         * modules/unictype/gen-ctype: New file.
31099
31100 2008-05-10  Jim Meyering  <meyering@redhat.com>
31101
31102         Make chdir-safer.c more efficient on a system with no symlinks.
31103         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
31104         also if ELOOP is zero.  Suggested by Bruno Haible.
31105
31106         Make chdir-safer.c slightly safer.
31107         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
31108         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
31109
31110         Avoid compile failure on systems without ELOOP (like mingw).
31111         * lib/chdir-safer.c (ELOOP): Define if not already defined.
31112         Reported by Bruno Haible.
31113
31114 2008-05-10  Bruno Haible  <bruno@clisp.org>
31115
31116         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
31117         (is_utf8_encoding): Use a case-insensitive comparison.
31118         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
31119         streq.
31120
31121 2008-05-10  Bruno Haible  <bruno@clisp.org>
31122
31123         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
31124         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
31125         * lib/unilbrk/ulc-common.h (iconv_string_length,
31126         iconv_string_keeping_offsets): Remove declarations.
31127         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
31128         Don't include <iconv.h>, streq.h, xsize.h.
31129         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
31130         conversion.
31131         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
31132         <iconv.h>, streq.h, xsize.h.
31133         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
31134         conversion.
31135         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
31136         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
31137         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
31138         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
31139
31140 2008-05-10  Bruno Haible  <bruno@clisp.org>
31141
31142         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
31143         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
31144
31145         * modules/unilbrk/u32-width-linebreaks-tests: New file.
31146         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
31147
31148         * modules/unilbrk/u16-width-linebreaks-tests: New file.
31149         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
31150
31151         * modules/unilbrk/u8-width-linebreaks-tests: New file.
31152         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
31153
31154         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
31155         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
31156
31157         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
31158         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
31159
31160         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
31161         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
31162
31163         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
31164         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
31165
31166 2008-05-10  Bruno Haible  <bruno@clisp.org>
31167
31168         Split up 'linebreak' module.
31169         * lib/unilbrk.h: New file, based on lib/linebreak.h.
31170         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
31171         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
31172         modifications.
31173         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
31174         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
31175         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
31176         lib/linebreak.c.
31177         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
31178         lib/linebreak.c.
31179         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
31180         lib/linebreak.c.
31181         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
31182         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
31183         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
31184         lib/linebreak.c.
31185         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
31186         lib/linebreak.c.
31187         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
31188         lib/linebreak.c.
31189         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
31190         lib/linebreak.c.
31191         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
31192         lib/linebreak.c.
31193         * modules/unilbrk/base: New file.
31194         * modules/unilbrk/tables: New file.
31195         * modules/unilbrk/u8-possible-linebreaks: New file.
31196         * modules/unilbrk/u16-possible-linebreaks: New file.
31197         * modules/unilbrk/u32-possible-linebreaks: New file.
31198         * modules/unilbrk/ulc-common: New file.
31199         * modules/unilbrk/ulc-possible-linebreaks: New file.
31200         * modules/unilbrk/u8-width-linebreaks: New file.
31201         * modules/unilbrk/u16-width-linebreaks: New file.
31202         * modules/unilbrk/u32-width-linebreaks: New file.
31203         * modules/unilbrk/ulc-width-linebreaks: New file.
31204         * lib/linebreak.h: Remove file.
31205         * lib/linebreak.c: Remove file.
31206         * m4/linebreak.m4: Remove file.
31207         * modules/linebreak: Remove file.
31208         * NEWS: Mention the changes.
31209
31210 2008-05-09  Eric Blake  <ebb9@byu.net>
31211
31212         Add xmemdup0.
31213         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
31214         implementation.
31215         * lib/xmalloc.c (xmemdup0): New C implementation.
31216
31217 2008-05-08  Bruno Haible  <bruno@clisp.org>
31218
31219         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
31220
31221 2008-05-07  Eric Blake  <ebb9@byu.net>
31222
31223         Support cross-compilation of <wctype.h>.
31224         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
31225         AC_CACHE_CHECK.
31226
31227 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
31228
31229         * build-aux/vc-list-files: Add support for bzr.
31230
31231 2008-05-03  Jim Meyering  <meyering@redhat.com>
31232
31233         avoid failed assertion with tight malloc
31234         * tests/test-getndelim2.c: Correct an off-by-one assertion.
31235
31236 2008-05-03  Simon Josefsson  <simon@josefsson.org>
31237
31238         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
31239         are needed from arpa/inet.h.
31240         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
31241         Reported by Bruno Haible.
31242
31243 2008-05-02  Jim Meyering  <meyering@redhat.com>
31244
31245         avoid compilation error on FreeBSD 6
31246         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
31247
31248 2008-05-01  Jim Meyering  <meyering@redhat.com>
31249
31250         useless-if-before-free: correct --help's exit status description
31251         * build-aux/useless-if-before-free (usage): Like grep, exit 0
31252         for one or more matches, etc.  Reported by Bruno Haible.
31253
31254         vc-list-files: make the stand-alone gnulib test work
31255         * modules/vc-list-files-tests (configure.ac):
31256         Define and AC_SUBST abs_aux_dir.
31257         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
31258         $(abs_top_srcdir) to each script and having each of them
31259         duplicate the work of setting PATH, set PATH here, using
31260         the new variable, abs_aux_dir instead.
31261         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
31262         * tests/test-vc-list-files-git.sh: Likewise.
31263         Reported by Bruno Haible.
31264
31265 2008-05-01  Bruno Haible  <bruno@clisp.org>
31266
31267         * lib/getndelim2.c (getndelim2): Fix newsize computation during
31268         reallocation. Rename 'done' to 'found_delimiter'.
31269
31270 2008-05-01  Jim Meyering  <meyering@redhat.com>
31271
31272         vc-list-files: accommodate /bin/sh like the one from Solaris 10
31273         * build-aux/vc-list-files: Use `...`, not $(...).
31274
31275 2008-04-30  Jim Meyering  <meyering@redhat.com>
31276
31277         add tests for vc-list-files
31278         * modules/vc-list-files-tests: New module.
31279         * tests/test-vc-list-files-cvs.sh: New file.
31280         * tests/test-vc-list-files-git.sh: New file.
31281
31282         avoid a warning from gcc
31283         * lib/getndelim2.c (IF_LINT): Define.
31284         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
31285
31286         vc-list-files: work properly with build-aux/cvsu, too
31287         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
31288         to all cvs-based clauses.
31289
31290         vc-list-files: work properly in the CVS+awk case, too
31291         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
31292
31293         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
31294         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
31295         take more than one file argument, so .  Add quotes, just in case $dir
31296         ever contains a shell meta-character.  Prompted by Soren Hansen in
31297         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
31298
31299 2008-04-29  Eric Blake  <ebb9@byu.net>
31300
31301         Optimize getndelim2 to use block operations when possible.
31302         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
31303         freadseek, and memchr2.
31304         * lib/getndelim2.c (getndelim2): Use them for block reads.
31305
31306 2008-04-29  Bruno Haible  <bruno@clisp.org>
31307
31308         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
31309         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31310         * modules/inet_ntop (Depends-on): Add extensions.
31311         * modules/inet_pton (Depends-on): Likewise.
31312         Reported by Simon Josefsson.
31313
31314 2008-04-29  Jim Meyering  <meyering@redhat.com>
31315
31316         When the is more than one match in a block, match all of them.
31317         * build-aux/useless-if-before-free: Iterate through each block
31318         until there are no more matches.
31319
31320         Fix broken useless-if-before-free script.
31321         * build-aux/useless-if-before-free: Fix typo: missing "?" after
31322         the expression to match cast of argument to free-like function.
31323
31324 2008-04-29  Eric Blake  <ebb9@byu.net>
31325
31326         Use new header.
31327         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
31328
31329 2008-04-29  Jim Meyering  <meyering@redhat.com>
31330
31331         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
31332         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
31333         by gnulib to exist and to declare e.g., inet_ntop.
31334         Don't include "inet_ntop.h", now removed.
31335
31336         * m4/arpa_inet_h.m4: Remove trailing blanks.
31337
31338 2008-04-29  Eric Blake  <ebb9@byu.net>
31339
31340         Silence valgrind on safe reads beyond potential array bounds.
31341         * lib/rawmemchr.valgrind: New file.
31342         * lib/strchrnul.valgrind: Likewise.
31343         * modules/rawmemchr (Files): Distribute new file.
31344         * modules/strchrnul (Files): Likewise.
31345         Suggested by Bruno Haible.
31346
31347 2008-04-29  Bruno Haible  <bruno@clisp.org>
31348
31349         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
31350         (inet_ntop, inet_pton): Change portability warning's wording.
31351         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
31352         Invoke gl_CHECK_NEXT_HEADERS.
31353         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
31354         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
31355         set ARPA_INET_H.
31356         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31357         * modules/arpa_inet (Description): No longer only for systems that
31358         lack it.
31359         (Depends-on): Add include_next.
31360         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
31361         HAVE_ARPA_INET_H.
31362
31363 2008-04-29  Jim Meyering  <meyering@redhat.com>
31364
31365         * modules/mkdir (License): Re-license as LGPLv2+.
31366
31367 2008-04-29  Bruno Haible  <bruno@clisp.org>
31368
31369         * modules/rawmemchr (Maintainer): Set to Eric.
31370         * modules/strchrnul (Maintainer): Likewise.
31371
31372 2008-04-29  Simon Josefsson  <simon@josefsson.org>
31373
31374         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
31375         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
31376
31377         * modules/arpa_inet (arpa/inet.h): Use them.
31378
31379 2008-04-28  Eric Blake  <ebb9@byu.net>
31380
31381         Test getndelim2.
31382         * modules/getndelim2-tests: New file.
31383         * tests/test-getndelim2.c: Likewise.
31384         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
31385         stream.
31386         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
31387
31388         * MODULES.html.sh: Document new module.
31389
31390 2008-04-20  Bruno Haible  <bruno@clisp.org>
31391
31392         * lib/c-stack.c (die): Use raise.
31393         * modules/c-stack (Depends-on): Add raise.
31394
31395 2008-04-28  Bruno Haible  <bruno@clisp.org>
31396
31397         Expect rpmatch to be declared.
31398         * lib/yesno.c (rpmatch): Remove declaration.
31399
31400         Declare rpmatch.
31401         * lib/stdlib.in.h (rpmatch): New declaration.
31402         * lib/rpmatch.c: Include <stdlib.h> first.
31403         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
31404         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
31405         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
31406         HAVE_RPMATCH.
31407         * modules/rpmatch (Depends-on): Add stdlib, extensions.
31408         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31409         (Include): Set to <stdlib.h>.
31410         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
31411         HAVE_RPMATCH.
31412         * NEWS: Document the change.
31413
31414 2008-04-28  Bruno Haible  <bruno@clisp.org>
31415
31416         Change rpmatch to use nl_langinfo when appropriate.
31417         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
31418         (N_): New macro.
31419         (localized_pattern): New function/macro.
31420         (try): Remove match, nomatch arguments. Copy the pattern into safe
31421         memory before caching it.
31422         (rpmatch): Use localized_pattern. Add translator comments.
31423         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
31424         Suggested by Eric Blake.
31425         * modules/rpmatch (Depends-on): Add stdbool.
31426
31427 2008-04-28  Eric Blake  <ebb9@byu.net>
31428
31429         Add rawmemchr module, matching glibc.
31430         * modules/string (Makefile.am): New indicator.
31431         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
31432         * lib/string.in.h (rawmemchr): Declare when appropriate.
31433         * modules/rawmemchr: New file.
31434         * m4/rawmemchr.m4: Likewise.
31435         * lib/rawmemchr.c: Likewise.
31436         * modules/rawmemchr-tests: Likewise.
31437         * tests/test-rawmemchr.c: Likewise.
31438         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
31439         module.
31440         * modules/strchrnul (Depends-on): Add rawmemchr.
31441         * lib/strchrnul.c (strchrnul): Optimize a corner case.
31442
31443         Whitespace cleanup.
31444         * tests/test-strchrnul.c: Reindent.
31445         * lib/strchrnul.c: Likewise.
31446
31447         Optimize and test strchrnul.
31448         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
31449         * modules/strchrnul-tests: New file.
31450         * tests/test-strchrnul.c: Likewise.
31451
31452         Remove intprops dependency.
31453         * modules/memchr (Depends-on): Remove intprops.
31454         * modules/memrchr (Depends-on): Likewise.
31455         * modules/memchr2 (Depends-on): Likewise.
31456         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
31457         * lib/memrchr.c (__memrchr): Likewise.
31458         * lib/memrchr2.c (memchr2): Likewise.
31459         Reported by Simon Josefsson.
31460
31461 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31462
31463         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
31464         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31465
31466 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31467
31468         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
31469
31470         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
31471
31472         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
31473
31474         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
31475         declarations.
31476         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
31477
31478         * m4/inet_pton.m4: Don't check for header files.
31479
31480         * m4/inet_ntop.m4: Don't check for header files.
31481
31482 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31483
31484         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
31485         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
31486         trigger for cygwin).
31487         Reported by Bruno Haible  <bruno@clisp.org>.
31488
31489 2008-04-28  Bruno Haible  <bruno@clisp.org>
31490
31491         * doc/posix-functions/strdup.texi: Mention mingw problem.
31492
31493 2008-04-27  Bruno Haible  <bruno@clisp.org>
31494
31495         * modules/stat-time-tests (Depends-on): Add sleep.
31496         * tests/test-stat-time.c (force_unlink): New function.
31497         (cleanup): Use it.
31498         (test_mtime): Remove the ctime related tests.
31499         (test_ctime): New function, containing the ctime related tests.
31500         (main): Call test_ctime, except on native Windows platforms.
31501
31502 2008-04-27  Bruno Haible  <bruno@clisp.org>
31503
31504         * lib/rpmatch.c (rpmatch): Add some comments.
31505         Reported by James Youngman <jay@gnu.org>.
31506
31507 2008-04-27  Bruno Haible  <bruno@clisp.org>
31508
31509         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
31510         quiet NaNs.
31511
31512 2008-04-27  Bruno Haible  <bruno@clisp.org>
31513
31514         Make test-yesno.sh work on mingw.
31515         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
31516         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
31517         (main): Set stdin to binary mode.
31518         * modules/yesno-tests (Depends-on): Add binary-io.
31519
31520 2008-04-27  Bruno Haible  <bruno@clisp.org>
31521
31522         Fix 'isfinite' on x86, x86_64, ia64 platforms.
31523         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
31524         argument that lie outside the IEEE 854 domain.
31525         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
31526         (gl_ISFINITE): Use it.
31527         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
31528
31529 2008-04-27  Bruno Haible  <bruno@clisp.org>
31530
31531         Allow local renaming in config.h.
31532         * lib/memrchr.c (memrchr): Don't undefine outside libc.
31533
31534 2008-04-27  Bruno Haible  <bruno@clisp.org>
31535
31536         * lib/memchr.c (__memchr): Change type of 'i'.
31537         * lib/memchr2.c (memchr2): Likewise.
31538
31539 2008-04-26  Eric Blake  <ebb9@byu.net>
31540         and Bruno Haible  <bruno@clisp.org>
31541
31542         Optimize and test memrchr.
31543         * modules/memrchr (Depends-on): Add intprops.
31544         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
31545         * modules/memrchr-tests: New file.
31546         * tests/test-memrchr.c: New file.
31547
31548 2008-04-26  Bruno Haible  <bruno@clisp.org>
31549
31550         Add tentative support for DragonFly BSD.
31551         * lib/stdio-impl.h: Add macros for DragonFly BSD.
31552         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
31553         fp.
31554         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31555         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
31556         * lib/fpurge.c (fpurge): Likewise.
31557         * lib/freadable.c (freaadable): Likewise.
31558         * lib/freadahead.c (freadahead): Likewise.
31559         * lib/freading.c (freading): Likewise.
31560         * lib/freadptr.c (freadptr): Likewise.
31561         * lib/freadseek.c (freadptrinc): Likewise.
31562         * lib/fseeko.c (fseeko): Likewise.
31563         * lib/fseterr.c (fseterr): Likewise.
31564         * lib/fwritable.c (fwritable): Likewise.
31565         * lib/fwriting.c (fwriting): Likewise.
31566
31567 2008-04-26  Bruno Haible  <bruno@clisp.org>
31568
31569         * lib/stdio-impl.h: New file.
31570         * lib/fbufmode.c: Include stdio-impl.h.
31571         (fbufmode): Use fp_, remove redundant #defines.
31572         * lib/fflush.c: Include stdio-impl.h.
31573         (clear_ungetc_buffer): Remove redundant #defines.
31574         * lib/fpurge.c: Include stdio-impl.h.
31575         (fpurge): Remove redundant #defines.
31576         * lib/freadable.c: Include stdio-impl.h.
31577         (freadable): Remove redundant #defines.
31578         * lib/freadahead.c: Include stdio-impl.h.
31579         (freadahead): Remove redundant #defines.
31580         * lib/freading.c: Include stdio-impl.h.
31581         (freading): Remove redundant #defines.
31582         * lib/freadptr.c: Include stdio-impl.h.
31583         (freadptr): Remove redundant #defines.
31584         * lib/freadseek.c: Include stdio-impl.h.
31585         (freadptrinc): Remove redundant #defines.
31586         * lib/fseeko.c: Include stdio-impl.h.
31587         (rpl_fseeko): Remove redundant #defines.
31588         * lib/fseterr.c: Include stdio-impl.h.
31589         (fseterr): Remove redundant #defines.
31590         * lib/fwritable.c: Include stdio-impl.h.
31591         (fwritable: Remove redundant #defines.
31592         * lib/fwriting.c: Include stdio-impl.h.
31593         (fwriting): Remove redundant #defines.
31594         * modules/fbufmode (Files): Add lib/stdio-impl.h.
31595         * modules/fflush (Files): Likewise.
31596         * modules/fpurge (Files): Likewise.
31597         * modules/freadable (Files): Likewise.
31598         * modules/freadahead (Files): Likewise.
31599         * modules/freading (Files): Likewise.
31600         * modules/freadptr (Files): Likewise.
31601         * modules/freadseek (Files): Likewise.
31602         * modules/fseeko (Files): Likewise.
31603         * modules/fseterr (Files): Likewise.
31604         * modules/fwritable (Files): Likewise.
31605         * modules/fwriting (Files): Likewise.
31606
31607 2008-04-26  Bruno Haible  <bruno@clisp.org>
31608
31609         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31610         restore_seek_optimization, update_fpos_cache): New functions, extracted
31611         from rpl_fflush.
31612         (rpl_fflush): Use them.
31613         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
31614         (gl_REPLACE_FFLUSH): Use it.
31615
31616 2008-04-26  Bruno Haible  <bruno@clisp.org>
31617
31618         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
31619         on Solaris.
31620         * tests/test-xstrtoimax.sh: Likewise.
31621         * tests/test-xstrtoumax.sh: Likewise.
31622         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31623
31624 2008-04-26  Bruno Haible  <bruno@clisp.org>
31625
31626         * modules/memchr-tests: New file.
31627         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
31628
31629 2008-04-26  Eric Blake  <ebb9@byu.net>
31630             Bruno Haible  <bruno@clisp.org>
31631
31632         * lib/memchr.c: Include intprops.h.
31633         (__memchr): Optimize parallel detection of matching bytes. Rename local
31634         variables. Add explanatory comments.
31635
31636 2008-04-26  Bruno Haible  <bruno@clisp.org>
31637
31638         Fix module 'memchr', broken since 2000-10-28.
31639         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
31640
31641 2008-04-26  Bruno Haible  <bruno@clisp.org>
31642
31643         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
31644         comments.
31645
31646 2008-04-25  Eric Blake  <ebb9@byu.net>
31647
31648         Use native fstatat on cygwin 1.7.0.
31649         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
31650         first.
31651
31652 2008-04-23  Eric Blake  <ebb9@byu.net>
31653
31654         Improve memchr2 performance.
31655         * lib/memchr2.c (memchr2): Further optimize parallel detection of
31656         NUL bytes.
31657         * modules/memchr2 (Depends-on): Use intprops.h.
31658
31659 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31660
31661         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
31662         an inline function instead of a CPP macro.  Patch by Ben Pfaff
31663         <blp@cs.stanford.edu>.
31664
31665 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31666
31667         * lib/arpa_inet.in.h: New file.
31668
31669         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
31670         (Makefile.am): Sed in substitute header file.
31671
31672         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
31673         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
31674
31675         * modules/inet_ntop (configure.ac): Use
31676         gl_ARPA_INET_MODULE_INDICATOR.
31677
31678         * modules/inet_pton (configure.ac): Use
31679         gl_ARPA_INET_MODULE_INDICATOR.
31680
31681 2008-04-22  Jim Meyering  <meyering@redhat.com>
31682
31683         * modules/verify (License): Re-license as LGPLv2+.
31684
31685 2008-04-22  Simon Josefsson  <simon@josefsson.org>
31686
31687         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
31688         parameter to void* as per POSIX standard (MinGW uses char*).
31689
31690 2008-04-21  Bruno Haible  <bruno@clisp.org>
31691
31692         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
31693         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
31694         Define to replacements if REPLACE_ISWCNTRL is 1.
31695         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
31696         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
31697         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
31698         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
31699         what it fixes.
31700         * doc/posix-functions/iswalpha.texi: Likewise.
31701         * doc/posix-functions/iswblank.texi: Likewise.
31702         * doc/posix-functions/iswcntrl.texi: Likewise.
31703         * doc/posix-functions/iswdigit.texi: Likewise.
31704         * doc/posix-functions/iswgraph.texi: Likewise.
31705         * doc/posix-functions/iswlower.texi: Likewise.
31706         * doc/posix-functions/iswprint.texi: Likewise.
31707         * doc/posix-functions/iswpunct.texi: Likewise.
31708         * doc/posix-functions/iswspace.texi: Likewise.
31709         * doc/posix-functions/iswupper.texi: Likewise.
31710         * doc/posix-functions/iswxdigit.texi: Likewise.
31711         Reported by Alain Guibert.
31712
31713 2008-04-21  Bruno Haible  <bruno@clisp.org>
31714
31715         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
31716         Patch by Alain Guibert.
31717
31718 2008-04-21  Bruno Haible  <bruno@clisp.org>
31719
31720         Fix test failures on mingw.
31721         * tests/test-xstrtol.c (print_no_progname): New function.
31722         (main): Install it in error_print_progname hook.
31723         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
31724         * tests/test-xstrtoimax.sh: Likewise.
31725         * tests/test-xstrtoumax.sh: Likewise.
31726
31727 2008-04-21  Bruno Haible  <bruno@clisp.org>
31728
31729         Fix test failure on mingw.
31730         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
31731
31732 2008-04-21  Bruno Haible  <bruno@clisp.org>
31733
31734         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
31735         Actually assign a value.
31736
31737 2008-04-20  Bruno Haible  <bruno@clisp.org>
31738
31739         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
31740         take 2.
31741         * lib/canonicalize.c (canonicalize_file_name): Elide if the
31742         'canonicalize-lgpl' module is also used.
31743         * lib/canonicalize-lgpl.c: Undo last change.
31744         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
31745
31746 2008-04-20  Bruno Haible  <bruno@clisp.org>
31747
31748         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
31749         config.h. Provide _mkdir based fallback for mingw.
31750         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
31751         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
31752         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
31753         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
31754         rather than defining mkdir in config.h.
31755         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
31756         (gl_SYS_STAT_H_DEFAULTS): New macro.
31757         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
31758         HAVE_IO_H any more.
31759         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
31760         HAVE_DECL_MKDIR and HAVE_IO_H.
31761
31762 2008-04-20  Bruno Haible  <bruno@clisp.org>
31763
31764         * lib/isapipe.c: Port to native Windows platforms.
31765
31766 2008-04-20  Bruno Haible  <bruno@clisp.org>
31767
31768         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
31769
31770 2008-04-21  Eric Blake  <ebb9@byu.net>
31771
31772         Work around preprocessors that don't handle UINTMAX_MAX.
31773         * lib/memchr2.c (memchr2): Avoid embedded #if.
31774         Reported by Alain Guibert, fix suggested by Bruno Haible.
31775
31776 2008-04-21  Simon Josefsson  <simon@josefsson.org>
31777
31778         * doc/posix-functions/strftime.texi (strftime): Explain better
31779         Windows incompatibility.  Suggested by Micah Cowan
31780         <micah@cowan.name>.
31781
31782 2008-04-20  Bruno Haible  <bruno@clisp.org>
31783
31784         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
31785         unistr/u8-mblen.
31786
31787 2008-04-20  Bruno Haible  <bruno@clisp.org>
31788
31789         Fix test failure on platforms with non-GNU iconv.
31790         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
31791         (U_TO_U8): Use it, rather than u16_to_u8.
31792         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
31793         units at the end of the input string.
31794         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
31795
31796 2008-04-20  Bruno Haible  <bruno@clisp.org>
31797
31798         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
31799         when the resulting length is 0.
31800         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
31801
31802 2008-04-20  Bruno Haible  <bruno@clisp.org>
31803
31804         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
31805         works.
31806         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
31807
31808 2008-04-20  Bruno Haible  <bruno@clisp.org>
31809
31810         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
31811         * modules/tsearch-tests (configure.ac): Test for initstate function.
31812
31813 2008-04-20  Bruno Haible  <bruno@clisp.org>
31814
31815         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
31816         for nlink_t if missing.
31817         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
31818
31819 2008-04-19  Bruno Haible  <bruno@clisp.org>
31820
31821         Work around snprintf bug on Linux libc5.
31822         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
31823         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31824         gl_SNPRINTF_SIZE1.
31825         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31826         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
31827         that test failed.
31828         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
31829         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
31830         * modules/snprintf (Files): Add m4/printf.m4.
31831         * modules/vsnprintf (Files): Likewise.
31832         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
31833         * doc/posix-functions/vsnprintf.texi: Likewise.
31834
31835 2008-04-19  Bruno Haible  <bruno@clisp.org>
31836
31837         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
31838         from 0.0058 to less than 10^-7.
31839
31840 2008-04-19  Bruno Haible  <bruno@clisp.org>
31841
31842         Fix rounding when a precision is given.
31843         * lib/vasnprintf.c (is_borderline): New function.
31844         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
31845         9...9x.
31846         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
31847         %e, %g.
31848         * tests/test-vasprintf-posix.c (test_function): Likewise.
31849         * tests/test-snprintf-posix.h (test_function): Likewise.
31850         * tests/test-sprintf-posix.h (test_function): Likewise.
31851         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
31852         * tests/test-printf-posix.h (test_function): Likewise.
31853         * tests/test-printf-posix.output: Update.
31854         Reported by John Darrington <john@darrington.wattle.id.au> via
31855         Ben Pfaff <blp@cs.stanford.edu>.
31856
31857 2008-04-18  Simon Josefsson  <simon@josefsson.org>
31858
31859         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
31860         Suggested by Bruno Haible <bruno@clisp.org>.
31861
31862 2008-04-17  Bruno Haible  <bruno@clisp.org>
31863
31864         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
31865         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
31866         implementation.
31867         Patch by Bruce Merry <bmerry@gmail.com>.
31868
31869 2008-04-17  Simon Josefsson  <simon@josefsson.org>
31870
31871         * doc/posix-functions/strftime.texi (strftime): Mention that %e
31872         doesn't work under Windows.
31873
31874 2008-04-16  Bruno Haible  <bruno@clisp.org>
31875
31876         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
31877         New macros.
31878         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
31879         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
31880         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
31881         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
31882         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
31883         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
31884         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
31885         macros.
31886         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
31887         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
31888         Northern Sotho, Uighur.
31889
31890 2008-04-16  Bruno Haible  <bruno@clisp.org>
31891
31892         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
31893         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
31894         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
31895         Reported by Daniel Bergström <daniel@octocode.com>.
31896
31897 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
31898             Bruno Haible  <bruno@clisp.org>
31899
31900         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
31901         function.
31902         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
31903         New functions, mostly extracted from gl_locale_name_default.
31904         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
31905
31906 2008-04-16  Eric Blake  <ebb9@byu.net>
31907
31908         Adjust strtod detection to catch glibc 2.7 bug.
31909         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
31910         Reported by John Gatewood Ham.
31911
31912 2008-04-16  Bruno Haible  <bruno@clisp.org>
31913
31914         Add tentative support for Linux libc5.
31915         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
31916         * lib/fpurge.c (fpurge): Likewise.
31917         * lib/freadable.c (freadable): Likewise.
31918         * lib/freadahead.c (freadahead): Likewise.
31919         * lib/freading.c (freading): Likewise.
31920         * lib/freadptr.c (freadptr): Likewise.
31921         * lib/freadseek.c (freadptrinc): Likewise.
31922         * lib/fseeko.c (rpl_fseeko): Likewise.
31923         * lib/fseterr.c (fseterr): Likewise.
31924         * lib/fwritable.c (fwritable): Likewise.
31925         * lib/fwriting.c (fwriting): Likewise.
31926         Reported by Alain Guibert <alguibert+bts@free.fr>.
31927
31928 2008-04-15  Bruno Haible  <bruno@clisp.org>
31929
31930         * modules/mathl (configure.ac): Define module indicator.
31931
31932 2008-04-15  Bruno Haible  <bruno@clisp.org>
31933
31934         * lib/logl.c (logl): Remove unused variables.
31935
31936 2008-04-15  Bruno Haible  <bruno@clisp.org>
31937
31938         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
31939         fails.
31940
31941 2008-04-15  Bruno Haible  <bruno@clisp.org>
31942
31943         * lib/trim.c (trim2): Fix argument of isspace() macro.
31944
31945 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
31946
31947         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
31948         to 0.
31949         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
31950
31951 2008-04-14  Bruno Haible  <bruno@clisp.org>
31952
31953         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
31954         AC_LANG_PROGRAM argument.
31955         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
31956         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
31957         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31958         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31959         * m4/math_h.m4 (gl_MATH_H): Likewise.
31960         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
31961         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31962         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
31963         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
31964         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
31965         * m4/regex.m4 (gl_REGEX): Likewise.
31966         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
31967         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
31968         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31969         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
31970         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31971         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31972         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31973         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31974
31975 2008-04-14  Jim Meyering  <meyering@redhat.com>
31976
31977         test-strtod: fix typos: s/abs/fabs/
31978         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
31979
31980 2008-04-13  Bruno Haible  <bruno@clisp.org>
31981
31982         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
31983         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
31984         module is also used and while not building the reloc-wrapper.
31985
31986 2008-04-13  Bruno Haible  <bruno@clisp.org>
31987
31988         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
31989
31990 2008-04-13  Bruno Haible  <bruno@clisp.org>
31991
31992         Fix AIX compilation failure introduced on 2008-04-02.
31993         * tests/test-frexp.c (exp): Undefine before redefining.
31994         * tests/test-frexpl.c (exp): Likewise.
31995
31996 2008-04-13  Bruno Haible  <bruno@clisp.org>
31997
31998         Work around a HP-UX stdio bug.
31999         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
32000         * tests/test-ftello.c (main): Likewise.
32001         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
32002         * doc/posix-functions/ftello.texi: Likewise.
32003
32004 2008-04-13  Bruno Haible  <bruno@clisp.org>
32005
32006         Make test-signbit pass on HP-UX/hppa.
32007         * tests/test-signbit.c (minus_zerol): New variable.
32008         (test_signbitl): Use it.
32009
32010 2008-04-13  Bruno Haible  <bruno@clisp.org>
32011
32012         Make truncl work on OSF/1 4.0.
32013         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
32014         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32015         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
32017         HAVE_DECL_TRUNCL.
32018         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
32019         HAVE_DECL_TRUNCL.
32020         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
32021
32022 2008-04-13  Bruno Haible  <bruno@clisp.org>
32023
32024         * lib/unictype.h: Remove trailing comma from enumeration definitions.
32025
32026 2008-04-13  Bruno Haible  <bruno@clisp.org>
32027
32028         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
32029         expression, so as to avoid HP-UX 11 cc compiler bug.
32030
32031 2008-04-13  Bruno Haible  <bruno@clisp.org>
32032
32033         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
32034
32035 2008-04-13  Bruno Haible  <bruno@clisp.org>
32036
32037         * lib/git-merge-changelog.c: Remove empty declaration outside of
32038         functions.
32039
32040 2008-04-13  Bruno Haible  <bruno@clisp.org>
32041
32042         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
32043
32044 2008-04-13  Bruno Haible  <bruno@clisp.org>
32045
32046         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
32047         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
32048         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
32049         also if it exists but lacks definitions of the SHUT_* macros.
32050         * modules/sys_socket (Description): Update.
32051         Reported by Elbert Pol <e.pol@chello.nl>.
32052
32053 2008-04-13  Bruno Haible  <bruno@clisp.org>
32054
32055         * lib/localcharset.c (OS2): Don't redefine if already defined.
32056         Reported by Elbert Pol <e.pol@chello.nl>.
32057
32058 2008-04-13  Bruno Haible  <bruno@clisp.org>
32059
32060         * lib/binary-io.h [__EMX__]: Include <io.h>.
32061         Reported by Elbert Pol <e.pol@chello.nl>.
32062
32063 2008-04-12  Bruno Haible  <bruno@clisp.org>
32064
32065         * lib/fpucw.h: Enable the definitions also for x86_64.
32066         Needed for NetBSD/x86_64.
32067         Reported by Thomas Klausner <tk@giga.or.at>.
32068
32069 2008-04-12  Bruno Haible  <bruno@clisp.org>
32070
32071         * tests/test-strtod.c: Include isnand.h.
32072         (main): Use isnand instead of isnan.
32073         Reported by Jim Meyering.
32074
32075 2008-04-12  Bruno Haible  <bruno@clisp.org>
32076
32077         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
32078         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32079
32080 2008-04-12  Jim Meyering  <meyering@redhat.com>
32081
32082         * m4/math_h.m4 (gl_MATH_H): Fix typos.
32083
32084 2008-04-12  Bruno Haible  <bruno@clisp.org>
32085
32086         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
32087         Reported by Elbert Pol <e.pol@chello.nl>.
32088
32089 2008-04-12  Eric Blake  <ebb9@byu.net>
32090
32091         Work around Solaris 10 math.h bug.
32092         * m4/math_h.m4 (gl_MATH_H): Check for bug.
32093         (gl_MATH_H_DEFAULTS): Set up default.
32094         * modules/math (Makefile.am): Replace new indicators.
32095         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
32096         * tests/test-math.c (main): Test this.
32097         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
32098         * doc/posix-headers/math.texi (math.h): Mention bug.
32099         Reported by Nelson H. F. Beebe and Jim Meyering.
32100
32101 2008-04-11  Bruno Haible  <bruno@clisp.org>
32102
32103         Adapt to future versions of Apple GCC.
32104         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
32105         Reported by Peter O'Gorman <peter@pogma.com>.
32106
32107 2008-04-11  Bruno Haible  <bruno@clisp.org>
32108
32109         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
32110
32111 2008-04-11  Bruno Haible  <bruno@clisp.org>
32112
32113         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
32114
32115         * modules/getaddrinfo-tests (Makefile.am): Define
32116         test_getaddrinfo_LDADD.
32117
32118 2008-04-11  Bruno Haible  <bruno@clisp.org>
32119
32120         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
32121         (init): Fix syntax error.
32122         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
32123         is declared.
32124
32125 2008-04-11  Bruno Haible  <bruno@clisp.org>
32126
32127         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
32128         * modules/glob (Depends-on): Add stdbool.
32129
32130 2008-04-11  Bruno Haible  <bruno@clisp.org>
32131
32132         * lib/trim.c: Include <string.h>.
32133
32134 2008-04-11  Eric Blake  <ebb9@byu.net>
32135
32136         Avoid compile failure on OS/2.
32137         * lib/regex_internal.h (internal_function): Disable optimization
32138         on OS/2 (__EMX__), where it caused compiler error.
32139         Reported by Elbert Pol.
32140
32141 2008-04-11  Bruno Haible  <bruno@clisp.org>
32142
32143         Flush the standard error stream before aborting. Needed on mingw.
32144         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
32145         * tests/test-array_list.c (ASSERT): Likewise.
32146         * tests/test-array_oset.c (ASSERT): Likewise.
32147         * tests/test-avltree_list.c (ASSERT): Likewise.
32148         * tests/test-avltree_oset.c (ASSERT): Likewise.
32149         * tests/test-avltreehash_list.c (ASSERT): Likewise.
32150         * tests/test-binary-io.c (ASSERT): Likewise.
32151         * tests/test-byteswap.c (ASSERT): Likewise.
32152         * tests/test-c-ctype.c (ASSERT): Likewise.
32153         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
32154         * tests/test-c-strcasestr.c (ASSERT): Likewise.
32155         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
32156         * tests/test-c-strstr.c (ASSERT): Likewise.
32157         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
32158         * tests/test-canonicalize.c (ASSERT): Likewise.
32159         * tests/test-carray_list.c (ASSERT): Likewise.
32160         * tests/test-ceilf1.c (ASSERT): Likewise.
32161         * tests/test-ceilf2.c (ASSERT): Likewise.
32162         * tests/test-ceill.c (ASSERT): Likewise.
32163         * tests/test-count-one-bits.c (ASSERT): Likewise.
32164         * tests/test-fbufmode.c (ASSERT): Likewise.
32165         * tests/test-fflush2.c (ASSERT): Likewise.
32166         * tests/test-floorf1.c (ASSERT): Likewise.
32167         * tests/test-floorf2.c (ASSERT): Likewise.
32168         * tests/test-floorl.c (ASSERT): Likewise.
32169         * tests/test-fopen.c (ASSERT): Likewise.
32170         * tests/test-fpending.c (ASSERT): Likewise.
32171         * tests/test-fprintf-posix.c (ASSERT): Likewise.
32172         * tests/test-fpurge.c (ASSERT): Likewise.
32173         * tests/test-freadable.c (ASSERT): Likewise.
32174         * tests/test-freadahead.c (ASSERT): Likewise.
32175         * tests/test-freading.c (ASSERT): Likewise.
32176         * tests/test-freadptr.c (ASSERT): Likewise.
32177         * tests/test-freadptr2.c (ASSERT): Likewise.
32178         * tests/test-freadseek.c (ASSERT): Likewise.
32179         * tests/test-freopen.c (ASSERT): Likewise.
32180         * tests/test-frexp.c (ASSERT): Likewise.
32181         * tests/test-frexpl.c (ASSERT): Likewise.
32182         * tests/test-fseek.c (ASSERT): Likewise.
32183         * tests/test-fseeko.c (ASSERT): Likewise.
32184         * tests/test-fstrcmp.c (ASSERT): Likewise.
32185         * tests/test-ftell.c (ASSERT): Likewise.
32186         * tests/test-ftello.c (ASSERT): Likewise.
32187         * tests/test-func.c (ASSERT): Likewise.
32188         * tests/test-fwritable.c (ASSERT): Likewise.
32189         * tests/test-fwriting.c (ASSERT): Likewise.
32190         * tests/test-getdelim.c (ASSERT): Likewise.
32191         * tests/test-getline.c (ASSERT): Likewise.
32192         * tests/test-i-ring.c (ASSERT): Likewise.
32193         * tests/test-iconv-utf.c (ASSERT): Likewise.
32194         * tests/test-iconv.c (ASSERT): Likewise.
32195         * tests/test-isfinite.c (ASSERT): Likewise.
32196         * tests/test-isnand.c (ASSERT): Likewise.
32197         * tests/test-isnanf.c (ASSERT): Likewise.
32198         * tests/test-isnanl.h (ASSERT): Likewise.
32199         * tests/test-ldexpl.c (ASSERT): Likewise.
32200         * tests/test-linked_list.c (ASSERT): Likewise.
32201         * tests/test-linkedhash_list.c (ASSERT): Likewise.
32202         * tests/test-localename.c (ASSERT): Likewise.
32203         * tests/test-lseek.c (ASSERT): Likewise.
32204         * tests/test-mbscasecmp.c (ASSERT): Likewise.
32205         * tests/test-mbscasestr1.c (ASSERT): Likewise.
32206         * tests/test-mbscasestr2.c (ASSERT): Likewise.
32207         * tests/test-mbscasestr3.c (ASSERT): Likewise.
32208         * tests/test-mbscasestr4.c (ASSERT): Likewise.
32209         * tests/test-mbschr.c (ASSERT): Likewise.
32210         * tests/test-mbscspn.c (ASSERT): Likewise.
32211         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
32212         * tests/test-mbspbrk.c (ASSERT): Likewise.
32213         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
32214         * tests/test-mbsrchr.c (ASSERT): Likewise.
32215         * tests/test-mbsspn.c (ASSERT): Likewise.
32216         * tests/test-mbsstr1.c (ASSERT): Likewise.
32217         * tests/test-mbsstr2.c (ASSERT): Likewise.
32218         * tests/test-mbsstr3.c (ASSERT): Likewise.
32219         * tests/test-memchr2.c (ASSERT): Likewise.
32220         * tests/test-memmem.c (ASSERT): Likewise.
32221         * tests/test-open.c (ASSERT): Likewise.
32222         * tests/test-printf-frexp.c (ASSERT): Likewise.
32223         * tests/test-printf-frexpl.c (ASSERT): Likewise.
32224         * tests/test-printf-posix.c (ASSERT): Likewise.
32225         * tests/test-quotearg.c (ASSERT): Likewise.
32226         * tests/test-rbtree_list.c (ASSERT): Likewise.
32227         * tests/test-rbtree_oset.c (ASSERT): Likewise.
32228         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
32229         * tests/test-round1.c (ASSERT): Likewise.
32230         * tests/test-roundf1.c (ASSERT): Likewise.
32231         * tests/test-roundl.c (ASSERT): Likewise.
32232         * tests/test-signbit.c (ASSERT): Likewise.
32233         * tests/test-sleep.c (ASSERT): Likewise.
32234         * tests/test-snprintf-posix.c (ASSERT): Likewise.
32235         * tests/test-snprintf.c (ASSERT): Likewise.
32236         * tests/test-sprintf-posix.c (ASSERT): Likewise.
32237         * tests/test-stat-time.c (ASSERT): Likewise.
32238         * tests/test-strcasestr.c (ASSERT): Likewise.
32239         * tests/test-strerror.c (ASSERT): Likewise.
32240         * tests/test-striconv.c (ASSERT): Likewise.
32241         * tests/test-striconveh.c (ASSERT): Likewise.
32242         * tests/test-striconveha.c (ASSERT): Likewise.
32243         * tests/test-strsignal.c (ASSERT): Likewise.
32244         * tests/test-strstr.c (ASSERT): Likewise.
32245         * tests/test-strtod.c (ASSERT): Likewise.
32246         * tests/test-trunc1.c (ASSERT): Likewise.
32247         * tests/test-trunc2.c (ASSERT): Likewise.
32248         * tests/test-truncf1.c (ASSERT): Likewise.
32249         * tests/test-truncf2.c (ASSERT): Likewise.
32250         * tests/test-truncl.c (ASSERT): Likewise.
32251         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
32252         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
32253         * tests/test-vasnprintf.c (ASSERT): Likewise.
32254         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
32255         * tests/test-vasprintf.c (ASSERT): Likewise.
32256         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
32257         * tests/test-vprintf-posix.c (ASSERT): Likewise.
32258         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
32259         * tests/test-vsnprintf.c (ASSERT): Likewise.
32260         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
32261         * tests/test-wcwidth.c (ASSERT): Likewise.
32262         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
32263         * tests/test-xprintf-posix.c (ASSERT): Likewise.
32264         * tests/test-xvasprintf.c (ASSERT): Likewise.
32265         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
32266         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
32267         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
32268         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
32269         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
32270         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
32271         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
32272         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
32273         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
32274         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
32275         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
32276         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
32277         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
32278         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
32279         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
32280         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
32281         * tests/unictype/test-block_list.c (ASSERT): Likewise.
32282         * tests/unictype/test-block_of.c (ASSERT): Likewise.
32283         * tests/unictype/test-block_test.c (ASSERT): Likewise.
32284         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
32285         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
32286         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
32287         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
32288         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
32289         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
32290         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
32291         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
32292         * tests/unictype/test-combining.c (ASSERT): Likewise.
32293         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
32294         * tests/unictype/test-digit.c (ASSERT): Likewise.
32295         * tests/unictype/test-mirror.c (ASSERT): Likewise.
32296         * tests/unictype/test-numeric.c (ASSERT): Likewise.
32297         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
32298         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
32299         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
32300         * tests/unictype/test-scripts.c (ASSERT): Likewise.
32301         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
32302         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
32303         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
32304         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
32305         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
32306         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
32307         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
32308         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
32309         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
32310         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
32311         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
32312         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
32313         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
32314         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
32315         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
32316         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
32317         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
32318         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
32319         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
32320         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
32321         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
32322         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
32323         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
32324         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
32325         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
32326         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
32327         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
32328         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
32329         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
32330         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
32331         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
32332         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
32333         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
32334         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
32335         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
32336         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
32337         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
32338         Reported by Eric Blake.
32339
32340 2008-04-11  Bruno Haible  <bruno@clisp.org>
32341
32342         * lib/wchar.in.h: Tweak comment.
32343
32344 2008-04-11  Bruno Haible  <bruno@clisp.org>
32345
32346         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
32347         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
32348         gl_COMMON.
32349         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
32350
32351 2008-04-11  Bruno Haible  <bruno@clisp.org>
32352
32353         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
32354
32355 2008-04-11  Simon Josefsson  <simon@josefsson.org>
32356
32357         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
32358         of attempting to use non-existing /dev/*random.  Based on patch
32359         from Adam Strzelecki <ono@java.pl> in
32360         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
32361
32362 2008-04-08  Bruno Haible  <bruno@clisp.org>
32363
32364         Add tentative support for emx+gcc.
32365         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
32366         * lib/fpurge.c (fpurge): Likewise.
32367         * lib/freadable.c (freadable): Likewise.
32368         * lib/freadahead.c (freadahead): Likewise.
32369         * lib/freading.c (freading): Likewise.
32370         * lib/freadptr.c (freadptr): Likewise.
32371         * lib/freadseek.c (freadptrinc): Likewise.
32372         * lib/fseeko.c (rpl_fseeko): Likewise.
32373         * lib/fseterr.c (fseterr): Likewise.
32374         * lib/fwritable.c (fwritable): Likewise.
32375         * lib/fwriting.c (fwriting): Likewise.
32376         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
32377
32378 2008-04-09  Eric Blake  <ebb9@byu.net>
32379
32380         Avoid some autoconf warnings.
32381         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
32382         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
32383         * m4/afs.m4 (gl_AFS): Likewise.
32384         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
32385         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
32386         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32387         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
32388         (gl_INTEGER_TYPE_SUFFIX): Likewise.
32389         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
32390         (AC_CHECK_DECLS_ONCE): Likewise.
32391         Rename file...
32392         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
32393         gnulib-tool requires autoconf 2.59 or better.
32394         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
32395
32396 2008-04-08  Eric Blake  <ebb9@byu.net>
32397
32398         Use 'git describe --match' if present (added in git 1.5.5).
32399         * build-aux/git-version-gen: Limit result to tags that match 'v*'
32400         if possible.
32401
32402 2008-04-08  Bruno Haible  <bruno@clisp.org>
32403
32404         Add tentative support for OpenServer.
32405         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
32406         _ptr, _cnt.
32407         * lib/fpurge.c (fpurge): Likewise.
32408         * lib/freadable.c (freadable): Likewise.
32409         * lib/freadahead.c (freadahead): Likewise.
32410         * lib/freading.c (freading): Likewise.
32411         * lib/freadptr.c (freadptr): Likewise.
32412         * lib/freadseek.c (freadptrinc): Likewise.
32413         * lib/fseeko.c (rpl_fseeko): Likewise.
32414         * lib/fseterr.c (fseterr): Likewise.
32415         * lib/fwritable.c (fwritable): Likewise.
32416         * lib/fwriting.c (fwriting): Likewise.
32417         Reported by Roger Cornelius <rac@tenzing.org> and
32418         Brian K. White <brian@aljex.com>.
32419
32420 2008-04-06  Jim Meyering  <meyering@redhat.com>
32421
32422         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
32423
32424 2008-04-06  Bruno Haible  <bruno@clisp.org>
32425
32426         Avoid possible error with non-ASCII bytes in UTF-8 locales.
32427         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
32428         * tests/test-printf-posix.sh: Likewise.
32429         * tests/test-vfprintf-posix.sh: Likewise.
32430         * tests/test-vprintf-posix.sh: Likewise.
32431         * tests/test-xprintf-posix.sh: Likewise.
32432
32433 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32434
32435         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
32436         hide error from 'ls', needed on OS/2.
32437         Report by Elbert Pol <elbert.pol@gmail.com>.
32438
32439 2008-04-04  Eric Blake  <ebb9@byu.net>
32440
32441         Make test-fseeko.c failures meaningful.
32442         * tests/test-fseeko.c: Print line number on failure.
32443         * tests/test-fseek.c: Likewise.
32444         Reported by Nelson H. F. Beebe.
32445
32446         Improve strtod bug detection check.
32447         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
32448         required for Solaris 10.
32449         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
32450
32451 2008-04-04  Bruno Haible  <bruno@clisp.org>
32452
32453         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
32454         by m4/setenv.m4.
32455
32456 2008-04-03  Eric Blake  <ebb9@byu.net>
32457
32458         Ensure sane .version contents.
32459         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
32460         version string.
32461         * build-aux/git-version-gen: Improve documentation.
32462
32463         Make GNU make output nicer.
32464         * top/GNUmakefile [!_have-Makefile]: Add dependency on
32465         MAKECMDGOALS to enforce message for all command line targets.  Set
32466         srcdir for use in maint.mk.
32467
32468         Another maintainer tweak.
32469         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
32470         a target that regenerates version.
32471
32472 2008-04-03  Jim Meyering  <meyering@redhat.com>
32473
32474         vc-list-files: don't cause coreutils "make po-check" failure
32475         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
32476
32477 2008-04-03  Eric Blake  <ebb9@byu.net>
32478
32479         Allow VPATH usage of vc-list-files.
32480         * build-aux/vc-list-files (scriptversion): Add timestamp.
32481         (options): Add --help, --version, -C.
32482         (CVS): Support installed cvsu.
32483
32484 2008-04-02  Bruno Haible  <bruno@clisp.org>
32485
32486         Avoid some "statement with no effect" warnings from gcc.
32487         * tests/test-wctype.c (main): Explicitly ignore unused values.
32488         Reported by Jim Meyering.
32489
32490 2008-04-02  Jim Meyering  <meyering@redhat.com>
32491
32492         Avoid some warnings from "gcc -Wshadow".
32493         * tests/test-frexp.c (exp): Define to a different identifier.
32494         * tests/test-frexpl.c (exp): Likewise.
32495
32496 2008-04-03  Jim Meyering  <meyering@redhat.com>
32497
32498         bootstrap: remove dangling *.[ch] symlinks from lib
32499         * build-aux/bootstrap [dangling symlink removal]: Move find's
32500         -depth option to precede all others, to avoid a warning.
32501         Remove *.[ch] files too, and from "$source_base" (usually lib/).
32502
32503 2008-04-02  Bruno Haible  <bruno@clisp.org>
32504
32505         Avoid some warnings from "gcc -Wshadow".
32506         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
32507         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
32508         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
32509         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
32510         Reported by Jim Meyering.
32511
32512 2008-04-01  Bruno Haible  <bruno@clisp.org>
32513
32514         Fix test to work on IRIX 6.5 with cc.
32515         * tests/test-math.c (numeric_equal): New function.
32516         (main): Use it.
32517
32518 2008-04-01  Bruno Haible  <bruno@clisp.org>
32519
32520         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
32521
32522 2008-04-01  Bruno Haible  <bruno@clisp.org>
32523
32524         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
32525         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32526         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
32527         (Depends-on): Remove math.
32528
32529         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
32530         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32531         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
32532         (Depends-on): Remove math.
32533
32534         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
32535         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32536         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
32537         (Depends-on): Remove math.
32538         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
32539         (Depends-on): Remove math.
32540
32541         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
32542         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32543         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
32544         (Depends-on): Remove math.
32545         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
32546         (Depends-on): Remove math.
32547
32548         * tests/test-round1.c: Include nan.h.
32549         (main): Use NaNd instead of NAN.
32550         * modules/round-tests (Files): Add tests/nan.h.
32551
32552         * tests/test-trunc1.c: Include nan.h.
32553         (main): Use NaNd instead of NAN.
32554         * modules/trunc-tests (Files): Add tests/nan.h.
32555
32556         * tests/test-roundf1.c: Include nan.h.
32557         (main): Use NaNf instead of NAN.
32558         * modules/roundf-tests (Files): Add tests/nan.h.
32559
32560         * tests/test-truncf1.c: Include nan.h.
32561         (main): Use NaNf instead of NAN.
32562         * modules/truncf-tests (Files): Add tests/nan.h.
32563
32564         * tests/test-ceilf1.c: Include nan.h.
32565         (main): Use NaNf instead of NAN.
32566         * modules/ceilf-tests (Files): Add tests/nan.h.
32567
32568         * tests/test-floorf1.c: Include nan.h.
32569         (main): Use NaNf instead of NAN.
32570         * modules/floorf-tests (Files): Add tests/nan.h.
32571
32572         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
32573         (main): Use NaNf instead of NAN.
32574         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
32575
32576         * tests/test-isnand.c: Include nan.h instead of <math.h>.
32577         (main): Use NaNd instead of NAN.
32578         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
32579
32580         * tests/test-frexp.c: Include nan.h.
32581         (main): Use NaNd instead of NAN.
32582         * modules/frexp-tests (Files): Add tests/nan.h.
32583
32584         * lib/isnan.c: Don't include <math.h>.
32585         (FUNC): Don't use NAN macro.
32586         * modules/isnand-nolibm (Depends-on): Remove math.
32587         * modules/isnanf-nolibm (Depends-on): Remove math.
32588         * modules/isnanl (Depends-on): Remove math.
32589         * modules/isnanl-nolibm (Depends-on): Remove math.
32590
32591         * tests/nan.h: New file.
32592
32593 2008-04-01  Eric Blake  <ebb9@byu.net>
32594
32595         Fix typos.
32596         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
32597         values to be the right type.
32598
32599         For now, cater to gnulib strtod inaccuracies.
32600         * tests/test-strtod.c (main): Allow 1-ulp error on expected
32601         fractional results.  While not as nice from a QoI perspective, it
32602         is a quicker patch than correctly implementing decimal to binary
32603         rounding.
32604
32605 2008-03-31  Eric Blake  <ebb9@byu.net>
32606
32607         Guarantee a definition of NAN.
32608         * lib/math.in.h (NAN): Define if missing.
32609         * tests/test-math.c (main): Test it.
32610         * doc/posix-headers/math.texi (math.h): Document this.
32611         * lib/isnan.c (rpl_isnand): Use it.
32612         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
32613         * tests/test-floorf1.c (NaN): Likewise.
32614         * tests/test-frexp.c (NaN): Likewise.
32615         * tests/test-isnand.c (NaN): Likewise.
32616         * tests/test-isnanf.c (NaN): Likewise.
32617         * tests/test-round1.c (NaN): Likewise.
32618         * tests/test-roundf1.c (NaN): Likewise.
32619         * tests/test-snprintf-posix.h (NaN): Likewise.
32620         * tests/test-sprintf-posix.h (NaN): Likewise.
32621         * tests/test-trunc1.c (NaN): Likewise.
32622         * tests/test-truncf1.c (NaN): Likewise.
32623         * tests/test-vasnprintf-posix.c (NaN): Likewise.
32624         * tests/test-vasprintf-posix.c (NaN): Likewise.
32625         * modules/isnand-nolibm (Depends-on): Add math.
32626         * modules/isnanf-nolibm (Depends-on): Likewise.
32627         * modules/isnanl (Depends-on): Likewise.
32628         * modules/isnanl-nolibm (Depends-on): Likewise.
32629         * modules/snprintf-posix-tests (Depends-on): Likewise.
32630         * modules/sprintf-posix-tests (Depends-on): Likewise.
32631         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
32632         * modules/vsprintf-posix-tests (Depends-on): Likewise.
32633         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
32634         * modules/vasprintf-posix-tests (Depends-on): Likewise.
32635
32636 2008-03-31  Bruno Haible  <bruno@clisp.org>
32637
32638         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
32639         * doc/posix-functions/strtod.texi: Likewise.
32640
32641 2008-03-31  Bruno Haible  <bruno@clisp.org>
32642
32643         * tests/test-strtod.c (main): Don't use C99 syntax.
32644
32645 2008-03-31  Bruno Haible  <bruno@clisp.org>
32646
32647         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
32648         Reported by Eric Blake.
32649
32650 2008-03-31  Jim Meyering  <meyering@redhat.com>
32651
32652         Don't compare actual signbit return values.
32653         * tests/test-strtod.c (main): Rather, compare only their
32654         zero/non-zero nature.
32655
32656 2008-03-31  Eric Blake  <ebb9@byu.net>
32657
32658         More strtod documentation.
32659         * doc/posix-functions/strtod.texi (strtod): Interpret more test
32660         failures as distinct bugs.
32661
32662 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32663
32664         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
32665         Problem reported by Erik Benada in
32666         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
32667
32668 2008-03-30  Bruno Haible  <bruno@clisp.org>
32669
32670         * tests/test-strtod.c: Add comments about which assertion fails on which
32671         platform.
32672         * doc/posix-functions/strtod.texi: Add info about many more platforms.
32673
32674 2008-03-30  Eric Blake  <ebb9@byu.net>
32675
32676         Test signbit behavior on zeros.
32677         * tests/test-signbit.c (test_signbitf): Add tests for zero.
32678         (test_signbitd, test_signbitl): Likewise.
32679
32680         More strtod touchups.
32681         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
32682         sign of negative underflow, for now.  Use .5, not .1.
32683         * doc/posix-functions/strtod.texi (strtod): Mention these
32684         limitations.
32685         Reported by Jim Meyering.
32686
32687 2008-03-30  Bruno Haible  <bruno@clisp.org>
32688
32689         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
32690         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
32691
32692 2008-03-30  Bruno Haible  <bruno@clisp.org>
32693
32694         Avoid failure when attempting to return empty iconv results on some
32695         platforms.
32696         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
32697         allocation, don't report ENOMEM when the resulting string is empty.
32698
32699 2008-03-30  Bruno Haible  <bruno@clisp.org>
32700
32701         Fix buffer overrun.
32702         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
32703         Don't consider the width for tmp_length. Check count against tmp_length
32704         before doing the padding. Ensure enough allocation during padding.
32705
32706 2008-03-30  Eric Blake  <ebb9@byu.net>
32707
32708         strtod touchups.
32709         * lib/strtod.c (strtod): Avoid compiler warnings.
32710         Reported by Jim Meyering.
32711
32712 2008-03-30  Bruno Haible  <bruno@clisp.org>
32713
32714         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
32715         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
32716         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
32717         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
32718         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
32719         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
32720         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
32721         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
32722
32723         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
32724         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
32725         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
32726         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
32727         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
32728         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
32729         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
32730         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
32731
32732         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
32733         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
32734         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
32735         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
32736         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
32737         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
32738         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
32739         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
32740
32741         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
32742         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
32743
32744         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
32745         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
32746
32747         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
32748         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
32749
32750         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
32751         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
32752         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
32753
32754         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
32755         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
32756         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
32757
32758         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
32759         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
32760         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
32761
32762         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
32763         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
32764         * modules/vasprintf (Depends-on): Add EOVERFLOW.
32765
32766         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
32767         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
32768         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
32769         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
32770         (Depends-on): Add EOVERFLOW.
32771         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
32772         (Depends-on): Add EOVERFLOW.
32773         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32774         (Depends-on): Add EOVERFLOW.
32775         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32776         (Depends-on): Add EOVERFLOW.
32777         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32778         (Depends-on): Add EOVERFLOW.
32779         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32780         (Depends-on): Add EOVERFLOW.
32781         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32782         (Depends-on): Add EOVERFLOW.
32783         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32784         (Depends-on): Add EOVERFLOW.
32785
32786         * lib/sprintf.c (EOVERFLOW): Remove fallback.
32787         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
32788         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
32789
32790         * lib/snprintf.c (EOVERFLOW): Remove fallback.
32791         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
32792         * modules/snprintf (Depends-on): Add EOVERFLOW.
32793
32794         * lib/poll.c (EOVERFLOW): Remove fallback.
32795         * modules/poll (Depends-on): Add EOVERFLOW.
32796
32797         * lib/getugroups.c (EOVERFLOW): Remove fallback.
32798         * modules/getugroups (Depends-on): Add EOVERFLOW.
32799
32800         * lib/getdelim.c (EOVERFLOW): Remove fallback.
32801         * modules/getdelim (Depends-on): Add EOVERFLOW.
32802
32803         * lib/ftell.c (EOVERFLOW): Remove fallback.
32804         * modules/ftell (Depends-on): Add EOVERFLOW.
32805
32806         * lib/fprintf.c (EOVERFLOW): Remove fallback.
32807         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
32808         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
32809
32810         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
32811
32812         * modules/EOVERFLOW-tests: New file.
32813         * tests/test-EOVERFLOW.c: New file.
32814
32815         * modules/EOVERFLOW: New file.
32816         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
32817
32818 2008-03-30  Bruno Haible  <bruno@clisp.org>
32819
32820         Fix bug introduced on 2007-06-10.
32821         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
32822         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
32823
32824 2008-03-30  Bruno Haible  <bruno@clisp.org>
32825
32826         Improve freadseek's efficiency after ungetc.
32827         * lib/freadseek.c: Include freadahead.h.
32828         (freadptrinc): New function, extracted from freadseek.
32829         (freadseek): Use it in a loop. Use freadahead to determine the number
32830         of loop iterations.
32831         * modules/freadseek (Depends-on): Add freadahead.
32832         (configure.ac): Require AC_C_INLINE.
32833
32834 2008-03-30  Bruno Haible  <bruno@clisp.org>
32835
32836         * lib/freadseek.c (freadseek): Don't ignore the return value of
32837         freadptr.
32838
32839 2008-03-29  Eric Blake  <ebb9@byu.net>
32840
32841         Add hex float support.
32842         * modules/strtod (Depends-on): Add c-ctype.
32843         (Link): Mention POW_LIB.
32844         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
32845         whitespace between 'e' and exponent.
32846         * tests/test-strtod.c (main): Enable hex float tests.
32847         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
32848         now provides.
32849
32850         Document various strtod bugs, with some fixes.
32851         * doc/posix-functions/strtod.texi (strtod): Document bugs with
32852         "-0x", "inf", "nan", and hex constants.
32853         * doc/posix-functions/atof.texi (atof): Likewise.
32854         * modules/stdlib (Makefile.am): Support strtod.
32855         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32856         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
32857         detect additional strtod bugs.
32858         * lib/stdlib.in.h (rpl_strtod): Add declarations.
32859         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
32860         bool where appropriate.  Parse 'inf' and 'nan'.
32861         * tests/test-strtod.c: New file.
32862         * modules/strtod (Depends-on): Add stdbool, stdlib.
32863         (configure.ac): Turn on module indicator.
32864         * modules/strtod-tests: New module.
32865
32866 2008-03-29  Eric Blake  <ebb9@byu.net>
32867
32868         Fix ftell on mingw.
32869         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
32870         * modules/ftell-tests (Depends-on): Add binary-io.
32871         * modules/ftello-tests (Depends-on): Likewise.
32872         * tests/test-ftell.c (main): Enhance test to cover behavior after
32873         ungetc.  Enforce binary mode.
32874         * tests/test-ftello.c (main): Likewise.
32875
32876         Pass test-freadseek on cygwin.
32877         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
32878         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
32879         ungetc buffer.
32880
32881         * tests/test-fflush2.c (main): Fix typo.
32882
32883 2008-03-29  Bruno Haible  <bruno@clisp.org>
32884
32885         * tests/test-fflush2.c (main): Temporarily disable the contents of
32886         this test.
32887         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
32888         Reported by Eric Blake.
32889
32890 2008-03-28  Simon Josefsson  <simon@josefsson.org>
32891
32892         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
32893         (GC_SHA224_DIGEST_SIZE): Add.
32894
32895         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
32896         (gc_hash_digest_length): Likewise.
32897         (gc_hash_buffer): Likewise.
32898
32899 2008-03-25  Bruno Haible  <bruno@clisp.org>
32900
32901         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
32902         detail which gettext release to use.
32903         Reported by Simon Josefsson.
32904
32905 2008-03-26  Jim Meyering  <meyering@redhat.com>
32906
32907         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
32908         * modules/gnumakefile (clean-GNUmakefile): Also, use
32909         test ... && ... || : syntax rather than if-then ... fi.
32910
32911         gnumakefile: Don't double-quote-expand $(VPATH) value.
32912         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
32913
32914 2008-03-24  Eric Blake  <ebb9@byu.net>
32915
32916         Alter GNUmakefile to install into top directory.
32917         * modules/maintainer-makefile: Split, and add dependency...
32918         * modules/gnumakefile: to this new module.
32919         * build-aux/GNUmakefile: Move...
32920         * top/GNUmakefile: ...here.
32921         * build-aux/maint.mk: Move...
32922         * top/maint.mk: ...here.
32923         * MODULES.html.sh (Support for maintaining...): Document new
32924         module.
32925
32926 2008-03-23  Bruno Haible  <bruno@clisp.org>
32927
32928         * gnulib-tool: New options --vc-files, --no-vc-files.
32929         (func_usage): Document them.
32930         (vc_files): New variable.
32931         (func_import): Consider vc_files.
32932         (func_create_testdir): Set vc_files to empty.
32933         Suggested by Jim Meyering and Karl Berry.
32934
32935 2008-03-23  Bruno Haible  <bruno@clisp.org>
32936
32937         Fix regex compilation error on HP-UX 11.
32938         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
32939         * modules/regex (Files): Add m4/mbstate_t.m4.
32940         Reported by Ton Voon <ton.voon@altinity.com>.
32941
32942 2008-03-23  Bruno Haible  <bruno@clisp.org>
32943
32944         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
32945
32946 2008-03-23  Eric Blake  <ebb9@byu.net>
32947             Bruno Haible  <bruno@clisp.org>
32948
32949         Install files from top/ in the destination directory.
32950         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32951         augmentation also for the files from top/.
32952         (func_import, func_create_testdir): Rewrite file names:
32953         top/filename -> filename.
32954
32955 2008-03-23  Bruno Haible  <bruno@clisp.org>
32956
32957         Tweak "gnulib --version" output.
32958         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
32959
32960 2008-03-23  Bruno Haible  <bruno@clisp.org>
32961
32962         Tweak "gnulib --version" output.
32963         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
32964         rather than contents of ChangeLog, when possible.
32965
32966 2008-03-21  Eric Blake  <ebb9@byu.net>
32967
32968         More --version tweaks.
32969         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
32970         date of last ChangeLog entry.
32971
32972 2008-03-21  Jim Meyering  <meyering@redhat.com>
32973
32974         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
32975
32976 2008-03-20  Eric Blake  <ebb9@byu.net>
32977
32978         VPATH fix.
32979         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
32980
32981 2008-03-20  Simon Josefsson  <simon@josefsson.org>
32982
32983         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
32984         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
32985
32986 2008-03-20  Eric Blake  <ebb9@byu.net>
32987
32988         Sync GNUmakefile with coreutils.
32989         * build-aux/GNUmakefile (have-Makefile): Rename...
32990         (_have-Makefile): ...to this, for namespace consideration.
32991         (GNUmakefile.cfg): Include, if present.
32992         (_autoreconf): Define a default.
32993         (_is-dist-target): New rule for rebuilds to pick up intra-release
32994         version.
32995         (maint-cfg.mk): Rename...
32996         (cfg.mk): ...to this.
32997
32998 2008-03-18  Jim Meyering  <meyering@redhat.com>
32999
33000         New script and module: mktempd
33001         * MODULES.html.sh (maint+release support): Add mktempd.
33002         * build-aux/mktempd: New file.
33003         * modules/mktempd: New file.
33004
33005 2008-03-15  Jim Meyering  <meyering@redhat.com>
33006
33007         Undo last change.
33008         * lib/sha1.c, lib/md5.c: 63 != ~63.
33009         Reported by Andreas Schwab.
33010
33011         sha1.c, md5.c: Hoist a redundant expression.
33012         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
33013         "ctx->buflen" only once, before calling *_process_block.
33014         * lib/md5.c (md5_process_bytes): Likewise.
33015
33016 2008-03-14  Eric Blake  <ebb9@byu.net>
33017
33018         Bump copyright year in files generated by gnulib-tool.
33019         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
33020         gnulib-tool, rather than hard-coding it.
33021
33022         Fix 'gnulib-tool --version' output to work with git.
33023         * gnulib-tool (func_gnulib_dir): New function, extracted from...
33024         (startup): ...here.
33025         (func_version): Use it to invoke git-version-gen, rather than
33026         relying on CVS keyword expansion.  Modernize wording.
33027         (cvsdatestamp, last_checkin_date, version): Kill unused
33028         variables.
33029
33030 2008-03-12  Jim Meyering  <meyering@redhat.com>
33031
33032         Recognize optional cast of the argument to free.
33033         * build-aux/useless-if-before-free: Update regexps.
33034
33035         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
33036
33037 2008-03-11  Bruno Haible  <bruno@clisp.org>
33038
33039         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
33040         by a single package.
33041         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
33042         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
33043         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
33044         Reported by Sam Steingold <sds@gnu.org>.
33045
33046 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33047
33048         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
33049         repositories.
33050
33051 2008-03-11  Bruno Haible  <bruno@clisp.org>
33052
33053         Avoid conflicts between local macro definitions.
33054         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33055         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
33056
33057 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
33058             Bruno Haible  <bruno@clisp.org>
33059
33060         Make va_copy work with some version of xlc on AIX 5.1.
33061         * lib/stdarg.in.h: New file.
33062         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
33063         On AIX, use a <stdarg.h> file substitute.
33064         * modules/stdarg (Files): Add lib/stdarg.in.h.
33065         (Depends-on): Add include_next.
33066         (Makefile.am): Build a stdarg.h substitute if requested.
33067         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
33068
33069 2008-03-10  Bruno Haible  <bruno@clisp.org>
33070
33071         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
33072         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33073         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33074
33075 2008-03-10  Bruno Haible  <bruno@clisp.org>
33076
33077         * modules/stdlib (Depends-on): Add include_next, remove
33078         absolute-header.
33079
33080 2008-03-09  Bruno Haible  <bruno@clisp.org>
33081
33082         * lib/freadahead.h (freadahead): Document more precisely.
33083         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
33084         the sum of both buffer sizes.
33085         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
33086         * NEWS: Document the change.
33087
33088 2008-03-09  Bruno Haible  <bruno@clisp.org>
33089
33090         Extend freadptr to return also the buffer size.
33091         * lib/freadptr.h (freadptr): Add sizep argument.
33092         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
33093         (freadptr): Add sizep argument. Determine buffer size like freadahead
33094         does.
33095         * tests/test-freadptr.c: Don't include freadahead.h.
33096         (main): Adapt for new calling convention of freadptr.
33097         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
33098         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
33099         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
33100         tests/test-freadptr2.sh.
33101         (Depends): Remove freadahead.
33102         (TESTS): Add test-freadptr2.sh.
33103         (check_PROGRAMS): Add test-freadptr2.
33104
33105 2008-03-09  Bruno Haible  <bruno@clisp.org>
33106
33107         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
33108         Report and solution by Simon Josefsson.
33109
33110 2008-03-06  Bruno Haible  <bruno@clisp.org>
33111
33112         Make fflush after ungetc work on BSD platforms.
33113         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
33114         * tests/test-fflush2.c: New file.
33115         * tests/test-fflush2.sh: New file.
33116         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
33117         tests/test-fflush2.c.
33118         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
33119         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
33120
33121 2008-03-06  Eric Blake  <ebb9@byu.net>
33122
33123         Likewise for ftello.
33124         * modules/ftello (Dependencies): Add extensions.
33125         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
33126
33127 2008-03-06  Bruno Haible  <bruno@clisp.org>
33128
33129         * modules/fseeko (Dependencies): Add extensions.
33130         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
33131         Needed on glibc systems.
33132
33133 2008-03-06  Bruno Haible  <bruno@clisp.org>
33134
33135         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
33136         email address.
33137         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33138
33139 2008-03-06  Bruno Haible  <bruno@clisp.org>
33140
33141         * users.txt: Add libgnupdf.
33142
33143 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33144
33145         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
33146         (Header File Substitutes, Function Substitutes,
33147         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
33148         (Build robot for gnulib): Fix typo.
33149
33150 2008-03-06  Bruno Haible  <bruno@clisp.org>
33151
33152         * doc/gnulib-tool.texi (VCS Issues): Small updates.
33153         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33154
33155 2008-03-06  Bruno Haible  <bruno@clisp.org>
33156
33157         * doc/func.texi: New file, extracted from doc/gnulib.texi.
33158         * doc/gnulib.texi: Include it.
33159
33160 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33161
33162         * modules/func (License): Change license to unlimited; there was
33163         no LGPL parts in the module anyway.
33164
33165 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33166
33167         * modules/__func__: Renamed to modules/func.
33168         * modules/__func__-tests: Renamed to modules/func-tests.
33169         * tests/test-__func__.c: Renamed to tests/test-func.c.
33170         * m4/__func__.m4: Renamed to m4/func.m4.
33171         * doc/gnulib.texi (__func__): Section renamed to func.
33172         Suggested by Eric Blake <ebb9@byu.net>.
33173
33174 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33175
33176         * doc/gnulib.texi (__func__): Use C99 terminology when talking
33177         about __func__.  Make example self-contained.  Suggested by Eric
33178         Blake <ebb9@byu.net>.
33179
33180         * tests/test-__func__.c (main): Avoid extraneous () around __func.
33181         Suggested by Eric Blake <ebb9@byu.net>.
33182
33183 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33184
33185         * modules/__func__: New file.
33186         * modules/__func__-tests: New file.
33187         * tests/test-__func__.c: New file.
33188         * m4/__func__.m4: New file.
33189         * doc/gnulib.texi (__func__): Document __func__ module.
33190
33191 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33192
33193         * modules/byteswap (License): Re-license as LGPLv2+.
33194
33195 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33196
33197         * doc/Makefile: Add pdf target.
33198
33199 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33200
33201         * modules/inline (License): Use 'unlimited', since there are only
33202         *.m4 files in this module.
33203
33204 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33205             Bruno Haible  <bruno@clisp.org>
33206
33207         Add support for HP C 7.1 on OpenVMS 8.3.
33208         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
33209
33210 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33211
33212         Update VMS specifics.
33213         * lib/getopt.c [VMS]: Remove include of unixlib.h.
33214
33215 2008-03-02  Jim Meyering  <meyering@redhat.com>
33216
33217         Remove the last dependency on the "free" module.
33218         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
33219         Reported by Bob Proulx.
33220
33221         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
33222
33223         Remove useless "if" tests before free.  Deprecate "free" module.
33224         * doc/posix-functions/free.texi: Mention that this
33225         module is no longer useful.
33226         * modules/free (Notice): Say this module is obsolete.
33227         * modules/readutmp (Depends-on): Remove free.
33228         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
33229         * lib/putenv.c (putenv): Likewise.
33230         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
33231         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
33232         * tests/test-c-strcasestr.c (main): Likewise.
33233         * tests/test-c-strstr.c (main): Likewise.
33234         * tests/test-mbscasestr1.c (main): Likewise.
33235         * tests/test-mbscasestr2.c (main): Likewise.
33236         * tests/test-mbsstr1.c (main): Likewise.
33237         * tests/test-mbsstr2.c (main): Likewise.
33238         * tests/test-memmem.c (main): Likewise.
33239         * tests/test-strcasestr.c (main): Likewise.
33240         * tests/test-striconv.c (main): Likewise.
33241         * tests/test-striconveh.c (main): Likewise.
33242         * tests/test-striconveha.c (main): Likewise.
33243         * tests/test-strstr.c (main): Likewise.
33244
33245         * build-aux/git-version-gen: Adjust a comment and the Usage string.
33246
33247         bootstrap: sync from coreutils again
33248         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
33249
33250 2008-03-01  Jim Meyering  <meyering@redhat.com>
33251
33252         bootstrap: sync from coreutils
33253         * build-aux/bootstrap (update_po_files): Copy a .po file into place
33254         also when the target doesn't exist.
33255
33256 2008-03-01  Eric Blake  <ebb9@byu.net>
33257
33258         Fix bugs in last patch.
33259         * lib/memchr2.c (memchr2): Fix typo.
33260         * tests/test-memchr2.c: Test previous bug, and don't use GNU
33261         extension.
33262         Reported by Bruce Korb.
33263
33264         New module 'memchr2'.
33265         * modules/memchr2: New file.
33266         * modules/memchr2-tests: Likewise.
33267         * lib/memchr2.h: Likewise.
33268         * lib/memchr2.c: Likewise, based on memchr.c.
33269         * tests/test-memchr2.c: New test.
33270         * MODULES.html.sh (String handling): Add memchr2.
33271
33272 2008-02-29  Bruno Haible  <bruno@clisp.org>
33273
33274         * modules/freadseek-tests: New file.
33275         * tests/test-freadseek.sh: New file.
33276         * tests/test-freadseek.c: New file.
33277
33278         New module 'freadseek'.
33279         * modules/freadseek: New file.
33280         * lib/freadseek.h: New file.
33281         * lib/freadseek.c: New file.
33282         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
33283
33284 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33285
33286         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
33287         wydawca.
33288
33289         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
33290         program_invocation_name and program_invocation_short_name are
33291         present.
33292
33293 2008-02-28  Bruno Haible  <bruno@clisp.org>
33294
33295         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
33296         * tests/test-freadptr.sh: Also test non-seekable stdin.
33297
33298 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
33299
33300         * build-aux/bootstrap (source_base, m4_base)
33301         (doc_base, tests_base): New variables.
33302         (gnulib_tool_options): Do not hardcode base directories, use
33303         the above variables instead.
33304
33305 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
33306
33307         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
33308
33309 2008-02-28  Bruno Haible  <bruno@clisp.org>
33310
33311         * modules/freadptr-tests: New file.
33312         * tests/test-freadptr.sh: New file.
33313         * tests/test-freadptr.c: New file.
33314
33315         New module 'freadptr'.
33316         * modules/freadptr: New file.
33317         * lib/freadptr.h: New file.
33318         * lib/freadptr.c: New file.
33319         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
33320
33321 2008-02-26  Karl Berry  <karl@freefriends.org>
33322
33323         Sync from Libtool:
33324         * libltdl/argz.c (argz_add, argz_count): New functions.
33325         * libltdl/argz.in.h: Declare them.
33326         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
33327
33328 2008-02-22  Bruno Haible  <bruno@clisp.org>
33329
33330         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
33331         is a pointer type.  Needed for HP-UX 10.
33332         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
33333         * doc/posix-functions/gmtime_r.texi: Likewise.
33334         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33335
33336 2008-02-24  Bruno Haible  <bruno@clisp.org>
33337
33338         * modules/environ-tests: New file.
33339         * tests/test-environ.c: New file.
33340
33341         New module 'environ'.
33342         * modules/environ: New file.
33343         * lib/unistd.in.h (environ): New declaration.
33344         * m4/environ.m4: New file.
33345         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
33346         after use.
33347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
33348         HAVE_DECL_ENVIRON.
33349         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
33350         HAVE_DECL_ENVIRON.
33351         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
33352         wrong claim that 'environ' is missing on some systems.
33353         * modules/execute (Depends-on): Add environ.
33354         * lib/execute.c (environ): Remove fallback declaration.
33355         * modules/pipe (Depends-on): Add environ.
33356         * lib/pipe.c (environ): Remove fallback declaration.
33357         * modules/setenv (Depends-on): Add environ.
33358         * lib/setenv.c (environ): Remove fallback declaration.
33359         * modules/unsetenv (Depends-on): Add environ.
33360         * lib/unsetenv.c (environ): Remove fallback declaration.
33361         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
33362         m4/environ.m4.
33363         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
33364         (gl_PREREQ_UNSETENV): Likewise.
33365
33366 2008-02-24  Bruno Haible  <bruno@clisp.org>
33367
33368         * doc/posix-functions/environ.texi: Document the MacOS X problem.
33369
33370 2008-02-20  Bob Proulx  <bob@proulx.com>
33371
33372         Enable use of older two part flavor 'git describe'.
33373         * build-aux/git-version-gen: If using the older two part flavor of
33374         git version then recreate the third part now present in the
33375         newer three part flavor of git describe.
33376
33377 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
33378
33379         * lib/fts.c (fts_build): Typo correction to comment.
33380
33381 2008-02-17  Bruno Haible  <bruno@clisp.org>
33382
33383         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
33384         generating no-op conflicts.
33385
33386 2008-02-17  Bruno Haible  <bruno@clisp.org>
33387
33388         Speed up by 10%.
33389         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
33390         result_entries, rather than an index-based loop.
33391
33392 2008-02-17  Bruno Haible  <bruno@clisp.org>
33393
33394         Speed up by 25%.
33395         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
33396         'hashcode_cached'.
33397         (entry_create): New function.
33398         (entry_hashcode): Use the cached hashcode if possible.
33399         (read_changelog_file, try_split_merged_entry): Use entry_create.
33400
33401 2008-02-17  Bruno Haible  <bruno@clisp.org>
33402
33403         Speed up from O(n^2) to O(n) for long ChangeLog files.
33404         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
33405         (read_changelog_file): Change implementation of entries_reversed list
33406         to rbtreehash.
33407         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
33408
33409 2008-02-17  Bruno Haible  <bruno@clisp.org>
33410
33411         New option --split-merged-entry.
33412         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
33413         (find_paragraph_end, try_split_merged_entry): New functions.
33414         (long_options): Add option --split-merged-entry.
33415         (usage): Document option --split-merged-entry.
33416         (main): Implement option --split-merged-entry.
33417         Reported by Eric Blake.
33418
33419 2008-02-17  Bruno Haible  <bruno@clisp.org>
33420
33421         * lib/git-merge-changelog.c: Include c-strstr.h.
33422         (main): Support the "git pull --rebase" situation.
33423         * modules/git-merge-changelog (Depends-on): Add c-strstr.
33424         Reported by Eric Blake.
33425
33426 2008-02-16  Eric Blake  <ebb9@byu.net>
33427
33428         Avoid doubling \ in common case of "c-maybe" quoting style.
33429         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
33430         eliding outer quotes.
33431         * lib/quotearg.h: Document this.
33432         * tests/test-quotearg.c (result_strings, inputs, results_g)
33433         (flag_results, locale_results): Test it by adding a new string to
33434         each test group.
33435         (compare_strings): Test new string.
33436
33437 2008-02-13  Eric Blake  <ebb9@byu.net>
33438
33439         Avoid trigraph quoting in default output.
33440         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
33441         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
33442         unless explicitly requested.
33443         * tests/test-quotearg.c (flag_results, main): Add additional tests.
33444
33445 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
33446
33447         Don't rely on signed integer overflowing to negative value.
33448         * lib/getugroups.c (getugroups): Include <limits.h>.
33449         Instead, compare against INT_MAX, and increment only if the test passes.
33450
33451 2008-02-13  Jim Meyering  <meyering@redhat.com>
33452         and Eric Blake  <ebb9@byu.net>
33453
33454         Avoid shadowing warning and compile errors on Linux.
33455         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
33456         forwarding macros on Linux.
33457         (dcgettext): Define a stub, for Linux.
33458         (results_g, main): Avoid warnings.
33459
33460 2008-02-12  Eric Blake  <ebb9@byu.net>
33461
33462         Silence warning in last patch.
33463         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
33464
33465         Quotearg part 4: add tests, fix c-maybe colon quoting.
33466         * lib/quotearg.h: Improve documentation.
33467         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
33468         escapes when adding outer quotes.  When quoting trigraphs, use
33469         valid C notation.  When quoting NUL, omit extra characters if next
33470         character is not digit.  Alter prototype.
33471         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
33472         callers.
33473         * modules/quotearg-tests: New module.
33474         * tests/test-quotearg.c: New test.
33475
33476 2008-02-07  Eric Blake  <ebb9@byu.net>
33477
33478         Quotearg part 3: add flag to control outer quote elision.
33479         * lib/quotearg.h (c_maybe_quoting_style): New style.
33480         (enum quoting_flags): Better documentation of flags.
33481         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
33482         c-maybe style.
33483         (quotearg_buffer_restyled): Handle new flag to elide outer
33484         quotes.
33485
33486         Quotearg part 2: add flag that can control NUL elision.
33487         * lib/quotearg.h (set_quoting_flags): New prototype.
33488         * lib/quotearg.c (struct quoting_options): Add flag field.
33489         (set_quoting_flags): New function.
33490         (quotearg_buffer_restyled): Add flags parameter.
33491         (quotearg_alloc_mem): Set the flag if length cannot be returned.
33492         (quotearg_n_options): Set the flag, since length cannot be
33493         returned.
33494         (quoting_options_from_style): Default flags correctly.
33495
33496         Quotearg part 1: more wrappers, restore quotearg_char state.
33497         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
33498         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
33499         (quotearg_colon_mem): New wrappers.
33500         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
33501         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
33502         functions.
33503         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
33504         (quotearg_colon_mem): New functions.
33505
33506 2008-02-11  Bruno Haible  <bruno@clisp.org>
33507
33508         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
33509         library in the current directory: it does not work with parallel make.
33510         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33511
33512 2008-02-11  Bruno Haible  <bruno@clisp.org>
33513
33514         * .gitattributes: New file.
33515
33516 2008-02-11  Jim Meyering  <meyering@redhat.com>
33517
33518         useless-if-before-free: Fix reversed exit values.
33519         * build-aux/useless-if-before-free: Use correct values
33520         for EXIT_MATCH and EXIT_NO_MATCH.
33521
33522         * build-aux/useless-if-before-free: Close stdout carefully.
33523
33524 2008-02-10  Bruno Haible  <bruno@clisp.org>
33525
33526         New module 'git-merge-changelog'.
33527         * modules/git-merge-changelog: New file.
33528         * lib/git-merge-changelog.c: New file.
33529
33530 2008-02-10  Jim Meyering  <meyering@redhat.com>
33531
33532         useless-if-before-free: New option: --list (-l).
33533
33534         useless-if-before-free: Don't exit immediately upon open failure.
33535         * build-aux/useless-if-before-free: Exit 2 for errors.
33536         Upon failure to open a file, don't exit immediately.
33537         Rather, just warn and continue with any remaining files.
33538
33539 2008-02-10  Bruno Haible  <bruno@clisp.org>
33540
33541         New abstract list operation 'node_set_value'.
33542         * lib/gl_list.h (gl_list_node_set_value): New function.
33543         (struct gl_list_implementation): New field node_set_value.
33544         * lib/gl_list.c (gl_list_node_set_value): New function.
33545         * lib/gl_array_list.c (gl_array_node_set_value): New function.
33546         (gl_array_list_implementation): Update.
33547         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
33548         (gl_carray_list_implementation): Update.
33549         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
33550         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33551         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33552         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
33553         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33554         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33555         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33556         Update.
33557         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
33558         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
33559         (gl_sublist_list_implementation): Update.
33560
33561 2008-02-10  Bruno Haible  <bruno@clisp.org>
33562
33563         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
33564         Needed when ELEMENT is #defined to 'some_type *'.
33565
33566 2008-02-10  Jim Meyering  <meyering@redhat.com>
33567
33568         New script and module: useless-if-before-free
33569         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
33570         * build-aux/useless-if-before-free: New file.
33571         * modules/useless-if-before-free: New file.
33572
33573         * build-aux/gitlog-to-changelog: Use committer date, not author date.
33574
33575         xstrtol_error: Fix typo.
33576         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
33577         s/exit_failure/exit_status/.
33578
33579 2008-02-09  Jim Meyering  <meyering@redhat.com>
33580
33581         New script and module: gitlog-to-changelog
33582         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
33583         * modules/gitlog-to-changelog: New file.
33584         * build-aux/gitlog-to-changelog: New file.
33585
33586 2008-02-08  Jim Meyering  <meyering@redhat.com>
33587
33588         Avoid two "parameter unused" warnings.
33589         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
33590         Mark "st" as used.
33591
33592         Use "git COMMAND", not "git-COMMAND".
33593         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
33594         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
33595         * build-aux/git-version-gen: Use "git status", not "git-status".
33596
33597 2008-02-07  Bruno Haible  <bruno@clisp.org>
33598
33599         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
33600         Avoids a crash on Windows Vista.
33601         Reported by Adam Strzelecki <ono@java.pl> via
33602         Simon Josefsson <simon@josefsson.org>.
33603
33604 2008-02-06  Bruno Haible  <bruno@clisp.org>
33605
33606         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
33607         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
33608         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
33609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
33610         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33611         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33612         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
33613         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
33614         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33615         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33616         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33617         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33618         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33619         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33620         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33621         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
33622         left-adjust flag.
33623         * tests/test-snprintf-posix.h (test_function): Likewise.
33624         * tests/test-sprintf-posix.h (test_function): Likewise.
33625         * tests/test-vasprintf-posix.c (test_function): Likewise.
33626         * doc/posix-functions/fprintf.texi: Update.
33627         * doc/posix-functions/printf.texi: Update.
33628         * doc/posix-functions/snprintf.texi: Update.
33629         * doc/posix-functions/sprintf.texi: Update.
33630         * doc/posix-functions/vfprintf.texi: Update.
33631         * doc/posix-functions/vprintf.texi: Update.
33632         * doc/posix-functions/vsnprintf.texi: Update.
33633         * doc/posix-functions/vsprintf.texi: Update.
33634         Reported by Peter Fales <psfales@alcatel-lucent.com>.
33635
33636 2008-02-06  Bruno Haible  <bruno@clisp.org>
33637
33638         Fix bug introduced on 2008-01-26.
33639         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
33640
33641 2008-02-06  Bruno Haible  <bruno@clisp.org>
33642
33643         Fix bug introduced on 2007-06-10.
33644         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
33645         !NEED_PRINTF_FLAG_ZERO.
33646
33647 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
33648
33649         getloadavg: use libperfstat on AIX5
33650         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
33651
33652 2008-02-03  Bruno Haible  <bruno@clisp.org>
33653
33654         * lib/diffseq.h: Add comments about required #includes.
33655         Reported by Michael Biggs <gnulib@doubleplum.net>.
33656
33657 2008-02-01  Bruno Haible  <bruno@clisp.org>
33658
33659         * users.txt: Add gnuit.
33660
33661 2008-01-31  Bruno Haible  <bruno@clisp.org>
33662
33663         * lib/md4.c (set_uint32): Mark as inline.
33664         * lib/md5.c (set_uint32): Likewise.
33665         * lib/sha1.c (set_uint32): Likewise.
33666         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
33667         * m4/md5.m4 (gl_MD5): Likewise.
33668         * m4/sha1.m4 (gl_SHA1): Likewise.
33669
33670 2008-01-31  Jim Meyering  <meyering@redhat.com>
33671
33672         Use "sizeof VAR", rather than a literal "4".
33673         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
33674         * lib/md4.c (md4_read_ctx): Likewise.
33675         * lib/sha1.c (sha1_read_ctx): Likewise.
33676
33677 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33678
33679         * tests/test-sha1.c: New file, based on test-md5.c.
33680
33681         * modules/crypto/sha1-tests: New file.
33682
33683 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33684
33685         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
33686
33687 2008-01-31  Jim Meyering  <meyering@redhat.com>
33688
33689         Prefer "sizeof v" over the equivalent "4".
33690         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
33691         * lib/md5.c (set_uint32): Likewise.
33692         * lib/sha1.c (set_uint32): Likewise.
33693
33694 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33695
33696         * lib/sha1.c (set_uint32): Mark function as static.
33697
33698 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33699
33700         md2: clarify comments to say that alignment is not required.
33701         * lib/md2.h: Remove warning about alignment in comment.
33702         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
33703         never been required.
33704
33705 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33706
33707         md4: adapt alignment constraint fix from sha1.
33708         * lib/md4.c (set_uint32): New function, from sha1.c
33709         (md4_read_ctx): Use it.
33710         (md4_finish_ctx): Doc fix.
33711         * lib/md4.h: Doc fix.
33712
33713 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33714
33715         md5: adapt alignment constraint fix from sha1.
33716         * lib/md5.c (set_uint32): New function, from sha1.c
33717         (md5_read_ctx): Use it.
33718         (md5_finish_ctx): Doc fix.
33719         * lib/md5.h: Doc fix.
33720
33721 2008-01-30  Peter Palfrader  <weasel@debian.org>
33722
33723         sha1: remove the result buffer alignment constraint
33724         * lib/sha1.c (set_uint32): New function.
33725         (sha1_read_ctx): Rewrite to remove the result buffer alignment
33726         constraint.
33727         (sha1_finish_ctx): Remove comment warning about alignment constraint.
33728         * lib/sha1.h: Likewise.
33729
33730 2008-01-30  Andreas Schwab  <schwab@suse.de>
33731             Bruno Haible  <bruno@clisp.org>
33732
33733         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
33734         correct definition of LDBL_MIN_EXP.
33735
33736 2008-01-30  Karl Berry  <karl@gnu.org>
33737
33738         * config/srclist-update: try to preserve x bit on updates.
33739         * config/srclistvars.sh: update for karl.
33740
33741 2008-01-29  Jim Meyering  <meyering@redhat.com>
33742
33743         vasnprintf.c: Avoid warning about unused label
33744         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
33745         "overflow" label definition and associated code with the
33746         same cpp condition that guards the sole use of that label.
33747
33748 2008-01-26  Bruno Haible  <bruno@clisp.org>
33749
33750         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
33751         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
33752         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
33753         * lib/isnanl-nolibm.h (isnanl): Likewise.
33754         Reported by Paul Eggert <eggert@cs.ucla.edu>.
33755
33756 2008-01-26  Bruno Haible  <bruno@clisp.org>
33757
33758         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
33759         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
33760
33761 2008-01-26  Bruno Haible  <bruno@clisp.org>
33762
33763         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
33764         GCC >= 4.0 built-in.
33765         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
33766
33767 2008-01-26  Bruno Haible  <bruno@clisp.org>
33768
33769         Rename isnan, applicable to 'double' only, to isnand.
33770         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
33771         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
33772         (configure.ac): Update.
33773         (Include): Replace "isnan.h" with "isnand.h".
33774         * m4/isnand.m4: Renamed from m4/isnan.m4.
33775         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
33776         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
33777         instead of isnan.c.
33778         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
33779         instead of HAVE_ISNAN_IN_LIBC.
33780         (isnand): Renamed from isnan.
33781         * lib/isnand.c: New file.
33782         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
33783         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
33784         (Makefile.am): Update.
33785         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
33786         Include isnand.h instead of isnan.h.
33787         (main): Test isnand instead of isnan.
33788         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
33789         isnan-nolibm.
33790         * modules/frexp (Depends-on): Likewise.
33791         * modules/frexp-tests (Depends-on): Likewise.
33792         * modules/frexp-nolibm (Depends-on): Likewise.
33793         * modules/frexp-nolibm-tests (Depends-on): Likewise.
33794         * modules/isfinite (Depends-on): Likewise.
33795         * modules/round-tests (Depends-on): Likewise.
33796         * modules/signbit (Depends-on): Likewise.
33797         * modules/signbit-tests (Depends-on): Likewise.
33798         * modules/snprintf-posix (Depends-on): Likewise.
33799         * modules/sprintf-posix (Depends-on): Likewise.
33800         * modules/trunc-tests (Depends-on): Likewise.
33801         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33802         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33803         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33804         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33805         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33806         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33807         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33808         * modules/vasnprintf-posix (Depends-on): Likewise.
33809         * modules/vasprintf-posix (Depends-on): Likewise.
33810         * modules/vfprintf-posix (Depends-on): Likewise.
33811         * modules/vsnprintf-posix (Depends-on): Likewise.
33812         * modules/vsprintf-posix (Depends-on): Likewise.
33813         * lib/frexp.c: Include isnand.h instead of isnan.h.
33814         (ISNAN): Set to isnand instead of isnan.
33815         * lib/isfinite.c: Include isnand.h instead of isnan.h.
33816         (gl_isfinited): Use isnand instead of isnan.
33817         * lib/signbitd.c: Include isnand.h instead of isnan.h.
33818         (gl_signbitd): Use isnand instead of isnan.
33819         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
33820         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
33821         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
33822         (main): Use isnand instead of isnan.
33823         * tests/test-round1.c: Include isnand.h.
33824         (main): Use isnand instead of isnan.
33825         * tests/test-round2.c: Include isnand.h instead of isnan.h.
33826         (ISNAN): Set to isnand instead of isnan.
33827         * tests/test-trunc1.c: Include isnand.h.
33828         (main): Use isnand instead of isnan.
33829         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
33830         (equal): Use isnand instead of isnan.
33831         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
33832         isnand-nolibm.
33833         * NEWS: Mention the change.
33834
33835 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33836             Bruno Haible  <bruno@clisp.org>
33837
33838         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
33839         the GCC builtins for signbits are present and set
33840         REPLACE_SIGNBIT_USING_GCC if so.
33841         * lib/math.in.h (signbit): Define using GCC builtins if
33842         REPLACE_SIGNBIT_USING_GCC is set.
33843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
33844         REPLACE_SIGNBIT_USING_GCC.
33845         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
33846
33847 2008-01-25  Jim Meyering  <meyering@redhat.com>
33848
33849         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
33850         * lib/poll.c: Include <config.h>, not "config.h".
33851         * tests/test-getaddrinfo.c: Likewise.
33852
33853 2008-01-25  Simon Josefsson  <simon@josefsson.org>
33854
33855         * modules/sockets-tests: New file.
33856
33857 2008-01-24  Simon Josefsson  <simon@josefsson.org>
33858
33859         * modules/sockets: New module, can be used to call WSA_Startup and
33860         WSA_Cleanup when needed.
33861
33862         * lib/sockets.h, lib/sockets.c: New files.
33863
33864         * m4/sockets.m4: New file.
33865
33866         * tests/test-sockets.c: New file.
33867
33868 2008-01-19  Bruno Haible  <bruno@clisp.org>
33869
33870         * doc/posix-headers: Renamed from doc/headers.
33871         * doc/posix-functions: Renamed from doc/functions.
33872         * doc/gnulib.texi: Update.
33873
33874 2008-01-19  Bruno Haible  <bruno@clisp.org>
33875
33876         * doc/glibc-functions/strcasestr.texi: Include contents of
33877         doc/functions/strcasestr.texi, fixing the list of platforms.
33878         * doc/functions/strcasestr.texi: Remove file.
33879
33880 2008-01-19  Bruno Haible  <bruno@clisp.org>
33881
33882         * doc/glibc-functions/memmem.texi: Include contents of
33883         doc/functions/memmem.texi.
33884         * doc/functions/memmem.texi: Remove file.
33885
33886 2008-01-18  Bruno Haible  <bruno@clisp.org>
33887
33888         * doc/glibc-functions/*.texi: New files.
33889         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
33890         to use the new files.
33891
33892 2008-01-17  Bruno Haible  <bruno@clisp.org>
33893
33894         * tests/test-gethostname.c (main): Fix printf statement.
33895
33896 2008-01-17  Simon Josefsson  <simon@josefsson.org>
33897
33898         * modules/gethostname-tests: New file.
33899
33900         * tests/test-gethostname.c: New file.
33901
33902 2008-01-17  Simon Josefsson  <simon@josefsson.org>
33903
33904         * lib/gethostname.c: Include string.h unconditionally, strncpy is
33905         used by the UNAME case.  Reported by Bruno Haible
33906         <bruno@clisp.org>.
33907
33908 2008-01-17  Eric Blake  <ebb9@byu.net>
33909
33910         Convert c-strcasestr to be more efficient.
33911         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
33912         (Depends-on): Add c-strcase, remove malloca, strnlen.
33913         * tests/test-c-strcasestr.c (main): Enhance test.
33914         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
33915
33916 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
33917
33918         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
33919         Use it in creating po/Makevars.
33920
33921 2008-01-15  Simon Josefsson  <simon@josefsson.org>
33922
33923         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
33924         Applications that requires it should initialize libgcrypt
33925         manually.
33926
33927 2008-01-16  Simon Josefsson  <simon@josefsson.org>
33928
33929         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
33930
33931 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
33932
33933         Fix problem with getdate on mingw32 reported by Simon Josefsson
33934         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
33935         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
33936         tzname", when deciding whether to declare tzname.
33937         * lib/strftime.c (tzname): Likewise.
33938
33939 2008-01-15  Bruno Haible  <bruno@clisp.org>
33940
33941         Work around a MacOS X 10.5 bug in frexpl().
33942         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
33943         * doc/functions/frexpl.texi: Document the bug.
33944         Reported by Elias Pipping <pipping@gentoo.org>.
33945
33946 2008-01-14  Eric Blake  <ebb9@byu.net>
33947
33948         Touch up previous patch.
33949         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
33950         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
33951
33952         Convert strcasestr module to use Two-Way algorithm.
33953         * modules/strcasestr-simple: New module, based on the old
33954         strcasestr, but with Two-Way rather than KMP.
33955         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
33956         * lib/string.in.h (rpl_strcasestr): Declare.
33957         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
33958         performance.
33959         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
33960         * modules/string (Makefile.am): Support strcasestr.
33961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
33962         * modules/strcasestr-tests (Depends-on): Check for alarm.
33963         * tests/test-strcasestr.c: Augment test.
33964         * lib/str-two-way.h: Clean up stray macro.
33965         * NEWS: Document new module.
33966         * MODULES.html.sh (string handling): Likewise.
33967         * doc/functions/strcasestr.texi: New file.
33968         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
33969         here, since it is not a POSIX function.
33970
33971 2008-01-14  Colin Watson  <cjwatson@debian.org>
33972             Bruno Haible  <bruno@clisp.org>
33973
33974         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
33975         works fine; if not, set REPLACE_STRSIGNAL.
33976         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
33977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33978         REPLACE_STRSIGNAL.
33979         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
33980         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
33981         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
33982
33983 2008-01-14  Bruno Haible  <bruno@clisp.org>
33984
33985         * modules/strsignal (Include): Change to <string.h>.
33986
33987 2008-01-14  Colin Watson  <cjwatson@debian.org>
33988
33989         * modules/argp (Notice): Add a notice recommending to change
33990         XGETTEXT_OPTIONS.
33991         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
33992
33993 2008-01-13  Colin Watson  <cjwatson@debian.org>
33994
33995         * modules/strsignal-tests: New file.
33996         * tests/test-strsignal.c: New file.
33997
33998         * lib/strsignal.c: New file, from glibc with modifications.
33999         * lib/siglist.h: New file, from glibc with modifications.
34000         * lib/string.in.h (strsignal): New declaration.
34001         * m4/strsignal.m4: New file.
34002         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34003         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
34004         * modules/strsignal: New file.
34005         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
34006         HAVE_DECL_STRSIGNAL.
34007
34008 2008-01-13  Bruno Haible  <bruno@clisp.org>
34009
34010         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
34011         locale encoding is not ASCII. Needed for OpenBSD 4.0.
34012         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
34013         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34014
34015 2008-01-13  Bruno Haible  <bruno@clisp.org>
34016
34017         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
34018         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
34019         * lib/argp.h (__attribute__): Likewise.
34020         * lib/c-stack.c (__attribute__): Likewise.
34021         * lib/error.h (__attribute__): Likewise.
34022         * lib/fts.c (__attribute__): Likewise.
34023         * lib/openat.h (__attribute__): Likewise.
34024         * lib/stdio.in.h (__attribute__): Likewise.
34025         * lib/string.in.h (__attribute__): Likewise.
34026         * lib/utimens.c (__attribute__): Likewise.
34027         * lib/vasnprintf.h (__attribute__): Likewise.
34028         * lib/xalloc.h (__attribute__): Likewise.
34029         * lib/xprintf.h (__attribute__): Likewise.
34030         * lib/xstrtol.h (__attribute__): Likewise.
34031         * lib/xvasprintf.h (__attribute__): Likewise.
34032
34033 2008-01-12  Bruno Haible  <bruno@clisp.org>
34034
34035         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
34036         * doc/glibc-headers/a.out.texi: New file.
34037         * doc/glibc-headers/aliases.texi: New file.
34038         * doc/glibc-headers/alloca.texi: New file.
34039         * doc/glibc-headers/ar.texi: New file.
34040         * doc/glibc-headers/argp.texi: New file.
34041         * doc/glibc-headers/argz.texi: New file.
34042         * doc/glibc-headers/byteswap.texi: New file.
34043         * doc/glibc-headers/crypt.texi: New file.
34044         * doc/glibc-headers/endian.texi: New file.
34045         * doc/glibc-headers/envz.texi: New file.
34046         * doc/glibc-headers/err.texi: New file.
34047         * doc/glibc-headers/error.texi: New file.
34048         * doc/glibc-headers/execinfo.texi: New file.
34049         * doc/glibc-headers/fpu_control.texi: New file.
34050         * doc/glibc-headers/fstab.texi: New file.
34051         * doc/glibc-headers/fts.texi: New file.
34052         * doc/glibc-headers/getopt.texi: New file.
34053         * doc/glibc-headers/ieee754.texi: New file.
34054         * doc/glibc-headers/ifaddrs.texi: New file.
34055         * doc/glibc-headers/libintl.texi: New file.
34056         * doc/glibc-headers/mcheck.texi: New file.
34057         * doc/glibc-headers/mntent.texi: New file.
34058         * doc/glibc-headers/obstack.texi: New file.
34059         * doc/glibc-headers/paths.texi: New file.
34060         * doc/glibc-headers/printf.texi: New file.
34061         * doc/glibc-headers/pty.texi: New file.
34062         * doc/glibc-headers/resolv.texi: New file.
34063         * doc/glibc-headers/shadow.texi: New file.
34064         * doc/glibc-headers/sysexits.texi: New file.
34065         * doc/glibc-headers/ttyent.texi: New file.
34066
34067 2008-01-12  Jim Meyering  <meyering@redhat.com>
34068
34069         announce-gen: emit Gnulib's git-based version string.
34070         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
34071         New option --gnulib-version=V, where V is expected to be
34072         the output of running git describe in the gnulib directory.
34073         (get_tool_versions): Request feedback on xdelta.  I suspect it's
34074         not useful, and plan to stop publishing an xdelta file with each
34075         coreutils release.
34076
34077         * build-aux/announce-gen: Also check for lzma-compressed files.
34078
34079 2008-01-11  Bruno Haible  <bruno@clisp.org>
34080
34081         * tests/test-memmem.c (main): Increase maximum allowed time.
34082         * tests/test-strstr.c (main): Likewise.
34083
34084 2008-01-11  Bruno Haible  <bruno@clisp.org>
34085
34086         * doc/functions/memmem.texi: Add more precisions about platforms.
34087         * doc/functions/strstr.texi: Likewise.
34088
34089 2008-01-10  Eric Blake  <ebb9@byu.net>
34090
34091         * m4/strstr.m4: Delete cruft from copy-n-paste.
34092         Reported by Bruno Haible.
34093
34094 2008-01-10  Bruno Haible  <bruno@clisp.org>
34095
34096         Make c-strstr rely on strstr.
34097         * lib/c-strstr.c: Don't include str-kmp.h.
34098         (c_strstr): Define in terms of strstr.
34099         * modules/c-strstr (Files): Remove lib/str-kmp.h.
34100         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
34101
34102 2008-01-10  Bruno Haible  <bruno@clisp.org>
34103
34104         * doc/gnulib.texi (String Functions in C Locale): New section.
34105         * doc/c-ctype.texi: New file.
34106         * doc/c-strcase.texi: New file.
34107         * doc/c-strcaseeq.texi: New file.
34108         * doc/c-strcasestr.texi: New file.
34109         * doc/c-strstr.texi: New file.
34110         * doc/c-strtod.texi: New file.
34111         * doc/c-strtold.texi: New file.
34112
34113 2008-01-10  Eric Blake  <ebb9@byu.net>
34114
34115         * lib/relocatable.h: Fix a comment.
34116
34117 2008-01-10  Eric Blake  <ebb9@byu.net>
34118
34119         Share two-way algorithm.
34120         * lib/str-two-way.h: New file, merged from...
34121         * lib/memmem.c: ...here...
34122         * lib/strstr.c: ...and here.
34123         * modules/memmem (Files): Use it.
34124         * modules/strstr (Files): Likewise.
34125
34126         Avoid quadratic strstr implementations.
34127         * lib/strstr.c: New file.
34128         * m4/strstr.m4: Likewise.
34129         * modules/strstr: Likewise.
34130         * modules/strstr-tests: Likewise.
34131         * tests/test-strstr.c: Likewise.
34132         * lib/string.in.h (rpl_strstr): Declare.
34133         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
34134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
34135         * modules/string (Makefile.am): Likewise.
34136         * MODULES.html.sh (string handling): Mention new module.
34137         * doc/functions/strstr.texi (strstr): Document the bug.
34138
34139 2008-01-10  Bruno Haible  <bruno@clisp.org>
34140
34141         * lib/relocatable.h (relocate): State whether result is freshly
34142         allocated or not.
34143         * lib/relocatable.c (relocate): Return a freshly allocated string
34144         instead of a pointer to a privately held string.
34145         Reported by Sylvain Beucler <beuc@gnu.org>.
34146
34147 2008-01-10  Colin Watson  <cjwatson@debian.org>
34148
34149         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
34150         s/S_ISNLK/S_ISLNK/.
34151
34152 2008-01-09  Bruno Haible  <bruno@clisp.org>
34153
34154         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
34155         and other files.
34156         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
34157         if it's only a guess.
34158         * modules/memmem: Simplify by depending on memmem-simple.
34159
34160 2008-01-09  Bruno Haible  <bruno@clisp.org>
34161
34162         Work around OpenBSD 4.0 tdelete() bug.
34163         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
34164         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
34165         macros and don't redefine the enum values.
34166         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
34167         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
34168         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
34169
34170 2008-01-09  Bruno Haible  <bruno@clisp.org>
34171
34172         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
34173         (main): Don't perform the tests if setlocale did not install a UTF-8
34174         locale. Needed on OpenBSD 4.0.
34175         * modules/wcwidth-tests (Depends-on): Add localcharset.
34176
34177 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34178
34179         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
34180         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
34181         * NEWS: announce this.
34182         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
34183
34184 2008-01-09  Simon Josefsson  <simon@josefsson.org>
34185         and Eric Blake  <ebb9@byu.net>
34186
34187         Add memmem-simple module.
34188         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
34189         (gl_FUNC_MEMMEM): Separate performance from presence checks.
34190         * modules/memmem-simple: New file.
34191         * modules/memmem (Description): Tweak.
34192         * MODULES.html.sh (string handling): Mention new module.
34193         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
34194         addressed by memmem-simple.
34195         * NEWS: Document the difference.
34196
34197 2008-01-09  Eric Blake  <ebb9@byu.net>
34198
34199         Give gcc some memmem optimization hints.
34200         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
34201         (strcasestr): Declare as pure.
34202         * modules/memmem (Maintainer): Claim my implementation.
34203
34204 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34205
34206         Support AIX 6.1 and higher.
34207         * build-aux/config.libpath: Likewise.
34208         * build-aux/config.rpath: Likewise.
34209
34210 2008-01-08  Jim Meyering  <meyering@redhat.com>
34211             Bruno Haible  <bruno@clisp.org>
34212
34213         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
34214         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
34215         Reported by Peter Fales in
34216         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
34217
34218 2008-01-08  Bruno Haible  <bruno@clisp.org>
34219
34220         * modules/unictype/category-of (Depends-on): Add
34221         unictype/category-none.
34222         * modules/unictype/category-and-tests (Depends-on): Add
34223         unictype/category-{L,N,Lu,Nd}.
34224         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
34225         * modules/unictype/category-or-tests (Depends-on): Add
34226         unictype/category-{L,N}.
34227         * modules/unictype/category-name-tests (Depends-on): Add
34228         unictype/category-{Z,Nl}.
34229         Reported by Simon Josefsson.
34230
34231 2008-01-08  Bruno Haible  <bruno@clisp.org>
34232
34233         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
34234         convention better.
34235         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
34236         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
34237         Reported by Peter Miller <millerp@canb.auug.org.au>.
34238
34239 2008-01-08  Eric Blake  <ebb9@byu.net>
34240
34241         Rewrite memmem to guarantee linear complexity without malloc.
34242         * lib/memmem.c (memmem): Use Two-Way rather than
34243         Knuth-Morris-Pratt, to allow O(1) space usage.
34244         (critical_factorization, two_way_short_needle)
34245         (two_way_long_needle): New functions.
34246         (knuth_morris_pratt): Delete.
34247         * modules/memmem (Depends-on): No longer need malloca or stdbool.
34248         Add stdint.
34249         * tests/test-memmem.c (main): Add tests for periodic needle and
34250         sublinear performance.
34251         * doc/functions/memmem.texi (memmem): Document other deficiencies
34252         in cygwin and older glibc.
34253
34254 2008-01-08  Bruno Haible  <bruno@clisp.org>
34255
34256         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
34257         augmentation.
34258
34259 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
34260
34261         Add a configure time option: --disable-acl.
34262         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
34263         AC_ARG_ENABLE(acl).
34264
34265 2008-01-06  Simon Josefsson  <simon@josefsson.org>
34266
34267         * tests/test-localename.c: Don't include obsolete "setenv.h".
34268
34269         * modules/localename-tests (Depends-on): Need unsetenv.
34270
34271 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34272
34273         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
34274
34275 2008-01-06  Colin Watson  <cjwatson@debian.org>
34276
34277         * users.txt: Add man-db.
34278
34279 2008-01-07  Bruno Haible  <bruno@clisp.org>
34280
34281         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
34282         previous section name.
34283
34284 2008-01-07  Bruno Haible  <bruno@clisp.org>
34285
34286         * lib/progname.c (set_program_name): Don't strip off a leading
34287         "lt-" prefix outside a .libs directory.
34288         Suggested by Paul Eggert.
34289
34290 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
34291             Bruno Haible  <bruno@clisp.org>
34292
34293         Improve memory cleanup in 'relocatable' module.
34294         * lib/relocatable.h (compute_curr_prefix): Change return type to
34295         'char *'.
34296         * lib/relocatable.c (compute_curr_prefix): Change return type to
34297         'char *'. Free curr_installdir after use.
34298         (relocate): Free curr_prefix_better after use.
34299         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
34300
34301 2008-01-01  Bruno Haible  <bruno@clisp.org>
34302
34303         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
34304         failure on older glibc systems.
34305         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34306
34307 2008-01-05  Eric Blake  <ebb9@byu.net>
34308
34309         Avoid quadratic system memmem.
34310         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
34311         Reported by Ralf Wildenhues.
34312
34313         Fix memmem test for mingw.
34314         * modules/memmem-tests (configure.ac): Check for alarm.
34315         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
34316         it.
34317         * doc/functions/memmem.texi: New file.
34318         * doc/gnulib.texi (Function Substitutes): Add memmem.
34319         Reported by Bruno Haible.
34320
34321 2008-01-04  Bruno Haible  <bruno@clisp.org>
34322
34323         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
34324         Require gl_HEADER_STRINGS_H_DEFAULTS, not
34325         gl_HEADER_STRING_H_DEFAULTS.
34326
34327 2008-01-04  Eric Blake  <ebb9@byu.net>
34328
34329         Shorten duration of memmem test.
34330         * tests/test-memmem.c (main): Use alarm to declare failure if test
34331         is taking too long.
34332         Reported by Ralf Wildenhues.
34333
34334 2007-12-21  Simon Josefsson  <simon@josefsson.org>
34335
34336         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
34337         string, needed by strerror.
34338
34339 2008-01-03  Colin Watson  <cjwatson@debian.org>
34340             Bruno Haible  <bruno@clisp.org>
34341
34342         * doc/gnulib-tool.texi (Localization): New section.
34343
34344 2008-01-02  Bruno Haible  <bruno@clisp.org>
34345
34346         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
34347         variables to 'unsigned char *' type.
34348         Reported by Paul Eggert.
34349
34350 2008-01-02  Jim Meyering  <jim@meyering.net>
34351
34352         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
34353
34354 2007-12-31  Jim Meyering  <jim@meyering.net>
34355
34356         Avoid use of private FTS type name.
34357         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
34358
34359 2007-12-30  Karl Berry  <karl@gnu.org>
34360
34361         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
34362         work around defect in Texinfo and/or the standalone Info browser.
34363
34364 2007-12-30  Bruno Haible  <bruno@clisp.org>
34365
34366         Unify 5 copies of the KMP code.
34367         * lib/str-kmp.h: New file.
34368         * lib/c-strcasestr.c: Include str-kmp.h.
34369         (knuth_morris_pratt): Remove function.
34370         (c_strcasestr): Update.
34371         * lib/c-strstr.c: Include str-kmp.h.
34372         (knuth_morris_pratt): Remove function.
34373         (c_strcasestr): Update.
34374         * lib/mbscasestr.c: Include str-kmp.h.
34375         (knuth_morris_pratt_unibyte): Remove function.
34376         * lib/mbsstr.c: Include str-kmp.h.
34377         (knuth_morris_pratt_unibyte): Remove function.
34378         * lib/strcasestr.c: Include str-kmp.h.
34379         (knuth_morris_pratt): Remove function.
34380         (strcasestr): Update.
34381         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
34382         * modules/c-strstr (Files): Likewise.
34383         * modules/mbscasestr (Files): Likewise.
34384         * modules/mbsstr (Files): Likewise.
34385         * modules/strcasestr (Files): Likewise.
34386         Suggested by Paul Eggert.
34387
34388 2007-12-30  Bruno Haible  <bruno@clisp.org>
34389
34390         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
34391         defined.
34392
34393 2007-12-30  Bruno Haible  <bruno@clisp.org>
34394
34395         * lib/xmalloca.h: Include xalloc.h.
34396         (xnmalloca): New macro.
34397
34398 2007-12-30  Bruno Haible  <bruno@clisp.org>
34399
34400         * lib/malloca.h (nmalloca): New macro.
34401         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
34402         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
34403         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
34404         knuth_morris_pratt_multibyte): Likewise.
34405         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
34406         knuth_morris_pratt_multibyte): Likewise.
34407         * lib/memmem.c (knuth_morris_pratt): Likewise.
34408         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
34409
34410 2007-12-25  Bruno Haible  <bruno@clisp.org>
34411
34412         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
34413         * lib/glob.c: Don't include openat.h.
34414         (link_exists2_p): Add back the code that deals with the
34415         !GLOB_ALTDIRFUNC case.
34416         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
34417         let it do the filename concatenation.
34418         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
34419         * modules/glob (Depends-on): Remove openat.
34420
34421 2007-12-31  Bruno Haible  <bruno@clisp.org>
34422
34423         * modules/dirfd (License): Change to LGPLv2+.
34424         Approved by Jim Meyering.
34425
34426 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
34427
34428         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
34429         when multiplying M by sizeof (size_t).
34430
34431 2007-12-10  Martin Lambers  <marlam@marlam.de>
34432
34433         Override getpagesize on mingw.
34434         * lib/getpagesize.c: New file.
34435         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
34436         * modules/getpagesize (Files): Add lib/getpagesize.c.
34437         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
34438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34439         REPLACE_GETPAGESIZE.
34440         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
34441
34442 2007-12-25  Bruno Haible  <bruno@clisp.org>
34443
34444         * modules/localcharset (Notice): New field.
34445         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
34446         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
34447
34448 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
34449             Bruno Haible  <bruno@clisp.org>
34450
34451         Avoid using the syntax symbol() in formatted documentation.
34452         * MODULES.html.sh (func_module): When replacing symbol() with a
34453         hyperlink, remove the parentheses. Show an error if some remain.
34454         Recognize and render the '...' syntax.
34455         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
34456         Rework. Add paragraph about GCC's inlining.
34457         * doc/alloca.texi: Likewise.
34458         * doc/error.texi: Remove parentheses from symbol reference.
34459         * doc/gnulib-intro.texi: Likewise.
34460         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
34461         * modules/fnmatch (Description): Reword to say "the ... function".
34462         * modules/full-read (Description): Likewise.
34463         * modules/full-write (Description): Likewise.
34464         * modules/safe-read (Description): Likewise.
34465         * modules/safe-write (Description): Likewise.
34466         * modules/strchrnul (Description): Likewise.
34467         * modules/trim (Description): Likewise.
34468         * modules/error (Description): Remove parentheses from symbol
34469         references.
34470         * modules/verror (Description): Likewise.
34471         Reported by Karl Berry.
34472
34473 2007-12-25  Bruno Haible  <bruno@clisp.org>
34474
34475         Fixup after 2007-10-16 commit.
34476         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
34477
34478 2007-12-24  Bruno Haible  <bruno@clisp.org>
34479
34480         Make --enable-relocatable work with DESTDIR.
34481         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
34482         to compute installdir from destprog.
34483         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
34484         also set the RELOC_DESTDIR variable.
34485         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34486
34487 2007-12-24  Bruno Haible  <bruno@clisp.org>
34488
34489         Fix link error due to xalloc_die().
34490         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
34491         of xreadlink.
34492         * lib/relocwrapper.c: Update comments.
34493         * build-aux/install-reloc: Remove xreadlink.c from file list.
34494         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
34495         xreadlink.c.
34496         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34497
34498 2007-12-24  Bruno Haible  <bruno@clisp.org>
34499
34500         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
34501         * lib/setenv.h: Remove file.
34502         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
34503         lib/setenv.h.
34504         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
34505         (Depends-on): Add stdlib.
34506         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
34507         gl_FUNC_UNSETENV.
34508         (Include): Replace setenv.h with <stdlib.h>.
34509         * modules/unsetenv: New file.
34510         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
34511         * lib/unsetenv.c: Include <stdlib.h> first.
34512         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
34513         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
34514         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
34515         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
34516         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
34517         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
34519         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34520         * doc/functions/unsetenv.texi: Update.
34521         * modules/xsetenv (Depends-on): Add unsetenv.
34522         * modules/getdate (Depends-on): Likewise.
34523         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
34524         * lib/xsetenv.c: Don't include setenv.h.
34525         * lib/getdate.y: Likewise.
34526         * lib/relocwrapper.c: Likewise.
34527         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
34528         (Depends-on): Add stdlib.
34529         * NEWS: Mention the changes.
34530         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34531
34532 2007-12-23  Bruno Haible  <bruno@clisp.org>
34533
34534         * lib/memmem.c (memmem): Use lowercase variable names. Tab
34535         indentation.
34536
34537 2007-12-23  Bruno Haible  <bruno@clisp.org>
34538
34539         * lib/c-strcasestr.c: Add more comments.
34540         * lib/c-strstr.c: Likewise.
34541         * lib/mbscasestr.c: Likewise.
34542         * lib/mbsstr.c: Likewise.
34543         * lib/strcasestr.c: Likewise.
34544         * lib/memmem.c: Likewise.
34545
34546 2007-12-23  Bruno Haible  <bruno@clisp.org>
34547
34548         * tests/test-memmem.c: Include <string.h> first.
34549
34550 2007-12-22  Bruno Haible  <bruno@clisp.org>
34551
34552         * gnulib-tool (func_create_testdir): Change $auxdir while generating
34553         the contents of $testsbase.
34554         Reported by Ralf Wildenhues.
34555
34556 2007-12-22  Bruno Haible  <bruno@clisp.org>
34557
34558         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
34559         two variables local_ldadd_before, local_ldadd_last.
34560
34561 2007-12-20  Eric Blake  <ebb9@byu.net>
34562
34563         Work around circular library issue when cross-compiling.
34564         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
34565         that progname.o does not need to pull in rpl_memcmp.
34566
34567 2007-12-19  Eric Blake  <ebb9@byu.net>
34568
34569         Fix memmem to avoid O(n^2) worst-case complexity.
34570         * lib/memmem.c (knuth_morris_pratt): New function.
34571         (memmem): Use it if first few naive iterations fail.
34572         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
34573         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
34574         * modules/memchr (License): Likewise.
34575         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
34576         malloca.
34577         * tests/test-memmem.c: Rewrite, borrowing ideas from
34578         test-mbsstr1.c; the old version wouldn't even compile!
34579         * modules/memmem-tests: New file.
34580         * lib/string.in.h (rpl_memmem): Add declaration.
34581         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
34582         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
34583         REPLACE_MEMMEM.
34584
34585 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34586
34587         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
34588         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
34589         before any system include files, and undef after them all.  This
34590         should fix a problem on VMS reported by John E. Malmberg in
34591         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
34592
34593 2007-12-17  Eric Blake  <ebb9@byu.net>
34594
34595         Revert addition of verify, for BSD/OS.
34596         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
34597         can't handle large files, for the sake of obsolete platforms.
34598         * modules/fseeko (Depends-on): Remove verify.
34599         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
34600         * doc/functions/ftello.texi (ftello): Likewise.
34601         * doc/functions/fgetpos.texi (fgetpos): Likewise.
34602         Reported by Larry Jones.
34603
34604 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
34605
34606         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
34607         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
34608
34609 2007-12-17  Jim Meyering  <meyering@redhat.com>
34610
34611         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
34612         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
34613         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
34614         * modules/getcwd (Depends-on): Add openat.
34615         Reported by Petr Salinger.
34616
34617 2007-12-17  Bruno Haible  <bruno@clisp.org>
34618
34619         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
34620         avoid a segmentation fault of the configure test on x86_64 systems.
34621
34622 2007-12-15  Jim Meyering  <meyering@redhat.com>
34623
34624         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
34625
34626 2007-12-13  Eric Blake  <ebb9@byu.net>
34627
34628         Another fseek test.
34629         * tests/test-fseek.c (main): Also test ungetc handling.
34630         * tests/test-fseeko.c (main): Likewise.
34631         * modules/fseeko (Depends-on): Add verify.
34632         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
34633         large.
34634         Reported by Larry Jones.
34635
34636         Fix fseeko on mingw.
34637         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
34638         seek.
34639
34640         Beef up fseek tests.
34641         * tests/test-fseek.c (main): Also test eof handling.
34642         * tests/test-fseeko.c (main): Likewise.
34643         Reported by Larry Jones.
34644
34645 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
34646
34647         Fix fseeko on BSD-based platforms.
34648         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
34649         successful seek.
34650
34651 2007-12-12  Eric Blake  <ebb9@byu.net>
34652
34653         Allow circular dependency of separate libtests.a
34654         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
34655         when use_libtests.
34656
34657 2007-12-11  Eric Blake  <ebb9@byu.net>
34658
34659         Fix bug with -0.0L in previous patch.
34660         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
34661         * tests/test-isnan.c (main): Also test on zeroes.
34662         * tests/test-isnanf.c (main): Likewise.
34663         * tests/test-isnanl.h (main): Likewise.
34664
34665         Detect pseudo-denormals on x86 even when cross-compiling.
34666         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
34667         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
34668         invalid bit patterns that happen to satisfy ==.
34669
34670         Avoid link failures with separate libtests.a.
34671         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
34672         last, to satisfy circular dependencies.
34673
34674 2007-12-11  Eric Blake  <ebb9@byu.net>
34675         and Bruno Haible  <bruno@clisp.org>
34676
34677         Fix OpenBSD 4.0 <float.h> handling of long double.
34678         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
34679         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
34680         * doc/headers/float.texi (float.h): Document OpenBSD bug.
34681
34682 2007-12-11  Jim Meyering  <meyering@redhat.com>
34683
34684         * users.txt: Add libvirt.
34685
34686         Support versions of autoconf prior to 2.59c.
34687         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
34688         if it is not already defined.
34689
34690 2007-12-09  Bruno Haible  <bruno@clisp.org>
34691
34692         Let 'gnulib-tool --import' collect sources needed for the tests in
34693         tests/ rather than in lib/.
34694         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
34695         argument. If true, add rules to generate libtests.a, and put libtests.a
34696         into $(LDADD). Consider source files in subdirectories and set
34697         uses_subdirs.
34698         (func_emit_initmacro_start, func_emit_initmacro_end,
34699         func_emit_initmacro_done): Pass all arguments explicitly.
34700         (func_import): Determine two module lists main_modules,
34701         testsrelated_modules. Determine use_libtests. Determine two variables
34702         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
34703         instead of just sed_transform_lib_file. Determine two variables
34704         main_files and testsrelated_files. Compute 'files' as the union of
34705         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
34706         func_add_or_update. In the generated gnulib-comp.m4, collect the
34707         object files for tests/ in different variables than those for lib/.
34708         Substitute LIBTESTS_LIBDEPS.
34709         (func_create_testdir): Combine the uses_subdirs results from
34710         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
34711
34712 2007-12-09  Bruno Haible  <bruno@clisp.org>
34713
34714         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
34715         the build-aux directory.
34716
34717 2007-12-09  Bruno Haible  <bruno@clisp.org>
34718
34719         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
34720         introduced on 2006-09-09.
34721
34722 2007-12-07  Jim Meyering  <meyering@redhat.com>
34723
34724         Let these macros work also with autoconf-2.59.
34725         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
34726         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
34727         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
34728
34729 2007-12-06  Jim Meyering  <meyering@redhat.com>
34730
34731         Avoid a configure-time syntax error in gl_FUNC_ACL.
34732         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
34733         function in each branch, before testing the cache variable.
34734
34735 2007-12-04  Eric Blake  <ebb9@byu.net>
34736
34737         Make scripts executable.
34738         * build-aux/config.guess: Add execute permissions.
34739         * build-aux/config.sub: Likewise.
34740         * build-aux/gendocs.sh: Likewise.
34741
34742         Fix frexp on mingw.
34743         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
34744         cross-compiling.
34745         * doc/functions/frexp.texi (frexp): Document the bug.
34746
34747         Make cygwin fseeko check more reliable.
34748         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
34749         version numbers, rather than unrelated feature check.
34750         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
34751         * doc/functions/ftello.texi (ftello): Likewise.
34752         Reported by Bruno Haible.
34753
34754         * m4/strerror.m4: Bump version number.
34755
34756 2007-12-03  Bruno Haible  <bruno@clisp.org>
34757
34758         * doc/functions/mprotect.texi: Mention the mingw problem.
34759
34760 2007-12-03  Eric Blake  <ebb9@byu.net>
34761
34762         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
34763         REPLACE_STRERROR is initialized before this macro.
34764
34765 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
34766
34767         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
34768         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
34769         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
34770         put -lsec in even for programs other than 'ls'.  This fixes a problem
34771         for gettext reported by Bruno Haible in
34772         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
34773         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
34774         Add support for Solaris 10.  This isn't efficient, but should get the
34775         job done for now.
34776
34777 2007-12-03  James Youngman  <jay@gnu.org>
34778
34779         * doc/regexprops-generic.texi: change "an close-group" to "a
34780         close-group" and "illegal" to "not allowed".
34781
34782 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34783
34784         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
34785         pr_byname.h. Needed for the rare case when the maintainer has done
34786         "make maintainer-clean" in the source directory and then attempts a
34787         build outside the source directory.
34788         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
34789         scripts_byname.h.
34790
34791 2007-12-02  Martin Lambers <marlam@marlam.de>
34792             Bruno Haible  <bruno@clisp.org>
34793
34794         * lib/getpagesize.h: Remove file.
34795         * lib/unistd.in.h: Include declaration of getpagesize here.
34796         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
34797         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
34798         HAVE_SYS_PARAM_H.
34799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
34800         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34801         * modules/getpagesize (Files): Remove lib/getpagesize.h.
34802         (Depends-on): Add unistd.
34803         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34804         (Include): Use <unistd.h> instead of getpagesize.h.
34805         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
34806         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34807         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
34808         gl_GETPAGESIZE invocation, already handled by module dependency.
34809         * lib/pagealign_alloc.c: Don't include getpagesize.h.
34810
34811 2007-12-02  Bruno Haible  <bruno@clisp.org>
34812
34813         * modules/strings-tests: New file.
34814         * tests/test-strings.c: New file.
34815
34816         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
34817         * lib/strings.in.h: New file.
34818         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
34819         * m4/strings_h.m4: New file.
34820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
34821         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
34822         * modules/strings: New file.
34823         * modules/string (Makefile.am): Update.
34824         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
34825         Reported by Karl Berry.
34826
34827 2007-12-01  Eric Blake  <ebb9@byu.net>
34828
34829         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
34830         accomodate fix in cygwin 1.5.25.
34831
34832 2007-12-01  Jim Meyering  <meyering@redhat.com>
34833
34834         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
34835         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
34836         that would inhibit utf8-optimization of a regexp containing line-
34837         or buffer-anchors, e.g., `^', `$'.
34838
34839 2007-11-30  Bruno Haible  <bruno@clisp.org>
34840
34841         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
34842         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
34843         glthread_recursive_lock_init.
34844         * lib/lock.c (glthread_recursive_lock_init)
34845         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
34846         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34847
34848 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34849
34850         New function qset_acl, like set_acl but with syscall semantics.
34851         * lib/acl.h (qset_acl): New decl.
34852         * lib/acl.c (qset_acl): New function.
34853         (set_acl): Use new function.  Use more-consistent diagnostics.
34854
34855 2007-11-28  Jim Meyering  <meyering@redhat.com>
34856
34857         * modules/physmem (License): Change from GPL to LGPLv2+.
34858
34859 2007-11-26  Bruno Haible  <bruno@clisp.org>
34860
34861         * lib/vasnprintf.c (decode_long_double): Don't abort if the
34862         'long double' type has excess precision.
34863         Reported by Jim Meyering in
34864         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
34865
34866 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34867
34868         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
34869         Sync from <http://gnu.org/licenses>.
34870         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
34871         with license text from same location.
34872         * doc/maintain.texi, doc/standards.texi:  Sync from
34873         <http://savannah.gnu.org/projects/gnustandards>.
34874
34875 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
34876         and Jim Meyering  <meyering@redhat.com>
34877
34878         Adjust getdate' grammar to accept a slightly more regular language.
34879         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
34880         Before, the former was rejected.
34881         * lib/getdate.y (digits_to_date_time): New function, factored
34882         out of ...
34883         (number): ...here.  Just call digits_to_date_time.
34884         (hybrid): New non-terminal to handle an <unsigned number,
34885         signed relative offset> sequence consistently.
34886
34887 2007-11-18  Jim Meyering  <meyering@redhat.com>
34888
34889         Pull my changes from coreutils:
34890         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
34891         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
34892         use of $gnulib_tool_option_extras, so that it's separated from the
34893         preceding argument.
34894
34895         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
34896         * build-aux/bootstrap (cp_mark_as_generated): Create any required
34897         parent destination directories before copying a file into place.
34898
34899 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
34900
34901         bootstrap: work also with 4-argument variant of AC_INIT
34902         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
34903
34904 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34905
34906         Port test-getaddrinfo to Solaris.
34907         Problem reported by Bruno Haible in
34908         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
34909         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
34910         explanation of setting 'hints'.
34911         Don't reject an implementation merely because it returns EAI_SERVICE.
34912         (EAI_SERVICE): Define to 0 if not defined.
34913
34914 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
34915
34916         The license of gnu-make and posix-shell is now "GPLed build tool".
34917         * modules/gnu-make (License): Likewise.
34918         * modules/posix-shell (License): Likewise.
34919
34920         New module posix-shell, for determining a POSIX shell
34921         or perhaps something that is close enough to a POSIX shell.
34922         * m4/posix-shell.m4: New file.
34923         * modules/posix-shell: New file.
34924
34925         * MODULES.html.sh: Mention new module.
34926
34927         New module gnu-make, for determining whether we're using GNU Make.
34928         * m4/gnu-make.m4: New file.
34929         * modules/gnu-make: New file.
34930         * MODULES.html.sh: Mention new module.
34931
34932 2007-11-14  Jim Meyering  <meyering@redhat.com>
34933
34934         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
34935         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
34936         use this macro to create a function _definition_.
34937         Remove useless "#undef ARGMATCH_DIE".
34938
34939 2007-11-14  Bruno Haible  <bruno@clisp.org>
34940
34941         * lib/config.charset: Update for OpenBSD 4.1.
34942         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
34943
34944 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
34945
34946         Document 64-bit #if problems in stdint.texi.
34947         * doc/headers/stdint.texi (stdint.h): Mention problems with
34948         64-bit-#if, and how to work around them.
34949
34950         Don't insist on 'long long int' support in the preprocessor.  It
34951         breaks too many things.  For example, PRIdMAX still uses a 'long
34952         long int' format with the latest Sun compiler, even though
34953         HAVE_LONG_LONG_INT isn't defined due to that compiler's
34954         preprocessor problem.  This causes the latest coreutils to dump
34955         core on Solaris 10 sparc with the Sun C compiler.
34956         Instead, fix the 2007-10-16 problem in a different way, by evaluating
34957         the troublesome expressions at configure-time, not at #if-time.
34958         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
34959         preprocessor.
34960         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
34961         compile-time C checks, done at 'configure'-time.
34962         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
34963         * modules/inttypes (Makefile): Substitute the new symbols that
34964         gl_INTTYPES_H now generates.
34965         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
34966
34967 2007-11-12  Bruno Haible  <bruno@clisp.org>
34968
34969         Tests for Unicode character classification functions.
34970
34971         * modules/unictype/bidicategory-byname-tests: New file.
34972         * modules/unictype/bidicategory-name-tests: New file.
34973         * modules/unictype/bidicategory-of-tests: New file.
34974         * modules/unictype/bidicategory-test-tests: New file.
34975         * modules/unictype/block-list-tests: New file.
34976         * modules/unictype/block-of-tests: New file.
34977         * modules/unictype/block-test-tests: New file.
34978         * modules/unictype/category-C-tests: New file.
34979         * modules/unictype/category-Cc-tests: New file.
34980         * modules/unictype/category-Cf-tests: New file.
34981         * modules/unictype/category-Cn-tests: New file.
34982         * modules/unictype/category-Co-tests: New file.
34983         * modules/unictype/category-Cs-tests: New file.
34984         * modules/unictype/category-L-tests: New file.
34985         * modules/unictype/category-Ll-tests: New file.
34986         * modules/unictype/category-Lm-tests: New file.
34987         * modules/unictype/category-Lo-tests: New file.
34988         * modules/unictype/category-Lt-tests: New file.
34989         * modules/unictype/category-Lu-tests: New file.
34990         * modules/unictype/category-M-tests: New file.
34991         * modules/unictype/category-Mc-tests: New file.
34992         * modules/unictype/category-Me-tests: New file.
34993         * modules/unictype/category-Mn-tests: New file.
34994         * modules/unictype/category-N-tests: New file.
34995         * modules/unictype/category-Nd-tests: New file.
34996         * modules/unictype/category-Nl-tests: New file.
34997         * modules/unictype/category-No-tests: New file.
34998         * modules/unictype/category-P-tests: New file.
34999         * modules/unictype/category-Pc-tests: New file.
35000         * modules/unictype/category-Pd-tests: New file.
35001         * modules/unictype/category-Pe-tests: New file.
35002         * modules/unictype/category-Pf-tests: New file.
35003         * modules/unictype/category-Pi-tests: New file.
35004         * modules/unictype/category-Po-tests: New file.
35005         * modules/unictype/category-Ps-tests: New file.
35006         * modules/unictype/category-S-tests: New file.
35007         * modules/unictype/category-Sc-tests: New file.
35008         * modules/unictype/category-Sk-tests: New file.
35009         * modules/unictype/category-Sm-tests: New file.
35010         * modules/unictype/category-So-tests: New file.
35011         * modules/unictype/category-Z-tests: New file.
35012         * modules/unictype/category-Zl-tests: New file.
35013         * modules/unictype/category-Zp-tests: New file.
35014         * modules/unictype/category-Zs-tests: New file.
35015         * modules/unictype/category-and-not-tests: New file.
35016         * modules/unictype/category-and-tests: New file.
35017         * modules/unictype/category-byname-tests: New file.
35018         * modules/unictype/category-name-tests: New file.
35019         * modules/unictype/category-none-tests: New file.
35020         * modules/unictype/category-of-tests: New file.
35021         * modules/unictype/category-or-tests: New file.
35022         * modules/unictype/category-test-withtable-tests: New file.
35023         * modules/unictype/combining-class-tests: New file.
35024         * modules/unictype/ctype-alnum-tests: New file.
35025         * modules/unictype/ctype-alpha-tests: New file.
35026         * modules/unictype/ctype-blank-tests: New file.
35027         * modules/unictype/ctype-cntrl-tests: New file.
35028         * modules/unictype/ctype-digit-tests: New file.
35029         * modules/unictype/ctype-graph-tests: New file.
35030         * modules/unictype/ctype-lower-tests: New file.
35031         * modules/unictype/ctype-print-tests: New file.
35032         * modules/unictype/ctype-punct-tests: New file.
35033         * modules/unictype/ctype-space-tests: New file.
35034         * modules/unictype/ctype-upper-tests: New file.
35035         * modules/unictype/ctype-xdigit-tests: New file.
35036         * modules/unictype/decimal-digit-tests: New file.
35037         * modules/unictype/digit-tests: New file.
35038         * modules/unictype/mirror-tests: New file.
35039         * modules/unictype/numeric-tests: New file.
35040         * modules/unictype/property-alphabetic-tests: New file.
35041         * modules/unictype/property-ascii-hex-digit-tests: New file.
35042         * modules/unictype/property-bidi-arabic-digit-tests: New file.
35043         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
35044         * modules/unictype/property-bidi-block-separator-tests: New file.
35045         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
35046         * modules/unictype/property-bidi-common-separator-tests: New file.
35047         * modules/unictype/property-bidi-control-tests: New file.
35048         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
35049         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
35050         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
35051         * modules/unictype/property-bidi-european-digit-tests: New file.
35052         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
35053         * modules/unictype/property-bidi-left-to-right-tests: New file.
35054         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
35055         * modules/unictype/property-bidi-other-neutral-tests: New file.
35056         * modules/unictype/property-bidi-pdf-tests: New file.
35057         * modules/unictype/property-bidi-segment-separator-tests: New file.
35058         * modules/unictype/property-bidi-whitespace-tests: New file.
35059         * modules/unictype/property-byname-tests: New file.
35060         * modules/unictype/property-combining-tests: New file.
35061         * modules/unictype/property-composite-tests: New file.
35062         * modules/unictype/property-currency-symbol-tests: New file.
35063         * modules/unictype/property-dash-tests: New file.
35064         * modules/unictype/property-decimal-digit-tests: New file.
35065         * modules/unictype/property-default-ignorable-code-point-tests: New file.
35066         * modules/unictype/property-deprecated-tests: New file.
35067         * modules/unictype/property-diacritic-tests: New file.
35068         * modules/unictype/property-extender-tests: New file.
35069         * modules/unictype/property-format-control-tests: New file.
35070         * modules/unictype/property-grapheme-base-tests: New file.
35071         * modules/unictype/property-grapheme-extend-tests: New file.
35072         * modules/unictype/property-grapheme-link-tests: New file.
35073         * modules/unictype/property-hex-digit-tests: New file.
35074         * modules/unictype/property-hyphen-tests: New file.
35075         * modules/unictype/property-id-continue-tests: New file.
35076         * modules/unictype/property-id-start-tests: New file.
35077         * modules/unictype/property-ideographic-tests: New file.
35078         * modules/unictype/property-ids-binary-operator-tests: New file.
35079         * modules/unictype/property-ids-trinary-operator-tests: New file.
35080         * modules/unictype/property-ignorable-control-tests: New file.
35081         * modules/unictype/property-iso-control-tests: New file.
35082         * modules/unictype/property-join-control-tests: New file.
35083         * modules/unictype/property-left-of-pair-tests: New file.
35084         * modules/unictype/property-line-separator-tests: New file.
35085         * modules/unictype/property-logical-order-exception-tests: New file.
35086         * modules/unictype/property-lowercase-tests: New file.
35087         * modules/unictype/property-math-tests: New file.
35088         * modules/unictype/property-non-break-tests: New file.
35089         * modules/unictype/property-not-a-character-tests: New file.
35090         * modules/unictype/property-numeric-tests: New file.
35091         * modules/unictype/property-other-alphabetic-tests: New file.
35092         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
35093         * modules/unictype/property-other-grapheme-extend-tests: New file.
35094         * modules/unictype/property-other-id-continue-tests: New file.
35095         * modules/unictype/property-other-id-start-tests: New file.
35096         * modules/unictype/property-other-lowercase-tests: New file.
35097         * modules/unictype/property-other-math-tests: New file.
35098         * modules/unictype/property-other-uppercase-tests: New file.
35099         * modules/unictype/property-paired-punctuation-tests: New file.
35100         * modules/unictype/property-paragraph-separator-tests: New file.
35101         * modules/unictype/property-pattern-syntax-tests: New file.
35102         * modules/unictype/property-pattern-white-space-tests: New file.
35103         * modules/unictype/property-private-use-tests: New file.
35104         * modules/unictype/property-punctuation-tests: New file.
35105         * modules/unictype/property-quotation-mark-tests: New file.
35106         * modules/unictype/property-radical-tests: New file.
35107         * modules/unictype/property-sentence-terminal-tests: New file.
35108         * modules/unictype/property-soft-dotted-tests: New file.
35109         * modules/unictype/property-space-tests: New file.
35110         * modules/unictype/property-terminal-punctuation-tests: New file.
35111         * modules/unictype/property-test-tests: New file.
35112         * modules/unictype/property-titlecase-tests: New file.
35113         * modules/unictype/property-unassigned-code-value-tests: New file.
35114         * modules/unictype/property-unified-ideograph-tests: New file.
35115         * modules/unictype/property-uppercase-tests: New file.
35116         * modules/unictype/property-variation-selector-tests: New file.
35117         * modules/unictype/property-white-space-tests: New file.
35118         * modules/unictype/property-xid-continue-tests: New file.
35119         * modules/unictype/property-xid-start-tests: New file.
35120         * modules/unictype/property-zero-width-tests: New file.
35121         * modules/unictype/scripts-tests: New file.
35122         * modules/unictype/syntax-c-ident-tests: New file.
35123         * modules/unictype/syntax-c-whitespace-tests: New file.
35124         * modules/unictype/syntax-java-ident-tests: New file.
35125         * modules/unictype/syntax-java-whitespace-tests: New file.
35126         * tests/unictype/test-bidi_byname.c: New file.
35127         * tests/unictype/test-bidi_name.c: New file.
35128         * tests/unictype/test-bidi_of.c: New file.
35129         * tests/unictype/test-bidi_test.c: New file.
35130         * tests/unictype/test-block_list.c: New file.
35131         * tests/unictype/test-block_of.c: New file.
35132         * tests/unictype/test-block_test.c: New file.
35133         * tests/unictype/test-categ_and.c: New file.
35134         * tests/unictype/test-categ_and_not.c: New file.
35135         * tests/unictype/test-categ_byname.c: New file.
35136         * tests/unictype/test-categ_name.c: New file.
35137         * tests/unictype/test-categ_none.c: New file.
35138         * tests/unictype/test-categ_of.c: New file.
35139         * tests/unictype/test-categ_or.c: New file.
35140         * tests/unictype/test-categ_test_withtable.c: New file.
35141         * tests/unictype/test-combining.c: New file.
35142         * tests/unictype/test-decdigit.c: New file.
35143         * tests/unictype/test-digit.c: New file.
35144         * tests/unictype/test-mirror.c: New file.
35145         * tests/unictype/test-numeric.c: New file.
35146         * tests/unictype/test-pr_byname.c: New file.
35147         * tests/unictype/test-pr_test.c: New file.
35148         * tests/unictype/test-predicate-part1.h: New file.
35149         * tests/unictype/test-predicate-part2.h: New file.
35150         * tests/unictype/test-scripts.c: New file.
35151         * tests/unictype/test-sy_c_ident.c: New file.
35152         * tests/unictype/test-sy_java_ident.c: New file.
35153
35154         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
35155         for Unicode 5.0.0.
35156         * tests/unictype/test-categ_Cc.c: Likewise.
35157         * tests/unictype/test-categ_Cf.c: Likewise.
35158         * tests/unictype/test-categ_Cn.c: Likewise.
35159         * tests/unictype/test-categ_Co.c: Likewise.
35160         * tests/unictype/test-categ_Cs.c: Likewise.
35161         * tests/unictype/test-categ_L.c: Likewise.
35162         * tests/unictype/test-categ_Ll.c: Likewise.
35163         * tests/unictype/test-categ_Lm.c: Likewise.
35164         * tests/unictype/test-categ_Lo.c: Likewise.
35165         * tests/unictype/test-categ_Lt.c: Likewise.
35166         * tests/unictype/test-categ_Lu.c: Likewise.
35167         * tests/unictype/test-categ_M.c: Likewise.
35168         * tests/unictype/test-categ_Mc.c: Likewise.
35169         * tests/unictype/test-categ_Me.c: Likewise.
35170         * tests/unictype/test-categ_Mn.c: Likewise.
35171         * tests/unictype/test-categ_N.c: Likewise.
35172         * tests/unictype/test-categ_Nd.c: Likewise.
35173         * tests/unictype/test-categ_Nl.c: Likewise.
35174         * tests/unictype/test-categ_No.c: Likewise.
35175         * tests/unictype/test-categ_P.c: Likewise.
35176         * tests/unictype/test-categ_Pc.c: Likewise.
35177         * tests/unictype/test-categ_Pd.c: Likewise.
35178         * tests/unictype/test-categ_Pe.c: Likewise.
35179         * tests/unictype/test-categ_Pf.c: Likewise.
35180         * tests/unictype/test-categ_Pi.c: Likewise.
35181         * tests/unictype/test-categ_Po.c: Likewise.
35182         * tests/unictype/test-categ_Ps.c: Likewise.
35183         * tests/unictype/test-categ_S.c: Likewise.
35184         * tests/unictype/test-categ_Sc.c: Likewise.
35185         * tests/unictype/test-categ_Sk.c: Likewise.
35186         * tests/unictype/test-categ_Sm.c: Likewise.
35187         * tests/unictype/test-categ_So.c: Likewise.
35188         * tests/unictype/test-categ_Z.c: Likewise.
35189         * tests/unictype/test-categ_Zl.c: Likewise.
35190         * tests/unictype/test-categ_Zp.c: Likewise.
35191         * tests/unictype/test-categ_Zs.c: Likewise.
35192         * tests/unictype/test-ctype_alnum.c: Likewise.
35193         * tests/unictype/test-ctype_alpha.c: Likewise.
35194         * tests/unictype/test-ctype_blank.c: Likewise.
35195         * tests/unictype/test-ctype_cntrl.c: Likewise.
35196         * tests/unictype/test-ctype_digit.c: Likewise.
35197         * tests/unictype/test-ctype_graph.c: Likewise.
35198         * tests/unictype/test-ctype_lower.c: Likewise.
35199         * tests/unictype/test-ctype_print.c: Likewise.
35200         * tests/unictype/test-ctype_punct.c: Likewise.
35201         * tests/unictype/test-ctype_space.c: Likewise.
35202         * tests/unictype/test-ctype_upper.c: Likewise.
35203         * tests/unictype/test-ctype_xdigit.c: Likewise.
35204         * tests/unictype/test-decdigit.h: Likewise.
35205         * tests/unictype/test-digit.h: Likewise.
35206         * tests/unictype/test-numeric.h: Likewise.
35207         * tests/unictype/test-pr_alphabetic.c: Likewise.
35208         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
35209         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
35210         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
35211         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
35212         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
35213         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
35214         * tests/unictype/test-pr_bidi_control.c: Likewise.
35215         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
35216         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
35217         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
35218         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
35219         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
35220         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
35221         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
35222         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
35223         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
35224         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
35225         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
35226         * tests/unictype/test-pr_combining.c: Likewise.
35227         * tests/unictype/test-pr_composite.c: Likewise.
35228         * tests/unictype/test-pr_currency_symbol.c: Likewise.
35229         * tests/unictype/test-pr_dash.c: Likewise.
35230         * tests/unictype/test-pr_decimal_digit.c: Likewise.
35231         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
35232         * tests/unictype/test-pr_deprecated.c: Likewise.
35233         * tests/unictype/test-pr_diacritic.c: Likewise.
35234         * tests/unictype/test-pr_extender.c: Likewise.
35235         * tests/unictype/test-pr_format_control.c: Likewise.
35236         * tests/unictype/test-pr_grapheme_base.c: Likewise.
35237         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
35238         * tests/unictype/test-pr_grapheme_link.c: Likewise.
35239         * tests/unictype/test-pr_hex_digit.c: Likewise.
35240         * tests/unictype/test-pr_hyphen.c: Likewise.
35241         * tests/unictype/test-pr_id_continue.c: Likewise.
35242         * tests/unictype/test-pr_id_start.c: Likewise.
35243         * tests/unictype/test-pr_ideographic.c: Likewise.
35244         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
35245         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
35246         * tests/unictype/test-pr_ignorable_control.c: Likewise.
35247         * tests/unictype/test-pr_iso_control.c: Likewise.
35248         * tests/unictype/test-pr_join_control.c: Likewise.
35249         * tests/unictype/test-pr_left_of_pair.c: Likewise.
35250         * tests/unictype/test-pr_line_separator.c: Likewise.
35251         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
35252         * tests/unictype/test-pr_lowercase.c: Likewise.
35253         * tests/unictype/test-pr_math.c: Likewise.
35254         * tests/unictype/test-pr_non_break.c: Likewise.
35255         * tests/unictype/test-pr_not_a_character.c: Likewise.
35256         * tests/unictype/test-pr_numeric.c: Likewise.
35257         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
35258         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
35259         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
35260         * tests/unictype/test-pr_other_id_continue.c: Likewise.
35261         * tests/unictype/test-pr_other_id_start.c: Likewise.
35262         * tests/unictype/test-pr_other_lowercase.c: Likewise.
35263         * tests/unictype/test-pr_other_math.c: Likewise.
35264         * tests/unictype/test-pr_other_uppercase.c: Likewise.
35265         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
35266         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
35267         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
35268         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
35269         * tests/unictype/test-pr_private_use.c: Likewise.
35270         * tests/unictype/test-pr_punctuation.c: Likewise.
35271         * tests/unictype/test-pr_quotation_mark.c: Likewise.
35272         * tests/unictype/test-pr_radical.c: Likewise.
35273         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
35274         * tests/unictype/test-pr_soft_dotted.c: Likewise.
35275         * tests/unictype/test-pr_space.c: Likewise.
35276         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
35277         * tests/unictype/test-pr_titlecase.c: Likewise.
35278         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
35279         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
35280         * tests/unictype/test-pr_uppercase.c: Likewise.
35281         * tests/unictype/test-pr_variation_selector.c: Likewise.
35282         * tests/unictype/test-pr_white_space.c: Likewise.
35283         * tests/unictype/test-pr_xid_continue.c: Likewise.
35284         * tests/unictype/test-pr_xid_start.c: Likewise.
35285         * tests/unictype/test-pr_zero_width.c: Likewise.
35286         * tests/unictype/test-sy_c_whitespace.c: Likewise.
35287         * tests/unictype/test-sy_java_whitespace.c: Likewise.
35288
35289 2007-11-12  Bruno Haible  <bruno@clisp.org>
35290
35291         Unicode character classification functions.
35292         * lib/unictype.h: New file.
35293         * modules/unictype/base: New file.
35294         * modules/unictype/category-L: New file.
35295         * modules/unictype/category-Lu: New file.
35296         * modules/unictype/category-Ll: New file.
35297         * modules/unictype/category-Lt: New file.
35298         * modules/unictype/category-Lm: New file.
35299         * modules/unictype/category-Lo: New file.
35300         * modules/unictype/category-M: New file.
35301         * modules/unictype/category-Mn: New file.
35302         * modules/unictype/category-Mc: New file.
35303         * modules/unictype/category-Me: New file.
35304         * modules/unictype/category-N: New file.
35305         * modules/unictype/category-Nd: New file.
35306         * modules/unictype/category-Nl: New file.
35307         * modules/unictype/category-No: New file.
35308         * modules/unictype/category-P: New file.
35309         * modules/unictype/category-Pc: New file.
35310         * modules/unictype/category-Pd: New file.
35311         * modules/unictype/category-Ps: New file.
35312         * modules/unictype/category-Pe: New file.
35313         * modules/unictype/category-Pi: New file.
35314         * modules/unictype/category-Pf: New file.
35315         * modules/unictype/category-Po: New file.
35316         * modules/unictype/category-S: New file.
35317         * modules/unictype/category-Sm: New file.
35318         * modules/unictype/category-Sc: New file.
35319         * modules/unictype/category-Sk: New file.
35320         * modules/unictype/category-So: New file.
35321         * modules/unictype/category-Z: New file.
35322         * modules/unictype/category-Zs: New file.
35323         * modules/unictype/category-Zl: New file.
35324         * modules/unictype/category-Zp: New file.
35325         * modules/unictype/category-C: New file.
35326         * modules/unictype/category-Cc: New file.
35327         * modules/unictype/category-Cf: New file.
35328         * modules/unictype/category-Cs: New file.
35329         * modules/unictype/category-Co: New file.
35330         * modules/unictype/category-Cn: New file.
35331         * modules/unictype/category-or: New file.
35332         * modules/unictype/category-of: New file.
35333         * modules/unictype/category-test: New file.
35334         * modules/unictype/category-test-withtable: New file.
35335         * modules/unictype/category-byname: New file.
35336         * modules/unictype/category-none: New file.
35337         * modules/unictype/category-and: New file.
35338         * modules/unictype/category-and-not: New file.
35339         * modules/unictype/category-name: New file.
35340         * modules/unictype/combining-class: New file.
35341         * modules/unictype/category-all: New file.
35342         * modules/unictype/bidicategory-all: New file.
35343         * modules/unictype/bidicategory-byname: New file.
35344         * modules/unictype/bidicategory-name: New file.
35345         * modules/unictype/bidicategory-of: New file.
35346         * modules/unictype/bidicategory-test: New file.
35347         * modules/unictype/decimal-digit: New file.
35348         * modules/unictype/digit: New file.
35349         * modules/unictype/numeric: New file.
35350         * modules/unictype/mirror: New file.
35351         * modules/unictype/property-white-space: New file.
35352         * modules/unictype/property-alphabetic: New file.
35353         * modules/unictype/property-other-alphabetic: New file.
35354         * modules/unictype/property-not-a-character: New file.
35355         * modules/unictype/property-default-ignorable-code-point: New file.
35356         * modules/unictype/property-other-default-ignorable-code-point: New
35357         file.
35358         * modules/unictype/property-deprecated: New file.
35359         * modules/unictype/property-logical-order-exception: New file.
35360         * modules/unictype/property-variation-selector: New file.
35361         * modules/unictype/property-private-use: New file.
35362         * modules/unictype/property-unassigned-code-value: New file.
35363         * modules/unictype/property-uppercase: New file.
35364         * modules/unictype/property-other-uppercase: New file.
35365         * modules/unictype/property-lowercase: New file.
35366         * modules/unictype/property-other-lowercase: New file.
35367         * modules/unictype/property-titlecase: New file.
35368         * modules/unictype/property-soft-dotted: New file.
35369         * modules/unictype/property-id-start: New file.
35370         * modules/unictype/property-other-id-start: New file.
35371         * modules/unictype/property-id-continue: New file.
35372         * modules/unictype/property-other-id-continue: New file.
35373         * modules/unictype/property-xid-start: New file.
35374         * modules/unictype/property-xid-continue: New file.
35375         * modules/unictype/property-pattern-white-space: New file.
35376         * modules/unictype/property-pattern-syntax: New file.
35377         * modules/unictype/property-join-control: New file.
35378         * modules/unictype/property-grapheme-base: New file.
35379         * modules/unictype/property-grapheme-extend: New file.
35380         * modules/unictype/property-other-grapheme-extend: New file.
35381         * modules/unictype/property-grapheme-link: New file.
35382         * modules/unictype/property-bidi-control: New file.
35383         * modules/unictype/property-bidi-left-to-right: New file.
35384         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
35385         * modules/unictype/property-bidi-arabic-right-to-left: New file.
35386         * modules/unictype/property-bidi-european-digit: New file.
35387         * modules/unictype/property-bidi-eur-num-separator: New file.
35388         * modules/unictype/property-bidi-eur-num-terminator: New file.
35389         * modules/unictype/property-bidi-arabic-digit: New file.
35390         * modules/unictype/property-bidi-common-separator: New file.
35391         * modules/unictype/property-bidi-block-separator: New file.
35392         * modules/unictype/property-bidi-segment-separator: New file.
35393         * modules/unictype/property-bidi-whitespace: New file.
35394         * modules/unictype/property-bidi-non-spacing-mark: New file.
35395         * modules/unictype/property-bidi-boundary-neutral: New file.
35396         * modules/unictype/property-bidi-pdf: New file.
35397         * modules/unictype/property-bidi-embedding-or-override: New file.
35398         * modules/unictype/property-bidi-other-neutral: New file.
35399         * modules/unictype/property-hex-digit: New file.
35400         * modules/unictype/property-ascii-hex-digit: New file.
35401         * modules/unictype/property-ideographic: New file.
35402         * modules/unictype/property-unified-ideograph: New file.
35403         * modules/unictype/property-radical: New file.
35404         * modules/unictype/property-ids-binary-operator: New file.
35405         * modules/unictype/property-ids-trinary-operator: New file.
35406         * modules/unictype/property-zero-width: New file.
35407         * modules/unictype/property-space: New file.
35408         * modules/unictype/property-non-break: New file.
35409         * modules/unictype/property-iso-control: New file.
35410         * modules/unictype/property-format-control: New file.
35411         * modules/unictype/property-dash: New file.
35412         * modules/unictype/property-hyphen: New file.
35413         * modules/unictype/property-punctuation: New file.
35414         * modules/unictype/property-line-separator: New file.
35415         * modules/unictype/property-paragraph-separator: New file.
35416         * modules/unictype/property-quotation-mark: New file.
35417         * modules/unictype/property-sentence-terminal: New file.
35418         * modules/unictype/property-terminal-punctuation: New file.
35419         * modules/unictype/property-currency-symbol: New file.
35420         * modules/unictype/property-math: New file.
35421         * modules/unictype/property-other-math: New file.
35422         * modules/unictype/property-paired-punctuation: New file.
35423         * modules/unictype/property-left-of-pair: New file.
35424         * modules/unictype/property-combining: New file.
35425         * modules/unictype/property-composite: New file.
35426         * modules/unictype/property-decimal-digit: New file.
35427         * modules/unictype/property-numeric: New file.
35428         * modules/unictype/property-diacritic: New file.
35429         * modules/unictype/property-extender: New file.
35430         * modules/unictype/property-ignorable-control: New file.
35431         * modules/unictype/property-test: New file.
35432         * modules/unictype/property-byname: New file.
35433         * modules/unictype/property-all: New file.
35434         * modules/unictype/scripts: New file.
35435         * modules/unictype/scripts-all: New file.
35436         * modules/unictype/block-of: New file.
35437         * modules/unictype/block-test: New file.
35438         * modules/unictype/block-list: New file.
35439         * modules/unictype/block-all: New file.
35440         * modules/unictype/syntax-c-whitespace: New file.
35441         * modules/unictype/syntax-java-whitespace: New file.
35442         * modules/unictype/syntax-c-ident: New file.
35443         * modules/unictype/syntax-java-ident: New file.
35444         * modules/unictype/ctype-alnum: New file.
35445         * modules/unictype/ctype-alpha: New file.
35446         * modules/unictype/ctype-cntrl: New file.
35447         * modules/unictype/ctype-digit: New file.
35448         * modules/unictype/ctype-graph: New file.
35449         * modules/unictype/ctype-lower: New file.
35450         * modules/unictype/ctype-print: New file.
35451         * modules/unictype/ctype-punct: New file.
35452         * modules/unictype/ctype-space: New file.
35453         * modules/unictype/ctype-upper: New file.
35454         * modules/unictype/ctype-xdigit: New file.
35455         * modules/unictype/ctype-blank: New file.
35456         * lib/unictype/bidi_byname.c: New file.
35457         * lib/unictype/bidi_name.c: New file.
35458         * lib/unictype/bidi_of.c: New file.
35459         * lib/unictype/bidi_test.c: New file.
35460         * lib/unictype/bitmap.h: New file.
35461         * lib/unictype/block_test.c: New file.
35462         * lib/unictype/blocks.c: New file.
35463         * lib/unictype/categ_C.c: New file.
35464         * lib/unictype/categ_Cc.c: New file.
35465         * lib/unictype/categ_Cf.c: New file.
35466         * lib/unictype/categ_Cn.c: New file.
35467         * lib/unictype/categ_Co.c: New file.
35468         * lib/unictype/categ_Cs.c: New file.
35469         * lib/unictype/categ_L.c: New file.
35470         * lib/unictype/categ_Ll.c: New file.
35471         * lib/unictype/categ_Lm.c: New file.
35472         * lib/unictype/categ_Lo.c: New file.
35473         * lib/unictype/categ_Lt.c: New file.
35474         * lib/unictype/categ_Lu.c: New file.
35475         * lib/unictype/categ_M.c: New file.
35476         * lib/unictype/categ_Mc.c: New file.
35477         * lib/unictype/categ_Me.c: New file.
35478         * lib/unictype/categ_Mn.c: New file.
35479         * lib/unictype/categ_N.c: New file.
35480         * lib/unictype/categ_Nd.c: New file.
35481         * lib/unictype/categ_Nl.c: New file.
35482         * lib/unictype/categ_No.c: New file.
35483         * lib/unictype/categ_P.c: New file.
35484         * lib/unictype/categ_Pc.c: New file.
35485         * lib/unictype/categ_Pd.c: New file.
35486         * lib/unictype/categ_Pe.c: New file.
35487         * lib/unictype/categ_Pf.c: New file.
35488         * lib/unictype/categ_Pi.c: New file.
35489         * lib/unictype/categ_Po.c: New file.
35490         * lib/unictype/categ_Ps.c: New file.
35491         * lib/unictype/categ_S.c: New file.
35492         * lib/unictype/categ_Sc.c: New file.
35493         * lib/unictype/categ_Sk.c: New file.
35494         * lib/unictype/categ_Sm.c: New file.
35495         * lib/unictype/categ_So.c: New file.
35496         * lib/unictype/categ_Z.c: New file.
35497         * lib/unictype/categ_Zl.c: New file.
35498         * lib/unictype/categ_Zp.c: New file.
35499         * lib/unictype/categ_Zs.c: New file.
35500         * lib/unictype/categ_and.c: New file.
35501         * lib/unictype/categ_and_not.c: New file.
35502         * lib/unictype/categ_byname.c: New file.
35503         * lib/unictype/categ_name.c: New file.
35504         * lib/unictype/categ_none.c: New file.
35505         * lib/unictype/categ_of.c: New file.
35506         * lib/unictype/categ_or.c: New file.
35507         * lib/unictype/categ_test.c: New file.
35508         * lib/unictype/combining.c: New file.
35509         * lib/unictype/ctype_alnum.c: New file.
35510         * lib/unictype/ctype_alpha.c: New file.
35511         * lib/unictype/ctype_blank.c: New file.
35512         * lib/unictype/ctype_cntrl.c: New file.
35513         * lib/unictype/ctype_digit.c: New file.
35514         * lib/unictype/ctype_graph.c: New file.
35515         * lib/unictype/ctype_lower.c: New file.
35516         * lib/unictype/ctype_print.c: New file.
35517         * lib/unictype/ctype_punct.c: New file.
35518         * lib/unictype/ctype_space.c: New file.
35519         * lib/unictype/ctype_upper.c: New file.
35520         * lib/unictype/ctype_xdigit.c: New file.
35521         * lib/unictype/decdigit.c: New file.
35522         * lib/unictype/digit.c: New file.
35523         * lib/unictype/identsyntaxmap.h: New file.
35524         * lib/unictype/mirror.c: New file.
35525         * lib/unictype/numeric.c: New file.
35526         * lib/unictype/pr_alphabetic.c: New file.
35527         * lib/unictype/pr_ascii_hex_digit.c: New file.
35528         * lib/unictype/pr_bidi_arabic_digit.c: New file.
35529         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
35530         * lib/unictype/pr_bidi_block_separator.c: New file.
35531         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
35532         * lib/unictype/pr_bidi_common_separator.c: New file.
35533         * lib/unictype/pr_bidi_control.c: New file.
35534         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
35535         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
35536         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
35537         * lib/unictype/pr_bidi_european_digit.c: New file.
35538         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
35539         * lib/unictype/pr_bidi_left_to_right.c: New file.
35540         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
35541         * lib/unictype/pr_bidi_other_neutral.c: New file.
35542         * lib/unictype/pr_bidi_pdf.c: New file.
35543         * lib/unictype/pr_bidi_segment_separator.c: New file.
35544         * lib/unictype/pr_bidi_whitespace.c: New file.
35545         * lib/unictype/pr_byname.c: New file.
35546         * lib/unictype/pr_byname.gperf: New file.
35547         * lib/unictype/pr_combining.c: New file.
35548         * lib/unictype/pr_composite.c: New file.
35549         * lib/unictype/pr_currency_symbol.c: New file.
35550         * lib/unictype/pr_dash.c: New file.
35551         * lib/unictype/pr_decimal_digit.c: New file.
35552         * lib/unictype/pr_default_ignorable_code_point.c: New file.
35553         * lib/unictype/pr_deprecated.c: New file.
35554         * lib/unictype/pr_diacritic.c: New file.
35555         * lib/unictype/pr_extender.c: New file.
35556         * lib/unictype/pr_format_control.c: New file.
35557         * lib/unictype/pr_grapheme_base.c: New file.
35558         * lib/unictype/pr_grapheme_extend.c: New file.
35559         * lib/unictype/pr_grapheme_link.c: New file.
35560         * lib/unictype/pr_hex_digit.c: New file.
35561         * lib/unictype/pr_hyphen.c: New file.
35562         * lib/unictype/pr_id_continue.c: New file.
35563         * lib/unictype/pr_id_start.c: New file.
35564         * lib/unictype/pr_ideographic.c: New file.
35565         * lib/unictype/pr_ids_binary_operator.c: New file.
35566         * lib/unictype/pr_ids_trinary_operator.c: New file.
35567         * lib/unictype/pr_ignorable_control.c: New file.
35568         * lib/unictype/pr_iso_control.c: New file.
35569         * lib/unictype/pr_join_control.c: New file.
35570         * lib/unictype/pr_left_of_pair.c: New file.
35571         * lib/unictype/pr_line_separator.c: New file.
35572         * lib/unictype/pr_logical_order_exception.c: New file.
35573         * lib/unictype/pr_lowercase.c: New file.
35574         * lib/unictype/pr_math.c: New file.
35575         * lib/unictype/pr_non_break.c: New file.
35576         * lib/unictype/pr_not_a_character.c: New file.
35577         * lib/unictype/pr_numeric.c: New file.
35578         * lib/unictype/pr_other_alphabetic.c: New file.
35579         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
35580         * lib/unictype/pr_other_grapheme_extend.c: New file.
35581         * lib/unictype/pr_other_id_continue.c: New file.
35582         * lib/unictype/pr_other_id_start.c: New file.
35583         * lib/unictype/pr_other_lowercase.c: New file.
35584         * lib/unictype/pr_other_math.c: New file.
35585         * lib/unictype/pr_other_uppercase.c: New file.
35586         * lib/unictype/pr_paired_punctuation.c: New file.
35587         * lib/unictype/pr_paragraph_separator.c: New file.
35588         * lib/unictype/pr_pattern_syntax.c: New file.
35589         * lib/unictype/pr_pattern_white_space.c: New file.
35590         * lib/unictype/pr_private_use.c: New file.
35591         * lib/unictype/pr_punctuation.c: New file.
35592         * lib/unictype/pr_quotation_mark.c: New file.
35593         * lib/unictype/pr_radical.c: New file.
35594         * lib/unictype/pr_sentence_terminal.c: New file.
35595         * lib/unictype/pr_soft_dotted.c: New file.
35596         * lib/unictype/pr_space.c: New file.
35597         * lib/unictype/pr_terminal_punctuation.c: New file.
35598         * lib/unictype/pr_test.c: New file.
35599         * lib/unictype/pr_titlecase.c: New file.
35600         * lib/unictype/pr_unassigned_code_value.c: New file.
35601         * lib/unictype/pr_unified_ideograph.c: New file.
35602         * lib/unictype/pr_uppercase.c: New file.
35603         * lib/unictype/pr_variation_selector.c: New file.
35604         * lib/unictype/pr_white_space.c: New file.
35605         * lib/unictype/pr_xid_continue.c: New file.
35606         * lib/unictype/pr_xid_start.c: New file.
35607         * lib/unictype/pr_zero_width.c: New file.
35608         * lib/unictype/scripts.c: New file.
35609         * lib/unictype/sy_c_ident.c: New file.
35610         * lib/unictype/sy_c_whitespace.c: New file.
35611         * lib/unictype/sy_java_ident.c: New file.
35612         * lib/unictype/sy_java_whitespace.c: New file.
35613
35614         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
35615         Unicode 5.0.0.
35616         * lib/unictype/blocks.h: Likewise.
35617         * lib/unictype/categ_C.h: Likewise.
35618         * lib/unictype/categ_Cc.h: Likewise.
35619         * lib/unictype/categ_Cf.h: Likewise.
35620         * lib/unictype/categ_Cn.h: Likewise.
35621         * lib/unictype/categ_Co.h: Likewise.
35622         * lib/unictype/categ_Cs.h: Likewise.
35623         * lib/unictype/categ_L.h: Likewise.
35624         * lib/unictype/categ_Ll.h: Likewise.
35625         * lib/unictype/categ_Lm.h: Likewise.
35626         * lib/unictype/categ_Lo.h: Likewise.
35627         * lib/unictype/categ_Lt.h: Likewise.
35628         * lib/unictype/categ_Lu.h: Likewise.
35629         * lib/unictype/categ_M.h: Likewise.
35630         * lib/unictype/categ_Mc.h: Likewise.
35631         * lib/unictype/categ_Me.h: Likewise.
35632         * lib/unictype/categ_Mn.h: Likewise.
35633         * lib/unictype/categ_N.h: Likewise.
35634         * lib/unictype/categ_Nd.h: Likewise.
35635         * lib/unictype/categ_Nl.h: Likewise.
35636         * lib/unictype/categ_No.h: Likewise.
35637         * lib/unictype/categ_P.h: Likewise.
35638         * lib/unictype/categ_Pc.h: Likewise.
35639         * lib/unictype/categ_Pd.h: Likewise.
35640         * lib/unictype/categ_Pe.h: Likewise.
35641         * lib/unictype/categ_Pf.h: Likewise.
35642         * lib/unictype/categ_Pi.h: Likewise.
35643         * lib/unictype/categ_Po.h: Likewise.
35644         * lib/unictype/categ_Ps.h: Likewise.
35645         * lib/unictype/categ_S.h: Likewise.
35646         * lib/unictype/categ_Sc.h: Likewise.
35647         * lib/unictype/categ_Sk.h: Likewise.
35648         * lib/unictype/categ_Sm.h: Likewise.
35649         * lib/unictype/categ_So.h: Likewise.
35650         * lib/unictype/categ_Z.h: Likewise.
35651         * lib/unictype/categ_Zl.h: Likewise.
35652         * lib/unictype/categ_Zp.h: Likewise.
35653         * lib/unictype/categ_Zs.h: Likewise.
35654         * lib/unictype/categ_of.h: Likewise.
35655         * lib/unictype/combining.h: Likewise.
35656         * lib/unictype/ctype_alnum.h: Likewise.
35657         * lib/unictype/ctype_alpha.h: Likewise.
35658         * lib/unictype/ctype_blank.h: Likewise.
35659         * lib/unictype/ctype_cntrl.h: Likewise.
35660         * lib/unictype/ctype_digit.h: Likewise.
35661         * lib/unictype/ctype_graph.h: Likewise.
35662         * lib/unictype/ctype_lower.h: Likewise.
35663         * lib/unictype/ctype_print.h: Likewise.
35664         * lib/unictype/ctype_punct.h: Likewise.
35665         * lib/unictype/ctype_space.h: Likewise.
35666         * lib/unictype/ctype_upper.h: Likewise.
35667         * lib/unictype/ctype_xdigit.h: Likewise.
35668         * lib/unictype/decdigit.h: Likewise.
35669         * lib/unictype/digit.h: Likewise.
35670         * lib/unictype/mirror.h: Likewise.
35671         * lib/unictype/numeric.h: Likewise.
35672         * lib/unictype/pr_alphabetic.h: Likewise.
35673         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
35674         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
35675         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
35676         * lib/unictype/pr_bidi_block_separator.h: Likewise.
35677         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
35678         * lib/unictype/pr_bidi_common_separator.h: Likewise.
35679         * lib/unictype/pr_bidi_control.h: Likewise.
35680         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
35681         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
35682         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
35683         * lib/unictype/pr_bidi_european_digit.h: Likewise.
35684         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
35685         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
35686         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
35687         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
35688         * lib/unictype/pr_bidi_pdf.h: Likewise.
35689         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
35690         * lib/unictype/pr_bidi_whitespace.h: Likewise.
35691         * lib/unictype/pr_combining.h: Likewise.
35692         * lib/unictype/pr_composite.h: Likewise.
35693         * lib/unictype/pr_currency_symbol.h: Likewise.
35694         * lib/unictype/pr_dash.h: Likewise.
35695         * lib/unictype/pr_decimal_digit.h: Likewise.
35696         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
35697         * lib/unictype/pr_deprecated.h: Likewise.
35698         * lib/unictype/pr_diacritic.h: Likewise.
35699         * lib/unictype/pr_extender.h: Likewise.
35700         * lib/unictype/pr_format_control.h: Likewise.
35701         * lib/unictype/pr_grapheme_base.h: Likewise.
35702         * lib/unictype/pr_grapheme_extend.h: Likewise.
35703         * lib/unictype/pr_grapheme_link.h: Likewise.
35704         * lib/unictype/pr_hex_digit.h: Likewise.
35705         * lib/unictype/pr_hyphen.h: Likewise.
35706         * lib/unictype/pr_id_continue.h: Likewise.
35707         * lib/unictype/pr_id_start.h: Likewise.
35708         * lib/unictype/pr_ideographic.h: Likewise.
35709         * lib/unictype/pr_ids_binary_operator.h: Likewise.
35710         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
35711         * lib/unictype/pr_ignorable_control.h: Likewise.
35712         * lib/unictype/pr_iso_control.h: Likewise.
35713         * lib/unictype/pr_join_control.h: Likewise.
35714         * lib/unictype/pr_left_of_pair.h: Likewise.
35715         * lib/unictype/pr_line_separator.h: Likewise.
35716         * lib/unictype/pr_logical_order_exception.h: Likewise.
35717         * lib/unictype/pr_lowercase.h: Likewise.
35718         * lib/unictype/pr_math.h: Likewise.
35719         * lib/unictype/pr_non_break.h: Likewise.
35720         * lib/unictype/pr_not_a_character.h: Likewise.
35721         * lib/unictype/pr_numeric.h: Likewise.
35722         * lib/unictype/pr_other_alphabetic.h: Likewise.
35723         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
35724         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
35725         * lib/unictype/pr_other_id_continue.h: Likewise.
35726         * lib/unictype/pr_other_id_start.h: Likewise.
35727         * lib/unictype/pr_other_lowercase.h: Likewise.
35728         * lib/unictype/pr_other_math.h: Likewise.
35729         * lib/unictype/pr_other_uppercase.h: Likewise.
35730         * lib/unictype/pr_paired_punctuation.h: Likewise.
35731         * lib/unictype/pr_paragraph_separator.h: Likewise.
35732         * lib/unictype/pr_pattern_syntax.h: Likewise.
35733         * lib/unictype/pr_pattern_white_space.h: Likewise.
35734         * lib/unictype/pr_private_use.h: Likewise.
35735         * lib/unictype/pr_punctuation.h: Likewise.
35736         * lib/unictype/pr_quotation_mark.h: Likewise.
35737         * lib/unictype/pr_radical.h: Likewise.
35738         * lib/unictype/pr_sentence_terminal.h: Likewise.
35739         * lib/unictype/pr_soft_dotted.h: Likewise.
35740         * lib/unictype/pr_space.h: Likewise.
35741         * lib/unictype/pr_terminal_punctuation.h: Likewise.
35742         * lib/unictype/pr_titlecase.h: Likewise.
35743         * lib/unictype/pr_unassigned_code_value.h: Likewise.
35744         * lib/unictype/pr_unified_ideograph.h: Likewise.
35745         * lib/unictype/pr_uppercase.h: Likewise.
35746         * lib/unictype/pr_variation_selector.h: Likewise.
35747         * lib/unictype/pr_white_space.h: Likewise.
35748         * lib/unictype/pr_xid_continue.h: Likewise.
35749         * lib/unictype/pr_xid_start.h: Likewise.
35750         * lib/unictype/pr_zero_width.h: Likewise.
35751         * lib/unictype/scripts.h: Likewise.
35752         * lib/unictype/scripts_byname.gperf: Likewise.
35753         * lib/unictype/sy_c_ident.h: Likewise.
35754         * lib/unictype/sy_c_whitespace.h: Likewise.
35755         * lib/unictype/sy_java_ident.h: Likewise.
35756         * lib/unictype/sy_java_whitespace.h: Likewise.
35757
35758         * lib/unictype/Makefile: New file.
35759         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
35760         glibc.
35761         * lib/unictype/3level.h: New file, copied from glibc.
35762         * lib/unictype/3levelbit.h: New file.
35763
35764 2007-11-11  Bruno Haible  <bruno@clisp.org>
35765
35766         * modules/gperf: New file.
35767         * modules/iconv_open (Depends-on): Add it.
35768         (Makefile.am): Remove the GPERF definition.
35769
35770 2007-11-11  Bruno Haible  <bruno@clisp.org>
35771
35772         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
35773         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
35774
35775 2007-11-11  Bruno Haible  <bruno@clisp.org>
35776
35777         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
35778         (usage): Remove function.
35779
35780 2007-11-11  Bruno Haible  <bruno@clisp.org>
35781
35782         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
35783         gl_FUNC_CEILF_LIBS.
35784         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
35785         gl_FUNC_CEIL_LIBS.
35786         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
35787         gl_FUNC_CEILL_LIBS.
35788         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
35789         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
35790         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
35791
35792 2007-11-11  Bruno Haible  <bruno@clisp.org>
35793
35794         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
35795         roundf were declared but do not exist on functions.
35796         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
35797         roundl were declared but do not exist on functions.
35798         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
35799         HAVE_FLOORL_AND_CEILL, respectively.
35800         Needed for Sun C on Solaris 10.
35801
35802 2007-11-11  Bruno Haible  <bruno@clisp.org>
35803
35804         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
35805         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
35806         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
35807         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
35808         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
35809         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
35810         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
35811         HAVE_DECL_ROUNDF.
35812         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
35813         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
35814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
35815         of HAVE_DECL_ROUND*.
35816         * modules/math (Makefile.am): Update.
35817
35818 2007-11-10  Bruno Haible  <bruno@clisp.org>
35819
35820         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
35821         ptrdiff_t as m4/intl.m4.
35822
35823 2007-11-10  Jim Meyering  <meyering@redhat.com>
35824
35825         Avoid link failure for the argmatch test.
35826         * tests/test-argmatch.c (usage): Define function to avoid a link
35827         failure: argmatch_die requires a usage function.
35828
35829 2007-11-09  Bruno Haible  <bruno@clisp.org>
35830
35831         * doc/functions/snprintf.texi: Mention BeOS deficiency.
35832         * doc/functions/vsnprintf.texi: Likewise.
35833         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
35834         with a size argument < 2.
35835
35836 2007-11-09  Bruno Haible  <bruno@clisp.org>
35837
35838         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
35839         buffer. Fixes an inefficiency introduced on 2007-11-03.
35840
35841 2007-11-09  Bruno Haible  <bruno@clisp.org>
35842
35843         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
35844         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
35845
35846 2007-11-08  Jim Meyering  <meyering@redhat.com>
35847
35848         Change cache variable name prefix "jm_" to "gl_" everywhere.
35849         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
35850         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
35851         * m4/uptime.m4: s/gl_/jm_/
35852
35853 2007-11-07  Bruno Haible  <bruno@clisp.org>
35854
35855         Update to GNU gettext 0.17.
35856         * m4/intl.m4: Update to GNU gettext 0.17.
35857         * m4/po.m4: Likewise.
35858         * modules/gettext (Files): Remove m4/ulonglong.m4.
35859         (configure.ac): Require gettext infrastructure from version 0.17.
35860
35861 2007-11-06  Bruno Haible  <bruno@clisp.org>
35862
35863         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
35864         symbolic values are not defined in a public header.
35865         * lib/freadable.c (freadable) [QNX]: Likewise.
35866         * lib/freadahead.c (freadahead) [QNX]: Likewise.
35867         * lib/freading.c (freading) [QNX]: Likewise.
35868         * lib/fseterr.c (fseterr) [QNX]: Likewise.
35869         * lib/fwritable.c (fwritable) [QNX]: Likewise.
35870         * lib/fwriting.c (fwriting) [QNX]: Likewise.
35871         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
35872         Reported by Alain Magloire.
35873
35874         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
35875
35876 2007-11-05  Bruno Haible  <bruno@clisp.org>
35877
35878         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
35879         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
35880         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
35881         Reported by Eric Blake.
35882
35883 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35884             Bruno Haible  <bruno@clisp.org>
35885
35886         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
35887         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
35888         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
35889         (malloc): Undefine also before including <stdlib.h>.
35890         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
35891         Needed on OSF/1 4.0.
35892
35893 2007-11-05  Jim Meyering  <meyering@redhat.com>
35894
35895         git-version-gen: sync from coreutils.
35896         * build-aux/git-version-gen: Add comments.
35897         Change the first '-' to '.' in the snapshot version string,
35898         e.g., 6.9-377-08144 -> 6.9.377-08144
35899         Remove first parameter.
35900         Don't declare a version "-dirty" merely because a time
35901         stamp has changed.
35902
35903 2007-11-04  Bruno Haible  <bruno@clisp.org>
35904
35905         * lib/lock.h: Protect all macro definitions containing an 'if'
35906         statement through a "do { ... } while (0)".
35907         * lib/tls.h: Likewise.
35908
35909 2007-11-04  Bruno Haible  <bruno@clisp.org>
35910
35911         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
35912
35913 2007-11-04  Bruno Haible  <bruno@clisp.org>
35914
35915         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
35916         * modules/fprintf-posix (Depends-on): Add nocrash.
35917         * modules/snprintf-posix (Depends-on): Likewise.
35918         * modules/sprintf-posix (Depends-on): Likewise.
35919         * modules/vasnprintf-posix (Depends-on): Likewise.
35920         * modules/vasprintf-posix (Depends-on): Likewise.
35921         * modules/vfprintf-posix (Depends-on): Likewise.
35922         * modules/vsnprintf-posix (Depends-on): Likewise.
35923         * modules/vsprintf-posix (Depends-on): Likewise.
35924         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35925         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35926         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35927         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35928         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35929         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35930         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35931
35932 2007-11-04  Bruno Haible  <bruno@clisp.org>
35933
35934         * modules/nocrash: New file.
35935         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
35936         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
35937
35938 2007-11-04  Bruno Haible  <bruno@clisp.org>
35939
35940         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
35941         precision handling.
35942         * tests/test-vasprintf-posix.c (test_function): Likewise.
35943         * tests/test-snprintf-posix.h (test_function): Likewise.
35944         * tests/test-sprintf-posix.h (test_function): Likewise.
35945
35946         Fix *printf behaviour for large precisions on mingw and BeOS.
35947         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
35948         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
35949         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
35950         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35951         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35952         gl_PRINTF_PRECISION and test its result. Invoke
35953         gl_PREREQ_VASNPRINTF_PRECISION.
35954         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35955         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35956         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35957         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35958         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35959         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35960         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): 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-04  Bruno Haible  <bruno@clisp.org>
35971
35972         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
35973
35974 2007-11-04  Bruno Haible  <bruno@clisp.org>
35975
35976         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
35977         Reported by Sylvain Beucler <beuc@gnu.org>.
35978
35979 2007-11-03  Bruno Haible  <bruno@clisp.org>
35980
35981         * tests/test-fprintf-posix2.sh: New file.
35982         * tests/test-fprintf-posix2.c: New file.
35983         * modules/fprintf-posix-tests (Files): Add them.
35984         (TESTS): Add test-fprintf-posix2.sh.
35985         (configure.ac): Check for getrlimit and setrlimit.
35986         (check_PROGRAMS): Add test-fprintf-posix2.
35987
35988         * tests/test-printf-posix2.sh: New file.
35989         * tests/test-printf-posix2.c: New file.
35990         * modules/printf-posix-tests (Files): Add them.
35991         (TESTS): Add test-printf-posix2.sh.
35992         (configure.ac): Check for getrlimit and setrlimit.
35993         (check_PROGRAMS): Add test-printf-posix2.
35994
35995         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
35996         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
35997         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
35998         (decode_double): New function, copied from decode_long_double.
35999         (scale10_round_decimal_decoded): New function, extracted from
36000         scale10_round_decimal_long_double.
36001         (scale10_round_decimal_long_double): Use it.
36002         (scale10_round_decimal_double): New function.
36003         (floorlog10): New function.
36004         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
36005         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
36006         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36007         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36008         gl_PRINTF_ENOMEM and test its result. Invoke
36009         gl_PREREQ_VASNPRINTF_ENOMEM.
36010         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36011         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36012         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36013         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36014         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36015         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36016         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36017         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
36018         * modules/snprintf-posix (Depends-on): Likewise.
36019         * modules/sprintf-posix (Depends-on): Likewise.
36020         * modules/vasnprintf-posix (Depends-on): Likewise.
36021         * modules/vasprintf-posix (Depends-on): Likewise.
36022         * modules/vfprintf-posix (Depends-on): Likewise.
36023         * modules/vsnprintf-posix (Depends-on): Likewise.
36024         * modules/vsprintf-posix (Depends-on): Likewise.
36025         * doc/functions/fprintf.texi: Update.
36026         * doc/functions/printf.texi: Update.
36027         * doc/functions/snprintf.texi: Update.
36028         * doc/functions/sprintf.texi: Update.
36029         * doc/functions/vfprintf.texi: Update.
36030         * doc/functions/vprintf.texi: Update.
36031         * doc/functions/vsnprintf.texi: Update.
36032         * doc/functions/vsprintf.texi: Update.
36033
36034 2007-11-03  Bruno Haible  <bruno@clisp.org>
36035
36036         * modules/frexp-nolibm-tests: New file.
36037
36038         * modules/frexp-nolibm: New file.
36039         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
36040
36041 2007-11-03  Bruno Haible  <bruno@clisp.org>
36042
36043         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
36044         value is C99 compliant.
36045         Needed for OSF/1 5.1.
36046
36047 2007-11-03  Bruno Haible  <bruno@clisp.org>
36048
36049         Fix out-of-memory handling of vasnprintf.
36050         * lib/printf-parse.c: Include <errno.h>.
36051         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
36052         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
36053         is already set.
36054
36055 2007-11-02  Eric Blake  <ebb9@byu.net>
36056
36057         Fix tests on cygwin.
36058         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
36059
36060 2007-11-01  Bruno Haible  <bruno@clisp.org>
36061
36062         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
36063         warning.
36064         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
36065         needed for POSIX compatibility.
36066
36067 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
36068
36069         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
36070         for compatibility with GNU.
36071
36072 2007-11-01  Bruno Haible  <bruno@clisp.org>
36073
36074         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
36075         (putenv): Renamed from rpl_putenv. Change argument type from
36076         'const char *' to 'char *'.
36077         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
36078         of defining putenv in config.h, just set REPLACE_PUTENV.
36079         * modules/putenv (Depends-on): Add stdlib.
36080         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36081         (Include): Use <stdlib.h>.
36082         * lib/stdlib.in.h (putenv): New declaration.
36083         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
36084         REPLACE_PUTENV.
36085         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
36086         REPLACE_PUTENV.
36087         Needed for MacOS X 10.5.0.
36088         Reported by Peter O'Gorman <peter@pogma.com>.
36089
36090 2007-11-01  Jim Meyering  <meyering@redhat.com>
36091
36092         Treat an empty date string exactly like "0".
36093         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
36094         if the remaining date string (to be parsed) is empty, use "0".
36095         Reported by Mischa Molhoek and discussed in this thread:
36096         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
36097
36098 2007-10-31  Bruno Haible  <bruno@clisp.org>
36099
36100         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
36101         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
36102         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
36103         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
36104         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
36105         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
36106
36107 2007-10-31  Bruno Haible  <bruno@clisp.org>
36108
36109         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
36110         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
36111         (AC_TYPE_LONG_LONG_INT): Use it.
36112         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
36113         it as well.
36114         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
36115         to m4/longlong.m4.
36116         * modules/stdint (Files): Remove m4/ulonglong.m4.
36117         * modules/strtoull (Files): Use m4/longlong.m4 instead of
36118         m4/ulonglong.m4.
36119         * modules/strtoumax (Files): Likewise.
36120
36121 2007-10-30  Bruno Haible  <bruno@clisp.org>
36122
36123         * modules/xvasprintf-posix: New file.
36124         Suggested by Eric Blake.
36125
36126 2007-10-30  Bruno Haible  <bruno@clisp.org>
36127
36128         * modules/xprintf-posix-tests: New file.
36129         * tests/test-xprintf-posix.sh: New file.
36130         * tests/test-xprintf-posix.c: New file.
36131         * tests/test-xfprintf-posix.c: New file.
36132
36133         * modules/xprintf-posix: New file.
36134
36135 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36136
36137         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
36138         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
36139         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
36140
36141 2007-10-29  Bruno Haible  <bruno@clisp.org>
36142
36143         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
36144         contain the special marker '_cv_'.
36145         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36146         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36147         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36148         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
36149         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36150         Reported by Ralf Wildenhues.
36151
36152 2007-10-29  Bruno Haible  <bruno@clisp.org>
36153
36154         * gnulib-tool (func_import): When --lgpl is not specified, set
36155         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
36156         GPLv3.
36157         Reported by Simon Josefsson.
36158
36159 2007-10-28  Bruno Haible  <bruno@clisp.org>
36160
36161         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
36162         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
36163         HAVE_DECL_ISFINITE.
36164         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36165         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
36166         HAVE_DECL_ISFINITE.
36167
36168 2007-10-28  Bruno Haible  <bruno@clisp.org>
36169
36170         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
36171         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
36172
36173 2007-10-28  Bruno Haible  <bruno@clisp.org>
36174
36175         Fix link errors with Sun C 5.0 on Solaris 10.
36176         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
36177         function is declared but not present in the compiler's libm.
36178         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
36179         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
36180         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
36181         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
36182         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
36183         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
36184         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
36185         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36186         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
36187         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
36188         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
36189         HAVE_DECL_FLOORL.
36190
36191 2007-10-28  Bruno Haible  <bruno@clisp.org>
36192
36193         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
36194         gl_FUNC_FLOORL. Cache the result.
36195         (gl_FUNC_FLOORL): Use it.
36196         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
36197         gl_FUNC_CEILL. Cache the result.
36198         (gl_FUNC_CEILL): Use it.
36199
36200         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
36201         gl_FUNC_FLOOR. Cache the result.
36202         (gl_FUNC_FLOOR): Use it.
36203         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
36204         gl_FUNC_CEIL. Cache the result.
36205         (gl_FUNC_CEIL): Use it.
36206
36207         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
36208         gl_FUNC_FLOORF. Cache the result.
36209         (gl_FUNC_FLOORF): Use it.
36210         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
36211         gl_FUNC_CEILF. Cache the result.
36212         (gl_FUNC_CEILF): Use it.
36213
36214 2007-10-28  Bruno Haible  <bruno@clisp.org>
36215
36216         * gnulib-tool: Allow specifying the LGPL version number through
36217         --lgpl=2 or --lgpl=3.
36218         (func_usage): Document --lgpl with argument.
36219         Handle --lgpl=... arguments.
36220         (func_import): Recognize also gl_LGPL calls with an argument. When
36221         --lgpl=2 is used and the module's license is just LGPL, report an
36222         error. Set sed_transform_lib_file according to the lgpl variable. In
36223         the generated files, use --lgpl or gl_LGPL invocations with argument,
36224         if necessary.
36225         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
36226         an LGPv2+ license.
36227         * doc/gnulib-tool.texi (Modified imports): Update explanation of
36228         gl_LGPL macro.
36229
36230 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36231             Bruno Haible  <bruno@clisp.org>
36232
36233         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
36234         (u16_uctomb_aux): Likewise.
36235         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
36236         !HAVE_INLINE.
36237         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
36238
36239 2007-10-28  Bruno Haible  <bruno@clisp.org>
36240
36241         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
36242         Invoke AM_GETTEXT_OPTION if it exists.
36243         * modules/vasprintf: Likewise.
36244         * modules/verror: Likewise.
36245         * modules/xprintf: Likewise.
36246         * modules/xvasprintf: Likewise.
36247
36248 2007-10-27  Ben Pfaff  <blp@gnu.org>
36249
36250         * lib/math.in.h: Define isfinite macro and prototypes for
36251         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
36252         implementations.
36253         * m4/math_h.m4: New substitutions for isfinite module.
36254         * lib/isfinite.c: New file.
36255         * m4/isfinite.m4: New file.
36256         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
36257         * modules/isfinite: New file.
36258         * modules/isfinite-tests: New file.
36259         * tests/tests-isfinite.c: New file.
36260         * doc/functions/isfinite.texi: Mention isfinite module.
36261         * MODULES.html.sh: Mention new module.
36262
36263 2007-10-27  Ben Pfaff  <blp@gnu.org>
36264
36265         Ralf Wildenhues reported that Tru64 4.0D declares the round
36266         functions but does not have definitions.
36267         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
36268         cannot be found in any library, set the output variable to
36269         "missing" instead of "".
36270         * m4/round.m4: Also use our substitute if we cannot find round in
36271         any library, even if it is declared.
36272         * m4/roundf.m4: Likewise for roundf.
36273         * m4/roundl.m4: Likewise for roundl.
36274         * lib/math.in.h: Undefine roundf, round, roundl before defining
36275         their replacements, to allow for hypothetical systems where these
36276         may be defined as macros but not available in libraries.
36277
36278 2007-10-27  Bruno Haible  <bruno@clisp.org>
36279
36280         * doc/gnulib.texi: Invoke @firstparagraphindent.
36281         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
36282         changes in gnulib.
36283         (Source changes): New section.
36284
36285 2007-10-26  Bruno Haible  <bruno@clisp.org>
36286
36287         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
36288         borrowed from autoconf.
36289
36290 2007-10-26  Bruno Haible  <bruno@clisp.org>
36291
36292         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
36293         strerror returned the empty string. Needed on HP-UX 11.00.
36294
36295 2007-10-24  Micah Cowan  <micah@cowan.name>
36296
36297         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
36298         * build-aux/bootstrap: Remove support for now-unnecessary option,
36299         --cvs-user, and envvars CVS_USER, CVS_RSH.
36300
36301 2007-10-24  Jim Meyering  <meyering@redhat.com>
36302
36303         Avoid diagnostics from sha1sum when there is no cached checksum.
36304         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
36305         if the po.s1 file hasn't been created yet.
36306
36307         * build-aux/bootstrap: Sync from coreutils:
36308         2007-10-24  Jim Meyering  <meyering@redhat.com>
36309         Get gnulib from the git repository, not from an obsolete cvs one.
36310         * build-aux/bootstrap: Suggestion from Micah Cowan.
36311         2007-10-04  Jim Meyering  <jim@meyering.net>
36312         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
36313         (update_po_files): Work also when there are no .po files in po/.
36314
36315 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
36316
36317         * README: Append ".git" to git and cg examples.
36318         Problem reported by Benoit Sigoure.
36319
36320 2007-10-23  Micah Cowan  <micah@cowan.name>
36321
36322         * users.txt: Add wget.
36323
36324 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36325
36326         Fix linking of some unistdio tests on FreeBSD.
36327         * modules/unistdio/u16-vsnprintf-tests
36328         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
36329         * modules/unistdio/u16-vsprintf-tests
36330         (test_u16_vsnprintf1_LDADD): Likewise.
36331         * modules/unistdio/u32-vsnprintf-tests
36332         (test_u32_vsnprintf1_LDADD): Likewise.
36333         * modules/unistdio/u32-vsprintf-tests
36334         (test_u32_vsprintf1_LDADD): Likewise.
36335         * modules/unistdio/u8-vsnprintf-tests
36336         (test_u8_vsnprintf1_LDADD): Likewise.
36337         * modules/unistdio/u8-vsprintf-tests
36338         (test_u8_vsprintf1_LDADD): Likewise.
36339         * modules/unistdio/ulc-vsnprintf-tests
36340         (test_ulc_vsnprintf1_LDADD): Likewise.
36341         * modules/unistdio/ulc-vsprintf-tests
36342         (test_ulc_vsprintf1_LDADD): Likewise.
36343
36344         Fix linking of some uniconv tests on FreeBSD.
36345         * modules/uniconv/u16-conv-from-enc-tests
36346         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
36347         * modules/uniconv/u16-conv-to-enc-tests
36348         (test_u16_conv_to_enc_LDADD): Likewise.
36349         * modules/uniconv/u16-strconv-from-enc-tests
36350         (test_u16_strconv_from_enc_LDADD): Likewise.
36351         * modules/uniconv/u16-strconv-to-enc-tests
36352         (test_u16_strconv_to_enc_LDADD): Likewise.
36353         * modules/uniconv/u32-conv-from-enc-tests
36354         (test_u32_conv_from_enc_LDADD): Likewise.
36355         * modules/uniconv/u32-conv-to-enc-tests
36356         (test_u32_conv_to_enc_LDADD): Likewise.
36357         * modules/uniconv/u32-strconv-from-enc-tests
36358         (test_u32_strconv_from_enc_LDADD): Likewise.
36359         * modules/uniconv/u32-strconv-to-enc-tests
36360         (test_u32_strconv_to_enc_LDADD): Likewise.
36361         * modules/uniconv/u8-conv-from-enc-tests
36362         (test_u8_conv_from_enc_LDADD): Likewise.
36363         * modules/uniconv/u8-conv-to-enc-tests
36364         (test_u8_conv_to_enc_LDADD): Likewise.
36365         * modules/uniconv/u8-strconv-from-enc-tests
36366         (test_u8_strconv_from_enc_LDADD): Likewise.
36367         * modules/uniconv/u8-strconv-to-enc-tests
36368         (test_u8_strconv_to_enc_LDADD): Likewise.
36369
36370 2007-10-22  Bruno Haible  <bruno@clisp.org>
36371
36372         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
36373         size.
36374
36375 2007-10-22  Eric Blake  <ebb9@byu.net>
36376
36377         Tweak x*printf documentation.
36378         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
36379         variable name and comments.
36380         Suggested by Bruno Haible.
36381
36382 2007-10-22  Bruno Haible  <bruno@clisp.org>
36383
36384         * lib/acl.c (copy_acl): Fix file name in comment.
36385
36386 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36387
36388         Fix Tru64 problem with stdbool.h.
36389         * lib/stdbool.in.h (false, true):
36390         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
36391         Don't declare as an enum in this situation; it runs afoul of Tru64.
36392         Problem reported by Steven M. Schweda in
36393         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
36394
36395 2007-10-22  Eric Blake  <ebb9@byu.net>
36396
36397         Also wrap vf?printf.
36398         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
36399         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
36400         (xvprintf, xvfprintf): New functions.
36401
36402 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36403
36404         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
36405         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
36406
36407         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
36408         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
36409
36410 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36411
36412         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
36413         by Bruno Haible.
36414
36415 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36416
36417         * lib/getloadavg.c
36418         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
36419         Undef `sys' after including sys/table.h, for Tru64 4.0D.
36420
36421         * tests/test-i-ring.c: Work for C89.
36422
36423 2007-10-22  Bruno Haible  <bruno@clisp.org>
36424
36425         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
36426         -1u, in preprocessor expression, so that we don't test for the bug
36427         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
36428         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
36429
36430 2007-10-22  Eric Blake  <ebb9@byu.net>
36431
36432         * tests/test-yesno.sh: Silence stderr during test.
36433
36434 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36435
36436         * modules/crypto/gc-camellia: New file.
36437
36438         * m4/gc-camellia.m4: New file.
36439
36440         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
36441
36442         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
36443
36444 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36445
36446         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
36447         --help to stdout.  Reported by sms@antinode.org (Steven
36448         M. Schweda).
36449
36450 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36451
36452         * users.txt: Fix link to libksba.
36453
36454 2007-10-21  Ben Pfaff  <blp@gnu.org>
36455
36456         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
36457         round.c roundf implementation that depends on floorf and ceilf to
36458         be tested unconditionally.
36459
36460 2007-10-21  Ben Pfaff  <blp@gnu.org>
36461
36462         * m4/check-libm-func.m4: Removed.
36463         * m4/check-math-lib.m4: New file.
36464         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
36465         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
36466         definition and lack of AC_LIBOBJ([roundf]).
36467         * m4/roundl.m4: Ditto, and similarly for roundl.
36468         * modules/round: Reference new m4 file.
36469         * modules/roundf: Ditto.
36470         * modules/roundl: Ditto.
36471         * tests/test-round2.c (main): Use ROUND instead of round.
36472         Bug report from Bruno Haible.
36473
36474 2007-10-21  Bruno Haible  <bruno@clisp.org>
36475
36476         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
36477         context.
36478
36479 2007-10-21  Bruno Haible  <bruno@clisp.org>
36480
36481         * tests/test-wcwidth.c (main): Allow negative result for some control
36482         characters.
36483
36484         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
36485         Needed on OSF/1 5.1.
36486
36487 2007-10-21  Bruno Haible  <bruno@clisp.org>
36488
36489         * tests/test-floorf1.c: Include isnanf.h.
36490         (main): Use isnanf() instead of isnan().
36491         * tests/test-ceilf1.c: Include isnanf.h.
36492         (main): Use isnanf() instead of isnan().
36493         * tests/test-truncf1.c: Include isnanf.h.
36494         (main): Use isnanf() instead of isnan().
36495         * tests/test-roundf1.c: Include isnanf.h.
36496         (main): Use isnanf() instead of isnan().
36497
36498 2007-10-21  Eric Blake  <ebb9@byu.net>
36499
36500         * users.txt: Update URL for m4.
36501
36502 2007-10-21  Bruno Haible  <bruno@clisp.org>
36503
36504         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
36505
36506 2007-10-21  Bruno Haible  <bruno@clisp.org>
36507
36508         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
36509         Git's management files if the CVS files are not present.
36510
36511 2007-10-20  Bruno Haible  <bruno@clisp.org>
36512
36513         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
36514         gcc-3.4.x.
36515
36516 2007-10-20  Ben Pfaff  <blp@gnu.org>
36517
36518         * lib/math.in.h: Declare round, roundf, roundl if we are providing
36519         implementations.
36520         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
36521         * lib/round.c: New file.
36522         * lib/roundf.c: New file.
36523         * lib/roundl.c: New file.
36524         * m4/round.m4: New file.
36525         * m4/roundf.m4: New file.
36526         * m4/roundl.m4: New file.
36527         * m4/check-libm-func-m4: New file.
36528         * modules/math: Replace round, roundf, roundl related @VARS@ in
36529         math.in.h.
36530         * modules/round: New file.
36531         * modules/round-tests: New file.
36532         * modules/roundf: New file.
36533         * modules/roundf-tests: New file.
36534         * modules/roundl: New file.
36535         * modules/roundl-tests: New file.
36536         * tests/test-round1.c: New file.
36537         * tests/test-round2.c: New file.
36538         * tests/test-roundf1.c: New file.
36539         * tests/test-roundf2.c: New file.
36540         * tests/test-roundl.c: New file.
36541         * doc/functions/round.texi: Mention round module.
36542         * doc/functions/roundf.texi: Mention roundf module.
36543         * doc/functions/roundl.texi: Mention roundl module.
36544         * MODULES.html.sh: Mention new modules.
36545         Thanks to Bruno Haible for suggestions.
36546
36547 2007-10-20  Jim Meyering  <meyering@redhat.com>
36548
36549         * lib/xprintf.c: Include <config.h> unconditionally.
36550
36551         Change xprintf's license to GPL.
36552         * modules/xprintf (License): s/LGPL/GPL/, since this module
36553         depends on modules (exit and exitfail) which are GPL.
36554         Suggestion from Bruno Haible.
36555
36556         xprintf fixes.
36557         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
36558         Use a clearer diagnostic.
36559         Patch from Bruno Haible.
36560
36561 2007-10-20  Bruno Haible  <bruno@clisp.org>
36562
36563         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
36564         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
36565         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36566
36567 2007-10-20  Bruno Haible  <bruno@clisp.org>
36568
36569         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
36570         precision in the comparison result > x - 1 or similar.
36571         * tests/test-ceilf2.c (correct_result_p): Likewise.
36572         * tests/test-truncf2.c (correct_result_p): Likewise.
36573         * tests/test-trunc2.c (correct_result_p): Likewise.
36574         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36575
36576 2007-10-20  Bruno Haible  <bruno@clisp.org>
36577
36578         * modules/ceil: New file.
36579         * m4/ceil.m4: New file.
36580         * doc/functions/ceil.texi: Mention the 'ceil' module.
36581
36582 2007-10-20  Bruno Haible  <bruno@clisp.org>
36583
36584         * modules/floor: New file.
36585         * m4/floor.m4: New file.
36586         * doc/functions/floor.texi: Mention the 'floor' module.
36587
36588 2007-10-20  Bruno Haible  <bruno@clisp.org>
36589
36590         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
36591         of %a.
36592         * modules/floorf-tests (Depends-on): Likewise.
36593         * modules/truncf-tests (Depends-on): Likewise.
36594         * modules/trunc-tests (Depends-on): Likewise.
36595         Reported by Ben Pfaff.
36596
36597 2007-10-19  Jim Meyering  <meyering@redhat.com>
36598
36599         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
36600         Don't bother testing specific errno values.  Just test ferror.
36601
36602         New module: xprintf
36603         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
36604
36605 2007-10-19  Bruno Haible  <bruno@clisp.org>
36606
36607         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
36608         syntax.
36609         * modules/javaexec (Makefile.am): Likewise.
36610         * modules/relocatable-prog (Makefile.am): Likewise.
36611         Suggested by Jim Meyering.
36612
36613 2007-10-18  Bruno Haible  <bruno@clisp.org>
36614
36615         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
36616         Reported by Jim Meyering.
36617
36618 2007-10-18  Eric Blake  <ebb9@byu.net>
36619
36620         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
36621
36622 2007-10-18  Bruno Haible  <bruno@clisp.org>
36623
36624         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
36625         the format string into writable memory. Needed in Fortify conditions.
36626
36627 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
36628             Bruno Haible  <bruno@clisp.org>
36629
36630         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
36631         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
36632         * modules/trim (Depends-on): Add mbchar.
36633         (configure.ac): Add gl_FUNC_MBRTOWC.
36634         (Makefile.am): Augment lib_SOURCES.
36635
36636 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
36637
36638         Modify glob.c to use fstatat and dirfd, to simplify it.
36639         Suggested by Eric Blake.
36640         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
36641         Don't include <stdbool.h>; not used.
36642         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
36643         (link_exists_p): Simplify implementation, since we can now assume
36644         dirfd and fstatat.
36645         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
36646
36647 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36648
36649         * gnulib-tool (func_get_dependencies): Fix sed script to
36650         match only tests.
36651
36652 2007-10-17  Bruno Haible  <bruno@clisp.org>
36653
36654         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
36655         allow locale names without encoding suffix.
36656         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36657         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36658
36659 2007-10-16  Bruno Haible  <bruno@clisp.org>
36660
36661         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
36662         * lib/getgroups.c (getgroups): Likewise.
36663         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
36664
36665 2007-10-16  Bruno Haible  <bruno@clisp.org>
36666
36667         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
36668         * modules/malloc-posix (License): Likewise.
36669         * modules/realloc-posix (License): Likewise.
36670         * modules/calloc-posix (License): Likewise.
36671         * modules/intprops (License): Change from GPL to LGPL, with
36672         Paul Eggert's approval.
36673
36674 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36675
36676         Merge glibc changes into lib/glob.c.
36677
36678         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
36679         2007-10-15 04:59:03 UTC.  Here are the changes:
36680
36681         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
36682
36683         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
36684
36685         * lib/glob.c: Add some branch prediction throughout.
36686
36687         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
36688
36689         [BZ #5103]
36690         * lib/glob.c (glob): Recognize patterns starting \/.
36691
36692         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
36693
36694         [BZ #3996]
36695         * lib/glob.c (attribute_hidden): Define if not defined.
36696         (glob): Unescape dirname, filename or username when needed and not
36697         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
36698         is NULL.  Handle unescaped [ in pattern without closing ].
36699         Don't pass GLOB_CHECK down to recursive glob for directories.
36700         (__glob_pattern_type): New function.
36701         (__glob_pattern_p): Implement using __glob_pattern_type.
36702         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
36703         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
36704         Remove unreachable code.
36705
36706         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
36707
36708         * lib/glob.c (glob_in_dir): Add some comments and asserts to
36709         explain why there are no leaks.
36710
36711         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
36712
36713         [BZ #3253]
36714         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
36715         time, rather allocate increasingly bigger arrays of pointers, if
36716         possible with alloca, if too large with malloc.
36717
36718 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36719
36720         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
36721         Problem reported by H.Merijn Brand in
36722         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
36723         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
36724         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
36725
36726 2007-10-15  Bruno Haible  <bruno@clisp.org>
36727
36728         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
36729         with explicit rpl_ prefix.
36730         * lib/fopen.c (fopen): Likewise.
36731         * lib/freopen.c (freopen): Likewise.
36732         * lib/iconv.c (iconv): Likewise.
36733         * lib/iconv_close.c (iconv_close): Likewise.
36734
36735 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36736
36737         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
36738
36739 2007-10-15  Bruno Haible  <bruno@clisp.org>
36740
36741         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
36742         <stddef.h> instead of <stdlib.h> since we only need NULL.
36743         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36744
36745 2007-10-15  Bruno Haible  <bruno@clisp.org>
36746
36747         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
36748         Replace paragraph talking about LIBOBJS.
36749         Reported by Colin Watson <cjwatson@debian.org>.
36750
36751 2007-10-15  Bruno Haible  <bruno@clisp.org>
36752
36753         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
36754         <stdlib.h> before using NULL.
36755
36756 2007-10-15  Simon Josefsson  <simon@josefsson.org>
36757
36758         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
36759         Reported by Albert Chin <china@thewrittenword.com>.
36760
36761 2007-10-14  Bruno Haible  <bruno@clisp.org>
36762
36763         * modules/iconv_open-utf-tests: New file.
36764         * tests/test-iconv-utf.c: New file.
36765
36766         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
36767         * modules/iconv_open-utf: New file.
36768         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
36769         (iconv, iconv_close): New declarations.
36770         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
36771         be defined.
36772         (iconv_open): Add special handling of conversion between UTF-8 and
36773         UTF-{16,32}{BE,LE}.
36774         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
36775         * lib/iconv_close.c: New file.
36776         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
36777         gl_FUNC_ICONV_OPEN.
36778         (gl_FUNC_ICONV_OPEN): Use it.
36779         (gl_FUNC_ICONV_OPEN_UTF): New macro.
36780         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
36781         and REPLACE_ICONV_UTF.
36782         * modules/iconv_open (Depends-on): Add c-strcase.
36783         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
36784         ICONV_CONST.
36785         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
36786
36787 2007-10-13  Albert Chin  <china@thewrittenword.com>
36788             Bruno Haible  <bruno@clisp.org>
36789
36790         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
36791         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
36792
36793 2007-10-13  Bruno Haible  <bruno@clisp.org>
36794
36795         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
36796         defined, use the ISO C99 inline semantics.
36797         * lib/argp.h (ARGP_EI): Likewise.
36798
36799 2007-10-13  Bruno Haible  <bruno@clisp.org>
36800
36801         Handle 'inline' change in gcc 4.3.0.
36802         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
36803         argp_fmtstream_write, argp_fmtstream_set_lmargin,
36804         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
36805         argp_fmtstream_point): Disable 'extern' declaration if the function
36806         definition is going to be provided inline.
36807         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
36808         semantics, not the ISO C99 inline semantics.
36809         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
36810         'extern' declaration if the function definition is going to be provided
36811         inline.
36812         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
36813         the GNU C inline semantics, not the ISO C99 inline semantics. With
36814         GCC 4.2, avoid a warning.
36815
36816 2007-10-13  Bruno Haible  <bruno@clisp.org>
36817
36818         * lib/freading.h (freading): Enable the use of __freading for
36819         glibc >= 2.7.
36820         * lib/freading.c (freading): Likewise.
36821
36822 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36823
36824         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
36825         "warning: C99 inline functions are not supported; using GNU89".
36826
36827 2007-10-12  Bruno Haible  <bruno@clisp.org>
36828
36829         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
36830         of 2.
36831         * tests/test-ceilf2.c: New file.
36832         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
36833
36834         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
36835         * modules/ceilf-tests: Update.
36836
36837 2007-10-12  Bruno Haible  <bruno@clisp.org>
36838
36839         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
36840         of 2.
36841         * tests/test-floorf2.c: New file.
36842         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
36843
36844         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
36845         * modules/floorf-tests: Update.
36846
36847 2007-10-12  Bruno Haible  <bruno@clisp.org>
36848
36849         * tests/test-trunc2.c: New file.
36850         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
36851
36852         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
36853         * modules/trunc-tests: Update.
36854
36855 2007-10-12  Bruno Haible  <bruno@clisp.org>
36856
36857         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
36858         of 2.
36859         * tests/test-truncf2.c: New file.
36860         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
36861
36862         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
36863         * modules/truncf-tests: Update.
36864
36865 2007-10-11  Eric Blake  <ebb9@byu.net>
36866
36867         Don't claim strerror is broken on Interix.
36868         * doc/functions/strerror.texi (strerror): Known broken systems are
36869         now Solaris 8, and not Interix.
36870         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
36871         Interix on cross-compile.
36872         Reported by Martin Koeppe in
36873         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
36874
36875 2007-10-11  Bruno Haible  <bruno@clisp.org>
36876
36877         * modules/i-ring-tests: New file.
36878         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
36879         instead of assert.
36880
36881 2007-10-11  Bruno Haible  <bruno@clisp.org>
36882
36883         * modules/filenamecat-tests: New file.
36884         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
36885         * lib/filenamecat.c: Remove test code.
36886
36887 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
36888
36889         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
36890
36891         * lib/strerror.c: Include <string.h> always, to test interface,
36892         and to remove the need for the dummy.
36893         Include intprops.h to compute width instead of doing it ourselves
36894         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
36895         (strerror): Define it to return NULL if there's no system strerror.
36896         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
36897         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
36898         ancient pre-strerror Unix systems well any more.  Saying "unknown
36899         system error" is enough.
36900         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
36901         simpler strerror.c implementation.
36902         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
36903         Simplify the tests to reflect the simpler strerror implementation.
36904         * modules/strerror (Depends-on): Add intprops.
36905
36906 2007-10-09  Eric Blake  <ebb9@byu.net>
36907
36908         Silence test-fpending.
36909         * modules/fpending-tests (Files): Add wrapper script.
36910         * tests/test-fpending.sh: New file.
36911
36912 2007-10-09  Bruno Haible  <bruno@clisp.org>
36913
36914         * MODULES.html.sh (func_module): Don't create a hyperlink for
36915         function names like 'printf_frexp'.
36916         (Misc): Add crc, memxor.
36917         (Characteristics of floating types): New section.
36918         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
36919         isnanf-nolibm, signbit, trunc, truncf, truncl.
36920         (Enhancements for ISO C 99 functions): New subsection Input/output.
36921         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
36922         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
36923         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
36924         (Compatibility checks for POSIX:2001 functions): Add clock-time.
36925         (Enhancements for POSIX:2001 functions): Add chdir-long.
36926         (File system functions): Add areadlink, chdir-safer, read-file.
36927         Remove cycle-check.
36928         (File system as inode set): New section.
36929         (Date and time): Add gethrxtime.
36930         (Multithreading): Add openmp.
36931         (Internationalization functions): Add localename.
36932         (Unicode string functions): Add unistr/u*-mbsnlen.
36933         (Support for maintaining and releasing projects): Add git-version-gen.
36934         (Lone files): Remove directories.
36935
36936 2007-10-08  Ben Pfaff  <blp@gnu.org>
36937
36938         * lib/xmalloca.h: Fix typo in comment.
36939
36940 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
36941
36942         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
36943         when avoiding problems with integer overflow.  Use a portable test
36944         instead.
36945
36946 2007-10-08  Simon Josefsson  <simon@josefsson.org>
36947
36948         * modules/dummy (License): Change to LGPLv2+.
36949         * modules/float (License): Likewise
36950         * modules/realloc (License): Likewise
36951         * modules/stdlib (License): Likewise
36952
36953 2007-10-07  Bruno Haible  <bruno@clisp.org>
36954
36955         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
36956         * floor.c (TWO_MANT_DIG): Likewise.
36957         * ceil.c (TWO_MANT_DIG): Likewise.
36958         Reported by Ben Pfaff.
36959
36960 2007-10-07  Bruno Haible  <bruno@clisp.org>
36961
36962         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
36963         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
36964         * lib/frexp.c (FUNC): Likewise.
36965         * lib/printf-frexp.h (printf_frexp): Likewise.
36966         * lib/printf-frexpl.h (printf_frexpl): Likewise.
36967         * lib/printf-frexp.c (FUNC): Likewise.
36968         Suggested by Jim Meyering.
36969
36970 2007-10-07  Jim Meyering  <meyering@redhat.com>
36971
36972         Make xnanosleep's integer overflow test more robust.
36973         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
36974         so that gcc-4.3.0 doesn't optimize away this test for overflow.
36975
36976 2007-10-07  Bruno Haible  <bruno@clisp.org>
36977
36978         * NEWS: Mention the license change.
36979
36980         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
36981         abbreviations in the modules files.
36982
36983         Change copyright notice from GPLv2+ to GPLv3+.
36984         * README: Change copyright notice.
36985         * MODULES.html.sh: Likewise.
36986         * build-aux/bootstrap.conf: Likewise.
36987         * build-aux/config.libpath: Likewise.
36988         * build-aux/csharpcomp.sh.in: Likewise.
36989         * build-aux/csharpexec.sh.in: Likewise.
36990         * build-aux/install-reloc: Likewise.
36991         * build-aux/javacomp.sh.in: Likewise.
36992         * build-aux/javaexec.sh.in: Likewise.
36993         * build-aux/ldd.sh.in: Likewise.
36994         * build-aux/reloc-ldflags: Likewise.
36995         * build-aux/relocatable.sh.in: Likewise.
36996         * build-aux/x-to-1.in: Likewise.
36997         * check-module: Likewise.
36998         * config/srclistvars.sh: Likewise.
36999         * gnulib-tool: Likewise.
37000         * lib/acl-internal.h: Likewise.
37001         * lib/acl.c: Likewise.
37002         * lib/acl.h: Likewise.
37003         * lib/acl_entries.c: Likewise.
37004         * lib/areadlink-with-size.c: Likewise.
37005         * lib/areadlink.c: Likewise.
37006         * lib/areadlink.h: Likewise.
37007         * lib/argmatch.c: Likewise.
37008         * lib/argmatch.h: Likewise.
37009         * lib/argp-ba.c: Likewise.
37010         * lib/argp-eexst.c: Likewise.
37011         * lib/argp-fmtstream.c: Likewise.
37012         * lib/argp-fmtstream.h: Likewise.
37013         * lib/argp-fs-xinl.c: Likewise.
37014         * lib/argp-help.c: Likewise.
37015         * lib/argp-namefrob.h: Likewise.
37016         * lib/argp-parse.c: Likewise.
37017         * lib/argp-pin.c: Likewise.
37018         * lib/argp-pv.c: Likewise.
37019         * lib/argp-pvh.c: Likewise.
37020         * lib/argp-xinl.c: Likewise.
37021         * lib/argp.h: Likewise.
37022         * lib/at-func.c: Likewise.
37023         * lib/atanl.c: Likewise.
37024         * lib/backupfile.c: Likewise.
37025         * lib/backupfile.h: Likewise.
37026         * lib/basename.c: Likewise.
37027         * lib/binary-io.h: Likewise.
37028         * lib/byteswap.in.h: Likewise.
37029         * lib/c-stack.c: Likewise.
37030         * lib/c-stack.h: Likewise.
37031         * lib/c-strcasestr.c: Likewise.
37032         * lib/c-strcasestr.h: Likewise.
37033         * lib/c-strstr.c: Likewise.
37034         * lib/c-strstr.h: Likewise.
37035         * lib/c-strtod.c: Likewise.
37036         * lib/calloc.c: Likewise.
37037         * lib/canon-host.c: Likewise.
37038         * lib/canon-host.h: Likewise.
37039         * lib/canonicalize-lgpl.c: Likewise.
37040         * lib/canonicalize.c: Likewise.
37041         * lib/canonicalize.h: Likewise.
37042         * lib/ceil.c: Likewise.
37043         * lib/ceilf.c: Likewise.
37044         * lib/ceill.c: Likewise.
37045         * lib/chdir-long.c: Likewise.
37046         * lib/chdir-long.h: Likewise.
37047         * lib/chdir-safer.c: Likewise.
37048         * lib/chdir-safer.h: Likewise.
37049         * lib/chown.c: Likewise.
37050         * lib/classpath.c: Likewise.
37051         * lib/classpath.h: Likewise.
37052         * lib/clean-temp.c: Likewise.
37053         * lib/clean-temp.h: Likewise.
37054         * lib/cloexec.c: Likewise.
37055         * lib/close-stream.c: Likewise.
37056         * lib/closein.c: Likewise.
37057         * lib/closein.h: Likewise.
37058         * lib/closeout.c: Likewise.
37059         * lib/closeout.h: Likewise.
37060         * lib/concat-filename.c: Likewise.
37061         * lib/copy-file.c: Likewise.
37062         * lib/copy-file.h: Likewise.
37063         * lib/count-one-bits.h: Likewise.
37064         * lib/crc.c: Likewise.
37065         * lib/crc.h: Likewise.
37066         * lib/creat-safer.c: Likewise.
37067         * lib/csharpcomp.c: Likewise.
37068         * lib/csharpcomp.h: Likewise.
37069         * lib/csharpexec.c: Likewise.
37070         * lib/csharpexec.h: Likewise.
37071         * lib/cycle-check.c: Likewise.
37072         * lib/cycle-check.h: Likewise.
37073         * lib/diacrit.c: Likewise.
37074         * lib/diacrit.h: Likewise.
37075         * lib/diffseq.h: Likewise.
37076         * lib/dirchownmod.c: Likewise.
37077         * lib/dirent.in.h: Likewise.
37078         * lib/dirfd.c: Likewise.
37079         * lib/dirfd.h: Likewise.
37080         * lib/dirname.c: Likewise.
37081         * lib/dirname.h: Likewise.
37082         * lib/dummy.c: Likewise.
37083         * lib/dup-safer.c: Likewise.
37084         * lib/dup2.c: Likewise.
37085         * lib/eealloc.h: Likewise.
37086         * lib/error.c: Likewise.
37087         * lib/error.h: Likewise.
37088         * lib/euidaccess.c: Likewise.
37089         * lib/exclude.c: Likewise.
37090         * lib/exclude.h: Likewise.
37091         * lib/execute.c: Likewise.
37092         * lib/execute.h: Likewise.
37093         * lib/exitfail.c: Likewise.
37094         * lib/exitfail.h: Likewise.
37095         * lib/expl.c: Likewise.
37096         * lib/fatal-signal.c: Likewise.
37097         * lib/fatal-signal.h: Likewise.
37098         * lib/fbufmode.c: Likewise.
37099         * lib/fbufmode.h: Likewise.
37100         * lib/fchdir.c: Likewise.
37101         * lib/fchmodat.c: Likewise.
37102         * lib/fchownat.c: Likewise.
37103         * lib/fcntl--.h: Likewise.
37104         * lib/fcntl-safer.h: Likewise.
37105         * lib/fcntl.in.h: Likewise.
37106         * lib/fd-safer.c: Likewise.
37107         * lib/fflush.c: Likewise.
37108         * lib/file-has-acl.c: Likewise.
37109         * lib/file-set.c: Likewise.
37110         * lib/file-type.c: Likewise.
37111         * lib/file-type.h: Likewise.
37112         * lib/fileblocks.c: Likewise.
37113         * lib/filemode.c: Likewise.
37114         * lib/filemode.h: Likewise.
37115         * lib/filename.h: Likewise.
37116         * lib/filenamecat.c: Likewise.
37117         * lib/filenamecat.h: Likewise.
37118         * lib/findprog.c: Likewise.
37119         * lib/findprog.h: Likewise.
37120         * lib/float.in.h: Likewise.
37121         * lib/floor.c: Likewise.
37122         * lib/floorf.c: Likewise.
37123         * lib/floorl.c: Likewise.
37124         * lib/fopen-safer.c: Likewise.
37125         * lib/fopen.c: Likewise.
37126         * lib/fpending.c: Likewise.
37127         * lib/fpending.h: Likewise.
37128         * lib/fprintf.c: Likewise.
37129         * lib/fprintftime.h: Likewise.
37130         * lib/fpucw.h: Likewise.
37131         * lib/fpurge.c: Likewise.
37132         * lib/fpurge.h: Likewise.
37133         * lib/freadable.c: Likewise.
37134         * lib/freadable.h: Likewise.
37135         * lib/freadahead.c: Likewise.
37136         * lib/freadahead.h: Likewise.
37137         * lib/freading.c: Likewise.
37138         * lib/freading.h: Likewise.
37139         * lib/free.c: Likewise.
37140         * lib/freopen.c: Likewise.
37141         * lib/frexp.c: Likewise.
37142         * lib/frexpl.c: Likewise.
37143         * lib/fseek.c: Likewise.
37144         * lib/fseterr.c: Likewise.
37145         * lib/fseterr.h: Likewise.
37146         * lib/fstatat.c: Likewise.
37147         * lib/fstrcmp.c: Likewise.
37148         * lib/fstrcmp.h: Likewise.
37149         * lib/fsusage.c: Likewise.
37150         * lib/fsusage.h: Likewise.
37151         * lib/ftell.c: Likewise.
37152         * lib/ftello.c: Likewise.
37153         * lib/fts-cycle.c: Likewise.
37154         * lib/fts.c: Likewise.
37155         * lib/fts_.h: Likewise.
37156         * lib/full-read.c: Likewise.
37157         * lib/full-read.h: Likewise.
37158         * lib/full-write.c: Likewise.
37159         * lib/full-write.h: Likewise.
37160         * lib/fwritable.c: Likewise.
37161         * lib/fwritable.h: Likewise.
37162         * lib/fwriteerror.c: Likewise.
37163         * lib/fwriteerror.h: Likewise.
37164         * lib/fwriting.c: Likewise.
37165         * lib/fwriting.h: Likewise.
37166         * lib/gcd.c: Likewise.
37167         * lib/gcd.h: Likewise.
37168         * lib/getcwd.c: Likewise.
37169         * lib/getdate.h: Likewise.
37170         * lib/getdate.y: Likewise.
37171         * lib/getdomainname.c: Likewise.
37172         * lib/getdomainname.h: Likewise.
37173         * lib/getgroups.c: Likewise.
37174         * lib/gethostname.c: Likewise.
37175         * lib/gethrxtime.c: Likewise.
37176         * lib/gethrxtime.h: Likewise.
37177         * lib/getloadavg.c: Likewise.
37178         * lib/getndelim2.c: Likewise.
37179         * lib/getndelim2.h: Likewise.
37180         * lib/getnline.c: Likewise.
37181         * lib/getnline.h: Likewise.
37182         * lib/getopt.c: Likewise.
37183         * lib/getopt.in.h: Likewise.
37184         * lib/getopt1.c: Likewise.
37185         * lib/getopt_int.h: Likewise.
37186         * lib/getpagesize.h: Likewise.
37187         * lib/getsubopt.c: Likewise.
37188         * lib/gettime.c: Likewise.
37189         * lib/getugroups.c: Likewise.
37190         * lib/getugroups.h: Likewise.
37191         * lib/getusershell.c: Likewise.
37192         * lib/gl_anyavltree_list1.h: Likewise.
37193         * lib/gl_anyavltree_list2.h: Likewise.
37194         * lib/gl_anyhash_list1.h: Likewise.
37195         * lib/gl_anyhash_list2.h: Likewise.
37196         * lib/gl_anylinked_list1.h: Likewise.
37197         * lib/gl_anylinked_list2.h: Likewise.
37198         * lib/gl_anyrbtree_list1.h: Likewise.
37199         * lib/gl_anyrbtree_list2.h: Likewise.
37200         * lib/gl_anytree_list1.h: Likewise.
37201         * lib/gl_anytree_list2.h: Likewise.
37202         * lib/gl_anytree_oset.h: Likewise.
37203         * lib/gl_anytreehash_list1.h: Likewise.
37204         * lib/gl_anytreehash_list2.h: Likewise.
37205         * lib/gl_array_list.c: Likewise.
37206         * lib/gl_array_list.h: Likewise.
37207         * lib/gl_array_oset.c: Likewise.
37208         * lib/gl_array_oset.h: Likewise.
37209         * lib/gl_avltree_list.c: Likewise.
37210         * lib/gl_avltree_list.h: Likewise.
37211         * lib/gl_avltree_oset.c: Likewise.
37212         * lib/gl_avltree_oset.h: Likewise.
37213         * lib/gl_avltreehash_list.c: Likewise.
37214         * lib/gl_avltreehash_list.h: Likewise.
37215         * lib/gl_carray_list.c: Likewise.
37216         * lib/gl_carray_list.h: Likewise.
37217         * lib/gl_linked_list.c: Likewise.
37218         * lib/gl_linked_list.h: Likewise.
37219         * lib/gl_linkedhash_list.c: Likewise.
37220         * lib/gl_linkedhash_list.h: Likewise.
37221         * lib/gl_list.c: Likewise.
37222         * lib/gl_list.h: Likewise.
37223         * lib/gl_oset.c: Likewise.
37224         * lib/gl_oset.h: Likewise.
37225         * lib/gl_rbtree_list.c: Likewise.
37226         * lib/gl_rbtree_list.h: Likewise.
37227         * lib/gl_rbtree_oset.c: Likewise.
37228         * lib/gl_rbtree_oset.h: Likewise.
37229         * lib/gl_rbtreehash_list.c: Likewise.
37230         * lib/gl_rbtreehash_list.h: Likewise.
37231         * lib/gl_sublist.c: Likewise.
37232         * lib/gl_sublist.h: Likewise.
37233         * lib/group-member.c: Likewise.
37234         * lib/group-member.h: Likewise.
37235         * lib/hard-locale.c: Likewise.
37236         * lib/hard-locale.h: Likewise.
37237         * lib/hash-pjw.c: Likewise.
37238         * lib/hash-pjw.h: Likewise.
37239         * lib/hash-triple.c: Likewise.
37240         * lib/hash.c: Likewise.
37241         * lib/hash.h: Likewise.
37242         * lib/human.c: Likewise.
37243         * lib/human.h: Likewise.
37244         * lib/i-ring.c: Likewise.
37245         * lib/i-ring.h: Likewise.
37246         * lib/idcache.c: Likewise.
37247         * lib/imaxabs.c: Likewise.
37248         * lib/imaxdiv.c: Likewise.
37249         * lib/inet_pton.c: Likewise.
37250         * lib/inet_pton.h: Likewise.
37251         * lib/intprops.h: Likewise.
37252         * lib/inttostr.c: Likewise.
37253         * lib/inttostr.h: Likewise.
37254         * lib/inttypes.in.h: Likewise.
37255         * lib/isapipe.c: Likewise.
37256         * lib/isdir.c: Likewise.
37257         * lib/isnan.c: Likewise.
37258         * lib/isnan.h: Likewise.
37259         * lib/isnanf.c: Likewise.
37260         * lib/isnanf.h: Likewise.
37261         * lib/isnanl-nolibm.h: Likewise.
37262         * lib/isnanl.c: Likewise.
37263         * lib/isnanl.h: Likewise.
37264         * lib/javacomp.c: Likewise.
37265         * lib/javacomp.h: Likewise.
37266         * lib/javaexec.c: Likewise.
37267         * lib/javaexec.h: Likewise.
37268         * lib/javaversion.c: Likewise.
37269         * lib/javaversion.h: Likewise.
37270         * lib/javaversion.java: Likewise.
37271         * lib/lbrkprop.h: Likewise.
37272         * lib/lchmod.h: Likewise.
37273         * lib/lchown.c: Likewise.
37274         * lib/ldexpl.c: Likewise.
37275         * lib/linebreak.c: Likewise.
37276         * lib/linebreak.h: Likewise.
37277         * lib/linebuffer.c: Likewise.
37278         * lib/linebuffer.h: Likewise.
37279         * lib/locale.in.h: Likewise.
37280         * lib/logl.c: Likewise.
37281         * lib/long-options.c: Likewise.
37282         * lib/long-options.h: Likewise.
37283         * lib/lstat.c: Likewise.
37284         * lib/lstat.h: Likewise.
37285         * lib/math.in.h: Likewise.
37286         * lib/mbchar.c: Likewise.
37287         * lib/mbchar.h: Likewise.
37288         * lib/mbfile.h: Likewise.
37289         * lib/mbiter.h: Likewise.
37290         * lib/mbscasecmp.c: Likewise.
37291         * lib/mbscasestr.c: Likewise.
37292         * lib/mbschr.c: Likewise.
37293         * lib/mbscspn.c: Likewise.
37294         * lib/mbslen.c: Likewise.
37295         * lib/mbsncasecmp.c: Likewise.
37296         * lib/mbsnlen.c: Likewise.
37297         * lib/mbspbrk.c: Likewise.
37298         * lib/mbspcasecmp.c: Likewise.
37299         * lib/mbsrchr.c: Likewise.
37300         * lib/mbssep.c: Likewise.
37301         * lib/mbsspn.c: Likewise.
37302         * lib/mbsstr.c: Likewise.
37303         * lib/mbstok_r.c: Likewise.
37304         * lib/mbswidth.c: Likewise.
37305         * lib/mbswidth.h: Likewise.
37306         * lib/mbuiter.h: Likewise.
37307         * lib/memcasecmp.c: Likewise.
37308         * lib/memcasecmp.h: Likewise.
37309         * lib/memchr.c: Likewise.
37310         * lib/memcmp.c: Likewise.
37311         * lib/memcoll.c: Likewise.
37312         * lib/memcoll.h: Likewise.
37313         * lib/memcpy.c: Likewise.
37314         * lib/memrchr.c: Likewise.
37315         * lib/mkancesdirs.c: Likewise.
37316         * lib/mkdir-p.c: Likewise.
37317         * lib/mkdir-p.h: Likewise.
37318         * lib/mkdir.c: Likewise.
37319         * lib/mkdirat.c: Likewise.
37320         * lib/mkdtemp.c: Likewise.
37321         * lib/mkstemp-safer.c: Likewise.
37322         * lib/mkstemp.c: Likewise.
37323         * lib/modechange.c: Likewise.
37324         * lib/modechange.h: Likewise.
37325         * lib/mountlist.c: Likewise.
37326         * lib/mountlist.h: Likewise.
37327         * lib/mpsort.c: Likewise.
37328         * lib/nanosleep.c: Likewise.
37329         * lib/obstack.c: Likewise.
37330         * lib/obstack.h: Likewise.
37331         * lib/open-safer.c: Likewise.
37332         * lib/open.c: Likewise.
37333         * lib/openat-die.c: Likewise.
37334         * lib/openat-priv.h: Likewise.
37335         * lib/openat-proc.c: Likewise.
37336         * lib/openat.c: Likewise.
37337         * lib/openat.h: Likewise.
37338         * lib/pagealign_alloc.c: Likewise.
37339         * lib/pagealign_alloc.h: Likewise.
37340         * lib/physmem.c: Likewise.
37341         * lib/physmem.h: Likewise.
37342         * lib/pipe-safer.c: Likewise.
37343         * lib/pipe.c: Likewise.
37344         * lib/pipe.h: Likewise.
37345         * lib/posixtm.c: Likewise.
37346         * lib/posixtm.h: Likewise.
37347         * lib/posixver.c: Likewise.
37348         * lib/printf-frexp.c: Likewise.
37349         * lib/printf-frexp.h: Likewise.
37350         * lib/printf-frexpl.c: Likewise.
37351         * lib/printf-frexpl.h: Likewise.
37352         * lib/printf.c: Likewise.
37353         * lib/progname.c: Likewise.
37354         * lib/progname.h: Likewise.
37355         * lib/progreloc.c: Likewise.
37356         * lib/putenv.c: Likewise.
37357         * lib/quote.c: Likewise.
37358         * lib/quote.h: Likewise.
37359         * lib/quotearg.c: Likewise.
37360         * lib/quotearg.h: Likewise.
37361         * lib/raise.c: Likewise.
37362         * lib/readline.c: Likewise.
37363         * lib/readline.h: Likewise.
37364         * lib/readlink.c: Likewise.
37365         * lib/readtokens.c: Likewise.
37366         * lib/readtokens.h: Likewise.
37367         * lib/readtokens0.c: Likewise.
37368         * lib/readtokens0.h: Likewise.
37369         * lib/readutmp.c: Likewise.
37370         * lib/readutmp.h: Likewise.
37371         * lib/realloc.c: Likewise.
37372         * lib/relocwrapper.c: Likewise.
37373         * lib/rename-dest-slash.c: Likewise.
37374         * lib/rename.c: Likewise.
37375         * lib/rmdir.c: Likewise.
37376         * lib/rpmatch.c: Likewise.
37377         * lib/safe-read.c: Likewise.
37378         * lib/safe-read.h: Likewise.
37379         * lib/safe-write.c: Likewise.
37380         * lib/safe-write.h: Likewise.
37381         * lib/same-inode.h: Likewise.
37382         * lib/same.c: Likewise.
37383         * lib/same.h: Likewise.
37384         * lib/save-cwd.c: Likewise.
37385         * lib/save-cwd.h: Likewise.
37386         * lib/savedir.c: Likewise.
37387         * lib/savedir.h: Likewise.
37388         * lib/savewd.c: Likewise.
37389         * lib/savewd.h: Likewise.
37390         * lib/search.in.h: Likewise.
37391         * lib/setenv.c: Likewise.
37392         * lib/setenv.h: Likewise.
37393         * lib/settime.c: Likewise.
37394         * lib/sh-quote.c: Likewise.
37395         * lib/sh-quote.h: Likewise.
37396         * lib/sig2str.c: Likewise.
37397         * lib/sig2str.h: Likewise.
37398         * lib/signal.in.h: Likewise.
37399         * lib/signbitd.c: Likewise.
37400         * lib/signbitf.c: Likewise.
37401         * lib/signbitl.c: Likewise.
37402         * lib/sigprocmask.c: Likewise.
37403         * lib/sincosl.c: Likewise.
37404         * lib/sleep.c: Likewise.
37405         * lib/sprintf.c: Likewise.
37406         * lib/sqrtl.c: Likewise.
37407         * lib/stat-time.h: Likewise.
37408         * lib/stdio--.h: Likewise.
37409         * lib/stdio-safer.h: Likewise.
37410         * lib/stdlib--.h: Likewise.
37411         * lib/stdlib-safer.h: Likewise.
37412         * lib/stdlib.in.h: Likewise.
37413         * lib/stpcpy.c: Likewise.
37414         * lib/stpncpy.c: Likewise.
37415         * lib/strchrnul.c: Likewise.
37416         * lib/strcspn.c: Likewise.
37417         * lib/strerror.c: Likewise.
37418         * lib/strftime.c: Likewise.
37419         * lib/strftime.h: Likewise.
37420         * lib/striconveh.c: Likewise.
37421         * lib/striconveh.h: Likewise.
37422         * lib/striconveha.c: Likewise.
37423         * lib/striconveha.h: Likewise.
37424         * lib/stripslash.c: Likewise.
37425         * lib/strnlen1.c: Likewise.
37426         * lib/strnlen1.h: Likewise.
37427         * lib/strtod.c: Likewise.
37428         * lib/strtoimax.c: Likewise.
37429         * lib/strtok_r.c: Likewise.
37430         * lib/strtol.c: Likewise.
37431         * lib/strtoll.c: Likewise.
37432         * lib/strtoul.c: Likewise.
37433         * lib/strtoull.c: Likewise.
37434         * lib/sysexits.in.h: Likewise.
37435         * lib/tempname.c: Likewise.
37436         * lib/tempname.h: Likewise.
37437         * lib/timespec.h: Likewise.
37438         * lib/tls.c: Likewise.
37439         * lib/tls.h: Likewise.
37440         * lib/tmpdir.c: Likewise.
37441         * lib/tmpdir.h: Likewise.
37442         * lib/tmpfile-safer.c: Likewise.
37443         * lib/tmpfile.c: Likewise.
37444         * lib/trigl.c: Likewise.
37445         * lib/trigl.h: Likewise.
37446         * lib/trim.c: Likewise.
37447         * lib/trim.h: Likewise.
37448         * lib/trunc.c: Likewise.
37449         * lib/truncf.c: Likewise.
37450         * lib/truncl.c: Likewise.
37451         * lib/tsearch.c: Likewise.
37452         * lib/unicodeio.c: Likewise.
37453         * lib/unicodeio.h: Likewise.
37454         * lib/unistd--.h: Likewise.
37455         * lib/unistd-safer.h: Likewise.
37456         * lib/unistdio/ulc-fprintf.c: Likewise.
37457         * lib/unistdio/ulc-vfprintf.c: Likewise.
37458         * lib/unlinkdir.c: Likewise.
37459         * lib/unlinkdir.h: Likewise.
37460         * lib/unlocked-io.h: Likewise.
37461         * lib/unsetenv.c: Likewise.
37462         * lib/userspec.c: Likewise.
37463         * lib/utime.c: Likewise.
37464         * lib/utimecmp.c: Likewise.
37465         * lib/utimecmp.h: Likewise.
37466         * lib/utimens.c: Likewise.
37467         * lib/verify.h: Likewise.
37468         * lib/verror.c: Likewise.
37469         * lib/verror.h: Likewise.
37470         * lib/version-etc-fsf.c: Likewise.
37471         * lib/version-etc.c: Likewise.
37472         * lib/version-etc.h: Likewise.
37473         * lib/vfprintf.c: Likewise.
37474         * lib/vprintf.c: Likewise.
37475         * lib/vsprintf.c: Likewise.
37476         * lib/w32spawn.h: Likewise.
37477         * lib/wait-process.c: Likewise.
37478         * lib/wait-process.h: Likewise.
37479         * lib/wcwidth.c: Likewise.
37480         * lib/write-any-file.c: Likewise.
37481         * lib/xalloc-die.c: Likewise.
37482         * lib/xalloc.h: Likewise.
37483         * lib/xasprintf.c: Likewise.
37484         * lib/xgetcwd.c: Likewise.
37485         * lib/xgetcwd.h: Likewise.
37486         * lib/xgetdomainname.c: Likewise.
37487         * lib/xgetdomainname.h: Likewise.
37488         * lib/xgethostname.c: Likewise.
37489         * lib/xmalloc.c: Likewise.
37490         * lib/xmalloca.c: Likewise.
37491         * lib/xmalloca.h: Likewise.
37492         * lib/xmemcoll.c: Likewise.
37493         * lib/xnanosleep.c: Likewise.
37494         * lib/xreadlink.c: Likewise.
37495         * lib/xreadlink.h: Likewise.
37496         * lib/xsetenv.c: Likewise.
37497         * lib/xsetenv.h: Likewise.
37498         * lib/xstriconv.c: Likewise.
37499         * lib/xstriconv.h: Likewise.
37500         * lib/xstrndup.c: Likewise.
37501         * lib/xstrndup.h: Likewise.
37502         * lib/xstrtod.c: Likewise.
37503         * lib/xstrtod.h: Likewise.
37504         * lib/xstrtol-error.c: Likewise.
37505         * lib/xstrtol.c: Likewise.
37506         * lib/xstrtol.h: Likewise.
37507         * lib/xtime.h: Likewise.
37508         * lib/xvasprintf.c: Likewise.
37509         * lib/xvasprintf.h: Likewise.
37510         * lib/yesno.c: Likewise.
37511         * lib/yesno.h: Likewise.
37512         * posix-modules: Likewise.
37513         * tests/test-alloca-opt.c: Likewise.
37514         * tests/test-arcfour.c: Likewise.
37515         * tests/test-arctwo.c: Likewise.
37516         * tests/test-argmatch.c: Likewise.
37517         * tests/test-argp-2.sh: Likewise.
37518         * tests/test-argp.c: Likewise.
37519         * tests/test-arpa_inet.c: Likewise.
37520         * tests/test-array_list.c: Likewise.
37521         * tests/test-array_oset.c: Likewise.
37522         * tests/test-atexit.c: Likewise.
37523         * tests/test-avltree_list.c: Likewise.
37524         * tests/test-avltree_oset.c: Likewise.
37525         * tests/test-avltreehash_list.c: Likewise.
37526         * tests/test-base64.c: Likewise.
37527         * tests/test-binary-io.c: Likewise.
37528         * tests/test-byteswap.c: Likewise.
37529         * tests/test-c-ctype.c: Likewise.
37530         * tests/test-c-strcasecmp.c: Likewise.
37531         * tests/test-c-strcasestr.c: Likewise.
37532         * tests/test-c-strncasecmp.c: Likewise.
37533         * tests/test-c-strstr.c: Likewise.
37534         * tests/test-canonicalize-lgpl.c: Likewise.
37535         * tests/test-canonicalize.c: Likewise.
37536         * tests/test-carray_list.c: Likewise.
37537         * tests/test-ceilf.c: Likewise.
37538         * tests/test-ceill.c: Likewise.
37539         * tests/test-count-one-bits.c: Likewise.
37540         * tests/test-crc.c: Likewise.
37541         * tests/test-dirname.c: Likewise.
37542         * tests/test-fbufmode.c: Likewise.
37543         * tests/test-fcntl.c: Likewise.
37544         * tests/test-fflush.c: Likewise.
37545         * tests/test-floorf.c: Likewise.
37546         * tests/test-floorl.c: Likewise.
37547         * tests/test-fopen.c: Likewise.
37548         * tests/test-fprintf-posix.c: Likewise.
37549         * tests/test-fprintf-posix.h: Likewise.
37550         * tests/test-fpurge.c: Likewise.
37551         * tests/test-freadable.c: Likewise.
37552         * tests/test-freadahead.c: Likewise.
37553         * tests/test-freading.c: Likewise.
37554         * tests/test-freopen.c: Likewise.
37555         * tests/test-frexp.c: Likewise.
37556         * tests/test-frexpl.c: Likewise.
37557         * tests/test-fseek.c: Likewise.
37558         * tests/test-fseeko.c: Likewise.
37559         * tests/test-fseterr.c: Likewise.
37560         * tests/test-fstrcmp.c: Likewise.
37561         * tests/test-ftell.c: Likewise.
37562         * tests/test-ftello.c: Likewise.
37563         * tests/test-fwritable.c: Likewise.
37564         * tests/test-fwriting.c: Likewise.
37565         * tests/test-getaddrinfo.c: Likewise.
37566         * tests/test-getpass.c: Likewise.
37567         * tests/test-gettimeofday.c: Likewise.
37568         * tests/test-hmac-md5.c: Likewise.
37569         * tests/test-hmac-sha1.c: Likewise.
37570         * tests/test-iconv.c: Likewise.
37571         * tests/test-iconvme.c: Likewise.
37572         * tests/test-inttypes.c: Likewise.
37573         * tests/test-isnan.c: Likewise.
37574         * tests/test-isnanf.c: Likewise.
37575         * tests/test-isnanl-nolibm.c: Likewise.
37576         * tests/test-isnanl.c: Likewise.
37577         * tests/test-isnanl.h: Likewise.
37578         * tests/test-ldexpl.c: Likewise.
37579         * tests/test-linked_list.c: Likewise.
37580         * tests/test-linkedhash_list.c: Likewise.
37581         * tests/test-locale.c: Likewise.
37582         * tests/test-localename.c: Likewise.
37583         * tests/test-lock.c: Likewise.
37584         * tests/test-lseek.c: Likewise.
37585         * tests/test-malloca.c: Likewise.
37586         * tests/test-math.c: Likewise.
37587         * tests/test-mbscasecmp.c: Likewise.
37588         * tests/test-mbscasestr1.c: Likewise.
37589         * tests/test-mbscasestr2.c: Likewise.
37590         * tests/test-mbscasestr3.c: Likewise.
37591         * tests/test-mbscasestr4.c: Likewise.
37592         * tests/test-mbschr.c: Likewise.
37593         * tests/test-mbscspn.c: Likewise.
37594         * tests/test-mbsncasecmp.c: Likewise.
37595         * tests/test-mbspbrk.c: Likewise.
37596         * tests/test-mbspcasecmp.c: Likewise.
37597         * tests/test-mbsrchr.c: Likewise.
37598         * tests/test-mbsspn.c: Likewise.
37599         * tests/test-mbsstr1.c: Likewise.
37600         * tests/test-mbsstr2.c: Likewise.
37601         * tests/test-mbsstr3.c: Likewise.
37602         * tests/test-md5.c: Likewise.
37603         * tests/test-memmem.c: Likewise.
37604         * tests/test-netinet_in.c: Likewise.
37605         * tests/test-open.c: Likewise.
37606         * tests/test-printf-frexp.c: Likewise.
37607         * tests/test-printf-frexpl.c: Likewise.
37608         * tests/test-printf-posix.c: Likewise.
37609         * tests/test-printf-posix.h: Likewise.
37610         * tests/test-rbtree_list.c: Likewise.
37611         * tests/test-rbtree_oset.c: Likewise.
37612         * tests/test-rbtreehash_list.c: Likewise.
37613         * tests/test-read-file.c: Likewise.
37614         * tests/test-rijndael.c: Likewise.
37615         * tests/test-search.c: Likewise.
37616         * tests/test-signbit.c: Likewise.
37617         * tests/test-sleep.c: Likewise.
37618         * tests/test-snprintf-posix.c: Likewise.
37619         * tests/test-snprintf-posix.h: Likewise.
37620         * tests/test-snprintf.c: Likewise.
37621         * tests/test-sprintf-posix.c: Likewise.
37622         * tests/test-sprintf-posix.h: Likewise.
37623         * tests/test-stat-time.c: Likewise.
37624         * tests/test-stdbool.c: Likewise.
37625         * tests/test-stdint.c: Likewise.
37626         * tests/test-stdio.c: Likewise.
37627         * tests/test-stdlib.c: Likewise.
37628         * tests/test-stpncpy.c: Likewise.
37629         * tests/test-strcasestr.c: Likewise.
37630         * tests/test-striconv.c: Likewise.
37631         * tests/test-striconveh.c: Likewise.
37632         * tests/test-striconveha.c: Likewise.
37633         * tests/test-string.c: Likewise.
37634         * tests/test-sys_select.c: Likewise.
37635         * tests/test-sys_socket.c: Likewise.
37636         * tests/test-sys_stat.c: Likewise.
37637         * tests/test-sys_time.c: Likewise.
37638         * tests/test-sysexits.c: Likewise.
37639         * tests/test-time.c: Likewise.
37640         * tests/test-tls.c: Likewise.
37641         * tests/test-trunc.c: Likewise.
37642         * tests/test-truncf.c: Likewise.
37643         * tests/test-truncl.c: Likewise.
37644         * tests/test-unistd.c: Likewise.
37645         * tests/test-vasnprintf-posix.c: Likewise.
37646         * tests/test-vasnprintf-posix2.c: Likewise.
37647         * tests/test-vasnprintf.c: Likewise.
37648         * tests/test-vasprintf-posix.c: Likewise.
37649         * tests/test-vasprintf.c: Likewise.
37650         * tests/test-verify.c: Likewise.
37651         * tests/test-vfprintf-posix.c: Likewise.
37652         * tests/test-vprintf-posix.c: Likewise.
37653         * tests/test-vsnprintf-posix.c: Likewise.
37654         * tests/test-vsnprintf.c: Likewise.
37655         * tests/test-vsprintf-posix.c: Likewise.
37656         * tests/test-wchar.c: Likewise.
37657         * tests/test-wctype.c: Likewise.
37658         * tests/test-wcwidth.c: Likewise.
37659         * tests/test-xstrtol.c: Likewise.
37660         * tests/test-xvasprintf.c: Likewise.
37661         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37662         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37663         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37664         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37665         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37666         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37667         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37668         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37669         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37670         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37671         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37672         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37673         * tests/uniname/test-uninames.c: Likewise.
37674         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37675         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
37676         * tests/unistdio/test-u16-printf1.h: Likewise.
37677         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37678         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37679         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37680         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37681         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37682         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37683         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37684         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
37685         * tests/unistdio/test-u32-printf1.h: Likewise.
37686         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37687         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37688         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37689         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37690         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37691         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37692         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37693         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
37694         * tests/unistdio/test-u8-printf1.h: Likewise.
37695         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37696         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37697         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37698         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37699         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37700         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37701         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37702         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
37703         * tests/unistdio/test-ulc-printf1.h: Likewise.
37704         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37705         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37706         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37707         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37708         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37709         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37710         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37711         * tests/uniwidth/test-u16-width.c: Likewise.
37712         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37713         * tests/uniwidth/test-u32-width.c: Likewise.
37714         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37715         * tests/uniwidth/test-u8-width.c: Likewise.
37716         * tests/uniwidth/test-uc_width.c: Likewise.
37717         * config/srclist-update: Likewise.
37718         (fixlicense): Update to GPLv3+.
37719
37720         Change copyright notice from LGPLv2.1+ to LGPLv3+.
37721         * tests/test-tsearch.c: Change copyright notice.
37722
37723         Change copyright notice from LGPLv2.0+ to LGPLv3+.
37724         * lib/c-strcaseeq.h: Change copyright notice.
37725         * lib/streq.h: Likewise.
37726         * lib/uniconv.h: Likewise.
37727         * lib/uniconv/u-conv-from-enc.h: Likewise.
37728         * lib/uniconv/u-conv-to-enc.h: Likewise.
37729         * lib/uniconv/u-strconv-from-enc.h: Likewise.
37730         * lib/uniconv/u-strconv-to-enc.h: Likewise.
37731         * lib/uniconv/u16-conv-from-enc.c: Likewise.
37732         * lib/uniconv/u16-conv-to-enc.c: Likewise.
37733         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
37734         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
37735         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
37736         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
37737         * lib/uniconv/u32-conv-from-enc.c: Likewise.
37738         * lib/uniconv/u32-conv-to-enc.c: Likewise.
37739         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
37740         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
37741         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
37742         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
37743         * lib/uniconv/u8-conv-from-enc.c: Likewise.
37744         * lib/uniconv/u8-conv-to-enc.c: Likewise.
37745         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
37746         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
37747         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
37748         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
37749         * lib/uniname.h: Likewise.
37750         * lib/uniname/uniname.c: Likewise.
37751         * lib/unistdio.h: Likewise.
37752         * lib/unistdio/u-asnprintf.h: Likewise.
37753         * lib/unistdio/u-asprintf.h: Likewise.
37754         * lib/unistdio/u-printf-args.c: Likewise.
37755         * lib/unistdio/u-printf-args.h: Likewise.
37756         * lib/unistdio/u-printf-parse.h: Likewise.
37757         * lib/unistdio/u-snprintf.h: Likewise.
37758         * lib/unistdio/u-sprintf.h: Likewise.
37759         * lib/unistdio/u-vasprintf.h: Likewise.
37760         * lib/unistdio/u-vsnprintf.h: Likewise.
37761         * lib/unistdio/u-vsprintf.h: Likewise.
37762         * lib/unistdio/u16-asnprintf.c: Likewise.
37763         * lib/unistdio/u16-asprintf.c: Likewise.
37764         * lib/unistdio/u16-printf-parse.c: Likewise.
37765         * lib/unistdio/u16-snprintf.c: Likewise.
37766         * lib/unistdio/u16-sprintf.c: Likewise.
37767         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
37768         * lib/unistdio/u16-u16-asprintf.c: Likewise.
37769         * lib/unistdio/u16-u16-snprintf.c: Likewise.
37770         * lib/unistdio/u16-u16-sprintf.c: Likewise.
37771         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
37772         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
37773         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
37774         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
37775         * lib/unistdio/u16-vasnprintf.c: Likewise.
37776         * lib/unistdio/u16-vasprintf.c: Likewise.
37777         * lib/unistdio/u16-vsnprintf.c: Likewise.
37778         * lib/unistdio/u16-vsprintf.c: Likewise.
37779         * lib/unistdio/u32-asnprintf.c: Likewise.
37780         * lib/unistdio/u32-asprintf.c: Likewise.
37781         * lib/unistdio/u32-printf-parse.c: Likewise.
37782         * lib/unistdio/u32-snprintf.c: Likewise.
37783         * lib/unistdio/u32-sprintf.c: Likewise.
37784         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
37785         * lib/unistdio/u32-u32-asprintf.c: Likewise.
37786         * lib/unistdio/u32-u32-snprintf.c: Likewise.
37787         * lib/unistdio/u32-u32-sprintf.c: Likewise.
37788         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
37789         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
37790         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
37791         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
37792         * lib/unistdio/u32-vasnprintf.c: Likewise.
37793         * lib/unistdio/u32-vasprintf.c: Likewise.
37794         * lib/unistdio/u32-vsnprintf.c: Likewise.
37795         * lib/unistdio/u32-vsprintf.c: Likewise.
37796         * lib/unistdio/u8-asnprintf.c: Likewise.
37797         * lib/unistdio/u8-asprintf.c: Likewise.
37798         * lib/unistdio/u8-printf-parse.c: Likewise.
37799         * lib/unistdio/u8-snprintf.c: Likewise.
37800         * lib/unistdio/u8-sprintf.c: Likewise.
37801         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
37802         * lib/unistdio/u8-u8-asprintf.c: Likewise.
37803         * lib/unistdio/u8-u8-snprintf.c: Likewise.
37804         * lib/unistdio/u8-u8-sprintf.c: Likewise.
37805         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
37806         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
37807         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
37808         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
37809         * lib/unistdio/u8-vasnprintf.c: Likewise.
37810         * lib/unistdio/u8-vasprintf.c: Likewise.
37811         * lib/unistdio/u8-vsnprintf.c: Likewise.
37812         * lib/unistdio/u8-vsprintf.c: Likewise.
37813         * lib/unistdio/ulc-asnprintf.c: Likewise.
37814         * lib/unistdio/ulc-asprintf.c: Likewise.
37815         * lib/unistdio/ulc-printf-parse.c: Likewise.
37816         * lib/unistdio/ulc-snprintf.c: Likewise.
37817         * lib/unistdio/ulc-sprintf.c: Likewise.
37818         * lib/unistdio/ulc-vasnprintf.c: Likewise.
37819         * lib/unistdio/ulc-vasprintf.c: Likewise.
37820         * lib/unistdio/ulc-vsnprintf.c: Likewise.
37821         * lib/unistdio/ulc-vsprintf.c: Likewise.
37822         * lib/unistr.h: Likewise.
37823         * lib/unistr/u-cpy-alloc.h: Likewise.
37824         * lib/unistr/u-cpy.h: Likewise.
37825         * lib/unistr/u-endswith.h: Likewise.
37826         * lib/unistr/u-move.h: Likewise.
37827         * lib/unistr/u-set.h: Likewise.
37828         * lib/unistr/u-startswith.h: Likewise.
37829         * lib/unistr/u-stpcpy.h: Likewise.
37830         * lib/unistr/u-stpncpy.h: Likewise.
37831         * lib/unistr/u-strcat.h: Likewise.
37832         * lib/unistr/u-strcpy.h: Likewise.
37833         * lib/unistr/u-strcspn.h: Likewise.
37834         * lib/unistr/u-strdup.h: Likewise.
37835         * lib/unistr/u-strlen.h: Likewise.
37836         * lib/unistr/u-strncat.h: Likewise.
37837         * lib/unistr/u-strncpy.h: Likewise.
37838         * lib/unistr/u-strnlen.h: Likewise.
37839         * lib/unistr/u-strpbrk.h: Likewise.
37840         * lib/unistr/u-strspn.h: Likewise.
37841         * lib/unistr/u-strstr.h: Likewise.
37842         * lib/unistr/u-strtok.h: Likewise.
37843         * lib/unistr/u16-check.c: Likewise.
37844         * lib/unistr/u16-chr.c: Likewise.
37845         * lib/unistr/u16-cmp.c: Likewise.
37846         * lib/unistr/u16-cpy-alloc.c: Likewise.
37847         * lib/unistr/u16-cpy.c: Likewise.
37848         * lib/unistr/u16-endswith.c: Likewise.
37849         * lib/unistr/u16-mblen.c: Likewise.
37850         * lib/unistr/u16-mbsnlen.c: Likewise.
37851         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37852         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37853         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37854         * lib/unistr/u16-mbtouc.c: Likewise.
37855         * lib/unistr/u16-mbtoucr.c: Likewise.
37856         * lib/unistr/u16-move.c: Likewise.
37857         * lib/unistr/u16-next.c: Likewise.
37858         * lib/unistr/u16-prev.c: Likewise.
37859         * lib/unistr/u16-set.c: Likewise.
37860         * lib/unistr/u16-startswith.c: Likewise.
37861         * lib/unistr/u16-stpcpy.c: Likewise.
37862         * lib/unistr/u16-stpncpy.c: Likewise.
37863         * lib/unistr/u16-strcat.c: Likewise.
37864         * lib/unistr/u16-strchr.c: Likewise.
37865         * lib/unistr/u16-strcmp.c: Likewise.
37866         * lib/unistr/u16-strcpy.c: Likewise.
37867         * lib/unistr/u16-strcspn.c: Likewise.
37868         * lib/unistr/u16-strdup.c: Likewise.
37869         * lib/unistr/u16-strlen.c: Likewise.
37870         * lib/unistr/u16-strmblen.c: Likewise.
37871         * lib/unistr/u16-strmbtouc.c: Likewise.
37872         * lib/unistr/u16-strncat.c: Likewise.
37873         * lib/unistr/u16-strncmp.c: Likewise.
37874         * lib/unistr/u16-strncpy.c: Likewise.
37875         * lib/unistr/u16-strnlen.c: Likewise.
37876         * lib/unistr/u16-strpbrk.c: Likewise.
37877         * lib/unistr/u16-strrchr.c: Likewise.
37878         * lib/unistr/u16-strspn.c: Likewise.
37879         * lib/unistr/u16-strstr.c: Likewise.
37880         * lib/unistr/u16-strtok.c: Likewise.
37881         * lib/unistr/u16-to-u32.c: Likewise.
37882         * lib/unistr/u16-to-u8.c: Likewise.
37883         * lib/unistr/u16-uctomb-aux.c: Likewise.
37884         * lib/unistr/u16-uctomb.c: Likewise.
37885         * lib/unistr/u32-check.c: Likewise.
37886         * lib/unistr/u32-chr.c: Likewise.
37887         * lib/unistr/u32-cmp.c: Likewise.
37888         * lib/unistr/u32-cpy-alloc.c: Likewise.
37889         * lib/unistr/u32-cpy.c: Likewise.
37890         * lib/unistr/u32-endswith.c: Likewise.
37891         * lib/unistr/u32-mblen.c: Likewise.
37892         * lib/unistr/u32-mbsnlen.c: Likewise.
37893         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37894         * lib/unistr/u32-mbtouc.c: Likewise.
37895         * lib/unistr/u32-mbtoucr.c: Likewise.
37896         * lib/unistr/u32-move.c: Likewise.
37897         * lib/unistr/u32-next.c: Likewise.
37898         * lib/unistr/u32-prev.c: Likewise.
37899         * lib/unistr/u32-set.c: Likewise.
37900         * lib/unistr/u32-startswith.c: Likewise.
37901         * lib/unistr/u32-stpcpy.c: Likewise.
37902         * lib/unistr/u32-stpncpy.c: Likewise.
37903         * lib/unistr/u32-strcat.c: Likewise.
37904         * lib/unistr/u32-strchr.c: Likewise.
37905         * lib/unistr/u32-strcmp.c: Likewise.
37906         * lib/unistr/u32-strcpy.c: Likewise.
37907         * lib/unistr/u32-strcspn.c: Likewise.
37908         * lib/unistr/u32-strdup.c: Likewise.
37909         * lib/unistr/u32-strlen.c: Likewise.
37910         * lib/unistr/u32-strmblen.c: Likewise.
37911         * lib/unistr/u32-strmbtouc.c: Likewise.
37912         * lib/unistr/u32-strncat.c: Likewise.
37913         * lib/unistr/u32-strncmp.c: Likewise.
37914         * lib/unistr/u32-strncpy.c: Likewise.
37915         * lib/unistr/u32-strnlen.c: Likewise.
37916         * lib/unistr/u32-strpbrk.c: Likewise.
37917         * lib/unistr/u32-strrchr.c: Likewise.
37918         * lib/unistr/u32-strspn.c: Likewise.
37919         * lib/unistr/u32-strstr.c: Likewise.
37920         * lib/unistr/u32-strtok.c: Likewise.
37921         * lib/unistr/u32-to-u16.c: Likewise.
37922         * lib/unistr/u32-to-u8.c: Likewise.
37923         * lib/unistr/u32-uctomb.c: Likewise.
37924         * lib/unistr/u8-check.c: Likewise.
37925         * lib/unistr/u8-chr.c: Likewise.
37926         * lib/unistr/u8-cmp.c: Likewise.
37927         * lib/unistr/u8-cpy-alloc.c: Likewise.
37928         * lib/unistr/u8-cpy.c: Likewise.
37929         * lib/unistr/u8-endswith.c: Likewise.
37930         * lib/unistr/u8-mblen.c: Likewise.
37931         * lib/unistr/u8-mbsnlen.c: Likewise.
37932         * lib/unistr/u8-mbtouc-aux.c: Likewise.
37933         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
37934         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
37935         * lib/unistr/u8-mbtouc.c: Likewise.
37936         * lib/unistr/u8-mbtoucr.c: Likewise.
37937         * lib/unistr/u8-move.c: Likewise.
37938         * lib/unistr/u8-next.c: Likewise.
37939         * lib/unistr/u8-prev.c: Likewise.
37940         * lib/unistr/u8-set.c: Likewise.
37941         * lib/unistr/u8-startswith.c: Likewise.
37942         * lib/unistr/u8-stpcpy.c: Likewise.
37943         * lib/unistr/u8-stpncpy.c: Likewise.
37944         * lib/unistr/u8-strcat.c: Likewise.
37945         * lib/unistr/u8-strchr.c: Likewise.
37946         * lib/unistr/u8-strcmp.c: Likewise.
37947         * lib/unistr/u8-strcpy.c: Likewise.
37948         * lib/unistr/u8-strcspn.c: Likewise.
37949         * lib/unistr/u8-strdup.c: Likewise.
37950         * lib/unistr/u8-strlen.c: Likewise.
37951         * lib/unistr/u8-strmblen.c: Likewise.
37952         * lib/unistr/u8-strmbtouc.c: Likewise.
37953         * lib/unistr/u8-strncat.c: Likewise.
37954         * lib/unistr/u8-strncmp.c: Likewise.
37955         * lib/unistr/u8-strncpy.c: Likewise.
37956         * lib/unistr/u8-strnlen.c: Likewise.
37957         * lib/unistr/u8-strpbrk.c: Likewise.
37958         * lib/unistr/u8-strrchr.c: Likewise.
37959         * lib/unistr/u8-strspn.c: Likewise.
37960         * lib/unistr/u8-strstr.c: Likewise.
37961         * lib/unistr/u8-strtok.c: Likewise.
37962         * lib/unistr/u8-to-u16.c: Likewise.
37963         * lib/unistr/u8-to-u32.c: Likewise.
37964         * lib/unistr/u8-uctomb-aux.c: Likewise.
37965         * lib/unistr/u8-uctomb.c: Likewise.
37966         * lib/unitypes.h: Likewise.
37967         * lib/uniwidth.h: Likewise.
37968         * lib/uniwidth/cjk.h: Likewise.
37969         * lib/uniwidth/u16-strwidth.c: Likewise.
37970         * lib/uniwidth/u16-width.c: Likewise.
37971         * lib/uniwidth/u32-strwidth.c: Likewise.
37972         * lib/uniwidth/u32-width.c: Likewise.
37973         * lib/uniwidth/u8-strwidth.c: Likewise.
37974         * lib/uniwidth/u8-width.c: Likewise.
37975         * lib/uniwidth/width.c: Likewise.
37976
37977 2007-10-07  Bruno Haible  <bruno@clisp.org>
37978
37979         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
37980         The file is still under LGPL (see modules/inttypes).
37981
37982 2007-10-06  Bruno Haible  <bruno@clisp.org>
37983
37984         * modules/trunc (Dependencies): Add 'extensions'.
37985         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
37986         Reported by Ben Pfaff <blp@gnu.org>.
37987
37988 2007-10-06  Bruno Haible  <bruno@clisp.org>
37989
37990         * modules/freopen-tests: New file.
37991         * tests/test-freopen.c: New file.
37992
37993         * modules/fopen-tests: New file.
37994         * tests/test-fopen.c: New file.
37995
37996         * modules/fopen: New file.
37997         * lib/fopen.c: New file.
37998         * m4/fopen.m4: New file.
37999         * modules/freopen: New file.
38000         * lib/freopen.c: New file.
38001         * m4/freopen.m4: New file.
38002         * lib/stdio.in.h (fopen, freopen): New declarations.
38003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
38004         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38005         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
38006         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38007         * doc/functions/fopen.texi: Mention the 'fopen' module.
38008         * doc/functions/freopen.texi: Mention the 'freopen' module.
38009
38010 2007-10-06  Bruno Haible  <bruno@clisp.org>
38011
38012         * modules/open-tests: New file.
38013         * tests/test-open.c: New file.
38014
38015         * modules/open: New file.
38016         * lib/open.c: New file.
38017         * m4/open.m4: New file.
38018         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
38019         lib/open.c does.
38020         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
38021         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
38022         macros.
38023         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
38024         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
38025         REPLACE_OPEN.
38026         * doc/functions/open.texi: Mention the 'open' module.
38027
38028 2007-10-04  Bruno Haible  <bruno@clisp.org>
38029
38030         * modules/ceill-tests: New file.
38031         * tests/test-ceill.c: New file.
38032
38033         * modules/ceill: New file.
38034         * lib/ceill.c: Replace entire file.
38035         * m4/ceill.m4: New file.
38036         * lib/math.in.h (ceill): Replace declaration.
38037         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
38038         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
38039         * doc/functions/ceill.texi: Mention the 'ceill' module.
38040         * modules/mathl (Files): Remove lib/ceill.c.
38041         (Depends-on): Add ceill.
38042
38043 2007-10-04  Bruno Haible  <bruno@clisp.org>
38044
38045         * modules/ceilf-tests: New file.
38046         * tests/test-ceilf.c: New file.
38047
38048         * modules/ceilf: New file.
38049         * lib/ceil.c: New file.
38050         * lib/ceilf.c: New file.
38051         * m4/ceilf.m4: New file.
38052         * lib/math.in.h (ceilf): New declaration.
38053         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
38054         HAVE_DECL_CEILF.
38055         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
38056         HAVE_DECL_CEILF.
38057         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
38058
38059 2007-10-04  Bruno Haible  <bruno@clisp.org>
38060
38061         * modules/floorl-tests: New file.
38062         * tests/test-floorl.c: New file.
38063
38064         * modules/floorl: New file.
38065         * lib/floorl.c: Replace entire file.
38066         * m4/floorl.m4: New file.
38067         * lib/math.in.h (floorl): Replace declaration.
38068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
38069         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
38070         * doc/functions/floorl.texi: Mention the 'floorl' module.
38071         * modules/mathl (Files): Remove lib/floorl.c.
38072         (Depends-on): Add floorl.
38073
38074 2007-10-04  Bruno Haible  <bruno@clisp.org>
38075
38076         * modules/floorf-tests: New file.
38077         * tests/test-floorf.c: New file.
38078
38079         * modules/floorf: New file.
38080         * lib/floor.c: New file.
38081         * lib/floorf.c: New file.
38082         * m4/floorf.m4: New file.
38083         * lib/math.in.h (floorf): New declaration.
38084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
38085         HAVE_DECL_FLOORF.
38086         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
38087         HAVE_DECL_FLOORF.
38088         * doc/functions/floorf.texi: Mention the 'floorf' module.
38089
38090 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
38091             Bruno Haible  <bruno@clisp.org>
38092
38093         Advertise for the Git server instead of the CVS server.
38094         * doc/gnulib-intro.texi (Steady Development): Mention the Git
38095         repository instead of the CVS one.
38096         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
38097         about all VCS systems generically.
38098         * doc/gnulib.texi (Introduction): Capitalize `Git'.
38099
38100 2007-10-04  Bruno Haible  <bruno@clisp.org>
38101
38102         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
38103         means.
38104         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
38105
38106 2007-10-04  Bruno Haible  <bruno@clisp.org>
38107
38108         * modules/truncl-tests: New file.
38109         * tests/test-truncl.c: New file.
38110
38111         * modules/truncl: New file.
38112         * lib/truncl.c: New file.
38113         * m4/truncl.m4: New file.
38114         * lib/math.in.h (truncl): New declaration.
38115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
38116         HAVE_DECL_TRUNCL.
38117         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
38118         HAVE_DECL_TRUNCL.
38119         * doc/functions/truncl.texi: Mention the 'truncl' module.
38120
38121 2007-10-04  Bruno Haible  <bruno@clisp.org>
38122
38123         * modules/truncf-tests: New file.
38124         * tests/test-truncf.c: New file.
38125
38126         * modules/truncf: New file.
38127         * lib/trunc.c: Make paramerizable through USE_* macros.
38128         * lib/truncf.c: New file.
38129         * m4/truncf.m4: New file.
38130         * lib/math.in.h (truncf): New declaration.
38131         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
38132         HAVE_DECL_TRUNCF.
38133         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
38134         HAVE_DECL_TRUNCF.
38135         * doc/functions/truncf.texi: Mention the 'truncf' module.
38136
38137 2007-10-03  Bruno Haible  <bruno@clisp.org>
38138
38139         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38140         augmentation also for tests modules.
38141         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
38142         * modules/atexit-tests (Makefile.am): Likewise.
38143         * modules/binary-io-tests (Makefile.am): Likewise.
38144         * modules/c-strcase-tests (Makefile.am): Likewise.
38145         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
38146         * modules/canonicalize-tests (Makefile.am): Likewise.
38147         * modules/closein-tests (Makefile.am): Likewise.
38148         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38149         * modules/freadahead-tests (Makefile.am): Likewise.
38150         * modules/fseek-tests (Makefile.am): Likewise.
38151         * modules/fseeko-tests (Makefile.am): Likewise.
38152         * modules/ftell-tests (Makefile.am): Likewise.
38153         * modules/ftello-tests (Makefile.am): Likewise.
38154         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
38155         * modules/isnanl-tests (Makefile.am): Likewise.
38156         * modules/lseek-tests (Makefile.am): Likewise.
38157         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38158         * modules/mbscasestr-tests (Makefile.am): Likewise.
38159         * modules/mbschr-tests (Makefile.am): Likewise.
38160         * modules/mbscspn-tests (Makefile.am): Likewise.
38161         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38162         * modules/mbspbrk-tests (Makefile.am): Likewise.
38163         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38164         * modules/mbsrchr-tests (Makefile.am): Likewise.
38165         * modules/mbsspn-tests (Makefile.am): Likewise.
38166         * modules/mbsstr-tests (Makefile.am): Likewise.
38167         * modules/printf-posix-tests (Makefile.am): Likewise.
38168         * modules/snprintf-posix-tests (Makefile.am): Likewise.
38169         * modules/sprintf-posix-tests (Makefile.am): Likewise.
38170         * modules/tsearch-tests (Makefile.am): Likewise.
38171         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38172         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38173         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38174         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38175         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38176         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38177         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38178         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38179         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
38180         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
38181         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38182         * modules/xstrtol-tests (Makefile.am): Likewise.
38183         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38184         * modules/yesno-tests (Makefile.am): Likewise.
38185
38186 2007-10-03  Bruno Haible  <bruno@clisp.org>
38187
38188         * modules/trunc-tests: New file.
38189         * tests/test-trunc.c: New file.
38190
38191         * modules/trunc: New file.
38192         * lib/trunc.c: New file.
38193         * m4/trunc.m4: New file.
38194         * lib/math.in.h (trunc): New declaration.
38195         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
38196         HAVE_DECL_TRUNC.
38197         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
38198         HAVE_DECL_TRUNC.
38199         * doc/functions/trunc.texi: Mention the 'trunc' module.
38200
38201 2007-10-03  Bruno Haible  <bruno@clisp.org>
38202
38203         * tests/test-fpending.c: New file, mostly copied
38204         from coreutils/lib/t-fpending.c.
38205         * modules/fpending-tests: New file.
38206
38207 2007-10-03  Bruno Haible  <bruno@clisp.org>
38208
38209         Port the stdio extensions to QNX (untested).
38210         * lib/fseterr.c (fseterr): Add support for QNX.
38211         * lib/fbufmode.c (fbufmode): Likewise.
38212         * lib/freadable.c (freadable): Likewise.
38213         * lib/fwritable.c (fwritable): Likewise.
38214         * lib/freading.c (freading): Likewise.
38215         * lib/fwriting.c (fwriting): Likewise.
38216         * lib/freadahead.c (freadahed): Likewise.
38217         * lib/fpurge.c (fpurge): Likewise.
38218         * lib/fseeko.c (rpl_fseeko): Likewise.
38219
38220 2007-10-03  Bruno Haible  <bruno@clisp.org>
38221             Jim Meyering  <jim@meyering.net>
38222             Eric Blake  <ebb9@byu.net>
38223
38224         * doc/relocatable.texi: Use @command instead of @program.
38225
38226 2007-10-02  Jim Meyering  <jim@meyering.net>
38227
38228         Perform one more "_.h" -> ".in.h" substitution.
38229         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
38230         instead of unistd_.h here, too.
38231
38232 2007-10-01  Bruno Haible  <bruno@clisp.org>
38233
38234         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
38235         Needed for the alloca-opt module.
38236
38237 2007-09-30  Bruno Haible  <bruno@clisp.org>
38238
38239         * lib/alloca.in.h: Renamed from lib/alloca_.h.
38240         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
38241         alloca_.h.
38242         * lib/argz.in.h: Renamed from lib/argz_.h.
38243         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
38244         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
38245         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
38246         byteswap_.h.
38247         * lib/dirent.in.h: Renamed from lib/dirent_.h.
38248         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
38249         dirent_.h.
38250         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
38251         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
38252         fcntl_.h.
38253         * lib/float.in.h: Renamed from lib/float_.h.
38254         * modules/float (Files, Makefile.am): Use float.in.h instead of
38255         float_.h.
38256         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
38257         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
38258         fnmatch_.h.
38259         * lib/getopt.in.h: Renamed from lib/getopt_.h.
38260         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
38261         getopt_.h.
38262         * lib/glob.in.h: Renamed from lib/glob_.h.
38263         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
38264         * lib/iconv.in.h: Renamed from lib/iconv_.h.
38265         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
38266         iconv_.h.
38267         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
38268         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
38269         inttypes_.h.
38270         * lib/locale.in.h: Renamed from lib/locale_.h.
38271         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
38272         locale_.h.
38273         * lib/math.in.h: Renamed from lib/math_.h.
38274         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
38275         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
38276         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
38277         of netinet_in_.h. Add dependency.
38278         * lib/poll.in.h: Renamed from lib/poll_.h.
38279         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
38280         * lib/search.in.h: Renamed from lib/search_.h.
38281         * modules/search (Files, Makefile.am): Use search.in.h instead of
38282         search_.h.
38283         * lib/signal.in.h: Renamed from lib/signal_.h.
38284         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
38285         _signal.h.
38286         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
38287         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
38288         stdbool_.h.
38289         * lib/stdint.in.h: Renamed from lib/stdint_.h.
38290         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
38291         stdint_.h.
38292         * lib/stdio.in.h: Renamed from lib/stdio_.h.
38293         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
38294         stdio_.h.
38295         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
38296         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
38297         stdlib_.h.
38298         * lib/string.in.h: Renamed from lib/string_.h.
38299         * modules/string (Files, Makefile.am): Use string.in.h instead of
38300         string_.h.
38301         * doc/gnulib-tool.texi (Initial import): Update.
38302         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
38303         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
38304         of sys_select_.h. Add dependency.
38305         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
38306         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
38307         of sys_socket_.h.
38308         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
38309         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
38310         sys_stat_.h.
38311         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
38312         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
38313         sys_time_.h.
38314         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
38315         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
38316         sysexits_.h.
38317         * lib/time.in.h: Renamed from lib/time_.h.
38318         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
38319         * lib/unistd.in.h: Renamed from lib/unistd_.h.
38320         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
38321         unistd_.h.
38322         * lib/wchar.in.h: Renamed from lib/wchar_.h.
38323         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
38324         wchar_.h.
38325         * lib/wctype.in.h: Renamed from lib/wctype_.h.
38326         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
38327         wctype_.h.
38328         * build-aux/bootstrap (slurp): Update.
38329         * lib/.cppi-disable: Update.
38330
38331 2007-09-30  Bruno Haible  <bruno@clisp.org>
38332
38333         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
38334         Needed on BeOS.
38335
38336 2007-09-30  Bruno Haible  <bruno@clisp.org>
38337
38338         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
38339
38340 2007-09-29  Bruno Haible  <bruno@clisp.org>
38341
38342         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
38343
38344 2007-09-29  Bruno Haible  <bruno@clisp.org>
38345
38346         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
38347         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
38348         * build-aux/install-reloc: Compile also areadlink.c.
38349         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
38350
38351 2007-09-29  Bruno Haible  <bruno@clisp.org>
38352
38353         * gnulib-tool (func_emit_initmacro_done): Indentation.
38354
38355 2007-09-29  Bruno Haible  <bruno@clisp.org>
38356
38357         * README: Add CVS checkout update instructions.
38358         Info from Bob Proulx <bob@proulx.com>.
38359
38360 2007-09-28  Eric Blake  <ebb9@byu.net>
38361
38362         Provide move-if-change.
38363         * build-aux/move-if-change: New file, based on best practice
38364         rather than any canonical upstream location.
38365
38366 2007-09-28  Jim Meyering  <jim@meyering.net>
38367
38368         Fix canonicalize loop-detection corner case.
38369         Do not attempt to stat the symlink values stored via seen_triple.
38370         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
38371         on linux-2.6.18, (but not 2.6.22).
38372         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
38373         triple_compare.  The former compares dev,ino,filename, while the latter
38374         would actually stat dirname(filename) when dev and ino were equal.
38375         * lib/hash-triple.c: Install <string.h>.
38376         (STREQ): Define.
38377         (triple_compare_ino_str): New function.
38378         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
38379
38380 2007-09-28  Eric Blake  <ebb9@byu.net>
38381
38382         Enforce that AC_REPLACE_FUNCS files exist.
38383         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
38384         override check for typos.
38385
38386         Fix test-closein on Solaris 10.
38387         * tests/test-closein.c (main): Don't assume stdin can be inherited
38388         closed on all systems.
38389         * tests/test-closein.sh: Likewise.
38390         Reported by Piotr Tarnowski.
38391
38392 2007-09-28  Jim Meyering  <jim@meyering.net>
38393
38394         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
38395
38396 2007-09-27  Jim Meyering  <jim@meyering.net>
38397
38398         canonicalize: Avoid a false-positive cycle failure.
38399         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
38400         Sort.  Remove cycle-check.
38401         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
38402         not cycle-check.h.
38403         (seen_triple): New function.
38404         (canonicalize_filename_mode): Use it instead of cycle-check.
38405         * tests/test-canonicalize.c: Add a test for this bug.
38406         * tests/test-canonicalize.sh: Set up and run the test.
38407
38408         New module, file-set, from coreutils.
38409         * modules/file-set: Define it.
38410         * lib/file-set.c, lib/file-set.h: Implement.
38411
38412         New module, hash-triple, from coreutils.
38413         * modules/hash-triple: Define it.
38414         * lib/hash-triple.c, lib/hash-triple.h: Implement.
38415
38416 2007-09-25  Eric Blake  <ebb9@byu.net>
38417
38418         Fix strerror on Interix.
38419         * lib/string_.h (strerror): Declare replacement.
38420         * doc/functions/strerror.texi (strerror): Document the Interix
38421         shortcoming.
38422         * modules/string (Makefile.am): Support new hooks.
38423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
38424         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
38425         gl_FUNC_STRERROR_SEPARATE.
38426         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
38427         * lib/strerror.c (rpl_strerror): Provide replacement.
38428         * modules/strerror (Depends-on): Add string.
38429         (configure.ac): Detect use of module.
38430         * tests/test-strerror.c: New file.
38431         * modules/strerror-tests: New test module.
38432         * modules/argp (Depends-on): Add strerror.
38433         * modules/error (Depends-on): Likewise.
38434         Reported by Martin Koeppe.
38435
38436 2007-09-24  Bruno Haible  <bruno@clisp.org>
38437
38438         * README: Update git instructions.
38439
38440 2007-09-24  Eric Blake  <ebb9@byu.net>
38441
38442         Revert fpending breakage from 2007-09-08.
38443         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
38444         __fpending.c.
38445
38446 2007-09-24  Jim Meyering  <jim@meyering.net>
38447
38448         filenamecat.c: Add a test.
38449         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
38450         showing how the function works when DIR is the empty string.
38451
38452 2007-09-21  Simon Josefsson  <simon@josefsson.org>
38453
38454         * tests/test-canonicalize.sh: Turn on executable bit.
38455
38456 2007-09-19  Eric Blake  <ebb9@byu.net>
38457
38458         * README: Update CVS instructions.
38459
38460 2007-09-18  Bruno Haible  <bruno@clisp.org>
38461
38462         * modules/areadlink: New file.
38463         * lib/areadlink.h (areadlink): New declaration.
38464         * lib/areadlink.c: New file, based on lib/xreadlink.c.
38465
38466 2007-09-17  Jim Meyering  <jim@meyering.net>
38467
38468         * lib/savewd.c (ESTALE) [!defined]: Define.
38469         Reported to be required on Interix by Martin Koeppe.
38470
38471 2007-09-17  Bruno Haible  <bruno@clisp.org>
38472
38473         * gnulib-tool (func_version): Use $version.
38474
38475 2007-09-16  Bruno Haible  <bruno@clisp.org>
38476
38477         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
38478         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
38479         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
38480         Reported by Greg Schafer <gschafer@zip.com.au>.
38481
38482 2007-09-15  Bruno Haible  <bruno@clisp.org>
38483
38484         * gnulib-tool (sed): Try a little harder to make bash understand the
38485         alias.
38486         Reported by Bruce Korb <bruce.korb@gmail.com>.
38487
38488 2007-09-13  Eric Blake  <ebb9@byu.net>
38489
38490         * ChangeLog: Remove conflict markers.
38491
38492 2007-09-13  Simon Josefsson  <simon@josefsson.org>
38493
38494         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
38495         Reported by Bruno Haible <bruno@clisp.org>.
38496
38497 2007-09-12  Bruno Haible  <bruno@clisp.org>
38498
38499         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
38500         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
38501         is not defined.
38502
38503 2007-09-12  Eric Blake  <ebb9@byu.net>
38504
38505         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
38506         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
38507         Autoconf definition.
38508         * modules/euidaccess (Depends-on): Add extensions, for
38509         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
38510         * modules/fnmatch (Depends-on): Likewise.
38511         * modules/getaddrinfo (Depends-on): Likewise.
38512         * modules/getdelim (Depends-on): Likewise.
38513         * modules/getline (Depends-on): Likewise.
38514         * modules/getsubopt (Depends-on): Likewise.
38515         * modules/gettext (Depends-on): Likewise.
38516         * modules/group-member (Depends-on): Likewise.
38517         * modules/mbchar (Depends-on): Likewise.
38518         * modules/memmem (Depends-on): Likewise.
38519         * modules/mempcpy (Depends-on): Likewise.
38520         * modules/memrchr (Depends-on): Likewise.
38521         * modules/pagealign_alloc (Depends-on): Likewise.
38522         * modules/readutmp (Depends-on): Likewise.
38523         * modules/stpcpy (Depends-on): Likewise.
38524         * modules/stpncpy (Depends-on): Likewise.
38525         * modules/strchrnul (Depends-on): Likewise.
38526         * modules/strndup (Depends-on): Likewise.
38527         * modules/strsep (Depends-on): Likewise.
38528         * modules/strverscmp (Depends-on): Likewise.
38529         * modules/vasprintf (Depends-on): Likewise.
38530         * modules/wcwidth (Depends-on): Likewise.
38531         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
38532         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
38533         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
38534         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
38535         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38536         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38537         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
38538         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
38539         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
38540         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38541         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38542         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38543         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38544         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38545         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
38546         * m4/readutmp.m4 (gl_READUTMP): Likewise.
38547         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38548         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38549         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38550         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38551         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38552         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38553         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38554         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
38555         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
38556         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38557         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
38558         so that lock.m4 can be used in gettext without extensions module.
38559
38560 2007-09-11  Bruno Haible  <bruno@clisp.org>
38561
38562         * m4/isc-posix.m4: Remove file.
38563         Suggested by Eric Blake.
38564
38565 2007-09-11  Eric Blake  <ebb9@byu.net>
38566
38567         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
38568
38569 2007-09-10  Bruno Haible  <bruno@clisp.org>
38570
38571         * posix-modules: Fix typo in error message.
38572         Reported by Matt <mkraai@beckman.com>.
38573
38574 2007-09-09  Bruno Haible  <bruno@clisp.org>
38575
38576         * doc/functions/getdelim.texi: Update list of platforms lacking the
38577         function.
38578         * doc/functions/getline.texi: Likewise.
38579
38580 2007-09-09  Jim Meyering  <jim@meyering.net>
38581
38582         * lib/hash.c (hash_initialize): Detect calloc failure.
38583         Reported by Bruno Haible.
38584
38585 2007-09-09  Bruno Haible  <bruno@clisp.org>
38586
38587         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
38588         malloc or realloc fails.
38589
38590 2007-09-09  Bruno Haible  <bruno@clisp.org>
38591
38592         * modules/getcwd (Depends-on): Add malloc-posix.
38593         * modules/glob (Depends-on): Likewise.
38594         * modules/putenv (Depends-on): Likewise.
38595         * modules/strdup (Depends-on): Likewise.
38596         * modules/getdelim (Depends-on): Add realloc-posix.
38597         * modules/read-file (Depends-on): Likewise.
38598
38599 2007-09-09  Bruno Haible  <bruno@clisp.org>
38600
38601         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
38602         (gl_FUNC_MALLOC_POSIX): Require it.
38603         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
38604         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
38605         * modules/realloc (Files): Add m4/malloc.m4.
38606         * modules/calloc (Files): Likewise.
38607
38608 2007-09-09  Bruno Haible  <bruno@clisp.org>
38609
38610         * modules/malloc-posix: New file.
38611         * modules/malloc (Depends-on): Add malloc-posix.
38612         * lib/malloc.c: Include errno.h.
38613         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
38614         and a POSIX-compatible malloc into a single function. Set ENOMEM
38615         when returning NULL.
38616         * m4/malloc.m4: New file.
38617         * doc/functions/malloc.texi: Mention the malloc-posix module.
38618         * lib/stdlib_.h (malloc): New declaration.
38619         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38620         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
38621         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
38622         and HAVE_MALLOC_POSIX.
38623
38624 2007-09-09  Bruno Haible  <bruno@clisp.org>
38625
38626         * modules/realloc-posix: New file.
38627         * modules/realloc (Depends-on): Add realloc-posix.
38628         * lib/realloc.c: Include errno.h.
38629         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
38630         and a POSIX-compatible realloc into a single function. Set ENOMEM
38631         when returning NULL.
38632         * m4/realloc.m4: New file.
38633         * doc/functions/realloc.texi: Mention the realloc-posix module.
38634         * lib/stdlib_.h (realloc): New declaration.
38635         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38636         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
38637         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
38638         and HAVE_REALLOC_POSIX.
38639
38640 2007-09-09  Bruno Haible  <bruno@clisp.org>
38641
38642         * modules/calloc-posix: New file.
38643         * modules/calloc (Depends-on): Add calloc-posix.
38644         * lib/calloc.c: Include errno.h.
38645         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
38646         and a POSIX-compatible calloc into a single function. Set ENOMEM
38647         when returning NULL.
38648         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
38649         * doc/functions/calloc.texi: Mention the calloc-posix module.
38650         * lib/stdlib_.h (calloc): New declaration.
38651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38652         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
38653         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
38654         and HAVE_CALLOC_POSIX.
38655
38656 2007-09-09  Bruno Haible  <bruno@clisp.org>
38657
38658         Allow for modules to show an arbitrary notice.
38659         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
38660         * gnulib-tool: New option --extract-notice.
38661         (func_usage): Document it.
38662         (sed_extract_prog): Update.
38663         (func_get_notice): New function.
38664         (func_modules_notice): New function.
38665         (func_import, func_create_testdir): Invoke it.
38666         Suggested by Jim Meyering.
38667
38668 2007-09-09  Bruno Haible  <bruno@clisp.org>
38669
38670         * gnulib-tool: New options --verbose, --quiet.
38671         (func_usage): Document them.
38672         (verbose): New variable.
38673         (func_execute_command): New function.
38674         (func_import): Don't show the module list and the file list if
38675         $verbose < 0.
38676         (func_create_testdir): Likewise. Use func_execute_command.
38677         (func_create_megatestdir): Use func_execute_command.
38678
38679 2007-09-08  Bruno Haible  <bruno@clisp.org>
38680
38681         * gnulib-tool (func_import): Prefer rsync over wget when available,
38682         for fetching the PO files.
38683
38684 2007-09-08  Bruno Haible  <bruno@clisp.org>
38685
38686         * posix-modules: New file. Portions copied from gnulib-tool.
38687         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
38688
38689 2007-09-08  Jim Meyering  <jim@meyering.net>
38690
38691         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
38692         * lib/fpending.h: Rename from __fpending.h.
38693         * lib/fpending.c: Rename from __fpending.c.
38694         Include "fpending.h", not "__fpending.h".
38695         * lib/__fpending.h, lib/__fpending.c: Remove files.
38696         * modules/fpending (Files): Reflect new file names.
38697         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
38698
38699 2007-09-08  Bruno Haible  <bruno@clisp.org>
38700
38701         * m4/inttypes-h.m4: Remove stub file.
38702
38703 2007-09-07  Simon Josefsson  <simon@josefsson.org>
38704
38705         * doc/headers/stdint.texi: Discuss #include_next issue.
38706
38707 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38708
38709         * build-aux/bootstrap: Remove obsolete comment about wget --help.
38710
38711 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38712
38713         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
38714         in variable name.
38715
38716 2007-09-03  Jim Meyering  <jim@meyering.net>
38717
38718         New module: git-version-gen.
38719         * modules/git-version-gen: New file.
38720
38721         Import changes from coreutils for bootstrap script.
38722
38723         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
38724
38725         bootstrap: uses rsync to download the .po files
38726         * build-aux/bootstrap (po_download_command_format): New global.
38727         (download_po_files): Use rsync.
38728         (update_po_files): Don't remove .po files after download,
38729         so future rsync runs can take advantage of the copies.
38730
38731         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
38732
38733         Solve the unnecessary-.po-file-regeneration problem once and for all.
38734         * build-aux/bootstrap (download_po_files): New function, renamed from
38735         get_translations.  Now, downloads, but doesn't update LINGUAS.
38736         (update_po_files): New function.
38737
38738         bootstrap: Ignore more.
38739         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
38740         uniwidth to e.g., lib/.gitignore.
38741         (slurp): Handle the sys_stat_.h -> sys mapping, too.
38742
38743         * build-aux/bootstrap: New setting: vc_ignore.
38744         (insert_sorted_if_absent): Create $file if absent.
38745         Adapt to new, possibly empty, list: $vc_ignore.
38746
38747         bootstrap: generate more ignorable names
38748         * build-aux/bootstrap (slurp): When generating ignorable names,
38749         also map .sin to .sed, .gperf to .c, and .y to .c.
38750
38751 2007-09-03  Jim Meyering  <jim@meyering.net>
38752
38753         * build-aux/git-version-gen: New file, from coreutils.  For details, see
38754         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
38755
38756 2007-09-02  Bruno Haible  <bruno@clisp.org>
38757
38758         Fix mis-recognition of 'mcs' on QNX 6.
38759         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
38760         output contains the string "Mono".
38761         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
38762         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
38763
38764 2007-09-01  Bruno Haible  <bruno@clisp.org>
38765
38766         Fix collision between uniwidth/* and linebreak modules.
38767         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
38768         u32_width): Remove declarations.
38769         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
38770         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
38771         streq3, streq2, streq1, streq0): Remove functions.
38772         (STREQ): Remove macro.
38773         (is_cjk_encoding): Remove function.
38774         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
38775         (uc_width, u8_width, u16_width, u32_width): Remove functions.
38776         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
38777         * NEWS: Document the change.
38778
38779 2007-09-01  Bruno Haible  <bruno@clisp.org>
38780
38781         * lib/streq.h: Add double-inclusion guard.
38782
38783 2007-09-01  Karl Berry  <karl@gnu.org>
38784
38785         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
38786
38787 2007-08-28  Jim Meyering  <jim@meyering.net>
38788
38789         Rename mreadlink_with_size to areadlink_with_size.
38790         * NEWS: Document the change.
38791         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
38792         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
38793         * lib/mreadlink.h: Rename this to...
38794         * lib/areadlink.h: ...this.
38795         * modules/mreadlink-with-size: Rename this to...
38796         * modules/areadlink-with-size: ...this.
38797         * lib/canonicalize.c: Reflect the renaming.
38798         * modules/canonicalize: Likewise.
38799
38800 2007-08-26  Bruno Haible  <bruno@clisp.org>
38801
38802         * gnulib-tool (func_import): When deciding which files to remove,
38803         consider also dangling symbolic links.
38804         Reported by Eric Blake.
38805
38806 2007-08-26  Bruno Haible  <bruno@clisp.org>
38807
38808         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
38809
38810 2007-08-23  Simon Josefsson  <simon@josefsson.org>
38811
38812         * lib/readline.c: Don't include getline.h, the prototype is now
38813         found in stdio.h.
38814
38815 2007-08-23  Jim Meyering  <jim@meyering.net>
38816
38817         Getdelim touchup.
38818         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
38819         around the funlockfile call, since funlockfile never sets errno.
38820         Don't set errno upon failed realloc.
38821
38822 2007-08-22  Eric Blake  <ebb9@byu.net>
38823
38824         Getline touchups.
38825         * lib/getdelim.c (getdelim): Revert regression that required *n to
38826         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
38827         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
38828         getdelim, rather than whether implementation is missing.
38829         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
38830         * lib/stdio_.h (getline): Also declare if replacement is
38831         required.
38832         * doc/functions/getdelim.texi: New file.
38833         * doc/functions/getline.texi: Likewise.
38834         * doc/gnulib.texi (Function Substitutes): Add new files.
38835         Reported by Bruno Haible.
38836
38837 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
38838
38839         * users.txt: Add Guile.
38840
38841 2007-08-22  Eric Blake  <ebb9@byu.net>
38842
38843         * tests/test-getdelim.c (main): Use remove, not unlink.
38844         * tests/test-getline.c (main): Likewise.
38845
38846         Move getline and getdelim into stdio.h, per POSIX 200x.
38847         * modules/getline (Files): Remove getline.h.
38848         (Depends-on): Add stdio.
38849         (configure.ac): Add module indicator.
38850         * modules/getdelim (Files): Remove getdelim.h.
38851         (Depends-on): Add stdio.
38852         (configure.ac): Add module indicator.
38853         * modules/stdio (Makefile.am): Work with new indicators.
38854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38855         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
38856         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38857         * lib/getdelim.h: Delete.
38858         * lib/getline.h: Delete.
38859         * lib/stdio_.h (getdelim, getline): Declare.
38860         * modules/getdelim-tests: New module.
38861         * modules/getline-tests: Likewise.
38862         * tests/test-getdelim.c: New file.
38863         * tests/test-getline.c: Likewise.
38864         * NEWS: Document the change.
38865         * lib/getline.c: Update choice of header.
38866         * lib/csharpcomp.c: Likewise.
38867         * lib/getpass.c: Likewise.
38868         * lib/javacomp.c: Likewise.
38869         * lib/javaversion.c: Likewise.
38870         * lib/yesno.c: Likewise.
38871         * lib/getdelim.c: Likewise.
38872         (getdelim): Set errno on failure, and avoid memory leak.
38873
38874 2007-08-19  Bruno Haible  <bruno@clisp.org>
38875
38876         * modules/closein (Depends-on): Add freadahead.
38877         * lib/closein.c: Include freadahead.h.
38878         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
38879         is zero.
38880
38881 2007-08-19  Bruno Haible  <bruno@clisp.org>
38882
38883         * modules/freadahead-tests: New file.
38884         * tests/test-freadahead.sh: New file.
38885         * tests/test-freadahead.c: New file.
38886
38887         * modules/freadahead: New file.
38888         * lib/freadahead.h: New file.
38889         * lib/freadahead.c: New file.
38890         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
38891         fbufmode, fpurge, freadable, fwritable.
38892
38893 2007-08-19  Eric Blake  <ebb9@byu.net>
38894
38895         Test yesno in combination with closein.
38896         * lib/yesno.c (yesno): Document use of stdin.
38897         * modules/yesno-tests (Files): New module.
38898         * tests/test-yesno.c (main): New file.
38899         * tests/test-yesno.sh: Likewise.
38900
38901 2007-08-19  Bruno Haible  <bruno@clisp.org>
38902
38903         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
38904         * lib/fseeko.c (rpl_fseeko): Likewise.
38905         * lib/fseterr.c (fseterr): Likewise.
38906
38907 2007-08-19  Bruno Haible  <bruno@clisp.org>
38908
38909         * tests/test-lseek.c (main): Disable a test for BeOS.
38910         * doc/functions/lseek.texi: Document the BeOS bug.
38911
38912 2007-08-19  Bruno Haible  <bruno@clisp.org>
38913             Eric Blake  <ebb9@byu.net>
38914
38915         * lib/lseek.c: Include <sys/stat.h>.
38916         (rpl_lseek): Add workaround code also for Unix platforms.
38917         Needed for BeOS.
38918         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
38919         * doc/functions/lseek.texi: Document BeOS definiency.
38920
38921 2007-08-18  Bruno Haible  <bruno@clisp.org>
38922
38923         * modules/fstrcmp-tests: New file.
38924         * tests/test-fstrcmp.c: New file.
38925
38926 2007-08-18  Bruno Haible  <bruno@clisp.org>
38927
38928         * modules/fstrcmp: New file, from GNU gettext with modifications.
38929         * lib/fstrcmp.h: New file, from GNU gettext.
38930         * lib/fstrcmp.c: New file, from GNU gettext.
38931         * MODULES.html.sh (String handling): Add fstrcmp.
38932
38933 2007-08-18  Bruno Haible  <bruno@clisp.org>
38934
38935         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
38936         'bool'.
38937         (diag, compareseq): Remove const from the ctxt argument.
38938         (USE_HEURISTIC): Undefine at the end.
38939
38940 2007-08-18  Jim Meyering  <jim@meyering.net>
38941
38942         New file: lib/idcache.h
38943         * NEWS: Mention the addition.
38944         * modules/idcache (Files): Add lib/idcache.h
38945         * lib/idcache.c: Include "idcache.h".
38946         Don't include <sys/types.h>.
38947         Add a FIXME comment.
38948         Move file-scoped "static" declarations to the top.
38949         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
38950
38951 2007-08-17  Bruno Haible  <bruno@clisp.org>
38952         and Paul Eggert  <eggert@cs.ucla.edu>
38953
38954         * MODULES.html.sh: Add diffseq.
38955         * modules/diffseq: New file.
38956         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
38957         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
38958
38959 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
38960
38961         Import changes from coreutils for bootstrap script.
38962
38963         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
38964
38965         * build-aux/bootstrap (slurp): Work even in environments where
38966         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
38967         current code does not slurp files whose names start with ".", and
38968         this looks like it might be a troublesome area.
38969
38970         2007-07-11  Jim Meyering  <jim@meyering.net>
38971
38972         If there's a GPL vN copyright comment, require that N == 3.
38973
38974         2007-07-08  Jim Meyering  <jim@meyering.net>
38975
38976         Run the coreutils-specific code only if tests/Makefile.am.in exists.
38977         * build-aux/bootstrap (mam_template): Move definition out of loop.
38978
38979         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
38980
38981         * build-aux/bootstrap (symlink_to_dir): Rename function from
38982         symlink_to_gnulib.  Add a directory parameter.  Update all
38983         callers.
38984         (cp_mark_as_generated): Also check for -- and link to -- files in
38985         gl/.
38986
38987         2007-07-08  Jim Meyering  <jim@meyering.net>
38988
38989         Adapt to deeper hierarchy in gnulib.
38990         * build-aux/bootstrap (symlink_to_dir): If the destination
38991         directory doesn't exist, create it. This is required at least for
38992         "lib/uniwidth/cjk.h".
38993
38994         2007-05-15  Jim Meyering  <jim@meyering.net>
38995
38996         * build-aux/bootstrap: Now that generated Makefile.am files
38997         are no longer under version control, they must be created at
38998         bootstrap time.
38999
39000 2007-08-14  Ben Pfaff  <blp@gnu.org>
39001
39002         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
39003
39004 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
39005
39006         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
39007         given the changes below.
39008         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
39009         even on hosts that have padding bits beyond the supported 64.
39010
39011 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
39012
39013         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
39014         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
39015         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
39016         depends on it.
39017         (xstrtol_error): Remove.
39018         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
39019         but with a different signature.
39020         (ATTRIBUTE_NORETURN, __attribute__): New macros.
39021         * lib/xstrtol-error.c: Include exitfail.h.
39022         (xstrtol_fatal): New function, with a different signature from the
39023         old xstrtol_error, so that the caller need not worry about passing
39024         in an exit status, or about storage management of the option argument.
39025         (xstrtol_error): Now a static function.  Redo signature to
39026         implement xstrtol_fatal.  Output the correct number of hyphens in
39027         front of the option so that the caller need not worry about
39028         storage management.
39029         (N_): New macro.
39030         (_): Remove; not used now.
39031         * modules/xstrtol: Depend on getopt.
39032         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
39033         of old STRTOL_FATAL_ERROR macro.
39034         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
39035         of test program.
39036         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
39037         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
39038
39039 2007-08-08  Eric Blake  <ebb9@byu.net>
39040
39041         * lib/xstrtol-error.c: Add missing include.
39042
39043         Move xstrtol messages into gnulib domain, when --pobase is used.
39044         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
39045         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
39046         * modules/xstrtol (Files): Distribute new file.
39047         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
39048         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
39049         * tests/test-xstrtol.c: ...into new file.
39050         * tests/test-xstrtoul.c: Also test xstrtoul.
39051         * tests/test-xstrtoimax.c: Also test xstrtoimax.
39052         * tests/test-xstrtoumax.c: Also test xstrtoumax.
39053         * tests/test-xstrtol.sh: Drive the tests.
39054         * tests/test-xstrtoimax.sh: Likewise.
39055         * tests/test-xstrtoumax.sh: Likewise.
39056         * modules/xstrtol-tests: New module.
39057         * modules/xstrtoimax-tests: Likewise.
39058         * modules/xstrtoumax-tests: Likewise.
39059
39060 2007-08-08  Jim Meyering  <jim@meyering.net>
39061
39062         New function: mfile_name_concat.
39063         * lib/filenamecat.c (mfile_name_concat): New function, just like
39064         file_name_concat, but return NULL upon failure rather than exiting
39065         with a diagnostic.
39066         * lib/filenamecat.h: Declare it.
39067
39068 2007-08-07  Bruno Haible  <bruno@clisp.org>
39069
39070         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
39071         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
39072         warning from gcc.
39073         Reported by Eric Blake.
39074
39075 2007-08-07  Simon Josefsson  <simon@josefsson.org>
39076
39077         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
39078         * modules/crypto/arcfour (License): Likewise.
39079         * modules/crypto/des-tests (License): Likewise.
39080         * modules/crypto/gc-arctwo-tests (License): Likewise.
39081         * modules/crypto/gc-des-tests (License): Likewise.
39082         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
39083         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
39084         * modules/crypto/gc-md2-tests (License): Likewise.
39085         * modules/crypto/gc-md4-tests (License): Likewise.
39086         * modules/crypto/gc-md5-tests (License): Likewise.
39087         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
39088         * modules/crypto/gc-rijndael-tests (License): Likewise.
39089         * modules/crypto/gc-sha1-tests (License): Likewise.
39090         * modules/crypto/gc-tests (License): Likewise.
39091         * modules/crypto/hmac-md5 (License): Likewise.
39092         * modules/crypto/hmac-sha1 (License): Likewise.
39093         * modules/crypto/md2-tests (License): Likewise.
39094         * modules/crypto/md4-tests (License): Likewise.
39095         * modules/crypto/md5 (License): Likewise.
39096         * modules/crypto/rijndael (License): Likewise.
39097         * modules/crypto/sha1 (License): Likewise.
39098         * modules/memxor (License): Likewise.
39099
39100 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
39101         and Bruno Haible  <bruno@clisp.org>
39102
39103         * NEWS: Describe interface changes to human, xstrtol.
39104         * lib/human.h: Include <xstrtol.h>.
39105         (human_options): Return enum strtol_error, not int.  Remove
39106         bool arg; take int * instead.
39107         * lib/human.c: Don't include "gettext.h".
39108         (_): Remove; no longer used.
39109         Don't include <xstrtol.h>, since human.h does it.
39110         (human_options): Adjust to abovementioned interface changes.
39111         Do not report error to stderr; that's now the caller's
39112         responsibility.
39113         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
39114         interface change.
39115         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
39116         Str, Argument_type_string.  All uses changed.  Put " argument"
39117         in diagnostics to make them clearer.  Change wording of suffix
39118         message for clarity.
39119         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
39120         Argument_type_string.
39121         (STRTOL_FATAL_WARN): Remove; no longer used.
39122         * modules/human (Depends-on): Remove gettext-h.
39123
39124 2007-08-06  Simon Josefsson  <simon@josefsson.org>
39125
39126         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
39127
39128 2007-07-31  Bruno Haible  <bruno@clisp.org>
39129
39130         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
39131         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
39132         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
39133
39134 2007-07-31  Bruno Haible  <bruno@clisp.org>
39135
39136         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
39137         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
39138
39139 2007-07-30  Bruno Haible  <bruno@clisp.org>
39140
39141         * modules/base64 (License): Use the synonymous term "LGPLv2+".
39142         * modules/c-ctype (License): Likewise.
39143         * modules/c-strcase (License): Likewise.
39144         * modules/check-version (License): Likewise.
39145         * modules/iconv (License): Likewise.
39146         * modules/iconv_open (License): Likewise.
39147         * modules/read-file (License): Likewise.
39148         * modules/striconv (License): Likewise.
39149         * modules/strverscmp (License): Likewise.
39150         * modules/vasprintf (License): Likewise.
39151         * modules/crypto/des (License): Likewise.
39152         * modules/crypto/gc (License): Likewise.
39153         * modules/crypto/gc-arcfour (License): Likewise.
39154         * modules/crypto/gc-arctwo (License): Likewise.
39155         * modules/crypto/gc-des (License): Likewise.
39156         * modules/crypto/gc-hmac-md5 (License): Likewise.
39157         * modules/crypto/gc-hmac-sha1 (License): Likewise.
39158         * modules/crypto/gc-md2 (License): Likewise.
39159         * modules/crypto/gc-md4 (License): Likewise.
39160         * modules/crypto/gc-md5 (License): Likewise.
39161         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
39162         * modules/crypto/gc-random (License): Likewise.
39163         * modules/crypto/gc-rijndael (License): Likewise.
39164         * modules/crypto/gc-sha1 (License): Likewise.
39165         * modules/crypto/md2 (License): Likewise.
39166         * modules/crypto/md4 (License): Likewise.
39167
39168 2007-07-30  Jim Meyering  <jim@meyering.net>
39169
39170         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
39171         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
39172         it has valid stat data.  This bug would cause du not to count the
39173         sizes of inaccessible directories.
39174         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
39175         in <http://bugzilla.redhat.com/250077>.
39176
39177 2007-07-25  Peter O'Gorman  <peter@pogma.com>
39178             Bruno Haible  <bruno@clisp.org>
39179
39180         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
39181         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
39182         #include_next, gives a diagnostic about it, but reports no error in
39183         the exit code.
39184         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39185
39186 2007-07-24  Ben Pfaff  <blp@gnu.org>
39187
39188         Improve name: "count-one-bits" is better than "popcount".
39189         * MODULES.html.sh: Update name.
39190         * lib/popcount.h: Renamed lib/count-one-bits.h.
39191         (popcount): Renamed count_one_bits.
39192         (popcountl): Renamed count_one_bits_l.
39193         (popcountll): Renamed count_one_bits_ll.
39194         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
39195         * modules/popcount: Renamed module/count-one-bits.
39196         * modules/popcount-tests: Renamed module/count-one-bits-tests.
39197         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
39198
39199 2007-07-23  Ben Pfaff  <blp@gnu.org>
39200
39201         * lib/popcount.h (popcount32): Reduce size of constants, to allow
39202         better code generation, and add U to large constants to avoid
39203         warnings, in non-GCC case.
39204         Suggested by Bruno Haible.
39205
39206 2007-07-23  Ben Pfaff  <blp@gnu.org>
39207
39208         * lib/popcount.h: Use verify_true instead of if...abort.
39209         * modules/popcount: Depend on verify module.
39210         Suggested by Jim Meyering.
39211
39212 2007-07-23  Bruno Haible  <bruno@clisp.org>
39213
39214         * gnulib-tool (func_import): Create a .cvsignore file also when the
39215         directory is not yet in CVS but the toplevel directory is. When
39216         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
39217         Reported by Karl Berry.
39218
39219 2007-07-22  Ben Pfaff  <blp@gnu.org>
39220
39221         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
39222         case.
39223         Suggested by Eric Blake.
39224
39225 2007-07-22  Ben Pfaff  <blp@gnu.org>
39226
39227         New module: popcount.
39228         * MODULES.html.sh: Add popcount.
39229         * modules/popcount: New file.
39230         * modules/popcount-tests: New file.
39231         * tests/test-popcount.c: New file.
39232         * lib/popcount.h: New file.
39233         * m4/popcount.m4: New file.
39234
39235 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
39236
39237         * build-aux/announce-gen: Update to GPLv3.
39238
39239         * build-aux/config.guess: Update from config.
39240
39241 2007-07-21  Bruno Haible  <bruno@clisp.org>
39242
39243         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
39244         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
39245
39246 2007-07-20  Jim Meyering  <jim@meyering.net>
39247
39248         * check-module: Diagnose a self-dependency.
39249
39250 2007-07-19  Bruno Haible  <bruno@clisp.org>
39251
39252         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
39253         empty.
39254         Reported by Eric Blake.
39255
39256 2007-07-18  Bruno Haible  <bruno@clisp.org>
39257
39258         * gnulib-tool: New options --po-base, --po-domain.
39259         (func_usage): Document them.
39260         (pobase, po_domain): New variables.
39261         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
39262         DEFAULT_TEXT_DOMAIN.
39263         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
39264         (func_import): Consider pobase and po_domain. Create a po/ directory.
39265         (func_create_testdir): Set pobase and po_domain to empty.
39266         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
39267         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
39268
39269 2007-07-18  Bruno Haible  <bruno@clisp.org>
39270
39271         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39272         EXTRA_DIST augmentation for files in build-aux/.
39273
39274 2007-07-16  Bruno Haible  <bruno@clisp.org>
39275
39276         * modules/lseek (License): Use the synonymous term "LGPLv2+".
39277         * modules/getdelim (License): Likewise.
39278
39279 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39280
39281         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
39282         * modules/d-type (License): Likewise.
39283         * modules/extensions (License): Likewise.
39284         * modules/fnmatch (License): Likewise.
39285         * modules/fseeko (License): Likewise.
39286         * modules/getaddrinfo (License): Likewise.
39287         * modules/getline (License): Likewise.
39288         * modules/getlogin_r (License): Likewise.
39289         * modules/getpass (License): Likewise.
39290         * modules/gettimeofday (License): Likewise.
39291         * modules/glob (License): Likewise.
39292         * modules/inet_ntop (License): Likewise.
39293         * modules/malloc (License): Likewise.
39294         * modules/malloca (License): Likewise.
39295         * modules/memmem (License): Likewise.
39296         * modules/mempcpy (License): Likewise.
39297         * modules/memset (License): Likewise.
39298         * modules/minmax (License): Likewise.
39299         * modules/mktime (License): Likewise.
39300         * modules/netinet_in (License): Likewise.
39301         * modules/pathmax (License): Likewise.
39302         * modules/poll (License): Likewise.
39303         * modules/regex (License): Likewise.
39304         * modules/snprintf (License): Likewise.
39305         * modules/stdbool (License): Likewise.
39306         * modules/stdint (License): Likewise.
39307         * modules/stdio (License): Likewise.
39308         * modules/strcase (License): Likewise.
39309         * modules/strcasestr (License): Likewise.
39310         * modules/strdup (License): Likewise.
39311         * modules/string (License): Likewise.
39312         * modules/strndup (License): Likewise.
39313         * modules/strnlen (License): Likewise.
39314         * modules/strpbrk (License): Likewise.
39315         * modules/strptime (License): Likewise.
39316         * modules/strsep (License): Likewise.
39317         * modules/sys_select (License): Likewise.
39318         * modules/sys_socket (License): Likewise.
39319         * modules/sys_stat (License): Likewise.
39320         * modules/sys_time (License): Likewise.
39321         * modules/time (License): Likewise.
39322         * modules/time_r (License): Likewise.
39323         * modules/timegm (License): Likewise.
39324         * modules/unistd (License): Likewise.
39325         * modules/vsnprintf (License): Likewise.
39326         * modules/wctype (License): Likewise.
39327
39328 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39329
39330         * modules/argz (License): LGPLv2+.
39331
39332 2007-07-15  Karl Berry  <karl@gnu.org>
39333
39334         * doc/gnulib.texi: revise node structure per new fdl.texi.
39335
39336 2007-07-14  Bruno Haible  <bruno@clisp.org>
39337
39338         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
39339         the output file.
39340         * lib/uniname/uninames.h: Regenerated.
39341
39342 2007-07-14  Karl Berry  <karl@gnu.org>
39343
39344         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
39345         omitting sectioning and index commands.
39346
39347 2007-07-13  Bruno Haible  <bruno@clisp.org>
39348
39349         New gnulib-tool option --more-symlinks.
39350         * gnulib-tool (func_usage): Document --more-symlinks.
39351         (do_copyrights): New variable.
39352         Recognize option --more-symlinks.
39353         (func_import): Don't add a copyright notice transform to
39354         sed_transform_lib_file if do_copyrights is empty.
39355
39356 2007-07-13  Bruno Haible  <bruno@clisp.org>
39357
39358         * lib/vasnprintf.c (decimal_point_char): Define also if
39359         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
39360         && !NEED_PRINTF_DIRECTIVE_A.
39361         Reported by Clemens Koller <clemens.koller@anagramm.de> via
39362         Gary V. Vaughan <gary@gnu.org>.
39363
39364 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
39365
39366         * lib/inttypes_.h: Undo previous change, since it was fixed
39367         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
39368
39369 2007-07-13  Bruno Haible  <bruno@clisp.org>
39370
39371         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
39372         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
39373
39374 2007-07-13  Jim Meyering  <jim@meyering.net>
39375
39376         df: Don't fail for Tru64's "file-on-file mount".
39377         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
39378         so we fall through and use statfs instead.  Details here:
39379         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
39380         Reported by Albert Chin.
39381
39382 2007-07-13  Bruno Haible  <bruno@clisp.org>
39383
39384         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
39385         * modules/configmake (License): Likewise.
39386         * modules/gettext (License): Likewise.
39387         * modules/gettext-h (License): Likewise.
39388         * modules/include_next (License): Likewise.
39389         * modules/link-warning (License): Likewise.
39390         * modules/localcharset (License): Likewise.
39391         * modules/localename (License): Likewise.
39392         * modules/lock (License): Likewise.
39393         * modules/relocatable-lib-lgpl (License): Likewise.
39394         * modules/size_max (License): Likewise.
39395         * modules/vasnprintf (License): Likewise.
39396         * modules/wchar (License): Likewise.
39397         * modules/xsize (License): Likewise.
39398
39399 2007-07-13  Bruno Haible  <bruno@clisp.org>
39400
39401         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
39402         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
39403
39404 2007-07-12  Bruno Haible  <bruno@clisp.org>
39405
39406         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
39407         in the modules files.
39408
39409 2007-07-11  Karl Berry  <karl@gnu.org>
39410
39411         * MODULES.html.sh (func_module): use
39412          sed -e '\|^'"${includefile}"'$|d'
39413          instead of /.../d, to avoid errors on $includefile's containing /.
39414
39415 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39416
39417         * gnulib-tool (func_import): Avoid duplication of --avoid
39418         statements
39419         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
39420         names to `_' in variable names.
39421
39422 2007-07-10  Eric Blake  <ebb9@byu.net>
39423
39424         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
39425         * NEWS: Document this change.
39426
39427 2007-07-08  Bruno Haible  <bruno@clisp.org>
39428
39429         Update to Unicode 5.0.
39430         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
39431         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
39432         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
39433         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
39434         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
39435         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
39436         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
39437         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
39438         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
39439         U+10A3F, U+1D242..U+1D244.
39440         (nonspacing_table_ind): Update.
39441         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
39442         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
39443
39444 2007-07-08  Bruno Haible  <bruno@clisp.org>
39445
39446         Update to Unicode 5.0.
39447         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
39448         code transform. Extend the name index field of unicode_name_to_code and
39449         unicode_code_to_name from 16 to 24 bits.
39450         * lib/uniname/uniname.c (unicode_character_name,
39451         unicode_name_character): Add the range 0x12xxx to the code transform.
39452         * lib/uniname/uninames.h: Regenerated.
39453         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
39454
39455 2007-07-07  Bruno Haible  <bruno@clisp.org>
39456
39457         * modules/wcwidth-tests: New file.
39458         * tests/test-wcwidth.c: New file.
39459
39460         Work around MacOS X wcwidth() bug.
39461         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
39462         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
39463         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
39464         original wcwidth in non-UTF-8 locales.
39465         * modules/wcwidth (Depends-on): Add localcharset, streq,
39466         uniwidth/width.
39467         * doc/functions/wcwidth.texi: Update.
39468
39469 2007-07-07  Bruno Haible  <bruno@clisp.org>
39470
39471         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
39472         (wcwidth): New declaration.
39473         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
39474         macros.
39475         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
39476         here. Prepare for creating <wchar.h> unconditionally.
39477         * modules/wchar (Depends-on): Add link-warning.
39478         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
39479         REPLACE_WCWIDTH, and GL_LINK_WARNING.
39480         * lib/wcwidth.h: Remove file.
39481         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
39482         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
39483         * modules/wcwidth (Files): Remove lib/wcwidth.h.
39484         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
39485         (Include): Replace wcwidth.h with <wchar.h>.
39486         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
39487         * lib/mbchar.h: Don't include wcwidth.h.
39488         * lib/mbswidth.c: Likewise.
39489         * NEWS: Mention the change.
39490
39491 2007-07-07  Bruno Haible  <bruno@clisp.org>
39492
39493         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
39494         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
39495         definition with an external declaration.
39496         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
39497         defined as a function. Remove AC_C_INLINE requirement.
39498         * modules/wcwidth (Files): Add lib/wcwidth.c.
39499         (Makefile.am): Remove redundant statement.
39500
39501 2007-07-07  Bruno Haible  <bruno@clisp.org>
39502
39503         * MODULES.html.sh (Unicode string functions): Add the new modules.
39504
39505         * tests/uniwidth/test-u32-strwidth.c: New file.
39506         * modules/uniwidth/u32-strwidth-tests: New file.
39507
39508         * lib/uniwidth/u32-strwidth.c: New file.
39509         * modules/uniwidth/u32-strwidth: New file.
39510
39511         * tests/uniwidth/test-u16-strwidth.c: New file.
39512         * modules/uniwidth/u16-strwidth-tests: New file.
39513
39514         * lib/uniwidth/u16-strwidth.c: New file.
39515         * modules/uniwidth/u16-strwidth: New file.
39516
39517         * tests/uniwidth/test-u8-strwidth.c: New file.
39518         * modules/uniwidth/u8-strwidth-tests: New file.
39519
39520         * lib/uniwidth/u8-strwidth.c: New file.
39521         * modules/uniwidth/u8-strwidth: New file.
39522
39523         * tests/uniwidth/test-u32-width.c: New file.
39524         * modules/uniwidth/u32-width-tests: New file.
39525
39526         * lib/uniwidth/u32-width.c: New file.
39527         * modules/uniwidth/u32-width: New file.
39528
39529         * tests/uniwidth/test-u16-width.c: New file.
39530         * modules/uniwidth/u16-width-tests: New file.
39531
39532         * lib/uniwidth/u16-width.c: New file.
39533         * modules/uniwidth/u16-width: New file.
39534
39535         * tests/uniwidth/test-u8-width.c: New file.
39536         * modules/uniwidth/u8-width-tests: New file.
39537
39538         * lib/uniwidth/u8-width.c: New file.
39539         * modules/uniwidth/u8-width: New file.
39540
39541         * tests/uniwidth/test-uc_width.c: New file.
39542         * modules/uniwidth/width-tests: New file.
39543
39544         * lib/uniwidth/width.c: New file, from GNU libiconv.
39545         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
39546         * modules/uniwidth/width: New file.
39547
39548         * lib/uniwidth.h: New file, from GNU libiconv.
39549         * modules/uniwidth/base: New file.
39550
39551 2007-07-07  Bruno Haible  <bruno@clisp.org>
39552
39553         * lib/uniname.h: New file, from GNU gettext.
39554         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
39555         * lib/uniname/uninames.h: New file, from GNU gettext.
39556         * lib/uniname/uniname.c: New file, from GNU gettext.
39557         * tests/uniname/test-uninames.sh: New file.
39558         * tests/uniname/test-uninames.c: New file, from GNU gettext.
39559         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
39560         * modules/uniname/base: New file.
39561         * modules/uniname/uniname: New file.
39562         * modules/uniname/uniname-tests: New file.
39563         * MODULES.html.sh (Unicode string functions): Add the new modules.
39564
39565 2007-07-06  Bruno Haible  <bruno@clisp.org>
39566
39567         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
39568
39569 2007-07-06  Bruno Haible  <bruno@clisp.org>
39570
39571         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
39572         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
39573         includes <cygwin/sys_time.h> which includes <sys/select.h> which
39574         include <sys/time.h>.
39575         Reported by Eric Blake.
39576
39577 2007-07-06  Eric Blake  <ebb9@byu.net>
39578
39579         Fix testing canonicalize on cygwin.
39580         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
39581         Revert patch from 2007-06-19.
39582         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
39583         canonicalize module is also in use.
39584         * tests/test-canonicalize.c: New file.
39585         * tests/test-canonicalize.sh: Likewise.
39586         * modules/canonicalize-tests: Likewise.
39587
39588 2007-07-06  Jim Meyering  <jim@meyering.net>
39589
39590         * lib/getugroups.c (getugroups): Detect getgrent failure.
39591         Adjust comment to reflect reality: this function may return -1.
39592
39593 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
39594
39595         * build-aux/bootstrap (TP_URL,get_translations): Update to use
39596         the new TP address.
39597         (usage): Fix typo
39598         (gnulib_mk): New variable.
39599
39600 2007-07-05  Jim Meyering  <jim@meyering.net>
39601
39602         Don't let endgrent clobber errno, no matter how improbable.
39603         * lib/getugroups.c (getugroups): Save and restore errno around
39604         endgrent call.
39605
39606         Close the group DB even when failing with 2^31 or more members.
39607         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
39608
39609 2007-07-04  Jim Meyering  <jim@meyering.net>
39610
39611         * lib/getugroups.h: New file.
39612         * lib/getugroups.c: Include "getugroups.h".
39613         Remove uses of "register" keyword.
39614         Move local variable, "cp", down into scope where used.
39615         Give "username" parameter the "const" attribute.
39616         * modules/getugroups (Files): Add lib/getugroups.h
39617
39618 2007-07-04  Karl Berry  <karl@gnu.org>
39619
39620         * MODULES.html.sh (func_all_modules): Complete rename of
39621         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
39622
39623 2007-07-02  Bruno Haible  <bruno@clisp.org>
39624
39625         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
39626         mode, when inttypes.h comes from gnulib.
39627         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39628
39629 2007-07-02  Simon Josefsson  <simon@josefsson.org>
39630
39631         * NEWS: Mention lgpl module name change.
39632
39633         * modules/lgpl-2.1: Renamed from lgpl.
39634
39635         * NEWS: Mention gpl module name change.
39636
39637         * modules/gpl-3.0: New file, based on gpl-2.0.
39638
39639         * modules/gpl-2.0: Renamed from gpl.
39640
39641         * modules/gpl: Fix filename, doc/gpl.texi is now found at
39642         doc/gpl-2.0.texi.
39643
39644 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39645
39646         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
39647         #define __STDC_LIMIT_MACROS temporarily while including
39648         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
39649         Problem reported by Joel E. Denny in
39650         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
39651
39652 2007-07-01  Bruno Haible  <bruno@clisp.org>
39653
39654         * lib/unistdio.h: New file.
39655         * lib/unistdio/u-asnprintf.h: New file.
39656         * lib/unistdio/u-asprintf.h: New file.
39657         * lib/unistdio/u-printf-args.c: New file.
39658         * lib/unistdio/u-printf-args.h: New file.
39659         * lib/unistdio/u-printf-parse.h: New file.
39660         * lib/unistdio/u-snprintf.h: New file.
39661         * lib/unistdio/u-sprintf.h: New file.
39662         * lib/unistdio/u-vasprintf.h: New file.
39663         * lib/unistdio/u-vsnprintf.h: New file.
39664         * lib/unistdio/u-vsprintf.h: New file.
39665         * lib/unistdio/ulc-asnprintf.c: New file.
39666         * lib/unistdio/ulc-asprintf.c: New file.
39667         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
39668         * lib/unistdio/ulc-printf-parse.c: New file.
39669         * lib/unistdio/ulc-snprintf.c: New file.
39670         * lib/unistdio/ulc-sprintf.c: New file.
39671         * lib/unistdio/ulc-vasnprintf.c: New file.
39672         * lib/unistdio/ulc-vasprintf.c: New file.
39673         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
39674         * lib/unistdio/ulc-vsnprintf.c: New file.
39675         * lib/unistdio/ulc-vsprintf.c: New file.
39676         * lib/unistdio/u8-asnprintf.c: New file.
39677         * lib/unistdio/u8-asprintf.c: New file.
39678         * lib/unistdio/u8-printf-parse.c: New file.
39679         * lib/unistdio/u8-snprintf.c: New file.
39680         * lib/unistdio/u8-sprintf.c: New file.
39681         * lib/unistdio/u8-vasnprintf.c: New file.
39682         * lib/unistdio/u8-vasprintf.c: New file.
39683         * lib/unistdio/u8-vsnprintf.c: New file.
39684         * lib/unistdio/u8-vsprintf.c: New file.
39685         * lib/unistdio/u8-u8-asnprintf.c: New file.
39686         * lib/unistdio/u8-u8-asprintf.c: New file.
39687         * lib/unistdio/u8-u8-snprintf.c: New file.
39688         * lib/unistdio/u8-u8-sprintf.c: New file.
39689         * lib/unistdio/u8-u8-vasnprintf.c: New file.
39690         * lib/unistdio/u8-u8-vasprintf.c: New file.
39691         * lib/unistdio/u8-u8-vsnprintf.c: New file.
39692         * lib/unistdio/u8-u8-vsprintf.c: New file.
39693         * lib/unistdio/u16-asnprintf.c: New file.
39694         * lib/unistdio/u16-asprintf.c: New file.
39695         * lib/unistdio/u16-printf-parse.c: New file.
39696         * lib/unistdio/u16-snprintf.c: New file.
39697         * lib/unistdio/u16-sprintf.c: New file.
39698         * lib/unistdio/u16-vasnprintf.c: New file.
39699         * lib/unistdio/u16-vasprintf.c: New file.
39700         * lib/unistdio/u16-vsnprintf.c: New file.
39701         * lib/unistdio/u16-vsprintf.c: New file.
39702         * lib/unistdio/u16-u16-asnprintf.c: New file.
39703         * lib/unistdio/u16-u16-asprintf.c: New file.
39704         * lib/unistdio/u16-u16-snprintf.c: New file.
39705         * lib/unistdio/u16-u16-sprintf.c: New file.
39706         * lib/unistdio/u16-u16-vasnprintf.c: New file.
39707         * lib/unistdio/u16-u16-vasprintf.c: New file.
39708         * lib/unistdio/u16-u16-vsnprintf.c: New file.
39709         * lib/unistdio/u16-u16-vsprintf.c: New file.
39710         * lib/unistdio/u32-asnprintf.c: New file.
39711         * lib/unistdio/u32-asprintf.c: New file.
39712         * lib/unistdio/u32-printf-parse.c: New file.
39713         * lib/unistdio/u32-snprintf.c: New file.
39714         * lib/unistdio/u32-sprintf.c: New file.
39715         * lib/unistdio/u32-vasnprintf.c: New file.
39716         * lib/unistdio/u32-vasprintf.c: New file.
39717         * lib/unistdio/u32-vsnprintf.c: New file.
39718         * lib/unistdio/u32-vsprintf.c: New file.
39719         * lib/unistdio/u32-u32-asnprintf.c: New file.
39720         * lib/unistdio/u32-u32-asprintf.c: New file.
39721         * lib/unistdio/u32-u32-snprintf.c: New file.
39722         * lib/unistdio/u32-u32-sprintf.c: New file.
39723         * lib/unistdio/u32-u32-vasnprintf.c: New file.
39724         * lib/unistdio/u32-u32-vasprintf.c: New file.
39725         * lib/unistdio/u32-u32-vsnprintf.c: New file.
39726         * lib/unistdio/u32-u32-vsprintf.c: New file.
39727         * tests/unistdio/test-ulc-asnprintf1.c: New file.
39728         * tests/unistdio/test-ulc-asnprintf1.h: New file.
39729         * tests/unistdio/test-ulc-printf1.h: New file.
39730         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
39731         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
39732         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
39733         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
39734         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
39735         * tests/unistdio/test-ulc-vasprintf1.c: New file.
39736         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
39737         * tests/unistdio/test-ulc-vsprintf1.c: New file.
39738         * tests/unistdio/test-u8-asnprintf1.c: New file.
39739         * tests/unistdio/test-u8-asnprintf1.h: New file.
39740         * tests/unistdio/test-u8-printf1.h: New file.
39741         * tests/unistdio/test-u8-vasnprintf1.c: New file.
39742         * tests/unistdio/test-u8-vasnprintf2.c: New file.
39743         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
39744         * tests/unistdio/test-u8-vasnprintf3.c: New file.
39745         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
39746         * tests/unistdio/test-u8-vasprintf1.c: New file.
39747         * tests/unistdio/test-u8-vsnprintf1.c: New file.
39748         * tests/unistdio/test-u8-vsprintf1.c: New file.
39749         * tests/unistdio/test-u16-asnprintf1.c: New file.
39750         * tests/unistdio/test-u16-asnprintf1.h: New file.
39751         * tests/unistdio/test-u16-printf1.h: New file.
39752         * tests/unistdio/test-u16-vasnprintf1.c: New file.
39753         * tests/unistdio/test-u16-vasnprintf2.c: New file.
39754         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
39755         * tests/unistdio/test-u16-vasnprintf3.c: New file.
39756         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
39757         * tests/unistdio/test-u16-vasprintf1.c: New file.
39758         * tests/unistdio/test-u16-vsnprintf1.c: New file.
39759         * tests/unistdio/test-u16-vsprintf1.c: New file.
39760         * tests/unistdio/test-u32-asnprintf1.c: New file.
39761         * tests/unistdio/test-u32-asnprintf1.h: New file.
39762         * tests/unistdio/test-u32-printf1.h: New file.
39763         * tests/unistdio/test-u32-vasnprintf1.c: New file.
39764         * tests/unistdio/test-u32-vasnprintf2.c: New file.
39765         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
39766         * tests/unistdio/test-u32-vasnprintf3.c: New file.
39767         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
39768         * tests/unistdio/test-u32-vasprintf1.c: New file.
39769         * tests/unistdio/test-u32-vsnprintf1.c: New file.
39770         * tests/unistdio/test-u32-vsprintf1.c: New file.
39771         * modules/unistdio/base: New file.
39772         * modules/unistdio/u-printf-args: New file.
39773         * modules/unistdio/ulc-asnprintf: New file.
39774         * modules/unistdio/ulc-asprintf: New file.
39775         * modules/unistdio/ulc-fprintf: New file.
39776         * modules/unistdio/ulc-printf-parse: New file.
39777         * modules/unistdio/ulc-snprintf: New file.
39778         * modules/unistdio/ulc-sprintf: New file.
39779         * modules/unistdio/ulc-vasnprintf: New file.
39780         * modules/unistdio/ulc-vasprintf: New file.
39781         * modules/unistdio/ulc-vfprintf: New file.
39782         * modules/unistdio/ulc-vsnprintf: New file.
39783         * modules/unistdio/ulc-vsprintf: New file.
39784         * modules/unistdio/u8-asnprintf: New file.
39785         * modules/unistdio/u8-asprintf: New file.
39786         * modules/unistdio/u8-printf-parse: New file.
39787         * modules/unistdio/u8-snprintf: New file.
39788         * modules/unistdio/u8-sprintf: New file.
39789         * modules/unistdio/u8-vasnprintf: New file.
39790         * modules/unistdio/u8-vasprintf: New file.
39791         * modules/unistdio/u8-vsnprintf: New file.
39792         * modules/unistdio/u8-vsprintf: New file.
39793         * modules/unistdio/u8-u8-asnprintf: New file.
39794         * modules/unistdio/u8-u8-asprintf: New file.
39795         * modules/unistdio/u8-u8-snprintf: New file.
39796         * modules/unistdio/u8-u8-sprintf: New file.
39797         * modules/unistdio/u8-u8-vasnprintf: New file.
39798         * modules/unistdio/u8-u8-vasprintf: New file.
39799         * modules/unistdio/u8-u8-vsnprintf: New file.
39800         * modules/unistdio/u8-u8-vsprintf: New file.
39801         * modules/unistdio/u16-asnprintf: New file.
39802         * modules/unistdio/u16-asprintf: New file.
39803         * modules/unistdio/u16-printf-parse: New file.
39804         * modules/unistdio/u16-snprintf: New file.
39805         * modules/unistdio/u16-sprintf: New file.
39806         * modules/unistdio/u16-vasnprintf: New file.
39807         * modules/unistdio/u16-vasprintf: New file.
39808         * modules/unistdio/u16-vsnprintf: New file.
39809         * modules/unistdio/u16-vsprintf: New file.
39810         * modules/unistdio/u16-u16-asnprintf: New file.
39811         * modules/unistdio/u16-u16-asprintf: New file.
39812         * modules/unistdio/u16-u16-snprintf: New file.
39813         * modules/unistdio/u16-u16-sprintf: New file.
39814         * modules/unistdio/u16-u16-vasnprintf: New file.
39815         * modules/unistdio/u16-u16-vasprintf: New file.
39816         * modules/unistdio/u16-u16-vsnprintf: New file.
39817         * modules/unistdio/u16-u16-vsprintf: New file.
39818         * modules/unistdio/u32-asnprintf: New file.
39819         * modules/unistdio/u32-asprintf: New file.
39820         * modules/unistdio/u32-printf-parse: New file.
39821         * modules/unistdio/u32-snprintf: New file.
39822         * modules/unistdio/u32-sprintf: New file.
39823         * modules/unistdio/u32-vasnprintf: New file.
39824         * modules/unistdio/u32-vasprintf: New file.
39825         * modules/unistdio/u32-vsnprintf: New file.
39826         * modules/unistdio/u32-vsprintf: New file.
39827         * modules/unistdio/u32-u32-asnprintf: New file.
39828         * modules/unistdio/u32-u32-asprintf: New file.
39829         * modules/unistdio/u32-u32-snprintf: New file.
39830         * modules/unistdio/u32-u32-sprintf: New file.
39831         * modules/unistdio/u32-u32-vasnprintf: New file.
39832         * modules/unistdio/u32-u32-vasprintf: New file.
39833         * modules/unistdio/u32-u32-vsnprintf: New file.
39834         * modules/unistdio/u32-u32-vsprintf: New file.
39835         * modules/unistdio/ulc-asnprintf-tests: New file.
39836         * modules/unistdio/ulc-vasnprintf-tests: New file.
39837         * modules/unistdio/ulc-vasprintf-tests: New file.
39838         * modules/unistdio/ulc-vsnprintf-tests: New file.
39839         * modules/unistdio/ulc-vsprintf-tests: New file.
39840         * modules/unistdio/u8-asnprintf-tests: New file.
39841         * modules/unistdio/u8-vasnprintf-tests: New file.
39842         * modules/unistdio/u8-vasprintf-tests: New file.
39843         * modules/unistdio/u8-vsnprintf-tests: New file.
39844         * modules/unistdio/u8-vsprintf-tests: New file.
39845         * modules/unistdio/u16-asnprintf-tests: New file.
39846         * modules/unistdio/u16-vasnprintf-tests: New file.
39847         * modules/unistdio/u16-vasprintf-tests: New file.
39848         * modules/unistdio/u16-vsnprintf-tests: New file.
39849         * modules/unistdio/u16-vsprintf-tests: New file.
39850         * modules/unistdio/u32-asnprintf-tests: New file.
39851         * modules/unistdio/u32-vasnprintf-tests: New file.
39852         * modules/unistdio/u32-vasprintf-tests: New file.
39853         * modules/unistdio/u32-vsnprintf-tests: New file.
39854         * modules/unistdio/u32-vsprintf-tests: New file.
39855         * MODULES.html.sh (Unicode string functions): Add the new modules.
39856
39857 2007-07-01  Bruno Haible  <bruno@clisp.org>
39858
39859         * lib/sprintf.c (sprintf): Limit the available length estimation,
39860         to avoid address wraparound.
39861         * lib/vsprintf.c (vsprintf): Likewise.
39862         * modules/sprintf-posix (Dependencies): Add stdint.
39863         * modules/vsprintf-posix (Dependencies): Likewise.
39864
39865 2007-07-01  Bruno Haible  <bruno@clisp.org>
39866
39867         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
39868         Windows PATH as well. Conservative double-quoting. Comments.
39869
39870 2007-07-01  Bruno Haible  <bruno@clisp.org>
39871             Eric Blake  <ebb9@byu.net>
39872             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39873
39874         * gnulib-tool (self_abspathname): Fix algorithm to cope with
39875         empty components in $PATH, denoting '.'.
39876
39877 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39878
39879         * gnulib-tool: Fix indentation.
39880         (func_create_megatestdir): Likewise.
39881         Report by Bruno Haible.
39882
39883 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39884
39885         Sync from Automake.
39886         * build-aux/gnupload: Fix shell portability issues with for loops.
39887         Report by Karl Berry.
39888
39889 2007-06-29  Simon Josefsson  <simon@josefsson.org>
39890
39891         * build-aux/maint.mk (POURL): Use translationproject.org.
39892
39893 2007-06-27  Simon Josefsson  <simon@josefsson.org>
39894             Bruno Haible  <bruno@clisp.org>
39895
39896         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
39897         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
39898         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
39899         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
39900         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
39901
39902 2007-06-27  Bruno Haible  <bruno@clisp.org>
39903
39904         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
39905         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
39906
39907 2007-06-26  Karl Berry  <karl@gnu.org>
39908
39909         * MODULES.html.sh: remove xreadlink-with-size.
39910
39911 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39912
39913         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
39914         method that I hope also handles the double-include problem noted
39915         by Bruno Haible in
39916         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
39917
39918 2007-06-23  Bruno Haible  <bruno@clisp.org>
39919
39920         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39921         Don't let the 'mostlyclean' target fail if the last subdirectory could
39922         not be removed.
39923         Reported by Karl Berry.
39924
39925 2007-06-23  Bruno Haible  <bruno@clisp.org>
39926
39927         * gnulib-tool (echo): Add a speedier workaround for ksh.
39928         * tests/test-echo.sh: Likewise.
39929
39930 2007-06-23  Bruno Haible  <bruno@clisp.org>
39931
39932         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
39933         * tests/test-echo.sh: Likewise.
39934
39935 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39936
39937         * gnulib-tool (IFS): Initialize early, so we don't set it to
39938         empty later.
39939         (self_abspathname): Rewrite algorithm to set it, reindent.
39940         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
39941         (func_create_megatestdir): Merge some sed scripts.
39942
39943 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39944
39945         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
39946         exposed by Sun Studio 11 cc on Solaris 8.
39947
39948 2007-06-22  Bruno Haible  <bruno@clisp.org>
39949
39950         * gnulib-tool (echo): Ensure the echo primitive does not interpret
39951         backslashes.
39952         * tests/test-echo.sh: New file.
39953
39954 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39955
39956         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
39957         simplify `sed_replace_build_aux' scripts, they are portable but
39958         echoing them with `echo' is not.
39959         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
39960
39961 2007-06-21  Karl Berry  <karl@gnu.org>
39962
39963         * config/srclist.txt: guess we can't handle the licenses via
39964         srclist at the moment.
39965
39966 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
39967
39968         * MODULES.html.sh: Add include_next.
39969         * modules/include_next: New file.
39970
39971 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
39972
39973         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
39974         INCLUDE_NEXT.
39975         (gl_CHECK_NEXT_HEADERS): New macro.
39976         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
39977         the obsolescent gl_ABSOLUTE_HEADER.
39978         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
39979         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
39980         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39981         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39982         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
39983         * m4/math_h.m4 (gl_MATH_H): Likewise.
39984         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
39985         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39986         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
39987         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39988         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
39989         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
39990         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
39991         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39992         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39993         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
39994         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39995         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
39996         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
39997         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39998         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39999         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40000         * m4/inttypes.m4 (gl_INTTYPES_H): Define
40001         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
40002         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
40003         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
40004         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
40005         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
40006         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
40007         * lib/float_.h: Likewise.
40008         * lib/inttypes_.h: Likewise.
40009         * lib/math_.h: Likewise.
40010         * lib/search_.h: Likewise.
40011         * lib/signal_.h: Likewise.
40012         * lib/stdint_.h: Likewise.
40013         * lib/stdio_.h: Likewise.
40014         * lib/stdlib_.h: Likewise.
40015         * lib/string_.h: Likewise.
40016         * lib/sys_stat_.h: Likewise.
40017         * lib/sys_time_.h: Likewise.
40018         * lib/time_.h: Likewise.
40019         * lib/unistd_.h: Likewise.
40020         * lib/wchar_.h: Likewise.
40021         * lib/wctype_.h: Likewise.
40022         * lib/dirent_.h: Likewise.
40023         * lib/iconv_.h: Likewise.
40024         * lib/locale_.h: Likewise.
40025         * lib/netinet_in_.h: Likewise.
40026         * lib/sys_select_.h: Likewise.
40027         * lib/sys_socket_.h: Likewise.
40028         * lib/sysexits_.h: Likewise.
40029         * modules/fcntl (Depends-on): Depend on include_next, not
40030         absolute_header.
40031         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
40032         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
40033         * modules/fchdir: Likewise.
40034         * modules/float: Likewise.
40035         * modules/iconv_open: Likewise.
40036         * modules/inttypes: Likewise.
40037         * modules/locale: Likewise.
40038         * modules/math: Likewise.
40039         * modules/netinet_in: Likewise.
40040         * modules/search: Likewise.
40041         * modules/signal: Likewise.
40042         * modules/stdint: Likewise.
40043         * modules/stdio: Likewise.
40044         * modules/stdlib: Likewise.
40045         * modules/string: Likewise.
40046         * modules/sys_select: Likewise.
40047         * modules/sys_socket: Likewise.
40048         * modules/sys_stat: Likewise.
40049         * modules/sys_time: Likewise.
40050         * modules/sysexits: Likewise.
40051         * modules/time: Likewise.
40052         * modules/unistd: Likewise.
40053         * modules/wchar: Likewise.
40054         * modules/wctype: Likewise.
40055         * modules/sys_stat: Change maintainer to "all".
40056         * modules/unistd: Likewise.
40057
40058 2007-06-20  Karl Berry  <karl@gnu.org>
40059
40060         * config/srclist.txt: track www changes in license files.
40061
40062 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
40063
40064         * build-aux/bootstrap: Remove stray dot.
40065         Make sure build_aux settings are honored when linking
40066         gnulib_extra_files.
40067
40068 2007-06-19  Eric Blake  <ebb9@byu.net>
40069
40070         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40071         Allow compilation on cygwin.
40072
40073 2007-06-19  Jim Meyering  <jim@meyering.net>
40074
40075         xreadlink-with-size: Remove module.  No longer used.
40076         Ex-callers now use xreadlink or mreadlink-with-size.
40077         * modules/xreadlink-with-size: Remove module.
40078         * lib/xreadlink-with-size.c: Remove file.
40079         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
40080         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
40081         just before the function definition *is* accurate.
40082
40083         Eliminate one way canonicalize_filename_mode could exit.
40084         * lib/canonicalize.c (canonicalize_filename_mode):
40085         Use mreadlink_with_size, not xreadlink_with_size.
40086
40087 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
40088
40089         Detect porting problems to FreeBSD/arm, which has time_t wider than
40090         long int.  Original problem reported for GNU diff by Xin Li in
40091         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
40092         * modules/getdate (Depends-on): Add intprops, verify.
40093         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
40094         is an integer type no wider than long int.
40095
40096 2007-06-18  Jim Meyering  <jim@meyering.net>
40097
40098         New module: mreadlink-with-size.
40099         * MODULES.html.sh: Add mreadlink-with-size.
40100         * modules/mreadlink-with-size: New module
40101         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
40102         not xreadlink-with-size.
40103         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
40104
40105 2007-06-16  Bruno Haible  <bruno@clisp.org>
40106
40107         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
40108         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
40109         Reported by Gary V. Vaughan <gary@gnu.org>.
40110
40111 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
40112
40113         Revamp lchown so that it lives in unistd.h where it belongs.
40114         * lib/lchown.h: Remove.
40115         * lib/dirchownmod.c: Don't include lib/lchown.h.
40116         * lib/fchownat.c: Likewise.
40117         * lib/openat.c: Likewise.
40118         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
40119         does not follow symlinks.
40120         (EOPNOTSUPP): Define if not defined.
40121         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
40122         is defined to 0.
40123         (lchown): New decl.
40124         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
40125         Do not check for lchown decl.
40126         Set REPLACE_LCHOWN.
40127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
40128         REPLACE_LCHOWN.
40129         * modules/chown: Make it clear it follows symlinks.
40130         * modules/lchown: Make it clear it doesn't follow symlinks.
40131         (Files): Remove lib/lchown.h
40132         (Depends-on): Add unistd.
40133         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
40134         (Include): Include <unistd.h>, not "lchown.h".
40135         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
40136         REPLACE_LCHOWN.
40137
40138 2007-06-15  Jim Meyering  <jim@meyering.net>
40139
40140         Change license (GPL to LGPL) of fsusage and dependents.
40141         * modules/fsusage (License): Change to LGPL.
40142         * modules/full-read (License): Likewise.
40143         * modules/full-write (License): Likewise.
40144         * modules/safe-read (License): Likewise.
40145         * modules/safe-write (License): Likewise.
40146
40147 2007-06-14  Ben Pfaff  <blp@gnu.org>
40148
40149         Missing part of allocsa -> malloca transition.
40150         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
40151         gl_MALLOCA.
40152
40153 2007-06-12  Bruno Haible  <bruno@clisp.org>
40154
40155         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
40156         to ia64, x86_64, i386.
40157         Reported by Eric Blake.
40158
40159 2007-06-12  Bruno Haible  <bruno@clisp.org>
40160
40161         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
40162         cross-compiling to x86_64.
40163
40164 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
40165
40166         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
40167         glitch reported by Ralf Wildenhues in
40168         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
40169
40170         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
40171         Vin Shelton.
40172
40173 2007-06-11  Bruno Haible  <bruno@clisp.org>
40174
40175         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
40176         replacement string.
40177         Reported by Eric Blake.
40178
40179 2007-06-10  Bruno Haible  <bruno@clisp.org>
40180
40181         Prepare vasnprintf code for use with Unicode strings.
40182         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
40183         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
40184         TYPE_U32_STRING.
40185         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
40186         a_u32_string variants.
40187         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40188         * lib/printf-args.c: Don't include config.h and the specification
40189         header if PRINTF_FETCHARGS is already defined.
40190         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40191         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
40192         TYPE_U16_STRING, TYPE_U32_STRING.
40193         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
40194         u16_directive, u16_directives, u32_directive, u32_directives): New
40195         types.
40196         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
40197         New declarations.
40198         * lib/printf-parse.c: Don't include config.h and the specification
40199         header if PRINTF_PARSE is already defined. Eliminate the set of
40200         parameters for WIDE_CHAR_VERSION; the user of this file must provide
40201         them now. Include c-ctype.h.
40202         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
40203         directive and CHAR_T_ONLY_ASCII.
40204         * lib/vasnprintf.c: Don't include config.h and the specification header
40205         if VASNPRINTF is already defined.
40206         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
40207         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
40208         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
40209         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
40210         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
40211         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
40212         code accordingly.
40213         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
40214         pad_ourselves also in this case, with the 'c' and 's' directives, and
40215         with a different notion of "width".
40216         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
40217
40218 2007-06-10  Bruno Haible  <bruno@clisp.org>
40219
40220         * modules/unistr/u32-mbsnlen: New file.
40221         * lib/unistr/u32-mbsnlen.c: New file.
40222
40223         * modules/unistr/u16-mbsnlen: New file.
40224         * lib/unistr/u16-mbsnlen.c: New file.
40225
40226         * modules/unistr/u8-mbsnlen: New file.
40227         * lib/unistr/u8-mbsnlen.c: New file.
40228
40229         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
40230         declarations.
40231
40232 2007-06-10  Bruno Haible  <bruno@clisp.org>
40233
40234         * lib/string_.h (mbsnlen): New declaration.
40235         * lib/mbsnlen.c: New file.
40236         * m4/mbsnlen.m4: New file.
40237         * modules/mbsnlen: New file.
40238         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
40239         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
40240         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
40241
40242 2007-06-10  Bruno Haible  <bruno@clisp.org>
40243
40244         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
40245
40246 2007-06-10  Bruno Haible  <bruno@clisp.org>
40247
40248         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
40249         * lib/mbuiter.h: Likewise.
40250
40251 2007-06-10  Bruno Haible  <bruno@clisp.org>
40252
40253         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
40254         declaration.
40255
40256 2007-06-10  Karl Berry  <karl@gnu.org>
40257
40258         * config/srclist.txt: remove gettext entries, Bruno prefers
40259         to update individually.
40260
40261 2007-06-10  Bruno Haible  <bruno@clisp.org>
40262
40263         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
40264         'maxlen'. Ensure only length + width bytes are allocated, not
40265         length + 1 + width.
40266
40267 2007-06-09  Bruno Haible  <bruno@clisp.org>
40268
40269         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
40270         (CHAR_T): Remove macro.
40271         (VASNPRINTF): Update.
40272
40273 2007-06-09  Bruno Haible  <bruno@clisp.org>
40274
40275         * MODULES.html.sh (Unicode string functions): Add the new modules.
40276
40277         * modules/uniconv/u32-conv-to-enc: New file.
40278         * lib/uniconv/u32-conv-to-enc.c: New file.
40279         * modules/uniconv/u32-conv-to-enc-tests: New file.
40280         * tests/uniconv/test-u32-conv-to-enc.c: New file.
40281
40282         * modules/uniconv/u16-conv-to-enc: New file.
40283         * lib/uniconv/u16-conv-to-enc.c: New file.
40284         * lib/uniconv/u-conv-to-enc.h: New file.
40285         * modules/uniconv/u16-conv-to-enc-tests: New file.
40286         * tests/uniconv/test-u16-conv-to-enc.c: New file.
40287
40288         * modules/uniconv/u8-conv-to-enc: New file.
40289         * lib/uniconv/u8-conv-to-enc.c: New file.
40290         * modules/uniconv/u8-conv-to-enc-tests: New file.
40291         * tests/uniconv/test-u8-conv-to-enc.c: New file.
40292
40293         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40294         u32_conv_to_encoding): New declarations.
40295
40296 2007-06-09  Bruno Haible  <bruno@clisp.org>
40297
40298         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
40299
40300 2007-06-09  Bruno Haible  <bruno@clisp.org>
40301
40302         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
40303         * modules/malloca: Renamed from modules/allocsa, updated.
40304         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
40305         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
40306         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
40307         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
40308         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
40309         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
40310         * modules/xmalloca: Renamed from modules/xallocsa, updated.
40311         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
40312         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
40313         * modules/c-strcasestr (Depends-on): Update.
40314         * lib/c-strcasestr.c: Update.
40315         * modules/c-strstr (Depends-on): Update.
40316         * lib/c-strstr.c: Update.
40317         * modules/canonicalize-lgpl (Depends-on): Update.
40318         * lib/canonicalize-lgpl.c: Update.
40319         * modules/clean-temp (Depends-on): Update.
40320         * lib/clean-temp.c: Update.
40321         * modules/csharpcomp (Depends-on): Update.
40322         * lib/csharpcomp.c: Update.
40323         * modules/csharpexec (Depends-on): Update.
40324         * lib/csharpexec.c: Update.
40325         * modules/javacomp (Depends-on): Update.
40326         * lib/javacomp.c: Update.
40327         * modules/javaexec (Depends-on): Update.
40328         * lib/javaexec.c: Update.
40329         * modules/mbscasestr (Depends-on): Update.
40330         * lib/mbscasestr.c: Update.
40331         * modules/mbsstr (Depends-on): Update.
40332         * lib/mbsstr.c: Update.
40333         * modules/setenv (Depends-on): Update.
40334         * lib/setenv.c: Update.
40335         * modules/strcasestr (Depends-on): Update.
40336         * lib/strcasestr.c: Update.
40337         * modules/striconveha (Depends-on): Update.
40338         * lib/striconveha.c: Update.
40339         * modules/relocatable-prog-wrapper (Files): Update.
40340         * lib/relocwrapper.c: Update.
40341         * build-aux/install-reloc: Update.
40342         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
40343
40344 2007-06-08  Bruno Haible  <bruno@clisp.org>
40345
40346         Port to uClibc.
40347         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
40348         * lib/fpurge.c (fpurge): Likewise.
40349         * lib/freading.c (freading): Likewise.
40350         * lib/fseeko.c (rpl_fseeko): Likewise.
40351         * lib/fseterr.c (fseterr): Likewise.
40352         * lib/fwriting.c (fwriting): Likewise.
40353         * tests/test-fflush.c (main): Avoid a failure on uClibc.
40354
40355 2007-06-08  Bruno Haible  <bruno@clisp.org>
40356
40357         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
40358         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
40359         * modules/gettext (Files): Add m4/intlmacosx.m4.
40360
40361 2007-06-07  Bruno Haible  <bruno@clisp.org>
40362
40363         * modules/localename-tests: New file.
40364         * tests/test-localename.c: New file.
40365
40366         New module 'localename'.
40367         * lib/localename.h: New file.
40368         * lib/localename.c: New file, from GNU gettext.
40369         * m4/localename.m4: New file.
40370         * modules/localename: New file.
40371
40372 2007-06-07  Bruno Haible  <bruno@clisp.org>
40373
40374         Work around the lack of <wchar.h> on some builds of uClibc.
40375         * doc/headers/wchar.texi: Update.
40376         * lib/wchar_.h: Include <wchar.h> only if it exists.
40377         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
40378         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
40379         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
40380         doesn't exist.
40381         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
40382         * modules/mbfile (Depends-on): Add wchar.
40383         * modules/mbiter (Depends-on): Likewise.
40384         * modules/mbuiter (Depends-on): Likewise.
40385         Reported by Simon Josefsson.
40386
40387 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40388
40389         Work around problem reported by Steven M. Schweda in
40390         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
40391         Tru64 5.1B with the Compaq compiler environment installed declares
40392         an 'isblank' function but does not define it in the C library.
40393         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
40394         * lib/regex_internal.h (isblank): Likewise.
40395         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
40396         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40397
40398 2007-06-05  Bruno Haible  <bruno@clisp.org>
40399
40400         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
40401         ia64.
40402         * modules/printf-safe: New file.
40403         * modules/fprintf-posix (Depends-on): Add printf-safe.
40404         * modules/printf-posix (Depends-on): Likewise.
40405         * modules/snprintf-posix (Depends-on): Likewise.
40406         * modules/sprintf-posix (Depends-on): Likewise.
40407         * modules/vasnprintf-posix (Depends-on): Likewise.
40408         * modules/vasprintf-posix (Depends-on): Likewise.
40409         * modules/vfprintf-posix (Depends-on): Likewise.
40410         * modules/vprintf-posix (Depends-on): Likewise.
40411         * modules/vsnprintf-posix (Depends-on): Likewise.
40412         * modules/vsprintf-posix (Depends-on): Likewise.
40413         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
40414         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
40415         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
40416         "no" on i386, x86_64, ia64.
40417         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
40418         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40419         on i386, x86_64, ia64.
40420         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
40421         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40422         on i386, x86_64, ia64.
40423         * tests/test-vasnprintf-posix.c: Include float.h.
40424         (LDBL80_WORDS): New macro.
40425         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40426         on i386, x86_64, ia64.
40427         * tests/test-vasprintf-posix.c: Include float.h.
40428         (LDBL80_WORDS): New macro.
40429         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40430         on i386, x86_64, ia64.
40431         * tests/test-snprintf-posix.c: Include float.h.
40432         * tests/test-sprintf-posix.c: Likewise.
40433         * tests/test-vsnprintf-posix.c: Likewise.
40434         * tests/test-vsprintf-posix.c: Likewise.
40435
40436 2007-06-05  Bruno Haible  <bruno@clisp.org>
40437
40438         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
40439         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
40440         non-IEEE numbers on i386, x86_64, ia64.
40441         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
40442         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
40443         * tests/test-isnanl.h: Include float.h.
40444         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
40445
40446 2007-06-05  Bruno Haible  <bruno@clisp.org>
40447
40448         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
40449         also the %a / %A. Handle the %a / %A code before this extra handling.
40450
40451 2007-06-05  Bruno Haible  <bruno@clisp.org>
40452
40453         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
40454         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
40455
40456 2007-06-05  Bruno Haible  <bruno@clisp.org>
40457
40458         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
40459         typo in variable name.
40460
40461 2007-06-05  Eric Blake  <ebb9@byu.net>
40462
40463         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
40464         Reported by Simon Josefsson.
40465
40466 2007-06-04  Bruno Haible  <bruno@clisp.org>
40467
40468         Avoid test failures on some PowerPC platforms.
40469         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
40470         Define differently for PowerPC.
40471         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
40472         Reported by Gary V. Vaughan <gary@gnu.org>.
40473
40474 2007-06-02  Bruno Haible  <bruno@clisp.org>
40475
40476         Fix test-stdint failure on FreeBSD/ia64.
40477         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
40478         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
40479         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
40480         * doc/headers/stdint.texi: Update.
40481
40482 2007-06-01  Bruno Haible  <bruno@clisp.org>
40483
40484         * tests/test-binary-io.c (main): Pass a third argument to open().
40485         Reported by Gary V. Vaughan <gary@gnu.org>.
40486
40487 2007-06-01  Bruno Haible  <bruno@clisp.org>
40488
40489         * doc/functions/frexpl.texi: Update for mingw.
40490
40491 2007-06-01  Bruno Haible  <bruno@clisp.org>
40492
40493         * tests/test-lseek.c (main): Disable test of errno for invalid third
40494         argument.
40495         * doc/functions/lseek.texi: Update.
40496         Reported by Gary V. Vaughan <gary@gnu.org>.
40497
40498 2007-05-28  Bruno Haible  <bruno@clisp.org>
40499
40500         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
40501
40502 2007-05-31  Eric Blake  <ebb9@byu.net>
40503
40504         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
40505         cross compiling.
40506
40507 2007-05-30  Eric Blake  <ebb9@byu.net>
40508         and Bruno Haible  <bruno@clisp.org>
40509
40510         Work around mingw test failures exposed by m4-1.4.9b.
40511         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
40512         * tests/test-unistd.c: Disable uid_t and git_t tests for the
40513         moment.
40514
40515 2007-05-30  Bruno Haible  <bruno@clisp.org>
40516
40517         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
40518         assuming that they are closed. Needed on HP-UX 11.
40519
40520 2007-05-29  Bruno Haible  <bruno@clisp.org>
40521
40522         Fix a problem with #include_next.
40523         * lib/dirent_.h: Split the double-inclusion guard.
40524         * lib/fcntl_.h: Likewise.
40525         * lib/float_.h: Likewise.
40526         * lib/iconv_.h: Likewise.
40527         * lib/inttypes_.h: Likewise.
40528         * lib/locale_.h: Likewise.
40529         * lib/math_.h: Likewise.
40530         * lib/netinet_in_.h: Likewise.
40531         * lib/search_.h: Likewise.
40532         * lib/signal_.h: Likewise.
40533         * lib/stdint_.h: Likewise.
40534         * lib/stdio_.h: Likewise.
40535         * lib/stdlib_.h: Likewise.
40536         * lib/string_.h: Likewise.
40537         * lib/sys_select_.h: Likewise.
40538         * lib/sys_socket_.h: Likewise.
40539         * lib/sys_stat_.h: Likewise.
40540         * lib/sys_time_.h: Likewise.
40541         * lib/sysexits_.h: Likewise.
40542         * lib/time_.h: Likewise.
40543         * lib/unistd_.h: Likewise.
40544         * lib/wchar_.h: Likewise.
40545         * lib/wctype_.h: Likewise.
40546
40547 2007-05-29  Bruno Haible  <bruno@clisp.org>
40548
40549         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
40550         for the moment.
40551
40552 2007-05-29  Bruno Haible  <bruno@clisp.org>
40553
40554         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
40555         invocation.
40556         Reported by Eric Blake.
40557
40558 2007-05-29  Bruno Haible  <bruno@clisp.org>
40559
40560         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
40561         compiling case.
40562
40563 2007-05-29  Eric Blake  <ebb9@byu.net>
40564             Bruno Haible  <bruno@clisp.org>
40565
40566         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
40567         cross compiles.
40568
40569 2007-05-28  Eric Blake  <ebb9@byu.net>
40570
40571         * modules/closein-tests (test_closein_LDADD): Support test on
40572         cygwin with libtool.
40573
40574 2007-05-28  Bruno Haible  <bruno@clisp.org>
40575
40576         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
40577         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40578         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40579         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40580         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40581         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40582         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40583         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40584         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40585
40586 2007-05-28  Eric Blake  <ebb9@byu.net>
40587
40588         Unconditionally include <config.h> in unit tests.
40589         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
40590         * tests/test-allocsa.c, tests/test-arcfour.c,
40591         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
40592         tests/test-array_list.c, tests/test-array_oset.c,
40593         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
40594         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
40595         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
40596         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
40597         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
40598         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
40599         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
40600         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
40601         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
40602         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
40603         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
40604         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
40605         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
40606         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
40607         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
40608         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
40609         test-md5.c, test-memmem.c, test-printf-posix.c,
40610         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
40611         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
40612         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
40613         test-strcasestr.c, test-striconv.c, test-striconveh.c,
40614         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
40615         test-vasnprintf-posix2.c, test-vasnprintf.c,
40616         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
40617         test-vfprintf-posix.c, test-vprintf-posix.c,
40618         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
40619         test-xvasprintf.c: Likewise.
40620
40621 2007-05-28  Bruno Haible  <bruno@clisp.org>
40622
40623         * gnulib-tool (func_import): Remember the --with-tests command-line
40624         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
40625         Reported by Eric Blake.
40626
40627 2007-05-28  Bruno Haible  <bruno@clisp.org>
40628
40629         * modules/ftell-tests: New file.
40630         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
40631         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
40632
40633         * lib/ftell.c: New file.
40634         * modules/ftell: New file.
40635         * m4/ftell.m4: New file.
40636         * doc/functions/ftell.texi: Update.
40637         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
40638         REPLACE_FTELL.
40639         * lib/stdio_.h (rpl_ftell): New declaration.
40640         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
40641         REPLACE_FTELL.
40642
40643 2007-05-28  Eric Blake  <ebb9@byu.net>
40644
40645         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
40646
40647 2007-05-28  Bruno Haible  <bruno@clisp.org>
40648
40649         * modules/fseek-tests: New file.
40650         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
40651         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
40652
40653         * lib/fseek.c: New file.
40654         * modules/fseek: New file.
40655         * m4/fseek.m4: New file.
40656         * doc/functions/fseek.texi: Update.
40657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
40658         REPLACE_FSEEK.
40659         * lib/stdio_.h (rpl_fseek): New declaration.
40660         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
40661         REPLACE_FSEEK.
40662
40663 2007-05-28  Bruno Haible  <bruno@clisp.org>
40664
40665         * lib/stdio_.h (fflush): More comments.
40666
40667 2007-05-28  Bruno Haible  <bruno@clisp.org>
40668
40669         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
40670         runtime test.
40671
40672 2007-05-28  Eric Blake  <ebb9@byu.net>
40673
40674         Improve lseek module.
40675         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
40676         * lib/unistd_.h (lseek): Scale back link warning message.
40677         * tests/test-lseek.c: Beef up test.
40678         * tests/test-lseek.sh: Exercise more facets of lseek.
40679         Reported by Bruno Haible.
40680
40681 2007-05-28  Bruno Haible  <bruno@clisp.org>
40682
40683         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
40684         to define.
40685
40686 2007-05-27  Bruno Haible  <bruno@clisp.org>
40687
40688         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
40689
40690 2007-05-27  Bruno Haible  <bruno@clisp.org>
40691
40692         * modules/openmp: New file.
40693         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
40694         Noah Misch.
40695
40696 2007-05-26  Bruno Haible  <bruno@clisp.org>
40697
40698         * modules/chdir-long (Depends-on): Add fchdir.
40699         * modules/chdir-safer (Depends-on): Likewise.
40700         * modules/fts (Depends-on): Likewise.
40701         * modules/fts-lgpl (Depends-on): Likewise.
40702         * modules/openat (Depends-on): Likewise.
40703         * modules/savewd (Depends-on): Likewise.
40704
40705 2007-05-24  Eric Blake  <ebb9@byu.net>
40706
40707         Fix lseek on mingw.
40708         * modules/lseek: New module.
40709         * m4/lseek.m4: New file.
40710         * lib/lseek.c: New file.
40711         * modules/lseek-tests: New file.
40712         * tests/test-lseek.c: New file.
40713         * tests/test-lseek.sh: New file.
40714         * MODULES.html.sh: Document lseek module.
40715         * modules/fflush (Depends-on): Add lseek, fseeko.
40716         * modules/fseeko (Depends-on): Likewise.
40717         * modules/ftello (Depends-on): Likewise.
40718         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
40719         broken.
40720         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
40721         broken.
40722         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
40723         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
40724         * lib/ftello.c (rpl_ftello): Likewise.
40725         * tests/test-fseeko.c (main): Test this.
40726         * tests/test-fseeko.sh: Likewise.
40727         * tests/test-ftello.c (main): Likewise.
40728         * tests/test-ftello.sh: Likewise.
40729         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
40730         implies replacing fseek.
40731         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
40732         HAVE_FTELLO.
40733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
40734         * modules/unistd (Makefile.am): Likewise.
40735         * lib/unistd_.h (lseek): Declare a replacement.
40736         * doc/functions/lseek.texi (lseek): Document this fix.
40737         * doc/functions/fseek.texi (fseek): Likewise.
40738         * doc/functions/ftell.texi (ftell): Likewise.
40739
40740 2007-05-24  Bruno Haible  <bruno@clisp.org>
40741
40742         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
40743         in the printed representation of a NaN.
40744         * tests/test-vasprintf-posix.c (test_function): Likewise.
40745         * tests/test-snprintf-posix.h (test_function): Likewise.
40746         * tests/test-sprintf-posix.h (test_function): Likewise.
40747         Reported by Eric Blake.
40748
40749 2007-05-23  Eric Blake  <ebb9@byu.net>
40750
40751         Fix fseeko/ftello on cygwin 1.5.24.
40752         * doc/functions/fseeko.texi (fseeko): Document the fix.
40753         * doc/functions/ftello.texi (ftello): Document the fix.
40754         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
40755         * doc/functions/stdout.text (stdout): New file.
40756         * doc/functions/stderr.text (stderr): New file.
40757         * doc/gnulib.texi (Function Substitutes): Use new files.
40758         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
40759         prior to 1.7.0.
40760         * tests/test-ftello.c (main): Likewise for ftello.
40761         * tests/test-fseeko.sh: New file.
40762         * tests/test-ftello.sh: New file.
40763         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
40764         with seekable stdin.
40765         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
40766         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
40767         (gl_REPLACE_FSEEKO): New macro.
40768         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
40769         * modules/fseeko (Files): Distribute fseeko.c.
40770         * modules/ftello (Files): Distribute ftello.c.
40771         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
40772         mode.
40773         * lib/ftello.c (rpl_ftello): New file.
40774         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
40775         fseeko, ftello.
40776         (gl_STDIN_LARGE_OFFSET): New macro.
40777         * modules/stdio (Makefile.am): Perform the replacement.
40778         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
40779
40780 2007-05-23  Bruno Haible  <bruno@clisp.org>
40781
40782         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
40783         GNULIB_POSIXCHECK is defined.
40784
40785 2007-05-21  Bruno Haible  <bruno@clisp.org>
40786
40787         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
40788         Check also the output for NaN arguments. When cross-compiling, guess
40789         no on IRIX.
40790         * lib/vasnprintf.c: Update comments.
40791         * tests/test-vasnprintf-posix.c (strisnan): New function.
40792         (test_function): Use it.
40793         * tests/test-vasprintf-posix.c (strisnan): New function.
40794         (test_function): Use it.
40795         * tests/test-snprintf-posix.h (strisnan): New function.
40796         (test_function): Use it.
40797         * tests/test-sprintf-posix.h (strisnan): New function.
40798         (test_function): Use it.
40799         Reported by Eric Blake.
40800
40801 2007-05-20  Bruno Haible  <bruno@clisp.org>
40802
40803         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
40804         numbers that fails on BeOS.
40805         * doc/functions/frexpl.texi: Update.
40806
40807 2007-05-20  Jim Meyering  <jim@meyering.net>
40808
40809         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
40810         forced upon us by glibc-2.6.
40811
40812 2007-05-20  Bruno Haible  <bruno@clisp.org>
40813
40814         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
40815         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
40816         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
40817         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
40818         NEED_PRINTF_INFINITE.
40819         (is_infinitel): New function.
40820         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
40821         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
40822         gl_PREREQ_VASNPRINTF_INFINITE.
40823         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
40824         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40825         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
40826         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
40827         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
40828         gl_PREREQ_VASNPRINTF_INFINITE.
40829         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40830         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40831         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40832         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40833         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40834         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40835         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40836         * doc/functions/fprintf.texi: Update.
40837         * doc/functions/printf.texi: Update.
40838         * doc/functions/snprintf.texi: Update.
40839         * doc/functions/sprintf.texi: Update.
40840         * doc/functions/vfprintf.texi: Update.
40841         * doc/functions/vprintf.texi: Update.
40842         * doc/functions/vsnprintf.texi: Update.
40843         * doc/functions/vsprintf.texi: Update.
40844
40845 2007-05-20  Bruno Haible  <bruno@clisp.org>
40846
40847         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
40848         was not found in libc.
40849         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
40850
40851 2007-05-20  Bruno Haible  <bruno@clisp.org>
40852
40853         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
40854         printed as "-nan" instead of "nan".
40855         * tests/test-vasprintf-posix.c (test_function): Likewise.
40856         * tests/test-snprintf-posix.h (test_function): Likewise.
40857         * tests/test-sprintf-posix.h (test_function): Likewise.
40858         Needed for HP-UX 11.
40859
40860 2007-05-20  Jim Meyering  <jim@meyering.net>
40861
40862         Fix buggy test for the fchownat-deref bug.
40863         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
40864         symlink required for the run-test.  Without it, this test would
40865         always declare that fchownat doesn't work, and client code would
40866         unnecessarily use the replacement function with fixed libc.
40867         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
40868         Reported by Greg Schafer.
40869
40870 2007-05-19  Bruno Haible  <bruno@clisp.org>
40871
40872         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
40873         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
40874         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
40875         Needed for IRIX 6.5 and Solaris 2.5.1.
40876
40877 2007-05-19  Bruno Haible  <bruno@clisp.org>
40878
40879         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
40880         (test_function): Skip tests involving -0.0 on platforms where
40881         -0.0 = 0.0.
40882         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
40883         (test_function): Skip tests involving -0.0 on platforms where
40884         -0.0 = 0.0.
40885         * tests/test-snprintf-posix.h (have_minus_zero): New function.
40886         (test_function): Skip tests involving -0.0 on platforms where
40887         -0.0 = 0.0.
40888         * tests/test-sprintf-posix.h (have_minus_zero): New function.
40889         (test_function): Skip tests involving -0.0 on platforms where
40890         -0.0 = 0.0.
40891         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
40892         tests.
40893         * tests/test-printf-posix.h (test_function): Likewise.
40894         * tests/test-printf-posix.output: Remove all -0.0 related results.
40895         Needed for IRIX 6.5.
40896
40897 2007-05-19  Bruno Haible  <bruno@clisp.org>
40898
40899         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
40900         printed as "nan0x7fffffff" instead of "nan".
40901         * tests/test-vasprintf-posix.c (test_function): Likewise.
40902         * tests/test-snprintf-posix.h (test_function): Likewise.
40903         * tests/test-sprintf-posix.h (test_function): Likewise.
40904         * tests/test-fprintf-posix.h (NaN): Remove macro.
40905         (test_function): Remove all NaN related tests.
40906         * tests/test-printf-posix.h (NaN): Remove macro.
40907         (test_function): Remove all NaN related tests.
40908         * tests/test-printf-posix.output: Remove all NaN related results.
40909         Needed for IRIX 6.5.
40910
40911 2007-05-19  Bruno Haible  <bruno@clisp.org>
40912
40913         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
40914         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
40915
40916 2007-05-19  Bruno Haible  <bruno@clisp.org>
40917
40918         * lib/float_.h: New file.
40919         * m4/float_h.m4: New file.
40920         * modules/float: New file.
40921         * modules/isnanl (Dependencies): Add float.
40922         * modules/isnanl-nolibm (Dependencies): Likewise.
40923         * modules/mathl (Dependencies): Likewise.
40924         * modules/printf-frexpl (Dependencies): Likewise.
40925         * modules/signbit (Dependencies): Likewise.
40926         * modules/vasnprintf (Dependencies): Likewise.
40927         * doc/headers/float.texi: Update.
40928
40929 2007-05-19  Jim Meyering  <jim@meyering.net>
40930
40931         * lib/utimens.c (gl_futimens): Rename from futimens,
40932         now that glibc-2.6 declares futimens.
40933         * lib/utimens.h: Likewise.
40934
40935 2007-05-19  Bruno Haible  <bruno@clisp.org>
40936
40937         Avoid test failures on mingw.
40938         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
40939         * tests/test-printf-posix.sh: Likewise.
40940         * tests/test-vfprintf-posix.sh: Likewise.
40941         * tests/test-vprintf-posix.sh: Likewise.
40942
40943 2007-05-19  Bruno Haible  <bruno@clisp.org>
40944
40945         Fix *printf result for NaN, Inf, -0.0 on mingw.
40946         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
40947         * lib/vasnprintf.c: Include math.h and isnan.h.
40948         (is_infinite_or_zero): New function.
40949         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
40950         values in the %f, %F, %e, %E, %g, %G directives.
40951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
40952         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40953         gl_PRINTF_INFINITE and test its result. Invoke
40954         gl_PREREQ_VASNPRINTF_INFINITE.
40955         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40956         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40957         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40958         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40959         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40960         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40961         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40962         * doc/functions/fprintf.texi: Update.
40963         * doc/functions/printf.texi: Update.
40964         * doc/functions/snprintf.texi: Update.
40965         * doc/functions/sprintf.texi: Update.
40966         * doc/functions/vfprintf.texi: Update.
40967         * doc/functions/vprintf.texi: Update.
40968         * doc/functions/vsnprintf.texi: Update.
40969         * doc/functions/vsprintf.texi: Update.
40970
40971 2007-05-19  Bruno Haible  <bruno@clisp.org>
40972
40973         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
40974         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
40975         Instead of multiplying with 10^k, set extra_zeroes to k.
40976         (scale10_round_long_double): Remove function.
40977
40978 2007-05-18  Bruno Haible  <bruno@clisp.org>
40979
40980         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
40981         introduced on 2007-05-06.
40982
40983 2007-05-18  Bruno Haible  <bruno@clisp.org>
40984
40985         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
40986         %g directives.
40987         * tests/test-vasprintf-posix.c (test_function): Likewise.
40988         * tests/test-snprintf-posix.h (test_function): Likewise.
40989         * tests/test-sprintf-posix.h (test_function): Likewise.
40990
40991 2007-05-18  Bruno Haible  <bruno@clisp.org>
40992
40993         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
40994         (strmatch): New function.
40995         (test_function): Test the %f directive on numbers of various exponents.
40996         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
40997         (strmatch): New function.
40998         (test_function): Test the %f directive on numbers of various exponents.
40999         * tests/test-snprintf-posix.h (strmatch): New function.
41000         (test_function): Test the %f directive on numbers of various exponents.
41001         * tests/test-sprintf-posix.h (strmatch): New function.
41002         (test_function): Test the %f directive on numbers of various exponents.
41003         * tests/test-snprintf-posix.c (SIZEOF): New macro.
41004         * tests/test-sprintf-posix.c (SIZEOF): New macro.
41005         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
41006         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
41007
41008 2007-05-18  Bruno Haible  <bruno@clisp.org>
41009
41010         Add support for 'long double' number output.
41011         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
41012         * lib/vasnprintf.c: Include math.h and float+.h.
41013         (mp_limb_t): New type.
41014         (GMP_LIMB_BITS): New macro.
41015         (mp_twolimb_t): New type.
41016         (GMP_TWOLIMB_BITS): New macro.
41017         (mpn_t): New type.
41018         (multiply, divide, convert_to_decimal, decode_long_double,
41019         scale10_round_long_double, scale10_round_decimal_long_double,
41020         floorlog10l): New functions.
41021         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
41022         for the %f, %F, %e, %E, %g, %G directives.
41023         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
41024         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41025         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
41026         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
41027         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41028         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41029         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41030         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41031         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41032         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41033         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41034         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
41035         * modules/snprintf-posix (Depends-on): Likewise.
41036         * modules/sprintf-posix (Depends-on): Likewise.
41037         * modules/vasnprintf-posix (Depends-on): Likewise.
41038         * modules/vasprintf-posix (Depends-on): Likewise.
41039         * modules/vfprintf-posix (Depends-on): Likewise.
41040         * modules/vsnprintf-posix (Depends-on): Likewise.
41041         * modules/vsprintf-posix (Depends-on): Likewise.
41042         * modules/vasnprintf (Files): Add lib/float+.h.
41043         * doc/functions/fprintf.texi: Update.
41044         * doc/functions/printf.texi: Update.
41045         * doc/functions/snprintf.texi: Update.
41046         * doc/functions/sprintf.texi: Update.
41047         * doc/functions/vfprintf.texi: Update.
41048         * doc/functions/vprintf.texi: Update.
41049         * doc/functions/vsnprintf.texi: Update.
41050         * doc/functions/vsprintf.texi: Update.
41051
41052 2007-05-18  Bruno Haible  <bruno@clisp.org>
41053
41054         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
41055
41056 2007-05-18  Bruno Haible  <bruno@clisp.org>
41057
41058         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
41059         for printing 64-bit integers. Needed for mingw.
41060
41061 2007-05-18  Bruno Haible  <bruno@clisp.org>
41062
41063         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41064         gl_FUNC_FREXPL_WORKS.
41065         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
41066
41067 2007-05-18  Bruno Haible  <bruno@clisp.org>
41068
41069         * modules/frexpl-nolibm-tests: New file.
41070
41071         * modules/frexpl-nolibm: New file.
41072         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
41073
41074 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41075
41076         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
41077         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41078         GCC 4.2, which otherwise issues a lot of warnings.
41079         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
41080         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
41081         Likewise.
41082         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
41083         * modules/iconv_open (iconv.h): Likewise.
41084         * modules/locale (locale.h): Likewise.
41085         * modules/netinet_in (netinet/in.h): Likewise.
41086         * modules/sys_select (sys_select.h): Likewise.
41087         * modules/sys_socket (sys/socket.h): Likewise.
41088         * modules/sys_stat (sys/stat.h): Likewise.
41089         * modules/sysexits (sysexits.h): Likewise.
41090         * modules/unistd (unistd.h): Likewise.
41091
41092 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41093
41094         * modules/closein-tests (Makefile.am): Distribute
41095         `test-closein.sh'.
41096
41097 2007-05-17  Bruno Haible  <bruno@clisp.org>
41098
41099         * tests/test-printf-posix.output: Renamed from
41100         tests/test-fprintf-posix.out.
41101         * modules/fprintf-posix-tests: Update.
41102         * modules/printf-posix-tests: Update.
41103         * modules/vfprintf-posix-tests: Update.
41104         * modules/vprintf-posix-tests: Update.
41105         * tests/test-fprintf-posix.sh: Update.
41106         * tests/test-printf-posix.sh: Update.
41107         * tests/test-vfprintf-posix.sh: Update.
41108         * tests/test-vprintf-posix.sh: Update.
41109         Reported by Ralf Wildenhues.
41110
41111 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41112
41113         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
41114         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41115         GCC 4.2, which otherwise issues a lot of warnings.
41116         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
41117         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
41118         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
41119         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
41120         it should no longer be needed.
41121         * lib/string_.h: Likewise.
41122         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
41123         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
41124         * modules/inttypes (inttypes.h): Likewise.
41125         * modules/math (math.h): Likewise.
41126         * modules/search (search.h): Likewise.
41127         * modules/signal (signal.h): Likewise.
41128         * modules/stdint (stdint.h): Likewise.
41129         * modules/stdio (stdio.h): Likewise.
41130         * modules/stdlib (stdlib.h): Likewise.
41131         * modules/string (string.h): Likewise.
41132         * modules/sys_time (sys/time.h): Likewise.
41133         * modules/time (time.h): Likewise.
41134         * modules/wchar (wchar.h): Likewise.
41135         * modules/wctype (wtype.h): Likewise.
41136
41137 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41138
41139         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
41140
41141 2007-05-13  Bruno Haible  <bruno@clisp.org>
41142
41143         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
41144         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41145         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
41146         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41147         (gl_PREREQ_STRTOK_R): Don't require it here.
41148
41149 2007-05-13  Bruno Haible  <bruno@clisp.org>
41150
41151         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
41152         when used in C++ mode.
41153
41154 2007-05-12  Bruno Haible  <bruno@clisp.org>
41155
41156         * lib/linebuffer.h: Tweak doc.
41157         * lib/linebuffer.c: Likewise.
41158
41159 2007-05-12  James Youngman  <jay@gnu.org>
41160
41161         * lib/linebuffer.c (readlinebuffer_delim): New function,
41162         like readlinebuffer, but use a caller-specified delimiter.
41163         (readlinebuffer): Just call readlinebuffer_delim with '\n'
41164         as the delimiter.
41165         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
41166
41167 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41168
41169         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
41170         * modules/openat (Files): Remove openat-die.c.
41171         (Depends-on): Add openat-die.
41172         * modules/openat-die: New module.
41173
41174 2007-05-06  Bruno Haible  <bruno@clisp.org>
41175
41176         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
41177         Update with info about Cygwin.
41178         * doc/functions/fprintf.texi: Update.
41179         * doc/functions/printf.texi: Update.
41180         * doc/functions/snprintf.texi: Update.
41181         * doc/functions/sprintf.texi: Update.
41182         * doc/functions/vfprintf.texi: Update.
41183         * doc/functions/vprintf.texi: Update.
41184         * doc/functions/vsnprintf.texi: Update.
41185         * doc/functions/vsprintf.texi: Update.
41186         Reported by Eric Blake.
41187
41188 2007-05-06  Bruno Haible  <bruno@clisp.org>
41189
41190         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
41191         padding ourselves for the floating-point directives.
41192         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
41193         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
41194         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41195         gl_PRINTF_FLAG_ZERO and test its result. Invoke
41196         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
41197         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41198         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41199         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41200         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41201         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41202         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41203         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41204         * tests/test-snprintf-posix.h (test_function): Also check the width
41205         and some flags in the %f directive.
41206         * tests/test-sprintf-posix.h (test_function): Likewise.
41207         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41208         * tests/test-vasprintf-posix.c (test_function): Likewise.
41209         * doc/functions/fprintf.texi: Update.
41210         * doc/functions/printf.texi: Update.
41211         * doc/functions/snprintf.texi: Update.
41212         * doc/functions/sprintf.texi: Update.
41213         * doc/functions/vfprintf.texi: Update.
41214         * doc/functions/vprintf.texi: Update.
41215         * doc/functions/vsnprintf.texi: Update.
41216         * doc/functions/vsprintf.texi: Update.
41217
41218 2007-05-06  Bruno Haible  <bruno@clisp.org>
41219
41220         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
41221         pass the ' flag character to sprintf or snprintf.
41222         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
41223         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
41224         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41225         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
41226         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
41227         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41228         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41229         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41230         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41231         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41232         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41233         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41234         * tests/test-snprintf-posix.h (test_function): Also check the grouping
41235         flag.
41236         * tests/test-sprintf-posix.h (test_function): Likewise.
41237         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41238         * tests/test-vasprintf-posix.c (test_function): Likewise.
41239         * doc/functions/fprintf.texi: Update.
41240         * doc/functions/printf.texi: Update.
41241         * doc/functions/snprintf.texi: Update.
41242         * doc/functions/sprintf.texi: Update.
41243         * doc/functions/vfprintf.texi: Update.
41244         * doc/functions/vprintf.texi: Update.
41245         * doc/functions/vsnprintf.texi: Update.
41246         * doc/functions/vsprintf.texi: Update.
41247
41248 2007-05-01  Bruno Haible  <bruno@clisp.org>
41249
41250         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
41251
41252 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
41253
41254         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
41255         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
41256
41257 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
41258
41259         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
41260         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
41261         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
41262
41263 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
41264
41265         * lib/argp-help.c (struct hol_entry): New member `ord'.
41266         (HOL_ENTRY_PTRCMP): Use ord for comparison
41267         (hol_sort): Initialize ord.
41268
41269 2007-05-01  Bruno Haible  <bruno@clisp.org>
41270
41271         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
41272         Reported by Eric Blake.
41273         * doc/gnulib.texi (Function Substitutes): Update.
41274
41275 2007-05-01  Bruno Haible  <bruno@clisp.org>
41276
41277         * doc/functions.texi: Remove file, now redundant through
41278         doc/functions/*.texi.
41279
41280 2007-05-01  Bruno Haible  <bruno@clisp.org>
41281
41282         * modules/argp (Depends-on): Add sleep.
41283
41284 2007-05-01  Bruno Haible  <bruno@clisp.org>
41285
41286         * modules/sleep-tests: New file.
41287         * tests/test-sleep.c: New file.
41288
41289         * modules/sleep: New file.
41290         * lib/sleep.c: New file.
41291         * m4/sleep.m4: New file.
41292         * lib/unistd_.h (sleep): New declaration.
41293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
41294         HAVE_SLEEP.
41295         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
41296         * doc/functions/sleep.texi: Document the sleep module.
41297
41298 2007-05-01  Bruno Haible  <bruno@clisp.org>
41299
41300         * lib/sigprocmask.h: Remove file.
41301         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
41302         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
41303         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
41304         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
41305         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
41306         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
41307         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
41308         HAVE_SIGSET_T as a shell variable.
41309         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
41310         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
41311         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
41312         (Depends-on): Add signal. Remove verify.
41313         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
41314         (Include): Mention <signal.h> instead of sigprocmask.h.
41315         * NEWS: Mention the change.
41316         * lib/fatal-signal.c: Don't include sigprocmask.h.
41317
41318 2007-05-01  Bruno Haible  <bruno@clisp.org>
41319
41320         * modules/signal: New file.
41321         * lib/signal_.h: New file.
41322         * m4/signal_h.m4: New file.
41323
41324 2007-05-01  Bruno Haible  <bruno@clisp.org>
41325
41326         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
41327         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
41328         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
41329         HAVE_WCTYPE_CTMP_BUG into wctype.h.
41330
41331 2007-05-01  Bruno Haible  <bruno@clisp.org>
41332
41333         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
41334         configure time.
41335         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
41336         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
41337         * modules/sys_stat (Makefile.am): Substitute their values into
41338         sys/stat.h.
41339
41340 2007-05-01  Bruno Haible  <bruno@clisp.org>
41341
41342         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
41343         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
41344         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
41345
41346 2007-05-01  Bruno Haible  <bruno@clisp.org>
41347
41348         * doc/header/assert.texi: Undo last change: don't mention the gnulib
41349         'assert' module here.
41350
41351 2007-05-01  Bruno Haible  <bruno@clisp.org>
41352
41353         * doc/functions/*.texi: New files.
41354         * doc/functions/google-ranking.txt: New file.
41355         * doc/gnulib.texi (Function Substitutes): New chapter.
41356         (ctime, inet_ntoa): Remove sections.
41357         * doc/ctime.texi: Remove file.
41358         * doc/inet_ntoa.texi: Remove file.
41359         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
41360         dependencies.
41361         (%.info): New rule, specifying a --reference-limit.
41362
41363 2007-05-01  Bruno Haible  <bruno@clisp.org>
41364
41365         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
41366
41367 2007-05-01  Bruno Haible  <bruno@clisp.org>
41368
41369         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
41370         the portability of 'mkdir' to mingw systems.
41371
41372 2007-05-01  Bruno Haible  <bruno@clisp.org>
41373
41374         * doc/headers/google-ranking.txt: New file.
41375
41376 2007-04-30  Eric Blake  <ebb9@byu.net>
41377
41378         Prefer fseeko to fseek.
41379         * modules/getpass (Depends-on): Add fseeko.
41380         * lib/getpass.c (getpass): Use fseeko, not fseek.
41381
41382 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
41383
41384         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
41385         assumes the sorting is stable, while most qsort implementations
41386         are not.  Use argument addresses to ensure they never compare as
41387         equal.
41388
41389         * tests/test-argp-2.sh (usage-indent test): Fix output
41390         (func_compare): Restore diff options
41391         * tests/test-argp.c: Restore #include "progname.h"
41392
41393 2007-04-29  Bruno Haible  <bruno@clisp.org>
41394
41395         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
41396         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41397         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
41398         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41399         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
41400         (configure.ac): Define CHECK_SNPRINTF_POSIX.
41401         (TESTS, check_PROGRAMS): Add test-snprintf.
41402         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
41403         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
41404         (TESTS, check_PROGRAMS): Add test-vsnprintf.
41405         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
41406         assertions that fail on HP-UX, OSF/1, or IRIX.
41407         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
41408
41409 2007-04-29  Bruno Haible  <bruno@clisp.org>
41410
41411         * MODULES.html.sh (posix_functions): Remove 'contents'.
41412
41413 2007-04-29  Karl Berry  <karl@gnu.org>
41414
41415         * config/srclist.txt (gendocs_template_min): new entry.
41416
41417 2007-04-29  Bruno Haible  <bruno@clisp.org>
41418
41419         Work around fpurge bug on BSD systems.
41420         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
41421         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
41422         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
41423         fpurge to rpl_fpurge if the system already has this function.
41424         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
41425         the case where the system already has this function. Correct invariants
41426         on BSD systems.
41427         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
41428         BSD systems.
41429
41430 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41431
41432         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
41433         proposed by Sven Verdoolaege.
41434
41435         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
41436         options.
41437         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
41438         (usage and help tests): Update
41439
41440 2007-04-29  Bruno Haible  <bruno@clisp.org>
41441
41442         * tests/test-fflush.c (main): Use a file of size 17, not 10.
41443         Print more information in case of failure. Disable a test on BeOS.
41444
41445 2007-04-29  Bruno Haible  <bruno@clisp.org>
41446
41447         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
41448         This helps debugging on systems on which no gdb is available.
41449
41450 2007-04-29  Bruno Haible  <bruno@clisp.org>
41451
41452         * lib/freading.h: Improve comments.
41453         * lib/fwriting.h: Likewise.
41454         * tests/test-freading.c (main): Don't check freading immediately after
41455         repositioning. Needed for glibc.
41456
41457 2007-04-29  Bruno Haible  <bruno@clisp.org>
41458
41459         * lib/freading.c (freading): Trivial simplification.
41460
41461 2007-04-28  Bruno Haible  <bruno@clisp.org>
41462
41463         * tests/test-fwriting.c (main): Also test the interaction between
41464         fflush and fwriting.
41465         * modules/fwriting-tests (Depends-on): Add fflush.
41466
41467         * tests/test-freading.c (main): Also test the interaction between
41468         fflush and freading.
41469         * modules/freading-tests (Depends-on): Add fflush.
41470
41471 2007-04-28  Bruno Haible  <bruno@clisp.org>
41472
41473         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
41474         fseeko and ftello.
41475         Suggested by Eric Blake.
41476
41477 2007-04-28  Jim Meyering  <jim@meyering.net>
41478
41479         Avoid false-negative in gl_STDINT_H's C99 conformance test.
41480         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
41481         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
41482
41483 2007-04-27  Eric Blake  <ebb9@byu.net>
41484
41485         * doc/headers/assert.texi (assert.h): Document assert module use.
41486
41487 2007-04-27  Bruno Haible  <bruno@clisp.org>
41488
41489         * doc/headers/*.texi: New files.
41490         * doc/gnulib.texi (Header File Substitutes): New chapter.
41491         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
41492         dependencies.
41493         (standards.info ,standards.html, standards.dvi): Update dependencies.
41494         (mostlyclean, clean): New targets.
41495
41496 2007-04-27  Bruno Haible  <bruno@clisp.org>
41497
41498         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
41499         * modules/sysexits (Files, Makefile.am): Update.
41500
41501         * lib/sys_socket_.h: Renamed from lib/socket_.h.
41502         * modules/sys_socket (Files, Makefile.am): Update.
41503
41504         * lib/sys_stat_.h: Renamed from lib/stat_.h.
41505         * modules/sys_stat (Files, Makefile.am): Update.
41506
41507 2007-04-27  Eric Blake  <ebb9@byu.net>
41508
41509         * lib/freading.h: Improve comments.
41510         * lib/fwriting.h: Likewise.
41511         * lib/fflush.c: Likewise.
41512
41513         Fix closein for mingw.
41514         * modules/closein-tests: Add tests for closein.
41515         * tests/test-closein.c: New file.
41516         * tests/test-closein.sh: Likewise.
41517         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
41518         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
41519
41520 2007-04-27  Bruno Haible  <bruno@clisp.org>
41521
41522         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
41523         version is < 6.
41524         * lib/math_.h [__DECC]: Likewise.
41525         * lib/stdio_.h [__DECC]: Likewise.
41526         * lib/stdlib_.h [__DECC]: Likewise.
41527         * lib/string_.h [__DECC]: Likewise.
41528         * lib/time_.h [__DECC]: Likewise.
41529         * lib/wchar_.h [__DECC]: Likewise.
41530         * lib/wctype_.h [__DECC]: Likewise.
41531
41532 2007-04-27  Bruno Haible  <bruno@clisp.org>
41533
41534         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
41535
41536 2007-04-27  Bruno Haible  <bruno@clisp.org>
41537
41538         * lib/fflush.c: Add comments.
41539         * modules/fpurge-tests (Depends-on): Add fflush.
41540         * modules/freadable-tests (Depends-on): Likewise.
41541         * modules/fwritable-tests (Depends-on): Likewise.
41542
41543 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
41544
41545         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
41546         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
41547         Report by Bruno Haible <bruno@clisp.org>.
41548
41549 2007-04-26  Eric Blake  <ebb9@byu.net>
41550
41551         Fix fflush on mingw.
41552         * modules/fflush (Depends-on): Add freading.
41553         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
41554         but unread data.
41555
41556 2007-04-26  Eric Blake  <ebb9@byu.net>
41557         and Bruno Haible  <bruno@clisp.org>
41558
41559         Implement freading and fwriting.
41560         * lib/freading.c: New file.
41561         * lib/freading.h: Likewise.
41562         * m4/freading.m4: Likewise.
41563         * modules/freading: Likewise.
41564         * modules/freading-tests: Likewise.
41565         * tests/test-freading.c: Likewise.
41566         * lib/fwriting.c: New file.
41567         * lib/fwriting.h: Likewise.
41568         * m4/fwriting.m4: Likewise.
41569         * modules/fwriting: Likewise.
41570         * modules/fwriting-tests: Likewise.
41571         * tests/test-fwriting.c: Likewise.
41572         * MODULES.html.sh (File stream based Input/Output): Mention them.
41573
41574 2007-04-26  Bruno Haible  <bruno@clisp.org>
41575
41576         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
41577         'long' when we assume it.
41578         Suggested by Eric Blake.
41579
41580 2007-04-26  Bruno Haible  <bruno@clisp.org>
41581
41582         Ensure fseeko, ftello are declared on glibc systems.
41583         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
41584         * modules/fseeko (configure.ac-early): Likewise.
41585         * modules/ftello (configure.ac-early): Likewise.
41586         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
41587         AC_FUNC_FSEEKO for this.
41588         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
41589         (gl_CHECK_FSEEKO): Remove macro.
41590
41591 2007-04-26  Bruno Haible  <bruno@clisp.org>
41592
41593         * tests/test-fflush.c (main): Also check the ftell result after
41594         fflush and fseek/fseeko.
41595         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
41596         file descriptor position cache in the stream.
41597         * lib/fseeko.c (rpl_fseeko): Likewise.
41598
41599 2007-04-26  Bruno Haible  <bruno@clisp.org>
41600
41601         * modules/fflush-tests (Depends-on): Add fseeko.
41602
41603 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
41604             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41605
41606         * lib/argz_.h: ensure error_t definition is obtained in same
41607         mechanism system argz.h would have.
41608         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
41609         argz facilities are known bad.  Err on the side of caution if
41610         cross-compiling.
41611
41612 2007-04-25  Eric Blake  <ebb9@byu.net>
41613
41614         * lib/fpurge.c (includes): Use stdlib.h for free.
41615         * tests/test-fflush.c (main): Also test fflush-fseeko.
41616
41617 2007-04-25  Bruno Haible  <bruno@clisp.org>
41618
41619         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
41620         * lib/fseeko.c: New file.
41621         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
41622         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
41623         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
41624         gl_FUNC_FSEEKO.
41625         (gl_FUNC_FSEEKO): Invoke it.
41626         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
41627         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
41628         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
41629
41630 2007-04-25  Bruno Haible  <bruno@clisp.org>
41631
41632         * modules/fflush (Depends-on): Add ftello.
41633
41634 2007-04-25  Bruno Haible  <bruno@clisp.org>
41635
41636         * modules/ftello-tests: New file.
41637         * tests/test-ftello.c: New file.
41638
41639         * modules/ftello: New file.
41640         * m4/ftello.m4: New file.
41641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
41642         HAVE_FTELLO.
41643         * lib/stdio_.h (ftello): New declaration.
41644         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
41645         HAVE_FTELLO.
41646
41647 2007-04-25  Bruno Haible  <bruno@clisp.org>
41648
41649         * modules/fseeko-tests: New file.
41650         * tests/test-fseeko.c: New file.
41651
41652         * modules/fseeko: New file.
41653         * m4/fseeko.m4: New file.
41654         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
41655         HAVE_FSEEKO.
41656         * lib/stdio_.h (fseeko): New declaration.
41657         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
41658         HAVE_FSEEKO.
41659
41660 2007-04-25  Bruno Haible  <bruno@clisp.org>
41661
41662         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
41663
41664 2007-04-25  Bruno Haible  <bruno@clisp.org>
41665
41666         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
41667         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
41668         * tests/test-unistd.c: Likewise.
41669         * tests/test-fcntl.c: Likewise.
41670
41671 2007-04-23  Eric Blake  <ebb9@byu.net>
41672
41673         * lib/fflush.c: Fix missing include.
41674         Reported by Bruno Haible.
41675
41676 2007-04-23  Bruno Haible  <bruno@clisp.org>
41677
41678         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
41679         Reported by Eric Blake.
41680
41681 2007-04-23  Bruno Haible  <bruno@clisp.org>
41682
41683         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
41684
41685 2007-04-23  Bruno Haible  <bruno@clisp.org>
41686
41687         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
41688
41689 2007-04-23  Bruno Haible  <bruno@clisp.org>
41690
41691         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
41692         Needed on HP-UX 11.
41693
41694 2007-04-16  Eric Blake  <ebb9@byu.net>
41695
41696         Make fflush rely on fpurge.
41697         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
41698         open coding all variants.
41699         * modules/fflush (Depends-on): Add fpurge and unistd.
41700         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
41701         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
41702
41703         Fix --with-tests compilation on cygwin.
41704         * modules/argmatch-tests (Makefile.am): List gnulib library first
41705         in LDADD.
41706         * modules/argp-tests (Makefile.am): Likewise.
41707         * modules/array-list-tests (Makefile.am): Likewise.
41708         * modules/array-oset-tests (Makefile.am): Likewise.
41709         * modules/avltree-list-tests (Makefile.am): Likewise.
41710         * modules/avltree-oset-tests (Makefile.am): Likewise.
41711         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41712         * modules/carray-list-tests (Makefile.am): Likewise.
41713         * modules/dirname-tests (Makefile.am): Likewise.
41714         * modules/frexp-tests (Makefile.am): Likewise.
41715         * modules/isnanl-tests (Makefile.am): Likewise.
41716         * modules/linked-list-tests (Makefile.am): Likewise.
41717         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41718         * modules/lock-tests (Makefile.am): Likewise.
41719         * modules/rbtree-list-tests (Makefile.am): Likewise.
41720         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41721         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41722         * modules/tls-tests (Makefile.am): Likewise.
41723         * modules/tsearch-tests (Makefile.am): Likewise.
41724         * modules/xvasprintf-tests (Makefile.am): Likewise.
41725
41726         Fix fpurge for cygwin.
41727         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
41728         value.
41729         * modules/fpurge-tests (Depends-on): Clean up trash.
41730
41731 2007-04-16  Simon Josefsson  <simon@josefsson.org>
41732
41733         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
41734
41735         * m4/autobuild.m4: Re-indent.
41736
41737 2007-04-13  Bruno Haible  <bruno@clisp.org>
41738
41739         * modules/fpurge-tests: New file.
41740         * tests/test-fpurge.c: New file.
41741
41742         * modules/fpurge: New file.
41743         * lib/fpurge.h: New file.
41744         * lib/fpurge.c: New file.
41745         * m4/fpurge.m4: New file.
41746
41747 2007-04-13  Bruno Haible  <bruno@clisp.org>
41748
41749         * modules/fbufmode-tests: New file.
41750         * tests/test-fbufmode.c: New file.
41751
41752         * modules/fbufmode: New file.
41753         * lib/fbufmode.h: New file.
41754         * lib/fbufmode.c: New file.
41755         * m4/fbufmode.m4: New file.
41756
41757 2007-04-13  Bruno Haible  <bruno@clisp.org>
41758
41759         * modules/fwritable-tests: New file.
41760         * tests/test-fwritable.c: New file.
41761
41762         * modules/fwritable: New file.
41763         * lib/fwritable.h: New file.
41764         * lib/fwritable.c: New file.
41765         * m4/fwritable.m4: New file.
41766
41767 2007-04-13  Bruno Haible  <bruno@clisp.org>
41768
41769         * modules/freadable-tests: New file.
41770         * tests/test-freadable.c: New file.
41771
41772         * modules/freadable: New file.
41773         * lib/freadable.h: New file.
41774         * lib/freadable.c: New file.
41775         * m4/freadable.m4: New file.
41776
41777 2007-04-13  Bruno Haible  <bruno@clisp.org>
41778
41779         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
41780         MOSTLYCLEANFILES.
41781
41782 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
41783
41784         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
41785         gzip bootstrap.conf to avoid dragging in i18n machinery.
41786         (gnulib_tool_option): Use it.
41787
41788 2007-04-13  Bruno Haible  <bruno@clisp.org>
41789
41790         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
41791         %F directives.
41792         * tests/test-vasprintf-posix.c (test_function): Likewise.
41793         * tests/test-snprintf-posix.h (test_function): Likewise.
41794         * tests/test-sprintf-posix.h (test_function): Likewise.
41795         * tests/test-fprintf-posix.h (test_function): Likewise.
41796         * tests/test-printf-posix.h (test_function): Likewise.
41797         * tests/test-fprintf-posix.out: Likewise.
41798
41799 2007-04-13  Bruno Haible  <bruno@clisp.org>
41800
41801         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
41802         * modules/tls-tests (configure.ac): Likewise.
41803         Reported by Arto C. Nirkko <anirkko@insel.ch>.
41804
41805 2007-04-13  Bruno Haible  <bruno@clisp.org>
41806
41807         * lib/tls.c (glthread_tls_get): Fix return type.
41808         Patch by Arto C. Nirkko <anirkko@insel.ch>.
41809
41810 2007-04-12  Eric Blake  <ebb9@byu.net>
41811
41812         * modules/gettime (Depends-on): Remove gettime.
41813         Reported by Dmitry V. Levin.
41814
41815 2007-04-12  Bruno Haible  <bruno@clisp.org>
41816
41817         * modules/fflush (Include): Mention <stdio.h>.
41818         * modules/strtoimax (Include): Mention <inttypes.h>.
41819         * modules/strtoumax (Include): Likewise.
41820
41821 2007-04-12  Eric Blake  <ebb9@byu.net>
41822
41823         * .cvsignore: New file.
41824         * .gitignore: Likewise.
41825
41826 2007-04-12  Bruno Haible  <bruno@clisp.org>
41827
41828         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
41829         not before, since $(LDADD) often contains libgnu.a.
41830         * modules/striconv-tests (test_striconv_LDADD): Likewise.
41831         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
41832         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
41833         Needed on Cygwin.
41834
41835 2007-04-12  Eric Blake  <ebb9@byu.net>
41836
41837         Work around glibc's failure to flush stdin on fclose.
41838         * lib/closein.c (close_stdin): Flush stdin before closing.
41839
41840         Work around glibc's failure to reset seekable stdin on exit.
41841         * modules/closein: New module.
41842         * lib/closein.c: New file.
41843         * lib/closein.h: Likewise.
41844         * m4/closein.m4: Likewise.
41845         * MODULES.html.sh (File stream based Input/Output): Document it.
41846
41847 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41848
41849         * gnulib-tool: Rename generated 'autobuild' script to
41850         'do-autobuild' in --create-megatestdir output.
41851
41852         * doc/gnulib.texi (Build robot for gnulib): Fix.
41853
41854 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41855
41856         * modules/sysexits (Depends-on): Add absolute-header.
41857
41858 2007-04-12  Eric Blake  <ebb9@byu.net>
41859
41860         No need to preserve errno on success.
41861         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
41862         Reported by Bruno Haible.
41863
41864 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41865
41866         * MODULES.html.sh (Support for maintaining and releasing
41867         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
41868
41869 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41870
41871         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
41872
41873 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41874
41875         * modules/autobuild: New module.
41876
41877         * m4/autobuild.m4: New file.
41878
41879 2007-04-11  Bruno Haible  <bruno@clisp.org>
41880
41881         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
41882         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
41883         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
41884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
41885         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41886         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41887         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41888         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41889         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41890         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41891         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
41892         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41893         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41894         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
41895         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41896         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41897         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
41898         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41899         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41900         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
41901         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41902         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41903         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
41904         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41905         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41906         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
41907         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41908         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41909         Reported by Eric Blake.
41910
41911 2007-04-11  Bruno Haible  <bruno@clisp.org>
41912
41913         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
41914
41915 2007-04-10  Bruno Haible  <bruno@clisp.org>
41916
41917         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
41918         for NaN and Infinity. Needed on FreeBSD 6.1.
41919         * tests/test-vasnprintf-posix.c (test_function): Undo last change
41920         regarding results for "%010a" of Infinity and NaN.
41921         * tests/test-vasprintf-posix.c (test_function): Likewise.
41922         * tests/test-snprintf-posix.h (test_function): Likewise.
41923         * tests/test-sprintf-posix.h (test_function): Likewise.
41924         * tests/test-fprintf-posix.h (test_function): Likewise.
41925         * tests/test-printf-posix.h (test_function): Likewise.
41926         * tests/test-fprintf-posix.out: Likewise.
41927
41928 2007-04-10  Bruno Haible  <bruno@clisp.org>
41929
41930         * modules/locale-tests: New file.
41931         * tests/test-locale.c: New file.
41932
41933         * modules/locale: New file.
41934         * lib/locale_.h: New file.
41935         * m4/locale_h.m4: New file.
41936
41937 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
41938             Bruno Haible  <bruno@clisp.org>
41939
41940         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
41941         be determined, test for availability of the copysignf, copysign,
41942         copysignl functions.
41943         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
41944         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
41945         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
41946
41947 2007-04-09  Eric Blake  <ebb9@byu.net>
41948
41949         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
41950         * modules/stdio (Makefile.am): Support fflush.
41951         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41952         * modules/fflush: New file.
41953         * lib/fflush.c: Likewise.
41954         * m4/fflush.m4: Likewise.
41955         * modules/fflush-tests: New test.
41956         * tests/test-fflush.c: Likewise.
41957         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
41958
41959 2007-04-06  Bruno Haible  <bruno@clisp.org>
41960
41961         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
41962         (VASNPRINTF): Use signbit for faster determination whether to print a
41963         minus sign.
41964         * modules/vasnprintf (Files): Remove lib/float+.h.
41965         * modules/fprintf-posix (Depends-on): Add signbit.
41966         * modules/snprintf-posix (Depends-on): Likewise.
41967         * modules/sprintf-posix (Depends-on): Likewise.
41968         * modules/vasnprintf-posix (Depends-on): Likewise.
41969         * modules/vasprintf-posix (Depends-on): Likewise.
41970         * modules/vfprintf-posix (Depends-on): Likewise.
41971         * modules/vsnprintf-posix (Depends-on): Likewise.
41972         * modules/vsprintf-posix (Depends-on): Likewise.
41973
41974 2007-04-06  Bruno Haible  <bruno@clisp.org>
41975
41976         * tests/test-frexp.c (main): Test also the sign bit of zero results.
41977         * tests/test-frexpl.c (main): Likewise.
41978         * tests/test-ldexpl.c (main): Likewise.
41979         * modules/frexp-tests (Depends-on): Add signbit.
41980         * modules/frexpl-tests (Depdends-on): Likewise.
41981         * modules/ldexpl-tests (Depdends-on): Likewise.
41982
41983 2007-04-06  Bruno Haible  <bruno@clisp.org>
41984
41985         * modules/signbit-tests: New file.
41986         * tests/test-signbit.c: New file.
41987
41988         * modules/signbit: New file.
41989         * lib/signbitf.c: New file.
41990         * lib/signbitd.c: New file.
41991         * lib/signbitl.c: New file.
41992         * m4/signbit.m4: New file.
41993         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
41994         (signbit): New macro.
41995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
41996         REPLACE_SIGNBIT.
41997         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
41998         REPLACE_FREXPL into math.h.
41999
42000 2007-04-06  Bruno Haible  <bruno@clisp.org>
42001
42002         * modules/isnanf-nolibm-tests: New file.
42003         * tests/test-isnanf.c: New file.
42004
42005         * modules/isnanf-nolibm: New file.
42006         * lib/isnanf.h: New file.
42007         * lib/isnanf.c: New file.
42008         * lib/isnan.c: Consider the USE_FLOAT macro.
42009         * m4/isnanf.m4: New file.
42010
42011 2007-04-06  Bruno Haible  <bruno@clisp.org>
42012
42013         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
42014         (Link): New section.
42015
42016         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
42017
42018 2007-04-06  Bruno Haible  <bruno@clisp.org>
42019
42020         Assume the 'long double' type.
42021         * m4/longdouble.m4: Remove file.
42022         * config/srclist.txt: Don't mention longdouble.m4.
42023         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
42024         * lib/float+.h: Likewise.
42025         * lib/frexp.c: Likewise.
42026         * lib/printf-args.h: Likewise.
42027         * lib/printf-args.c: Likewise.
42028         * lib/printf-frexp.c: Likewise.
42029         * lib/printf-parse.c: Likewise.
42030         * lib/vasnprintf.c: Likewise.
42031         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
42032         * m4/intl.m4: Likewise.
42033         * m4/isnanl.m4: Likewise.
42034         * m4/printf.m4: Likewise.
42035         * m4/printf-frexpl.m4: Likewise.
42036         * m4/vasnprintf.m4: Likewise.
42037         * modules/allocsa (Files): Remove m4/longdouble.m4.
42038         * modules/gettext (Files): Likewise.
42039         * modules/relocatable-prog-wrapper (Files): Likewise.
42040         * modules/vasnprintf (Files): Likewise.
42041         * modules/isnanl (Files): Likewise.
42042         (Include): Simplify.
42043         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
42044         (Include): Simplify.
42045         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
42046         (Include): Simplify.
42047         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
42048         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42049         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
42050         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42051         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42052         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42053         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
42054         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42055         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42056         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42057         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
42058         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42059         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
42060         * tests/test-isnanl.c: Likewise.
42061         * tests/test-snprintf-posix.h: Likewise.
42062         * tests/test-sprintf-posix.h: Likewise.
42063         * tests/test-vasnprintf-posix.c: Likewise.
42064         * tests/test-vasnprintf-posix2.c: Likewise.
42065         * tests/test-vasprintf-posix.c: Likewise.
42066
42067 2007-04-06  Bruno Haible  <bruno@clisp.org>
42068
42069         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
42070         * lib/math_.h [__DECC]: Include the overridden include file through
42071         #include_next, outside the double-inclusion guard.
42072         * lib/stdio_.h [__DECC]: Likewise.
42073         * lib/stdlib_.h [__DECC]: Likewise.
42074         * lib/string_.h [__DECC]: Likewise.
42075         * lib/time_.h [__DECC]: Likewise.
42076         * lib/wchar_.h [__DECC]: Likewise.
42077         * lib/wctype_.h [__DECC]: Likewise.
42078         * lib/inttypes_.h [__DECC]: Likewise.
42079         Reported by Albert Chin <china@thewrittenword.com> in
42080         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
42081
42082 2007-04-04  Eric Blake  <ebb9@byu.net>
42083
42084         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
42085         1.5.x.
42086
42087 2007-04-04  Bruno Haible  <bruno@clisp.org>
42088
42089         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
42090         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
42091
42092 2007-04-04  Bruno Haible  <bruno@clisp.org>
42093
42094         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
42095         results for "%010a" of Infinity and NaN.
42096         * tests/test-vasprintf-posix.c (test_function): Likewise.
42097         * tests/test-snprintf-posix.h (test_function): Likewise.
42098         * tests/test-sprintf-posix.h (test_function): Likewise.
42099         * tests/test-fprintf-posix.h (test_function): Remove these tests.
42100         * tests/test-printf-posix.h (test_function): Likewise.
42101         * tests/test-fprintf-posix.out: Update.
42102         Needed for FreeBSD 6.1.
42103
42104 2007-04-04  Bruno Haible  <bruno@clisp.org>
42105
42106         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
42107         directly used by the gnulib modules nor by gnulib-tool.
42108
42109 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
42110
42111         * DEPENDENCIES: Give overall description of version dependency
42112         desirability.  Use more-typical names for apps.
42113         Add shell, coreutils, diffutils, grep, tar, gzip.
42114
42115 2007-04-04  Simon Josefsson  <simon@josefsson.org>
42116
42117         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
42118
42119 2007-04-04  Karl Berry  <karl@gnu.org>
42120
42121         * MODULES.html.sh (func_module): missing '.
42122
42123 2007-04-03  Bruno Haible  <bruno@clisp.org>
42124
42125         * modules/argmatch-tests (Makefile.am): New variable
42126         test_argmatch_LDADD.
42127         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
42128         * modules/array-list-tests (Makefile.am): New variable
42129         test_array_list_LDADD.
42130         * modules/array-oset-tests (Makefile.am): New variable
42131         test_array_oset_LDADD.
42132         * modules/avltree-list-tests (Makefile.am): New variable
42133         test_avltree_list_LDADD.
42134         * modules/avltree-oset-tests (Makefile.am): New variable
42135         test_avltree_oset_LDADD.
42136         * modules/avltreehash-list-tests (Makefile.am): New variable
42137         test_avltreehash_list_LDADD.
42138         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
42139         test_canonicalize_lgpl_LDADD.
42140         * modules/carray-list-tests (Makefile.am): New variable
42141         test_carray_list_LDADD.
42142         * modules/dirname-tests (Makefile.am): New variable
42143         test_dirname_LDADD.
42144         * modules/linked-list-tests (Makefile.am): New variable
42145         test_linked_list_LDADD.
42146         * modules/linkedhash-list-tests (Makefile.am): New variable
42147         test_linkedhash_list_LDADD.
42148         * modules/rbtree-list-tests (Makefile.am): New variable
42149         test_rbtree_list_LDADD.
42150         * modules/rbtree-oset-tests (Makefile.am): New variable
42151         test_rbtree_oset_LDADD.
42152         * modules/rbtreehash-list-tests (Makefile.am): New variable
42153         test_rbtreehash_list_LDADD.
42154         * modules/xvasprintf-tests (Makefile.am): New variable
42155         test_xvasprintf_LDADD.
42156         Reported by Eric Blake.
42157
42158 2007-04-03  Eric Blake  <ebb9@byu.net>
42159
42160         * DEPENDENCIES: Weaken m4 requirements.
42161
42162 2007-04-03  Bruno Haible  <bruno@clisp.org>
42163
42164         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
42165         * modules/isnanl-tests (configure.ac): Likewise.
42166
42167 2007-04-03  Ben Pfaff  <blp@gnu.org>
42168
42169         * modules/iconv_open: Add $(srcdir)/ to source directory
42170         references in Makefile fragments that call gperf, to fix VPATH
42171         builds.
42172
42173 2007-04-03  Bruno Haible  <bruno@clisp.org>
42174
42175         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
42176         * lib/ldexpl.c: Undo last change.
42177
42178 2007-04-03  Bruno Haible  <bruno@clisp.org>
42179
42180         * modules/printf-frexpl (Depends-on): Undo last change.
42181         (Files): Add m4/ldexpl.m4.
42182
42183 2007-04-03  Bruno Haible  <bruno@clisp.org>
42184
42185         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
42186         * modules/isnanl (Link): New section.
42187
42188         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
42189         * modules/frexp (Link): New section.
42190
42191         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
42192         * modules/frexpl (Link): New section.
42193
42194         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
42195         * modules/ldexpl (Link): New section.
42196
42197 2007-04-03  Bruno Haible  <bruno@clisp.org>
42198
42199         * modules/TEMPLATE-EXTENDED: New file.
42200         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
42201
42202 2007-04-03  Bruno Haible  <bruno@clisp.org>
42203
42204         * DEPENDENCIES: New file.
42205         Suggested by Simon Josefsson.
42206
42207 2007-04-03  Bruno Haible  <bruno@clisp.org>
42208
42209         * doc/gnulib.texi: Escape @.
42210
42211 2007-04-03  James Youngman  <jay@gnu.org>
42212         and Paul Eggert  <eggert@cs.ucla.edu>
42213
42214         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
42215         birthtime on all systems that have birthtime, not just those which
42216         use st_birthtimensec rather than st_birthtim.  Putting zero in
42217         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
42218         that the birth time is not available for files on an NFS mount.
42219
42220 2007-04-03  Simon Josefsson  <simon@josefsson.org>
42221
42222         * modules/memxor: Move back from crypto/, suggested by Bruno.
42223         * modules/crypto/hmac-sha1: Fix memxor dependency.
42224
42225         * modules/crypto/gc: Moved from ../.
42226
42227 2007-04-02  Eric Blake  <ebb9@byu.net>
42228
42229         * lib/ldexpl.c (includes): Avoid libm.
42230
42231         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
42232
42233 2007-04-02  Bruno Haible  <bruno@clisp.org>
42234
42235         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
42236         on IRIX.
42237
42238 2007-04-02  Bruno Haible  <bruno@clisp.org>
42239
42240         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
42241         x86 or x86_64 platforms running MacOS X.
42242         Reported by Ryan Schmidt <@ryandesign.com>.
42243
42244 2007-04-02  Bruno Haible  <bruno@clisp.org>
42245
42246         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
42247         i386.
42248
42249 2007-04-01  Simon Josefsson  <simon@josefsson.org>
42250
42251         * modules/crypto/arcfour: Moved from ../.
42252         * modules/crypto/arcfour-tests: Moved from ../.
42253         * modules/crypto/arctwo: Moved from ../.
42254         * modules/crypto/arctwo-tests: Moved from ../.
42255         * modules/crypto/des: Moved from ../.
42256         * modules/crypto/des-tests: Moved from ../.
42257         * modules/crypto/gc-arcfour: Moved from ../.
42258         * modules/crypto/gc-arcfour-tests: Moved from ../.
42259         * modules/crypto/gc-arctwo: Moved from ../.
42260         * modules/crypto/gc-arctwo-tests: Moved from ../.
42261         * modules/crypto/gc-des: Moved from ../.
42262         * modules/crypto/gc-des-tests: Moved from ../.
42263         * modules/crypto/gc-hmac-md5: Moved from ../.
42264         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
42265         * modules/crypto/gc-hmac-sha1: Moved from ../.
42266         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
42267         * modules/crypto/gc-md2: Moved from ../.
42268         * modules/crypto/gc-md2-tests: Moved from ../.
42269         * modules/crypto/gc-md4: Moved from ../.
42270         * modules/crypto/gc-md4-tests: Moved from ../.
42271         * modules/crypto/gc-md5: Moved from ../.
42272         * modules/crypto/gc-md5-tests: Moved from ../.
42273         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
42274         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
42275         * modules/crypto/gc-random: Moved from ../.
42276         * modules/crypto/gc-rijndael: Moved from ../.
42277         * modules/crypto/gc-rijndael-tests: Moved from ../.
42278         * modules/crypto/gc-sha1: Moved from ../.
42279         * modules/crypto/gc-sha1-tests: Moved from ../.
42280         * modules/crypto/gc-tests: Moved from ../.
42281         * modules/crypto/hmac-md5: Moved from ../.
42282         * modules/crypto/hmac-md5-tests: Moved from ../.
42283         * modules/crypto/hmac-sha1: Moved from ../.
42284         * modules/crypto/hmac-sha1-tests: Moved from ../.
42285         * modules/crypto/md2: Moved from ../.
42286         * modules/crypto/md2-tests: Moved from ../.
42287         * modules/crypto/md4: Moved from ../.
42288         * modules/crypto/md4-tests: Moved from ../.
42289         * modules/crypto/md5: Moved from ../.
42290         * modules/crypto/md5-tests: Moved from ../.
42291         * modules/crypto/memxor: Moved from ../.
42292         * modules/crypto/rijndael: Moved from ../.
42293         * modules/crypto/rijndael-tests: Moved from ../.
42294         * modules/crypto/sha1: Moved from ../.
42295
42296 2007-03-30  James Youngman  <jay@gnu.org>
42297
42298         * tests/test-stat-time.c (prepare_test): use chmod() rather than
42299         rename() to change the ctime of a file (because ctime is unaffected
42300         by rename on jfs2 on AIX 5.1).
42301         (main): Start by doing cleanup, in case a previous run failed leaving
42302         test files behind.
42303
42304 2007-03-31  Bruno Haible  <bruno@clisp.org>
42305
42306         Support old proprietary implementations of iconv.
42307         * modules/iconv_open: New file.
42308         * lib/iconv_.h: New file.
42309         * m4/iconv_h.m4: New file.
42310         * lib/iconv_open.c: New file.
42311         * lib/iconv_open-aix.gperf: New file.
42312         * lib/iconv_open-hpux.gperf: New file.
42313         * lib/iconv_open-irix.gperf: New file.
42314         * lib/iconv_open-osf.gperf: New file.
42315         * m4/iconv_open.m4: New file.
42316         * modules/linebreak (Depends-on): Add iconv_open.
42317         * modules/striconv (Depends-on): Likewise.
42318         * modules/striconveh (Depends-on): Likewise.
42319         * modules/unicodeio (Depends-on): Likewise.
42320         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
42321         (iconv_t)(-1).
42322         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
42323         conversion if cd is (iconv_t)(-1).
42324         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
42325         is not possible.
42326
42327 2007-03-31  Bruno Haible  <bruno@clisp.org>
42328
42329         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42330         work on Solaris either. Protect also second use of "autodetect_jp".
42331
42332 2007-03-31  Bruno Haible  <bruno@clisp.org>
42333
42334         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
42335         the function is not present.
42336
42337 2007-03-31  Bruno Haible  <bruno@clisp.org>
42338
42339         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
42340         the function is not present.
42341
42342 2007-03-31  Bruno Haible  <bruno@clisp.org>
42343
42344         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
42345         a bug in HP-UX iconv_open().
42346
42347 2007-03-31  Bruno Haible  <bruno@clisp.org>
42348
42349         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
42350         (Mathematics <math.h>): New section, add fpieee.
42351         (Input/output <stdio.h>): Add fseterr.
42352         (Mathematics <math.h>): New section, add printf-frexp.
42353         (Container data structures): Add sublist.
42354         (Core language properties): Add fpucw, inline.
42355         (Functions for greatest-width integer types <inttypes.h>): Add
42356         imaxabs, imaxdiv, inttypes.
42357         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
42358         isnanl-nolibm, ldexp.
42359         (Mathematics <math.h>): New section, add printf-frexpl.
42360         (Support for systems lacking POSIX:2001): Add fprintf-posix,
42361         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
42362         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
42363         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
42364         (Unicode string functions): Add unistr/u*-mbtoucr.
42365         (Java): Add javacomp-script, javaexec-script.
42366         (C#): Add csharpcomp-script, csharpexec-script.
42367         (Support for building libraries and executables): Add havelib,
42368         relocatable-*.
42369         (Support for maintaining and releasing projects): Renamed from
42370         'Support for maintaining and release projects'. Add announce-gen.
42371
42372 2007-03-31  Bruno Haible  <bruno@clisp.org>
42373
42374         * README: Talk primarily about git.
42375         (git and CVS): Renamed from CVS.
42376         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
42377         gnulib is available through git.
42378         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
42379
42380 2007-03-30  Bruno Haible  <bruno@clisp.org>
42381
42382         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
42383         * lib/poll_.h: Likewise.
42384         * lib/stat_.h: Likewise.
42385         * lib/sys_time_.h: Likewise.
42386         * lib/sysexit_.h: Likewise.
42387         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
42388         * lib/stdbool_.h: Likewise.
42389         * lib/byteswap_.h: Add double-inclusion guard.
42390
42391 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
42392
42393         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
42394
42395 2007-03-30  Karl Berry  <karl@gnu.org>
42396
42397         * config/srclist-update: double space after USA in the license
42398         substitution, since that's how it's usually (?) written.
42399
42400 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42401
42402         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
42403         reported by Bruno Haible.
42404
42405 2007-03-29  Bruno Haible  <bruno@clisp.org>
42406
42407         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
42408         a bug in AIX iconv().
42409
42410 2007-03-29  Bruno Haible  <bruno@clisp.org>
42411
42412         * modules/ldexpl-tests: New file.
42413         * tests/test-ldexpl.c: New file.
42414
42415 2007-03-29  Bruno Haible  <bruno@clisp.org>
42416
42417         * lib/ldexpl.c: Include fpucw.h.
42418         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
42419         multiplication.
42420         * modules/ldexpl (Depends-on): Add fpucw.
42421
42422 2007-03-29  Bruno Haible  <bruno@clisp.org>
42423
42424         * modules/ldexpl: New file.
42425         * m4/ldexpl.m4: New file.
42426         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
42427         set.
42428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
42429         REPLACE_LDEXPL.
42430         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
42431         REPLACE_LDEXPL.
42432         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42433         gl_FUNC_LDEXPL_WORKS.
42434         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
42435         * modules/mathl (Files): Remove lib/ldexpl.c.
42436         (Depends-on): Add ldexpl.
42437
42438 2007-03-29  Bruno Haible  <bruno@clisp.org>
42439
42440         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
42441
42442 2007-03-29  Bruno Haible  <bruno@clisp.org>
42443
42444         * tests/test-striconveh.c (main): Don't assume that a direct conversion
42445         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
42446         and possibly also HP-UX.
42447         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42448         work on AIX, IRIX, HP-UX, OSF/1.
42449         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42450         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42451         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42452         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42453         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
42454         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42455
42456 2007-03-29  Bruno Haible  <bruno@clisp.org>
42457
42458         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
42459
42460 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42461
42462         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
42463         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
42464
42465 2007-03-29  Eric Blake  <ebb9@byu.net>
42466
42467         * lib/acl-internal.h: Remove redundant include.
42468         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
42469         Cygwin when a file is locked.
42470
42471 2007-03-29  Bruno Haible  <bruno@clisp.org>
42472
42473         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
42474         file.
42475         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
42476
42477 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42478
42479         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
42480         try to remove a parent directory if the child couldn't be removed
42481         (except for the first rmdir, which could fail because the child
42482         doesn't exist).  Problem reported by Jeff Blaine in
42483         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
42484
42485 2007-03-28  Bruno Haible  <bruno@clisp.org>
42486
42487         * lib/striconveh.c (utf8conv_carefully): New function.
42488         (mem_cd_iconveh_internal): Invoke it.
42489
42490 2007-03-28  Bruno Haible  <bruno@clisp.org>
42491
42492         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
42493         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
42494         input.
42495         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
42496         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
42497         unistr/u8-uctomb.
42498
42499 2007-03-28  Bruno Haible  <bruno@clisp.org>
42500
42501         * modules/unistr/u8-mbtoucr: New file.
42502         * lib/unistr/u8-mbtoucr.c: New file.
42503         * modules/unistr/u16-mbtoucr: New file.
42504         * lib/unistr/u16-mbtoucr.c: New file.
42505         * modules/unistr/u16-mbtoucr: New file.
42506         * lib/unistr/u16-mbtoucr.c: New file.
42507         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
42508
42509 2007-03-27  Simon Josefsson  <simon@josefsson.org>
42510             Bruno Haible  <bruno@clisp.org>
42511
42512         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
42513         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
42514         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
42515
42516         * m4/stdio_h.m4: Add stubs for vasprintf too.
42517
42518         * modules/stdio: Support vasprintf in sed command.
42519
42520         * modules/vasprintf: Depend on stdio for prototypes.  Remove
42521         vasprintf.h.  Add stdio module indicator.
42522
42523         * lib/stdio_.h: Declare asprintf and vasprintf, based on
42524         vasprintf.h.
42525
42526         * lib/vasprintf.h: File removed.
42527
42528         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
42529         * lib/vasprintf.c: Ditto.
42530         * lib/xvasprintf.c: Ditto.
42531         * tests/test-vasprintf-posix.c: Ditto.
42532         * tests/test-vasprintf.c: Ditto.
42533
42534 2007-03-27  Bruno Haible  <bruno@clisp.org>
42535
42536         Make vasnprintf multithread-safe.
42537         * lib/vasnprintf.c (decimal_point_char): New function.
42538         (VASNPRINTF): Use it.
42539         Suggested by Simon Josefsson.
42540
42541 2007-03-27  Eric Blake  <ebb9@byu.net>
42542
42543         Support sub-second birthtime on cygwin.
42544         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
42545         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
42546         (get_stat_birthtime): Also work with st_birthtim.
42547
42548 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
42549
42550         * lib/stat-time.h (USE_BIRTHTIME): Remove.
42551         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
42552         (get_stat_birthtime_ns): Do not try to use "spare" fields.
42553         (get_stat_birthtime_ns): Simplify compile-time tests.
42554         (get_stat_birthtime): Change the API to look like
42555         get_stat_mtime etc., except return a negative tv_nsec on error.
42556         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
42557         Don't check for "spare" fields.
42558         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
42559         or for struct stat.st_birthtime, as these tests aren't used.
42560         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
42561
42562 2007-03-27  Bruno Haible  <bruno@clisp.org>
42563
42564         * lib/stat-time.h: Include <sys/stat.h>.
42565
42566 2007-03-27  James Youngman  <jay@gnu.org>
42567
42568         * lib/stat-time.h (get_stat_birthtime): New function for
42569           retrieving st_birthtime as provided by UFS2 (hence *BSD).
42570         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
42571           and its variants.
42572         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
42573         * modules/stat-time-test: New file.
42574         * tests/test-stat-time.c: New test, devised by Bruno Haible.
42575
42576 2007-03-26  Bruno Haible  <bruno@clisp.org>
42577
42578         Better support of signalling NaNs.
42579         * lib/atanl.c: Include isnanl.h.
42580         (atanl): Perform test for NaN at the beginning of the function and
42581         through a call to isnanl.
42582         * lib/cosl.c: Include isnanl.h.
42583         (cosl): Perform test for NaN at the beginning of the function and
42584         through a call to isnanl.
42585         * lib/ldexpl.c: Include isnanl.h.
42586         (ldexpl): Perform test for NaN through a call to isnanl.
42587         * lib/logl.c: Include isnanl.h.
42588         (logl): Perform test for NaN at the beginning of the function and
42589         through a call to isnanl.
42590         * lib/sinl.c: Include isnanl.h.
42591         (sinl): Perform test for NaN at the beginning of the function and
42592         through a call to isnanl.
42593         * lib/sqrtl.c: Include isnanl.h.
42594         (sqrtl): Perform test for NaN at the beginning of the function and
42595         through a call to isnanl.
42596         * lib/tanl.c: Include isnanl.h.
42597         (tanl): Perform test for NaN at the beginning of the function and
42598         through a call to isnanl.
42599         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
42600         * modules/mathl (Depends-on): Add isnanl.
42601
42602 2007-03-26  Eric Blake  <ebb9@byu.net>
42603
42604         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
42605         regression in logic sense of previous patch.
42606
42607 2007-03-26  Bruno Haible  <bruno@clisp.org>
42608
42609         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
42610         unportable shell command "if ! ...".
42611         Reported by Ralf Wildenhues.
42612
42613 2007-03-25  Bruno Haible  <bruno@clisp.org>
42614
42615         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
42616         <sysexits.h> file, and only add EX_CONFIG.
42617         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
42618         absolute file name and whether it is sufficient. Substitute also
42619         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
42620         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
42621         ABSOLUTE_SYSEXITS_H into sysexits.h.
42622
42623 2007-03-25  Bruno Haible  <bruno@clisp.org>
42624
42625         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
42626         hints is NULL.
42627
42628 2007-03-25  Bruno Haible  <bruno@clisp.org>
42629
42630         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
42631         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
42632
42633 2007-03-25  Bruno Haible  <bruno@clisp.org>
42634
42635         * lib/vasnprintf.c: Include langinfo.h.
42636         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
42637         multithread-safe.
42638         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
42639         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
42640         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42641         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42642         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42643         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42644         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42645         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
42646         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42647         Reported by Simon Josefsson.
42648
42649 2007-03-25  Bruno Haible  <bruno@clisp.org>
42650
42651         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
42652         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
42653         * modules/vasnprintf (Depends-on): Add stdint.
42654
42655 2007-03-25  Bruno Haible  <bruno@clisp.org>
42656
42657         * modules/fpieee: New file.
42658         * m4/fpieee.m4: New file.
42659         * modules/isnan-nolibm (Depends-on): Add fpieee.
42660         * modules/isnanl-nolibm (Depends-on): Add fpieee.
42661         * modules/isnanl (Depends-on): Add fpieee.
42662
42663 2007-03-25  Bruno Haible  <bruno@clisp.org>
42664
42665         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
42666
42667 2007-03-25  Bruno Haible  <bruno@clisp.org>
42668
42669         Avoid test failures on IRIX 6.5.
42670         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
42671         (main): Use it.
42672         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
42673         macros.
42674         (main): Use them.
42675
42676 2007-03-25  Bruno Haible  <bruno@clisp.org>
42677
42678         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
42679         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
42680         exists but doesn't work.
42681         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
42682         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
42683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
42684         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
42685
42686 2007-03-25  Bruno Haible  <bruno@clisp.org>
42687
42688         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
42689         returns inf. Needed on IRIX 6.5.
42690
42691 2007-03-25  Bruno Haible  <bruno@clisp.org>
42692
42693         * tests/test-frexpl.c: Include isnanl-nolibm.h.
42694         (main): Use isnanl instead of x != x idiom.
42695         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
42696
42697         * tests/test-frexp.c: Include isnan.h.
42698         (main): Use isnan instead of x != x idiom.
42699         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
42700
42701 2007-03-25  Bruno Haible  <bruno@clisp.org>
42702
42703         * tests/test-frexp.c (NaN): New function/macro.
42704         (main): Use it instead of 0.0 / 0.0.
42705         * tests/test-isnan.c (NaN): New function/macro.
42706         (main): Use it instead of 0.0 / 0.0.
42707         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
42708         (test_function): Use it instead of 0.0 / 0.0.
42709         * tests/test-vasprintf-posix.c (NaN): New function/macro.
42710         (test_function): Use it instead of 0.0 / 0.0.
42711         * tests/test-snprintf-posix.h (NaN): New function/macro.
42712         (test_function): Use it instead of 0.0 / 0.0.
42713         * tests/test-sprintf-posix.h (NaN): New function/macro.
42714         (test_function): Use it instead of 0.0 / 0.0.
42715         * tests/test-fprintf-posix.h (NaN): New function/macro.
42716         (test_function): Use it instead of 0.0 / 0.0.
42717         * tests/test-printf-posix.h (NaN): New function/macro.
42718         (test_function): Use it instead of 0.0 / 0.0.
42719
42720         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
42721
42722 2007-03-25  Bruno Haible  <bruno@clisp.org>
42723
42724         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
42725
42726 2007-03-25  Bruno Haible  <bruno@clisp.org>
42727
42728         * lib/regexec.c (merge_state_with_log): Make static.
42729
42730 2007-03-25  Bruno Haible  <bruno@clisp.org>
42731
42732         * lib/trigl.c (kernel_rem_pio2): Make static.
42733
42734 2007-03-25  Bruno Haible  <bruno@clisp.org>
42735
42736         * lib/sincosl.c (sincosl_table): Make static.
42737
42738 2007-03-25  Bruno Haible  <bruno@clisp.org>
42739
42740         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
42741         if the compiler does not support C99.
42742
42743 2007-03-25  Bruno Haible  <bruno@clisp.org>
42744
42745         * modules/time (Makefile.am): Ensure all rule action lines start with a
42746         tab.
42747
42748 2007-03-24  Bruno Haible  <bruno@clisp.org>
42749
42750         * modules/tsearch-tests: New file.
42751         * tests/test-tsearch.sh: New file.
42752         * tests/test-tsearch.c: New file, mostly copied from glibc.
42753
42754         * modules/search-tests: New file.
42755         * tests/test-search.c: New file.
42756
42757         * modules/search: New file.
42758         * lib/search_.h: New file, incorporating lib/tsearch.h.
42759         * m4/search_h.m4: New file.
42760         * lib/tsearch.h: Remove file.
42761         * lib/tsearch.c: Include search.h instead of tsearch.h.
42762         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
42763         HAVE_TSEARCH.
42764         * modules/tsearch (Files): Remove lib/tsearch.h.
42765         (Depends-on): Add search.
42766         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
42767         (Include): Change tsearch.h into search.h.
42768
42769 2007-03-24  Bruno Haible  <bruno@clisp.org>
42770
42771         * modules/fpucw: New file.
42772         * lib/fpucw.h: New file.
42773         * lib/frexp.c: Include fpucw.h.
42774         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42775         (FUNC): Use them.
42776         * lib/printf-frexp.c: Include fpucw.h.
42777         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42778         (FUNC): Use them.
42779         * lib/vasnprintf.c: Include fpucw.h.
42780         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
42781         'long double' calculations.
42782         * tests/test-frexpl.c: Include fpucw.h.
42783         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42784         * tests/test-printf-frexpl.c: Include fpucw.h.
42785         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42786         * modules/frexpl (Depends-on): Add fpucw.
42787         * modules/printf-frexpl (Depends-on): Likewise.
42788         * modules/fprintf-posix (Depends-on): Likewise.
42789         * modules/snprintf-posix (Depends-on): Likewise.
42790         * modules/sprintf-posix (Depends-on): Likewise.
42791         * modules/vasnprintf-posix (Depends-on): Likewise.
42792         * modules/vasprintf-posix (Depends-on): Likewise.
42793         * modules/vfprintf-posix (Depends-on): Likewise.
42794         * modules/vsnprintf-posix (Depends-on): Likewise.
42795         * modules/vsprintf-posix (Depends-on): Likewise.
42796         * modules/frexpl-tests (Depends-on): Likewise.
42797         * modules/printf-frexpl-tests (Depends-on): Likewise.
42798
42799 2007-03-24  Bruno Haible  <bruno@clisp.org>
42800
42801         * lib/float+.h: New file.
42802         * lib/isnan.c: Include float+.h.
42803         (SIZE): New macro.
42804         (FUNC): Compare only SIZE bytes of the value.
42805         * lib/vasnprintf.c: Include float+.h.
42806         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
42807         SIZEOF_LDBL or SIZEOF_DBL bytes.
42808         * modules/isnan-nolibm (Files): Add lib/float+.h.
42809         * modules/isnanl-nolibm (Files): Add lib/float+.h.
42810         * modules/isnanl (Files): Add lib/float+.h.
42811         * modules/vasnprintf (Files): Add lib/float+.h.
42812
42813 2007-03-24  Bruno Haible  <bruno@clisp.org>
42814
42815         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
42816         include isnanl-nolibm.h.
42817
42818 2007-03-24  Bruno Haible  <bruno@clisp.org>
42819
42820         * tests/test-read-file.c (main): Don't produce spurious output for
42821         expected situations. Make the test fail if it encountered unexpected
42822         results.
42823
42824 2007-03-24  Bruno Haible  <bruno@clisp.org>
42825
42826         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
42827         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
42828
42829 2007-03-24  Bruno Haible  <bruno@clisp.org>
42830
42831         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
42832
42833 2007-03-24  Bruno Haible  <bruno@clisp.org>
42834
42835         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
42836         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
42837
42838         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
42839         * modules/utf8-ucs4: Turn into a symbolic link to module
42840         unistr/u8-mbtouc.
42841
42842         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
42843         utf8-ucs4-unsafe.
42844         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
42845         unistr/u8-mbtouc-unsafe.
42846
42847         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
42848         * modules/utf16-ucs4: Turn into a symbolic link to module
42849         unistr/u16-mbtouc.
42850
42851         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
42852         utf16-ucs4-unsafe.
42853         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
42854         unistr/u16-mbtouc-unsafe.
42855
42856         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
42857         * modules/ucs4-utf8: Turn into a symbolic link to module
42858         unistr/u8-ubtomb.
42859
42860         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
42861         * modules/ucs4-utf16: Turn into a symbolic link to module
42862         unistr/u16-ubtomb.
42863
42864 2007-03-24  Bruno Haible  <bruno@clisp.org>
42865
42866         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
42867         Enable the function only if HAVE_INLINE.
42868         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
42869         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
42870         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
42871         Enable the function only if HAVE_INLINE.
42872         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
42873         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
42874         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
42875         Enable the function only if HAVE_INLINE.
42876         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
42877         Enable the function only if HAVE_INLINE.
42878         * modules/utf8-ucs4: Update.
42879         * modules/utf8-ucs4-unsafe: Update.
42880         * modules/utf16-ucs4: Update.
42881         * modules/utf16-ucs4-unsafe: Update.
42882         * modules/ucs4-utf8: Update.
42883         * modules/ucs4-utf16: Update.
42884
42885 2007-03-24  Bruno Haible  <bruno@clisp.org>
42886
42887         * lib/utf8-ucs4.h: Remove file.
42888         * lib/utf8-ucs4-unsafe.h: Remove file.
42889         * lib/utf16-ucs4.h: Remove file.
42890         * lib/utf16-ucs4-unsafe.h: Remove file.
42891         * lib/ucs4-utf8.h: Remove file.
42892         * lib/ucs4-utf16.h: Remove file.
42893         * lib/unistr.h: Include their previous contents.
42894         * m4/utf-ucs4.m4: Remove file.
42895         * m4/ucs4-utf.m4: Remove file.
42896         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
42897         (Depends-on): Add unistr/base.
42898         (configure.ac): Remove gl_UTF_UCS4.
42899         (Makefile.am): Update.
42900         (Include): Change to unistr.h.
42901         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
42902         (Depends-on): Add unistr/base.
42903         (configure.ac): Remove gl_UTF_UCS4.
42904         (Makefile.am): Update.
42905         (Include): Change to unistr.h.
42906         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
42907         (Depends-on): Add unistr/base.
42908         (configure.ac): Remove gl_UTF_UCS4.
42909         (Makefile.am): Update.
42910         (Include): Change to unistr.h.
42911         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
42912         (Depends-on): Add unistr/base.
42913         (configure.ac): Remove gl_UTF_UCS4.
42914         (Makefile.am): Update.
42915         (Include): Change to unistr.h.
42916         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
42917         (Depends-on): Add unistr/base.
42918         (configure.ac): Remove gl_UCS4_UTF.
42919         (Makefile.am): Update.
42920         (Include): Change to unistr.h.
42921         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
42922         (Depends-on): Add unistr/base.
42923         (configure.ac): Remove gl_UCS4_UTF.
42924         (Makefile.am): Update.
42925         (Include): Change to unistr.h.
42926         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
42927         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
42928         utf8-ucs4-unsafe.h.
42929         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
42930         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
42931         utf16-ucs4-unsafe.h.
42932         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
42933         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
42934         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
42935         * lib/unistr/u8-strchr.c: Likewise.
42936         * lib/unistr/u8-strrchr.c: Likewise.
42937         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
42938         * lib/unistr/u16-strchr.c: Likewise.
42939         * lib/unistr/u16-strrchr.c: Likewise.
42940         * lib/striconveh.c: Update.
42941         * lib/linebreak.c: Update.
42942
42943 2007-03-24  Bruno Haible  <bruno@clisp.org>
42944
42945         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
42946         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
42947
42948 2007-03-22  Bruno Haible  <bruno@clisp.org>
42949
42950         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
42951
42952 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
42953
42954         * MODULES.html.sh (File system functions): New module write-any-file.
42955         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
42956         * m4/write-any-file.m4: New files.
42957
42958 2007-03-23  Eric Blake  <ebb9@byu.net>
42959
42960         * gnulib-tool: Rearrange space-tab sequences, since some editors
42961         like to eat them.
42962
42963 2007-03-23  Eric Blake  <ebb9@byu.net>
42964
42965         * lib/version-etc.c (version_etc_va): Update license wording to
42966         be more concise.  Recommended by Richard Stallman.
42967
42968 2007-03-22  Bruno Haible  <bruno@clisp.org>
42969
42970         * lib/poll.c (MSG_PEEK): New fallback definition.
42971
42972 2007-03-22  Bruno Haible  <bruno@clisp.org>
42973
42974         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
42975         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
42976         (main): Update.
42977         Fixes a compilation error on BeOS.
42978
42979 2007-03-22  Bruno Haible  <bruno@clisp.org>
42980
42981         * modules/frexpl-tests: New file.
42982         * tests/test-frexpl.c: New file.
42983
42984         * modules/frexpl: New file.
42985         * m4/frexpl.m4: New file.
42986         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
42987         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
42988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
42989         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
42990         (Depends-on): Add frexpl. Remove isnanl-nolibm.
42991         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
42992
42993 2007-03-22  Bruno Haible  <bruno@clisp.org>
42994
42995         * lib/frexpl.c: Share code with lib/frexp.c.
42996         * modules/mathl (Files): Add lib/frexp.c.
42997         (Depends-on): Add isnanl-nolibm.
42998
42999 2007-03-22  Bruno Haible  <bruno@clisp.org>
43000
43001         * modules/printf-frexp (Files): Add m4/frexp.m4.
43002         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
43003         only if the found frexp function actually works.
43004
43005 2007-03-22  Bruno Haible  <bruno@clisp.org>
43006
43007         * lib/frexp.c: Remove older implementation that uses divisions.
43008
43009 2007-03-21  Bruno Haible  <bruno@clisp.org>
43010
43011         * modules/frexp-tests: New file.
43012         * tests/test-frexp.c: New file.
43013
43014         * modules/frexp: New file.
43015         * lib/frexp.c: New file.
43016         * m4/frexp.m4: New file.
43017         * lib/math_.h (frexp): New declaration.
43018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
43019         REPLACE_FREXP.
43020         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
43021
43022 2007-03-21  Bruno Haible  <bruno@clisp.org>
43023
43024         * modules/isnanl-tests: New file.
43025         * tests/test-isnanl.c: New file.
43026
43027         * modules/isnanl: New file.
43028         * lib/isnanl.h: New file.
43029         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
43030         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
43031         gl_FUNC_ISNANL_WORKS.
43032         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
43033         New macros.
43034
43035 2007-03-21  Bruno Haible  <bruno@clisp.org>
43036
43037         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
43038         lib/isnanl.h.
43039         (Include): Update.
43040         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
43041         * lib/vasnprintf.c: Update.
43042         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
43043         tests/test-isnanl.h, remove tests/test-isnanl.c.
43044         (Makefile.am): Update.
43045         * tests/test-isnanl-nolibm.c: New file.
43046         * tests/test-isnanl.h: New file.
43047         * tests/test-isnanl.c: Remove file.
43048
43049 2007-03-21  Jim Meyering  <jim@meyering.net>
43050
43051         When trying to open ".", treat ESTALE like EACCES.
43052         * lib/savewd.c (savewd_save): Resort to forking not just upon
43053         failure with EACCES, but also when errno is ESTALE.
43054
43055 2007-03-20  Bruno Haible  <bruno@clisp.org>
43056
43057         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
43058         Needed on AIX 5.1. Reported by Matthew Woehlke.
43059
43060 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43061
43062         Suggestions by Bruno Haible:
43063         * lib/acl-internal.h: Include "gettext.h" rather than rolling
43064         our own.
43065         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
43066         * modules/acl (Depends-on): Add gettext.
43067
43068 2007-03-19  Bruno Haible  <bruno@clisp.org>
43069
43070         * modules/iconvme: Remove file.
43071         * lib/iconvme.h: Remove file.
43072         * lib/iconvme.c: Remove file.
43073         * m4/iconvme.m4: Remove file.
43074
43075 2007-03-19  Bruno Haible  <bruno@clisp.org>
43076
43077         * doc/relocatable-maint.texi: Break long shell script line.
43078         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43079
43080 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43081
43082         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
43083         handle file_has_acl.
43084         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
43085         * lib/acl.c: Move header inclusions and related macro defns into
43086         lib/acl-internal.h.
43087         (S_ISLNK): Remove defn, since that's now done for us.
43088         (file_has_acl): Move to lib/file-has-acl.c.
43089         Call acl_trivial if available.  This is the crucial part of the fix.
43090         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
43091         shared within the library.  Rewrite a bit, partly to make it compatible
43092         with the GNU coding style.
43093         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
43094         Remove unnecessary double-quotes.
43095         Don't test for acl_to_text; the build will catch that.
43096         Replace acl_entries if it doesn't exist and it is needed.
43097         Check for -lsec and acl_trivial (as used on Solaris 10).
43098         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
43099         lib/file-has-acl.c.
43100         (Depends-on): Add sys_stat, for S_ISLNK.
43101
43102 2007-03-19  Ben Pfaff  <blp@gnu.org>
43103
43104         * doc/gnulib.texi: Fix typos.
43105         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43106
43107 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43108
43109         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
43110         If size is zero here, buf must be zero.
43111
43112 2007-03-19  Simon Josefsson  <simon@josefsson.org>
43113
43114         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
43115         <bruno@clisp.org>.
43116
43117 2007-03-18  Bruno Haible  <bruno@clisp.org>
43118
43119         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
43120         Suggested by Eric Blake.
43121
43122 2007-03-18  Ben Pfaff  <blp@gnu.org>
43123
43124         * doc/relocatable.texi: Recommend using as prefix a directory
43125         that does not exist and will never be created.  Based on
43126         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
43127         and others.
43128
43129 2007-03-17  Bruno Haible  <bruno@clisp.org>
43130
43131         * lib/fchownat.c: Include lchown.h.
43132
43133 2007-03-17  Bruno Haible  <bruno@clisp.org>
43134
43135         Fix endless loop when the given allocated size was > INT_MAX.
43136         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
43137         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
43138         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
43139         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
43140         * lib/sprintf.c (sprintf): Likewise.
43141
43142 2007-03-17  Bruno Haible  <bruno@clisp.org>
43143
43144         * tests/test-argp-2.sh (func_compare): Output a context diff.
43145
43146 2007-03-17  Bruno Haible  <bruno@clisp.org>
43147
43148         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
43149         locale's decimal-point character.
43150
43151 2007-03-17  Bruno Haible  <bruno@clisp.org>
43152
43153         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
43154         before comparing it. Needed because on some platforms (e.g. x86) a
43155         'long double' occupies less bytes than sizeof (long double).
43156
43157 2007-03-17  Bruno Haible  <bruno@clisp.org>
43158
43159         * tests/test-crc.c (main): Make printf statements 64-bit clean.
43160         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
43161         * tests/test-getaddrinfo.c (simple): Likewise.
43162         * tests/test-read-file.c (main): Likewise.
43163
43164 2007-03-17  Bruno Haible  <bruno@clisp.org>
43165
43166         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
43167
43168 2007-03-17  Bruno Haible  <bruno@clisp.org>
43169
43170         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
43171         unused variable.
43172
43173 2007-03-17  Bruno Haible  <bruno@clisp.org>
43174
43175         * tests/test-c-strcasecmp.c: Include c-strcase.h.
43176         * tests/test-c-strncasecmp.c: Likewise.
43177
43178 2007-03-17  Bruno Haible  <bruno@clisp.org>
43179
43180         * modules/stdlib (Depends-on): Add unistd.
43181         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
43182         Needed for MacOS X 10.3.
43183
43184 2007-03-17  Bruno Haible  <bruno@clisp.org>
43185
43186         * lib/unistr/u-strdup.h: Include <stdlib.h>.
43187
43188 2007-03-17  Bruno Haible  <bruno@clisp.org>
43189
43190         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
43191
43192 2007-03-17  Bruno Haible  <bruno@clisp.org>
43193
43194         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
43195         to reflect files copied from gnulib (with or without modifications).
43196         Suggested by Jim Meyering.
43197
43198 2007-03-17  Eric Blake  <ebb9@byu.net>
43199
43200         * NEWS: Document stdlib change from 2007-02-18.
43201
43202 2007-03-17  Jim Meyering  <jim@meyering.net>
43203
43204         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
43205         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
43206         someone uses a name containing shell meta-characters.
43207         Reported by Alfred M. Szmidt.
43208
43209         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
43210
43211 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43212
43213         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
43214         and copy gettext configuration files only if configure.ac contains
43215         a use of AM_GNU_GETTEXT_VERSION.
43216
43217 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43218
43219         * build-aux/bootstrap (gnulib_name): New variable.
43220         (gnulib_tool_options): Use it.
43221
43222 2007-03-13  Simon Josefsson  <simon@josefsson.org>
43223
43224         * tests/test-des.c: Use new namespace.
43225
43226 2007-03-15  Bruno Haible  <bruno@clisp.org>
43227
43228         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
43229         Reported by James Youngman <jay@gnu.org>.
43230
43231 2007-03-15  Bruno Haible  <bruno@clisp.org>
43232
43233         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
43234         declared prototype. Needed with cc on OSF/1 5.1.
43235
43236 2007-03-15  Bruno Haible  <bruno@clisp.org>
43237
43238         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
43239         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
43240         (struct gl_list_implementation): Add dispose_fn argument to the
43241         'create_empty', 'create' methods.
43242         (struct gl_list_impl_base): Add field 'dispose_fn'.
43243         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
43244         argument.
43245         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
43246         dispose_fn argument.
43247         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
43248         dispose_fn on the dropped values.
43249         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
43250         dispose_fn argument.
43251         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
43252         dropped values.
43253         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
43254         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43255         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
43256         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43257         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
43258         argument.
43259         (gl_tree_list_free): Call dispose_fn on the dropped values.
43260         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
43261         the dropped values.
43262         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
43263         Add dispose_fn argument.
43264         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
43265         Call dispose_fn on the dropped values.
43266         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
43267         Add dispose_fn argument.
43268         (gl_sublist_create): Initialize the 'dispose_fn' field.
43269         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
43270         * tests/test-array_list.c (main): Update.
43271         * tests/test-carray_list.c (main): Update.
43272         * tests/test-avltree_list.c (main): Update.
43273         * tests/test-rbtree_list.c (main): Update.
43274         * tests/test-avltreehash_list.c (main): Update.
43275         * tests/test-rbtreehash_list.c (main): Update.
43276         * tests/test-linked_list.c (main): Update.
43277         * tests/test-linkedhash_list.c (main): Update.
43278         * tests/test-array_oset.c (main): Update.
43279
43280 2007-03-15  Bruno Haible  <bruno@clisp.org>
43281
43282         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
43283         (gl_oset_create_empty): Add dispose_fn argument.
43284         (struct gl_oset_implementation): Add dispose_fn argument to
43285         'create_empty' method.
43286         (struct gl_oset_impl_base): Add dispose_fn field.
43287         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
43288         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
43289         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
43290         values.
43291         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
43292         (gl_tree_oset_free): Call dispose_fn on the dropped values.
43293         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43294         dropped value.
43295         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43296         dropped value.
43297         * tests/test-array_oset.c (main): Update.
43298         * tests/test-avltree_oset.c (main): Update.
43299         * tests/test-rbtree_oset.c (main): Update.
43300         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
43301
43302 2007-03-13  Bruno Haible  <bruno@clisp.org>
43303
43304         * tests/test-stdbool.c (i): Update after last patch.
43305
43306 2007-03-12  Bruno Haible  <bruno@clisp.org>
43307
43308         * lib/quotearg.c: Include <wctype.h> early, before the definition of
43309         the iswprint macro. Needed on Solaris 2.5.1.
43310
43311 2007-03-12  Bruno Haible  <bruno@clisp.org>
43312
43313         * tests/test-printf-frexp.c (main): Declare x as volatile.
43314
43315 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43316
43317         * doc/gnulib.texi (Build robot for gnulib): New section.
43318
43319 2007-03-12  Jim Meyering  <jim@meyering.net>
43320
43321         * build-aux/bootstrap: New file.
43322         * build-aux/bootstrap.conf: New file, from coreutils.
43323
43324 2007-03-11  Bruno Haible  <bruno@clisp.org>
43325
43326         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
43327
43328 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43329
43330         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
43331         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
43332         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
43333
43334 2007-03-11  Bruno Haible  <bruno@clisp.org>
43335
43336         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
43337         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
43338
43339 2007-03-11  Bruno Haible  <bruno@clisp.org>
43340
43341         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
43342         formula. Needed for SunPRO C 5.0.
43343
43344 2007-03-11  Bruno Haible  <bruno@clisp.org>
43345
43346         * modules/long-options (Depends-on): Add getopt.
43347
43348 2007-03-11  Bruno Haible  <bruno@clisp.org>
43349
43350         * modules/modechange (Depends-on): Add stdbool.
43351
43352 2007-03-11  Bruno Haible  <bruno@clisp.org>
43353
43354         * modules/i-ring (Depends-on): Add stdbool.
43355
43356 2007-03-11  Bruno Haible  <bruno@clisp.org>
43357
43358         * modules/gc-des (Depends-on): Add stdbool.
43359
43360 2007-03-11  Bruno Haible  <bruno@clisp.org>
43361
43362         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
43363
43364 2007-03-11  Bruno Haible  <bruno@clisp.org>
43365
43366         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
43367
43368 2007-03-11  Bruno Haible  <bruno@clisp.org>
43369
43370         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
43371
43372 2007-03-11  Bruno Haible  <bruno@clisp.org>
43373
43374         * lib/vasnprintf.c (sprintf): Undefine.
43375
43376 2007-03-11  Bruno Haible  <bruno@clisp.org>
43377
43378         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
43379         initializers in SunPRO C and Compaq C compilers.
43380
43381 2007-03-11  Bruno Haible  <bruno@clisp.org>
43382
43383         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
43384         decrementing code ANSI C compliant.
43385
43386 2007-03-11  Bruno Haible  <bruno@clisp.org>
43387
43388         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
43389         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
43390
43391 2007-03-11  Bruno Haible  <bruno@clisp.org>
43392
43393         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
43394         <stdbool.h> substitute doesn't pass.
43395
43396 2007-03-11  Bruno Haible  <bruno@clisp.org>
43397
43398         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
43399
43400 2007-03-11  Bruno Haible  <bruno@clisp.org>
43401
43402         * gnulib-tool (func_create_megatestdir): Create also an autobuild
43403         script, for submission to autobuild.josefsson.org.
43404
43405 2007-03-10  Bruno Haible  <bruno@clisp.org>
43406
43407         * modules/canonicalize-lgpl-tests: New file.
43408         * tests/test-canonicalize-lgpl.sh: New file.
43409         * tests/test-canonicalize-lgpl.c: New file.
43410
43411         * modules/c-strcase-tests: New file.
43412         * tests/test-c-strcase.sh: New file.
43413         * tests/test-c-strcasecmp.c: New file.
43414         * tests/test-c-strncasecmp.c: New file.
43415
43416         * modules/atexit-tests: New file.
43417         * tests/test-atexit.sh: New file.
43418         * tests/test-atexit.c: New file.
43419
43420 2007-03-10  Bruno Haible  <bruno@clisp.org>
43421
43422         * tests/test-binary-io.sh: Use temporary filenames that are not so
43423         likely to clash with those of other tests (in a parallel make).
43424         * tests/test-binary-io.c: Likewise.
43425
43426 2007-03-10  Bruno Haible  <bruno@clisp.org>
43427
43428         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
43429         fallback; use #error instead.
43430         Suggested by Simon Josefsson.
43431
43432 2007-03-10  Bruno Haible  <bruno@clisp.org>
43433
43434         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
43435         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
43436         first and the last.
43437
43438 2007-03-10  Bruno Haible  <bruno@clisp.org>
43439
43440         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
43441
43442 2007-03-10  Bruno Haible  <bruno@clisp.org>
43443
43444         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
43445         "make distcheck".
43446         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
43447         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
43448         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
43449
43450 2007-03-10  Bruno Haible  <bruno@clisp.org>
43451
43452         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
43453         variable.
43454         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
43455         variable.
43456
43457 2007-03-09  Eric Blake  <ebb9@byu.net>
43458         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
43459
43460         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
43461         types are not being provided by gnulib.
43462         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
43463         types are supported.
43464
43465 2007-03-10  Bruno Haible  <bruno@clisp.org>
43466
43467         * lib/stdio_.h (__attribute__): New macro.
43468         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
43469         vsprintf): Specify __attribute__ __format__ for GCC.
43470         Suggested by Eric Blake.
43471
43472 2007-03-09  Bruno Haible  <bruno@clisp.org>
43473
43474         * modules/printf-posix-tests: New file.
43475         * tests/test-printf-posix.sh: New file.
43476         * tests/test-printf-posix.c: New file.
43477
43478         * modules/printf-posix: New file.
43479         * lib/printf.c: New file.
43480         * m4/printf-posix-rpl.m4: New file.
43481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
43482         REPLACE_PRINTF.
43483         * lib/stdio_.h (printf): New declaration.
43484         (format, __format__, ____printf____, ____scanf____, ____strftime____,
43485         ____strfmon____): New macros.
43486         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
43487         REPLACE_PRINTF.
43488
43489 2007-03-09  Bruno Haible  <bruno@clisp.org>
43490
43491         * tests/test-vasnprintf-posix2.sh: New file.
43492         * tests/test-vasnprintf-posix2.c: New file.
43493         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
43494         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43495         (Makefile.am): Activate test-vasnprintf-posix2.sh.
43496
43497         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
43498         a locale dependent decimal point, rather than always '.'.
43499
43500 2007-03-09  Eric Blake  <ebb9@byu.net>
43501
43502         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
43503         spite of platforms like Tandem/NSK that define it to -1.
43504
43505 2007-03-08  Bruno Haible  <bruno@clisp.org>
43506
43507         * modules/vprintf-posix-tests: New file.
43508         * tests/test-vprintf-posix.sh: New file.
43509         * tests/test-vprintf-posix.c: New file.
43510         * tests/test-printf-posix.h: New file.
43511
43512         * modules/vprintf-posix: New file.
43513         * lib/vprintf.c: New file.
43514         * m4/vprintf-posix.m4: New file.
43515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
43516         REPLACE_VPRINTF.
43517         * lib/stdio_.h (vprintf): New declaration.
43518         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
43519         REPLACE_VPRINTF.
43520
43521 2007-03-08  Bruno Haible  <bruno@clisp.org>
43522
43523         * modules/fprintf-posix-tests: New file.
43524         * tests/test-fprintf-posix.sh: New file.
43525         * tests/test-fprintf-posix.c: New file.
43526
43527         * modules/fprintf-posix: New file.
43528         * lib/fprintf.c: New file.
43529         * m4/fprintf-posix.m4: New file.
43530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
43531         REPLACE_FPRINTF.
43532         * lib/stdio_.h (fprintf): New declaration.
43533         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
43534         REPLACE_FPRINTF.
43535
43536 2007-03-08  Bruno Haible  <bruno@clisp.org>
43537
43538         * modules/vfprintf-posix-tests: New file.
43539         * tests/test-vfprintf-posix.sh: New file.
43540         * tests/test-vfprintf-posix.c: New file.
43541         * tests/test-fprintf-posix.h: New file.
43542         * tests/test-fprintf-posix.out: New file.
43543
43544         * modules/vfprintf-posix: New file.
43545         * lib/vfprintf.c: New file.
43546         * m4/vfprintf-posix.m4: New file.
43547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
43548         REPLACE_VFPRINTF.
43549         * lib/stdio_.h (vfprintf): New declaration.
43550         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
43551         REPLACE_VFPRINTF.
43552
43553 2007-03-08  Bruno Haible  <bruno@clisp.org>
43554
43555         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
43556
43557 2007-03-08  Bruno Haible  <bruno@clisp.org>
43558
43559         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
43560         instead of 'expr' invocations.
43561         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43562         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43563         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43564         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43565         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43566         Suggested by Paul Eggert.
43567
43568 2007-03-08  Bruno Haible  <bruno@clisp.org>
43569
43570         * modules/fseterr-tests: New file.
43571         * tests/test-fseterr.c: New file.
43572
43573         * modules/fseterr: New file.
43574         * lib/fseterr.h: New file.
43575         * lib/fseterr.c: New file.
43576
43577 2007-03-08  Bruno Haible  <bruno@clisp.org>
43578
43579         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
43580         * lib/getopt_.h: Likewise.
43581         * lib/mbswidth.h: Likewise.
43582         * lib/setenv.h: Likewise.
43583         * lib/vasnprintf.h: Likewise.
43584         * lib/vasprintf.h: Likewise.
43585         * lib/verror.h: Likewise.
43586         * lib/xsetenv.h: Likewise.
43587         * lib/xvasprintf.h: Likewise.
43588
43589 2007-03-08  Jim Meyering  <jim@meyering.net>
43590
43591         * users.txt: Add parted.
43592
43593         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
43594
43595 2007-03-07  Bruno Haible  <bruno@clisp.org>
43596
43597         * m4/printf.m4: Make the shell script snippets copy&pastable.
43598
43599 2007-03-02  Bruno Haible  <bruno@clisp.org>
43600
43601         * lib/netinet_in_.h: New file.
43602         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
43603         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
43604         * modules/netinet_in (Files): Add lib/netinet_in_.h.
43605         (Depends-on): Add absolute-header.
43606         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
43607         into netinet/in.h.
43608
43609 2007-03-03  Bruno Haible  <bruno@clisp.org>
43610
43611         * lib/sys_select_.h: New file.
43612         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
43613         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
43614         * modules/sys_select (Files): Add lib/sys_select_.h.
43615         (Depends-on): Add absolute-header.
43616         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
43617         into sys/select.h.
43618
43619 2007-03-02  Bruno Haible  <bruno@clisp.org>
43620
43621         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
43622         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
43623         values.
43624         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
43625         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
43626         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
43627         * modules/sys_socket (Depends-on): Add absolute-header.
43628         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
43629         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
43630         (Include): Remove requirement of inclusion of <sys/types.h>.
43631
43632 2007-03-02  Bruno Haible  <bruno@clisp.org>
43633
43634         * lib/byteswap_.h (bswap_32): Fix formula.
43635
43636 2007-03-06  Bruno Haible  <bruno@clisp.org>
43637
43638         * modules/sprintf-posix-tests: New file.
43639         * tests/test-sprintf-posix.c: New file.
43640
43641         * modules/sprintf-posix: New file.
43642         * lib/sprintf.c: New file.
43643         * m4/sprintf-posix.m4: New file.
43644         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
43645         REPLACE_SPRINTF.
43646         * lib/stdio_.h (sprintf): New declaration.
43647         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
43648         REPLACE_SPRINTF.
43649
43650 2007-03-06  Bruno Haible  <bruno@clisp.org>
43651
43652         * modules/vsprintf-posix-tests: New file.
43653         * tests/test-vsprintf-posix.c: New file.
43654         * tests/test-sprintf-posix.h: New file.
43655
43656         * modules/vsprintf-posix: New file.
43657         * lib/vsprintf.c: New file.
43658         * m4/vsprintf-posix.m4: New file.
43659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
43660         REPLACE_VSPRINTF.
43661         * lib/stdio_.h (vsprintf): New declaration.
43662         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
43663         REPLACE_VSPRINTF.
43664
43665 2007-03-06  Bruno Haible  <bruno@clisp.org>
43666
43667         * modules/vsnprintf (Depend-on): Remove minmax.
43668
43669 2007-03-06  Bruno Haible  <bruno@clisp.org>
43670
43671         * modules/snprintf-posix-tests: New file.
43672         * tests/test-snprintf-posix.c: New file.
43673
43674         * modules/snprintf-posix: New file.
43675         * m4/snprintf-posix.m4: New file.
43676         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
43677         gl_FUNC_SNPRINTF.
43678         (gl_FUNC_SNPRINTF): Invoke it.
43679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
43680         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
43681         is set.
43682         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
43683
43684 2007-03-06  Bruno Haible  <bruno@clisp.org>
43685
43686         * modules/vsnprintf-posix-tests: New file.
43687         * tests/test-vsnprintf-posix.c: New file.
43688         * tests/test-snprintf-posix.h: New file.
43689
43690         * modules/vsnprintf-posix: New file.
43691         * m4/vsnprintf-posix.m4: New file.
43692         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
43693         gl_FUNC_VSNPRINTF.
43694         (gl_FUNC_VSNPRINTF): Invoke it.
43695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
43696         * lib/stdio_.h (vsnprintf): Define as a replacement if
43697         REPLACE_VSNPRINTF is set.
43698         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
43699
43700 2007-03-06  Bruno Haible  <bruno@clisp.org>
43701
43702         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
43703         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
43704
43705 2007-03-06  Bruno Haible  <bruno@clisp.org>
43706
43707         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
43708         (asinl): Declare also if HAVE_DECL_ASINL is set.
43709         (atanl): Declare also if HAVE_DECL_ATANL is set.
43710         (ceill): Declare also if HAVE_DECL_CEILL is set.
43711         (cosl): Declare also if HAVE_DECL_COSL is set.
43712         (expl): Declare also if HAVE_DECL_EXPL is set.
43713         (floorl): Declare also if HAVE_DECL_FLOORL is set.
43714         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
43715         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
43716         (logl): Declare also if HAVE_DECL_LOGL is set.
43717         (sinl): Declare also if HAVE_DECL_SINL is set.
43718         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
43719         (tanl): Declare also if HAVE_DECL_TANL is set.
43720         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
43721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
43722         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
43723         declaration of frexpl, ldexpl.
43724         * modules/printf-frexpl (Depends-on): Add math.
43725         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
43726
43727 2007-03-05  Bruno Haible  <bruno@clisp.org>
43728
43729         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
43730         frexpl and ldexpl are declared.
43731         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
43732
43733 2007-03-05  Bruno Haible  <bruno@clisp.org>
43734
43735         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
43736         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
43737
43738 2007-03-05  Bruno Haible  <bruno@clisp.org>
43739
43740         * lib/stdio_.h: Include <stddef.h>.
43741
43742 2007-03-05  Bruno Haible  <bruno@clisp.org>
43743
43744         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
43745
43746 2007-03-05  Bruno Haible  <bruno@clisp.org>
43747
43748         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
43749         NetBSD 4, from Ralf Wildenhues.
43750
43751 2007-03-04  Bruno Haible  <bruno@clisp.org>
43752
43753         * lib/vasprintf.h: Update #if logic for the case when the functions
43754         exist but are overridden.
43755
43756 2007-03-04  Bruno Haible  <bruno@clisp.org>
43757
43758         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
43759         implementations: glibc-2.4 and MacOS X 10.3.
43760         * tests/test-vasnprintf-posix.c (test_function): Test also the case
43761         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
43762         * tests/test-vasprintf-posix.c (test_function): Likewise.
43763
43764 2007-03-04  Bruno Haible  <bruno@clisp.org>
43765
43766         * modules/vasprintf-posix-tests: New file.
43767         * tests/test-vasprintf-posix.c: New file.
43768
43769         * modules/vasprintf-posix: New file.
43770         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
43771         defined.
43772         * m4/vasprintf-posix.m4: New file.
43773         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
43774         gl_FUNC_VASPRINTF.
43775         (gl_FUNC_VASPRINTF): Invoke it.
43776         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
43777         here.
43778         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
43779
43780 2007-03-04  Bruno Haible  <bruno@clisp.org>
43781
43782         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
43783         REPLACE_GETTIMEOFDAY.
43784         * modules/sys_time (Makefile.am): Likewise.
43785         * m4/sys_time_h.m4: Likewise.
43786         * m4/gettimeofday.m4: Likewise.
43787
43788 2007-03-04  Bruno Haible  <bruno@clisp.org>
43789
43790         * modules/vasnprintf-posix-tests: New file.
43791         * tests/test-vasnprintf-posix.c: New file.
43792
43793         * modules/vasnprintf-posix: New file.
43794         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
43795         printf-frexpl.h.
43796         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
43797         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
43798         REPLACE_VASNPRINTF is defined.
43799         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
43800         gl_FUNC_VASNPRINTF.
43801         (gl_FUNC_VASNPRINTF): Invoke it.
43802         * m4/vasnprintf-posix.m4: New file.
43803         * m4/printf.m4: New file.
43804
43805 2007-03-04  Bruno Haible  <bruno@clisp.org>
43806
43807         Compile progreloc.c only if --enable-relocatable is specified.
43808         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
43809         if --enable-relocatable was specified.
43810         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
43811         lib_SOURCES.
43812
43813 2007-03-04  Jim Meyering  <jim@meyering.net>
43814
43815         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
43816         Use it consistently, rather than enumerating errno constants.
43817
43818 2007-03-04  Bruno Haible  <bruno@clisp.org>
43819
43820         * modules/xvasprintf-tests: New file.
43821         * tests/test-xvasprintf.c: New file.
43822
43823         * modules/vasprintf-tests: New file.
43824         * tests/test-vasprintf.c: New file.
43825
43826         * modules/vasnprintf-tests: New file.
43827         * tests/test-vasnprintf.c: New file.
43828
43829         * modules/vsnprintf-tests: New file.
43830         * tests/test-vsnprintf.c: New file.
43831
43832         * modules/snprintf-tests: New file.
43833         * tests/test-snprintf.c: New file.
43834
43835 2007-03-04  Bruno Haible  <bruno@clisp.org>
43836
43837         Compile relocatable.c only if --enable-relocatable is specified.
43838         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
43839         gl_RELOCATABLE_LIBRARY.
43840         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
43841         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
43842         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
43843         gl_RELOCATABLE_LIBRARY.
43844         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
43845         (Makefile.am): Remove lib_SOURCES.
43846         * modules/relocatable-lib-lgpl (configure.ac): Invoke
43847         gl_RELOCATABLE_LIBRARY.
43848         (Makefile.am): Remove lib_SOURCES.
43849         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
43850         always.
43851         * modules/relocatable-prog-wrapper (configure.ac): Invoke
43852         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
43853
43854 2007-03-04  Bruno Haible  <bruno@clisp.org>
43855
43856         * modules/argmatch-tests: New file.
43857         * tests/test-argmatch.c: New file.
43858
43859         * tests/test-allocsa.c (main): Halve the number of loop runs.
43860
43861         * modules/alloca-opt-tests: New file.
43862         * tests/test-alloca-opt.c: New file.
43863
43864 2007-03-04  Jim Meyering  <jim@meyering.net>
43865
43866         Work around difference between Linux ACLs and Solaris 10 ZFS.
43867         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
43868         for EINVAL.
43869
43870 2007-03-03  Bruno Haible  <bruno@clisp.org>
43871
43872         * modules/relocatable-prog (Depends-on): Add back progreloc's
43873         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
43874
43875 2007-03-03  Bruno Haible  <bruno@clisp.org>
43876
43877         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
43878         * modules/relocatable-lib: New file.
43879
43880 2007-03-03  Bruno Haible  <bruno@clisp.org>
43881
43882         * modules/relocatable-prog: Renamed from modules/relocatable.
43883         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
43884
43885 2007-03-03  Bruno Haible  <bruno@clisp.org>
43886
43887         * modules/relocatable-script (Files): Add doc/relocatable.texi,
43888         m4/relocatable-lib.m4.
43889         (Depends-on): Remove 'relocatable'.
43890         (configure.ac): Add gl_RELOCATABLE_NOP.
43891
43892 2007-03-03  Bruno Haible  <bruno@clisp.org>
43893
43894         * modules/relocatable-prog-wrapper: New file.
43895         * modules/relocatable (Depends-on): Add it. Remove all other
43896         dependencies except progname.
43897         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
43898
43899         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
43900         (gl_FUNC_STRERROR): Nop.
43901         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
43902
43903         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
43904         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
43905
43906         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
43907         (gl_FUNC_READLINK): Update.
43908
43909         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
43910
43911 2007-03-03  Bruno Haible  <bruno@clisp.org>
43912
43913         * lib/xreadlink.c: Include <unistd.h> unconditionally.
43914         * modules/xreadlink (Depends-on): Add unistd.
43915         * modules/xreadlink-with-size (Depends-on): Likewise.
43916
43917 2007-03-03  Bruno Haible  <bruno@clisp.org>
43918
43919         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
43920         extracted from gt_FUNC_SETENV.
43921         (gt_FUNC_SETENV): Remove macro.
43922         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
43923         remove gt_FUNC_SETENV.
43924
43925 2007-03-03  Bruno Haible  <bruno@clisp.org>
43926
43927         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
43928         ENABLE_RELOCATABLE here.
43929         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
43930
43931 2007-03-03  Bruno Haible  <bruno@clisp.org>
43932
43933         * modules/rbtreehash-list-tests (Depends-on): Add progname.
43934         * tests/test-rbtreehash_list.c: Include progname.h.
43935         (main): Call set_program_name.
43936
43937         * modules/rbtree-oset-tests (Depends-on): Add progname.
43938         * tests/test-rbtree_oset.c: Include progname.h.
43939         (main): Call set_program_name.
43940
43941         * modules/rbtree-list-tests (Depends-on): Add progname.
43942         * tests/test-rbtree_list.c: Include progname.h.
43943         (main): Call set_program_name.
43944
43945         * modules/linked-list-tests (Depends-on): Add progname.
43946         * tests/test-linked_list.c: Include progname.h.
43947         (main): Call set_program_name.
43948
43949 2007-03-03  Bruno Haible  <bruno@clisp.org>
43950
43951         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
43952         All uses of __restrict changed to _Restrict_.
43953         * lib/glob_.h (__restrict): Remove macro.
43954
43955 2007-03-02  Bruno Haible  <bruno@clisp.org>
43956
43957         * modules/gettext (configure.ac): Require gettext infrastructure
43958         from version 0.16.1.
43959
43960 2007-03-02  Bruno Haible  <bruno@clisp.org>
43961
43962         * modules/linkedhash-list-tests (Depends-on): Add progname.
43963         * tests/test-linkedhash_list.c: Include progname.h.
43964         (main): Call set_program_name.
43965
43966         * modules/carray-list-tests (Depends-on): Add progname.
43967         * tests/test-carray_list.c: Include progname.h.
43968         (main): Call set_program_name.
43969
43970         * modules/avltreehash-list-tests (Depends-on): Add progname.
43971         * tests/test-avltreehash_list.c: Include progname.h.
43972         (main): Call set_program_name.
43973
43974         * modules/avltree-oset-tests (Depends-on): Add progname.
43975         * tests/test-avltree_oset.c: Include progname.h.
43976         (main): Call set_program_name.
43977
43978         * modules/avltree-list-tests (Depends-on): Add progname.
43979         * tests/test-avltree_list.c: Include progname.h.
43980         (main): Call set_program_name.
43981
43982         * modules/array-oset-tests (Depends-on): Add progname.
43983         * tests/test-array_oset.c: Include progname.h.
43984         (main): Call set_program_name.
43985
43986         * modules/array-list-tests (Depends-on): Add progname.
43987         * tests/test-array_list.c: Include progname.h.
43988         (main): Call set_program_name.
43989
43990         * modules/argp-tests (Depends-on): Add progname.
43991         * tests/test-argp.c: Include argp.h first. Include progname.h.
43992         (main): Call set_program_name.
43993
43994 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
43995
43996         * doc/gnulib-tool.texi (Initial import): Reword description of
43997         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
43998         limited effect even if defined after the first system include.
43999
44000 2007-03-01  Bruno Haible  <bruno@clisp.org>
44001
44002         * build-aux/config.libpath: Update to libtool-1.5.22.
44003         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44004
44005 2007-03-01  Bruno Haible  <bruno@clisp.org>
44006
44007         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
44008         foo_CFLAGS.
44009         Reported by Ralf Wildenhues.
44010
44011 2007-03-01  Bruno Haible  <bruno@clisp.org>
44012
44013         * build-aux/install-reloc: Remove object files left over by some
44014         compilers.
44015         Reported by Ralf Wildenhues.
44016
44017 2007-03-01  Bruno Haible  <bruno@clisp.org>
44018
44019         * build-aux/install-reloc: Break long lines.
44020
44021 2007-03-01  Bruno Haible  <bruno@clisp.org>
44022
44023         * doc/relocatable.texi: Document that it may not work on OpenBSD.
44024         Reported by Ralf Wildenhues.
44025
44026 2007-03-01  Bruno Haible  <bruno@clisp.org>
44027
44028         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
44029         include ordering constraints.
44030
44031 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44032
44033         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
44034         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
44035         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
44036         as another example.
44037         * lib/time_.h: Fix misspelling.
44038         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44039         Require gl_HEADER_TIME_H_DEFAULTS.
44040         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
44041         * m4/time_r.m4 (gl_TIME_R): Likewise.
44042         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
44043
44044 2007-03-01  Bruno Haible  <bruno@clisp.org>
44045
44046         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
44047         * m4/utimens.m4 (gl_UTIMENS): Likewise.
44048
44049 2007-03-01  Jim Meyering  <jim@meyering.net>
44050
44051         * modules/xreadlink (Maintainer): Add my name.
44052         * modules/xreadlink-with-size (Depends-on): Alphabetize.
44053
44054 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
44055             Bruno Haible  <bruno@clisp.org>
44056
44057         * build-aux/install-reloc: Compile also c-ctype.c.
44058         * build-aux/relocatable.sh.in: New file.
44059         * doc/relocatable.texi: New file.
44060         * doc/relocatable-maint.texi: New file.
44061         * doc/gnulib.texi: Include relocatable-maint.texi.
44062         * lib/progreloc.c: Include unistd.h unconditionally.
44063         * lib/relocwrapper.c: Include unistd.h unconditionally.
44064         Include c-ctype.h.
44065         (add_dotbin): Use c_tolower.
44066         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
44067         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
44068         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
44069         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
44070         to m4/relocatable-lib.m4.
44071         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
44072         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
44073         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
44074         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
44075         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
44076         * modules/relocatable: New file.
44077         * modules/relocatable-lib: New file.
44078         * modules/relocatable-script: New file.
44079
44080 2007-02-28  Bruno Haible  <bruno@clisp.org>
44081
44082         Import --enable-relocatable infrastructure.
44083         * build-aux/config.libpath: New file, from GNU gettext.
44084         * build-aux/install-reloc: New file, from GNU gettext.
44085         * build-aux/reloc-ldflags: New file, from GNU gettext.
44086         * lib/relocatable.h: New file, from GNU gettext.
44087         * lib/relocatable.c: New file, from GNU gettext.
44088         * lib/relocwrapper.c: New file, from GNU gettext.
44089         * m4/relocatable.m4: New file, from GNU gettext.
44090
44091 2007-02-28  Bruno Haible  <bruno@clisp.org>
44092
44093         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
44094
44095         * modules/xreadlink: New file, from GNU gettext with modifications.
44096         * lib/xreadlink.c: New file, from GNU gettext.
44097         * lib/xreadlink.h: Add comments.
44098         (xreadlink): New declaration.
44099
44100         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
44101         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
44102         lib/xreadlink-with-size.c.
44103         (configure.ac): Remove gl_XREADLINK invocation.
44104         (Makefile.am): Augment lib_SOURCES.
44105         * m4/xreadlink.m4: Remove file.
44106         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
44107         (xreadlink_with_size): Renamed from xreadink.
44108         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
44109         * modules/canonicalize (Depends-on): Replace xreadlink with
44110         xreadlink-with-size.
44111         * lib/canonicalize.c (canonicalize_filename_mode): Update.
44112
44113 2007-02-25  Jim Meyering  <jim@meyering.net>
44114
44115         * build-aux/announce-gen: When complaining about excess arguments,
44116         list them.
44117
44118 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
44119
44120         * README: Document signed integer overflow situation more
44121         accurately.
44122
44123 2007-02-25  Bruno Haible  <bruno@clisp.org>
44124
44125         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
44126         'a' or 'A' conversion.
44127
44128 2007-02-25  Bruno Haible  <bruno@clisp.org>
44129
44130         * modules/filename: Renamed from modules/pathname.
44131         (Files): Replace lib/pathname.h with lib/filename.h. Replace
44132         lib/concatpath.c with lib/concat-filename.c.
44133         (Makefile.am): Update.
44134         (Include): Replace pathname.h with filename.h.
44135         * lib/filename.h: Renamed from lib/pathname.h.
44136         (concatenated_filename): Renamed from concatenated_pathname.
44137         * lib/concat-filename.c: Renamed from lib/concatpath.c.
44138         (concatenated_filename): Renamed from concatenated_pathname.
44139         * lib/findprog.c: Include filename.h instead of pathname.h.
44140         (find_in_path): Update.
44141         * lib/javacomp.c: Include filename.h instead of pathname.h.
44142         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44143         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44144         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44145         is_oldgcj_14_13_usable, is_javac_usable): Update.
44146         * lib/javaexec.c: Include filename.h instead of pathname.h.
44147         (execute_java_class): Update.
44148         * modules/findprog: Update.
44149         * modules/javacomp: Update.
44150         * modules/javaexec: Update.
44151         * MODULES.html.sh (File system functions): Add 'filename', remove
44152         'pathname'.
44153
44154 2007-02-25  Bruno Haible  <bruno@clisp.org>
44155
44156         * modules/printf-frexpl-tests: New file.
44157         * tests/test-printf-frexpl.c: New file.
44158
44159         * modules/printf-frexpl: New file.
44160         * lib/printf-frexpl.h: New file.
44161         * lib/printf-frexpl.c: New file.
44162         * m4/printf-frexpl.m4: New file.
44163
44164 2007-02-25  Bruno Haible  <bruno@clisp.org>
44165
44166         * modules/printf-frexp-tests: New file.
44167         * tests/test-printf-frexp.c: New file.
44168
44169         * modules/printf-frexp: New file.
44170         * lib/printf-frexp.h: New file.
44171         * lib/printf-frexp.c: New file.
44172         * m4/printf-frexp.m4: New file.
44173
44174 2007-02-25  Bruno Haible  <bruno@clisp.org>
44175
44176         Assume automake >= 1.10 for the tests.
44177         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
44178         * modules/arctwo-tests: Likewise.
44179         * modules/argp-tests: Likewise.
44180         * modules/avltree-list-tests: Likewise.
44181         * modules/avltree-oset-tests: Likewise.
44182         * modules/avltreehash-list-tests: Likewise.
44183         * modules/carray-list-tests: Likewise.
44184         * modules/crc-tests: Likewise.
44185         * modules/des-tests: Likewise.
44186         * modules/gc-arcfour-tests: Likewise.
44187         * modules/gc-arctwo-tests: Likewise.
44188         * modules/gc-des-tests: Likewise.
44189         * modules/gc-hmac-md5-tests: Likewise.
44190         * modules/gc-hmac-sha1-tests: Likewise.
44191         * modules/gc-md2-tests: Likewise.
44192         * modules/gc-md4-tests: Likewise.
44193         * modules/gc-md5-tests: Likewise.
44194         * modules/gc-pbkdf2-sha1-tests: Likewise.
44195         * modules/gc-rijndael-tests: Likewise.
44196         * modules/gc-sha1-tests: Likewise.
44197         * modules/gc-tests: Likewise.
44198         * modules/getaddrinfo-tests: Likewise.
44199         * modules/hmac-md5-tests: Likewise.
44200         * modules/hmac-sha1-tests: Likewise.
44201         * modules/linked-list-tests: Likewise.
44202         * modules/linkedhash-list-tests: Likewise.
44203         * modules/lock-tests: Likewise.
44204         * modules/md2-tests: Likewise.
44205         * modules/md4-tests: Likewise.
44206         * modules/md5-tests: Likewise.
44207         * modules/rbtree-list-tests: Likewise.
44208         * modules/rbtree-oset-tests: Likewise.
44209         * modules/rbtreehash-list-tests: Likewise.
44210         * modules/read-file-tests: Likewise.
44211         * modules/rijndael-tests: Likewise.
44212         * modules/stdint-tests: Likewise.
44213         * modules/tls-tests: Likewise.
44214
44215 2007-02-24  Bruno Haible  <bruno@clisp.org>
44216
44217         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
44218         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
44219         function; instead check whether isnan with a double argument links.
44220         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
44221         function; instead check whether isnan with a 'long double' argument
44222         links.
44223         Reported by Eric Blake <ebb9@byu.net>.
44224
44225 2007-02-24  Bruno Haible  <bruno@clisp.org>
44226
44227         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
44228         defined.
44229         * lib/isnanl.c: Remove all code. Just include isnan.c.
44230         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
44231
44232 2007-02-25  Jim Meyering  <jim@meyering.net>
44233
44234         Avoid conflicting types for 'unsetenv' on FreeBSD.
44235         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
44236         conflicting with FreeBSD's (5.0 and 6.1) function declaration
44237         in stdlib.h.
44238
44239 2007-02-24  Bruno Haible  <bruno@clisp.org>
44240
44241         * modules/isnanl-nolibm-tests: New file.
44242         * tests/test-isnanl.c: New file.
44243
44244         * modules/isnanl-nolibm: New file.
44245         * lib/isnanl.h: New file.
44246         * lib/isnanl.c: New file.
44247         * m4/isnanl.m4: New file.
44248
44249 2007-02-24  Bruno Haible  <bruno@clisp.org>
44250
44251         * modules/isnan-nolibm-tests: New file.
44252         * tests/test-isnan.c: New file.
44253
44254         * modules/isnan-nolibm: New file.
44255         * lib/isnan.h: New file.
44256         * lib/isnan.c: New file.
44257         * m4/isnan.m4: New file.
44258
44259 2007-02-24  Bruno Haible  <bruno@clisp.org>
44260
44261         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
44262         assume that an exponent fits in 20 bits.
44263
44264 2007-02-24  Jim Meyering  <jim@meyering.net>
44265
44266         * m4/regex.m4: Update the description of the configure-time option,
44267         --without-included-regex, to state accurately what the defaults are,
44268         and perhaps to give people an idea why using this option is risky.
44269
44270 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44271
44272         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
44273         loops on small arguments.  This attempts to avoid the problem
44274         Bruno Haible reported for AIX 4.3.2 in
44275         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
44276
44277 2007-02-23  Bruno Haible  <bruno@clisp.org>
44278
44279         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
44280         Needed for help2man.
44281
44282 2007-02-23  Karl Berry  <karl@gnu.org>
44283
44284         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
44285         exists, foo.h should be cvs-ignored, not committed.
44286
44287 2007-02-23  Eric Blake  <ebb9@byu.net>
44288
44289         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
44290         * lib/stat-time.h (includes): Likewise.
44291         * lib/utimecmp.c (includes): Likewise.
44292         * lib/utimens.h (includes): Likewise.
44293         * lib/getdate.y (includes): Also include "timespec.h" for use
44294         internal to the module.
44295         * modules/utimens (Depends-on): Revert yesterday's patch.
44296         * modules/nanosleep (Depends-on): Add missing dependency.
44297
44298 2007-02-22  Bruno Haible  <bruno@clisp.org>
44299
44300         * lib/glob.c: Don't include getlogin_r.h.
44301
44302 2007-02-22  Jim Meyering  <jim@meyering.net>
44303
44304         * modules/utimens (Depends-on): Add timespec, required for
44305         utimens.h's inclusion of timespec.h.
44306
44307 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
44308
44309         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
44310         long unreadable paths in GNU/Linux.  Problem reported by Andreas
44311         Schwab in
44312         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
44313         I'll try to think of a better way to fix the Solaris problem.
44314
44315         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
44316         like glibc; on Solaris 10, it fails with errno == EINVAL.
44317         POSIX says the behavior is unspecified if the first argument is NULL,
44318         so play it safe and never pass NULL to the system getcwd.
44319
44320 2007-02-21  Jim Meyering  <jim@meyering.net>
44321
44322         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
44323         of gettimeofday.  It would conflict with the one now always
44324         provided via sys_time_.h.  Reported by Matthew Woehlke, as
44325         an IRIX 6.5 build failure.
44326
44327 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
44328
44329         Minor fixups to port to Solaris 10 with Sun C 5.8.
44330         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
44331         * modules/getcwd (Depends-on): Add dirfd.
44332         * lib/putenv.c (putenv): #undef it.
44333         (rpl_putenv): New decl.
44334         (malloc, free): Include <stdlib.h> rather than prototyping separately.
44335
44336 2007-02-20  Bruno Haible  <bruno@clisp.org>
44337
44338         * modules/stdio-tests: New file.
44339         * tests/test-stdio.c: New file.
44340
44341         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
44342         (Depends-on): Add stdio.
44343         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44344         (Include): Use <stdio.h> instead of vsnprintf.h.
44345         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44346         HAVE_DECL_VSNPRINTF.
44347         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
44348
44349         * modules/snprintf (Files): Remove lib/snprintf.h.
44350         (Depends-on): Add stdio.
44351         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44352         (Include): Use <stdio.h> instead of snprintf.h.
44353         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44354         HAVE_DECL_SNPRINTF.
44355         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
44356         * lib/getaddrinfo.c: Likewise.
44357
44358         * modules/stdio: New file.
44359         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
44360         * lib/snprintf.h: Remove file.
44361         * lib/vsnprintf.h: Remove file.
44362         * lib/.cppi-disable: Remove snprintf.h.
44363         * m4/stdio_h.m4: New file.
44364         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
44365
44366 2007-02-20  Jim Meyering  <jim@meyering.net>
44367
44368         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
44369         used by e.g., mingw.  From Bruno Haible.
44370
44371 2007-02-19  Bruno Haible  <bruno@clisp.org>
44372
44373         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
44374         warnings.
44375         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44376
44377 2007-02-19  Bruno Haible  <bruno@clisp.org>
44378
44379         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
44380         from mingw users.
44381
44382 2007-02-19  Bruno Haible  <bruno@clisp.org>
44383
44384         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
44385         warnings.
44386         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
44387
44388 2007-02-19  Jim Meyering  <jim@meyering.net>
44389
44390         Don't use FD after a successful "fdopendir (fd)".
44391         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
44392         Reset it by calling dirfd on the just-obtained DIR*.
44393
44394         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
44395         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
44396
44397 2007-02-18  Bruno Haible  <bruno@clisp.org>
44398
44399         * lib/readlink.c: Include <unistd.h>.
44400         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
44401         HAVE_READLINK.
44402         * modules/readlink (Depends-on): Add unistd.
44403         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44404         (Include): Add <unistd.h>.
44405
44406         * lib/getlogin_r.h: Remove file.
44407         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
44408         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
44409         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
44410         HAVE_DECL_GETLOGIN_R.
44411         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
44412         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44413         (Include): Use <unistd.h> instead of getlogin_r.h.
44414
44415         * lib/getcwd.h: Remove file.
44416         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
44417         * lib/xgetcwd.c: Likewise.
44418         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
44419         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
44420         * modules/getcwd (Files): Remove lib/getcwd.h.
44421         (Depends-on): Add unistd.
44422         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44423         (Include): Use <unistd.h> instad of getcwd.h.
44424
44425         * lib/ftruncate.c: Include <unistd.h> first.
44426         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
44427         Set HAVE_FTRUNCATE.
44428         * modules/ftruncate (Depends-on): Add unistd.
44429         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44430
44431         * lib/fchdir.c: Include <unistd.h> first.
44432         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
44433         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
44434         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
44435         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44436         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
44437
44438         * lib/dup2.c: Include <unistd.h> first.
44439         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
44440         HAVE_DUP2.
44441         * modules/dup2 (Depends-on): Add unistd.
44442         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44443
44444         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
44445         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
44446         REPLACE_CHOWN. Don't define chown as a macro here.
44447         * modules/chown (Depends-on): Add unistd.
44448         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44449
44450         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
44451         Add definition for GL_LINK_WARNING.
44452         (chown, dup2): New declarations.
44453         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
44454         link warning.
44455         (ftruncate): New declaration.
44456         (getcwd): New declaration, taken from old getcwd.h.
44457         (getlogin_r): New declaration, taken from old getlogin_r.h.
44458         (readlink): New declaration.
44459         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
44460         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
44461         (gl_PREREQ_UNISTD): Remove macro.
44462         (gl_UNISTD_MODULE_INDICATOR): New macro.
44463         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
44464         many new variables. Don't set UNISTD_H.
44465         * modules/unistd (Description): Change.
44466         (Depends-on): Add link-warning.
44467         (configure.ac): Update.
44468         (Makefile.am): Create unistd.h always. Substitute many new variables
44469         into it.
44470
44471 2007-02-18  Bruno Haible  <bruno@clisp.org>
44472
44473         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
44474         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
44475         HAVE_GETSUBOPT.
44476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
44477         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
44478         * lib/getsubopt.h: Remove file.
44479         * modules/getsubopt (Files): Remove lib/getsubopt.h.
44480         (Depends-on): Add stdlib.
44481         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44482         (Includes): Use <stdlib.h> instead of getsubopt.h.
44483         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
44484         Set HAVE_GETSUBOPT.
44485         * lib/getsubopt.c: Don't include getsubopt.h.
44486
44487 2007-02-18  Bruno Haible  <bruno@clisp.org>
44488
44489         * modules/fchdir (Depends-on): Add dup2.
44490
44491 2007-02-18  Bruno Haible  <bruno@clisp.org>
44492
44493         * lib/stdlib_.h: Handle glibc's special invocation convention
44494         specially.
44495
44496 2007-02-18  Bruno Haible  <bruno@clisp.org>
44497
44498         * modules/stdlib-tests: New file.
44499         * tests/test-stdlib.c: New file.
44500
44501         * modules/mkstemp (Files): Remove lib/mkstemp.h.
44502         (Depends-on): Add stdlib.
44503         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44504         (Includes): Use <stdlib.h> instead of mkstemp.h.
44505         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44506         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
44507         * lib/mkstemp.c: Don't include mkstemp.h.
44508         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
44509         * lib/stdlib--.h: Don't include mkstemp.h.
44510
44511         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
44512         (Depends-on): Add stdlib.
44513         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44514         (Includes): Use <stdlib.h> instead of mkdtemp.h.
44515         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44516         HAVE_MKDTEMP.
44517         * lib/mkdtemp.c: Don't include mkdtemp.h.
44518         * lib/clean-temp.c: Don't include mkdtemp.h.
44519
44520         * modules/exit (Files): Remove lib/exit.h.
44521         (Depends-on): Add stdlib.
44522         (Makefile.am): Remove lib_SOURCES.
44523         (Include): Use <stdlib.h> instead of exit.h.
44524         * lib/argmatch.c: Don't include exit.h.
44525         * lib/execute.c: Likewise.
44526         * lib/pagealign_alloc.c: Likewise.
44527         * lib/pipe.c: Likewise.
44528         * lib/wait-process.c: Likewise.
44529         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
44530         * lib/exitfail.c: Likewise.
44531         * lib/savewd.c: Likewise.
44532         * lib/xsetenv.c: Likewise.
44533
44534         * modules/stdlib: New file.
44535         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
44536         and extra comments about mkstemp().
44537         * lib/exit.h: Remove file.
44538         * lib/mkdtemp.h: Remove file.
44539         * lib/mkstemp.h: Remove file.
44540         * m4/stdlib_h.m4: New file.
44541         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
44542
44543 2007-02-18  Bruno Haible  <bruno@clisp.org>
44544
44545         * modules/math-tests: New file.
44546         * tests/test-math.c: New file.
44547
44548         * modules/math: New file.
44549         * modules/mathl (Files): Remove lib/mathl.h.
44550         (Depends-on): Add math.
44551         (Makefile.am): Don't mention mathl.h.
44552         (Include): Use <math.h> instead of mathl.h.
44553         * lib/math_.h: New file.
44554         * lib/mathl.h: Remove file.
44555         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
44556         mathl.h.
44557         * lib/asinl.c: Likewise.
44558         * lib/atanl.c: Likewise.
44559         * lib/ceill.c: Likewise.
44560         * lib/cosl.c: Likewise.
44561         * lib/expl.c: Likewise.
44562         * lib/floorl.c: Likewise.
44563         * lib/frexpl.c: Likewise.
44564         * lib/ldexpl.c: Likewise.
44565         * lib/logl.c: Likewise.
44566         * lib/sincosl.c: Likewise.
44567         * lib/sinl.c: Likewise.
44568         * lib/sqrtl.c: Likewise.
44569         * lib/tanl.c: Likewise.
44570         * lib/trigl.c: Likewise.
44571         * m4/math_h.m4: New file.
44572         * MODULES.html.sh (Mathematics): Add math.
44573
44574 2007-02-17  Bruno Haible  <bruno@clisp.org>
44575
44576         * modules/wctype-tests: New file.
44577         * tests/test-wctype.c: New file.
44578
44579         * modules/wchar-tests: New file.
44580         * tests/test-wchar.c: New file.
44581
44582         * modules/unistd-tests: New file.
44583         * tests/test-unistd.c: New file.
44584
44585         * modules/time-tests: New file.
44586         * tests/test-time.c: New file.
44587
44588         * modules/sysexits-tests: New file.
44589         * tests/test-sysexits.c: New file.
44590
44591         * modules/sys_time-tests: New file.
44592         * tests/test-sys_time.c: New file.
44593
44594         * modules/sys_stat-tests: New file.
44595         * tests/test-sys_stat.c: New file.
44596
44597         * modules/sys_socket-tests: New file.
44598         * tests/test-sys_socket.c: New file.
44599
44600         * modules/sys_select-tests: New file.
44601         * tests/test-sys_select.c: New file.
44602
44603         * modules/string-tests: New file.
44604         * tests/test-string.c: New file.
44605
44606         * modules/stdbool-tests: New file.
44607         * tests/test-stdbool.c: New file.
44608
44609         * modules/netinet_in-tests: New file.
44610         * tests/test-netinet_in.c: New file.
44611
44612         * modules/inttypes-tests: New file.
44613         * tests/test-inttypes.c: New file.
44614
44615         * modules/fcntl-tests: New file.
44616         * tests/test-fcntl.c: New file.
44617
44618         * modules/byteswap-tests: New file.
44619         * tests/test-byteswap.c: New file.
44620
44621         * modules/arpa_inet-tests: New file.
44622         * tests/test-arpa_inet.c: New file.
44623
44624 2007-02-17  Bruno Haible  <bruno@clisp.org>
44625
44626         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
44627         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
44628         if the corresponding module is not enabled. Emit link warnings if
44629         the function is used nevertheless.
44630         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
44631         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
44632         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
44633         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
44634         * modules/inttypes (Depends-on): Add link-warning.
44635         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44636         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
44637         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
44638         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
44639         * modules/imaxdiv (configure.ac): Likewise.
44640         * modules/strtoimax (configure.ac): Likewise.
44641         * modules/strtoumax (configure.ac): Likewise.
44642
44643 2007-02-17  Bruno Haible  <bruno@clisp.org>
44644
44645         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
44646         gl_STRING_MODULE_INDICATOR_DEFAULTS.
44647         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
44648         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
44649
44650 2007-02-17  Bruno Haible  <bruno@clisp.org>
44651
44652         * modules/link-warning: New file.
44653         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
44654         * lib/string_.h (GL_LINK_WARNING): Remove definition.
44655         * modules/string (Depends-on): Add link-warning.
44656         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44657         string.h.
44658         * MODULES.html.sh (Support for building libraries and executables): Add
44659         link-warning.
44660
44661 2007-02-17  Bruno Haible  <bruno@clisp.org>
44662
44663         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
44664         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
44665         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
44666         long lines.
44667
44668 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
44669             Bruno Haible  <bruno@clisp.org>
44670
44671         * modules/tmpfile: New file.
44672         * lib/tmpfile.c: New file.
44673         * m4/tmpfile.m4: New file.
44674         * MODULES.html.sh (func_all_modules): New section "Input/output".
44675
44676 2007-02-15  Bruno Haible  <bruno@clisp.org>
44677
44678         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
44679         (supports_delete_on_close): New function.
44680         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
44681
44682 2007-02-14  Bruno Haible  <bruno@clisp.org>
44683
44684         * modules/mbspcasecmp-tests: New file.
44685         * tests/test-mbspcasecmp.sh: New file.
44686         * tests/test-mbspcasecmp.c: New file.
44687
44688         New module mbspcasecmp.
44689         * modules/mbspcasecmp: New file.
44690         * lib/mbspcasecmp.c: New file.
44691         * lib/string_.h (strncasecmp): Change warning message.
44692         (mbspcasecmp): New declaration.
44693         * m4/mbspcasecmp.m4: New file.
44694         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44695         GNULIB_MBSPCASECMP.
44696         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
44697         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
44698
44699 2007-02-14  Bruno Haible  <bruno@clisp.org>
44700
44701         * modules/mbsncasecmp-tests: New file.
44702         * tests/test-mbsncasecmp.sh: New file.
44703         * tests/test-mbsncasecmp.c: New file.
44704
44705         New module mbsncasecmp.
44706         * modules/mbsncasecmp: New file.
44707         * lib/mbsncasecmp.c: New file.
44708         * lib/string_.h (mbsncasecmp): New declaration.
44709         * m4/mbsncasecmp.m4: New file.
44710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44711         GNULIB_MBSNCASECMP.
44712         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
44713         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
44714
44715 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
44716
44717         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
44718         Verify that it doesn't overlap with our flags.
44719         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
44720         do not have the desired effect in multibyte locales; instead, use
44721         mbscasecmp.
44722         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
44723         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
44724         we don't require GNU fnmatch ourselves (if our users require it, they
44725         should do so explicitly).
44726
44727         Fix regex code so it doesn't rely on strcasecmp.
44728         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
44729         Otherwise, include gnulib's langinfo.h.
44730         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
44731         undesirable behavior in non-C locales.  Instead, rely on localecharset.
44732         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
44733         * modules/regex (FILES): Remove m4/codeset.m4.
44734         (Depends-on): Add localcharset.  Remove strcase.
44735
44736 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44737
44738         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
44739         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
44740
44741 2007-02-13  Bruno Haible  <bruno@clisp.org>
44742
44743         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
44744         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44745
44746 2007-02-12  Bruno Haible  <bruno@clisp.org>
44747
44748         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
44749         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
44750         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
44751         time warning rather than a link error.
44752
44753 2007-02-12  Bruno Haible  <bruno@clisp.org>
44754
44755         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
44756         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44757         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44758
44759 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44760
44761         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
44762         args, not 2.
44763
44764 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44765
44766         New module 'time', so that apps can include <time.h> as per
44767         POSIX and GNU instead of separate include files like time_r.h
44768         and timegm.h.  This implementation tries out a simpler approach
44769         for replacing decls in standard include files (as compared to
44770         the string module), somewhat as an experiment.
44771
44772         * config/srclist.txt: Comment out mktime.c for now.
44773         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
44774         since it doesn't apply any more.  Use generic wording instead.
44775         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
44776         'time'.
44777         * lib/time_.h, m4/time_h.m4, modules/time: New files.
44778         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
44779         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
44780         Don't include <sys/types.h>; no longer needed since we assume C89.
44781         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
44782         * lib/strftime.c: Likewise.
44783         * lib/time_r.c: Likewise.
44784         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
44785         * lib/nanosleep.c: Include <time.h> first, to check interface.
44786         * lib/strptime.c: Likewise.
44787         * lib/time_r.c: Likewise.
44788         * lib/timegm.c: Likewise.
44789         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
44790         needed.
44791         * lib/timegm.c: Don't include timegm.h; no longer needed.
44792         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
44793         time.h now handles any problems in that area.
44794         (struct timespec, nanosleep): Remove; time.h now arranges for these.
44795         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
44796         that time.h defines struct timespec.
44797         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
44798         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
44799         handles that.
44800         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
44801         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
44802         needed.  Set REPLACE_LOCALTIME.
44803         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
44804         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
44805         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
44806         nanosleep; time_h.m4 now does that.  Don't require
44807         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
44808         module handles this now.
44809         * modules/getdate (Depends-on): Remove timespec.  Add time.
44810         * modules/nanosleep (Depends-on): Likewise.
44811         * modules/stat-time (Depends-on): Likewise.
44812         * modules/nanosleep (Include): Include time.h, not timespec.h.
44813         * modules/strptime (Files): Remove lib/strptime.h.
44814         (Depends-on): Add extensions, time.
44815         (Include): Include time.h, not strptime.h.
44816         * modules/time_r (Files): Remove lib/time_r.h.
44817         (Depends-on): Add time.
44818         (Include): Include time.h, not time_r.h.
44819         * modules/timegm: Likewise.
44820         * modules/timespec (Description): Now does timespec-related decls
44821         of our own, instead of struct timespec itself.
44822         (Depends-on): Add time; remove extensions.
44823         (Maintainer): Add self.
44824         * modules/utimecmp (Depends-on): Add time; remove timespec.
44825         * modules/utimens (Depends-on): Likewise.
44826         * modules/xnanosleep (Depends-on): Likewise.
44827
44828 2007-02-11  Bruno Haible  <bruno@clisp.org>
44829
44830         * lib/c-strstr.c: Include allocsa.h.
44831         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44832         * lib/c-strcasestr.c: Include allocsa.h.
44833         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44834         * lib/strcasestr.c: Include allocsa.h.
44835         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44836         * lib/mbsstr.c: Include allocsa.h.
44837         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
44838         allocsa/freesa instead of malloc/free.
44839         * lib/mbscasestr.c: Include allocsa.h.
44840         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
44841         allocsa/freesa instead of malloc/free.
44842         * modules/c-strstr (Depends-on): Add allocsa.
44843         * modules/c-strcasestr (Depends-on): Likewise.
44844         * modules/strcasestr (Depends-on): Likewise.
44845         * modules/mbsstr (Depends-on): Likewise.
44846         * modules/mbscasestr (Depends-on): Likewise.
44847
44848 2007-02-11  Bruno Haible  <bruno@clisp.org>
44849
44850         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
44851
44852         * modules/mbsspn-tests: New file.
44853         * tests/test-mbsspn.sh: New file.
44854         * tests/test-mbsspn.c: New file.
44855
44856 2007-02-11  Bruno Haible  <bruno@clisp.org>
44857
44858         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
44859
44860         * modules/mbspbrk-tests: New file.
44861         * tests/test-mbspbrk.sh: New file.
44862         * tests/test-mbspbrk.c: New file.
44863
44864 2007-02-11  Bruno Haible  <bruno@clisp.org>
44865
44866         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
44867         unneeded cast.
44868
44869         * modules/mbscspn-tests: New file.
44870         * tests/test-mbscspn.sh: New file.
44871         * tests/test-mbscspn.c: New file.
44872
44873 2007-02-11  Bruno Haible  <bruno@clisp.org>
44874
44875         * modules/mbscasecmp-tests: New file.
44876         * tests/test-mbscasecmp.sh: New file.
44877         * tests/test-mbscasecmp.c: New file.
44878
44879 2007-02-11  Bruno Haible  <bruno@clisp.org>
44880
44881         Ensure O(n) worst-case complexity of mbscasestr.
44882         * lib/mbscasestr.c: Include stdbool.h.
44883         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
44884         functions.
44885         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
44886         the bookkeeping indicates that it's worth it.
44887         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
44888
44889         * modules/mbscasestr-tests: New file.
44890         * tests/test-mbscasestr1.c: New file.
44891         * tests/test-mbscasestr2.sh: New file.
44892         * tests/test-mbscasestr2.c: New file.
44893         * tests/test-mbscasestr3.sh: New file.
44894         * tests/test-mbscasestr3.c: New file.
44895         * tests/test-mbscasestr4.sh: New file.
44896         * tests/test-mbscasestr4.c: New file.
44897         * m4/locale-tr.m4: New file.
44898
44899 2007-02-11  Bruno Haible  <bruno@clisp.org>
44900
44901         Ensure O(n) worst-case complexity of mbsstr.
44902         * lib/mbsstr.c: Include stdbool.h.
44903         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
44904         functions.
44905         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
44906         bookkeeping indicates that it's worth it.
44907         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
44908
44909         * modules/mbsstr-tests: New file.
44910         * tests/test-mbsstr1.c: New file.
44911         * tests/test-mbsstr2.sh: New file.
44912         * tests/test-mbsstr2.c: New file.
44913         * tests/test-mbsstr3.sh: New file.
44914         * tests/test-mbsstr3.c: New file.
44915         * m4/locale-fr.m4: New file.
44916
44917 2007-02-11  Bruno Haible  <bruno@clisp.org>
44918
44919         * lib/mbsrchr.c (mbsrchr): Fix bug.
44920
44921         * modules/mbsrchr-tests: New file.
44922         * tests/test-mbsrchr.sh: New file.
44923         * tests/test-mbsrchr.c: New file.
44924
44925 2007-02-11  Bruno Haible  <bruno@clisp.org>
44926
44927         * lib/mbschr.c (mbschr): Fix bug.
44928
44929         * modules/mbschr-tests: New file.
44930         * tests/test-mbschr.sh: New file.
44931         * tests/test-mbschr.c: New file.
44932         * m4/locale-zh.m4: New file.
44933
44934 2007-02-11  Bruno Haible  <bruno@clisp.org>
44935
44936         Support for copying multibyte string iterators.
44937         * lib/mbiter.h: Include <string.h>.
44938         (mbiter_multi_copy): New function.
44939         (mbi_copy): New macro.
44940         * lib/mbuiter.h: Include <string.h>.
44941         (mbuiter_multi_copy): New function.
44942         (mbui_copy): New macro.
44943
44944 2007-02-11  Bruno Haible  <bruno@clisp.org>
44945
44946         New module mbslen.
44947         * modules/mbslen: New file.
44948         * lib/mbslen.c: New file.
44949         * lib/string_.h (mbslen): New declaration.
44950         * m4/mbslen.m4: New file.
44951         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44952         GNULIB_MBSLEN.
44953         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
44954         * MODULES.html.sh (Internationalization functions): Add mbslen.
44955
44956 2007-02-11  Bruno Haible  <bruno@clisp.org>
44957
44958         Ensure O(n) worst-case complexity of strcasestr substitute.
44959         * lib/strcasestr.c: Include stdbool.h.
44960         (knuth_morris_pratt): New function.
44961         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
44962         bookkeeping indicates that it's worth it.
44963         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
44964
44965         * modules/strcasestr-tests: New file.
44966         * tests/test-strcasestr.c: New file.
44967
44968 2007-02-11  Bruno Haible  <bruno@clisp.org>
44969
44970         Ensure O(n) worst-case complexity of c_strcasestr.
44971         * lib/c-strcasestr.c: Include stdbool.h, string.h.
44972         (knuth_morris_pratt): New function.
44973         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
44974         the bookkeeping indicates that it's worth it.
44975         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
44976
44977         * modules/c-strcasestr-tests: New file.
44978         * tests/test-c-strcasestr.c: New file.
44979
44980 2007-02-11  Bruno Haible  <bruno@clisp.org>
44981
44982         Ensure O(n) worst-case complexity of c_strstr.
44983         * lib/c-strstr.c: Include stdbool.h, string.h.
44984         (knuth_morris_pratt): New function.
44985         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
44986         bookkeeping indicates that it's worth it.
44987         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
44988
44989         * lib/c-strstr.c: Complete rewrite for maintainability.
44990
44991         * modules/c-strstr-tests: New file.
44992         * tests/test-c-strstr.c: New file.
44993
44994 2007-02-11  Bruno Haible  <bruno@clisp.org>
44995
44996         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
44997         5.2.1 and earlier, whereby \055 was treated just like the range
44998         delimiter '-'.
44999         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45000
45001 2007-02-08  Bruno Haible  <bruno@clisp.org>
45002
45003         * modules/regex (Depends-on): Add stdbool.
45004         Reported by Dalibor Topic <robilad@kaffe.org>.
45005
45006 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45007
45008         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
45009         Prefer returning from main to exiting from it.
45010         Remove unnecessary parens after sizeof.
45011
45012 2007-02-05  Bruno Haible  <bruno@clisp.org>
45013
45014         New module mbssep.
45015         * modules/mbssep: New file.
45016         * lib/mbssep.c: New file.
45017         * lib/string_.h (strsep): Add a conditional link warning.
45018         (mbssep): New declaration.
45019         * m4/mbssep.m4: New file.
45020         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45021         GNULIB_MBSSEP.
45022         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
45023         * MODULES.html.sh (Internationalization functions): Add mbssep.
45024
45025 2007-02-05  Bruno Haible  <bruno@clisp.org>
45026
45027         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
45028         Optimize search in case of 1 delimiter.
45029
45030 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45031
45032         * lib/acl.h: Include sys/types.h before sys/acl.h.
45033
45034 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45035
45036         Merge upstream fix for glibc bugzilla #3957:
45037
45038         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
45039
45040         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
45041         bit for RE_HAT_LISTS_NOT_NEWLINE.
45042         (build_charclass_op): Remove bogus comment.
45043
45044 2007-02-05  Simon Josefsson  <simon@josefsson.org>
45045
45046         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
45047
45048 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45049
45050         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
45051         * lib/memmem.c [!defined _LIBC]: Include config.h.
45052
45053 2007-02-04  Bruno Haible  <bruno@clisp.org>
45054
45055         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
45056         warning message.
45057
45058 2007-02-04  Bruno Haible  <bruno@clisp.org>
45059
45060         New module mbstok_r.
45061         * modules/mbstok_r: New file.
45062         * lib/mbstok_r.c: New file.
45063         * lib/string_.h (strtok_r): Change argument names to match the
45064         comments. Add a conditional link warning.
45065         (mbstok_r): New declaration.
45066         * m4/mbstok_r.m4: New file.
45067         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45068         GNULIB_MBSTOK_R.
45069         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
45070         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
45071
45072 2007-02-04  Bruno Haible  <bruno@clisp.org>
45073
45074         New module mbsspn.
45075         * modules/mbsspn: New file.
45076         * lib/mbsspn.c: New file.
45077         * lib/string_.h (strspn): Add a conditional link warning.
45078         (mbsspn): New declaration.
45079         * m4/mbsspn.m4: New file.
45080         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45081         GNULIB_MBSSPN.
45082         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
45083         * MODULES.html.sh (Internationalization functions): Add mbsspn.
45084
45085 2007-02-04  Bruno Haible  <bruno@clisp.org>
45086
45087         New module mbspbrk.
45088         * modules/mbspbrk: New file.
45089         * lib/mbspbrk.c: New file.
45090         * lib/string_.h (strpbrk): Add a conditional link warning.
45091         (mbspbrk): New declaration.
45092         * m4/mbspbrk.m4: New file.
45093         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45094         GNULIB_MBSPBRK.
45095         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
45096         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
45097
45098 2007-02-04  Bruno Haible  <bruno@clisp.org>
45099
45100         New module mbscspn.
45101         * modules/mbscspn: New file.
45102         * lib/mbscspn.c: New file.
45103         * lib/string_.h (strcspn): Add a conditional link warning.
45104         (mbscspn): New declaration.
45105         * m4/mbscspn.m4: New file.
45106         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45107         GNULIB_MBSCSPN.
45108         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
45109         * MODULES.html.sh (Internationalization functions): Add mbscspn.
45110
45111 2007-02-04  Bruno Haible  <bruno@clisp.org>
45112
45113         New module mbscasestr, reduced goal of strcasestr.
45114         * modules/mbscasestr: New file.
45115         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
45116         (mbscasestr): Renamed from strcasestr.
45117         * lib/strcasestr.c: Don't include mbuiter.h.
45118         (strcasestr): Remove support for multibyte locales.
45119         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
45120         Change the conditional link warning.
45121         (mbscasestr): New declaration.
45122         * m4/mbscasestr.m4: New file.
45123         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
45124         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
45125         REPLACE_STRCASESTR.
45126         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
45127         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45128         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45129         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
45130         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
45131         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45132         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
45133         (Depends-on): Remove mbuiter.
45134         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
45135
45136 2007-02-04  Bruno Haible  <bruno@clisp.org>
45137
45138         Simplify handling of strncasecmp.
45139         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
45140         the conditional link warning.
45141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45142         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
45143         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
45144         * modules/strcase (configure.ac): Don't invoke
45145         gl_STRING_MODULE_INDICATOR.
45146         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
45147
45148 2007-02-04  Bruno Haible  <bruno@clisp.org>
45149
45150         New module mbscasecmp, reduced goal of strcasecmp.
45151         * modules/mbscasecmp: New file.
45152         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
45153         (mbscasecmp): Renamed from strcasecmp.
45154         * lib/strcasecmp.c: Don't include mbuiter.h.
45155         (strcasecmp): Remove support for multibyte locales.
45156         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
45157         Change the conditional link warning.
45158         (mbscasecmp): New declaration.
45159         * m4/mbscasecmp.m4: New file.
45160         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
45161         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
45162         REPLACE_STRCASECMP.
45163         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
45164         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45165         GNULIB_MBSCASECMP.
45166         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
45167         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
45168         * modules/strcase (Files): Remove m4/mbrtowc.m4.
45169         (Depends-on): Remove mbuiter.
45170         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
45171
45172 2007-02-04  Bruno Haible  <bruno@clisp.org>
45173
45174         New module mbsstr. Remove module strstr.
45175         * modules/mbsstr: New file.
45176         * modules/strstr: Remove file.
45177         * lib/mbsstr.c: Renamed from lib/strstr.c.
45178         (mbsstr): Renamed from strstr.
45179         * lib/string_.h (strstr): Remove declaration. Change the conditional
45180         link warning.
45181         (mbsstr): New declaration.
45182         * m4/mbsstr.m4: New file.
45183         * m4/strstr.m4: Remove file.
45184         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
45185         REPLACE_STRSTR.
45186         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
45187         Don't initialize GNULIB_STRSTR.
45188         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
45189         substitute GNULIB_STRSTR and REPLACE_STRSTR.
45190         * MODULES.html.sh (Internationalization functions): Add mbsstr.
45191         (Support for systems lacking ANSI C 89): Remove strstr.
45192
45193 2007-02-04  Bruno Haible  <bruno@clisp.org>
45194
45195         New module mbsrchr.
45196         * modules/mbsrchr: New file.
45197         * lib/mbsrchr.c: New file.
45198         * lib/string_.h (strrchr): Add a conditional link warning.
45199         (mbsrchr): New declaration.
45200         * m4/mbsrchr.m4: New file.
45201         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45202         GNULIB_MBSRCHR.
45203         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
45204         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
45205
45206 2007-02-04  Bruno Haible  <bruno@clisp.org>
45207
45208         New module mbschr.
45209         * modules/mbschr: New file.
45210         * lib/mbschr.c: New file.
45211         * lib/string_.h (strchr): Add a conditional link warning.
45212         (mbschr): New declaration.
45213         * m4/mbschr.m4: New file.
45214         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45215         GNULIB_MBSCHR.
45216         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
45217         * MODULES.html.sh (Internationalization functions): Add mbschr.
45218
45219 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45220
45221         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
45222
45223         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
45224
45225 2007-02-04  Bruno Haible  <bruno@clisp.org>
45226
45227         New module description section 'configure.ac-early'.
45228         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
45229         (func_get_autoconf_early_snippet): New function.
45230         (func_import, func_create_testdir): Use it. Remove special cases for
45231         modules 'extensions' and 'lock'.
45232         * modules/extensions (configure.ac-early): Require
45233         gl_USE_SYSTEM_EXTENSIONS.
45234         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
45235
45236 2007-02-04  Bruno Haible  <bruno@clisp.org>
45237
45238         Make use of gcj-4.3's -fsource and -ftarget option.
45239         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
45240         and if so try the options -fsource and -ftarget.
45241         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
45242         source_version, ftarget_option, target_version arguments.
45243         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
45244         (is_envjavac_oldgcj_14_14_usable): Renamed from
45245         is_envjavac_gcj_14_14_usable.
45246         (is_envjavac_oldgcj_14_13_usable): Renamed from
45247         is_envjavac_gcj_14_13_usable.
45248         (is_gcj_present): Update.
45249         (is_gcj_43, is_gcj43_usable): New functions.
45250         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
45251         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
45252         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
45253         try the options -fsource and -ftarget.
45254
45255 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
45256
45257         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
45258         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
45259         larger value.
45260
45261 2007-02-03  Jim Meyering  <jim@meyering.net>
45262
45263         Give tools a better chance to allocate space for very large buffers.
45264         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
45265
45266         Make pwd and readlink work also when run with an unreadable parent dir
45267         on systems with openat support.
45268         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
45269         provided getcwd function, even when we have openat support.
45270         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
45271
45272 2007-02-02  Bruno Haible  <bruno@clisp.org>
45273
45274         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45275         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
45276         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
45277         portability problems if one of these functions is only used on specific
45278         platforms.
45279         Reported by Paul Eggert.
45280
45281 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
45282
45283         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
45284         is causing more trouble than it's curing.
45285         * lib/regex_internal.h (__mempcpy): Remove.
45286         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
45287         (and make the code a tad smaller to boot).
45288         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
45289
45290 2007-02-02  Jim Meyering  <jim@meyering.net>
45291
45292         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
45293         section, not in the Makefile.am: one.
45294
45295 2007-02-02  Eric Blake  <ebb9@byu.net>
45296
45297         * lib/strchrnul.c: Always include config.h first.
45298
45299         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
45300         gnulib strstr is not necessary here.
45301
45302 2007-02-02  Simon Josefsson  <simon@josefsson.org>
45303
45304         * m4/socklen.m4: Fix typo.
45305
45306 2007-02-02  Eric Blake  <ebb9@byu.net>
45307
45308         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
45309         * modules/netinet_in (Makefile.am): Likewise.
45310
45311 2007-02-01  Bruno Haible  <bruno@clisp.org>
45312
45313         * lib/string_.h (GL_LINK_WARNING): New macro.
45314         (strcasecmp, strstr, strcasestr): If provided by the system,
45315         conditionally define as a macro that leads to a warning instead of to
45316         an error.
45317         (strncasecmp): Conditionally define as a macro that leads to a warning.
45318
45319 2007-02-01  Karl Berry  <karl@gnu.org>
45320
45321         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
45322
45323 2007-02-01  Bruno Haible  <bruno@clisp.org>
45324
45325         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
45326         renamings.
45327
45328 2007-02-01  Eric Blake  <ebb9@byu.net>
45329
45330         * modules/regex (Depends-on): Revert dependence on mempcpy.
45331         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
45332         module's definition of mempcpy.
45333         Reported by Paul Eggert.
45334
45335 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
45336
45337         * lib/string_.h: If the gnulib module XYZ is not present, undefine
45338         the symbol XYZ before redefining it.  This fixes a problem with
45339         programs that don't use XYZ, when compiled on systems that define
45340         XYZ to something else.
45341
45342 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
45343
45344         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
45345         occurs when "mkdir -m foo" creates a setgid directory that is (1)
45346         writeable to group or other and (2) is intended to have a special
45347         mode bit that is set or cleared.  In such a case, the directory
45348         should be neither group- nor other-writeable until the special
45349         mode bits are right.
45350
45351 2007-01-31  Eric Blake  <ebb9@byu.net>
45352
45353         * modules/mountlist (Depends-on): Add strstr.
45354
45355         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
45356         bug.
45357         * modules/string (Makefile.am): Remove redundant replacement.
45358         * modules/regex (Depends-on): Add mempcpy.
45359
45360 2007-01-31  Bruno Haible  <bruno@clisp.org>
45361
45362         New module description field 'Link'.
45363         * gnulib-tool (func_usage): Document --extract-link-directive.
45364         (sed_extract_prog): Recognize 'Link' directive.
45365         (func_get_link_directive): New function.
45366         (func_import): Show summary of link directives.
45367         Handle --extract-link-directive option.
45368         * modules/acl (Link): New section.
45369         * modules/clock-time (Link): New section.
45370         * modules/euidaccess (Link): New section.
45371         * modules/gettext (Link): New section.
45372         * modules/iconv (Link): New section.
45373         * modules/lock (Link): New section.
45374         * modules/nanosleep (Link): New section.
45375         * modules/readline (Link): New section.
45376
45377 2007-01-27  Bruno Haible  <bruno@clisp.org>
45378
45379         Enforce the use of gnulib modules for unportable <string.h> functions.
45380         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
45381         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
45382         (gl_HEADER_STRING_H_BODY): Require it.
45383         * lib/string_.h: If the gnulib module XYZ is not present, redefine
45384         the symbol XYZ to one that gives a link error.
45385         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
45386         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
45387         * modules/mempcpy (configure.ac): Likewise.
45388         * modules/memrchr (configure.ac): Likewise.
45389         * modules/stpcpy (configure.ac): Likewise.
45390         * modules/stpncpy (configure.ac): Likewise.
45391         * modules/strcase (configure.ac): Likewise.
45392         * modules/strcasestr (configure.ac): Likewise.
45393         * modules/strchrnul (configure.ac): Likewise.
45394         * modules/strdup (configure.ac): Likewise.
45395         * modules/strndup (configure.ac): Likewise.
45396         * modules/strnlen (configure.ac): Likewise.
45397         * modules/strpbrk (configure.ac): Likewise.
45398         * modules/strsep (configure.ac): Likewise.
45399         * modules/strstr (configure.ac): Likewise.
45400         * modules/strtok_r (configure.ac): Likewise.
45401
45402 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
45403
45404         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
45405
45406 2007-01-30  Jim Meyering  <jim@meyering.net>
45407
45408         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
45409
45410 2007-01-29  Bruno Haible  <bruno@clisp.org>
45411
45412         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
45413         * lib/execute.c: Likewise.
45414         * lib/pipe.c: Likewise.
45415         * lib/printf-args.h: Likewise.
45416         * lib/printf-args.c: Likewise.
45417         * lib/printf-parse.c: Likewise.
45418         * lib/vasnprintf.c: Likewise.
45419
45420 2007-01-29  Eric Blake  <ebb9@byu.net>
45421
45422         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
45423         declaration.
45424
45425 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
45426
45427         * lib/strptime.h (strptime): Use 'restrict' for args where
45428         POSIX requires this.
45429         * lib/strptime.c (strptime): Likewise.
45430         Change license notice from LGPL to GPL, since gnulib-tool will
45431         change this as needed.
45432         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
45433         defined.
45434         Include "strptime.h" first, to check interface.
45435         Do not #undef _LIBC and _NL_CURRENT.
45436         Do not include <stdlib.h>; no longer needed.
45437         Include "time_r.h" and declare ptime_locale_status
45438         only if _LIBC is not defined.
45439         (__P): Remove unused macro.
45440         (match_string): Bring back glibc version, but use it only if _LIBC
45441         is defined.
45442         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
45443         Remove unnecessary assertion and abort() call.
45444         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
45445         * m4/strptime.m4: Fix serial number comment.
45446         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
45447         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
45448         (Depends-on): Add time_r.
45449
45450 2007-01-29  Bruno Haible  <bruno@clisp.org>
45451
45452         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45453         strptime.
45454         * modules/strptime (Depends-on): Add stdbool.
45455         * lib/strptime.h: Include <time.h> always. Add comments.
45456
45457 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45458
45459         * modules/strptime: New file.
45460         * lib/strptime.h: New file.
45461         * lib/strptime.c: New file.
45462         * m4/strptime.m4: New file.
45463
45464 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
45465
45466         * MODULES.html.sh: New module mpsort.
45467         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
45468
45469         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
45470         a circularity problem with HP-UX ia64 reported by Bob Proulx in
45471         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
45472         All uses changed.
45473         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
45474         All uses changed.
45475         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
45476         to _Restrict_.
45477         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
45478         the parameter matches the prototype.
45479
45480 2007-01-28  Jim Meyering  <jim@meyering.net>
45481
45482         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
45483         sys/time.h here, reverting that part of the previous patch:
45484         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
45485
45486 2007-01-28  Bruno Haible  <bruno@clisp.org>
45487
45488         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
45489         value of $(SYS_TIME_H).
45490         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
45491         remove it conditionally, too. [added by Jim Meyering]
45492         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
45493         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
45494         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
45495         GETTIMEOFDAY_REPLACEMENT to 1.
45496
45497 2007-01-28  Bruno Haible  <bruno@clisp.org>
45498
45499         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
45500         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
45501         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
45502         Set UNISTD_H instead of UNISTD_H2.
45503         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
45504
45505 2007-01-28  Bruno Haible  <bruno@clisp.org>
45506
45507         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
45508         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
45509
45510 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45511
45512         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
45513         (func_create_testdir): Ensure C locale for `grep' and `tr'
45514         character ranges.
45515         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
45516         ACLOCAL_AMFLAGS parsing state machine.
45517
45518 2007-01-27  Bruno Haible  <bruno@clisp.org>
45519
45520         * modules/unistr/base: Update.
45521
45522 2007-01-27  Bruno Haible  <bruno@clisp.org>
45523
45524         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
45525         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
45526         * modules/unistr/u32-mbtouc-unsafe: Renamed from
45527         modules/unistr/u32-mbtouc.
45528         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
45529         * lib/unistr.h: Update.
45530         * lib/linebreak.c: Update.
45531         * modules/unistr/u32-mbtouc: Renamed from
45532         modules/unistr/u32-mbtouc-safe.
45533         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
45534         * lib/unistr.h: Update.
45535         * lib/unistr/u32-to-u8.c: Update.
45536         * lib/unistr/u32-to-u16.c: Update.
45537
45538 2007-01-27  Bruno Haible  <bruno@clisp.org>
45539
45540         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
45541         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
45542         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
45543         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
45544         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
45545         * modules/unistr/u16-mbtouc-unsafe: Renamed from
45546         modules/unistr/u16-mbtouc.
45547         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
45548         * lib/unistr.h: Update.
45549         * lib/linebreak.c: Update.
45550         * modules/linebreak: Update.
45551         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
45552         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
45553         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
45554         * modules/unistr/u16-mbtouc: Renamed from
45555         modules/unistr/u16-mbtouc-safe.
45556         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
45557         * lib/unistr.h: Update.
45558         * lib/unistr/u16-to-u8.c: Update.
45559         * modules/unistr/u16-to-u8: Update.
45560         * lib/unistr/u16-to-u32.c: Update.
45561         * modules/unistr/u16-to-u32: Update.
45562
45563 2007-01-27  Bruno Haible  <bruno@clisp.org>
45564
45565         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
45566         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
45567         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
45568         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
45569         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
45570         * modules/unistr/u8-mbtouc-unsafe: Renamed from
45571         modules/unistr/u8-mbtouc.
45572         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
45573         * lib/unistr.h: Update.
45574         * lib/striconveh.c: Update.
45575         * modules/striconveh: Update.
45576         * lib/linebreak.c: Update.
45577         * modules/linebreak: Update.
45578         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
45579         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
45580         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
45581         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
45582         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
45583         * lib/unistr.h: Update.
45584         * lib/striconveh.c: Update.
45585         * modules/striconveh: Update.
45586         * lib/unistr/u8-to-u16.c: Update.
45587         * modules/unistr/u8-to-u16: Update.
45588         * lib/unistr/u8-to-u32.c: Update.
45589         * modules/unistr/u8-to-u32: Update.
45590
45591 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45592
45593         Sync from Libtool.
45594         * lib/argz.c: Do not include strings.h nor memory.h, include
45595         string.h unconditionally.  Patch by Simon Josefsson.
45596
45597 2007-01-27  Bruno Haible  <bruno@clisp.org>
45598
45599         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
45600         from gl_HEADER_STRING_H_BODY.
45601         (gl_HEADER_STRING_H_BODY): Require it.
45602         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
45603         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45604         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45605         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45606         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45607         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
45608         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45609         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45610         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
45611         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45612         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45613         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
45614         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45615         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45616         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45617
45618 2007-01-27  Bruno Haible  <bruno@clisp.org>
45619
45620         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
45621         check_PROGRAMS into noinst_PROGRAMS.
45622         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
45623         check_PROGRAMS in this case.
45624         (func_import): Set for_test to false.
45625         (func_create_testdir): Set for_test to true.
45626
45627 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45628             Bruno Haible  <bruno@clisp.org>
45629
45630         * modules/strcasestr (Files): Remove lib/strcasestr.h.
45631         (Depends-on): Add string.
45632         (Includes): Use <string.h> instead of strcasestr.h.
45633         * modules/string (Makefile.am): Also substitute the value of
45634         REPLACE_STRCASESTR.
45635         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
45636         assume strcasestr is declared in <string.h> not <strings.h>. Also
45637         set REPLACE_STRCASESTR.
45638         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
45639         REPLACE_STRCASESTR.
45640         * lib/strcasestr.h: Remove file.
45641         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
45642         * lib/string_.h (strcasestr): New declaration.
45643
45644 2007-01-27  Bruno Haible  <bruno@clisp.org>
45645
45646         * lib/string_.h: Use 'extern'.
45647
45648 2007-01-27  Jim Meyering  <jim@meyering.net>
45649
45650         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
45651         of set-but-not-used local, "q".
45652
45653         * lib/mempcpy.c: Include <config.h> before <string.h>.
45654         This fixes a compilation error on HP-UX, due to the system's
45655         "restrict"-using mempcpy prototype.
45656
45657 2007-01-26  Bruno Haible  <bruno@clisp.org>
45658
45659         Small optimization.
45660         * lib/javacomp.c: Include c-strstr.h.
45661          (is_envjavac_gcj): Use c_strstr instead of strstr.
45662         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
45663
45664 2007-01-26  Bruno Haible  <bruno@clisp.org>
45665
45666         * MODULES.html.sh (Unicode string functions): Add the new modules.
45667
45668         * modules/uniconv/u32-strconv-to-locale: New file.
45669         * lib/uniconv/u32-strconv-to-locale.c: New file.
45670
45671         * modules/uniconv/u16-strconv-to-locale: New file.
45672         * lib/uniconv/u16-strconv-to-locale.c: New file.
45673
45674         * modules/uniconv/u8-strconv-to-locale: New file.
45675         * lib/uniconv/u8-strconv-to-locale.c: New file.
45676
45677         * modules/uniconv/u32-strconv-from-locale: New file.
45678         * lib/uniconv/u32-strconv-from-locale.c: New file.
45679
45680         * modules/uniconv/u16-strconv-from-locale: New file.
45681         * lib/uniconv/u16-strconv-from-locale.c: New file.
45682
45683         * modules/uniconv/u8-strconv-from-locale: New file.
45684         * lib/uniconv/u8-strconv-from-locale.c: New file.
45685
45686         * modules/uniconv/u32-strconv-to-enc: New file.
45687         * lib/uniconv/u32-strconv-to-enc.c: New file.
45688         * modules/uniconv/u32-strconv-to-enc-tests: New file.
45689         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
45690
45691         * modules/uniconv/u16-strconv-to-enc: New file.
45692         * lib/uniconv/u16-strconv-to-enc.c: New file.
45693         * lib/uniconv/u-strconv-to-enc.h: New file.
45694         * modules/uniconv/u16-strconv-to-enc-tests: New file.
45695         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
45696
45697         * modules/uniconv/u8-strconv-to-enc: New file.
45698         * lib/uniconv/u8-strconv-to-enc.c: New file.
45699         * modules/uniconv/u8-strconv-to-enc-tests: New file.
45700         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
45701
45702         * modules/uniconv/u32-strconv-from-enc: New file.
45703         * lib/uniconv/u32-strconv-from-enc.c: New file.
45704         * modules/uniconv/u32-strconv-from-enc-tests: New file.
45705         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
45706
45707         * modules/uniconv/u16-strconv-from-enc: New file.
45708         * lib/uniconv/u16-strconv-from-enc.c: New file.
45709         * modules/uniconv/u16-strconv-from-enc-tests: New file.
45710         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
45711
45712         * modules/uniconv/u8-strconv-from-enc: New file.
45713         * lib/uniconv/u8-strconv-from-enc.c: New file.
45714         * lib/uniconv/u-strconv-from-enc.h: New file.
45715         * modules/uniconv/u8-strconv-from-enc-tests: New file.
45716         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
45717
45718         * modules/uniconv/u32-conv-from-enc: New file.
45719         * lib/uniconv/u32-conv-from-enc.c: New file.
45720         * modules/uniconv/u32-conv-from-enc-tests: New file.
45721         * tests/uniconv/test-u32-conv-from-enc.c: New file.
45722
45723         * modules/uniconv/u16-conv-from-enc: New file.
45724         * lib/uniconv/u16-conv-from-enc.c: New file.
45725         * lib/uniconv/u-conv-from-enc.h: New file.
45726         * modules/uniconv/u16-conv-from-enc-tests: New file.
45727         * tests/uniconv/test-u16-conv-from-enc.c: New file.
45728
45729         * modules/uniconv/u8-conv-from-enc: New file.
45730         * lib/uniconv/u8-conv-from-enc.c: New file.
45731         * modules/uniconv/u8-conv-from-enc-tests: New file.
45732         * tests/uniconv/test-u8-conv-from-enc.c: New file.
45733
45734         * modules/uniconv/base: New file.
45735         * lib/uniconv.h: New file.
45736
45737 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45738
45739         * doc/gnulib-tool.texi (Initial import): Update to match current
45740         behavior with strdup module.
45741         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
45742         * lib/memmem.h: Remove; all uses removed.  This is now done
45743         by <string.h>.
45744         * lib/mempcpy.h: Likewise.
45745         * lib/memrchr.h: Likewise.
45746         * lib/stpcpy.h: Likewise.
45747         * lib/stpncpy.h: Likewise.
45748         * lib/strcase.h: Likewise.
45749         * lib/strchrnul.h: Likewise.
45750         * lib/strdup.h: Likewise.
45751         * lib/strndup.h: Likewise.
45752         * lib/strnlen.h: Likewise.
45753         * lib/strpbrk.h: Likewise.
45754         * lib/strsep.h: Likewise.
45755         * lib/strstr.h: Likewise.
45756         * lib/strtok_r.h: Likewise.
45757         * lib/string_.h: New file.
45758         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
45759         Rely on <string.h> instead.
45760         * lib/canon-host.c: Likewise.
45761         * lib/chdir-long.c: Likewise.
45762         * lib/concatpath.c: Likewise.
45763         * lib/exclude.c: Likewise.
45764         * lib/fchdir.c: Likewise.
45765         * lib/getaddrinfo.c: Likewise.
45766         * lib/getcwd.c: Likewise.
45767         * lib/getsubopt.c: Likewise.
45768         * lib/glob.c: Likewise.
45769         * lib/hard-locale.c: Likewise.
45770         * lib/iconvme.c: Likewise.
45771         * lib/javacomp.c: Likewise.
45772         * lib/mempcpy.c: Likewise.
45773         * lib/memrchr.c: Likewise.
45774         * lib/regex_internal.h: Likewise.
45775         * lib/stpncpy.c: Likewise.
45776         * lib/strcasecmp.c: Likewise.
45777         * lib/strchrnul.c: Likewise.
45778         * lib/strdup.c: Likewise.
45779         * lib/striconv.c: Likewise.
45780         * lib/striconveh.c: Likewise.
45781         * lib/striconveha.c: Likewise.
45782         * lib/strncasecmp.c: Likewise.
45783         * lib/strndup.c: Likewise.
45784         * lib/strnlen.c: Likewise.
45785         * lib/strsep.c: Likewise.
45786         * lib/strstr.c: Likewise.
45787         * lib/strtok_r.c: Likewise.
45788         * lib/userspec.c: Likewise.
45789         * lib/w32spawn.h: Likewise.
45790         * lib/xstrndup.c: Likewise.
45791         * lib/mountlist.c (strstr): Remove decl.
45792         * m4/string_h.m4: New file.
45793         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
45794         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
45795         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
45796         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
45797         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
45798         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
45799         Set REPLACE_STRCASECMP if necessary.
45800         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
45801         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
45802         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
45803         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
45804         HAVE_DECL_STRDUP if necessary.
45805         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
45806         since gl_FUNC_STRNDUP does that now.
45807         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
45808         Check for decl here...
45809         (gl_PREREQ_STRNLEN): ... not here.
45810         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
45811         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
45812         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
45813         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
45814         necessary.
45815         * modules/string: New file.
45816         * modules/memmem (Files): Remove special-purpose include file.
45817         (Depends-on): Add string.
45818         (Include): Include <string.h>, not the removed file.
45819         * modules/mempcpy: Likewise.
45820         * modules/memrchr: Likewise.
45821         * modules/stpcpy: Likewise.
45822         * modules/stpncpy: Likewise.
45823         * modules/strcase: Likewise.
45824         * modules/strchrnul: Likewise.
45825         * modules/strdup: Likewise.
45826         * modules/strndup: Likewise.
45827         * modules/strnlen: Likewise.
45828         * modules/strpbrk: Likewise.
45829         * modules/strsep: Likewise.
45830         * modules/strstr: Likewise.
45831         * modules/strtok_r: Likewise.
45832         * tests/test-dirname.c: Don't include "strdup.h", since
45833         <string.h> now suffices.
45834         * tests/test-memmem.c: Don't include "memmem.h", since
45835         <string.h> now suffices.
45836
45837 2007-01-25  Bruno Haible  <bruno@clisp.org>
45838
45839         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
45840         *resultp is 0.
45841
45842         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
45843         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
45844         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
45845         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
45846
45847         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
45848         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
45849         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
45850         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
45851         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
45852         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
45853
45854 2007-01-24  Bruno Haible  <bruno@clisp.org>
45855
45856         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
45857         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
45858         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
45859         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
45860         gl_FUNC_FTS_CORE.
45861         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
45862         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
45863         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45864         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
45865         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
45866         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
45867         gl_FUNC_FCHOWNAT.
45868         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
45869         gl_FUNC_STRFTIME.
45870         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
45871         Reported by Ralf Wildenhues.
45872
45873 2007-01-24  Bruno Haible  <bruno@clisp.org>
45874
45875         Drop AC_REQUIRE calls that are redundant with the module dependencies.
45876         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
45877         gl_GETADDRINFO.
45878         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
45879         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
45880         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
45881
45882 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
45883
45884         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
45885         Don't use 'exit'; just return from 'main'.
45886         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
45887
45888         * lib/fnmatch_.h: Readjust white space and comments to match
45889         glibc, to avoid spurious diffs.
45890
45891 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45892
45893         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
45894         2004-12-01 change by Jakub Jelinek, since this code won't compile
45895         if !LIBC.  Problem reported by Bob Proulx.
45896
45897 2007-01-23  Bruno Haible  <bruno@clisp.org>
45898
45899         * lib/striconveh.c: Include c-strcaseeq.h.
45900         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
45901         * modules/striconveh (Depends-on): Add c-strcaseeq.
45902
45903 2007-01-23  Bruno Haible  <bruno@clisp.org>
45904
45905         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
45906
45907         * modules/c-strcaseeq: New file.
45908         * lib/c-strcaseeq.h: New file.
45909
45910         * modules/streq: New file.
45911         * lib/streq.h: New file.
45912
45913 2007-01-23  Bruno Haible  <bruno@clisp.org>
45914
45915         * modules/striconveha-tests: New file.
45916         * tests/test-striconveha.c: New file.
45917
45918         * lib/striconveha.h: Include <stdbool.h>.
45919         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
45920         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
45921         (mem_iconveha_notranslit): Renamed from mem_iconveha.
45922         (mem_iconveha): New function.
45923         (str_iconveha_notranslit): Renamed from str_iconveha.
45924         (str_iconveha): New function.
45925         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
45926         c-strcase.
45927
45928 2007-01-23  Bruno Haible  <bruno@clisp.org>
45929
45930         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
45931         encodings without forgiving before trying any encoding with handler.
45932         (str_iconveha): Try all encodings without forgiving before trying any
45933         encoding with handler.
45934
45935 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45936
45937         Import the following changes from libc.
45938
45939         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
45940
45941         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
45942
45943         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
45944
45945         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
45946         normal_bracket label.
45947
45948         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
45949
45950         [BZ #361]
45951         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
45952         to normal_bracket after fetching the next character.
45953
45954 2007-01-22  Bruno Haible  <bruno@clisp.org>
45955
45956         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
45957         argument.
45958         * lib/striconveh.c (iconv_carefully_1): New function.
45959         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
45960         argument.
45961         (str_cd_iconveh): Update.
45962         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
45963         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
45964         * tests/test-striconveh.c (MAGIC): New macro.
45965         (new_offsets): New function.
45966         (main): Test call with and without offsets.
45967
45968 2007-01-22  Bruno Haible  <bruno@clisp.org>
45969
45970         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
45971         * modules/sys_select (Makefile.am): Likewise.
45972         * modules/sys_socket (Makefile.am): Likewise.
45973         * modules/sys_time (Makefile.am): Likewise.
45974
45975 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
45976
45977         * modules/gettimeofday (License): Change from GPL to LGPL, since
45978         gettimeofday is a library function.
45979
45980 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45981
45982         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
45983
45984 2007-01-21  Bruno Haible  <bruno@clisp.org>
45985
45986         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
45987
45988 2007-01-21  Bruno Haible  <bruno@clisp.org>
45989
45990         * modules/striconveha: New file.
45991         * lib/striconveha.h: New file.
45992         * lib/striconveha.c: New file.
45993         * MODULES.html.sh (Internationalization functions): Add striconveha.
45994         * lib/striconv.c (str_iconv): Optimize the case of an empty input
45995         string.
45996         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
45997
45998 2007-01-21  Bruno Haible  <bruno@clisp.org>
45999
46000         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
46001         * lib/striconveh.c (str_iconveh): Likewise.
46002
46003 2007-01-21  Bruno Haible  <bruno@clisp.org>
46004
46005         * lib/striconveh.h (mem_iconveh): New declaration.
46006         * lib/striconveh.c (mem_iconveh): New function.
46007         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
46008
46009 2007-01-21  Bruno Haible  <bruno@clisp.org>
46010
46011         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
46012
46013         * lib/striconveh.h (mem_cd_iconveh): Change specification.
46014         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
46015         original result buffer.
46016         (str_cd_iconveh): Update.
46017         * tests/test-striconveh.c (main): Update.
46018
46019         * lib/striconv.h (mem_cd_iconv): Change specification.
46020         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
46021         result buffer.
46022         (str_cd_iconv): Update.
46023         * tests/test-striconv.c (main): Update.
46024
46025 2007-01-21  Bruno Haible  <bruno@clisp.org>
46026
46027         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
46028
46029 2007-01-20  Jim Meyering  <jim@meyering.net>
46030
46031         * lib/userspec.c (parse_with_separator): If a user or group string
46032         starts with "+", skip the corresponding name-to-ID look-up, since
46033         such a look-up must fail: user and group names may not include "+".
46034
46035 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
46036
46037         * lib/poll.c: Include sys/time.h and time.h unconditionally,
46038         since we now assume the sys_time module.
46039         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
46040         check for sys/time.h; no longer needed.
46041         * modules/poll (Depends-on): Depend on sys_time.
46042
46043 2007-01-18  Bruno Haible  <bruno@clisp.org>
46044
46045         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
46046         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46047
46048         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
46049         gettimeofday.
46050
46051         * tests/test-gettimeofday.c: Include <time.h>.
46052         (dummy): Remove variable.
46053
46054         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
46055         gl_HEADER_SYS_TIME_H.
46056         (gl_HEADER_SYS_TIME_H): New macro.
46057
46058         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
46059         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46060         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
46061         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
46062         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46063         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
46064         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
46065         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46066         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
46067         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
46068         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46069
46070         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
46071         last change; it caused a compilation error when cross-compiling to
46072         Cygwin.
46073
46074 2007-01-18  Jim Meyering  <jim@meyering.net>
46075
46076         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
46077         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
46078         than the race-prone "test -d sys || mkdir sys".
46079         (configure.ac): Use AC_PROG_MKDIR_P.
46080         * modules/sys_select: Likewise.
46081         * modules/sys_socket: Likewise.
46082         * modules/sys_time: Likewise.
46083
46084 2007-01-18  Eric Blake  <ebb9@byu.net>
46085
46086         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
46087         replace gettimeofday.
46088         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
46089         name, to avoid infinite recursion.
46090
46091 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
46092
46093         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
46094         module sys_time.
46095         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
46096         assume timespec.h defines struct timeval.
46097         * lib/settime.c: Likewise.
46098         * lib/utimens.c: Likewise.
46099         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
46100         since we now assume the gettimeofday module.
46101         * lib/tempname.c (__gen_tempname): Likewise.
46102         * lib/gettimeofday.h: Remove.
46103         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
46104         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
46105         Include <time.h>, for 'time()'.
46106         (localtime_buffer_addr): Also use this workaround if
46107         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
46108         to simplify the uses.  All uses changed.
46109         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
46110         that #undef is inside {}, and 'const' follows type name consistently.
46111         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
46112         (gettimeofday): Do not use the maximum possible value for
46113         tv->tv_usec, since that might break usages other than ls.c.
46114         Instead, we'll leave ls.c alone.  This undoes today's patch
46115         by Bruno.  Add a compile-time warning for 1s-clock resolution;
46116         we've never observed the problem but might as well keep the
46117         canary.
46118         * lib/nanosleep.c: Include timespec.h first, for interface check.
46119         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
46120         now assume the sys_time module.
46121         * lib/tempname.c: Likewise.
46122         * lib/timespec.h: Likewise.
46123         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
46124         needed.
46125         * lib/strftime.c: Likewise.
46126         * lib/timespec.h: Likewise.
46127         * lib/posixtm.c: Include posixtm.h first, for interface check.
46128         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
46129         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
46130         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
46131         * lib/sys_time_.h: New file.
46132         * lib/timespec.h (struct timespec): Use long int, not long.
46133         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46134         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
46135         Remove obsolescent call to AC_HEADER_TIME.
46136         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
46137         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46138         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46139         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
46140         Likewise.
46141         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
46142         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
46143         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
46144         into the sys_time module.  Check for gettimeofday just once.
46145         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
46146         for gettimeofday signature to just check the signature.  Merely
46147         compile it, since linking doesn't test signature.  Improve test for
46148         whether gettimeofday.o is actually needed.
46149         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
46150         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
46151         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
46152         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46153         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
46154         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
46155         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
46156         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
46157         than worrying about sys/time.h.
46158         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46159         Don't bother worrying about TIME_WITH_SYS_TIME.
46160         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46161         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
46162         * m4/sys_time_h.m4: New file.
46163         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
46164         Don't include sys/time.h.  Return from main rather than exiting.
46165         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
46166         all uses changed.
46167         * modules/gethrxtime (Depends-on): Add sys_time.
46168         * modules/gettime (Depends-on): Likewise.
46169         * modules/gettimeofday (Depends-on): Likewise.
46170         * modules/nanosleep (Depends-on): Likewise.
46171         * modules/settime (Depends-on): Likewise.
46172         * modules/tempname (Depends-on): Likewise.
46173         * modules/utimens (Depends-on): Likewise.
46174         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
46175         (Include:) Change back to <sys/time.h>.
46176         (Maintainer:) Add self.
46177         * modules/sys_time: New file.
46178         * modules/tempname (Depends-on): Add gettimeofday.
46179         * tests/test-gettimeofday.c: Include <sys/time.h>
46180         rather than gettimeofday.h.
46181
46182 2007-01-17  Bruno Haible  <bruno@clisp.org>
46183
46184         * gnulib-tool (func_get_license): Revert last patch. Instead, let
46185         the license default to GPL.
46186         (func_create_testdir): Don't complain if a module is LGPL and its
46187         tests module depends on GPLed modules.
46188
46189 2007-01-17  Bruno Haible  <bruno@clisp.org>
46190
46191         * lib/gettimeofday.c (gettimeofday): Add code for the case
46192         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
46193         maximum possible value for tv->tv_usec, rather than the minimum one.
46194
46195 2005-10-08  Martin Lambers  <marlam@marlam.de>
46196 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46197 2007-01-16  Bruno Haible  <bruno@clisp.org>
46198
46199         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
46200         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
46201         gl_FUNC_GETTIMEOFDAY.
46202         (Include): Add gettimeofday.h.
46203         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
46204         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
46205         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
46206         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
46207         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
46208         * lib/gettimeofday.h: New file.
46209         * lib/gettimeofday.c: Include <sys/timeb.h>.
46210         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
46211         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46212         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
46213         fall back on time().
46214
46215         * tests/test-gettimeofday.c: New file.
46216         * modules/gettimeofday-tests: New file.
46217
46218 2007-01-16  Eric Blake  <ebb9@byu.net>
46219
46220         * modules/fnmatch (Depends-on): Depend on wchar.
46221         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
46222         * m4/fnmatch.m4: Likewise.
46223         * modules/mbchar (Makefile.am): Assume <wchar.h>.
46224         * m4/mbchar.m4: Likewise.
46225         * modules/mbswidth (Depends-on): Depend on wchar.
46226         * lib/mbswidth.c: Assume <wchar.h>.
46227         * m4/mbswidth.m4: Likewise.
46228         * modules/quotearg (Depends-on): Depend on wchar.
46229         * lib/quotearg.c: Assume <wchar.h>.
46230         * m4/quotearg.m4: Likewise.
46231         * modules/regex (Depends-on): Depend on wchar.
46232         * lib/regex_internal.h: Assume <wchar.h>.
46233         * m4/regex.m4: Likewise.
46234         * modules/stdint (Depends-on): Depend on wchar.
46235         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
46236         * m4/stdint.m4: Likewise.
46237         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
46238         * modules/strftime (Depends-on): Depend on wchar.
46239         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
46240         * modules/strtol (Depends-on): Depend on wchar.
46241         * lib/strtol.c: Assume <wchar.h>.
46242         * modules/wcwidth (Depends-on): Depend on wchar.
46243         * lib/wcwidth.h: Assume <wchar.h>.
46244         * m4/wcwidth.m4: Likewise.
46245
46246 2007-01-16  Bruno Haible  <bruno@clisp.org>
46247
46248         * modules/csharpexec-script: New, created from...
46249         * modules/csharpexec: ... this.
46250
46251 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46252
46253         * modules/javaexec-script: New, created from...
46254         * modules/javaexec: ... this.
46255
46256 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46257
46258         * modules/poll (Dependencies): Add sys_select.
46259
46260 2007-01-15  Jim Meyering  <jim@meyering.net>
46261
46262         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
46263         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
46264         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
46265         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
46266
46267 2007-01-15  Bruno Haible  <bruno@clisp.org>
46268
46269         * modules/striconveh: New file.
46270         * lib/striconveh.h: New file.
46271         * lib/striconveh.c: New file.
46272         * MODULES.html.sh (Internationalization functions): Add striconveh.
46273
46274         * modules/striconveh-tests: New file.
46275         * tests/test-striconveh.c: New file.
46276
46277 2007-01-15  Bruno Haible  <bruno@clisp.org>
46278
46279         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
46280         not from GNU libiconv or GNU libc.
46281
46282 2007-01-15  Bruno Haible  <bruno@clisp.org>
46283
46284         * doc/gnulib-intro.texi (Copyright): Explain the different license
46285         terms for module descriptions, autoconf macros, tests, documentation.
46286
46287 2007-01-14  Bruno Haible  <bruno@clisp.org>
46288
46289         * modules/striconv-tests: New file.
46290         * tests/test-striconv.c: New file.
46291
46292 2007-01-14  Bruno Haible  <bruno@clisp.org>
46293
46294         * modules/iconv-tests: New file.
46295         * tests/test-iconv.c: New file.
46296
46297 2007-01-14  Bruno Haible  <bruno@clisp.org>
46298
46299         * gnulib-tool (func_get_license): For test modules, use the license of
46300         the main module.
46301
46302 2007-01-14  Bruno Haible  <bruno@clisp.org>
46303
46304         * modules/iconv (Include): Clarify that <iconv.h> can only be included
46305         if iconv is found to exist.
46306
46307 2007-01-14  Bruno Haible  <bruno@clisp.org>
46308
46309         * modules/c-ctype-tests: New file.
46310         * tests/test-c-ctype.c: New file.
46311
46312 2007-01-14  Bruno Haible  <bruno@clisp.org>
46313
46314         * modules/binary-io-tests: New file.
46315         * tests/test-binary-io.sh: New file.
46316         * tests/test-binary-io.c: New file.
46317
46318 2007-01-14  Bruno Haible  <bruno@clisp.org>
46319
46320         * modules/array-oset-tests: New file.
46321         * tests/test-array_oset.c: New file.
46322
46323 2007-01-14  Bruno Haible  <bruno@clisp.org>
46324
46325         * modules/array-list-tests: New file.
46326         * tests/test-array_list.c: New file.
46327
46328 2007-01-14  Bruno Haible  <bruno@clisp.org>
46329
46330         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
46331         and make.
46332         Reported by Simon Josefsson in
46333         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
46334
46335 2007-01-14  Bruno Haible  <bruno@clisp.org>
46336
46337         * modules/allocsa-tests: New file.
46338         * tests/test-allocsa.c: New file.
46339
46340 2007-01-14  Bruno Haible  <bruno@clisp.org>
46341
46342         * modules/fchdir (Depends-on): Add absolute-header.
46343         * modules/unistd (Depends-on): Likewise.
46344
46345 2006-12-30  Bruno Haible  <bruno@clisp.org>
46346
46347         * modules/fchdir: New file.
46348         * modules/unistd (Files): Add lib/unistd_.h.
46349         (Makefile.am): Generate unistd.h from unistd_.h.
46350         * lib/fchdir.c: New file.
46351         * lib/dirent_.h: New file.
46352         * lib/unistd_.h: New file.
46353         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
46354         * m4/fchdir.m4: New file.
46355         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
46356         (gl_HEADER_UNISTD): Invoke it.
46357         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
46358         function.
46359         * lib/backupfile.c (opendir, closedir): Undefine.
46360         * lib/chown.c (open, close): Undefine.
46361         * lib/clean-temp.c (open, close): Undefine.
46362         * lib/copy-file.c (open, close): Undefine.
46363         * lib/execute.c (open, close): Undefine.
46364         * lib/fsusage.c (open, close): Undefine.
46365         * lib/gc-gnulib.c (open, close): Undefine.
46366         * lib/getcwd.c (opendir, closedir): Undefine.
46367         * lib/glob.c (opendir, closedir): Undefine.
46368         * lib/javacomp.c (open, close): Undefine.
46369         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
46370         * lib/openat-proc.c (open, close): Undefine.
46371         * lib/pagealign_alloc.c (open, close): Undefine.
46372         * lib/pipe.c (open, close): Undefine.
46373         * lib/progreloc.c (open, close): Undefine.
46374         * lib/savedir.c (opendir, closedir): Undefine.
46375         * lib/utime.c (open, close): Undefine.
46376         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
46377
46378 2007-01-10  Bruno Haible  <bruno@clisp.org>
46379
46380         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
46381
46382 2007-01-12  Eric Blake  <ebb9@byu.net>
46383
46384         Provide a robust <wchar.h>.  Further simplifications are now
46385         possible in other modules, but not included here.
46386         * modules/wchar: New module.
46387         * m4/wchar.m4: New file.
46388         * lib/wchar_.h: Likewise.
46389         * modules/mbchar (Depends-on): Depend on wchar, as the first use
46390         of the new module.
46391         * MODULES.html.sh (Extended multibyte and wide character utilities):
46392         New section.
46393
46394 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
46395
46396         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
46397         to a reasonable default for memory allocation.
46398         (xreadlink): Don't allocate a huge buffer, to work around a buggy
46399         file system that reports garbage st_size values for symlinks.
46400         Problem reported by Liyang Hu.
46401
46402 2007-01-11  Simon Josefsson  <simon@josefsson.org>
46403
46404         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
46405         Emacs .#* auto-save files).
46406
46407 2007-01-11  Bruno Haible  <bruno@clisp.org>
46408
46409         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
46410         directory.
46411
46412 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46413
46414         Use @...@ consistently in lib/wctype_.h.
46415         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
46416         on it being set to 1 or 0.
46417         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
46418         go back to AC_SUBSTing it.
46419         * modules/wctype (Makefile.am): Undo previous change.
46420
46421 2007-01-10  Eric Blake  <ebb9@byu.net>
46422
46423         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
46424         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
46425         * modules/wctype (Makefile.am): Likewise.
46426         Reported by Chris McGuire.
46427
46428 2007-01-10  Jim Meyering  <jim@meyering.net>
46429
46430         fts.c: a small readability/maintainability improvement
46431         * lib/fts.c (fts_read): Make this code slightly more readable and
46432         maintainable by hoisting the "sp->fts_cur = p" assignments to
46433         immediately follow the statements that set P.  Derived from
46434         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
46435
46436 2007-01-10  Eric Blake  <ebb9@byu.net>
46437
46438         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
46439         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
46440         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46441         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46442         Reported by Chris McGuire.
46443
46444 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46445
46446         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
46447         in sed script.
46448
46449 2007-01-09  Bruno Haible  <bruno@clisp.org>
46450
46451         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
46452         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
46453         variables.
46454         (func_module): Use them.
46455
46456 2007-01-09  Bruno Haible  <bruno@clisp.org>
46457
46458         * modules/unistr/base: New file.
46459         * lib/unistr.h: New file.
46460
46461         * modules/unistr/u8-to-u16: New file.
46462         * lib/unistr/u8-to-u16.c: New file.
46463
46464         * modules/unistr/u8-to-u32: New file.
46465         * lib/unistr/u8-to-u32.c: New file.
46466
46467         * modules/unistr/u16-to-u8: New file.
46468         * lib/unistr/u16-to-u8.c: New file.
46469
46470         * modules/unistr/u16-to-u32: New file.
46471         * lib/unistr/u16-to-u32.c: New file.
46472
46473         * modules/unistr/u32-to-u8: New file.
46474         * lib/unistr/u32-to-u8.c: New file.
46475
46476         * modules/unistr/u32-to-u16: New file.
46477         * lib/unistr/u32-to-u16.c: New file.
46478
46479         * modules/unistr/u8-check: New file.
46480         * modules/unistr/u16-check: New file.
46481         * modules/unistr/u32-check: New file.
46482         * lib/unistr/u8-check.c: New file.
46483         * lib/unistr/u16-check.c: New file.
46484         * lib/unistr/u32-check.c: New file.
46485
46486         * modules/unistr/u8-chr: New file.
46487         * modules/unistr/u16-chr: New file.
46488         * modules/unistr/u32-chr: New file.
46489         * lib/unistr/u8-chr.c: New file.
46490         * lib/unistr/u16-chr.c: New file.
46491         * lib/unistr/u32-chr.c: New file.
46492
46493         * modules/unistr/u8-cmp: New file.
46494         * modules/unistr/u16-cmp: New file.
46495         * modules/unistr/u32-cmp: New file.
46496         * lib/unistr/u8-cmp.c: New file.
46497         * lib/unistr/u16-cmp.c: New file.
46498         * lib/unistr/u32-cmp.c: New file.
46499
46500         * modules/unistr/u8-cpy: New file.
46501         * modules/unistr/u16-cpy: New file.
46502         * modules/unistr/u32-cpy: New file.
46503         * lib/unistr/u8-cpy.c: New file.
46504         * lib/unistr/u16-cpy.c: New file.
46505         * lib/unistr/u32-cpy.c: New file.
46506         * lib/unistr/u-cpy.h: New file.
46507
46508         * modules/unistr/u8-cpy-alloc: New file.
46509         * modules/unistr/u16-cpy-alloc: New file.
46510         * modules/unistr/u32-cpy-alloc: New file.
46511         * lib/unistr/u8-cpy-alloc.c: New file.
46512         * lib/unistr/u16-cpy-alloc.c: New file.
46513         * lib/unistr/u32-cpy-alloc.c: New file.
46514         * lib/unistr/u-cpy-alloc.h: New file.
46515
46516         * modules/unistr/u8-endswith: New file.
46517         * modules/unistr/u16-endswith: New file.
46518         * modules/unistr/u32-endswith: New file.
46519         * lib/unistr/u8-endswith.c: New file.
46520         * lib/unistr/u16-endswith.c: New file.
46521         * lib/unistr/u32-endswith.c: New file.
46522         * lib/unistr/u-endswith.h: New file.
46523
46524         * modules/unistr/u8-mblen: New file.
46525         * modules/unistr/u16-mblen: New file.
46526         * modules/unistr/u32-mblen: New file.
46527         * lib/unistr/u8-mblen.c: New file.
46528         * lib/unistr/u16-mblen.c: New file.
46529         * lib/unistr/u32-mblen.c: New file.
46530
46531         * modules/unistr/u8-mbtouc: New file.
46532         * modules/unistr/u16-mbtouc: New file.
46533         * modules/unistr/u32-mbtouc: New file.
46534         * lib/unistr/u8-mbtouc.c: New file.
46535         * lib/unistr/u16-mbtouc.c: New file.
46536         * lib/unistr/u32-mbtouc.c: New file.
46537
46538         * modules/unistr/u8-mbtouc-safe: New file.
46539         * modules/unistr/u16-mbtouc-safe: New file.
46540         * modules/unistr/u32-mbtouc-safe: New file.
46541         * lib/unistr/u8-mbtouc-safe.c: New file.
46542         * lib/unistr/u16-mbtouc-safe.c: New file.
46543         * lib/unistr/u32-mbtouc-safe.c: New file.
46544
46545         * modules/unistr/u8-move: New file.
46546         * modules/unistr/u16-move: New file.
46547         * modules/unistr/u32-move: New file.
46548         * lib/unistr/u8-move.c: New file.
46549         * lib/unistr/u16-move.c: New file.
46550         * lib/unistr/u32-move.c: New file.
46551         * lib/unistr/u-move.h: New file.
46552
46553         * modules/unistr/u8-next: New file.
46554         * modules/unistr/u16-next: New file.
46555         * modules/unistr/u32-next: New file.
46556         * lib/unistr/u8-next.c: New file.
46557         * lib/unistr/u16-next.c: New file.
46558         * lib/unistr/u32-next.c: New file.
46559
46560         * modules/unistr/u8-prev: New file.
46561         * modules/unistr/u16-prev: New file.
46562         * modules/unistr/u32-prev: New file.
46563         * lib/unistr/u8-prev.c: New file.
46564         * lib/unistr/u16-prev.c: New file.
46565         * lib/unistr/u32-prev.c: New file.
46566
46567         * modules/unistr/u8-set: New file.
46568         * modules/unistr/u16-set: New file.
46569         * modules/unistr/u32-set: New file.
46570         * lib/unistr/u8-set.c: New file.
46571         * lib/unistr/u16-set.c: New file.
46572         * lib/unistr/u32-set.c: New file.
46573         * lib/unistr/u-set.h: New file.
46574
46575         * modules/unistr/u8-startswith: New file.
46576         * modules/unistr/u16-startswith: New file.
46577         * modules/unistr/u32-startswith: New file.
46578         * lib/unistr/u8-startswith.c: New file.
46579         * lib/unistr/u16-startswith.c: New file.
46580         * lib/unistr/u32-startswith.c: New file.
46581         * lib/unistr/u-startswith.h: New file.
46582
46583         * modules/unistr/u8-stpcpy: New file.
46584         * modules/unistr/u16-stpcpy: New file.
46585         * modules/unistr/u32-stpcpy: New file.
46586         * lib/unistr/u8-stpcpy.c: New file.
46587         * lib/unistr/u16-stpcpy.c: New file.
46588         * lib/unistr/u32-stpcpy.c: New file.
46589         * lib/unistr/u-stpcpy.h: New file.
46590
46591         * modules/unistr/u8-stpncpy: New file.
46592         * modules/unistr/u16-stpncpy: New file.
46593         * modules/unistr/u32-stpncpy: New file.
46594         * lib/unistr/u8-stpncpy.c: New file.
46595         * lib/unistr/u16-stpncpy.c: New file.
46596         * lib/unistr/u32-stpncpy.c: New file.
46597         * lib/unistr/u-stpncpy.h: New file.
46598
46599         * modules/unistr/u8-strcat: New file.
46600         * modules/unistr/u16-strcat: New file.
46601         * modules/unistr/u32-strcat: New file.
46602         * lib/unistr/u8-strcat.c: New file.
46603         * lib/unistr/u16-strcat.c: New file.
46604         * lib/unistr/u32-strcat.c: New file.
46605         * lib/unistr/u-strcat.h: New file.
46606
46607         * modules/unistr/u8-strchr: New file.
46608         * modules/unistr/u16-strchr: New file.
46609         * modules/unistr/u32-strchr: New file.
46610         * lib/unistr/u8-strchr.c: New file.
46611         * lib/unistr/u16-strchr.c: New file.
46612         * lib/unistr/u32-strchr.c: New file.
46613
46614         * modules/unistr/u8-strcmp: New file.
46615         * modules/unistr/u16-strcmp: New file.
46616         * modules/unistr/u32-strcmp: New file.
46617         * lib/unistr/u8-strcmp.c: New file.
46618         * lib/unistr/u16-strcmp.c: New file.
46619         * lib/unistr/u32-strcmp.c: New file.
46620
46621         * modules/unistr/u8-strcpy: New file.
46622         * modules/unistr/u16-strcpy: New file.
46623         * modules/unistr/u32-strcpy: New file.
46624         * lib/unistr/u8-strcpy.c: New file.
46625         * lib/unistr/u16-strcpy.c: New file.
46626         * lib/unistr/u32-strcpy.c: New file.
46627         * lib/unistr/u-strcpy.h: New file.
46628
46629         * modules/unistr/u8-strcspn: New file.
46630         * modules/unistr/u16-strcspn: New file.
46631         * modules/unistr/u32-strcspn: New file.
46632         * lib/unistr/u8-strcspn.c: New file.
46633         * lib/unistr/u16-strcspn.c: New file.
46634         * lib/unistr/u32-strcspn.c: New file.
46635         * lib/unistr/u-strcspn.h: New file.
46636
46637         * modules/unistr/u8-strdup: New file.
46638         * modules/unistr/u16-strdup: New file.
46639         * modules/unistr/u32-strdup: New file.
46640         * lib/unistr/u8-strdup.c: New file.
46641         * lib/unistr/u16-strdup.c: New file.
46642         * lib/unistr/u32-strdup.c: New file.
46643         * lib/unistr/u-strdup.h: New file.
46644
46645         * modules/unistr/u8-strlen: New file.
46646         * modules/unistr/u16-strlen: New file.
46647         * modules/unistr/u32-strlen: New file.
46648         * lib/unistr/u8-strlen.c: New file.
46649         * lib/unistr/u16-strlen.c: New file.
46650         * lib/unistr/u32-strlen.c: New file.
46651         * lib/unistr/u-strlen.h: New file.
46652
46653         * modules/unistr/u8-strmblen: New file.
46654         * modules/unistr/u16-strmblen: New file.
46655         * modules/unistr/u32-strmblen: New file.
46656         * lib/unistr/u8-strmblen.c: New file.
46657         * lib/unistr/u16-strmblen.c: New file.
46658         * lib/unistr/u32-strmblen.c: New file.
46659
46660         * modules/unistr/u8-strmbtouc: New file.
46661         * modules/unistr/u16-strmbtouc: New file.
46662         * modules/unistr/u32-strmbtouc: New file.
46663         * lib/unistr/u8-strmbtouc.c: New file.
46664         * lib/unistr/u16-strmbtouc.c: New file.
46665         * lib/unistr/u32-strmbtouc.c: New file.
46666
46667         * modules/unistr/u8-strncat: New file.
46668         * modules/unistr/u16-strncat: New file.
46669         * modules/unistr/u32-strncat: New file.
46670         * lib/unistr/u8-strncat.c: New file.
46671         * lib/unistr/u16-strncat.c: New file.
46672         * lib/unistr/u32-strncat.c: New file.
46673         * lib/unistr/u-strncat.h: New file.
46674
46675         * modules/unistr/u8-strncmp: New file.
46676         * modules/unistr/u16-strncmp: New file.
46677         * modules/unistr/u32-strncmp: New file.
46678         * lib/unistr/u8-strncmp.c: New file.
46679         * lib/unistr/u16-strncmp.c: New file.
46680         * lib/unistr/u32-strncmp.c: New file.
46681
46682         * modules/unistr/u8-strncpy: New file.
46683         * modules/unistr/u16-strncpy: New file.
46684         * modules/unistr/u32-strncpy: New file.
46685         * lib/unistr/u8-strncpy.c: New file.
46686         * lib/unistr/u16-strncpy.c: New file.
46687         * lib/unistr/u32-strncpy.c: New file.
46688         * lib/unistr/u-strncpy.h: New file.
46689
46690         * modules/unistr/u8-strnlen: New file.
46691         * modules/unistr/u16-strnlen: New file.
46692         * modules/unistr/u32-strnlen: New file.
46693         * lib/unistr/u8-strnlen.c: New file.
46694         * lib/unistr/u16-strnlen.c: New file.
46695         * lib/unistr/u32-strnlen.c: New file.
46696         * lib/unistr/u-strnlen.h: New file.
46697
46698         * modules/unistr/u8-strpbrk: New file.
46699         * modules/unistr/u16-strpbrk: New file.
46700         * modules/unistr/u32-strpbrk: New file.
46701         * lib/unistr/u8-strpbrk.c: New file.
46702         * lib/unistr/u16-strpbrk.c: New file.
46703         * lib/unistr/u32-strpbrk.c: New file.
46704         * lib/unistr/u-strpbrk.h: New file.
46705
46706         * modules/unistr/u8-strrchr: New file.
46707         * modules/unistr/u16-strrchr: New file.
46708         * modules/unistr/u32-strrchr: New file.
46709         * lib/unistr/u8-strrchr.c: New file.
46710         * lib/unistr/u16-strrchr.c: New file.
46711         * lib/unistr/u32-strrchr.c: New file.
46712
46713         * modules/unistr/u8-strspn: New file.
46714         * modules/unistr/u16-strspn: New file.
46715         * modules/unistr/u32-strspn: New file.
46716         * lib/unistr/u8-strspn.c: New file.
46717         * lib/unistr/u16-strspn.c: New file.
46718         * lib/unistr/u32-strspn.c: New file.
46719         * lib/unistr/u-strspn.h: New file.
46720
46721         * modules/unistr/u8-strstr: New file.
46722         * modules/unistr/u16-strstr: New file.
46723         * modules/unistr/u32-strstr: New file.
46724         * lib/unistr/u8-strstr.c: New file.
46725         * lib/unistr/u16-strstr.c: New file.
46726         * lib/unistr/u32-strstr.c: New file.
46727         * lib/unistr/u-strstr.h: New file.
46728
46729         * modules/unistr/u8-strtok: New file.
46730         * modules/unistr/u16-strtok: New file.
46731         * modules/unistr/u32-strtok: New file.
46732         * lib/unistr/u8-strtok.c: New file.
46733         * lib/unistr/u16-strtok.c: New file.
46734         * lib/unistr/u32-strtok.c: New file.
46735         * lib/unistr/u-strtok.h: New file.
46736
46737         * modules/unistr/u8-uctomb: New file.
46738         * modules/unistr/u16-uctomb: New file.
46739         * modules/unistr/u32-uctomb: New file.
46740         * lib/unistr/u8-uctomb.c: New file.
46741         * lib/unistr/u16-uctomb.c: New file.
46742         * lib/unistr/u32-uctomb.c: New file.
46743
46744         * MODULES.html.sh (Unicode string functions): Add the new modules.
46745
46746 2007-01-08  Bruno Haible  <bruno@clisp.org>
46747
46748         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
46749         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
46750         subdirectories.
46751
46752 2007-01-08  Karl Berry  <karl@gnu.org>
46753
46754         * doc/error.texi: mention that main() fns must set program_name
46755         when progname is used.
46756
46757 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
46758
46759         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
46760         WCTYPE_H is empty, for the benefit of builds from non-distclean
46761         directories.  Problem reported by Eric Blake in
46762         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
46763
46764 2007-01-08  Bruno Haible  <bruno@clisp.org>
46765
46766         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
46767         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
46768         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
46769         PROVIDE_CANONICALIZE_FILENAME_MODE.
46770         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
46771
46772 2007-01-08  Bruno Haible  <bruno@clisp.org>
46773
46774         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
46775         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
46776         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
46777         * lib/fts.c: Likewise.
46778         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
46779
46780 2006-12-25  Bruno Haible  <bruno@clisp.org>
46781
46782         * modules/utf8-ucs4-safe: New file.
46783         * lib/utf8-ucs4-safe.h: New file.
46784         * lib/unistr/utf8-ucs4-safe.c: New file.
46785
46786         * modules/utf16-ucs4-safe: New file.
46787         * lib/utf16-ucs4-safe.h: New file.
46788         * lib/unistr/utf16-ucs4-safe.c: New file.
46789
46790         * MODULES.html.sh (Unicode string functions): Add the new modules.
46791
46792 2007-01-08  Bruno Haible  <bruno@clisp.org>
46793
46794         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
46795         (Depends-on): Add unitypes.
46796         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46797         (u8_mbtouc_aux): Move out to separate file.
46798         (u8_mbtouc): Use ucs4_t, uint8_t types.
46799         * lib/unistr/utf8-ucs4.c: New file.
46800
46801         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
46802         (Depends-on): Add unitypes.
46803         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46804         (u16_mbtouc_aux): Move out to separate file.
46805         (u16_mbtouc): Use ucs4_t, uint16_t types.
46806         * lib/unistr/utf16-ucs4.c: New file.
46807
46808         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
46809         (Depends-on): Add unitypes.
46810         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
46811         (u8_uctomb_aux): Move out to separate file.
46812         (u8_uctomb): Use ucs4_t, uint8_t types.
46813         * lib/unistr/ucs4-utf8.c: New file.
46814
46815         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
46816         (Depends-on): Add unitypes.
46817         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
46818         (u16_uctomb_aux): Move out to separate file.
46819         (u16_uctomb): Use ucs4_t, uint16_t types.
46820         * lib/unistr/ucs4-utf16.c: New file.
46821
46822 2006-12-25  Bruno Haible  <bruno@clisp.org>
46823
46824         * modules/unitypes: New file.
46825         * lib/unitypes.h: New file.
46826         * MODULES.html.sh (func_all_modules): New section "Unicode string
46827         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
46828         this section. Add unitypes.
46829
46830 2007-01-08  Bruno Haible  <bruno@clisp.org>
46831
46832         Avoid variable names that conflict with those from libtool.
46833         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
46834         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
46835         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
46836         library_names_spec to acl_library_names_spec, hardcode_* to
46837         acl_hardcode_*.
46838         Reported by Ralf Wildenhues.
46839
46840 2007-01-08  Bruno Haible  <bruno@clisp.org>
46841
46842         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
46843         definition.
46844         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
46845         definition.
46846         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
46847         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
46848         definition.
46849         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
46850         definition.
46851         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
46852         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
46853         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
46854         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
46855         definition.
46856         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
46857         definition.
46858         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
46859         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
46860         GC_USE_<algorithm>.
46861         * lib/gc-libgcrypt.c: Likewise.
46862         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
46863         * modules/gc-arctwo (configure.ac): Likewise.
46864         * modules/gc-des (configure.ac): Likewise.
46865         * modules/gc-hmac-md5 (configure.ac): Likewise.
46866         * modules/gc-hmac-sha1 (configure.ac): Likewise.
46867         * modules/gc-md2 (configure.ac): Likewise.
46868         * modules/gc-md4 (configure.ac): Likewise.
46869         * modules/gc-md5 (configure.ac): Likewise.
46870         * modules/gc-random (configure.ac): Likewise.
46871         * modules/gc-rijndael (configure.ac): Likewise.
46872         * modules/gc-sha1 (configure.ac): Likewise.
46873
46874 2007-01-08  Bruno Haible  <bruno@clisp.org>
46875
46876         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
46877         macro definition.
46878         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
46879         definition.
46880         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
46881         definition.
46882         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
46883         * modules/fcntl-safer (configure.ac): Likewise.
46884         * modules/fopen-safer (configure.ac): Likewise.
46885         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
46886         GNULIB_FWRITEERROR macro definition.
46887
46888 2007-01-08  Bruno Haible  <bruno@clisp.org>
46889
46890         * m4/gnulib-common.m4: New file.
46891         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
46892         (func_get_filelist): Add m4/gnulib-common.m4.
46893
46894 2007-01-08  Bruno Haible  <bruno@clisp.org>
46895
46896         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
46897         command.
46898
46899 2007-01-08  Jim Meyering  <jim@meyering.net>
46900
46901         Use a more robust test for a "can't happen" condition.
46902         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
46903         narrowed the st_size value.  Presuming the "can't happen" condition
46904         is true, that narrowing could conceivably convert an invalid st_size
46905         value into a valid one.  Instead, use a change based on Matthew
46906         Woehlke's original patch.
46907
46908         Slight readability improvement: use an assert-like macro
46909         in place of literal "abort ()" uses.
46910         * lib/fts.c (fts_assert): Define.
46911         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
46912         Use this macro instead of a bare 'abort'.
46913
46914 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
46915
46916         Don't worry about using IRIX 5.3's wctype.h broken definitions;
46917         simply work around them.
46918         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
46919         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
46920         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
46921         declaring.
46922         Don't bother to define as macros, since the standard doesn't require it.
46923         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
46924         longer worry about IRIX 5.3.
46925         (HAVE_WCTYPE_CTMP_BUG): Remove.
46926
46927 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46928
46929         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
46930         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
46931         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46932         Problems reported by Georg Schwarz for IRIX 5.3.
46933
46934         * gnulib-tool (autoconf_minversion): Take the maximum version number
46935         found, not the minimum.  Problem reported by James Youngman.
46936
46937 2007-01-03  Karl Berry  <karl@gnu.org>
46938
46939         * doc/error.texi: new file, explaining interaction with progname.
46940         * doc/gnulib.texi: include it.  Update copyright.
46941
46942 2007-01-03  Simon Josefsson  <simon@josefsson.org>
46943
46944         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
46945         AC_CANONICAL_HOST, to improve autobuild outputs.
46946
46947 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
46948             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46949
46950         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
46951         sockets, server sockets, and other file descriptors.  Count errors
46952         to compute the return value.  Reorder the code a bit to be easier
46953         to follow.  Don't set event bits that were not requested (except
46954         POLLERR and POLLHUP).
46955
46956 2007-01-01  Bruno Haible  <bruno@clisp.org>
46957
46958         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
46959
46960 2007-01-03  Jim Meyering  <jim@meyering.net>
46961
46962         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
46963
46964 2007-01-02  Bruno Haible  <bruno@clisp.org>
46965
46966         * modules/settime (Include): Require timespec.h.
46967         * modules/nanosleep (Include): Likewise.
46968
46969 2007-01-01  Bruno Haible  <bruno@clisp.org>
46970
46971         * gnulib-tool (func_emit_copyright_notice): Bump year.
46972         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
46973
46974 2007-01-01  Bruno Haible  <bruno@clisp.org>
46975
46976         Improve support for OpenBSD.
46977         * build-aux/config.rpath (libname_spec): Export.
46978         (library_names_spec): New variable. Export.
46979         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
46980         library_names_spec from the config.rpath output. Locate shared library
46981         through the name pattern in library_names_spec.
46982
46983 2007-01-01  Eric Blake  <ebb9@byu.net>
46984
46985         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
46986
46987 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
46988
46989         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
46990         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
46991         assume the C locale, and avoid an "eval" that could cause trouble.
46992         Problem with SORT reported by Bob Proulx.
46993
46994         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
46995         Define.  Trivial patch from Henning Nielsen Lund, originally
46996         sent to bug-grep@gnu.org today.
46997
46998 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46999
47000         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
47001         struct stat.  Problem reported by Henning Nielsen Lund.
47002         * lib/acl.c: Include acl.h first, to check interface.  Don't
47003         bother to include sys/types.h and sys/stat.h again.
47004
47005 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
47006
47007         Import the following change from libc; problem reported by
47008         Sven Verdoolaege.
47009
47010         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
47011
47012         [BZ #1373]
47013         * lib/argp.h: Remove __NTH for __argp_usage inline function.
47014
47015 2006-12-28  Jim Meyering  <jim@meyering.net>
47016
47017         * build-aux/announce-gen: Do not assume that the package
47018         builds any of tar.gz, tar.bz2, and .xdelta files.
47019         Suggestion from Simon Josefsson.
47020
47021 2006-12-28  Simon Josefsson  <simon@josefsson.org>
47022
47023         * modules/announce-gen: New file.
47024
47025 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
47026
47027         * lib/mbchar.h: Just include <wctype.h>; the wctype module
47028         handles its gotchas now.
47029         * lib/mbswidth.c: Likewise.
47030         * lib/wcwidth.h: Likewise.
47031         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
47032         and iswcntrl; the wctype module does this stuff now.
47033         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47034         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47035         * modules/mbchar (Depends-on): Add wctype.
47036         * modules/mbswidth (Depends-on): Likewise.
47037         * modules/wcwidth (Depends-on): Likewise.
47038
47039 2006-12-27  Eric Blake  <ebb9@byu.net>
47040
47041         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
47042         module uses more than what <wctype.h> is required to provide.
47043
47044 2006-12-26  Eric Blake  <ebb9@byu.net>
47045
47046         * gnulib-tool (sed_extract_prog): Avoid space-tab.
47047
47048 2006-12-26  Eric Blake  <ebb9@byu.net>
47049
47050         * modules/absolute-header: New module.
47051         * modules/fcntl (Depends-on): Depend on it.
47052         * modules/inttypes (Depends-on): Likewise.
47053         * modules/stdint (Depends-on): Likewise.
47054         * modules/sys_stat (Depends-on): Likewise.
47055         * modules/wctype (Depends-on): Likewise.
47056         * MODULES.html.sh (Support for building libraries and
47057         executables): Document it.
47058
47059 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47060
47061         * gnulib-tool (SED): Remove, undoing previous change.
47062         The problem was that it broke coreutils on Solaris, because
47063         "sed --posix" leaked into a makefile.
47064         (sed): New alias, if 'alias' and GNU sed.
47065
47066 2006-12-24  Jim Meyering  <jim@meyering.net>
47067
47068         Work around an fchownat bug in glibc-2.4:
47069         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
47070         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
47071         in spite of the -P option.
47072         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
47073         New macros.
47074         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
47075         * modules/openat (Files): Add lib/fchownat.c.
47076         * lib/openat.c (fchownat): Don't define here.  Move to...
47077         * lib/fchownat.c: ...this new file.
47078
47079 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
47080
47081         Fix bug reported by Bruno Haible in
47082         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
47083         where quotearg.c didn't compile on Mac OS X 10.2 because it
47084         lacks <wchar.h> and wint_t.
47085         * lib/wctype_.h (__wctype_wint_t): New type.
47086         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
47087         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
47088         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
47089         Arg is now of type __wctype_wint_t, not wint_t.
47090         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
47091         substitute HAVE_WINT_T.
47092         * modules/wctype (Files): Add m4/wint_t.m4.
47093         (wctype.h): Substitute HAVE_WINT_T.
47094
47095 2006-12-23  Bruno Haible  <bruno@clisp.org>
47096
47097         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
47098
47099 2006-12-23  Bruno Haible  <bruno@clisp.org>
47100
47101         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
47102         S_ISLNK.
47103         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
47104         mingw.
47105
47106 2006-12-22  Bruno Haible  <bruno@clisp.org>
47107
47108         * lib/copy-file.c: Include acl.h.
47109         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
47110         Close the file descriptors only after being done with copy_acl.
47111         * modules/copy-file (Depends-on): Add acl.
47112
47113 2006-12-22  Bruno Haible  <bruno@clisp.org>
47114
47115         * gnulib-tool (SED): New variable.
47116         Use $SED instead of sed everywhere.
47117
47118 2006-12-22  Bruno Haible  <bruno@clisp.org>
47119
47120         * modules/no-c++: New file.
47121         * m4/no-c++.m4: New file.
47122         * MODULES.html.sh (Support for building libraries and executables):
47123         Add no-c++.
47124
47125 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
47126
47127         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47128         Include <limits.h>, and use its INT_MAX to rewrite the
47129         j loop so that it does not overflow 'int'.  Problem reported by
47130         Ralf Wildenhues in
47131         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
47132         Play it safe by shifting left by 1 rather than multiplying by 2,
47133         as GCC is less likely to optimize this away when the value
47134         is signed (when it assumes overflow leads to undefined behavior).
47135         Also, don't assume time_t uses two's complement.
47136
47137 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
47138
47139         * MODULES.html.sh: New module wctype.
47140         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
47141         * lib/fnmatch.c: Don't bother to include <wchar.h> before
47142         <wctype.h>, since the new wctype module should fix this.
47143         * lib/quotearg.c: Include <wctype.h> unconditionally, since
47144         the wctype module should arrange for it.
47145         * lib/regex_internal.h: Likewise.
47146         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
47147         since the wctype module should handle this now.
47148         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
47149         * modules/fnmatch (Depends-on): Add wctype.
47150         * modules/quotearg (Depends-on): Likewise.
47151         * modules/regex (Depends-on): Likewise.
47152
47153 2006-12-19  Bruno Haible  <bruno@clisp.org>
47154
47155         * lib/strdup.h [C++]: Wrap definitions in extern "C".
47156         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
47157
47158 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47159
47160         * modules/savewd (Depends-on): Fix dependency on fcntl.
47161
47162 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47163
47164         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
47165         conforms to C99, rather than relying on the user's environment
47166         setting of STDINT_H.
47167
47168 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47169         and Eric Blake  <ebb9@byu.net>
47170
47171         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
47172         This is more consistent with the other defines here.
47173         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
47174         Port to z/OS.  Problem reported by Paul Gilmartin.
47175         Change local vars to use gl_ prefix rather than ac_.
47176         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
47177         with other defines.
47178         * modules/double-slash-root: New module.
47179         * modules/dirname (Files): Remove m4/double-slash-root.m4.
47180         (Depends-on): Add double-slash-root.
47181         * MODULES.html.sh (File system functions): Mention new module.
47182
47183 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
47184
47185         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
47186         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
47187         This is for the benefit of gzip, which doesn't do i18n.
47188
47189 2006-12-12  Jim Meyering  <jim@meyering.net>
47190
47191         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
47192         Reported by Andreas Schwab <schwab@suse.de>.
47193
47194 2006-12-12  Bruno Haible  <bruno@clisp.org>
47195
47196         Merge these changes.
47197         2006-09-05  Bruno Haible  <bruno@clisp.org>
47198         * lib/iconvme.c (iconv_string): No need to save and restore errno when
47199         iconv_alloc succeeded.
47200         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
47201         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
47202         test for " && dest " at the end - dest is always != NULL there. Call
47203         iconv with 4xNULL arguments initially, to reset the state. Call iconv
47204         with 2xNULL arguments, also to flush the state storage. Handle the
47205         IRIX iconv behaviour. Realloc the final result, to throw away unused
47206         memory.
47207
47208 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
47209
47210         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
47211         and fchmodat unconditionally, since glibc 2.4 has them.
47212         Problem reported by Arkadiusz Miskiewicz.
47213
47214 2006-12-10  Bruno Haible  <bruno@clisp.org>
47215
47216         * gnulib-tool (func_import): Show the include files only for those
47217         modules that are copied and specified.
47218         Reported by Karl Berry.
47219
47220 2006-12-08  Jim Meyering  <jim@meyering.net>
47221
47222         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
47223         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
47224
47225         * build-aux/announce-gen: Add two new options, both optional:
47226         --bootstrap-tools=TOOL_LIST
47227               a comma-separated list of tools, e.g.,
47228               autoconf,automake,bison,gnulib
47229         --gnulib-snapshot-date=DATE
47230               if gnulib is in the bootstrap tool list,
47231               then report this as the snapshot date.
47232               If not specified, use the current date/time.
47233               If you specify a date here, be sure it's UTC.
47234
47235 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47236
47237         * tests/test-argp-2.sh: Fix test to match actual output.
47238         (func_compare): Fix sed script to be portable.
47239
47240 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
47241
47242         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
47243         workaround for this case.  It is not autoconfigured now; offhand
47244         it's hard to see how to autoconfigure it.
47245
47246 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47247
47248         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
47249         a directory that is about to be chowned.  Such a directory's
47250         initial file permissions should permit the owner only and this
47251         should not be changed until after the chown, since the group and
47252         other bits would be incorrect if they granted permission before
47253         the chown.
47254
47255         Fix porting problem for iswctype reported by Georg Schwarz in:
47256         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
47257         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
47258         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
47259         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
47260         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47261
47262 2006-12-03  Jim Meyering  <jim@meyering.net>
47263
47264         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
47265         p->fts_statp may not yet be defined.
47266         (fts_read): Instead, set it in the caller, once p->fts_statp is
47267         sure to be defined, and corresponds to a top-level directory.
47268         This bug made du -x fail.  Here's the coreutils test case:
47269         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
47270         Reported by Mike Frysinger.
47271
47272 2006-12-01  Jim Meyering  <jim@meyering.net>
47273
47274         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
47275         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
47276         Reported by Simon Josefsson.
47277
47278 2006-11-30  Jim Meyering  <jim@meyering.net>
47279
47280         * m4/warning.m4: Use the all-permissive copyright notice
47281         recommended by RMS (rather than LGPL).
47282         * m4/vararrays.m4: Likewise.
47283         * m4/flexmember.m4: Likewise.
47284
47285 2006-11-29  Bruno Haible  <bruno@clisp.org>
47286
47287         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47288         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
47289         using +=.
47290         Reported by Simon Josefsson <simon@josefsson.org>.
47291
47292 2006-11-28  James Youngman <jay@gnu.org>
47293
47294         * README: Advise users that they might find the bug-gnulib@gnu.org
47295         and autotools-announce@gnu.org mailing lists useful.
47296
47297 2006-11-28  Bruno Haible  <bruno@clisp.org>
47298
47299         * m4/ptrdiff_max.m4: Remove file.
47300
47301 2006-11-21  Bruno Haible  <bruno@clisp.org>
47302
47303         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
47304         _AC_COMPUTE_INT.
47305         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47306         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
47307         _AC_COMPUTE_INT.
47308         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47309         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
47310         _AC_COMPUTE_INT.
47311         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47312
47313 2006-11-28  Jim Meyering  <jim@meyering.net>
47314
47315         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
47316         warning from "gcc -Wshadow" about shadowing the builtin.
47317
47318 2006-11-27  Bruno Haible  <bruno@clisp.org>
47319
47320         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
47321         _AC_COMPUTE_INT.
47322         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47323
47324 2006-11-27  Bruno Haible  <bruno@clisp.org>
47325             Paul Eggert  <eggert@cs.ucla.edu>
47326
47327         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
47328
47329 2006-11-26  Bruno Haible  <bruno@clisp.org>
47330
47331         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47332         noinst_LTLIBRARIES.
47333
47334 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
47335             Bruno Haible  <bruno@clisp.org>
47336
47337         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
47338         if compiling with "gcc -ansi".
47339
47340 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
47341
47342         Fix some incompatibilities with gcc -ansi -pedantic.
47343         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
47344         if compiling pedantically with GCC, unless it's C99 or later.
47345         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
47346         it mishandles gcc -ansi -pedantic as well.
47347         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
47348         if gcc -pedantic.
47349         * lib/regexec.c (check_node_accept_bytes): Don't use auto
47350         initializers for struct if -pedantic, unless it's C99 or later.
47351
47352 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
47353
47354         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
47355         Don't close an fd more than once. Identical atimes indicate
47356         success, not failure.
47357
47358 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
47359
47360         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
47361
47362 2006-11-23  Jim Meyering  <jim@meyering.net>
47363
47364         * build-aux/announce-gen: New file.  From coreutils.
47365
47366 2006-11-22  Jim Meyering  <jim@meyering.net>
47367
47368         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
47369         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
47370         (fts_read): Use a temporary to narrow the overused st_size member
47371         before using it in a switch statement.  Reported by Matthew Woehlke.
47372
47373         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
47374         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
47375
47376 2006-11-20  Bruno Haible  <bruno@clisp.org>
47377
47378         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
47379         changequote instead of pairs of brackets.
47380         Reported by Andreas Schwab <schwab@suse.de>.
47381
47382 2006-11-21  Jim Meyering  <jim@meyering.net>
47383
47384         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
47385         so as to remain compatible with older compilers.
47386         Patch from Michael Deutschmann.
47387
47388 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47389
47390         * MODULES.html.sh (File system functions): Add openat.
47391
47392         * lib/openat.h (rpl_fstatat): New macro, if
47393         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
47394         (fstatat): Define to rpl_fstatat under the same conditions,
47395         unless COMPILING_FSTATAT.
47396         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
47397         seems to have the bug.
47398         * lib/fstatat.c: New file.
47399         * modules/openat (Files): Add it.
47400
47401 2006-11-20  Bruno Haible  <bruno@clisp.org>
47402
47403         * Makefile: New file.
47404
47405 2006-11-20  Jim Meyering  <jim@meyering.net>
47406
47407         The beginnings of syntax-related checks for gnulib.
47408         * lib/Makefile: New file.
47409         * lib/t-idcache: New script.  Ensure that the two halves of
47410         idcache.c stay in sync.
47411
47412         * lib/idcache.c: Adjust comments in user- and group- portions to
47413         be more accurate, and to be consistent with one another.
47414
47415 2006-11-20  Jim Meyering  <jim@meyering.net>
47416
47417         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
47418         continue using the flexible array member (thus, this module performs
47419         half as many malloc calls), with the addition that...
47420         (getgroup, getuser): Consistently record a non-match via an empty
47421         "name" string, and map an empty string match to a NULL return value.
47422         * modules/idcache (Depends-on): Re-add flexmember.
47423
47424         * lib/idcache.c (getuser): Remove all uses of the register keyword.
47425         (getuidbyname, getgroup, getgidbyname): Likewise.
47426
47427         Use cleaner syntax: NULL rather than 0.
47428         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
47429
47430 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47431
47432         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
47433         It mishandled the case where the group was missing.
47434         Problem reported by Greg Schafer.
47435         * modules/idcache: Likewise.
47436
47437 2006-11-18  Jim Meyering  <jim@meyering.net>
47438
47439         * check-module (%exempt_header): Add exception for some
47440         conditionally-included headers.
47441
47442         * modules/i-ring (Depends-on): Add verify.
47443         (License): Change to LGPL.
47444
47445 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47446
47447         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
47448         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
47449         and inttostr.h.  Use snprintf rather than uinttostr, so that
47450         LGPLed code doesn't depend on GPLed.
47451
47452 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47453
47454         * modules/inline (License): Change from GPL to LGPL.
47455
47456 2006-11-17  Jim Meyering  <jim@meyering.net>
47457
47458         * modules/d-type (License): Switch to LGPL.
47459
47460 2006-11-15  Bruno Haible  <bruno@clisp.org>
47461
47462         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
47463
47464 2006-11-15  Eric Blake  <ebb9@byu.net>
47465
47466         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
47467         the module dependency.
47468
47469 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47470             Bruno Haible  <bruno@clisp.org>
47471
47472         * gnulib-tool (func_create_testdir): Add license consistency check.
47473
47474 2006-11-15  Eric Blake  <ebb9@byu.net>
47475
47476         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
47477         random "(cached)" in configure output.
47478
47479 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47480
47481         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
47482         test for conforming inttypes.h is both announced and cached.
47483
47484         * MODULES.html.sh (seen_modules, seen_files): New variables.
47485         (func_module): Rewrite to use a few less gnulib-tool and sed
47486         invocations.  Avoid a couple of quadratic algorithms for ...
47487         (missed_modules, missed_files): ... these, with ...
47488         (func_append, func_tmpdir): ... these new functions, from
47489         gnulib-tool.  Analogously, install traps for cleanup.
47490
47491         * tests/test-gc.c (main): Remove unused variables.
47492         * tests/test-read-file.c: Include stdlib.h, for 'free'.
47493
47494 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
47495
47496         * modules/inttostr (License): Change to LGPL.
47497
47498 2006-11-14  Eric Blake  <ebb9@byu.net>
47499
47500         * modules/tempname (License): Change to LGPL.
47501
47502 2006-11-14  Eric Blake  <ebb9@byu.net>
47503
47504         * doc/functions.texi (Function Portability): *printf functions on
47505         Cygwin now understand all POSIX size specifiers.
47506
47507 2006-11-14  Bruno Haible  <bruno@clisp.org>
47508
47509         * modules/c-ctype (License): Change to LGPL.
47510
47511 2006-11-12  Bruno Haible  <bruno@clisp.org>
47512
47513         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47514         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
47515         for GNOME libraries, for which the include files are installed in
47516         subdirectories of $prefix/include.
47517
47518 2006-11-12  Bruno Haible  <bruno@clisp.org>
47519
47520         * m4/lib-link.m4: Require at least autoconf-2.54.
47521         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
47522         name to underscores for the --with option.
47523
47524 2006-11-13  Bruno Haible  <bruno@clisp.org>
47525
47526         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
47527         the tests directory.
47528         Reported by Ralf Wildenhues.
47529
47530 2006-11-13  Bruno Haible  <bruno@clisp.org>
47531
47532         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
47533         (func_emit_initmacro_end): Undo the override here.
47534         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
47535         Works around the famous automake error in coreutils.
47536
47537 2006-11-13  Eric Blake  <ebb9@byu.net>
47538
47539         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
47540         element, not its node.
47541
47542 2006-11-12  Bruno Haible  <bruno@clisp.org>
47543
47544         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
47545         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
47546
47547 2006-11-12  Bruno Haible  <bruno@clisp.org>
47548
47549         * gnulib-tool: New option --local-symlink.
47550         (func_usage): Document it.
47551         (lsymbolic): New variable.
47552         (func_import, func_create_testdir): If --symlink was not specified,
47553         test whether --local-symlink was specified and the file comes from
47554         the local_gnulib_dir.
47555
47556 2006-11-12  Bruno Haible  <bruno@clisp.org>
47557
47558         * gnulib-tool (func_ln): New function.
47559         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
47560
47561 2006-11-12  Bruno Haible  <bruno@clisp.org>
47562
47563         Finish support for source files in subdirectories.
47564         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
47565         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
47566         AUTOMAKE_OPTIONS.
47567         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
47568
47569 2006-11-12  Bruno Haible  <bruno@clisp.org>
47570
47571         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47572         EXTRA_lib_SOURCES augmentation.
47573         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
47574
47575 2006-11-12  Jim Meyering  <jim@meyering.net>
47576
47577         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
47578         file descriptors.  This also averts a failure on systems with
47579         native openat support when a traversed directory lacks "x" access.
47580         * lib/fts_.h: Include "i-ring.h"
47581         (struct FTS) [fts_fd_ring]: New member.
47582         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
47583         (FCHDIR): Add parentheses.
47584         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
47585         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
47586         When descending, rather than simply closing the previous
47587         fts_cwd_fd value, push that file descriptor onto the ring.
47588         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
47589         (fts_open): Initialize the new fd_ring member.
47590         (fts_close): Clear the ring.
47591         (fts_safe_changedir): When possible, use our new fd_ring to skip
47592         the diropen and fstat and dev/ino comparison that would normally
47593         accompany a virtual `chdir ("..")'.
47594
47595         * modules/fts (Depends-on): Add i-ring.
47596         * modules/i-ring: New module.
47597         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
47598         * m4/i-ring.m4: New file.
47599
47600 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47601
47602         * gnulib-tool (func_create_testdir): Fix replacement of
47603         `build-aux' in configure.ac.  Run autotools in gltests
47604         subdirectory.
47605         (func_create_testdir, func_create_megatestdir, test): There is
47606         no need for '--force' in most autotool invocations in a new
47607         tree.  Actually fail the whole test if any of the tools, or the
47608         configure or make stages fail.
47609
47610         Sync from Automake.
47611         * build-aux/gnupload: Revert last change.  Add pointer to upload
47612         instructions of the GNU Maintenance Instructions.
47613         Suggestion by Karl Berry.
47614
47615 2006-11-10  Jim Meyering  <jim@meyering.net>
47616
47617         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
47618
47619 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47620
47621         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
47622         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
47623         (bind_textdomain_codeset) [! ENABLE_NLS]:
47624         Evaluate all the arguments.  That way, callers get compatible behavior
47625         if the arguments have side effects.  Also, it avoids some GCC
47626         diagnostics in some cases; Joel E. Denny reported problems when Bison
47627         was configured with --enable-gcc-warnigs.
47628
47629 2006-11-10  Jim Meyering  <jim@meyering.net>
47630
47631         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
47632         relevant options in CFLAGS (like -O, -fno-inline) are taken into
47633         account.
47634
47635 2006-11-10  Jim Meyering  <jim@meyering.net>
47636
47637         * modules/inline: New file/module.
47638         * modules/xalloc (Files): Remove m4/inline.m4.
47639         (Depends-on): Add inline, instead.
47640         * modules/oset: Likewise.
47641         * modules/list: Likewise.
47642
47643 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47644
47645         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
47646         Problem reported by Matthew Woehlke.
47647
47648 2006-11-09  Bruno Haible  <bruno@clisp.org>
47649
47650         * lib/tempname.c (gen_tempname): Remove variant that invokes
47651         __gen_tempname.
47652         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
47653         __gen_tempname.
47654
47655 2006-11-08  Bruno Haible  <bruno@clisp.org>
47656
47657         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
47658         to 'yes' instead of 'cross-compiling'.
47659
47660 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
47661
47662         * lib/quotearg.h (quotearg_free): New decl.
47663         * lib/quotearg.c (quotearg_free): New function.
47664         (slot0, nslots, slotvec0, slotvec):
47665         Now file-scope so that quotearg_free can get at them.
47666
47667 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47668
47669         Sync from Automake.
47670         * build-aux/gnupload: Add missing 'gnu' to example URL.
47671         Report by Karl Berry.
47672
47673 2006-11-08  Bruno Haible  <bruno@clisp.org>
47674
47675         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
47676         Suggested by Paul Eggert.
47677
47678 2006-11-08  Jim Meyering  <jim@meyering.net>
47679
47680         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
47681         It's already included if !_LIBC.
47682         (fts_safe_changedir): Add a comment.
47683
47684 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47685
47686         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
47687         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
47688         Matthew Woehlke.
47689
47690         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
47691         definitions up, to avoid colliding with change below.
47692         (static_inline) [HAVE_INLINE]: New macro.
47693         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
47694         Provide extern decls when !HAVE_INLINE.  Do not define unless
47695         static_inline is defined, either by us or by xmalloc.c.  Use
47696         static_inline rather than static inline.
47697         (XCALLOC): Optimize sizeof(T) = 1 case.
47698         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
47699
47700 2006-11-07  Bruno Haible  <bruno@clisp.org>
47701
47702         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
47703         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
47704         AC_C_INLINE.
47705         * modules/xalloc (Files): Add m4/inline.m4.
47706
47707 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47708
47709         * README: Fix typo.
47710         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
47711         (Miscellanous Notes): ...from this.
47712
47713 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47714
47715         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
47716         Mention that offsetof should be used instead of sizeof.
47717         From Bruno Haible.
47718
47719 2006-11-07  Bruno Haible  <bruno@clisp.org>
47720
47721         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
47722
47723 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47724
47725         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47726         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
47727         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47728         (gl_tree_add_before, gl_tree_add_after):
47729         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
47730         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
47731         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47732         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
47733         (gl_linked_add_after, gl_linked_add_at): Likewise.
47734         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
47735         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47736         (gl_tree_add_before, gl_tree_add_after): Likewise.
47737         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
47738         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
47739         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
47740
47741 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47742
47743         * lib/gl_oset.h: Use C comment style, not C++ comment style.
47744
47745 2006-11-06  Bruno Haible  <bruno@clisp.org>
47746
47747         * m4/inline.m4: New file.
47748         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
47749         * modules/list (Files): Add m4/inline.m4.
47750         * modules/oset (Files): Likewise.
47751
47752 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47753
47754         * lib/idcache.c: Include <stddef.h>, for offsetof.
47755         (struct userid.name): Change from char * to a flexible array member.
47756         All uses changed.
47757         * modules/idcache (Depends-on): Add flexmember.
47758
47759         * MODULES.html.sh (Core language properties): New module flexmember.
47760         * modules/flexmember, m4/flexmember.m4: New files.
47761
47762         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
47763         inline functions that are identical with the old xnmalloc_inline,
47764         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
47765         that we can avoid some unnecessary integer multiplications and
47766         divisions in the common case where the element size is known at
47767         compile time.
47768         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
47769         needed.
47770         (xnboundedmalloc): Remove.
47771         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
47772         arguments, for consistency with rest of this header.
47773         (xcharalloc): Rewrite using XNMALLOC.
47774         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
47775         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
47776         versions have been moved to lib/xalloc.h and renamed to be the
47777         non-*_inline versions.
47778         (xmalloc, xrealloc): Implement without reference to the xnmalloc
47779         and xnrealloc functions, since those functions are now inline and
47780         now call us.
47781         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
47782         renaming described above.
47783         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
47784         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
47785         captures the dependency in AC_C_INLINE.
47786
47787         New module canonicalize-lgpl, proposed by Charles Wilson in
47788         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
47789         with a few small changes afterwards.
47790         * MODULES.html.sh (File system functions): New module
47791         canonicalize-lgpl.
47792         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
47793         and canonicalize_file_name.
47794         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
47795         * modules/canonicalize-lgpl: New files.
47796
47797 2006-11-05  Bruno Haible  <bruno@clisp.org>
47798
47799         * gnulib-tool (func_import, func_create_testdir): Create directories
47800         also for files in subdirectories of lib/.
47801
47802 2006-11-05  Bruno Haible  <bruno@clisp.org>
47803
47804         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
47805         ANSI C compliant.
47806
47807 2006-11-03  Bruno Haible  <bruno@clisp.org>
47808
47809         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47810         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
47811         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
47812         (xnboundedmalloc): New inline function.
47813         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
47814         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
47815         xmalloc.
47816         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
47817         xmalloc.
47818         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
47819         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
47820         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
47821         xmalloc.
47822         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47823         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
47824         xmalloc.
47825         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
47826         gl_tree_add_after): Use XMALLOC instead of xmalloc.
47827         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
47828         xmalloc.
47829         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47830         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
47831         gl_tree_add_after): Use XMALLOC instead of xmalloc.
47832         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
47833         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
47834         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
47835         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
47836
47837 2006-11-03  Bruno Haible  <bruno@clisp.org>
47838
47839         * lib/c-ctype.h [C++]: Define functions without name mangling.
47840         * lib/fwriteerror.h [C++]: Likewise.
47841         * lib/gcd.h [C++]: Likewise.
47842         * lib/linebreak.h [C++]: Likewise.
47843
47844 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
47845
47846         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
47847         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
47848         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
47849         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
47850         Check for functions and headers just once.
47851         Check for declaration of canonicalize_file_name.
47852         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
47853
47854 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
47855
47856         * gnulib-tool (func_import): Fix typo in actioncmd.
47857
47858 2006-11-02  Bruno Haible  <bruno@clisp.org>
47859
47860         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
47861         newline sequence in the Makefile.am snippet as a space, like "make"
47862         does.
47863         Reported by Roger Persson <perrog@gmail.com>.
47864
47865 2006-11-01  Bruno Haible  <bruno@clisp.org>
47866
47867         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
47868         already declared in <string.h>.
47869         * lib/strcase.h (strncasecmp): Don't declare it if yes.
47870
47871 2006-11-01  Bruno Haible  <bruno@clisp.org>
47872
47873         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
47874         * lib/strcase.h: Include <string.h>.
47875         (strcasecmp): Define to rpl_strcasecmp here.
47876
47877 2006-11-01  Bruno Haible  <bruno@clisp.org>
47878
47879         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
47880
47881 2006-11-01  Eric Blake  <ebb9@byu.net>
47882
47883         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
47884
47885         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
47886
47887 2006-10-29  Bruno Haible  <bruno@clisp.org>
47888
47889         Make it compile in C++ mode.
47890         * lib/full-write.c (full_rw): Add a cast.
47891
47892 2006-11-01  Bruno Haible  <bruno@clisp.org>
47893
47894         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
47895         be POSIX compliant.
47896         Reported by Roger Persson <perrog@gmail.com>.
47897
47898 2006-11-01  Eric Blake  <ebb9@byu.net>
47899
47900         * lib/getopt_.h: Fix comments.
47901
47902 2006-10-31  Eric Blake  <ebb9@byu.net>
47903
47904         * modules/tmpdir (Depends-on): Add sys_stat.
47905         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
47906         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
47907         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
47908         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
47909         tempname.
47910
47911 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
47912
47913         Avoid some C++ diagnostics reported by Bruno Haible.
47914         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
47915         xmalloc.
47916         (quotearg_alloc): Use xcharalloc rather than xmalloc.
47917         (struct slotvec): Move to top level.
47918         (quotearg_n_options): Rewrite to avoid xmalloc.
47919         * lib/xalloc.h (xcharalloc): New function.
47920         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
47921         [defined __cplusplus]: Add function template that provides result
47922         type propagation.  This part of the change is from Bruno Haible.
47923
47924 2006-10-29  Bruno Haible  <bruno@clisp.org>
47925
47926         Make it compile in C++ mode.
47927         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
47928         * lib/strnlen1.c (strnlen1): Cast memchr result.
47929         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
47930         * lib/clean-temp.c (string_equals, string_hash): Add casts.
47931         (create_temp_dir): Rename local variable 'template'.
47932         (compile_csharp_using_sscli): Add cast.
47933         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
47934         * lib/findprog.c (find_in_path): Likewise.
47935         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
47936         * lib/wait-process.c (register_slave_subprocess): Likewise.
47937
47938 2006-10-22  Bruno Haible  <bruno@clisp.org>
47939
47940         * modules/tsearch: New file.
47941         * lib/tsearch.h: New file.
47942         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
47943         * m4/tsearch.m4: New file.
47944         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
47945
47946 2006-10-29  Eric Blake  <ebb9@byu.net>
47947
47948         * lib/arcfour.c: Assume config.h.
47949         * lib/arctwo.c: Likewise.
47950         * lib/base64.c: Likewise.
47951         * lib/check-version.c: Likewise.
47952         * lib/crc.c: Likewise.
47953         * lib/des.c: Likewise.
47954         * lib/gc-gnulib.c: Likewise.
47955         * lib/gc-libgcrypt.c: Likewise.
47956         * lib/gc-pbkdf2-sha1.c: Likewise.
47957         * lib/getaddrinfo.c: Likewise.
47958         * lib/getdelim.c: Likewise.
47959         * lib/getline.c: Likewise.
47960         * lib/hmac-md5.c: Likewise.
47961         * lib/hmac-sha1.c: Likewise.
47962         * lib/iconvme.c: Likewise.
47963         * lib/md2.c: Likewise.
47964         * lib/md4.c: Likewise.
47965         * lib/memxor.c: Likewise.
47966         * lib/read-file.c: Likewise.
47967         * lib/readline.c: Likewise.
47968         * lib/rijndael-alg-fst.c: Likewise.
47969         * lib/rijndael-api-fst.c: Likewise.
47970         * lib/xgetdomainname.c: Likewise.
47971
47972 2006-10-28  Eric Blake  <ebb9@byu.net>
47973
47974         * lib/xstrndup.c: Assume config.h.
47975
47976 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
47977
47978         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
47979         stat-macros.h is now for our own macros, whereas stat_h is for
47980         macros in the <sys/stat.h> name space.
47981         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
47982         (STAT_MACROS_H): Remove.
47983         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
47984         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
47985         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
47986         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
47987         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
47988         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
47989         Move these macros to ...
47990         * lib/stat_.h: here.  Don't include stat-macros.h.
47991         * lib/canonicalize.c: Don't include stat-macros.h.
47992         * lib/chown.c: Likewise.
47993         * lib/euidaccess.c: Likewise.
47994         * lib/file-type.c: Likewise.
47995         * lib/filemode.c: Likewise.
47996         * lib/glob.c: Likewise.
47997         * lib/isapipe.c: Likewise.
47998         * lib/lchown.c: Likewise.
47999         * lib/lstat.c: Likewise.
48000         * lib/mkdir-p.c: Likewise.
48001         * lib/rmdir.c: Likewise.
48002         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
48003         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
48004         unless mkdir isn't declared, to speed up 'configure'.
48005         Always create sys/stat.h, since it's unlikely any real sys/stat.h
48006         would define all the S_* symbols.
48007         * modules/canonicalize (Depends-on):
48008         Depend on sys_stat, not stat-macros.
48009         * modules/chown: Likewise.
48010         * modules/euidaccess: Likewise.
48011         * modules/filemode: Likewise.
48012         * modules/file-type: Likewise.
48013         * modules/glob: Likewise.
48014         * modules/isapipe: Likewise.
48015         * modules/lchown: Likewise.
48016         * modules/lstat: Likewise.
48017         * modules/mkancesdirs: Likewise.
48018         * modules/rmdir: Likewise.
48019         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
48020         * modules/modechange: Likewise.
48021         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
48022         (configure.ac): Remove gl_STAT_MACROS.
48023         * modules/sys_stat (Depends-on): Remove stat-macros.
48024
48025 2006-10-27  Bruno Haible  <bruno@clisp.org>
48026
48027         * m4/signed.m4: Remove file.
48028         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
48029         invocation.
48030         * modules/vasnprintf (Files): Remove m4/signed.m4.
48031
48032 2006-10-27  Bruno Haible  <bruno@clisp.org>
48033
48034         Update to GNU gettext 0.16.
48035         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
48036         m4/inttypes-h.m4, m4/signed.m4.
48037         * m4/gettext.m4: Update to GNU gettext 0.16.
48038         * m4/intl.m4: New file, from GNU gettext.
48039         * m4/intldir.m4: New file, from GNU gettext.
48040         * config/srclist.txt: Update
48041
48042 2006-10-27  Eric Blake  <ebb9@byu.net>
48043
48044         * MODULES.html.sh: Document tempname.
48045         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
48046         dependencies.
48047         (Files): Move lib/tempname.c...
48048         * modules/tempname: ...to this new module.
48049         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
48050         (gl_PREREQ_TEMPNAME): Move...
48051         * m4/tempname.m4: ...to this new file.
48052         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
48053         * modules/sys_stat (Depends-on): Add stat-macros.
48054         * lib/stat_.h (includes): Pick up stat macros.
48055         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
48056         if stat macros are broken.
48057         * lib/tempname.c (includes): No need to include "stat-macros.h".
48058         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
48059         (direxists, __path_search) [!_LIBC]: Don't compile these in
48060         gnulib; the tmpdir module covers that.
48061         * lib/tempname.h: New file.
48062
48063 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
48064
48065         * COPYING: Explain how gnulib-tool converts licence headers.
48066         Almost all wording by Eric Blake.
48067
48068 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
48069
48070         * lib/mbchar.h (is_basic_table): Make read-only.
48071         * lib/mbchar.c (is_basic_table): Likewise.
48072         Reported by John Darrington.
48073
48074 2006-10-25  Bruno Haible  <bruno@clisp.org>
48075
48076         * lib/progname.h (set_program_name): Undefine before defining.
48077
48078 2006-10-25  Bruno Haible  <bruno@clisp.org>
48079
48080         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
48081         false for non-gcc C++ compilers.
48082         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48083
48084 2006-10-24  Bruno Haible  <bruno@clisp.org>
48085
48086         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
48087         iconv implementations like Irix iconv.
48088
48089 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48090
48091         * modules/vararrays: New file.
48092         * m4/vararrays.m4: New file, taken from diffutils.
48093         * MODULES.html.sh: New module vararrays.
48094
48095 2006-10-24  Karl Berry  <karl@gnu.org>
48096
48097         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
48098         Don't call GNU Unix.
48099
48100 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48101
48102         * users.txt: Add Libtool.
48103
48104         Sync from Libtool:
48105
48106         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48107
48108         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
48109         to gnulib's policy of including config.h unconditionally.
48110
48111 2006-10-24  Bruno Haible  <bruno@clisp.org>
48112
48113         * modules/wcwidth (Files): Add m4/wint_t.m4.
48114         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
48115         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
48116
48117 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48118
48119         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
48120         to pacify GCC with some -W flags enabled.  Problem reported by
48121         Bruno Haible.
48122
48123 2006-10-24  Jim Meyering  <jim@meyering.net>
48124
48125         * MODULES.html.sh: Remove uinttostr.  It's not a module.
48126         Reported by Karl Berry.
48127
48128 2006-10-23  Bruno Haible  <bruno@clisp.org>
48129
48130         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
48131
48132 2006-10-24  Bruno Haible  <bruno@clisp.org>
48133
48134         * lib/gl_list.h: Use C comment style, not C++ comment style.
48135
48136 2006-10-23  Eric Blake  <ebb9@byu.net>
48137
48138         * lib/getaddrinfo.c (includes): Add missing include.
48139
48140 2006-10-23  Bruno Haible  <bruno@clisp.org>
48141             Paul Eggert  <eggert@cs.ucla.edu>
48142
48143         Ability to rename obstack_free.
48144         * lib/obstack.h (__obstack_free): New macro. Declare instead of
48145         obstack_free.
48146         (obstack_free): Invoke the __obstack_free macro.
48147         * lib/obstack.c (obstack_free): Use __obstack_free macro.
48148
48149 2006-10-23  Bruno Haible  <bruno@clisp.org>
48150             Paul Eggert  <eggert@cs.ucla.edu>
48151
48152         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
48153         __argc, __argv from the declaration. (They are defined as macros on
48154         mingw.)
48155
48156 2006-10-22  Bruno Haible  <bruno@clisp.org>
48157
48158         * doc/gnulib-intro.texi: New file.
48159         * doc/gnulib.texi: Include it.
48160
48161 2006-10-21  Bruno Haible  <bruno@clisp.org>
48162
48163         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
48164         "Introduction", "Miscellanous Notes", "Particular Modules".
48165
48166 2006-10-21  Bruno Haible  <bruno@clisp.org>
48167
48168         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48169         Change mostlyclean-local rule to avoid sh syntax error from bash
48170         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
48171
48172 2006-10-23  Jim Meyering  <jim@meyering.net>
48173
48174         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
48175         in place of snprintf.
48176
48177         * modules/inttostr (Files): Add lib/uinttostr.c.
48178         * lib/uinttostr.c (inttostr): New file/function.
48179         * lib/inttostr.h (uinttostr): Declare.
48180         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
48181         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48182         Add uinttostr.
48183         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
48184
48185 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48186
48187         * lib/canonicalize.c (ELOOP): Define if not already defined.
48188         Problem reported by Bruno Haible in
48189         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
48190
48191 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48192
48193         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
48194         Problem reported by Perry Smith and Ville Laurikari.
48195
48196         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
48197         uses.
48198
48199 2006-10-19  Bruno Haible  <bruno@clisp.org>
48200
48201         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
48202         for mingw.
48203
48204 2006-10-19  Bruno Haible  <bruno@clisp.org>
48205
48206         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
48207         Needed for mingw.
48208
48209 2006-10-19  Bruno Haible  <bruno@clisp.org>
48210
48211         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
48212
48213 2006-10-19  Bruno Haible  <bruno@clisp.org>
48214
48215         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
48216         it.
48217
48218 2006-10-19  Bruno Haible  <bruno@clisp.org>
48219
48220         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
48221         invocation.
48222
48223 2006-10-19  Bruno Haible  <bruno@clisp.org>
48224
48225         * gnulib-tool (func_create_testdir): Don't include ftruncate and
48226         mountlist by default.
48227
48228 2006-10-16  Bruno Haible  <bruno@clisp.org>
48229
48230         * lib/c-strstr.c: Include c-strstr.h.
48231
48232 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48233
48234         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
48235         in a slash.
48236
48237 2006-10-18  Bruno Haible  <bruno@clisp.org>
48238
48239         * lib/lock.h [C++]: Wrap definitions in extern "C".
48240
48241 2006-10-18  Bruno Haible  <bruno@clisp.org>
48242
48243         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
48244         gl_LIBOBJS list.
48245
48246 2006-10-18  Bruno Haible  <bruno@clisp.org>
48247
48248         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
48249
48250 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
48251
48252         * lib/xstrtol.h: Include gettext.h.
48253         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
48254         Problem reported by Eric Blake.
48255         * modules/xstrtol (Depends-on): Add gettext-h.
48256
48257 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
48258
48259         * lib/strftime.c (advance): New macro.
48260         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
48261         incomplete type, so you can't add 0 to it.  Problem and patch
48262         reported by Eelco Dolstra for dietlibc.
48263
48264 2006-10-18  Jim Meyering  <jim@meyering.net>
48265
48266         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
48267         type for a local, and rename it: s/up/user_proc/.
48268
48269 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48270
48271         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
48272         READ_UTMP_USER_PROCESS.
48273         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
48274
48275 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48276
48277         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
48278         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
48279
48280 2006-10-17  Eric Blake  <ebb9@byu.net>
48281
48282         * lib/sigprocmask.c (sigprocmask): Fix typo.
48283
48284         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
48285
48286         * modules/clean-temp (Makefile.am): Don't add to make output...
48287         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
48288         config.h.
48289
48290 2006-10-17  Bruno Haible  <bruno@clisp.org>
48291
48292         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
48293         differently if DEFAULT_TEXT_DOMAIN is set.
48294
48295 2006-10-16  Bruno Haible  <bruno@clisp.org>
48296
48297         * lib/clean-temp.c: Include fwriteerror.h.
48298
48299 2006-10-16  Bruno Haible  <bruno@clisp.org>
48300
48301         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
48302
48303 2006-10-16  Bruno Haible  <bruno@clisp.org>
48304
48305         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
48306         * lib/sigprocmask.h: Include <sys/types.h>.
48307         (sigset_t): Use the system's definition if present.
48308
48309 2006-10-17  Eric Blake  <ebb9@byu.net>
48310
48311         * lib/xvasprintf.c (includes): Assume config.h.
48312         * lib/xasprintf.c (includes): Likewise.
48313
48314 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48315
48316         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
48317         at least as wide as intmax_t.
48318
48319 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
48320
48321         (Imported from Automake.)
48322         * build-aux/gnupload: Update to version 1.1 of directive file.
48323
48324 2006-10-16  Eric Blake  <ebb9@byu.net>
48325
48326         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
48327         match Automake 1.10a.
48328
48329 2006-10-14  Bruno Haible  <bruno@clisp.org>
48330
48331         * modules/sigprocmask: New file.
48332         * lib/sigprocmask.h: New file.
48333         * lib/sigprocmask.c: New file.
48334         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
48335         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
48336         request sigprocmask.o.
48337         (gl_PREREQ_SIGPROCMASK): New macro.
48338         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
48339         (Depends-on): Add sigprocmask.
48340         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
48341         gt_SIGNALBLOCKING. Test for 'raise' only once.
48342         * lib/fatal-signal.c: Include sigprocmask.h.
48343         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
48344         unblock_fatal_signals): Define always.
48345         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48346         sigprocmask.
48347
48348 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48349
48350         Sync from Automake.
48351         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
48352         which incorrectly sets the mode of an existing destination
48353         directory.  In some cases the unpatched install-sh could do the
48354         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
48355         system.  We hope this is rare in practice, but it's clearly worth
48356         fixing.  Problem reported by Alex Unleashed in
48357         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
48358         Also, don't bother to check for -m bugs unless we're using -m;
48359         suggested by Stepan Kasal.
48360
48361 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48362
48363         Sync from Automake.
48364         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
48365         `-c' flag, so they appear at the same position as in %FASTDEP%
48366         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
48367         which ignores unknown options only after the first non-option.
48368         Bug report against M4 by Nelson H. F. Beebe.
48369
48370 2006-10-13  Jim Meyering  <jim@meyering.net>
48371
48372         Fix a bug in yesterday's change.
48373         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
48374         p->fts_statp->st_dev would be used uninitialized.
48375         Ensures that we always call fts_stat on the very first entry.
48376         Miklos Szeredi reported that find -xdev stopped working.
48377
48378 2006-10-12  Bruno Haible  <bruno@clisp.org>
48379
48380         * gnulib-tool (func_get_automake_snippet): Append an automatically
48381         computed EXTRA_DIST augmentation.
48382         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
48383         * modules/alloca-opt (Makefile.am): Likewise.
48384         * modules/allocsa (Makefile.am): Likewise.
48385         * modules/arcfour (Makefile.am): Likewise.
48386         * modules/arctwo (Makefile.am): Likewise.
48387         * modules/argmatch (Makefile.am): Likewise.
48388         * modules/argz (Makefile.am): Likewise.
48389         * modules/atexit (Makefile.am): Likewise.
48390         * modules/backupfile (Makefile.am): Likewise.
48391         * modules/byteswap (Makefile.am): Likewise.
48392         * modules/c-strtod (Makefile.am): Likewise.
48393         * modules/c-strtold (Makefile.am): Likewise.
48394         * modules/calloc (Makefile.am): Likewise.
48395         * modules/canon-host (Makefile.am): Likewise.
48396         * modules/canonicalize (Makefile.am): Likewise.
48397         * modules/chdir-long (Makefile.am): Likewise.
48398         * modules/chdir-safer (Makefile.am): Likewise.
48399         * modules/check-version (Makefile.am): Likewise.
48400         * modules/chown (Makefile.am): Likewise.
48401         * modules/cloexec (Makefile.am): Likewise.
48402         * modules/close-stream (Makefile.am): Likewise.
48403         * modules/closeout (Makefile.am): Likewise.
48404         * modules/crc (Makefile.am): Likewise.
48405         * modules/csharpexec (Makefile.am): Likewise.
48406         * modules/cycle-check (Makefile.am): Likewise.
48407         * modules/des (Makefile.am): Likewise.
48408         * modules/dev-ino (Makefile.am): Likewise.
48409         * modules/dirfd (Makefile.am): Likewise.
48410         * modules/dirname (Makefile.am): Likewise.
48411         * modules/dup2 (Makefile.am): Likewise.
48412         * modules/eealloc (Makefile.am): Likewise.
48413         * modules/error (Makefile.am): Likewise.
48414         * modules/euidaccess (Makefile.am): Likewise.
48415         * modules/exclude (Makefile.am): Likewise.
48416         * modules/exitfail (Makefile.am): Likewise.
48417         * modules/fcntl-safer (Makefile.am): Likewise.
48418         * modules/fcntl (Makefile.am): Likewise.
48419         * modules/file-type (Makefile.am): Likewise.
48420         * modules/fileblocks (Makefile.am): Likewise.
48421         * modules/filemode (Makefile.am): Likewise.
48422         * modules/filenamecat (Makefile.am): Likewise.
48423         * modules/fnmatch (Makefile.am): Likewise.
48424         * modules/fopen-safer (Makefile.am): Likewise.
48425         * modules/fpending (Makefile.am): Likewise.
48426         * modules/fprintftime (Makefile.am): Likewise.
48427         * modules/free (Makefile.am): Likewise.
48428         * modules/fsusage (Makefile.am): Likewise.
48429         * modules/ftruncate (Makefile.am): Likewise.
48430         * modules/fts (Makefile.am): Likewise.
48431         * modules/gc-arcfour (Makefile.am): Likewise.
48432         * modules/gc-des (Makefile.am): Likewise.
48433         * modules/gc-hmac-md5 (Makefile.am): Likewise.
48434         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
48435         * modules/gc-md4 (Makefile.am): Likewise.
48436         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48437         * modules/gc-sha1 (Makefile.am): Likewise.
48438         * modules/gc (Makefile.am): Likewise.
48439         * modules/getaddrinfo (Makefile.am): Likewise.
48440         * modules/getcwd (Makefile.am): Likewise.
48441         * modules/getdelim (Makefile.am): Likewise.
48442         * modules/getdomainname (Makefile.am): Likewise.
48443         * modules/getgroups (Makefile.am): Likewise.
48444         * modules/gethostname (Makefile.am): Likewise.
48445         * modules/gethrxtime (Makefile.am): Likewise.
48446         * modules/getline (Makefile.am): Likewise.
48447         * modules/getloadavg (Makefile.am): Likewise.
48448         * modules/getlogin_r (Makefile.am): Likewise.
48449         * modules/getndelim2 (Makefile.am): Likewise.
48450         * modules/getopt (Makefile.am): Likewise.
48451         * modules/getpagesize (Makefile.am): Likewise.
48452         * modules/getpass-gnu (Makefile.am): Likewise.
48453         * modules/getpass (Makefile.am): Likewise.
48454         * modules/getsubopt (Makefile.am): Likewise.
48455         * modules/gettime (Makefile.am): Likewise.
48456         * modules/gettimeofday (Makefile.am): Likewise.
48457         * modules/getugroups (Makefile.am): Likewise.
48458         * modules/getusershell (Makefile.am): Likewise.
48459         * modules/glob (Makefile.am): Likewise.
48460         * modules/group-member (Makefile.am): Likewise.
48461         * modules/hard-locale (Makefile.am): Likewise.
48462         * modules/hash (Makefile.am): Likewise.
48463         * modules/hmac-md5 (Makefile.am): Likewise.
48464         * modules/hmac-sha1 (Makefile.am): Likewise.
48465         * modules/human (Makefile.am): Likewise.
48466         * modules/idcache (Makefile.am): Likewise.
48467         * modules/imaxabs (Makefile.am): Likewise.
48468         * modules/imaxdiv (Makefile.am): Likewise.
48469         * modules/inet_ntop (Makefile.am): Likewise.
48470         * modules/inet_pton (Makefile.am): Likewise.
48471         * modules/intprops (Makefile.am): Likewise.
48472         * modules/inttostr (Makefile.am): Likewise.
48473         * modules/inttypes (Makefile.am): Likewise.
48474         * modules/isapipe (Makefile.am): Likewise.
48475         * modules/javaversion (Makefile.am): Likewise.
48476         * modules/lchmod (Makefile.am): Likewise.
48477         * modules/lchown (Makefile.am): Likewise.
48478         * modules/localcharset (Makefile.am): Likewise.
48479         * modules/long-options (Makefile.am): Likewise.
48480         * modules/lstat (Makefile.am): Likewise.
48481         * modules/malloc (Makefile.am): Likewise.
48482         * modules/mathl (Makefile.am): Likewise.
48483         * modules/mbchar (Makefile.am): Likewise.
48484         * modules/md2 (Makefile.am): Likewise.
48485         * modules/md4 (Makefile.am): Likewise.
48486         * modules/md5 (Makefile.am): Likewise.
48487         * modules/memcasecmp (Makefile.am): Likewise.
48488         * modules/memchr (Makefile.am): Likewise.
48489         * modules/memcmp (Makefile.am): Likewise.
48490         * modules/memcoll (Makefile.am): Likewise.
48491         * modules/memcpy (Makefile.am): Likewise.
48492         * modules/memmem (Makefile.am): Likewise.
48493         * modules/memmove (Makefile.am): Likewise.
48494         * modules/mempcpy (Makefile.am): Likewise.
48495         * modules/memrchr (Makefile.am): Likewise.
48496         * modules/memset (Makefile.am): Likewise.
48497         * modules/memxor (Makefile.am): Likewise.
48498         * modules/mkancesdirs (Makefile.am): Likewise.
48499         * modules/mkdir-p (Makefile.am): Likewise.
48500         * modules/mkdir (Makefile.am): Likewise.
48501         * modules/mkdtemp (Makefile.am): Likewise.
48502         * modules/mkstemp (Makefile.am): Likewise.
48503         * modules/mktime (Makefile.am): Likewise.
48504         * modules/modechange (Makefile.am): Likewise.
48505         * modules/mountlist (Makefile.am): Likewise.
48506         * modules/nanosleep (Makefile.am): Likewise.
48507         * modules/obstack (Makefile.am): Likewise.
48508         * modules/openat (Makefile.am): Likewise.
48509         * modules/pagealign_alloc (Makefile.am): Likewise.
48510         * modules/pathmax (Makefile.am): Likewise.
48511         * modules/physmem (Makefile.am): Likewise.
48512         * modules/poll (Makefile.am): Likewise.
48513         * modules/posixtm (Makefile.am): Likewise.
48514         * modules/posixver (Makefile.am): Likewise.
48515         * modules/putenv (Makefile.am): Likewise.
48516         * modules/quote (Makefile.am): Likewise.
48517         * modules/quotearg (Makefile.am): Likewise.
48518         * modules/raise (Makefile.am): Likewise.
48519         * modules/read-file (Makefile.am): Likewise.
48520         * modules/readline (Makefile.am): Likewise.
48521         * modules/readlink (Makefile.am): Likewise.
48522         * modules/readtokens (Makefile.am): Likewise.
48523         * modules/readutmp (Makefile.am): Likewise.
48524         * modules/realloc (Makefile.am): Likewise.
48525         * modules/regex (Makefile.am): Likewise.
48526         * modules/rename-dest-slash (Makefile.am): Likewise.
48527         * modules/rename (Makefile.am): Likewise.
48528         * modules/rijndael (Makefile.am): Likewise.
48529         * modules/rmdir (Makefile.am): Likewise.
48530         * modules/rpmatch (Makefile.am): Likewise.
48531         * modules/safe-read (Makefile.am): Likewise.
48532         * modules/safe-write (Makefile.am): Likewise.
48533         * modules/same-inode (Makefile.am): Likewise.
48534         * modules/same (Makefile.am): Likewise.
48535         * modules/save-cwd (Makefile.am): Likewise.
48536         * modules/savedir (Makefile.am): Likewise.
48537         * modules/setenv (Makefile.am): Likewise.
48538         * modules/settime (Makefile.am): Likewise.
48539         * modules/sha1 (Makefile.am): Likewise.
48540         * modules/sig2str (Makefile.am): Likewise.
48541         * modules/snprintf (Makefile.am): Likewise.
48542         * modules/stat-macros (Makefile.am): Likewise.
48543         * modules/stat-time (Makefile.am): Likewise.
48544         * modules/stdbool (Makefile.am): Likewise.
48545         * modules/stdint (Makefile.am): Likewise.
48546         * modules/stdlib-safer (Makefile.am): Likewise.
48547         * modules/stpcpy (Makefile.am): Likewise.
48548         * modules/stpncpy (Makefile.am): Likewise.
48549         * modules/strcase (Makefile.am): Likewise.
48550         * modules/strcasestr (Makefile.am): Likewise.
48551         * modules/strchrnul (Makefile.am): Likewise.
48552         * modules/strcspn (Makefile.am): Likewise.
48553         * modules/strdup (Makefile.am): Likewise.
48554         * modules/strerror (Makefile.am): Likewise.
48555         * modules/strftime (Makefile.am): Likewise.
48556         * modules/strndup (Makefile.am): Likewise.
48557         * modules/strnlen (Makefile.am): Likewise.
48558         * modules/strpbrk (Makefile.am): Likewise.
48559         * modules/strsep (Makefile.am): Likewise.
48560         * modules/strstr (Makefile.am): Likewise.
48561         * modules/strtod (Makefile.am): Likewise.
48562         * modules/strtoimax (Makefile.am): Likewise.
48563         * modules/strtok_r (Makefile.am): Likewise.
48564         * modules/strtol (Makefile.am): Likewise.
48565         * modules/strtoll (Makefile.am): Likewise.
48566         * modules/strtoul (Makefile.am): Likewise.
48567         * modules/strtoull (Makefile.am): Likewise.
48568         * modules/strtoumax (Makefile.am): Likewise.
48569         * modules/strverscmp (Makefile.am): Likewise.
48570         * modules/sys_socket (Makefile.am): Likewise.
48571         * modules/sys_stat (Makefile.am): Likewise.
48572         * modules/sysexits (Makefile.am): Likewise.
48573         * modules/time_r (Makefile.am): Likewise.
48574         * modules/timegm (Makefile.am): Likewise.
48575         * modules/timespec (Makefile.am): Likewise.
48576         * modules/tmpfile-safer (Makefile.am): Likewise.
48577         * modules/trim (Makefile.am): Likewise.
48578         * modules/unistd-safer (Makefile.am): Likewise.
48579         * modules/unlinkdir (Makefile.am): Likewise.
48580         * modules/unlocked-io (Makefile.am): Likewise.
48581         * modules/userspec (Makefile.am): Likewise.
48582         * modules/utime (Makefile.am): Likewise.
48583         * modules/utimecmp (Makefile.am): Likewise.
48584         * modules/utimens (Makefile.am): Likewise.
48585         * modules/vasnprintf (Makefile.am): Likewise.
48586         * modules/vasprintf (Makefile.am): Likewise.
48587         * modules/vsnprintf (Makefile.am): Likewise.
48588         * modules/xalloc (Makefile.am): Likewise.
48589         * modules/xgetcwd (Makefile.am): Likewise.
48590         * modules/xnanosleep (Makefile.am): Likewise.
48591         * modules/xreadlink (Makefile.am): Likewise.
48592         * modules/xstrtod (Makefile.am): Likewise.
48593         * modules/xstrtol (Makefile.am): Likewise.
48594         * modules/xstrtold (Makefile.am): Likewise.
48595         * modules/yesno (Makefile.am): Likewise.
48596         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
48597
48598 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48599
48600         * modules/error (Makefile.am): Distribute files through
48601         EXTRA_DIST, not lib_SOURCES.
48602
48603 2006-10-12  Eric Blake  <ebb9@byu.net>
48604
48605         * modules/error (Makefile.am): Distribute files in /lib.
48606         * modules/obstack (Makefile.am): Likewise.
48607
48608 2006-10-12  Bruno Haible  <bruno@clisp.org>
48609
48610         * modules/acl (Makefile.am): Distribute all files in lib/ through
48611         EXTRA_DIST.
48612         * modules/arcfour (Makefile.am): Likewise.
48613         * modules/arctwo (Makefile.am): Likewise.
48614         * modules/argmatch (Makefile.am): Likewise.
48615         * modules/argz (Makefile.am): Likewise.
48616         * modules/atexit (Makefile.am): Likewise.
48617         * modules/backupfile (Makefile.am): Likewise.
48618         * modules/c-strtod (Makefile.am): Likewise.
48619         * modules/c-strtold (Makefile.am): Likewise.
48620         * modules/calloc (Makefile.am): Likewise.
48621         * modules/canon-host (Makefile.am): Likewise.
48622         * modules/canonicalize (Makefile.am): Likewise.
48623         * modules/chdir-long (Makefile.am): Likewise.
48624         * modules/chdir-safer (Makefile.am): Likewise.
48625         * modules/check-version (Makefile.am): Likewise.
48626         * modules/chown (Makefile.am): Likewise.
48627         * modules/cloexec (Makefile.am): Likewise.
48628         * modules/close-stream (Makefile.am): Likewise.
48629         * modules/closeout (Makefile.am): Likewise.
48630         * modules/crc (Makefile.am): Likewise.
48631         * modules/cycle-check (Makefile.am): Likewise.
48632         * modules/des (Makefile.am): Likewise.
48633         * modules/dirfd (Makefile.am): Likewise.
48634         * modules/dirname (Makefile.am): Likewise.
48635         * modules/dup2 (Makefile.am): Likewise.
48636         * modules/euidaccess (Makefile.am): Likewise.
48637         * modules/exclude (Makefile.am): Likewise.
48638         * modules/exitfail (Makefile.am): Likewise.
48639         * modules/fcntl-safer (Makefile.am): Likewise.
48640         * modules/file-type (Makefile.am): Likewise.
48641         * modules/fileblocks (Makefile.am): Likewise.
48642         * modules/filemode (Makefile.am): Likewise.
48643         * modules/filenamecat (Makefile.am): Likewise.
48644         * modules/fnmatch (Makefile.am): Likewise.
48645         * modules/fopen-safer (Makefile.am): Likewise.
48646         * modules/fpending (Makefile.am): Likewise.
48647         * modules/fprintftime (Makefile.am): Likewise.
48648         * modules/free (Makefile.am): Likewise.
48649         * modules/fsusage (Makefile.am): Likewise.
48650         * modules/ftruncate (Makefile.am): Likewise.
48651         * modules/fts (Makefile.am): Likewise.
48652         * modules/gc (Makefile.am): Likewise.
48653         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48654         * modules/getaddrinfo (Makefile.am): Likewise.
48655         * modules/getcwd (Makefile.am): Likewise.
48656         * modules/getdelim (Makefile.am): Likewise.
48657         * modules/getdomainname (Makefile.am): Likewise.
48658         * modules/getgroups (Makefile.am): Likewise.
48659         * modules/gethostname (Makefile.am): Likewise.
48660         * modules/gethrxtime (Makefile.am): Likewise.
48661         * modules/getline (Makefile.am): Likewise.
48662         * modules/getloadavg (Makefile.am): Likewise.
48663         * modules/getlogin_r (Makefile.am): Likewise.
48664         * modules/getopt (Makefile.am): Likewise.
48665         * modules/getpass (Makefile.am): Likewise.
48666         * modules/getpass-gnu (Makefile.am): Likewise.
48667         * modules/getsubopt (Makefile.am): Likewise.
48668         * modules/gettime (Makefile.am): Likewise.
48669         * modules/gettimeofday (Makefile.am): Likewise.
48670         * modules/getugroups (Makefile.am): Likewise.
48671         * modules/getusershell (Makefile.am): Likewise.
48672         * modules/glob (Makefile.am): Likewise.
48673         * modules/group-member (Makefile.am): Likewise.
48674         * modules/hard-locale (Makefile.am): Likewise.
48675         * modules/hash (Makefile.am): Likewise.
48676         * modules/hmac-md5 (Makefile.am): Likewise.
48677         * modules/hmac-sha1 (Makefile.am): Likewise.
48678         * modules/human (Makefile.am): Likewise.
48679         * modules/idcache (Makefile.am): Likewise.
48680         * modules/imaxabs (Makefile.am): Likewise.
48681         * modules/imaxdiv (Makefile.am): Likewise.
48682         * modules/inet_ntop (Makefile.am): Likewise.
48683         * modules/inet_pton (Makefile.am): Likewise.
48684         * modules/inttostr (Makefile.am): Likewise.
48685         * modules/isapipe (Makefile.am): Likewise.
48686         * modules/lchown (Makefile.am): Likewise.
48687         * modules/long-options (Makefile.am): Likewise.
48688         * modules/lstat (Makefile.am): Likewise.
48689         * modules/malloc (Makefile.am): Likewise.
48690         * modules/mathl (Makefile.am): Likewise.
48691         * modules/mbchar (Makefile.am): Likewise.
48692         * modules/md2 (Makefile.am): Likewise.
48693         * modules/md4 (Makefile.am): Likewise.
48694         * modules/md5 (Makefile.am): Likewise.
48695         * modules/memcasecmp (Makefile.am): Likewise.
48696         * modules/memchr (Makefile.am): Likewise.
48697         * modules/memcmp (Makefile.am): Likewise.
48698         * modules/memcoll (Makefile.am): Likewise.
48699         * modules/memcpy (Makefile.am): Likewise.
48700         * modules/memmem (Makefile.am): Likewise.
48701         * modules/memmove (Makefile.am): Likewise.
48702         * modules/mempcpy (Makefile.am): Likewise.
48703         * modules/memrchr (Makefile.am): Likewise.
48704         * modules/memset (Makefile.am): Likewise.
48705         * modules/memxor (Makefile.am): Likewise.
48706         * modules/mkancesdirs (Makefile.am): Likewise.
48707         * modules/mkdir (Makefile.am): Likewise.
48708         * modules/mkdir-p (Makefile.am): Likewise.
48709         * modules/mkdtemp (Makefile.am): Likewise.
48710         * modules/mkstemp (Makefile.am): Likewise.
48711         * modules/mktime (Makefile.am): Likewise.
48712         * modules/modechange (Makefile.am): Likewise.
48713         * modules/mountlist (Makefile.am): Likewise.
48714         * modules/nanosleep (Makefile.am): Likewise.
48715         * modules/openat (Makefile.am): Likewise.
48716         * modules/pagealign_alloc (Makefile.am): Likewise.
48717         * modules/physmem (Makefile.am): Likewise.
48718         * modules/poll (Makefile.am): Likewise.
48719         * modules/posixtm (Makefile.am): Likewise.
48720         * modules/posixver (Makefile.am): Likewise.
48721         * modules/putenv (Makefile.am): Likewise.
48722         * modules/quote (Makefile.am): Likewise.
48723         * modules/quotearg (Makefile.am): Likewise.
48724         * modules/raise (Makefile.am): Likewise.
48725         * modules/read-file (Makefile.am): Likewise.
48726         * modules/readline (Makefile.am): Likewise.
48727         * modules/readlink (Makefile.am): Likewise.
48728         * modules/readtokens (Makefile.am): Likewise.
48729         * modules/readutmp (Makefile.am): Likewise.
48730         * modules/realloc (Makefile.am): Likewise.
48731         * modules/regex (Makefile.am): Likewise.
48732         * modules/rename (Makefile.am): Likewise.
48733         * modules/rename-dest-slash (Makefile.am): Likewise.
48734         * modules/rijndael (Makefile.am): Likewise.
48735         * modules/rmdir (Makefile.am): Likewise.
48736         * modules/rpmatch (Makefile.am): Likewise.
48737         * modules/safe-read (Makefile.am): Likewise.
48738         * modules/safe-write (Makefile.am): Likewise.
48739         * modules/same (Makefile.am): Likewise.
48740         * modules/save-cwd (Makefile.am): Likewise.
48741         * modules/savedir (Makefile.am): Likewise.
48742         * modules/setenv (Makefile.am): Likewise.
48743         * modules/settime (Makefile.am): Likewise.
48744         * modules/sha1 (Makefile.am): Likewise.
48745         * modules/sig2str (Makefile.am): Likewise.
48746         * modules/snprintf (Makefile.am): Likewise.
48747         * modules/stdlib-safer (Makefile.am): Likewise.
48748         * modules/stpcpy (Makefile.am): Likewise.
48749         * modules/stpncpy (Makefile.am): Likewise.
48750         * modules/strcase (Makefile.am): Likewise.
48751         * modules/strcasestr (Makefile.am): Likewise.
48752         * modules/strchrnul (Makefile.am): Likewise.
48753         * modules/strcspn (Makefile.am): Likewise.
48754         * modules/strdup (Makefile.am): Likewise.
48755         * modules/strerror (Makefile.am): Likewise.
48756         * modules/strftime (Makefile.am): Likewise.
48757         * modules/strndup (Makefile.am): Likewise.
48758         * modules/strnlen (Makefile.am): Likewise.
48759         * modules/strpbrk (Makefile.am): Likewise.
48760         * modules/strsep (Makefile.am): Likewise.
48761         * modules/strstr (Makefile.am): Likewise.
48762         * modules/strtod (Makefile.am): Likewise.
48763         * modules/strtoimax (Makefile.am): Likewise.
48764         * modules/strtok_r (Makefile.am): Likewise.
48765         * modules/strtol (Makefile.am): Likewise.
48766         * modules/strtoll (Makefile.am): Likewise.
48767         * modules/strtoul (Makefile.am): Likewise.
48768         * modules/strtoull (Makefile.am): Likewise.
48769         * modules/strtoumax (Makefile.am): Likewise.
48770         * modules/strverscmp (Makefile.am): Likewise.
48771         * modules/time_r (Makefile.am): Likewise.
48772         * modules/timegm (Makefile.am): Likewise.
48773         * modules/tmpfile-safer (Makefile.am): Likewise.
48774         * modules/unistd-safer (Makefile.am): Likewise.
48775         * modules/unlinkdir (Makefile.am): Likewise.
48776         * modules/userspec (Makefile.am): Likewise.
48777         * modules/utime (Makefile.am): Likewise.
48778         * modules/utimecmp (Makefile.am): Likewise.
48779         * modules/utimens (Makefile.am): Likewise.
48780         * modules/vasnprintf (Makefile.am): Likewise.
48781         * modules/vasprintf (Makefile.am): Likewise.
48782         * modules/vsnprintf (Makefile.am): Likewise.
48783         * modules/xalloc (Makefile.am): Likewise.
48784         * modules/xgetcwd (Makefile.am): Likewise.
48785         * modules/xnanosleep (Makefile.am): Likewise.
48786         * modules/xreadlink (Makefile.am): Likewise.
48787         * modules/xstrtod (Makefile.am): Likewise.
48788         * modules/xstrtol (Makefile.am): Likewise.
48789         * modules/xstrtold (Makefile.am): Likewise.
48790         * modules/yesno (Makefile.am): Likewise.
48791
48792 2006-10-12  Jim Meyering  <jim@meyering.net>
48793
48794         * m4/getloadavg.m4: Revert the change below.
48795
48796         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
48797         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
48798         fail with a symlink, which is what coreutils' ./bootstrap now
48799         creates by default.
48800
48801 2006-10-12  Bruno Haible  <bruno@clisp.org>
48802
48803         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
48804         mingw.
48805         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
48806         MSVC and mingw explicitly.
48807
48808 2006-10-11  Simon Josefsson  <jas@extundo.com>
48809             Bruno Haible  <bruno@clisp.org>
48810
48811         Add support for multiple gnulib-tool invocations in the scope of a
48812         single configure.ac file.
48813         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
48814         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
48815         with the same contents as the _LIBADD variable.
48816         (func_emit_initmacro_start, func_emit_initmacro_end,
48817         func_emit_initmacro_done): New functions.
48818         (func_import, func_create_testdir): Invoke them. Allow the identifiers
48819         gl_LIBOBJS and gl_LTLIBOBJS.
48820
48821 2006-10-11  Bruno Haible  <bruno@clisp.org>
48822
48823         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
48824         (func_create_testdir): Don't create po/Makefile.am, don't invoke
48825         autoreconf. Instead, invoke autopoint explicitly but move back the
48826         *.m4 files from gnulib.
48827
48828 2006-10-11  Bruno Haible  <bruno@clisp.org>
48829
48830         * gnulib-tool (func_usage): Make module names after --create-testdir
48831         optional.
48832         (func_create_testdir): If no module was specified, use nearly all
48833         modules.
48834
48835 2006-10-12  Jim Meyering  <jim@meyering.net>
48836
48837         Big performance improvement for fts-based tools that use FTS_NOSTAT.
48838         Avoid spurious inode-mismatch problems on non-POSIX file systems.
48839         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
48840         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
48841         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
48842         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
48843         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
48844         (fts_set_stat_required): New function.
48845         (fts_open): Defer the calls to fts_stat, if possible or requested.
48846         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
48847         into fts_stat itself.
48848         (fts_read): Perform any required (deferred) fts_stat call.
48849         (fts_build): Likewise, for the directory we're about to open and read.
48850         In the readdir loop, carefully decide whether each entry will require
48851         an eventual call to fts_stat, using dirent.d_type info if available.
48852         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
48853         a command line argument into this function.  Update all callers.
48854         Map a return value of FTS_DOT to FTS_D for a command line argument.
48855         * modules/fts (Depends-on): Add d-type.  Alphabetize.
48856         Thanks to Miklos Szeredi for his tenacity and for the initial
48857         bug report about "find" failing on a FUSE-based file system.
48858
48859         * lib/fts.c (fts_open): Use consistent indentation.
48860
48861 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48862
48863         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
48864         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
48865         reported by Jim Meyering.  All uses of cache variables renamed
48866         to match Autoconf's.
48867         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
48868         the other one.
48869
48870         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
48871         Fix misspelling in diagnostic.
48872
48873 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48874
48875         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
48876         defined.  Problem reported by Matthew Woehlke.
48877
48878         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
48879         Add support for Tandem NonStop R series.
48880         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
48881         Use new macro.
48882
48883         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
48884         (has_trailing_slash): Omit size arg; all callers changed.
48885         Omit 'inline', since it doesn't help performance and we'd
48886         need to configure it.
48887         Don't count //, ///, etc. as having a trailing slash.
48888         As a side effect, this removes a C99ism reported by Matthew Woehlke.
48889         (rpl_rename_dest_slash): On failure, use rename's errno rather
48890         than (in some cases) an incorrect or junk errno.
48891         Simplify code by removing need to compute length; this does
48892         cause it to make two passes instead of one over the file name,
48893         but it's worth it.
48894
48895         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
48896         change, since Autoconf's version may no longer be appropriate now
48897         that we are using CVS Autoconf's version.  Add support for Tandem.
48898
48899 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48900             Bruno Haible  <bruno@clisp.org>
48901
48902         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
48903         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
48904         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
48905         gl_AC_TYPE_LONG_LONG.
48906
48907         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
48908         instead of HAVE_LONG_LONG.
48909         * lib/printf-args.c (printf_fetchargs): Likewise.
48910         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
48911         * lib/vasnprintf.c (VASNPRINTF): Likewise.
48912         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
48913         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
48914         gl_AC_TYPE_LONG_LONG.
48915
48916 2006-10-11  Bruno Haible  <bruno@clisp.org>
48917
48918         * m4/longlong.m4: Add comments.
48919         * m4/ulonglong.m4: Likewise.
48920
48921 2006-10-10  Bruno Haible  <bruno@clisp.org>
48922
48923         Make it possible to #define stpcpy, strdup to aliases.
48924         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
48925         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
48926
48927 2006-10-10  Bruno Haible  <bruno@clisp.org>
48928
48929         Make it possible to #define gcd to an alias.
48930         * lib/gcd.c: Include config.h.
48931
48932 2006-10-10  Bruno Haible  <bruno@clisp.org>
48933
48934         Make it possible to #define c_isascii to an alias.
48935         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
48936         defined. Undefine the macros before defining them, to avoid gcc
48937         warnings.
48938         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
48939         define NO_C_CTYPE_MACROS early.
48940
48941 2006-10-10  Bruno Haible  <bruno@clisp.org>
48942
48943         Make it possible to #define set_program_name to an alias.
48944         * lib/progname.c: Don't undefine set_program_name; instead, undefine
48945         ENABLE_RELOCATABLE early.
48946
48947 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48948
48949         Port to Tandem NSK OSS, which has 64-bit signed int but at most
48950         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
48951         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
48952         More generally, don't assume that 64-bit signed int is available
48953         if unsigned int is, and vice versa.
48954         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
48955         unsigned symbols, not on their signed counterparts.
48956         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
48957         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
48958         (UINT64_C, UINTMAX_C):
48959         Likewise.
48960         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
48961         unsigned counterparts.
48962         (Have_long_long, Unsigned): New macros.
48963         (Int): Renamed from INT.
48964         (strtoimax): Use the new macros.
48965         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
48966         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
48967         * modules/inttypes (inttypes.h): Substitute
48968         HAVE_UNSIGNED_LONG_LONG_INT.
48969         * modules/stdint (stdint.h): Likewise.
48970         (Files): Add m4/ulonglong.m4.
48971
48972 2006-10-10  Bruno Haible  <bruno@clisp.org>
48973
48974         Fix a gcc -Wshadow warning.
48975         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
48976         to 'bucket'.
48977         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
48978         gl_linked_indexof_from_to): Likewise.
48979         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
48980         Likewise.
48981         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
48982         Likewise.
48983         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
48984         Reported by Eric Blake.
48985
48986 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
48987
48988         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
48989         for NetBSD.  Problem reported by Bruno Haible.
48990
48991 2006-10-09  Jim Meyering  <jim@meyering.net>
48992
48993         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
48994         Patch from Bruno Haible.
48995
48996 2006-10-09  Jim Meyering  <jim@meyering.net>
48997
48998         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
48999         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
49000         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
49001
49002 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49003
49004         Don't include <config.h> twice; this doesn't work in some cases,
49005         e.g., when config.h has "#define intmax_t long long int" and
49006         we include <config.h>, <inttypes.h>, <config.h> in that order.
49007         Problem reported by Matthew Woehlke in:
49008         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
49009         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
49010         * lib/fts-cycle.c: Don't include config.h.
49011         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
49012         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
49013         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
49014         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
49015         inttypes.h.
49016         * lib/xstrtoumax.c: Likewise.
49017         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
49018         __strtol and the like, so that this module is more like its siblings.
49019         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
49020         Remove; no longer needed now that we assume gnulib inttypes.h.
49021
49022 2006-10-08  Bruno Haible  <bruno@clisp.org>
49023
49024         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
49025         option.
49026
49027 2006-10-07  Jim Meyering  <jim@meyering.net>
49028
49029         * modules/inttypes (inttypes.h): Revert what seems to have been
49030         an inadvertent part of today's change: use "|", not "/" in the
49031         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
49032
49033 2006-10-07  Bruno Haible  <bruno@clisp.org>
49034
49035         * modules/sublist: New file.
49036
49037 2006-10-07  Bruno Haible  <bruno@clisp.org>
49038
49039         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
49040         * modules/argz (argz.h): Likewise.
49041         * modules/arpa_inet (arpa/inet.h): Likewise.
49042         * modules/byteswap (byteswap.h): Likewise.
49043         * modules/configmake (configmake.h): Likewise.
49044         * modules/fcntl (fcntl.h): Likewise.
49045         * modules/fnmatch (fnmatch.h): Likewise.
49046         * modules/getopt (getopt.h): Likewise.
49047         * modules/glob (glob.h): Likewise.
49048         * modules/inttypes (inttypes.h): Likewise.
49049         * modules/netinet_in (netinet/in.h): Likewise.
49050         * modules/poll (poll.h): Likewise.
49051         * modules/stdbool (stdbool.h): Likewise.
49052         * modules/stdint (stdint.h): Likewise.
49053         * modules/sys_select (sys/select.h): Likewise.
49054         * modules/sys_socket (sys/socket.h): Likewise.
49055         * modules/sys_stat (sys/stat.h): Likewise.
49056         * modules/sysexits (sysexits.h): Likewise.
49057         * modules/unistd (unistd.h): Likewise.
49058         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49059         Add a "DO NOT EDIT" comment to the generated file.
49060         (func_import): Likewise for gnulib-comp.m4.
49061
49062 2006-10-07  Bruno Haible  <bruno@clisp.org>
49063
49064         * lib/gl_sublist.h: New file.
49065         * lib/gl_sublist.c: New file.
49066
49067 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49068
49069         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
49070         name (relative to the original working directory) and the file
49071         name component (relative to the temporary working directory).  All
49072         callers changed.
49073         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
49074         * lib/mkdir-p.c (make_dir_parents): Likewise.
49075         * lib/mkdir-p.h (make_dir_parents): Likewise.
49076
49077 2006-10-06  Eric Blake  <ebb9@byu.net>
49078
49079         Define several macros for use by the clean-temp module.
49080         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
49081         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
49082         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
49083
49084         * lib/clean-temp.h (close_stream_temp): New declaration.
49085         * lib/clean-temp.c (includes): Pull in headers according to what
49086         other modules are in use.
49087         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
49088
49089 2006-10-06  Bruno Haible  <bruno@clisp.org>
49090
49091         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
49092         instead of fopen, fwriteerror.
49093
49094 2006-10-06  Bruno Haible  <bruno@clisp.org>
49095
49096         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
49097         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
49098         int.
49099         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
49100         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
49101         Return an error indicator.
49102         Suggested by Eric Blake.
49103
49104 2006-10-06  Bruno Haible  <bruno@clisp.org>
49105
49106         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
49107         Reported by Eric Blake.
49108
49109 2006-10-06  Bruno Haible  <bruno@clisp.org>
49110
49111         * modules/closeout (Description): Mention stderr too.
49112
49113 2006-10-06  Bruno Haible  <bruno@clisp.org>
49114         and Paul Eggert  <eggert@cs.ucla.edu>
49115
49116         * lib/closeout.c (close_stdout): Also close stderr.
49117         * lib/closeout.h: Update comment.
49118
49119 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49120
49121         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
49122         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
49123         * lib/dirchownmod.c: Include lchown.h.
49124         * lib/lchown.c: Don't include files that lchown.h now includes.
49125         Don't declare chown, since lchown.h now does that.
49126         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
49127         (lchown): Define to rpl_chown if lchown is declared but
49128         does not exist.  Declare using a prototype if lchown is not
49129         declared.  Add a copyright notice.
49130         * lib/mkstemp.h: Include <unistd.h>.
49131         * lib/openat.c: Include lchown.h.
49132
49133         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
49134         we now test for that separately.
49135         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
49136         rather than O_NOFOLLOW, when testing whether it's possible to
49137         avoid a race condition reliably.
49138         * lib/savewd.c (savewd_chdir): Likewise.
49139
49140         Remove macros that are no longer needed now that stdint.h is
49141         reliable.
49142         * lib/fsusage.c (UINTMAX_MAX): Remove.
49143         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
49144         * lib/utimecmp.c (SIZE_MAX): Remove.
49145
49146         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
49147
49148         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
49149         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
49150         O_NOATIME works.
49151
49152 2006-10-05  Bruno Haible  <bruno@clisp.org>
49153
49154         * lib/gl_list.h (gl_sortedlist_search_from_to,
49155         gl_sortedlist_indexof_from_to): New declarations.
49156         (gl_list_implementation): New fields sortedlist_search_from_to,
49157         sortedlist_indexof_from_to.
49158         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
49159         inline functions.
49160         * lib/gl_list.c (gl_sortedlist_search_from_to,
49161         gl_sortedlist_indexof_from_to): New functions.
49162         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
49163         function.
49164         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
49165         (gl_array_sortedlist_search_from_to): New function.
49166         (gl_array_list_implementation): Update.
49167         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
49168         function.
49169         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
49170         (gl_carray_sortedlist_search_from_to): New function.
49171         (gl_carray_list_implementation): Update.
49172         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
49173         gl_linked_sortedlist_indexof_from_to): New functions.
49174         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49175         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49176         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
49177         gl_tree_sortedlist_indexof_from_to): New functions.
49178         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49179         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49180         Update.
49181         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49182         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
49183         Update.
49184
49185 2006-10-05  Bruno Haible  <bruno@clisp.org>
49186
49187         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
49188         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
49189         (struct gl_list_implementation): Add fields search_from_to,
49190         indexof_from_to. Remove fields search, indexof.
49191         (gl_list_search): Use the search_from_to method.
49192         (gl_list_search_from, gl_list_search_from_to): New functions.
49193         (gl_list_indexof): Use the indexof_from_to method.
49194         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49195         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
49196         (gl_list_search_from, gl_list_search_from_to): New functions.
49197         (gl_list_indexof): Use the indexof_from_to method.
49198         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49199         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
49200         gl_array_indexof. Add start_index, end_index arguments.
49201         (gl_array_search_from_to): Renamed from gl_array_search. Add
49202         start_index, end_index arguments.
49203         (gl_array_remove, gl_array_list_implementation): Update.
49204         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
49205         gl_carray_indexof. Add start_index, end_index arguments.
49206         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
49207         start_index, end_index arguments.
49208         (gl_carray_remove, gl_carray_list_implementation): Update.
49209         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
49210         gl_linked_search. Add start_index, end_index arguments.
49211         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
49212         start_index, end_index arguments.
49213         (gl_linked_remove): Update.
49214         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49215         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49216         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
49217         field to 'size_t'.
49218         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
49219         gl_tree_search. Add start_index, end_index arguments.
49220         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49221         start_index, end_index arguments.
49222         (gl_tree_remove): Update.
49223         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49224         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49225         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
49226         function.
49227         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
49228         gl_tree_search. Add start_index, end_index arguments.
49229         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49230         start_index, end_index arguments.
49231         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49232         Update.
49233         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49234
49235 2006-10-05  Bruno Haible  <bruno@clisp.org>
49236
49237         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
49238
49239         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
49240         fwriteerror_temp): New declarations.
49241         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
49242         (descriptors): New variable.
49243         (cleanup): First, close the descriptors.
49244         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
49245         fclose_temp, fwriteerror_temp): New functions.
49246
49247 2006-10-04  Jim Meyering  <jim@meyering.net>
49248
49249         * lib/fts.c (fts_open): Tiny comment change.
49250
49251 2006-10-04  Bruno Haible  <bruno@clisp.org>
49252
49253         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
49254         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
49255         gl_LOCK_BODY.
49256         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
49257         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
49258         gl_LOCK_EARLY_BODY.
49259         (gl_LOCK): Require gl_LOCK_BODY.
49260
49261 2006-10-04  Bruno Haible  <bruno@clisp.org>
49262
49263         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
49264         (gl_oset_search_atleast): New declaration.
49265         (struct gl_oset_implementation): Add field 'search_atleast'.
49266         (gl_oset_search_atleast): New inline function.
49267         * lib/gl_oset.c (gl_oset_search_atleast): New function.
49268         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
49269         (gl_array_oset_implementation): Update.
49270         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
49271         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
49272         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
49273
49274 2006-10-04  Bruno Haible  <bruno@clisp.org>
49275
49276         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
49277
49278 2006-10-03  Bruno Haible  <bruno@clisp.org>
49279
49280         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
49281         from gl_avltreehash_list_implementation.
49282
49283 2006-10-03  Bruno Haible  <bruno@clisp.org>
49284
49285         * lib/gl_oset.c (gl_oset_add): Fix return type.
49286
49287 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
49288
49289         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
49290
49291 2006-10-02  Eric Blake  <ebb9@byu.net>
49292
49293         * modules/strnlen (Depends-on): Add extensions.
49294
49295 2006-10-02  Eric Blake  <ebb9@byu.net>
49296
49297         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
49298         definition in 2.60+.
49299
49300 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
49301
49302         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
49303         checks.
49304
49305 2006-10-02  Bruno Haible  <bruno@clisp.org>
49306
49307         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
49308         to the AUTOMAKE_OPTIONS.
49309         Reported by Jim Meyering.
49310
49311 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49312
49313         Work around bug in Solaris 10 /proc file system:
49314         /proc/self/fd/NNN/.. isn't the parent directory of
49315         the directory whose file descriptor is NNN.  This needs to
49316         be worked around at run time, not compile time, since a
49317         program might be built on Solaris 8, where things work, and
49318         run on Solaris 10.
49319         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
49320         to use the following interface instead:
49321         (OPENAT_BUFFER_SIZE): New macro.
49322         (openat_proc_name): New function.
49323         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
49324         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
49325         Likewise.
49326         * lib/openat-proc.c: New file.
49327         * modules/openat (Files): Add lib/openat-proc.c.
49328         (Depends-on): Add same-inode, stdbool.
49329         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
49330
49331 2006-09-29  Bruno Haible  <bruno@clisp.org>
49332
49333         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
49334         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
49335         argument. Set stdout_closed before testing for ferror, not after.
49336         (fwriteerror, fwriteerror_no_ebadf): New functions.
49337
49338 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49339
49340         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
49341
49342 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
49343
49344         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
49345         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
49346
49347 2006-09-28  Jim Meyering  <jim@meyering.net>
49348
49349         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
49350         Include <unistd.h>.
49351
49352 2006-09-28  Bruno Haible  <bruno@clisp.org>
49353
49354         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
49355         * modules/linkedhash-list (Depends-on): Likewise.
49356         * modules/rbtreehash-list (Depends-on): Likewise.
49357
49358 2006-09-28  Bruno Haible  <bruno@clisp.org>
49359
49360         * lib/strndup.h: Simplify the redefinition of strndup.
49361         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
49362         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
49363
49364 2006-09-28  Bruno Haible  <bruno@clisp.org>
49365
49366         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
49367         * lib/gl_linkedhash_list.c: Likewise.
49368         * lib/gl_rbtreehash_list.c: Likewise.
49369
49370 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49371
49372         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
49373         getaddrinfo.
49374
49375         * lib/__fpending.h: Don't include <stdio_ext.h> unless
49376         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
49377         it causes <stdio_ext.h> to cause a compile-time error.
49378         Problem reported by Nelson H. F. Beebe.
49379         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
49380         of HAVE_DECL___PENDING.
49381
49382         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
49383         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
49384         declaration.
49385
49386 2006-09-27  Jim Meyering  <jim@meyering.net>
49387
49388         This file could end up with a definition for a function
49389         named __strndup, rather than rpl_strndup on a system with
49390         incomplete weak_alias support.
49391         * lib/strndup.c (strndup): Rename from __strndup.
49392         Remove #defines that used to map __strndup to strndup.
49393         Don't use K&R prototypes.
49394         Remove LIBC-related code, since this file is not sync'd with glibc.
49395         * lib/strndup.h: Revamp, accordingly.
49396         * m4/strndup.m4: Modernize.
49397
49398 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49399
49400         * modules/savewd (Depends-on): Add 'raise'.
49401         * lib/savewd.c: Include <signal.h>, for 'raise'.
49402
49403 2006-09-26  Jim Meyering  <jim@meyering.net>
49404
49405         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
49406         when we detect Darwin 8.7.0's acl_get_file bug.
49407         Rearrange to perform the new (below) run-test while $LIBS
49408         contains any acl-related library.  Set USE_ACL at the end.
49409         (gl_ACL_GET_FILE): New function.
49410
49411 2006-09-26  Eric Blake  <ebb9@byu.net>
49412
49413         * lib/verror.c: Include <config.h> unconditionally.
49414
49415 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
49416
49417         * modules/clock-time (Maintainer): Add self.
49418         * modules/getlogin_r (Depends-on): Add extensions.
49419
49420 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49421
49422         * modules/clock-time: New module.
49423         * modules/nanosleep (Depends-on): Add clock-time.
49424         * modules/gethrxtime (Depends-on): Likewise.
49425         * modules/gettime (Depends-on): Likewise.
49426         * modules/settime (Depends-on): Likewise.
49427
49428         * modules/fts-lgpl: Depend on openat.
49429         * modules/mkancesdirs: Depend on savewd.
49430         * modules/mkdir-p: Likewise.
49431
49432 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49433
49434         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
49435
49436         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
49437         `gl_have_arbitrary_file_name_length_limit' to
49438         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
49439         actually works between configure runs.
49440
49441 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49442             Bruno Haible  <bruno@clisp.org>
49443
49444         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
49445
49446 2006-09-25  Jim Meyering  <jim@meyering.net>
49447
49448         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
49449         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
49450
49451 2006-09-25  Eric Blake  <ebb9@byu.net>
49452
49453         * gnulib-tool (func_import, func_create_testdir): Fix typos in
49454         exec's in 2006-09-18 patch when shuffling fds.
49455
49456 2006-09-25  Bruno Haible  <bruno@clisp.org>
49457
49458         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
49459         Reported by Jim Meyering.
49460
49461 2006-09-24  Jim Meyering  <jim@meyering.net>
49462
49463         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
49464         compare a pointer against a literal "0".  That caused failures with
49465         at least HP-UX's hpcc.
49466
49467 2006-09-22  Simon Josefsson  <jas@extundo.com>
49468
49469         * modules/gc-sha1:
49470         * modules/gc-md4:
49471         * modules/gc-hmac-sha1:
49472         * modules/gc-hmac-md5:
49473         * modules/gc-des:
49474         * modules/gc-arcfour: Distribute more files.
49475
49476 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49477
49478         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
49479         (gl_linked_iterator_from_to): Initialize struct completely.
49480         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
49481         (gl_tree_iterator_from_to): Likewise
49482         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
49483         * lib/gl_array_list.c [lint] (gl_array_iterator)
49484         (gl_array_iterator_from_to): Likewise.
49485         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
49486         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
49487         (gl_carray_iterator_from_to): Likewise.
49488
49489         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
49490         * lib/md4.c (md4_process_block): Remove unused variable.
49491         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
49492         parentheses for clarity.
49493
49494 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49495
49496         * modules/bison-i18n (Depends-on): Add gettext.
49497
49498 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49499
49500         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
49501         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
49502         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
49503         also add missing comma that caused broken test.
49504         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
49505         stdlib.h, for `abort'.
49506         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
49507         variables.
49508         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
49509         include unistd.h if present, for `rmdir'.
49510         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
49511         variables.
49512         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
49513         in the process include standard headers for prototypes.
49514         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
49515         gets declared on GNU/Linux.
49516         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
49517         unistd.h, for `rmdir'.
49518         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
49519
49520         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
49521         always true.
49522         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
49523
49524         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
49525
49526 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49527
49528         * gnulib-tool (func_version): Create output all at once.  This
49529         may help avoid triggering unnecessary SIGPIPEs, and at any
49530         rate it doesn't hurt.
49531
49532 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49533             Bruno Haible  <bruno@clisp.org>
49534
49535         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
49536         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49537         * m4/signed.m4 (bh_C_SIGNED): Likewise.
49538
49539         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
49540         (gl_FUNC_VASPRINTF): Invoke it.
49541
49542 2006-09-22  Bruno Haible  <bruno@clisp.org>
49543
49544         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
49545         getloadavg.c as first argument.
49546
49547 2006-09-22  Bruno Haible  <bruno@clisp.org>
49548
49549         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
49550         at the beginning of the gl_INIT macro.
49551         * modules/getloadavg (configure.ac): Pass $gl_source_base to
49552         gl_GETLOADAVG.
49553
49554 2006-09-22  Bruno Haible  <bruno@clisp.org>
49555
49556         * gnulib-tool (func_create_megatestdir): Don't include the config-h
49557         module.
49558         Suggested by Ralf Wildenhues.
49559
49560 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
49561
49562         Import this patch from libc:
49563
49564         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
49565
49566         * lib/regex_internal.c (re_string_reconstruct): Handle
49567         offset < pstr->valid_raw_len && pstr->offsets_needed case.
49568         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
49569         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
49570         re_string_context_at.
49571
49572         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
49573         now requires it.
49574         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
49575         gl_REGEX now does it for us.
49576         (gl_REGEX): Add test taken from
49577         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
49578
49579         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
49580         Check that large offsets work.  Modernize Autoconf usages.
49581         Prefer "yes" to mean a good thing rather than a bad.
49582         Don't put "#define mkstemp" in config.h, as this might interfere
49583         with standard system headers that "#define mkstemp mkstemp64".
49584
49585         * modules/mkstemp (Depends-on): Add extensions, so that
49586         mkstemp is visible on some platforms.
49587         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
49588         (Include): Change to "mkstemp.h" from <stdlib.h>.
49589         (Files): Add mkstemp.h.
49590
49591         * lib/mkstemp.h: New file, since some standard headers
49592         #define mkstemp.
49593         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
49594         Include "mkstemp.h".
49595         Make the _LIBC code resemble glibc original more,
49596         e.g., use K&R style.
49597         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
49598         (mkstemp): Remove, since mkstemp.h does this for us.
49599         * lib/stdlib--.h: Include mkstemp.h.
49600
49601         Import this patch from libc:
49602
49603         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49604
49605         * lib/tempname.c (__gen_tempname): Change attempts_min
49606         into a macro.  Use preprocessor to decide how to initialize
49607         attempts [Coverity CID 67].
49608
49609 2006-09-20  Bruno Haible  <bruno@clisp.org>
49610
49611         * lib/mkdtemp.c: Import from libc.
49612         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49613                 * sysdeps/posix/tempname.c (__gen_tempname): Change
49614                 attempts_min into a macro.  Use preprocessor to decide how to
49615                 initialize attempts [Coverity CID 67].
49616         2001-11-27  Paul Eggert  <eggert@twinsun.com>
49617                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
49618                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
49619
49620 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49621
49622         * gnulib-tool (func_exit): New function, to allow to pass the
49623         exit status portably through the trap.  Use everywhere.
49624         (--help, --version): Signal a write error.
49625         (trap): catch SIGPIPE, for write errors.
49626         Exit at the end of the trap, with the correct exit status.
49627
49628 2006-09-19  Karl Berry  <karl@gnu.org>
49629
49630         * doc/gnulib.texi: note about the license texinfo files.
49631
49632 2006-09-19  Eric Blake  <ebb9@byu.net>
49633
49634         * gnulib-tool: Avoid space-tab.
49635
49636 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49637
49638         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
49639         that prevented coreutils 6.1 from building.  Problem reported
49640         by Petter Reinholdtsen.
49641
49642 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49643
49644         * gnulib-tool (avoidlist): Fix typo that broke options like
49645         --avoid=lock that are used by coreutils bootstrap.
49646
49647 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
49648
49649         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
49650         more systematically.
49651
49652 2006-09-18  Jim Meyering  <jim@meyering.net>
49653
49654         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
49655
49656 2006-09-18  Bruno Haible  <bruno@clisp.org>
49657
49658         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
49659
49660 2006-09-18  Bruno Haible  <bruno@clisp.org>
49661
49662         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
49663         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
49664         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
49665         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
49666         * m4/gettext.m4: Require autoconf >= 2.52.
49667         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
49668         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
49669         of gl_cv_header_inttypes_h.
49670
49671 2006-09-18  Bruno Haible  <bruno@clisp.org>
49672
49673         * lib/javaversion.c: Include configmake.h.
49674
49675 2006-09-18  Bruno Haible  <bruno@clisp.org>
49676
49677         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
49678         avoid that the while loops be executed in a subshell.
49679
49680 2006-09-18  Bruno Haible  <bruno@clisp.org>
49681
49682         * MODULES.html.sh (func_module): Break long lines.
49683         Suggested by Bruce Korb <bkorb@gnu.org>.
49684
49685 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49686
49687         Speed up by a factor of 1.12.
49688         * gnulib-tool (nl): New variable.
49689         (func_import): Rewrite include directive extraction to only read each
49690         directive once.
49691
49692 2006-09-17  Bruno Haible  <bruno@clisp.org>
49693
49694         * modules/javaversion (Makefile.am): Remove DEFS setting.
49695         (Depends-on): Add configmake, for PKGDATADIR definition.
49696
49697 2006-09-17  Bruno Haible  <bruno@clisp.org>
49698
49699         * gnulib-tool (func_create_testdir): Rewrite all files at once.
49700
49701 2006-09-17  Bruno Haible  <bruno@clisp.org>
49702
49703         * gnulib-tool (func_append): New function, stolen from libtool.m4.
49704         (func_modules_transitive_closure, func_modules_add_dummy,
49705         func_modules_to_filelist, func_import, func_create_testdir,
49706         func_create_megatestdir, ...): Use it wherever possible.
49707         Suggested by Ralf Wildenhues.
49708
49709 2006-09-16  Karl Berry  <karl@gnu.org>
49710
49711         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
49712         to avoid sectioning errors.
49713         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
49714         [ifinfo]: blank line after @center-ed titles.
49715         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
49716         Spell FSF address consistently with others.
49717         (These changes approved by rms.)
49718
49719 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49720
49721         Speed up by a factor of 1.61.
49722         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
49723         already checked module names again.
49724
49725 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49726
49727         Speed up by a factor of 1.13.
49728         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
49729         for new_files, and the input to func_add_or_update.
49730
49731 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49732
49733         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
49734         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
49735
49736 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49737
49738         * modules/mkancesdirs (Depends-on): Add fcntl.
49739         * modules/savewd: New file.
49740         * MODULES.html.sh (File system functions): Add savewd.
49741
49742         * modules/configmake (Makefile.am): Add support for the
49743         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
49744
49745 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49746
49747         * m4/savewd.m4: New file.
49748
49749 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49750
49751         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
49752         (dirchownmod): New arg FD.  All callers changed.
49753         Use FD rather than opening the directory ourself, as opening is
49754         now the caller's responsibility.
49755         * lib/dirchownmod.h: Likewise.
49756         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
49757         hosts that require <sys/types.h> before <sys/stat.h>.  Include
49758         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
49759         (test_dir): Remove.
49760         (mkancesdirs): Return length of prefix of FILE that has already
49761         been made, or -2 if there is a child doing the work.  Redo
49762         algorithm so that it is O(N) rather than O(N**2).  Optimize away
49763         ".", and treat ".." specially since it might stray back into
49764         already-created areas.  Use a subprocess if necessary.  New arg
49765         WD; all users changed.  MAKE_DIR function should now return 1
49766         if it creates a directory that is not readable.  Return -2 if
49767         a child process is spun off.
49768         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
49769         Adjust signature to match code.
49770         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
49771         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
49772         all users changed.
49773         * lib/savewd.c, lib/savewd.h: New files.
49774
49775 2006-09-15  Jim Meyering  <jim@meyering.net>
49776
49777         * modules/rename-dest-slash: New module.
49778         * MODULES.html.sh (posix_compat): Add it here.
49779
49780         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
49781
49782 2006-09-15  Jim Meyering  <jim@meyering.net>
49783
49784         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
49785         file.
49786
49787         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
49788
49789 2006-09-15  Jim Meyering  <jim@meyering.net>
49790
49791         * lib/rename-dest-slash.c (has_trailing_slash): Use
49792         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
49793         (rpl_rename_dest_slash): Perform the cheaper trailing slash
49794         test before testing whether SRC is a directory.
49795         Suggestions from Bruno Haible.
49796
49797         Avoid a warning about an unused variable.
49798         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
49799         into the #ifdef block where it's used.
49800
49801         * lib/rename-dest-slash.c: New file.
49802
49803 2006-09-14  Bruno Haible  <bruno@clisp.org>
49804
49805         * lib/allocsa.c: Include <config.h> unconditionally.
49806         * lib/asnprintf.c: Likewise.
49807         * lib/asprintf.c: Likewise.
49808         * lib/c-strcasecmp.c: Likewise.
49809         * lib/c-strcasestr.c: Likewise.
49810         * lib/c-strncasecmp.c: Likewise.
49811         * lib/c-strstr.c: Likewise.
49812         * lib/classpath.c: Likewise.
49813         * lib/clean-temp.c: Likewise.
49814         * lib/concatpath.c: Likewise.
49815         * lib/copy-file.c: Likewise.
49816         * lib/csharpcomp.c: Likewise.
49817         * lib/csharpexec.c: Likewise.
49818         * lib/execute.c: Likewise.
49819         * lib/fatal-signal.c: Likewise.
49820         * lib/findprog.c: Likewise.
49821         * lib/fwriteerror.c: Likewise.
49822         * lib/gl_array_list.c: Likewise.
49823         * lib/gl_array_oset.c: Likewise.
49824         * lib/gl_avltree_list.c: Likewise.
49825         * lib/gl_avltree_oset.c: Likewise.
49826         * lib/gl_avltreehash_list.c: Likewise.
49827         * lib/gl_carray_list.c: Likewise.
49828         * lib/gl_linked_list.c: Likewise.
49829         * lib/gl_linkedhash_list.c: Likewise.
49830         * lib/gl_list.c: Likewise.
49831         * lib/gl_oset.c: Likewise.
49832         * lib/gl_rbtree_list.c: Likewise.
49833         * lib/gl_rbtree_oset.c: Likewise.
49834         * lib/gl_rbtreehash_list.c: Likewise.
49835         * lib/imaxabs.c: Likewise.
49836         * lib/imaxdiv.c: Likewise.
49837         * lib/javacomp.c: Likewise.
49838         * lib/javaexec.c: Likewise.
49839         * lib/javaversion.c: Likewise.
49840         * lib/linebreak.c: Likewise.
49841         * lib/localcharset.c: Likewise.
49842         * lib/lock.c: Likewise.
49843         * lib/mbchar.c: Likewise.
49844         * lib/mbswidth.c: Likewise.
49845         * lib/mkdtemp.c: Likewise.
49846         * lib/pipe.c: Likewise.
49847         * lib/printf-args.c: Likewise.
49848         * lib/printf-parse.c: Likewise.
49849         * lib/progname.c: Likewise.
49850         * lib/progreloc.c: Likewise.
49851         * lib/readlink.c: Likewise.
49852         * lib/sh-quote.c: Likewise.
49853         * lib/stpcpy.c: Likewise.
49854         * lib/stpncpy.c: Likewise.
49855         * lib/strcasecmp.c: Likewise.
49856         * lib/strcasestr.c: Likewise.
49857         * lib/strcspn.c: Likewise.
49858         * lib/striconv.c: Likewise.
49859         * lib/strncasecmp.c: Likewise.
49860         * lib/strnlen1.c: Likewise.
49861         * lib/strstr.c: Likewise.
49862         * lib/strtok_r.c: Likewise.
49863         * lib/tls.c: Likewise.
49864         * lib/tmpdir.c: Likewise.
49865         * lib/unicodeio.c: Likewise.
49866         * lib/unsetenv.c: Likewise.
49867         * lib/vasnprintf.c: Likewise.
49868         * lib/vasprintf.c: Likewise.
49869         * lib/wait-process.c: Likewise.
49870         * lib/xallocsa.c: Likewise.
49871         * lib/xsetenv.c: Likewise.
49872         * lib/xstriconv.c: Likewise.
49873
49874 2006-09-13  Simon Josefsson  <jas@extundo.com>
49875
49876         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
49877         that internally, suggested by Ralf Wildenhues
49878         <Ralf.Wildenhues@gmx.de>.
49879
49880 2006-09-13  Simon Josefsson  <jas@extundo.com>
49881
49882         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
49883         @LIBOBJS@.
49884         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49885
49886 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49887
49888         * lib/_fpending.c: Include <config.h> unconditionally, since we no
49889         longer worry about uses that don't define HAVE_CONFIG_H.
49890         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
49891         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
49892         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
49893         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
49894         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
49895         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
49896         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
49897         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
49898         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
49899         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
49900         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
49901         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
49902         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
49903         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
49904         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
49905         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
49906         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
49907         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
49908         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
49909         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
49910         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
49911         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
49912         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
49913         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
49914         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
49915         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
49916         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
49917         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
49918         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
49919         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
49920         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
49921         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
49922         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
49923         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
49924         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
49925         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
49926         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
49927         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
49928         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
49929         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
49930         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
49931         Likewise.
49932
49933 2006-09-13  Eric Blake  <ebb9@byu.net>
49934
49935         * lib/getopt.c: Fix typo in last commit.
49936
49937 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49938
49939         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
49940         dgettext.
49941
49942 2006-09-12  Jim Meyering  <jim@meyering.net>
49943
49944         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
49945         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
49946         Reported by Nelson H. F. Beebe.
49947
49948 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49949
49950         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
49951         program_invocation_name and program_invocation_short_name are
49952         initialized.
49953         * lib/argp-namefrob.h: Move declarations of program_invocation_name
49954         and program_invocation_short_name to argp.h, so they are visible
49955         to user programs.
49956         * lib/argp.h: Likewise
49957
49958 2006-09-10  Bruno Haible  <bruno@clisp.org>
49959
49960         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49961         m4/inttypes_h.m4, m4/uintmax_t.m4.
49962
49963 2006-09-10  Bruno Haible  <bruno@clisp.org>
49964
49965         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
49966         gl_AC_TYPE_UINTMAX_T.
49967
49968 2006-09-10  Bruno Haible  <bruno@clisp.org>
49969
49970         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
49971
49972 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49973
49974         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
49975         convention.  Text proposed by Bruno Haible.
49976         (struct argp_option): Document the use of N_() wrappers.
49977
49978         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
49979         '\v', and translate the two parts separately, instead of feeding
49980         the whole string to gettext.  This allows to exclude
49981         '\v' from the strings visible to the translator by writing doc
49982         strings as N_("..") "\v" N_("..").
49983
49984 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
49985
49986         * config/srclist.txt: Undo latest change; the bug was fixed.
49987
49988 2006-09-09  Bruno Haible  <bruno@clisp.org>
49989
49990         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
49991         assignments if building a library without libtool.
49992         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
49993         in func_emit_lib_Makefile_am.
49994         (func_import): When building a static library libfoo.a, arrange to
49995         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
49996         (func_create_testdir): Likewise.
49997         * modules/gc (configure.ac, Makefile.am): If building statically,
49998         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
49999         * modules/iconvme (configure.ac, Makefile.am): Likewise.
50000         * modules/striconv (configure.ac, Makefile.am): Likewise.
50001         Based on a suggestion by Ralf Wildenhues.
50002
50003 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50004
50005         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50006         Check for unistd.h too, since Autoconf doesn't assume POSIX.
50007         Also:
50008
50009         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50010         Add year_2050_test to catch glibc bug 2821
50011         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50012
50013         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50014         Prefer #ifdef to #if.
50015
50016         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
50017         Return from 'main' instead of calling 'exit'.
50018
50019 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50020
50021         * lib/mktime.c (guess_time_tm): Fix bug where mktime
50022         returned the maximum time_t value rather than (time_t) -1.
50023         Problem originally reported by William Bardwell
50024         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50025
50026         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50027         Moved to here ...
50028         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50029         ... from here.
50030
50031 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50032
50033         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
50034         2821 is fixed.
50035
50036 2006-09-08  Jim Meyering  <jim@meyering.net>
50037
50038         Don't make generated files read-only.  That would bother too many
50039         people.  However, do retain the ability to work when targets are
50040         read-only: remove the destination and temporary files before writing
50041         them (when generated via sed or echo), or by using the -f option for
50042         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
50043         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50044         * modules/byteswap, modules/configmake, modules/fcntl:
50045         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50046         * modules/localcharset, modules/netinet_in, modules/poll:
50047         * modules/stdbool, modules/stdint, modules/sys_select:
50048         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50049
50050 2006-09-08  Jim Meyering  <jim@meyering.net>
50051
50052         Avoid new build failure on FreeBSD 6.0.
50053         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
50054         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
50055         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
50056
50057 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50058
50059         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
50060
50061 2006-09-07  Jim Meyering  <jim@meyering.net>
50062
50063         Fix global typo in last change: use chmod u-w, not chmod u-x.
50064         Spotted by Paul Eggert and Bruce Korb.
50065         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50066         * modules/byteswap, modules/configmake, modules/fcntl:
50067         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50068         * modules/localcharset, modules/netinet_in, modules/poll:
50069         * modules/stdbool, modules/stdint, modules/sys_select:
50070         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50071
50072 2006-09-06  Jim Meyering  <jim@meyering.net>
50073
50074         Make generated files be read-only.
50075         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
50076         Ensure that each generated file is now read-only.
50077         * modules/argz: Likewise.
50078         * modules/arpa_inet: Likewise.
50079         * modules/byteswap: Likewise.
50080         * modules/configmake: Likewise.
50081         * modules/fcntl: Likewise.
50082         * modules/fnmatch: Likewise.
50083         * modules/getopt: Likewise.
50084         * modules/glob: Likewise.
50085         * modules/inttypes: Likewise.
50086         * modules/netinet_in: Likewise.
50087         * modules/poll: Likewise.
50088         * modules/stdbool: Likewise.
50089         * modules/stdint: Likewise.
50090         * modules/sys_select: Likewise.
50091         * modules/sys_socket: Likewise.
50092         * modules/sys_stat: Likewise.
50093         * modules/sysexits: Likewise.
50094         * modules/localcharset: Same as above, but continue using temporary
50095         file named "t-$@" (why different?) rather than the "$@-t" used
50096         everywhere else.
50097
50098         * modules/sysexits (Makefile.am): Replace literal occurrences
50099         of "sysexit.h" more readable, and more consistent, "$@".
50100
50101 2006-09-06  Bruno Haible  <bruno@clisp.org>
50102
50103         * modules/striconv: New file.
50104         * modules/xstriconv: New file.
50105         * MODULES.html.sh (Internationalization functions): Add striconv,
50106         xstriconv.
50107
50108 2006-09-06  Bruno Haible  <bruno@clisp.org>
50109
50110         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
50111         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
50112         not using libtool correctly.
50113
50114 2006-09-06  Bruno Haible  <bruno@clisp.org>
50115
50116         * lib/striconv.h: New file.
50117         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
50118         iconvstring.c.
50119         * lib/xstriconv.h: New file.
50120         * lib/xstriconv.c: New file.
50121
50122 2006-09-06  Bruno Haible  <bruno@clisp.org>
50123
50124         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50125         lib_..._LDFLAGS.
50126
50127 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50128
50129         * lib/argz_.h: Sync from Libtool.
50130
50131         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
50132                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50133
50134         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
50135
50136 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50137
50138         * modules/trim: New file.
50139
50140 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50141
50142         * lib/trim.h: New file.
50143         * lib/trim.c: New file.
50144
50145 2006-09-05  Bruno Haible  <bruno@clisp.org>
50146
50147         * MODULES.html.sh (String handling): Add trim.
50148
50149 2006-09-04  Karl Berry  <karl@gnu.org>
50150
50151         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
50152         until next release.
50153
50154 2006-09-03  Bruno Haible  <bruno@clisp.org>
50155
50156         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
50157         correctly.
50158
50159 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50160
50161         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
50162         not gl_GETLOADAVG.  Omit unneeded semicolons.
50163         Problems reported by Ralf Wildenhues in
50164         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50165         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
50166         at the end, which is the usual gnulib style.
50167
50168         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
50169         of doing all the work ourselves.
50170         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
50171         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
50172
50173 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50174
50175         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
50176         Problem reported by Ralf Wildenhues in
50177         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50178
50179         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
50180         HAVE_STRUCT_STATFS_F_FSTYPENAME.
50181
50182 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50183
50184         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
50185         yesterday's patch by changing test -n to test -z.
50186
50187 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50188
50189         * modules/getloadavg (Files): Add m4/getloadavg.m4.
50190         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
50191         the former is now obsolescent.
50192
50193         * modules/chdir-long (Depends-on): Add fcntl.
50194
50195 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50196
50197         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
50198         obsolescent, and programs should use gnulib instead.
50199         * m4/getloadavg.m4: New file, with contents taken from Autoconf
50200         but with prefixes changed.
50201
50202 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50203
50204         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
50205         or stdbool.h, because they might not exist while configuring.
50206
50207         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
50208         Don't include unistd.h or limits.h; not needed, since chdir-long.h
50209         does that for us.
50210         (O_DIRECTORY): Remove.
50211
50212 2006-08-31  Eric Blake  <ebb9@byu.net>
50213
50214         * gnulib-tool: Don't let emacs change spaces to TAB.
50215
50216 2006-08-31  Bruno Haible  <bruno@clisp.org>
50217
50218         * gnulib-tool: When calling func_import more than once, do it in a
50219         subshell.
50220         Reported by Eric Blake <ebb9@byu.net>.
50221
50222 2006-08-31  Bruno Haible  <bruno@clisp.org>
50223
50224         * gnulib-tool (nl): Remove variable.
50225         (sed_transform_lib_file): Use more robust test for config-h module.
50226         (func_import): Fix typo in 2006-08-25 patch.
50227
50228 2006-08-31  Bruno Haible  <bruno@clisp.org>
50229
50230         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
50231         specified, augment Makefile.am variables instead of assigning them.
50232
50233 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50234
50235         Work around a bug in both the Linux and SunOS 64-bit kernels:
50236         nanosleep mishandles sleeps for longer than 2**31 seconds.
50237         Problem reported by Frank v Waveren in
50238         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50239         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
50240         Check for nanosleep bug.
50241         (LIB_NANOSLEEP): Append clock_gettime library if needed.
50242
50243 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50244
50245         Work around a bug in both the Linux and SunOS 64-bit kernels:
50246         nanosleep mishandles sleeps for longer than 2**31 seconds.
50247         Problem reported by Frank v Waveren in
50248         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50249         * lib/nanosleep.c (BILLION): New constant.
50250         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
50251         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
50252         implementation.
50253
50254 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50255
50256         * modules/nanosleep (Depends-on): Add gettime.
50257
50258 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50259         and Simon Josefsson  <jas@extundo.com>
50260         and Oskar Liljeblad  <oskar@osk.mine.nu>
50261
50262         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
50263         * gnulib-tool (func_import): New license type 'unmodifiable license
50264         text'.
50265         * modules/fdl: Use it.  Longer description.
50266         * module/gpl, module/lgpl: New files.
50267
50268 2006-08-30  Jim Meyering  <jim@meyering.net>
50269
50270         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
50271         shadowing the parameter.
50272
50273 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50274
50275         Sync from Libtool:
50276
50277         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50278
50279         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
50280         sharing with gnulib.  Report by Eric Blake.
50281
50282 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50283
50284         * modules/isapipe: New file.
50285         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
50286
50287 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50288
50289         * modules/configmake (Makefile.am): Add a comment, and omit
50290         the CONFIGMAKE_ prefix from generated macro names.  Suggested
50291         by Bruno Haible.
50292
50293 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50294
50295         * m4/isapipe.m4: New file.
50296
50297 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50298
50299         * lib/isapipe.c, lib/isapipe.h: New files.
50300
50301 2006-08-29  Jim Meyering  <jim@meyering.net>
50302
50303         * modules/configmake (Makefile.am): Make configmake.h depend on
50304         Makefile.  Otherwise, a stale configmake.h could hang around.
50305
50306 2006-08-29  Eric Blake  <ebb9@byu.net>
50307
50308         * lib/error.c (error_at_line, print_errno_message): Match libc, after
50309         resolution of upstream bug 3044.
50310
50311 2006-08-29  Bruno Haible  <bruno@clisp.org>
50312
50313         * modules/localcharset (Depends-on): Add configmake.
50314         (Makefile.am): Remove setting of LIBDIR through DEFS.
50315
50316 2006-08-29  Bruno Haible  <bruno@clisp.org>
50317
50318         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
50319         defined.
50320
50321 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50322
50323         * modules/fcntl: New file.
50324         * modules/chdir-safer (Depends-on): Add fcntl.
50325         * modules/fts: Likewise.
50326         * modules/mkdir-p: Likewise.
50327
50328         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
50329         This undoes the most recent change, since we're now addressing the
50330         problem in a different way.
50331
50332         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
50333         into output, since the output might be called Makefile.am even
50334         if $makefile_name is something different.
50335         (func_import): Use $makefile_am rather than
50336         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
50337         empty.
50338
50339         * modules/inttypes (Files): Add m4/inttypes-h.m4.
50340
50341 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50342
50343         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
50344         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
50345         recent change to stdint.m4, since we're now addressing the problem in a
50346         different way.
50347
50348 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50349
50350         * m4/fcntl_h.m4: New file.
50351
50352 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50353
50354         * lib/fcntl_.h: New file.
50355         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
50356         the fcntl module.
50357         * lib/dirchownmod.c: Likewise.
50358         * lib/fts.c: Likewise.
50359
50360         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
50361         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
50362         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
50363         just before including <inttypes.h>, to avoid circular inclusion.
50364
50365 2006-08-28  Jim Meyering  <jim@meyering.net>
50366
50367         * doc/visibility.texi: Actually read and correct the grammar of the
50368         sentence affected by yesterday's change.
50369
50370 2006-08-28  Eric Blake  <ebb9@byu.net>
50371
50372         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
50373         needs wrapper.
50374
50375 2006-08-28  Eric Blake  <ebb9@byu.net>
50376
50377         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
50378
50379 2006-08-28  Eric Blake  <ebb9@byu.net>
50380
50381         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
50382
50383 2006-08-28  Bruno Haible  <bruno@clisp.org>
50384
50385         * modules/c-strstr: New file, from GNU gettext.
50386         * MODULES.html.sh (String handling): Add c-strstr.
50387
50388 2006-08-28  Bruno Haible  <bruno@clisp.org>
50389
50390         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
50391         macros.
50392         Reported by Eric Blake.
50393
50394 2006-08-28  Bruno Haible  <bruno@clisp.org>
50395
50396         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
50397         (VASNPRINTF): Return a string of length > INT_MAX without failing.
50398         * lib/vasprintf.c: Include errno.h, limits.h.
50399         (EOVERFLOW): New fallback definition.
50400         (vasprintf): Test here whether the string length is > INT_MAX.
50401         * lib/vsnprintf.c: Include errno.h, limits.h.
50402         (EOVERFLOW): New fallback definition.
50403         (vsnprintf): Fix bug when generated string was too long for the buffer.
50404         Test here whether the string length is > INT_MAX.
50405
50406 2006-08-28  Bruno Haible  <bruno@clisp.org>
50407
50408         * lib/inttypes_.h (SCNX*): Remove definitions.
50409         Reported by Eric Blake.
50410
50411 2006-08-28  Bruno Haible  <bruno@clisp.org>
50412
50413         * lib/c-strstr.h: New file, from GNU gettext.
50414         * lib/c-strstr.c: New file, from GNU gettext.
50415
50416 2006-08-28  Bruno Haible  <bruno@clisp.org>
50417
50418         * gnulib-tool: Reorder some statements.
50419
50420 2006-08-28  Bruno Haible  <bruno@clisp.org>
50421
50422         * gnulib-tool: New option --makefile-name.
50423         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
50424         $makefile_name.
50425         (func_import): Write $makefile_name to the cache file, and read it from
50426         there unless explicitly specified. Use $makefile_name as file name
50427         instead of Makefile.am. Adjust the recommendations accordingly.
50428
50429 2006-08-28  Bruno Haible  <bruno@clisp.org>
50430
50431         * gnulib-tool (func_verify_module): Check against misapplying patch.
50432
50433 2006-08-28  Bruno Haible  <bruno@clisp.org>
50434
50435         * gnulib-tool (func_relativize, func_relconcat): New functions.
50436         Give an error if --local-dir is given with --update.
50437         Remove trailing slashes from $local_gnulib_dir.
50438         (func_import): Store the relativized $local_gnulib_dir in
50439         gnulib-cache.m4, and read it from there if not specified explicitly.
50440
50441 2006-08-28  Bruno Haible  <bruno@clisp.org>
50442
50443         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
50444         is the current directory. Respect also $local_gnulib_dir.
50445
50446 2006-08-28  Bruno Haible  <bruno@clisp.org>
50447             Simon Josefsson  <jas@extundo.com>
50448
50449         BeOS portability.
50450         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
50451
50452 2006-08-27  Jim Meyering  <jim@meyering.net>
50453
50454         * doc/visibility.texi: Remove duplicate word: "pointer".
50455
50456 2006-08-26  Bruno Haible  <bruno@clisp.org>
50457
50458         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
50459         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
50460         (Makefile.am): Create inttypes.h from inttypes_.h.
50461         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
50462
50463         * modules/imaxabs: New file.
50464
50465         * modules/imaxdiv: New file.
50466
50467 2006-08-26  Bruno Haible  <bruno@clisp.org>
50468
50469         * m4/inttypes.m4: New file.
50470         * m4/_inttypes_h.m4: Remove file.
50471         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
50472         PRI_MACROS_BROKEN.
50473         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
50474
50475         * m4/imaxabs.m4: New file.
50476
50477         * m4/imaxdiv.m4: New file.
50478
50479 2006-08-26  Bruno Haible  <bruno@clisp.org>
50480
50481         * lib/inttypes_.h: New file.
50482         * lib/inttypes.h: Remove file.
50483         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
50484
50485         * lib/imaxabs.c: New file.
50486
50487         * lib/imaxdiv.c: New file.
50488
50489 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50490
50491         New config-h module, so that "make" output needn't be cluttered
50492         by -DHAVE_CONFIG_H.
50493         * MODULES.html.sh (Support for building libraries and executables):
50494         Add config-h.
50495         * modules/config-h: New file.
50496         * gnulib-tool (nl, sed_transform_lib_file): New vars.
50497         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
50498         the config-h module is used.
50499
50500         New configmake module, so that "make" output needn't be cluttered
50501         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
50502         * MODULES.html.sh (Support for building libraries and executables):
50503         Add configmake.
50504         * modules/configmake: New file.
50505
50506 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50507
50508         * m4/config-h.m4: New file.
50509
50510 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50511
50512         * config/srclist.txt: Add elisp-comp.
50513
50514 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50515
50516         * MODULES.html.sh (Support for building libraries and executables):
50517         Add elisp-comp.
50518         * build-aux/elisp-comp: New file.
50519         * modules/elisp-comp: New file.
50520
50521 2006-08-24  Bruno Haible  <bruno@clisp.org>
50522
50523         * gnulib-tool (func_create_testdir): Use non-default values of
50524         sourcebase and m4base.
50525
50526 2006-08-24  Bruno Haible  <bruno@clisp.org>
50527
50528         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
50529         HTML structure.
50530
50531 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50532
50533         * modules/openat (Depends-on): Add lchown.
50534
50535 2006-08-23  Bruno Haible  <bruno@clisp.org>
50536
50537         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
50538         of gl_LOCK_EARLY instead of gl_LOCK.
50539
50540 2006-08-23  Bruno Haible  <bruno@clisp.org>
50541
50542         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
50543         on OSF/1 to no.
50544         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
50545
50546 2006-08-23  Bruno Haible  <bruno@clisp.org>
50547
50548         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
50549         as unusable.
50550
50551         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
50552         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
50553         (gl_LOCK): New macro.
50554
50555 2006-08-22  Simon Josefsson  <jas@extundo.com>
50556
50557         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
50558         to md5 module.
50559
50560 2006-08-22  Simon Josefsson  <jas@extundo.com>
50561
50562         * MODULES.html.sh: Add "Support for maintaining and release
50563         projects".
50564
50565         * build-aux/gnupload: New file, from coreutils.
50566
50567 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50568
50569         Avoid the need for AC_LIBSOURCES in m4 macros.
50570         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
50571         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
50572         * modules/check-version (EXTRA_DIST): Add check-version.h.
50573         * modules/crc (EXTRA_DIST): Add crc.h.
50574         * modules/des (EXTRA_DIST): Add des.h.
50575         * modules/gc (EXTRA_DIST): Add gc.h.
50576         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
50577         * modules/getline (EXTRA_DIST): Add getline.h.
50578         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
50579         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
50580         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
50581         * modules/md2 (EXTRA_DIST): Add md2.h.
50582         * modules/md4 (EXTRA_DIST): Add md4.h.
50583         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
50584         * modules/read-file (EXTRA_DIST): Add read-file.h.
50585         * modules/readline (EXTRA_DIST): Add readline.h.
50586         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
50587         rijndael-api-fst.h.
50588
50589 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50590
50591         * m4/rijndael.m4 (gl_ARCFOUR):
50592         * m4/arctwo.m4 (gl_ARCTWO):
50593         * m4/check-version.m4 (gl_CHECK_VERSION):
50594         * m4/crc.m4 (gl_CRC):
50595         * m4/des.m4 (gl_DES):
50596         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
50597         * m4/gc.m4 (gl_GC):
50598         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
50599         * m4/getline.m4 (gl_FUNC_GETLINE):
50600         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
50601         * m4/hmac-md5.m4 (gl_HMAC_MD5):
50602         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
50603         * m4/md2.m4 (gl_MD2):
50604         * m4/md4.m4 (gl_MD4):
50605         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
50606         * m4/read-file.m4 (gl_FUNC_READ_FILE):
50607         * m4/readline.m4 (gl_FUNC_READLINE):
50608         * m4/rijndael.m4 (gl_RIJNDAEL):
50609         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50610         to get the necessary .h files and whatnot.
50611
50612 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50613
50614         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
50615         gnulib rather than the other way around.
50616         * config/srclistvars.sh (COREUTILS): Remove.
50617
50618 2006-08-22  Jim Meyering  <jim@meyering.net>
50619
50620         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
50621
50622         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
50623
50624 2006-08-22  Eric Blake  <ebb9@byu.net>
50625
50626         * modules/regexprops-generic: New file.
50627         * MODULES.html.sh (Support for building documentation): List it.
50628
50629 2006-08-22  Eric Blake  <ebb9@byu.net>
50630
50631         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
50632         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50633         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
50634         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
50635
50636 2006-08-22  Bruno Haible  <bruno@clisp.org>
50637
50638         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
50639         and lib_LTLIBRARIES like the other lib_* variables.
50640
50641 2006-08-22  Bruno Haible  <bruno@clisp.org>
50642
50643         * build-aux/x-to-1.in: New file, from GNU gettext.
50644
50645 2006-08-22  Bruno Haible  <bruno@clisp.org>
50646
50647         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
50648         <utmpx.h> exists.
50649
50650 2006-08-22  Bruno Haible  <bruno@clisp.org>
50651
50652         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
50653         <utmpx.h> exists.
50654
50655 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50656
50657         BeOS portability.
50658         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
50659         exist.
50660         Problem reported by Bruno Haible.
50661
50662 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50663
50664         Avoid the need for AC_LIBSOURCES in m4 macros.
50665         * modules/acl (EXTRA_DIST): Add acl.h.
50666         * modules/argmatch (Files): Add m4/argmatch.m4.
50667         (configure.ac): Add gl_ARGMATCH.
50668         (EXTRA_DIST): Renamed from lib_SOURCES, for
50669         consistency with the other modules.  Remove argmatch.c.
50670         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
50671         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
50672         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
50673         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
50674         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
50675         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
50676         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
50677         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
50678         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
50679         * modules/closeout (EXTRA_DIST): Add closeout.h.
50680         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
50681         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
50682         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
50683         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
50684         dirname.h; remove basename.c and stripslash.c.
50685         * modules/exclude (EXTRA_DIST): Add exclude.h.
50686         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
50687         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
50688         * modules/file-type (EXTRA_DIST): Add file-type.h.
50689         * modules/filemode (EXTRA_DIST): Add filemode.h.
50690         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
50691         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50692         * modules/fpending (EXTRA_DIST): Add __fpending.h.
50693         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
50694         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
50695         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
50696         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
50697         * modules/getdate (EXTRA_DIST): Add getdate.c.
50698         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
50699         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
50700         * modules/getpass (EXTRA_DIST): Add getpass.h.
50701         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
50702         * modules/group-member (EXTRA_DIST): Add group-member.h.
50703         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
50704         * modules/hash (EXTRA_DIST): Add hash.h.
50705         * modules/human (EXTRA_DIST): Add human.h.
50706         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
50707         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
50708         * modules/lchown (EXTRA_DIST): Add lchown.h.
50709         * modules/long-options (EXTRA_DIST): Add long-options.h.
50710         * modules/lstat (EXTRA_DIST): Add lstat.h.
50711         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
50712         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
50713         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
50714         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
50715         * modules/memxor (EXTRA_DIST): Add memxor.h.
50716         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
50717         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
50718         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
50719         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
50720         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
50721         * modules/physmem (EXTRA_DIST): Add physmem.h.
50722         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
50723         * modules/posixver (EXTRA_DIST): Add posixver.h.
50724         * modules/quote (EXTRA_DIST): Add quote.h.
50725         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
50726         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
50727         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
50728         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
50729         regex_internal.h regexec.c.
50730         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
50731         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
50732         * modules/same (EXTRA_DIST): Add same.h.
50733         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
50734         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
50735         * modules/savedir (EXTRA_DIST): Add savedir.h.
50736         * modules/sha1 (EXTRA_DIST): Add sha1.h.
50737         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
50738         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
50739         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
50740         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
50741         * modules/strdup (EXTRA_DIST): Add strdup.h.
50742         * modules/strftime (EXTRA_DIST): Add strftime.h.
50743         * modules/strndup (EXTRA_DIST): Add strndup.h.
50744         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
50745         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
50746         * modules/time_r (EXTRA_DIST): Add time_r.h.
50747         * modules/timespec (EXTRA_DIST): Add timespec.h.
50748         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50749         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
50750         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
50751         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
50752         * modules/userspec (EXTRA_DIST): Add userspec.h.
50753         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
50754         * modules/utimens (EXTRA_DIST): Add utimens.h.
50755         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
50756         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
50757         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
50758         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
50759         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
50760         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
50761         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
50762         * modules/yesno (EXTRA_DIST): Add yesno.h.
50763
50764 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50765
50766         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
50767
50768         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
50769         * m4/dev-ino.m4, same-inode.m4: Remove.
50770
50771         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
50772         * m4/acl.m4 (AC_FUNC_ACL):
50773         * m4/backupfile.m4 (gl_BACKUPFILE):
50774         * m4/c-strtod.m4 (gl_C99_STRTOLD):
50775         * m4/canon-host.m4 (gl_CANON_HOST):
50776         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50777         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
50778         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
50779         * m4/cloexec.m4 (gl_CLOEXEC):
50780         * m4/close-stream.m4 (gl_CLOSE_STREAM):
50781         * m4/closeout.m4 (gl_CLOSEOUT):
50782         * m4/dirfd.m4 (gl_FUNC_DIRFD):
50783         * m4/dirname.m4 (gl_DIRNAME):
50784         * m4/exclude.m4 (gl_EXCLUDE):
50785         * m4/exitfail.m4 (gl_EXITFAIL):
50786         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
50787         * m4/file-type.m4 (gl_FILE_TYPE):
50788         * m4/filemode.m4 (gl_FILEMODE):
50789         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
50790         * m4/fpending.m4 (gl_FUNC_FPENDING):
50791         * m4/fprintftime.m4 (gl_FPRINTFTIME):
50792         * m4/fts.m4 (gl_FUNC_FTS):
50793         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
50794         * m4/getdate.m4 (gl_GETDATE):
50795         * m4/gethrxtime.m4 (gl_GETHRXTIME):
50796         * m4/getpagesize.m4 (gl_GETPAGESIZE):
50797         * m4/getpass.m4 (gl_FUNC_GETPASS):
50798         * m4/gettime.m4 (gl_GETTIME):
50799         * m4/getugroups.m4 (gl_GETUGROUPS):
50800         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
50801         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
50802         * m4/hard-locale.m4 (gl_HARD_LOCALE):
50803         * m4/hash.m4 (gl_HASH):
50804         * m4/idcache.m4 (gl_IDCACHE):
50805         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
50806         * m4/lchown.m4 (gl_FUNC_LCHOWN):
50807         * m4/long-options.m4 (gl_LONG_OPTIONS):
50808         * m4/lstat.m4 (gl_FUNC_LSTAT):
50809         * m4/md5.m4 (gl_MD5):
50810         * m4/memcasecmp.m4 (gl_MEMCASECMP):
50811         * m4/memcoll.m4 (gl_MEMCOLL):
50812         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
50813         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
50814         * m4/memxor.m4 (gl_MEMXOR):
50815         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
50816         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
50817         * m4/modechange.m4 (gl_MODECHANGE):
50818         * m4/mountlist.m4 (gl_MOUNTLIST):
50819         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50820         * m4/openat.m4 (gl_FUNC_OPENAT):
50821         * m4/pathmax.m4 (gl_PATHMAX):
50822         * m4/physmem.m4 (gl_PHYSMEM):
50823         * m4/posixtm.m4 (gl_POSIXTM):
50824         * m4/posixver.m4 (gl_POSIXVER):
50825         * m4/quote.m4 (gl_QUOTE):
50826         * m4/quotearg.m4 (gl_QUOTEARG):
50827         * m4/readtokens.m4 (gl_READTOKENS):
50828         * m4/readutmp.m4 (gl_READUTMP):
50829         * m4/regex.m4 (gl_REGEX):
50830         * m4/safe-read.m4 (gl_SAFE_READ):
50831         * m4/safe-write.m4 (gl_SAFE_WRITE):
50832         * m4/same.m4 (gl_SAME):
50833         * m4/save-cwd.m4 (gl_SAVE_CWD):
50834         * m4/savedir.m4 (gl_SAVEDIR):
50835         * m4/settime.m4 (gl_SETTIME):
50836         * m4/sha1.m4 (gl_SHA1):
50837         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
50838         * m4/stat-macros.m4 (gl_STAT_MACROS):
50839         * m4/stat-time.m4 (gl_STAT_TIME):
50840         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
50841         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
50842         * m4/strdup.m4 (gl_FUNC_STRDUP):
50843         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
50844         * m4/strndup.m4 (gl_FUNC_STRNDUP):
50845         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
50846         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
50847         * m4/time_r.m4 (gl_TIME_R):
50848         * m4/timespec.m4 (gl_TIMESPEC):
50849         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
50850         * m4/unlinkdir.m4 (gl_UNLINKDIR):
50851         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
50852         * m4/userspec.m4 (gl_USERSPEC):
50853         * m4/utimecmp.m4 (gl_UTIMECMP):
50854         * m4/utimens.m4 (gl_UTIMENS):
50855         * m4/xalloc.m4 (gl_XALLOC):
50856         * m4/xgetcwd.m4 (gl_XGETCWD):
50857         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
50858         * m4/xreadlink.m4 (gl_XREADLINK):
50859         * m4/xstrtod.m4 (gl_XSTRTOD):
50860         * m4/yesno.m4 (gl_YESNO):
50861         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50862         to get the necessary .h files and whatnot.
50863
50864 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
50865             Bruno Haible  <bruno@clisp.org>
50866
50867         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
50868         /bin/sh understanding of '!' conditional negation.
50869
50870 2006-08-21  Jim Meyering  <jim@meyering.net>
50871
50872         * modules/openat (Depends-on): Really alphabetize.
50873
50874         * modules/acl (Depends-on): Add error and quote.
50875
50876         * check-module (find_included_lib_files): Add at-func.c to the
50877         ok-to-include-more-than-once white list.
50878
50879         * modules/openat (Depends-on): Add lstat.  Alphabetize.
50880
50881 2006-08-21  Bruno Haible  <bruno@clisp.org>
50882
50883         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50884         Emit a pkgdata_DATA variable only if some snippets add contents to it.
50885         Reported by Martin Lambers <marlam@marlam.de>.
50886
50887 2006-08-21  Bruno Haible  <bruno@clisp.org>
50888
50889         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
50890         specify an installation location, don't emit a noinst_LIBRARIES or
50891         noinst_LTLIBRARIES assignment.
50892
50893 2006-08-21  Bruno Haible  <bruno@clisp.org>
50894
50895         BeOS portability.
50896         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
50897         BeOS has mbrtowc() but no <wctype.h>.
50898
50899 2006-08-21  Bruno Haible  <bruno@clisp.org>
50900
50901         BeOS portability.
50902         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
50903         exist.
50904
50905 2006-08-21  Bruno Haible  <bruno@clisp.org>
50906
50907         BeOS portability.
50908         * lib/mbchar.h: Include <wctype.h> only if it exists.
50909
50910 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50911
50912         Remove files that are no longer needed by their respective modules.
50913         * m4/obstack.m4: Remove.
50914         * m4/strerror_r.m4: Remove.
50915         * m4/uint32_t.m4: Remove.
50916         * m4/uintptr_t.m4: Remove.
50917         * m4/ullong_max.m4: Remove.
50918         * m4/xstrtoimax.m4: Remove.
50919         * m4/xstrtoumax.m4: Remove.
50920
50921         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
50922         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
50923         dependencies now capture this.
50924
50925         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
50926         Do not use AC_LIBSOURCES, since gnulib modules now do this.
50927         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
50928         * m4/human.m4 (gl_HUMAN): Likewise.
50929         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
50930         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
50931
50932         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
50933
50934         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
50935         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
50936         stdint.
50937         * m4/human.m4 (gl_HUMAN): Likewise.
50938         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
50939         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
50940         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
50941         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
50942         * m4/xstrtol (gl_XSTRTOL): Likewise.
50943
50944         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
50945         AC_TYPE_LONG_LONG_INT.
50946         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
50947         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
50948         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
50949         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
50950
50951         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
50952         on stdbool.
50953
50954         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
50955         (gl_PREREQ_XSTRTOUL): Remove.
50956
50957         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
50958
50959         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
50960         mode.
50961
50962 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50963
50964         Add and change modules to make it easier for coreutils to use
50965         gnulib-tool.
50966         * modules/backupfile (Files): Remove m4/d-ino.m4.
50967         (Depends-on): Add d-ino.
50968         * modules/cycle-check (Depends-on): Add stdint.
50969         (lib_SOURCES): Add cycle-check.h.
50970         * modules/d-ino: New module.
50971         * modules/d-type: New module.
50972         * modules/error (Files): Remove m4/strerror_r.m4.
50973         * modules/filemode (Files): Add m4/st_dm_mode.m4.
50974         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
50975         m4/inttypes_h.m4, m4/uintmax_t.m4.
50976         (Depends-on): Add stdint.
50977         (lib_SOURCES): Add fsusage.h.
50978         * modules/getcwd (Files): Remove d-ino.m4.
50979         (Depends-on): Add d-ino.
50980         * modules/getndelim2 (Depends-on): Add stdint.
50981         * modules/glob (Files): Remove m4/d-type.m4.
50982         (Depends-on): Add d-type.
50983         * modules/host-os: New module.
50984         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
50985         m4/inttypes_h.m4, m4/uintmax_t.m4.
50986         * Depends-on: Add stdint.
50987         (lib_SOURCES): Add human.h.
50988         * modules/inttostr (Files): Remove m4/intmax_t.m4,
50989         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
50990         m4/uintmax_t.m4, m4/ulonglong.m4.
50991         (Depends-on): Add stdint.
50992         (EXTRA_DIST): Add inttostr.h.
50993         * modules/lchmod: New module.
50994         * modules/link-follow: New module.
50995         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
50996         (Depends-on): Add lchmod.
50997         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
50998         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
50999         (Depends-on): Add stdint.
51000         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
51001         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
51002         (Depends-on): Add stdint.
51003         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
51004         * modules/perl: New module.
51005         * modules/regex (Depends-on): Add stdint.
51006         * modules/rmdir-errno: New module.
51007         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51008         m4/intmax_t.m4.
51009         (Depends-on): Add stdint.
51010         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51011         m4/uintmax_t.m4.
51012         (Depends-on): Add stdint.
51013         * modules/unlink-busy: New module.
51014         * modules/utimecmp (Depends-on): Add stdint.
51015         * modules/uptime: New module.
51016         * modules/winsz-ioctl: New module.
51017         * modules/winsz-termios: New module.
51018         * modules/xnanosleep (Depends-on): Add nanosleep.
51019         * modules/ullong_max: Remove.
51020         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
51021         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
51022         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
51023         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
51024         (Depends-on): Add inttypes.
51025         (lib_SOURCES): Add xstrtol.h.
51026         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
51027         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
51028         * MODULES.html.sh: Move 'assert' into the assert section.
51029         Move 'dummy' into the linking section.
51030         Remove ullong_max.
51031         Add section for compatibility checks for POSIX:2001 functions,
51032         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
51033         winsz-ioctl, and winsz-termios into it.
51034         Add lchmod.
51035         Add top-level Misc section and put host-os, perl, and uptime
51036         into it.
51037
51038 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51039
51040         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
51041         now assume the stdint module.  Do not include inttypes.h.
51042         * lib/fsusage.h: Likewise.
51043         * lib/getndelim2.c: Likewise.
51044         * lib/human.h: Likewise.
51045         * lib/inttostr.h: Likewise.
51046         * lib/obstack.c: Likewise.
51047         * lib/regex_internal.h: Likewise.
51048         * lib/tempname.c: Likewise.
51049         * lib/utimecmp.c: Likewise.
51050         * lib/xstrtol.h: Likewise.
51051
51052         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
51053
51054         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
51055         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
51056         * lib/xtime.h: Likewise.
51057
51058 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51059
51060         * modules/openat (Files): Add lib/fchmodat.c.
51061         Fixes problem reported by Jay Youngman.
51062
51063 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51064
51065         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
51066         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
51067
51068 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
51069             Bruno Haible  <bruno@clisp.org>
51070
51071         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
51072         and is a script that invokes bison. Tighten the code. Add comments.
51073
51074 2006-08-18  Jim Meyering  <jim@meyering.net>
51075
51076         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
51077         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
51078         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
51079         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
51080
51081 2006-08-18  Bruno Haible  <bruno@clisp.org>
51082
51083         * modules/bison-i18n: New file.
51084         * MODULES.html.sh (Internationalization functions): Add it.
51085
51086 2006-08-18  Bruno Haible  <bruno@clisp.org>
51087
51088         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
51089         sys/statvfs.h. When getmntinfo was found, check its declaration and
51090         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
51091
51092 2006-08-18  Bruno Haible  <bruno@clisp.org>
51093
51094         * m4/bison-i18n.m4: New file, from bison.
51095
51096 2006-08-18  Bruno Haible  <bruno@clisp.org>
51097
51098         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
51099         (ME_DUMMY): Treat "kernfs" as a dummy.
51100         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
51101
51102 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51103
51104         Update from coreutils.
51105
51106         2006-08-15  Jim Meyering  <jim@meyering.net>
51107
51108         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
51109
51110         2006-01-17  Jim Meyering  <jim@meyering.net>
51111
51112         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
51113
51114         2006-01-11  Jim Meyering  <jim@meyering.net>
51115
51116         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
51117         Check for the lchmod function.
51118
51119 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51120
51121         Update from coreutils.
51122
51123         * lib/__fpending.h: Add copyright notice.
51124         * lib/fprintftime.h: Likewise.
51125         * lib/savedir.c: Use (C) in copyright notice.
51126         * lib/savedir.h: Likewise.
51127
51128         2006-08-15  Jim Meyering  <jim@meyering.net>
51129
51130         * lib/at-func.c: New file, with the logic of all emulated at-functions.
51131         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
51132         in support of the EXPECTED_ERRNO macro.
51133         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
51134         definitions.  Instead, define the appropriate symbols and include
51135         "at-func.c".
51136         * lib/mkdirat.c (mkdirat): Likewise.
51137         * lib/fchmodat.c (fchmodat): Likewise.
51138         (ENOSYS): Remove definition.
51139         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
51140         it.  Don't include "unistd--.h" -- it wasn't ever used.
51141
51142         2006-01-17  Jim Meyering  <jim@meyering.net>
51143
51144         Rewrite fts.c not to change the current working directory,
51145         by using openat, fstatat, fdopendir, etc..
51146
51147         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
51148         (HAVE_OPENAT_SUPPORT): Define.
51149         [_LIBC] (fchdir): Don't undef or define; no longer used.
51150         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
51151         Now, this `function' always succeeds, and consumes its file descriptor
51152         parameter -- so callers must not close such FDs.  Update callers.
51153         (diropen_fd, opendirat, cwd_advance_fd): New functions.
51154         (diropen): Add parameter, SP.  Adjust all callers.
51155         Implement using diropen_fd, rather than open.
51156         (fts_open): Initialize new member, fts_cwd_fd.
51157         Remove fts_rft-setting code.
51158         (fts_close): Close fts_cwd_fd, if necessary.
51159         (__opendir2): Define in terms of opendir or opendirat,
51160         depending on whether the FST_NOCHDIR flag is set.
51161         (fts_build): Since fts_safe_changedir consumes its FD, and since
51162         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
51163         and close the dup'd file descriptor upon failure.
51164         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
51165         (fts_safe_changedir): Tweak semantics to reflect that this function
51166         now calls cwd_advance_fd and hence consumes its FD argument.
51167         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
51168         [struct FTS] (fts_rft): Remove now-unused member.
51169         [struct FTS] (fts_cycle.state): Improve comment.
51170
51171         * lib/openat.c (openat_needs_fchdir): New function.
51172         * lib/openat.h (openat_needs_fchdir): Declare it.
51173
51174 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51175
51176         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
51177         Problem and fix reported by Pádraig Brady in
51178         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
51179
51180 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51181
51182         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
51183
51184 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51185
51186         * lib/memcoll.c (memcoll): Optimize for the common case where the
51187         arguments are bytewise equal.
51188
51189 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51190
51191         * doc/regexprops-generic.texi: Add a copyright notice.
51192
51193 2006-08-15  Bruno Haible  <bruno@clisp.org>
51194
51195         * modules/tmpdir (License): Change to LGPL.
51196
51197 2006-08-15  Bruno Haible  <bruno@clisp.org>
51198
51199         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
51200         module.
51201
51202 2006-08-14  Simon Josefsson  <jas@extundo.com>
51203
51204         * config/srclist.txt: Add gnupload.
51205
51206 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51207
51208         Change copyright notice from LGPL 2 to GPL 2, since that's the
51209         standard form used in the gnulib repository.
51210         * tests/test-lock.c: Likewise.
51211         * tests/test-stdint.c: Likewise.
51212         * tests/test-tls.c: Likewise.
51213
51214         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
51215         prelude-manager.  User shorter URLs for GNU projects, without '?'.
51216         Add copyright notice.
51217
51218         * check-module: Add copyright notice.  Output a copyright
51219         notice if "--version" is specified.
51220         * modules/COPYING: New file.
51221         * tests/test-getaddrinfo.c: Add copyright notice.
51222         * tests/test-verify.c: Likewise.
51223
51224 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51225
51226         Change copyright notice from LGPL 2 to GPL 2, since that's the
51227         standard form used in the gnulib repository.
51228         * lib/lock.c: LGPL -> GPL.
51229         * lib/lock.h: Likewise.
51230         * lib/strnlen1.c: Likewise.
51231         * lib/strnlen1.h: Likewise.
51232         * lib/tls.c: Likewise.
51233         * lib/tls.h: Likewise.
51234         * lib/tmpdir.c: Likewise.
51235
51236         * lib/TODO: Remove; this belongs only in coreutils.
51237
51238 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51239
51240         Add copyright notices to long-enough files that lack them, since
51241         otherwise the files aren't clearly free.  Use the same notice that
51242         getdate.texi already uses.
51243         * doc/alloca-opt.texi: Add copyright notice.
51244         * doc/alloca.texi: Likewise.
51245         * doc/ctime.texi: Likewise.
51246         * doc/functions.texi: Likewise.
51247         * doc/gcd.texi: Likewise.
51248         * doc/gnulib-tool.texi: Likewise.
51249         * doc/inet_ntoa.texi: Likewise.
51250         * doc/visibility.texi: Likewise.
51251
51252         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
51253         * doc/quote.texi: Add copyright notice.
51254
51255         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
51256         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
51257         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
51258         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
51259         is now obsolete, and give a pointer to the Sun list.
51260         Add copyright notice.
51261
51262 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51263
51264         * config/srclistvars.sh: Add copyright notice.
51265
51266 2006-08-14  Eric Blake  <ebb9@byu.net>
51267
51268         Import the following change from libc:
51269
51270         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
51271
51272         Upstream bug 2997.
51273         * lib/misc/error.c: Add space between program name and message if file
51274         name is missing.
51275
51276 2006-08-12  Karl Berry  <karl@gnu.org>
51277
51278         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
51279         remove, these originate in gnulib now.
51280
51281 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51282
51283         * doc/Makefile (standards.info standards.html standards.dvi):
51284         Also depend on make-stds.texi.
51285
51286 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51287
51288         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
51289         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
51290
51291         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
51292         in wchar_t.  Problem reported by Eric Blake.
51293
51294         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
51295         LEN is smaller than SIZE.  Suggested by Bruno Haible.
51296         Also, help the compiler to keep LEN in a register.
51297
51298 2006-08-11  Eric Blake  <ebb9@byu.net>
51299
51300         * users.txt: Sort.  Add tar.
51301
51302 2006-08-11  Bruno Haible  <bruno@clisp.org>
51303
51304         * users.txt: New file.
51305
51306 2006-08-11  Bruno Haible  <bruno@clisp.org>
51307
51308         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
51309         before <wchar.h>. Needed for OSF/1 and BSD/OS.
51310
51311 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51312
51313         * modules/snprintf (Depends-on): Remove minmax.
51314         (Maintainer): Add self and Bruno.
51315
51316 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51317
51318         * lib/.cppi-disable: Add snprintf.h, socket_.h.
51319         * lib/snprintf.c: Include <errno.h> and <limits.h>.
51320         (EOVERFLOW): Define if the system does not.
51321         Do not include "minmax.h"; it wasn't used.
51322         (snprintf): Don't assume size_t promotes to an unsigned type.
51323         Fix bug when generated string was too long for the buffer: the
51324         buffer's contents are supposed to be the initial prefix of the
51325         output.  Don't assume vasnprintf returns EOVERFLOW if the size
51326         exceeds INT_MAX; do the check ourselves.
51327
51328         Import the following changes from libc:
51329
51330         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
51331
51332         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
51333         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
51334         set wc to the byte which couldn't be converted.
51335         (re_string_reconstruct): Don't clear valid_raw_len before calling
51336         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
51337         tip_context using re_string_context_at.
51338
51339         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
51340
51341         * lib/posix/regex.h: g++ still cannot handled [restrict].
51342
51343         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
51344
51345         * lib/posix/regex.h: Remove special handling for VMS.
51346
51347 2006-08-10  Jim Meyering  <jim@meyering.net>
51348
51349         * modules/same-inode: New module.
51350         * modules/dev-ino: New module.
51351         * modules/cycle-check: Depend on these modules, rather than simply
51352         including their .h files.
51353         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
51354         required via m4/cycle-check.m4.
51355         * modules/same: Depend on new same-inode module, rather than
51356         including same-inode.h.
51357         * modules/chdir-safer: New file.
51358
51359         * modules/chown (Depends-on): Add stat-macros.
51360
51361 2006-08-10  Jim Meyering  <jim@meyering.net>
51362
51363         * m4/cycle-check.m4: New file.
51364         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
51365         * m4/dev-ino.m4, m4/same-inode.m4: New files.
51366
51367 2006-08-10  Eric Blake  <ebb9@byu.net>
51368
51369         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
51370         in from original proposal.
51371
51372 2006-08-10  Eric Blake  <ebb9@byu.net>
51373         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51374
51375         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
51376         namespace.
51377
51378 2006-08-10  Bruno Haible  <bruno@clisp.org>
51379
51380         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
51381         as well.
51382
51383 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51384
51385         Sync from coreutils.
51386
51387         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
51388
51389         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
51390         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
51391
51392 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51393
51394         * modules/restrict: Remove; no longer needed now that we assume
51395         Autoconf 2.59 or later.
51396         * MODULES.html.sh: Remove 'restrict'.
51397         * modules/argp (Depends-on): Remove 'restrict'.
51398         * modules/base64 (Depends-on): Likewise.
51399         * modules/gc (Depends-on): Likewise.
51400         * modules/getaddrinfo (Depends-on): Likewise.
51401         * modules/glob (Depends-on): Likewise.
51402         * modules/inet_ntop (Depends-on): Likewise.
51403         * modules/inet_pton (Depends-on): Likewise.
51404         * modules/memxor (Depends-on): Likewise.
51405         * modules/regex (Depends-on): Likewise.
51406         * modules/strtok_r (Depends-on): Likewise.
51407         * modules/time_r (Depends-on): Likewise.
51408
51409 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51410
51411         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
51412         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
51413         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51414         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
51415         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
51416         * m4/memxor.m4 (gl_MEMXOR): Likewise.
51417         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
51418         gl_C_RESTRICT replaced by AC_C_RESTRICT.
51419
51420         Merge from coreutils.
51421         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
51422         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
51423         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51424         * m4/time_r.m4 (gl_TIME_R): Likewise.
51425
51426 2006-08-09  Karl Berry  <karl@gnu.org>
51427
51428         * config/srclist.txt: no more gettext-tools, per Bruno.
51429
51430 2006-08-08  Eric Blake  <ebb9@byu.net>
51431
51432         * modules/verror: New module.
51433         * MODULES.html.sh: Document it.
51434
51435 2006-08-08  Eric Blake  <ebb9@byu.net>
51436
51437         * lib/verror.h, lib/verror.c: New files.
51438
51439 2006-08-08  Eric Blake  <ebb9@byu.net>
51440
51441         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
51442         verror_at_line output complies with GNU Coding Standards even when
51443         file is NULL.
51444
51445 2006-08-07  Bruno Haible  <bruno@clisp.org>
51446
51447         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
51448         versions of AIX.
51449         Reported by Ralf Wildenhues.
51450
51451 2006-08-07  Bruno Haible  <bruno@clisp.org>
51452
51453         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
51454         in an AC_DEFUN. Needed so that the autoconf snippets can use
51455         AC_REQUIRE.
51456
51457 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51458
51459         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51460         Initialize pkgdata_DATA.
51461         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
51462         overriding it.
51463
51464 2006-08-06  Eric Blake  <ebb9@byu.net>
51465
51466         * lib/error.h: Fold in some upstream changes from glibc.
51467         * lib/error.c: Likewise.
51468
51469 2006-08-04  Bruno Haible  <bruno@clisp.org>
51470
51471         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51472         Make the mostlyclean-local rule depend on mostlyclean-generic.
51473         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
51474
51475 2006-07-31  Bruno Haible  <bruno@clisp.org>
51476
51477         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
51478         <stdlib.h>, <string.h>.
51479
51480 2006-07-30  Bruno Haible  <bruno@clisp.org>
51481
51482         * modules/readlink (License): Change to LGPL.
51483
51484 2006-07-30  Bruno Haible  <bruno@clisp.org>
51485
51486         * modules/javaversion (Makefile.am): Distribute javaversion.java and
51487         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
51488         set PKGDATADIR to point to it.
51489
51490 2006-07-30  Bruno Haible  <bruno@clisp.org>
51491
51492         * modules/csharpexec (configure.ac): Comment out macro invocation.
51493         * modules/javaexec (configure.ac): Likewise.
51494         * modules/javacomp-script (configure.ac): Likewise.
51495
51496         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
51497
51498 2006-07-30  Bruno Haible  <bruno@clisp.org>
51499
51500         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
51501         linked-list.
51502
51503 2006-07-30  Bruno Haible  <bruno@clisp.org>
51504
51505         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
51506
51507 2006-07-30  Bruno Haible  <bruno@clisp.org>
51508
51509         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51510         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
51511         get removed.
51512
51513 2006-07-29  Bruno Haible  <bruno@clisp.org>
51514
51515         Make it possible for gnulib-tool to work with locally modified or
51516         augmented gnulib repositories.
51517         * gnulib-tool (func_usage): Document --local-dir option.
51518         (local_gnulib_dir): New variable.
51519         Handle --local-dir option.
51520         (func_lookup_file): New function.
51521         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
51522         (func_get_description, func_get_filelist, func_get_description,
51523         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
51524         func_get_automake_snippet, func_get_include_directive,
51525         func_get_license, func_get_maintainer): Use func_lookup_file.
51526         (func_import, func_create_testdir): Use func_lookup_file.
51527
51528 2006-07-29  Bruno Haible  <bruno@clisp.org>
51529
51530         * modules/setenv (Depends-on): Add unistd.
51531
51532 2006-07-29  Bruno Haible  <bruno@clisp.org>
51533
51534         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
51535
51536 2006-07-29  Bruno Haible  <bruno@clisp.org>
51537
51538         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
51539
51540 2006-07-29  Bruno Haible  <bruno@clisp.org>
51541
51542         * gnulib-tool (import, update): If there is no Makefile.am, look at
51543         aclocal.m4, instead of bailing out.
51544
51545 2006-07-29  Bruno Haible  <bruno@clisp.org>
51546
51547         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
51548         Categorize the options by when they are useful.
51549
51550 2006-07-29  Bruno Haible  <bruno@clisp.org>
51551
51552         * gnulib-tool (func_usage): Document option --no-libtool.
51553         Handle option --no-libtool.
51554         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
51555         for changed semantics of $libtool variable.
51556         (func_import): Likewise. If libtool is not used, show this through
51557         an option --no-libtool.
51558         (func_create_testdir): Update.
51559
51560 2006-07-29  Bruno Haible  <bruno@clisp.org>
51561
51562         * gnulib-tool (func_import): Extend error message about missing
51563         --doc-base.
51564
51565 2006-07-29  Bruno Haible  <bruno@clisp.org>
51566
51567         * gnulib-tool (func_import): Don't create the $docbase directory if
51568         there is no file to store there.
51569
51570 2006-07-29  Bruno Haible  <bruno@clisp.org>
51571
51572         * gnulib-tool (autoconf_minversion): If a --dir option is given and
51573         relevant, look for configure.ac there, not in the current directory.
51574         Also use a simple search for AC_PREREQ, not "autoconf --trace".
51575
51576 2006-07-29  Bruno Haible  <bruno@clisp.org>
51577
51578         * gnulib-tool (SORT): New variable.
51579         (func_usage): Undocument --assume-autoconf option.
51580         Remove --assume-autoconf option handling.
51581         (autoconf_minversion): Determine from the contents of configure.ac.
51582         (func_import): Remove autoconf_minversion handling.
51583         Suggested by Eric Blake.
51584
51585 2006-07-29  Bruno Haible  <bruno@clisp.org>
51586
51587         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
51588
51589 2006-07-29  Bruno Haible  <bruno@clisp.org>
51590
51591         * config/srclist.txt (*setenv.[ch]): Remove rules.
51592
51593 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51594
51595         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
51596
51597 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51598
51599         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
51600         arpa/inet.h.
51601
51602 2006-07-28  Simon Josefsson  <jas@extundo.com>
51603
51604         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
51605         * modules/inet_pton (Depends-on): Likewise.
51606
51607 2006-07-28  Simon Josefsson  <jas@extundo.com>
51608
51609         * m4/netinet_in_h.m4: New file.
51610
51611 2006-07-28  Simon Josefsson  <jas@extundo.com>
51612
51613         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
51614         #include's.
51615
51616 2006-07-28  Simon Josefsson  <jas@extundo.com>
51617
51618         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
51619         #include's.
51620
51621 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
51622
51623         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
51624         setgid on directories only if they set these bits.
51625         * lib/modechange.h: Remove obsolete comment about masks.
51626
51627 2006-07-28  Eric Blake  <ebb9@byu.net>
51628
51629         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
51630         macro expansion.
51631
51632 2006-07-28  Bruno Haible  <bruno@clisp.org>
51633
51634         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
51635
51636 2006-07-28  Bruno Haible  <bruno@clisp.org>
51637
51638         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
51639
51640 2006-07-28  Bruno Haible  <bruno@clisp.org>
51641
51642         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51643         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51644         Define fallbacks.
51645         Avoids link error on FreeBSD 4.x.
51646         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51647
51648         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
51649         encoding.
51650         * lib/mbswidth.c (iswcntrl): Likewise.
51651
51652 2006-07-27  Bruno Haible  <bruno@clisp.org>
51653
51654         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
51655         test.
51656
51657 2006-07-27  Bruno Haible  <bruno@clisp.org>
51658
51659         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
51660         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
51661         defined.
51662
51663 2006-07-26  Eric Blake  <ebb9@byu.net>
51664
51665         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
51666
51667 2006-07-26  Eric Blake  <ebb9@byu.net>
51668
51669         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
51670         like mingw that lack mkstemp.
51671         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
51672         avoid compilation warning on mingw.
51673
51674 2006-07-26  Bruno Haible  <bruno@clisp.org>
51675
51676         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
51677         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
51678         INT_FAST*_MIN, INTPTR_MIN.
51679
51680 2006-07-25  Bruno Haible  <bruno@clisp.org>
51681
51682         * modules/version-etc (Depends-on): Add stdarg.
51683
51684 2006-07-25  Bruno Haible  <bruno@clisp.org>
51685
51686         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
51687         complex commands.
51688
51689 2006-07-25  Bruno Haible  <bruno@clisp.org>
51690
51691         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
51692         defined in <stdarg.h> or config.h.
51693
51694 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51695
51696         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
51697         (gl_STDIO_SAFER): Remove.
51698
51699 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51700
51701         * MODULES.html.sh (File stream based Input/Output):
51702         Add fopen-safer, tmpfile-safer; remove stdio-safer.
51703         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
51704         * modules/fopen-safer, modules/tmpfile-safer: New files.
51705         * modules/stdio-safer: Remove.
51706
51707 2006-07-24  Bruno Haible  <bruno@clisp.org>
51708
51709         * modules/tmpdir: New file.
51710         * MODULES.html.sh (File system functions): Add it.
51711
51712 2006-07-24  Bruno Haible  <bruno@clisp.org>
51713
51714         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
51715         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
51716
51717 2006-07-24  Bruno Haible  <bruno@clisp.org>
51718
51719         * modules/clean-temp: New file.
51720
51721 2006-07-24  Bruno Haible  <bruno@clisp.org>
51722
51723         * m4/tmpdir.m4: New file, from GNU gettext.
51724
51725 2006-07-24  Bruno Haible  <bruno@clisp.org>
51726
51727         * lib/tmpdir.h: New file, from GNU gettext.
51728         * lib/tmpdir.c: New file, from GNU gettext.
51729
51730 2006-07-24  Bruno Haible  <bruno@clisp.org>
51731
51732         * lib/clean-temp.h: New file, from GNU gettext.
51733         * lib/clean-temp.c: New file, from GNU gettext.
51734
51735 2006-07-23  Eric Blake  <ebb9@byu.net>
51736
51737         * modules/stdio-safer (Files): Add tmpfile-safer.c.
51738         (Depends-on): Add binary-io.
51739
51740 2006-07-23  Eric Blake  <ebb9@byu.net>
51741
51742         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
51743
51744 2006-07-23  Eric Blake  <ebb9@byu.net>
51745
51746         * lib/tmpfile-safer.c: New file.
51747         * lib/stdio-safer.h (fopen_safer): Add prototype.
51748         * lib/stdio--.h (tmpfile): Make safer.
51749
51750 2006-07-23  Bruno Haible  <bruno@clisp.org>
51751
51752         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
51753         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
51754         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
51755         gl_linked_remove_at): Use it.
51756
51757 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51758         and Simon Josefsson <jas@extundo.com>
51759
51760         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
51761
51762         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
51763
51764 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51765
51766         * modules/close-stream: New file.
51767         * modules/closeout (Description): Make it clear that it exits
51768         with a diagnostic on error.
51769         (Depends-on): Add close-stream.  Remove fpending, stdbool.
51770         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
51771
51772 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51773
51774         * m4/close-stream.m4: New file.
51775
51776 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51777
51778         * lib/close-stream.c, lib/close-stream.h: New files.
51779
51780 2006-07-22  Bruno Haible  <bruno@clisp.org>
51781
51782         Merge from GNU gettext 0.15.
51783
51784         2006-05-01  Bruno Haible  <bruno@clisp.org>
51785
51786                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
51787
51788         2006-07-22  Bruno Haible  <bruno@clisp.org>
51789
51790                 * modules/javaversion: New file.
51791                 * MODULES.html.sh (Java): Add javaversion.
51792
51793         2006-03-12  Bruno Haible  <bruno@clisp.org>
51794
51795                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
51796
51797         2005-12-04  Bruno Haible  <bruno@clisp.org>
51798
51799                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
51800                 (untested).
51801
51802         2006-06-21  Bruno Haible  <bruno@clisp.org>
51803
51804                 Avoid warnings from recent versions of mcs.
51805                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
51806                 -o, -L, -r any more. Use options documented since mcs-1.0
51807                 instead. Similarly for -g.
51808
51809         2005-12-04  Bruno Haible  <bruno@clisp.org>
51810
51811                 * build-aux/csharpcomp.sh.in: Suffix for resources is
51812                 .resources, not .resource.
51813
51814         2005-07-09  Bruno Haible  <bruno@clisp.org>
51815
51816                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
51817                 add a .dll suffix.
51818                 Reported by Mark Junker <mjscod@gmx.de>.
51819
51820         2006-07-22  Bruno Haible  <bruno@clisp.org>
51821
51822                 * modules/gettext: Upgrade to gettext-0.15.
51823                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
51824                 m4/visibility.m4.
51825                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
51826
51827 2006-07-22  Bruno Haible  <bruno@clisp.org>
51828
51829         Merge from GNU gettext 0.15.
51830
51831         2006-03-25  Bruno Haible  <bruno@clisp.org>
51832
51833                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
51834
51835         2006-07-21  Bruno Haible  <bruno@clisp.org>
51836
51837                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
51838                 "1.1".
51839
51840         2006-05-09  Bruno Haible  <bruno@clisp.org>
51841
51842                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
51843                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
51844                 for the conftestver execution.
51845
51846         2006-05-01  Bruno Haible  <bruno@clisp.org>
51847
51848                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
51849                 optional target-version argument. Verify that the compiler
51850                 groks source of the specified source-version, or add -source
51851                 option as necessary. Verify that the compiler produces
51852                 bytecode in the specified target-version, or add -target and
51853                 -source options as necessary. Make the result of the test
51854                 available as variable CONF_JAVAC. Also log error output in
51855                 config.log.
51856
51857         2006-03-11  Bruno Haible  <bruno@clisp.org>
51858
51859                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
51860
51861         2006-05-09  Bruno Haible  <bruno@clisp.org>
51862
51863                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
51864                 CLASSPATH_SEPARATOR to a semicolon.
51865
51866         2006-03-12  Bruno Haible  <bruno@clisp.org>
51867
51868                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
51869                 available as variable CONF_JAVA, for subsequent autoconf
51870                 tests. Also log error output in config.log.
51871
51872         2006-07-19  Bruno Haible  <bruno@clisp.org>
51873
51874                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
51875                 that getline works on glibc2 systems. Needed to avoid trouble
51876                 in relocatable.c.
51877                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
51878
51879         2005-12-04  Bruno Haible  <bruno@clisp.org>
51880
51881                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
51882                 launcher (untested).
51883
51884         2005-12-04  Bruno Haible  <bruno@clisp.org>
51885
51886                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
51887
51888         2006-07-22  Bruno Haible  <bruno@clisp.org>
51889
51890                 * gettext.m4: Update from GNU gettext-0.15.
51891                 * nls.m4: Likewise.
51892                 * po.m4: Likewise.
51893                 * inttypes-pri.m4: Likewise.
51894                 * inttypes-h.m4: Renamed from inttypes.m4.
51895                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
51896
51897 2006-07-22  Bruno Haible  <bruno@clisp.org>
51898
51899         Merge from GNU gettext 0.15.
51900
51901         2005-07-05  Bruno Haible  <bruno@clisp.org>
51902
51903                 * printf-args.c (printf_fetchargs): Work around broken
51904                 definition of wint_t on mingw.
51905
51906         2005-02-12  Bruno Haible  <bruno@clisp.org>
51907
51908                 * xallocsa.h: Add extern "C" for C++.
51909
51910         2006-05-17  Bruno Haible  <bruno@clisp.org>
51911
51912                 Cygwin portability.
51913                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
51914
51915         2006-04-30  Bruno Haible  <bruno@clisp.org>
51916
51917                 * progreloc.c: Include <mach-o/dyld.h> if available.
51918                 (find_executable): Use _NSGetExecutablePath when possible.
51919
51920         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51921
51922                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
51923                 function.
51924
51925         2005-12-29  Bruno Haible  <bruno@clisp.org>
51926
51927                 * progreloc.c (set_program_name_and_installdir): Fix
51928                 compilation error.
51929
51930         2005-12-04  Bruno Haible  <bruno@clisp.org>
51931
51932                 Cygwin portability.
51933                 * progreloc.c: Include <windows.h> also on Cygwin.
51934                 (find_executable): Add support for Cygwin.
51935                 (set_program_name_and_installdir): Handle also platforms with
51936                 nonempty EXEEXT.
51937
51938         2006-07-11  Bruno Haible  <bruno@clisp.org>
51939
51940                 * javacomp.c: Fix a comment.
51941                 Reported by Jim Meyering.
51942
51943         2006-04-30  Bruno Haible  <bruno@clisp.org>
51944
51945                 * javacomp.h (compile_java_class): Add source_version,
51946                 target_version arguments.
51947                 * javacomp.c: Rewritten to choose only a compiler that
51948                 respects the specified source_version and target_version.
51949
51950         2006-06-27  Bruno Haible  <bruno@clisp.org>
51951
51952                 Assume correct S_ISDIR macro.
51953                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
51954
51955         2006-07-22  Bruno Haible  <bruno@clisp.org>
51956
51957                 * javaversion.h: New file, from GNU gettext.
51958                 * javaversion.c: New file, from GNU gettext.
51959                 * javaversion.java: New file, from GNU gettext.
51960                 * javaversion.class: New file, from GNU gettext.
51961
51962         2006-05-17  Bruno Haible  <bruno@clisp.org>
51963
51964                 Cygwin portability.
51965                 * javaexec.c (execute_java_class): Test for jview program
51966                 also on Cygwin.
51967
51968         2006-04-09  Bruno Haible  <bruno@clisp.org>
51969
51970                 * fatal-signal.c: Don't include string.h.
51971                 (at_fatal_signal): Use a copying loop instead of memcpy.
51972
51973         2005-12-04  Bruno Haible  <bruno@clisp.org>
51974
51975                 * csharpexec.c: Add support for 'clix' launcher (untested).
51976                 (execute_csharp_using_sscli): New function.
51977                 (execute_csharp_program): Call it.
51978
51979         2006-06-21  Bruno Haible  <bruno@clisp.org>
51980
51981                 Avoid warnings from recent versions of mcs.
51982                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
51983                 -o, -L, -r any more. Use options documented since mcs-1.0
51984                 instead. Similarly for -g.
51985
51986         2005-07-09  Bruno Haible  <bruno@clisp.org>
51987
51988                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
51989                 add a .dll suffix.
51990                 Reported by Mark Junker <mjscod@gmx.de>.
51991
51992         2006-06-17  Bruno Haible  <bruno@clisp.org>
51993
51994                 * config.charset: Update for NetBSD 3.0.
51995
51996         2006-05-17  Bruno Haible  <bruno@clisp.org>
51997
51998                 Cygwin portability.
51999                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
52000
52001         2006-05-16  Bruno Haible  <bruno@clisp.org>
52002
52003                 * localcharset.c [CYGWIN]: Include <windows.h>.
52004                 (get_charset_aliases): For Cygwin, return the same CPxxx
52005                 aliases list as under WIN32.
52006                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
52007                 the environment variables. Fall back to GetACP().
52008
52009         2006-04-05  Bruno Haible  <bruno@clisp.org>
52010
52011                 * config.charset: Update Juan Manuel Guerrero's address.
52012
52013         2005-02-12  Bruno Haible  <bruno@clisp.org>
52014
52015                 * allocsa.h: Add extern "C" for C++.
52016
52017         2005-02-10  Bruno Haible  <bruno@clisp.org>
52018
52019                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
52020                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
52021
52022         2006-07-22  Bruno Haible  <bruno@clisp.org>
52023
52024                 * gettext.h: Update to GNU gettext-0.15.
52025
52026 2006-07-22  Bruno Haible  <bruno@clisp.org>
52027
52028         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
52029         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
52030         lib-prefix.m4, longdouble.m4, ssize_t.m4.
52031
52032 2006-07-21  Eric Blake  <ebb9@byu.net>
52033
52034         * modules/stdlib-safer: New file.
52035         * MODULES.html.sh (File stream based Input/Output): Add
52036         stdlib-safer.
52037
52038 2006-07-21  Eric Blake  <ebb9@byu.net>
52039
52040         * lib/stdlib-safer.h: New file from coreutils, required by
52041         stdlib--.h.
52042
52043 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
52044
52045         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
52046
52047 2006-07-20  Bruno Haible  <bruno@clisp.org>
52048
52049         * gnulib-tool: Recognize new option --assume-autoconf.
52050         (autoconf_minversion): New variable.
52051         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
52052
52053 2006-07-20  Bruno Haible  <bruno@clisp.org>
52054
52055         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
52056
52057 2006-07-19  Derek R. Price  <derek@ximbiot.com>
52058
52059         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
52060         Reindent and repaginate.
52061
52062 2006-07-19  Derek Price  <derek@ximbiot.com>
52063
52064         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
52065         Correct grammar.
52066
52067 2006-07-17  Bruno Haible  <bruno@clisp.org>
52068
52069         * modules/list: New file.
52070         * modules/array-list: New file.
52071         * modules/carray-list, modules/carray-list-tests: New files.
52072         * modules/linked-list, modules/linked-list-tests: New files.
52073         * modules/avltree-list, modules/avltree-list-tests: New files.
52074         * modules/rbtree-list, modules/rbtree-list-tests: New files.
52075         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
52076         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
52077         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
52078         * modules/oset: New file.
52079         * modules/array-oset: New file.
52080         * modules/avltree-oset, modules/avltree-oset-tests: New files.
52081         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
52082         * tests/test-carray_list.c: New file.
52083         * tests/test-linked_list.c: New file.
52084         * tests/test-avltree_list.c: New file.
52085         * tests/test-rbtree_list.c: New file.
52086         * tests/test-linkedhash_list.c: New file.
52087         * tests/test-avltreehash_list.c: New file.
52088         * tests/test-rbtreehash_list.c: New file.
52089         * tests/test-avltree_oset.c: New file.
52090         * tests/test-rbtree_oset.c: New file.
52091         * MODULES.html.sh (Container data structures): New section.
52092
52093 2006-07-17  Bruno Haible  <bruno@clisp.org>
52094
52095         * m4/gl_list.m4: New file.
52096
52097 2006-07-17  Bruno Haible  <bruno@clisp.org>
52098
52099         * lib/gl_list.h: New file.
52100         * lib/gl_list.c: New file.
52101         * lib/gl_array_list.h: New file.
52102         * lib/gl_array_list.c: New file.
52103         * lib/gl_carray_list.h: New file.
52104         * lib/gl_carray_list.c: New file.
52105         * lib/gl_linked_list.h: New file.
52106         * lib/gl_linked_list.c: New file.
52107         * lib/gl_anylinked_list1.h: New file.
52108         * lib/gl_anylinked_list2.h: New file.
52109         * lib/gl_avltree_list.h: New file.
52110         * lib/gl_avltree_list.c: New file.
52111         * lib/gl_anyavltree_list1.h: New file.
52112         * lib/gl_anyavltree_list2.h: New file.
52113         * lib/gl_rbtree_list.h: New file.
52114         * lib/gl_rbtree_list.c: New file.
52115         * lib/gl_anyrbtree_list1.h: New file.
52116         * lib/gl_anyrbtree_list2.h: New file.
52117         * lib/gl_anytree_list1.h: New file.
52118         * lib/gl_anytree_list2.h: New file.
52119         * lib/gl_linkedhash_list.h: New file.
52120         * lib/gl_linkedhash_list.c: New file.
52121         * lib/gl_anyhash_list1.h: New file.
52122         * lib/gl_anyhash_list2.h: New file.
52123         * lib/gl_avltreehash_list.h: New file.
52124         * lib/gl_avltreehash_list.c: New file.
52125         * lib/gl_rbtreehash_list.h: New file.
52126         * lib/gl_rbtreehash_list.c: New file.
52127         * lib/gl_anytreehash_list1.h: New file.
52128         * lib/gl_anytreehash_list2.h: New file.
52129
52130         * lib/gl_oset.h: New file.
52131         * lib/gl_oset.c: New file.
52132         * lib/gl_array_oset.h: New file.
52133         * lib/gl_array_oset.c: New file.
52134         * lib/gl_avltree_oset.h: New file.
52135         * lib/gl_avltree_oset.c: New file.
52136         * lib/gl_rbtree_oset.h: New file.
52137         * lib/gl_rbtree_oset.c: New file.
52138         * lib/gl_anytree_oset.h: New file.
52139
52140 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52141
52142         * m4/mkancesdirs.m4: New file.
52143         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
52144         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
52145         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
52146         it.
52147
52148 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52149
52150         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
52151         * lib/mkancesdirs.h: New files.
52152         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
52153         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
52154         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
52155         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
52156         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
52157         callers changed.  Revamp internals significantly, by not
52158         attempting to create directories that are temporarily more
52159         permissive than the final results.  Do not attempt to use
52160         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
52161         This removes some race conditions, fixes some bugs, and simplifies
52162         things.  Use new dirchownmod function to do owner and mode changes.
52163         * lib/mkdir-p.h: Likewise.
52164         * lib/modechange.c (octal_to_mode): New function.
52165         (struct mode_change): New member mentioned.
52166         (make_node_op_equals): New arg mentioned.  All callers changed.
52167         (mode_compile): Keep track of which mode bits the user has explicitly
52168         mentioned.
52169         (mode_adjust): New arg DIR, so that we implement the X op correctly.
52170         New arg PMODE_BITS, to keep track of which mode bits the user
52171         mentioned; it treats S_ISUID and S_ISGID speciall.
52172         All callers changed.
52173         * lib/modechange.h: Likewise.
52174
52175 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52176
52177         * MODULES.html.sh: Add mkancestors.
52178         * modules/mkancesdirs: New module.
52179         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
52180         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
52181         The chdir-safer and afs files are now orphans; I'll remove them
52182         unless someone speaks up.
52183         Add lib/dirchownmod.c, lib/dirchownmod.h.
52184         (Depends-on): Remove alloca, chown, save-cwd, dirname.
52185         Add lchown, mkancesdirs.
52186         (Maintainer): Add self.
52187
52188 2006-07-15  Karl Berry  <karl@gnu.org>
52189
52190         * gnulib-tool: help message wording/arrangement.
52191
52192 2006-07-14  Simon Josefsson  <jas@extundo.com>
52193
52194         * doc/gnulib.texi (Libtool and Windows): New section.
52195
52196 2006-07-12  Simon Josefsson  <jas@extundo.com>
52197
52198         * modules/gendocs (License): Fix license, approved by Karl.
52199
52200 2006-07-12  Eric Blake  <ebb9@byu.net>
52201
52202         * MODULES.html.sh: Add gendocs.
52203
52204 2006-07-11  Eric Blake  <ebb9@byu.net>
52205
52206         * modules/fdl: New module, to install doc/fdl.texi.
52207         * MODULES.html.sh: Add new section for documentation modules.
52208         * gnulib-tool: Avoid space-tab.
52209         (--doc-base): New option, to manage files from doc.
52210
52211 2006-07-11  Eric Blake  <ebb9@byu.net>
52212
52213         * m4/absolute-header.m4: Fix comments to match recent change.
52214
52215 2006-07-11  Eric Blake  <ebb9@byu.net>
52216
52217         * gnulib-tool: List --doc-base before --tests-base.
52218
52219 2006-07-11  Derek R. Price  <derek@ximbiot.com>
52220
52221         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
52222
52223 2006-07-11  Bruno Haible  <bruno@clisp.org>
52224
52225         * README: Mention where to put documentation.
52226
52227 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52228
52229         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
52230
52231 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52232
52233         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
52234         to stdint.m4.
52235
52236 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52237
52238         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
52239         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
52240         "no/such/file/stdint.h" when there is no such file, so that
52241         the resulting C code can be parsed by dodgy compilers.
52242         Problems reported by Bob Proulx.
52243
52244 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52245
52246         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
52247         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52248         macros into the GNU _D_EXACT_NAMLEN.
52249         * lib/savedir.c:  Likewise.
52250         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
52251
52252 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52253         and Paul Eggert  <eggert@cs.ucla.edu>
52254
52255         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
52256         * m4/savedir.m4:
52257         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52258         macros into the GNU _D_EXACT_NAMLEN.
52259
52260 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52261
52262         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
52263         around the absolute name, to work around a problem with the HP-UX
52264         11.23 native C compiler, reported by Bob Proulx.
52265
52266 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52267
52268         * doc/maintain.texi, make-stds.texi: Sync from
52269         <http://savannah.gnu.org/projects/gnustandards>.
52270
52271 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52272
52273         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
52274
52275 2006-07-09  Jim Meyering  <jim@meyering.net>
52276
52277         * m4/glob.m4: Remove a doubled word in a comment.
52278
52279 2006-07-09  Jim Meyering  <jim@meyering.net>
52280
52281         * lib/argp-pv.c: Remove a doubled word in a comment.
52282         * lib/check-version.c (check_version): Likewise.
52283         * lib/javacomp.c (compile_java_class): Likewise.
52284
52285 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52286
52287         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
52288         for the benefit of people using Autoconf 2.60.  If you want to
52289         support older Autoconf versions you can copy m4/onceonly_2_57.m4
52290         (or m4/onceonly.m4, if pre-2.57) manually.
52291
52292 2006-07-08  Jim Meyering  <jim@meyering.net>
52293
52294         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
52295         comment.
52296         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
52297         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
52298         comment.
52299
52300 2006-07-08  Jim Meyering  <jim@meyering.net>
52301
52302         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
52303
52304 2006-07-07  Simon Josefsson  <jas@extundo.com>
52305
52306         * tests/test-crc.c: Change expected crc value, the test vector
52307         were probably computed using the old broken crc.c?
52308
52309 2006-07-06  Simon Josefsson  <jas@extundo.com>
52310
52311         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
52312         now the canonical place for the M4 file).
52313
52314         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
52315         from the sys_socket dependency now.
52316
52317         * modules/inet_pton (Files): Ditto.
52318
52319         * modules/inet_ntop (Files): Ditto.
52320
52321 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52322
52323         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
52324         not gl_PREREQ_GETUSERSHELL.
52325
52326 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52327
52328         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
52329         with only one argument, for Autoconf 2.60.
52330         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
52331         expand to nothing, so add a shell command to avoid syntax error.
52332         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52333
52334 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52335
52336         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
52337
52338 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52339
52340         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
52341         no longer needed.  Check for isblank decl.
52342         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
52343         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
52344         of existence.
52345
52346 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52347
52348         * lib/getloadavg.c: Use __VMS, not VMS.
52349         * lib/getopt.c: Likewise.
52350         * lib/getpagesize.h: Likewise.
52351         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
52352         and probably does not work.
52353
52354 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52355
52356         * lib/.cppi-disable: Add wcwidth.
52357         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
52358         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
52359         (ISGRAPH): Remove.  All uses changed to isgraph.
52360         (FOLD) [!defined _LIBC]: Remove special case.
52361         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
52362         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
52363         HAVE_ISBLANK.
52364         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
52365         case.
52366
52367 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52368
52369         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
52370         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
52371         brackets.  Other minor changes to suppress some compiler
52372         warnings.
52373
52374 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52375         and Paul Eggert  <eggert@cs.ucla.edu>
52376
52377         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
52378         of invoking obsolescent AC_HEADER_DIRENT macro.
52379         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
52380         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
52381         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
52382         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
52383         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
52384         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52385         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
52386         * m4/readdir.m4: Remove; no longer needed.
52387
52388 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52389         and Paul Eggert  <eggert@cs.ucla.edu>
52390
52391         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
52392         Don't worry about this obsolete case any more.
52393         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
52394         directories.
52395         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
52396         worry about this obsolete case any more.
52397         * lib/fts.c: Likewise.
52398         * lib/getcwd.c: Likewise.
52399         * lib/glob.h: Likewise.
52400         * lib/savedir.c: Likewise.
52401
52402 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52403
52404         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
52405         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
52406         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
52407         needed.
52408         All uses removed.
52409         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52410         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52411         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
52412         needed.
52413         * m4/getdate.m4 (gl_GETDATE): Likewise.
52414         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52415         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52416         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52417         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52418         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52419         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52420         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
52421         needed.
52422
52423 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52424
52425         * lib/memcasecmp.c: Include <limits.h>.
52426         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
52427         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
52428         Don't assume isdigit succeeds only on '0' through '9'.
52429
52430 2006-07-05  Eric Blake  <ebb9@byu.net>
52431
52432         * modules/getaddrinfo (Depends-on): Add snprintf.
52433
52434 2006-07-05  Eric Blake  <ebb9@byu.net>
52435
52436         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
52437         to avoid 'header present but could not be compiled' on cygwin.
52438
52439 2006-07-05  Eric Blake  <ebb9@byu.net>
52440
52441         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
52442         missing from netdb.h.
52443         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
52444
52445 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52446
52447         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
52448         no longer needed.
52449         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
52450         * m4/getdate.m4 (gl_GETDATE): Likewise.
52451         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52452         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52453         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52454         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52455         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52456
52457 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52458
52459         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
52460         All uses of is_space replaced by isspace.
52461         * lib/exit.h: Don't talk about STDC_HEADERS.
52462         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
52463         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
52464         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
52465         replaced by isprint etc.
52466         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
52467         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52468         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
52469         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
52470         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
52471         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52472
52473 2006-07-05  Bruno Haible  <bruno@clisp.org>
52474
52475         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
52476         the function exists, before testing against AIX.
52477         Reported by Martin Lambers <marlam@marlam.de>.
52478
52479 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52480
52481         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
52482         From Mark D. Baushke.
52483
52484 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52485
52486         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
52487         to the absolute name, not just one, to bypass Sun C 5.8's
52488         "warning: #include of /usr/include/... may be non-portable".
52489
52490 2006-07-04  Eric Blake  <ebb9@byu.net>
52491
52492         * modules/dirname-tests: New test module.
52493         * tests/test-dirname.c: New file, replacing dirname.c
52494         TEST_DIRNAME section that was recently deleted.
52495
52496 2006-07-04  Bruno Haible  <bruno@clisp.org>
52497
52498         Assume ANSI C header files and <ctype.h> functions.
52499         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
52500         (mbsnwidth): Use isprint, iscntrl instead.
52501
52502 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52503
52504         Merge from coreutils.
52505         * MODULES.html.sh: Add xstrtold.
52506         * modules/xstrtold: New file.
52507         * modules/cycle-check (Files): Add lib/same-inode.h.
52508         * modules/dirname (Files): Add m4/double-slash-root.m4.
52509         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
52510         * modules/mkdir-p (Files): Add lib/same-inode.h.
52511         * modules/same (Files): Add lib/same-inode.h.
52512
52513 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52514
52515         * m4/absolute-header.m4: Renamed from full-header-path.m4.
52516         This is to keep the terminology clean; POSIX talks about
52517         "absolute pathnames", not "full pathnames", but the GNU
52518         Coding Standards say to use "path" for something else;
52519         so use "absolute" to keep both sides happy.
52520         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
52521         Set gl_absolute_header, not gl_full_header_path.
52522         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
52523         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
52524         All uses changed.
52525
52526         Merge from coreutils.
52527
52528         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52529
52530         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
52531         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
52532         want to require the building of c-strtod.o.
52533         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
52534         needs -lm directly.
52535         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
52536
52537         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
52538
52539         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
52540         --as-needed option if available.  Problem reported by Albert Chin in
52541         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
52542         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
52543         cc merely issues a bunch of annoying warnings for --as-needed
52544         (this problem was reported by Bob Proulx).  Also, try linking with
52545         -lm to detect a bug in binutils 2.16 (this problem was reported
52546         by Ralf Wildenhues).
52547
52548         2006-06-18  Jim Meyering  <jim@meyering.net>
52549
52550         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
52551         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
52552         macro.
52553         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
52554         also check for glibc-2.4's abort-inducing bug.
52555
52556         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
52557         Low-probability clean-up should be to use rmdir to get rid of
52558         the just-created directory, not unlink.
52559
52560         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
52561         configure fail, and request a bug report to inform us about it.
52562         Add a comment that, barring reports to the contrary, in 2007 we'll
52563         assume ftruncate is universally available.
52564
52565         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52566
52567         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
52568
52569         2006-03-12  Jim Meyering  <jim@meyering.net>
52570
52571         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
52572         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
52573         * m4/same.m4 (gl_SAME): Likewise.
52574         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
52575
52576         2006-03-11  Eric Blake  <ebb9@byu.net>
52577
52578         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
52579         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
52580         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
52581         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
52582
52583 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52584
52585         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
52586         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
52587         reported by Mark D. Baushke, one in
52588         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
52589
52590         Merge from coreutils.
52591
52592         * lib/.cppi-disable: Add stdint_.h.
52593         * lib/.cvsignore: Add stdint.h.
52594
52595         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52596
52597         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
52598         both double and long double versions.
52599         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
52600         * lib/xstrtold.c: New file.
52601         * lib/xstrtod.h (xstrtold): New decl.
52602
52603         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52604
52605         * lib/filemode.c (setst): Remove.
52606         (strmode): Rewrite to avoid setst.  This makes the code shorter,
52607         (arguably) clearer, and the generated code is a bit smaller on my
52608         Debian GNU/Linux stable x86 host.
52609
52610         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52611
52612         * lib/filemode.c: Include "filemode.h" first, to test the interface.
52613         Assume that filemode.h includes sys/types.h and sys/stat.h.
52614         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
52615         (ftypelet): Reorder to put common cases first, for efficiency.
52616         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
52617         to do 'M'.
52618         (strmode): Renamed from mode_string, and now stores 12 bytes instead
52619         of 10, for compatibility with FreeBSD.  All callers changed.
52620         (filemodestring): Now stores 12 bytes instead of 10, and sets file
52621         types that can't be deduced solely from st_mode.  First arg is now a
52622         const pointer.
52623         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
52624         (strmode): Renamed from mode_string.
52625         (filemodestring): New decl.
52626         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
52627         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
52628         needed.
52629         (S_ISPORT, S_ISWHT): New macros, if not already defined.
52630
52631         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52632
52633         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
52634         fsusage.h now does that.  Include fsusage.h first, to test interface.
52635         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
52636         at most one method (the old code could have generated decls that
52637         didn't conform to C89, not that this was ever exercised).
52638         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
52639
52640         2006-03-19  Jim Meyering  <jim@meyering.net>
52641
52642         Work even in a chroot where d_ino values for entries in "/"
52643         don't match the stat.st_ino values for the same names.
52644         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
52645         number, iterate through all entries again, using lstat instead.
52646         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
52647         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
52648
52649         * lib/getcwd.c (__getcwd): Clarify a comment.
52650         Use memcpy in place of a call to strcpy.
52651
52652         2006-03-12  Jim Meyering  <jim@meyering.net>
52653
52654         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
52655         matches that of the current directory (which we're about to chdir ".."
52656         out of), then save the dev-ino of the parent, instead.
52657
52658         * lib/same-inode.h (SAME_INODE): New file/macro.
52659         * lib/chdir-safer.c (SAME_INODE): Remove definition.
52660         Include "same-inode.h", instead.
52661         * lib/same.c: Likewise.
52662         * lib/cycle-check.h: Include "same-inode.h".
52663         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
52664         * lib/cycle-check.c (SAME_INODE): Remove definition.
52665         * lib/root-dev-ino.h: Include "same-inode.h".
52666
52667         2006-03-11  Eric Blake  <ebb9@byu.net>
52668
52669         * lib/same.c (same_name): s/base_name/last_component/
52670         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
52671         * lib/filenamecat.c (file_name_concat): Likewise.
52672
52673         2006-03-11  Eric Blake  <ebb9@byu.net>,
52674                     Paul Eggert  <eggert@cs.ucla.edu>
52675
52676         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
52677         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
52678         drive prefix.
52679         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
52680         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
52681         (last_component): New method.
52682         * lib/dirname.c (dir_len): Determine when drive letters need a
52683         subsequent slash.  Preserve // when it is special.
52684         (dir_name): Don't append dot when drive letter is absolute.
52685         [TEST_DIRNAME]: Move into a full-blown gnulib test.
52686         * lib/basename.c (base_name): New semantics - malloc the result.
52687         Preserve // when it is special.  Preserve relative files that look
52688         like drive letters.
52689         (base_len): Preserve // when it is special.
52690         (last_component): New method, similar to old base_name semantics.
52691         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
52692         base_name.  Strip redundant slashes from ///.
52693
52694 2006-07-03  Jim Meyering  <jim@meyering.net>
52695
52696         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
52697         macro is used before the first cycle_check call.
52698
52699 2006-07-03  Eric Blake  <ebb9@byu.net>
52700
52701         * modules/dirname (Depends-on): Add xstrndup.
52702
52703 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52704
52705         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
52706         test cases, so that config.log is a bit easier to follow.
52707
52708 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52709
52710         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
52711         both are 64 bits, since this seems to be the tradition, and this
52712         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
52713         we ever run into a host that prefers long long to long in this
52714         case, we'll need another configure-time test.  Problem reported by
52715         Jim Meyering.
52716
52717 2006-07-02  Eric Blake  <ebb9@byu.net>
52718
52719         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
52720
52721 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52722
52723         * modules/inttypes (Depends-on): No longer depends on stdint.
52724         * modules/stdint (Description): Say more about assumptions.
52725         Say that the fast types might differ.  Say macros are used.
52726         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
52727         (Makefile.am): Revise list of substituted symbols to match
52728         new stdint.m4.
52729         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
52730         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
52731         * tests/test-stdint.c (verify_same_types)
52732         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
52733         the code conforms to C99/C89.
52734         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
52735         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
52736
52737 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52738
52739         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
52740         but fix a bug, by requiring at least 64 bits.
52741         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52742         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
52743         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
52744         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
52745
52746         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
52747         changes.  Make 2.59 a prerequisite.  Check and substitute for
52748         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
52749         inttypes.h.  Do not use special include files; just use the
52750         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
52751         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
52752         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
52753         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
52754         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
52755         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
52756         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
52757         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
52758         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
52759         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
52760         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
52761         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
52762         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
52763         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
52764         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
52765         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
52766         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
52767         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
52768         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
52769         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
52770         WINT_MAX.  Check for C99 conformance more strictly, by detecting
52771         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
52772         not check for things that C99 does not require, e.g., int8_t.  If
52773         a test isn't needed unless <stdint.h> isn't working, and is
52774         unlikely to be needed for any other reason, then don't do it
52775         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
52776         size_t, since we assume C89 freestanding at least.  Do not check
52777         for sig_atomic_t, wchar_t, or wint_t, since the code now does
52778         the right thing even if the types are not defined.  Instead use:
52779         (gl_STDINT_TYPE_PROPERTIES): New macro.
52780         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
52781         testing whether <sys/types.h> clashes, as Autoconf does this for
52782         us now.  All uses removed.
52783         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
52784         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
52785         (gl_CHECK_TYPE_SAME):
52786         Remove; no longer needed.
52787         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
52788         exists, since we'll return 0 anyway in that case.
52789         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
52790
52791 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52792
52793         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
52794         possible collision with system files.
52795         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
52796         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
52797         WCHAR_MIN and WCHAR_MAX in this case.
52798         (<stddef.h>): Do not include; no longer needed.
52799         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
52800         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
52801         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
52802         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
52803         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
52804         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
52805         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
52806         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
52807         !defined(__c99))]: Include in this case too, since it's harmless
52808         now.
52809         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
52810         dangerous to do so.
52811         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
52812         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
52813         (_STDINT_MIN, _STDINT_MAX): New macros.
52814         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
52815         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
52816         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
52817         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
52818         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
52819         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
52820         macros, not typedefs; this simplifies things quite a bit.
52821         Use long int for all types narrower than int64_t.
52822         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
52823         Define in terms of long long int or int64_t or long int,
52824         not int64_t or int32_t.  This saves some compile-time testing.
52825         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
52826         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
52827         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
52828         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
52829         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
52830         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
52831         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
52832         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
52833         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
52834         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
52835         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
52836         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
52837         undef any previous version and define our own version, for
52838         simplicity and consistency with the new macros for types.
52839         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
52840         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
52841         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
52842         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
52843         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
52844         @WINT_T_SUFFIX@ to keep things simple here.
52845         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
52846         Simplify by assuming typical 8/16/32/64 host, since we're
52847         already doing that elsewhere anyway.
52848         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
52849         and assume long long int is 64 bits if available.  This
52850         speeds up 'configure'.
52851
52852 2006-07-01  Eric Blake  <ebb9@byu.net>
52853
52854         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
52855         Reported by Andreas Buening.
52856
52857 2006-07-01  Eric Blake  <ebb9@byu.net>
52858
52859         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
52860
52861 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52862
52863         * lib/getaddrinfo.c: fixed typo
52864
52865 2006-06-29  Jim Meyering  <jim@meyering.net>
52866
52867         * modules/strftime (Maintainer): Add my name, since with the
52868         FPRINTFTIME changes strftime.c has forked from glibc.
52869
52870 2006-06-29  Eric Blake  <ebb9@byu.net>
52871
52872         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
52873
52874 2006-06-29  Eric Blake  <ebb9@byu.net>
52875
52876         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
52877
52878 2006-06-29  Eric Blake  <ebb9@byu.net>
52879
52880         * lib/stat_.h: New file.
52881
52882 2006-06-29  Eric Blake  <ebb9@byu.net>
52883
52884         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
52885         unused static function.
52886
52887 2006-06-29  Eric Blake  <ebb9@byu.net>
52888
52889         * doc/functions.texi (Function Portability): Document missing lstat
52890         on mingw.
52891
52892 2006-06-29  Eric Blake  <ebb9@byu.net>
52893
52894         * MODULES.html.sh: Add sys_stat.
52895         * modules/sys_stat: New module.
52896         * modules/mkstemp (Depends-on): Add sys_stat.
52897
52898 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52899
52900         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
52901
52902 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52903
52904         * m4/c-bs-a.m4: Removed.
52905
52906 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52907
52908         * lib/strftime.c: Assume strftime() exists.
52909
52910 2006-06-29  Derek Price  <derek@ximbiot.com>
52911
52912         * modules/c-bs-a: Removed - \a is C89.
52913         * MODULES.html.sh: Remove c-bs-a.
52914
52915 2006-06-29  Bruno Haible  <bruno@clisp.org>
52916
52917         * modules/wcwidth (License): Change to LGPL.
52918
52919 2006-06-28  Simon Josefsson  <jas@extundo.com>
52920
52921         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
52922         on _WIN32.
52923
52924         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
52925         getnameinfo.
52926
52927 2006-06-28  Simon Josefsson  <jas@extundo.com>
52928
52929         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
52930
52931 2006-06-28  Simon Josefsson  <jas@extundo.com>
52932
52933         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
52934         functions there.  It will succeed on Windows XP, but on Windows
52935         2000 and (presumably) earlier, it will fail, and use the internal
52936         re-implementation.
52937         (use_win32_p): New function.
52938         (getaddrinfo): Use strtoul on servname, to support numeric ports.
52939         Support AI_NUMERICSERV to disable getservbyname.
52940         (getnameinfo): New function, only supports
52941         NI_NUMERICHOST|NI_NUMERICSERV for now.
52942
52943         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
52944         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
52945         getnameinfo.
52946
52947 2006-06-28  Eric Blake  <ebb9@byu.net>
52948
52949         * modules/wcwidth: New file.
52950         * modules/mbchar (Depends-on): Add wcwidth.
52951         * modules/mbswidth (Depends-on): Add wcwidth.
52952         * MODULES.html.sh: Add wcwidth.
52953
52954 2006-06-28  Eric Blake  <ebb9@byu.net>
52955
52956         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
52957         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
52958
52959 2006-06-28  Eric Blake  <ebb9@byu.net>
52960
52961         * lib/xvasprintf.h: Fix comments.
52962
52963 2006-06-28  Eric Blake  <ebb9@byu.net>
52964
52965         * lib/mbchar.h (wcwidth): Include wcwidth.h.
52966         * lib/mbswidth.c (wcwidth): Move from here...
52967         * lib/wcwidth.h: ...to this new file.
52968
52969 2006-06-28  Derek R. Price  <derek@ximbiot.com>
52970
52971         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
52972
52973         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
52974         it's obsolete.
52975         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
52976
52977 2006-06-28  Derek R. Price  <derek@ximbiot.com>
52978
52979         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
52980         Autoconf 2.60 says this stuff was obsolete.
52981
52982 2006-06-28  Bruno Haible  <bruno@clisp.org>
52983
52984         * modules/wcwidth (Files): Add m4/wchar_t.m4.
52985
52986 2006-06-28  Bruno Haible  <bruno@clisp.org>
52987
52988         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
52989         gt_TYPE_WCHAR_T.
52990
52991 2006-06-28  Bruno Haible  <bruno@clisp.org>
52992
52993         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
52994         declaration for wcwidth.
52995         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
52996
52997 2006-06-28  Bruno Haible  <bruno@clisp.org>
52998
52999         * lib/mkdtemp.c [MINGW]: Include <io.h>.
53000         (mkdir): Define using _mkdir.
53001
53002 2006-06-28  Bruno Haible  <bruno@clisp.org>
53003
53004         * lib/getaddrinfo.h: Fix POSIX URL.
53005         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
53006         _WIN32.
53007         (use_win32_p): Make static.
53008         (getaddrinfo): Reject service name if it is empty or does not consist
53009         solely of decimal digits, or if its value is > 65535.
53010         (getnameinfo): Remove useless casts.
53011
53012 2006-06-27  Simon Josefsson  <jas@extundo.com>
53013
53014         * modules/sys_select: New file, suggested by Bruno Haible, Paul
53015         Eggert and Martin Lambers.
53016
53017 2006-06-27  Simon Josefsson  <jas@extundo.com>
53018
53019         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
53020         Eggert and Martin Lambers.
53021
53022 2006-06-27  Bruno Haible  <bruno@clisp.org>
53023
53024         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
53025         result to 0, not to empty.
53026         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
53027
53028 2006-06-27  Bruno Haible  <bruno@clisp.org>
53029
53030         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
53031
53032 2006-06-26  Simon Josefsson  <jas@extundo.com>
53033
53034         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
53035         present.
53036
53037 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
53038
53039         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
53040         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
53041         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
53042
53043 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
53044
53045         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
53046
53047 2006-06-26  Bruno Haible  <bruno@clisp.org>
53048
53049         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
53050
53051 2006-06-26  Bruno Haible  <bruno@clisp.org>
53052
53053         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
53054
53055 2006-06-26  Bruno Haible  <bruno@clisp.org>
53056
53057         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
53058         SGI C compiler in pre-C99 mode.
53059         Suggested by Mark D. Baushke and Larry Jones.
53060
53061 2006-06-26  Bruno Haible  <bruno@clisp.org>
53062
53063         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
53064         WCHAR_MAX.
53065         Reported by Mark D. Baushke and Larry Jones.
53066
53067 2006-06-26  Bruno Haible  <bruno@clisp.org>
53068
53069         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
53070         in pre-C99 mode.
53071         Suggested by Mark D. Baushke and Larry Jones.
53072
53073 2006-06-23  Simon Josefsson  <jas@extundo.com>
53074             Bruno Haible  <bruno@clisp.org>
53075
53076         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
53077         Emit mostlyclean-local rule.
53078         (func_emit_tests_Makefile_am): Likewise.
53079         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
53080
53081 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
53082
53083         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
53084
53085 2006-06-23  Bruno Haible  <bruno@clisp.org>
53086
53087         * tests/test-stdint.c: Update to match ISO C 99 Technical
53088         Corrigendum 1.
53089
53090 2006-06-23  Bruno Haible  <bruno@clisp.org>
53091
53092         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
53093
53094 2006-06-23  Bruno Haible  <bruno@clisp.org>
53095
53096         * lib/stdint_.h: Treat IRIX like OpenBSD.
53097
53098 2006-06-23  Bruno Haible  <bruno@clisp.org>
53099
53100         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
53101         ISO C 99 Technical Corrigendum 1.
53102
53103 2006-06-22  Simon Josefsson  <jas@extundo.com>
53104
53105         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
53106         MinGW.
53107
53108 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53109
53110         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
53111         needed.  Some compiler complained about some of them.  Problem reported
53112         by Larry Jones in
53113         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
53114
53115 2006-06-21  Simon Josefsson  <jas@extundo.com>
53116
53117         * tests/test-getaddrinfo.c: New file.
53118
53119         * modules/getaddrinfo-tests: New file.
53120
53121         * MODULES.html.sh: Add inet_pton.
53122
53123         * modules/inet_pton: New file.
53124
53125 2006-06-21  Simon Josefsson  <jas@extundo.com>
53126
53127         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
53128         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
53129         of using the (limited) gnulib implementation on Windows XP.
53130
53131         * m4/inet_pton.m4: New file.
53132
53133 2006-06-21  Simon Josefsson  <jas@extundo.com>
53134
53135         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
53136         variable.
53137
53138         * lib/socket_.h: Don't define WINVER.
53139
53140         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
53141         slightly modified to work in gnulib.
53142
53143 2006-06-21  Simon Josefsson  <jas@extundo.com>
53144
53145         * doc/gnulib.texi (Windows sockets): Add.
53146
53147 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53148
53149         * lib/read-file.c (fread_file): Start with buffer allocation of
53150         0 bytes rather than 1 byte; this simplifies the code.
53151         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
53152         code to free buffer and save/restore errno.
53153         (internal_read_file): Remove unused local.
53154
53155 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53156
53157         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
53158         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
53159         Problem reported by Denis Excoffier in
53160         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
53161
53162 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53163
53164         * modules/sys_socket, modules/socklen: Include sys/types since
53165         FreeBSD 4.x's sys/socket.h needs it.
53166
53167 2006-06-19  Simon Josefsson  <jas@extundo.com>
53168
53169         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
53170
53171 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53172
53173         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
53174
53175 2006-06-19  Bruno Haible  <bruno@clisp.org>
53176
53177         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
53178         and FULL_PATH_INTTYPES_H in angle brackets.
53179         Reported by Mark D. Baushke <mdb@gnu.org>.
53180
53181 2006-06-17  Eric Blake  <ebb9@byu.net>
53182
53183         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
53184         errno.
53185
53186 2006-06-17  Bruno Haible  <bruno@clisp.org>
53187
53188         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
53189         <sys/inttypes.h>.
53190
53191 2006-06-17  Bruno Haible  <bruno@clisp.org>
53192
53193         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
53194         whether errno is declared. Assume <errno.h> declares errno.
53195
53196 2006-06-17  Bruno Haible  <bruno@clisp.org>
53197
53198         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
53199
53200 2006-06-17  Bruno Haible  <bruno@clisp.org>
53201
53202         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
53203         problem on Solaris 2.5.1.
53204
53205 2006-06-16  Eric Blake  <ebb9@byu.net>
53206
53207         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
53208         * lib/unicodeio.c [!defined errno]: Likewise.
53209         * lib/strtol.c [!defined errno]: Likewise.
53210         * lib/strtod.c [!defined errno]: Likewise.
53211
53212 2006-06-15  Eric Blake  <ebb9@byu.net>
53213
53214         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
53215
53216 2006-06-15  Eric Blake  <ebb9@byu.net>
53217
53218         * config/srclist.txt (ssize_t.m4): Lose sync.
53219
53220 2006-06-15  Bruno Haible  <bruno@clisp.org>
53221
53222         * modules/stdint (Files): Include m4/full-header-path.m4,
53223         m4/size_max.m4, m4/wchar_t.m4.
53224         (Makefile.am): Many more substitutions.
53225         * modules/stdint-tests: New file.
53226         * tests/test-stdint.c: New file.
53227
53228 2006-06-15  Bruno Haible  <bruno@clisp.org>
53229
53230         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
53231         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
53232         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
53233         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
53234         gl_CHECK_TYPE_SAME): New macros.
53235
53236 2006-06-15  Bruno Haible  <bruno@clisp.org>
53237
53238         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
53239
53240 2006-06-15  Bruno Haible  <bruno@clisp.org>
53241
53242         * lib/stdint_.h: Rewritten to be fully auto-configured.
53243         Fixes bug on HP-UX/IA64.
53244
53245 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
53246
53247         * lib/getdate.y (__attribute__): Don't define if already defined.
53248         Problem reported by Larry Jones.
53249         * lib/utimens.c (__attribute__): Likewise.
53250
53251 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
53252
53253         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
53254         reported by Andreas Schwab.
53255
53256 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53257             Bruno Haible  <bruno@clisp.org>
53258
53259         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
53260         check for the declaration of strnlen and a run test that exposes the
53261         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
53262         rpl_strndup.
53263
53264 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53265             Bruno Haible  <bruno@clisp.org>
53266
53267         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
53268
53269 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53270
53271         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
53272         compile test, for Tru64 4.0D.
53273
53274 2006-05-28  Karl Berry  <karl@gnu.org>
53275
53276         * config/srclist.txt (printf-args.c): lose sync.
53277
53278 2006-05-26  Martin Lambers  <marlam@marlam.de>
53279
53280         * lib/getpass.c: Updates the test for the native W32 API, and adds
53281         missing includes, thus fixing compilation warnings.
53282
53283 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
53284
53285         * lib/exclude.c (exclude_fnmatch): New function.
53286         (excluded_file_name): Call exclude_fnmatch.
53287         * lib/exclude.h (excluded_file_name): New prototype
53288
53289 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
53290
53291         * lib/tempname.c (small_open, large_open): New macros.
53292         (__open, __open64) [!_LIBC]: Remove.
53293         (__gen_tempname): Use small_open and large_open instead of __open
53294         and __open64.  This fixes a portability bug on HP-UX 11.11i
53295         reported by Simon Wing-Tang in
53296         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
53297
53298 2006-05-24  Bruno Haible  <bruno@clisp.org>
53299
53300         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
53301         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
53302         Reported by Thorsten Maerz <torte@netztorte.de> via
53303         Aaron Stone <aaron@serendipity.cx>.
53304
53305 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53306
53307         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
53308         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
53309         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
53310         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
53311         not really conditional on the cache.
53312         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
53313
53314 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53315
53316         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
53317         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
53318         (my_usleep): Don't mishandle maximum value.
53319
53320 2006-05-19  Jim Meyering  <jim@meyering.net>
53321
53322         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
53323
53324 2006-05-17  Bruno Haible  <bruno@clisp.org>
53325
53326         Cygwin portability.
53327         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
53328
53329 2006-05-17  Bruno Haible  <bruno@clisp.org>
53330
53331         * lib/stdint_.h: Fix recognition of Cygwin.
53332
53333 2006-05-15  Bruno Haible  <bruno@clisp.org>
53334
53335         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
53336         on libtool patch by Ralf Wildenhues.
53337
53338 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53339
53340         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
53341         test for C99 conformance; (bool) 0.5 is an integer constant
53342         expression, but (bool) -0.5 is not.  Problem reported by Fedor
53343         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
53344
53345 2006-05-11  Simon Josefsson  <jas@extundo.com>
53346
53347         * m4/xvasprintf.m4: Fix obvious typo.
53348
53349 2006-05-11  Jim Meyering  <jim@meyering.net>
53350
53351         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
53352         James Lemley.
53353
53354 2006-05-10  Simon Josefsson  <jas@extundo.com>
53355
53356         * lib/md4.c: Typo fix, update copyright years.
53357         (K1, K2): Don't use L because it turn computations into 64-bit on
53358         64-bit platforms.
53359
53360 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
53361
53362         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
53363         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
53364         unwanted sign propagation, e.g., on hosts with 64-bit int.
53365         There still are some problems with reeelly weird theoretical hosts
53366         (e.g., 33-bit int) but it's not worth worrying about now.
53367         * lib/sha1.c (rol): Likewise.
53368         (K1, K2, K3, K4): Remove unnecessary L suffix.
53369
53370 2006-05-10  Bruno Haible  <bruno@clisp.org>
53371
53372         * lib/des.c: Cast to avoid warnings.
53373
53374 2006-05-09  Bruno Haible  <bruno@clisp.org>
53375
53376         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
53377         (Depends-on): Depend also on xsize, stdarg.
53378         (configure.ac): Add gl_XVASPRINTF.
53379
53380 2006-05-09  Bruno Haible  <bruno@clisp.org>
53381
53382         * m4/xvasprintf.m4: New file.
53383
53384 2006-05-09  Bruno Haible  <bruno@clisp.org>
53385
53386         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
53387         (EOVERFLOW): Define fallback value.
53388         (xstrcat): New function.
53389         (xvasprintf): Recognize the special case of a string concatenation.
53390
53391 2006-05-08  Eric Blake  <ebb9@byu.net>
53392
53393         * gnulib-tool (func_version): Base copyright year on CVS date.
53394         (func_emit_copyright_notice): New function.
53395         (func_emit_lib_Makefile_am): Use it.
53396         (func_emit_tests_Makefile_am): Likewise.
53397         (func_import): Likewise.
53398
53399 2006-05-08  Bruno Haible  <bruno@clisp.org>
53400
53401         * modules/stdarg: New file.
53402         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
53403
53404 2006-05-08  Bruno Haible  <bruno@clisp.org>
53405
53406         * m4/stdarg.m4: New file, from GNU gettext.
53407
53408 2006-05-08  Bruno Haible  <bruno@clisp.org>
53409
53410         * config/srclist.txt (build-aux/config.rpath): different from latest
53411         release.
53412
53413 2006-05-08  Bruno Haible  <bruno@clisp.org>
53414
53415         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
53416
53417 2006-05-05  Jim Meyering  <jim@meyering.net>
53418
53419         * m4/warning.m4: New file, derived from bison's file by the same name.
53420
53421 2006-05-03  Bruno Haible  <bruno@clisp.org>
53422
53423         * lib/stdint_.h: Shorter URL.
53424         * lib/inttypes.h: Likewise.
53425
53426 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53427
53428         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
53429
53430 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53431
53432         * lib/verify.h: Document the internals better.  Most of this change
53433         was written by Bruno Haible.
53434
53435 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53436
53437         * doc/verify.texi: New file, partly based on a proposal by
53438         Bruno Haible.
53439
53440 2006-05-02  Bruno Haible  <bruno@clisp.org>
53441
53442         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
53443         test from here...
53444         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
53445
53446 2006-04-29  Bruno Haible  <bruno@clisp.org>
53447
53448         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
53449         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
53450
53451 2006-04-29  Bruno Haible  <bruno@clisp.org>
53452
53453         * gnulib-tool: Make --update option actually work.
53454
53455 2006-04-29  Bruno Haible  <bruno@clisp.org>
53456
53457         * doc/gcd.texi: New file.
53458         * doc/gnulib.texi: Include it.
53459
53460 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53461
53462         * lib/getdate.y (get_date): When adding relative date, start with the
53463         initial time, not with the result of the first mktime call.
53464
53465 2006-04-25  Bruno Haible  <bruno@clisp.org>
53466
53467         * gnulib-tool (func_import): Output the include directives in three
53468         blocks, sorted separately.
53469         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53470
53471 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53472
53473         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
53474         to define main with arguments, for C++.  Reported by Eric Blake.
53475         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
53476         Prefer 'int main ()' to 'int main (void)', for C++.
53477         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
53478         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
53479         for 'main', for C99 and C++.
53480
53481 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53482
53483         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
53484         Don't assume that exit status -1 is valid.
53485         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53486         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53487         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
53488         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
53489         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
53490         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
53491         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
53492         functions can be used without declaring them, or that you can
53493         exit with status -1.
53494         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
53495
53496 2006-04-24  Karl Berry  <karl@gnu.org>
53497
53498         * config/srclist.txt (longdouble.m4): sync lost.
53499
53500 2006-04-24  Eric Blake  <ebb9@byu.net>
53501
53502         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
53503
53504 2006-04-24  Bruno Haible  <bruno@clisp.org>
53505
53506         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
53507         poll() implementation in AIX.
53508         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53509
53510 2006-04-24  Bruno Haible  <bruno@clisp.org>
53511
53512         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
53513         assigned exactly once.
53514
53515 2006-04-23  Claudio Fontana  <claudio@gnu.org>
53516             Bruno Haible  <bruno@clisp.org>
53517
53518         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
53519         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
53520         for AM_CPPFLAGS.
53521
53522 2006-04-23  Bruno Haible  <bruno@clisp.org>
53523
53524         * modules/copy-file: Depend on unistd.
53525         * modules/execute: Likewise.
53526         * modules/fatal-signal: Likewise.
53527         * modules/findprog: Likewise.
53528         * modules/mkdtemp : Likewise.
53529         * modules/pipe: Likewise.
53530         * modules/wait-process: Likewise.
53531
53532 2006-04-23  Bruno Haible  <bruno@clisp.org>
53533
53534         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
53535         condition was already detected.
53536         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53537
53538 2006-04-23  Bruno Haible  <bruno@clisp.org>
53539
53540         * lib/copy-file.c: Include <unistd.h> unconditionally.
53541         * lib/execute.c: Likewise.
53542         * lib/fatal-signal.c: Likewise.
53543         * lib/findprog.c: Likewise.
53544         * lib/mkdtemp.c: Likewise.
53545         * lib/pipe.h: Likewise.
53546         * lib/pipe.c: Likewise.
53547         * lib/wait-process.h: Likewise.
53548
53549 2006-04-23  Bruno Haible  <bruno@clisp.org>
53550
53551         * gnulib-tool (func_usage): Fix --import description. Document
53552         --update.
53553         (func_import): Create temporary file in a temporary directory, if
53554         --dry-run is specified. Silence errors from 'grep' when there are no
53555         m4 files in $m4dir.
53556         (func_create_testdir): Silence errors from 'grep' when there are no
53557         m4 files in $m4dir.
53558         Reported by Karl Berry <karl@freefriends.org>.
53559
53560 2006-04-20  Bruno Haible  <bruno@clisp.org>
53561
53562         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
53563         one argument, so that the code will be portable to Autoconf 2.60.
53564         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
53565         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53566         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
53567
53568 2006-04-19  Derek Price  <derek@ximbiot.com>
53569             Eric Blake  <ebb9@byu.net>
53570
53571         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
53572         rather than "/full/path.h".  Update comment to match.  Shorten &
53573         generalize m4_translit call via AS_TR_CPP.
53574
53575 2006-04-19  Derek Price  <derek@ximbiot.com>
53576             Eric Blake  <ebb9@byu.net>
53577
53578         * lib/inttypes.h: Correct grammar in comment.
53579
53580 2006-04-18  Derek Price  <derek@ximbiot.com>
53581             Paul Eggert  <eggert@cs.ucla.edu>
53582
53583         * modules/inttypes: New file.
53584         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
53585
53586 2006-04-18  Derek Price  <derek@ximbiot.com>
53587             Paul Eggert  <eggert@cs.ucla.edu>
53588
53589         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
53590         New files.
53591
53592 2006-04-18  Derek Price  <derek@ximbiot.com>
53593             Paul Eggert  <eggert@cs.ucla.edu>
53594
53595         * lib/inttypes.h: New file.
53596         * lib/strtoimax.c: Assume <inttypes.h>.
53597
53598 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
53599
53600         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
53601         isn't mounted.  Problem reported by Kir Kolyshkin.
53602
53603 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53604
53605         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
53606         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
53607         Derek R. Price.
53608         * lib/regex.h (RE_DUP_MAX): Update comment to match current
53609         implementation.
53610
53611 2006-04-12  Eric Blake  <ebb9@byu.net>
53612
53613         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
53614         is now done automatically by the corresponding Autoconf macro.
53615
53616 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
53617
53618         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
53619         time_r.h.
53620
53621 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53622
53623         Merge regex changes from libc, removing some of our
53624         POSIX-conformance changes that were rejected and redoing them in a
53625         less-intrusive way.
53626
53627         * lib/regcomp.c (re_compile_internal, init_dfa):
53628         Length arg is now size_t, not Idx.  All uses changed.
53629         (peek_token): Forward decl now says internal_function.
53630         (__re_error_msgid, __re_error_msgid_idx):
53631         Now static rather than extern with attribute_hidden.
53632         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
53633         For some reason libc prefers K&R style defns for external functions.
53634         (regerror) [!defined _LIBC]: Likewise.
53635         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
53636         (seek_collating_symbol_entry, lookup_collation_sequence_value):
53637         (build_range_exp, build_collating_symbol):
53638         Use K&R-style defn.
53639         (re_compile_fastmap): Use '\0' to memset, not 0.
53640         (utf8_sb_map): Make the calculations more obvious.
53641         (init_dfa, parse_bracket_exp, build_charclass_op):
53642         Call calloc and cast result, as glibc does.
53643         (init_word_char, fetch_token, peek_token, peek_token_bracket):
53644         (build_range_exp, build_collating_symbol):
53645         Now internal functions.
53646
53647         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
53648
53649         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
53650         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
53651         Don't depend on VMS; depend on __VMS instead, for POSIX
53652         namespace cleanness.
53653         (regoff_t): Define to ssize_t, not long int.
53654
53655         Remove the REG_ macros named below.  Instead, make the old names
53656         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
53657         __USE_GNU_REGEX.
53658         (REG_BACKSLASH_ESCAPE_IN_LISTS):
53659         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
53660         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
53661         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
53662         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
53663         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
53664         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
53665         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
53666         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
53667         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
53668         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
53669         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
53670         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
53671         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
53672         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
53673         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
53674         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
53675         (REG_NREGS):
53676         Remove.  All uses replaced by the old RE_* names.
53677         (RE_BACKSLASH_ESCAPE_IN_LISTS):
53678         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
53679         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
53680         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
53681         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
53682         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
53683         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
53684         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
53685         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
53686         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
53687         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
53688         Don't bother having these macros be independent of each others'
53689         values, since they no longer exist in the POSIX name space.
53690
53691         Rename the following member names back to their old names,
53692         unless !__USE_GNU_REGEX.  All uses changed back.
53693         (buffer): Renamed from re_buffer.
53694         (allocated): Renamed from re_allocated.
53695         (used): Renamed from re_used.
53696         (syntax): Renamed from re_syntax.
53697         (fastmap): Renamed from re_fastmap.
53698         (translate): Renamed from re_translate.
53699         (can_be_null): Renamed from re_can_be_null.
53700         (regs_allocated): Renamed from re_regs_allocated.
53701         (fastmap_accurate): Renamed from re_fastmap_accurate.
53702         (no_sub): Renamed from re_no_sub.
53703         (not_bol): Renamed from re_not_bol.
53704         (not_eol): Renamed from re_not_eol.
53705         (newline_anchor): Renamed from re_newline_anchor.
53706         (num_regs): Renamed from rm_num_regs.
53707         (start): Renamed from rm_start.
53708         (end): Renamed from rm_end.
53709
53710         (free_state): Move up a bit.
53711
53712         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
53713         #define to be empty.
53714         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
53715         when that is what is intended.
53716         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
53717         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
53718         (MAX): New macro.
53719         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
53720         All uses changed back to re_malloc, etc.  It's now the caller's
53721         responsibility to check for overflow; all callers changed.
53722         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
53723         (re_x2nrealloc): Remove.
53724         (free_state): Remove decl.
53725
53726         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
53727         (re_set_registers, re_exec):
53728         Use K&R-style defn.
53729
53730         2006-01-31  Roland McGrath  <roland@redhat.com>
53731
53732         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
53733         Reported by Mike Frysinger <vapier@gentoo.org>.
53734
53735         2006-01-15  Andreas Jaeger  <aj@suse.de>
53736
53737         [BZ #1950]
53738         * lib/regex_internal.c (re_string_reconstruct): Adjust for
53739         build_wcs_upper_buffer change.
53740         (build_wcs_upper_buffer): Change return type.
53741
53742         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
53743
53744         * lib/regex_internal.h: Include <stdint.h> if available.
53745
53746         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
53747
53748         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
53749
53750         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53751
53752         * lib/regcomp.c: Adjust for changed secondary hash function.
53753
53754         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
53755
53756         * lib/regex.h: Pretty printing.
53757         Clean up namespace a bit.
53758
53759         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
53760
53761         * lib/regexec.c (update_cur_sifted_state, check_arrival,
53762         check_arrival_add_next_nodes): Avoid using uninitialized variable.
53763
53764         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53765                     Ulrich Drepper  <drepper@redhat.com>
53766
53767         [BZ #1302]
53768         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
53769         changed.
53770         (bitset_word_t): Renamed from bitset_word.  All uses changed.
53771
53772         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
53773
53774         [BZ #281]
53775         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
53776         * lib/regcomp.c: Remove unnecessary uses of
53777         unsigned RE_TRANSLATE_TYPE.
53778         * lib/regex_internal.h: Likewise.
53779         * lib/regex_internal.c: Likewise.
53780         * lib/regexec.c: Likewise.
53781         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
53782
53783         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
53784
53785         * lib/regexec.c (find_recover_state): Remove unnecessary
53786         initialization.
53787         (transit_state_bkref): Make DFA a const pointer.
53788         (get_subexp): Likewise.
53789         (check_arrival): Likewise.
53790         (update_cur_sifted_state): Likewise.
53791         (re_search_internal): Likewise.
53792         (prune_impossible_nodes): Likewise.
53793         (acquire_init_state_context): Likewise.
53794         (proceed_next_node): Likewise.
53795         (set_regs): Likewise.
53796         (free_fail_stack_return): Likewise.
53797         (check_arrival_expand_ecl): Mark DFA parameter as const.
53798         (check_arrival_expand_ecl_sub): Likewise.
53799         (check_subexp_limits): Likewise.
53800         (sub_epsilon_src_nodes):  Likewise.
53801         (add_epsilon_src_nodes):  Likewise.
53802         (merge_state_array): Likewise.
53803         (update_regs): Likewise.
53804         (build_trtable): Likewise.
53805         (sift_states_backward): Mark MCTX parameter as const.
53806         (build_sifted_states): Likewise.
53807         (update_cur_sifted_state): Likewise.
53808         (sift_states_mkref): Likewise.
53809         (check_arrival_expand_ecl): Mark eclosure as const.
53810         (check_dst_limits_calc_pos_1): Likewise.
53811         * lib/regex_internal.h (re_match_context_t): Make dfa a const
53812         pointer.
53813
53814         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
53815
53816         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
53817         (transit_state_sb): Likewise.
53818         (transit_state_mb): Likewise.
53819         (sift_states_iter_mb): Likewise.
53820         (check_arrival_add_next_nodes): Likewise.
53821         (check_node_accept_bytes): Change first parameter to pointer-to-const.
53822         [_LIBC] (re_search_2_stub): Use mempcpy.
53823
53824         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
53825         mbrtowc for very simple UTF-8 case.
53826
53827         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
53828         a pointer-to-const.
53829         (re_acquire_state_context): Likewise.
53830         * lib/regex_internal.h: Adjust prototypes.
53831
53832         * lib/regex.c: Prevent using C++ compilers.
53833
53834         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
53835         (re_acquire_state_context): Likewise.
53836
53837 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53838
53839         * modules/regex (Depends-on): Add ssize_t.
53840
53841 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53842
53843         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
53844         translation table.
53845
53846 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53847
53848         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
53849
53850 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
53851             Bruno Haible  <bruno@clisp.org>
53852
53853         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
53854         <sys/types.h> and <inttypes.h>.
53855
53856 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53857
53858         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
53859         `__error_t_defined', so argp.h will not typedef the former.
53860
53861 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
53862
53863         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
53864         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
53865         glibc names.  Even if glibc is changed to conform to POSIX, the
53866         traditional names will be available anyway, since regex depends on
53867         the extensions module.  Also, fix a longstanding typo in the
53868         implementation of Spencer ERE test #75 from grep 2.3.  Problems
53869         reported by Emanuele Giaquinta.  Also, change sense of cached
53870         variable, so that the message makes sense.
53871
53872 2006-03-24  Simon Josefsson  <jas@extundo.com>
53873
53874         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
53875         including some doc fixes.
53876         (base64_encode_alloc): Fix +1 bug on allocation failures.
53877
53878 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53879
53880         * lib/base64.c (base64_encode): Do not read past end of array with
53881         unsanitized input on systems with CHAR_BIT > 8.
53882
53883 2006-03-24  Eric Blake  <ebb9@byu.net>
53884
53885         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
53886
53887 2006-03-22  Karl Berry  <karl@gnu.org>
53888
53889         * config/srclist.txt (*setenv.[ch]): get from coreutils.
53890         * config/srclistvars.sh (COREUTILS): new var.
53891
53892 2006-03-17  Jim Meyering  <jim@meyering.net>
53893
53894         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
53895         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
53896
53897 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
53898
53899         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
53900         no longer needs it.  Instead, check that regoff_t is as least
53901         as wide as ptrdiff_t.
53902
53903         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
53904         so that our regex.h stays compatible with the installed regex.
53905         This is helpful for installers who configure --without-included-regex.
53906         Problem reported by Emanuele Giaquinta.
53907
53908 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
53909
53910         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
53911         Typedef to long int, not to off_, as POSIX will likely change
53912         in that direction.
53913
53914 2006-03-15  Eric Blake  <ebb9@byu.net>
53915
53916         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
53917
53918 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
53919
53920         * lib/argp-help.c (validate_uparams): Fix typo
53921         * lib/argp-parse.c (argp_default_options): Consistently begin help
53922         messages with a lowercase letter.
53923
53924 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
53925
53926         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
53927         overrun buffers and shouldn't be used (much as gets shouldn't be
53928         used).
53929         * lib/time_r.c (asctime_r, ctime_r): Likewise.
53930
53931 2006-03-08  Simon Josefsson  <jas@extundo.com>
53932
53933         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
53934         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53935
53936 2006-03-08  Simon Josefsson  <jas@extundo.com>
53937
53938         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
53939         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53940
53941 2006-03-08  Simon Josefsson  <jas@extundo.com>
53942
53943         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
53944         signal that configure disabled the device.
53945
53946 2006-03-08  Simon Josefsson  <jas@extundo.com>
53947
53948         * build-aux/maint.mk: Fix refresh-po, to handle no translated
53949         languages.
53950
53951 2006-03-07  Simon Josefsson  <jas@extundo.com>
53952
53953         * modules/getopt (Depends-on): Add unistd.
53954
53955         * modules/unistd: New file.
53956
53957 2006-03-07  Simon Josefsson  <jas@extundo.com>
53958
53959         * modules/gc-random: New file.
53960
53961 2006-03-07  Simon Josefsson  <jas@extundo.com>
53962
53963         * m4/unistd_h.m4: New file.
53964
53965 2006-03-07  Simon Josefsson  <jas@extundo.com>
53966
53967         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
53968         test to be side-effect free by storing the result in the cache
53969         variable gl_cv_lib_readline, and moving the assignment of
53970         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
53971         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53972
53973 2006-03-07  Simon Josefsson  <jas@extundo.com>
53974
53975         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
53976         error on missing devices (the functions will return an error).
53977
53978         * m4/gc.m4: Move random stuff to gc-random.m4
53979
53980 2006-03-07  Simon Josefsson  <jas@extundo.com>
53981
53982         * lib/unistd_.h: New file.
53983
53984 2006-03-07  Simon Josefsson  <jas@extundo.com>
53985
53986         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
53987
53988 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53989
53990         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
53991         Problem reported by Juan Manuel Guerrero.
53992
53993 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53994
53995         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
53996         the unistd module.
53997         * lib/getlogin_r.c: Likewise.
53998         * lib/getlogin_r.h: Likewise.
53999         * lib/glob.c: Likewise.
54000         * lib/pagealign_alloc.c: Likewise.
54001         * lib/unistd_.h: Remove; no longer needed.
54002
54003 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54004
54005         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54006         Add unistd.
54007         * modules/c-stack (Depends-on): Add unistd.
54008         * modules/getlogin_r: Likewise.
54009         * modules/glob: Likewise.
54010         * modules/pagealign_alloc: Likewise.
54011         * modules/unistd (Files): Remove lib/unistd_.h.
54012         (EXTRA_DIST): Remove.
54013         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
54014         need unistd_.h.
54015         (MOSTLYCLEANFILES): Remove unistd.h-t.
54016
54017 2006-03-03  Simon Josefsson  <jas@extundo.com>
54018
54019         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
54020
54021 2006-03-03  Simon Josefsson  <jas@extundo.com>
54022
54023         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
54024         libidn and bison.
54025
54026 2006-03-03  Simon Josefsson  <jas@extundo.com>
54027
54028         * build-aux/maint.mk: Add indent target.
54029
54030 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
54031
54032         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
54033         our replacement poll.h in any case, to avoid a differing
54034         declaration from a system header.  Seen on AIX.
54035
54036 2006-03-01  Simon Josefsson  <jas@extundo.com>
54037
54038         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
54039         <kasal@ucw.cz>.
54040
54041 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54042
54043         * modules/gettime (Depends-on): Add extensions module.
54044         * modules/nanosleep (Depends-on): Likewise.
54045         * modules/settime (Depends-on): Likewise.
54046
54047 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54048
54049         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
54050         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
54051         pedantically.
54052         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54053         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
54054
54055         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
54056         not "==".  Reported by Ralf Wildenhues.
54057
54058 2006-03-01  Karl Berry  <karl@gnu.org>
54059
54060         * doc/Copyright/request-*: new files, synced from gnuorg.
54061
54062 2006-03-01  Karl Berry  <karl@gnu.org>
54063
54064         * config/srclist.txt (Copyright/*): new entries.
54065
54066 2006-02-28  Simon Josefsson  <jas@extundo.com>
54067
54068         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
54069
54070 2006-02-27  Simon Josefsson  <jas@extundo.com>
54071
54072         * lib/base64.h: Indent #define's.  From Jim Meyering
54073         <jim@meyering.net>.
54074
54075 2006-02-27  Jim Meyering  <jim@meyering.net>
54076
54077         Revert the change of 2006-02-24, so these files can continue
54078         to be sync'd from gettext.
54079         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
54080         of `config.h'.
54081
54082 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
54083
54084         * modules/intprops: New file.
54085         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54086         Add intprops.
54087         * modules/getloadavg (Files): Remove lib/intprops.h.
54088         (Depends-on): Add intprops.
54089         * modules/human: Likewise.
54090         * modules/inttostr: Likewise.
54091         * modules/openat: Likewise.
54092         * modules/sig2str: Likewise.
54093         * modules/userspec: Likewise.
54094         * modules/utimecmp: Likewise.
54095         * modules/xnanosleep: Likewise.
54096         * modules/xstrtol: Likewise.
54097
54098 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
54099
54100         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
54101         * modules/lock-tests (TESTS): Use $(EXEEXT).
54102         * modules/tls-tests: Likewise.
54103         * modules/argp-tests: Likewise.
54104         (check_PROGRAMS): New var, replacing...
54105         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
54106
54107 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54108
54109         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
54110         `config.h'.
54111
54112 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54113
54114         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
54115
54116 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54117
54118         Sync from coreutils.
54119         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
54120         gl_CHDIR_SAFER.
54121
54122 2006-02-22  Jim Meyering  <jim@meyering.net>
54123
54124         Sync from coreutils.
54125         * m4/chdir-safer.m4: New file.
54126
54127 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54128
54129         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
54130         AT_FDCWD exceeds INT_MAX.
54131         * lib/openat.h (AT_FDCWD): Likewise.
54132
54133 2006-02-17  Eric Blake  <address@hidden>
54134
54135         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
54136
54137 2006-02-16  Simon Josefsson  <jas@extundo.com>
54138
54139         * modules/getaddrinfo (Depends-on): Add sys_socket.
54140
54141 2006-02-15  Simon Josefsson  <jas@extundo.com>
54142
54143         * build-aux/maint.mk: Add dsyntax-check rule.
54144
54145 2006-02-15  Eric Blake  <ebb9@byu.net>
54146
54147         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
54148         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
54149         'present but cannot compile' warnings on cygwin.
54150         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
54151         use ws2tcpip.h if sys/socket.h works.
54152         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
54153         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
54154
54155 2006-02-14  Simon Josefsson  <jas@extundo.com>
54156
54157         * modules/maintainer-makefile (Files): Rename.
54158
54159         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
54160         and (the local) Makefile.cfg to maint-cfg.mk.
54161
54162         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
54163         to the latter.
54164
54165         * modules/maintainer-makefile: New module.
54166
54167         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
54168         severaly stripped to make it possible to build it up from scratch
54169         with reliable tests.
54170
54171         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
54172         fixes to permit overriding the default actions when configure and
54173         makefile are not available.
54174
54175 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54176
54177         Sync from coreutils.
54178         * modules/lstat (Depends-on): Don't depend on xalloc.
54179         (License): Change from GPL to LGPL, since this is now simply a
54180         replacement for a libc function.
54181
54182 2006-02-14  Jim Meyering  <jim@meyering.net>
54183
54184         Sync from coreutils.
54185
54186         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
54187         failure on deficient systems, and simplify gnulib lgpl dependencies.
54188         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
54189         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
54190
54191         * lib/xalloc-die.c: Remove unused definition of N_.
54192
54193 2006-02-14  Jim Meyering  <jim@meyering.net>
54194
54195         Sync from coreutils.
54196         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
54197         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
54198         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
54199         double-quote uses of that variable, to accommodate the rare case in
54200         which getmntent is available in none of the libraries checked.  This
54201         happens at least on FreeBSD 5.0.
54202
54203 2006-02-13  Simon Josefsson  <jas@extundo.com>
54204
54205         * gnulib-tool (Usage): Fix --import, from
54206         karl@freefriends.org (Karl Berry).
54207
54208 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54209
54210         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
54211
54212 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
54213
54214         * lib/argp-namefrob.h: Restore changes accidentally lost during the
54215         "autoupdate" on 2005-12-12.
54216
54217 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54218
54219         * modules/closeout (Depends-on): Remove atexit.
54220
54221 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54222
54223         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
54224         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
54225
54226 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54227
54228         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
54229         __EXTENSIONS__ if this causes compilation to fail.  Problem
54230         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
54231         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
54232
54233 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
54234
54235         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
54236         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
54237         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
54238         All uses changed.
54239
54240 2006-01-26  Simon Josefsson  <jas@extundo.com>
54241
54242         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
54243         prototype is visible on mingw32.
54244
54245         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
54246         for mingw32.
54247
54248         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
54249         mingw32).
54250
54251 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54252
54253         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
54254         attempt to open for write; this always fails, at least on POSIX
54255         hosts.  This reinstates the 2006-01-09 change, which was
54256         inadvertently removed.
54257
54258 2006-01-26  Bruno Haible  <bruno@clisp.org>
54259
54260         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
54261         Reported by Paul Eggert.
54262
54263 2006-01-26  Bruno Haible  <bruno@clisp.org>
54264             Paul Eggert  <eggert@cs.ucla.edu>
54265
54266         * lib/stdbool_.h (_Bool)
54267         [(! (defined __cplusplus || defined __BEOS__)
54268           && !defined __GNUC__
54269           && !(defined __HP_cc || defined __xlc__
54270                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
54271                || defined __sgi))]:
54272         #define to signed char in these cases too; this simplifies
54273         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
54274         etc., separately) and makes it more conservative.
54275
54276 2006-01-25  Simon Josefsson  <jas@extundo.com>
54277
54278         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
54279         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
54280         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
54281
54282 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54283
54284         * lib/argp-namefrob.h: Bugfix. Remove stray #
54285
54286 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54287
54288         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
54289         so that we test the test.
54290         Check for yet another HP-UX cc bug involving *bool |= bool.
54291
54292 2006-01-25  Karl Berry  <karl@gnu.org>
54293
54294         * config/srclist.txt (vasnprintf.c): sync lost.
54295
54296 2006-01-25  Jim Meyering  <jim@meyering.net>
54297
54298         Sync from the stable (b5) branch of coreutils:
54299
54300         * lib/fts.c (fts_children): Don't let close() clobber errno from
54301         failed fchdir().
54302
54303         * lib/fts.c (fts_stat): When following a symlink-to-directory,
54304         don't necessarily interpret stat-fails+lstat-succeeds as indicating
54305         a dangling symlink.  That can also happen at least for ELOOP.
54306         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
54307         FYI, this bug predates the inclusion of fts.c in coreutils.
54308
54309         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
54310         in their own block, so pre-c99 compilers don't object.
54311
54312         Avoid the double-free (first in fts_read, second in fts_close) that
54313         would occur when an `active' directory is made inaccessible (e.g.,
54314         via chmod a-x) during a traversal.
54315         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54316         before returning.  Reproduce this failure by
54317         mkdir -p a/b; cd a; chmod a-x . b
54318         Reported by Stavros Passas.
54319
54320 2006-01-25  Jim Meyering  <jim@meyering.net>
54321
54322         * lib/fileblocks.c: Remove more useless parentheses.
54323         * lib/readutmp.h: Likewise.
54324
54325 2006-01-25  Bruno Haible  <bruno@clisp.org>
54326
54327         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
54328         warnings.
54329         Reported by Paul Eggert.
54330
54331 2006-01-25  Bruno Haible  <bruno@clisp.org>
54332
54333         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
54334         rid of a trap command. For Solaris sh.
54335         Reported by Mark D. Baushke <mdb@gnu.org>.
54336
54337 2006-01-24  Simon Josefsson  <jas@extundo.com>
54338
54339         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
54340         Bruno.
54341
54342 2006-01-24  Karl Berry  <karl@gnu.org>
54343
54344         * config/srclist.txt (argp-namefrob.h): sync lost.
54345
54346 2006-01-24  Jim Meyering  <jim@meyering.net>
54347
54348         * modules/openat (Files): Add lib/intprops.h.
54349         From Mark D. Baushke.
54350
54351 2006-01-24  Jim Meyering  <jim@meyering.net>
54352
54353         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
54354         Reported by Mark D. Baushke.
54355
54356 2006-01-24  Jim Meyering  <jim@meyering.net>
54357
54358         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
54359
54360 2006-01-24  Bruno Haible  <bruno@clisp.org>
54361
54362         * modules/strnlen (Maintainer): Change from glibc to all.
54363
54364 2006-01-24  Bruno Haible  <bruno@clisp.org>
54365
54366         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
54367         Patch by Paul Eggert.
54368
54369 2006-01-24  Bruno Haible  <bruno@clisp.org>
54370
54371         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
54372         already has it.
54373         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
54374         2005-11-26.
54375
54376         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
54377         'signed char' to avoid problems with the built-in _Bool type.
54378         Reported by Paul Eggert on 2005-11-26.
54379
54380 2006-01-24  Bruno Haible  <bruno@clisp.org>
54381
54382         * gnulib-tool (func_import): Avoid constructing complicated sed
54383         expressions inside backquote.
54384         Report and solution by Mark D. Baushke <mdb@gnu.org>.
54385
54386 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
54387
54388         These changes imported from libc.
54389         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
54390         test and two separate function calls.
54391         * lib/strndup.c (__strndup): Add libc_hidden_def.
54392
54393 2006-01-23  Simon Josefsson  <jas@extundo.com>
54394
54395         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
54396         Remove the test_*_SOURCES variable: automake infers it by default.
54397         * modules/tls-tests: Likewise.
54398
54399 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54400
54401         Work around porting bugs reported by Dieter in
54402         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
54403         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
54404         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
54405         Include "getopt.h" first, to check interface.
54406         (getenv): Declare only if defined HAVE_DECL_GETENV &&
54407         !HAVE_DECL_GETENV.
54408         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
54409         (__strndup): Revert to K&R-style function dfns, the glibc style.
54410         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
54411         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
54412         Include strnlen.h first, to get prototype properly.
54413         (strnlen): Renamed from __strnlen.
54414         Remove weak alias.
54415
54416 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54417
54418         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
54419
54420 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54421
54422         * config/srclist.txt: Adjust to reflect glibc reorganization.
54423         This affects only comments.
54424
54425 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54426
54427          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
54428          Reported by Bruce Korb <bkorb@gnu.org>.
54429
54430 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54431
54432         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
54433         to pacify gcc -Wswitch-default.
54434
54435 2006-01-22  Bruno Haible  <bruno@clisp.org>
54436
54437         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
54438         temporary buffer for sprintf, take into account the precision also
54439         for 'd', 'i', 'u', 'o', 'x', 'X'.
54440
54441 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54442
54443         * modules/argp-tests: New module
54444         * tests/test-argp.c: New file
54445         * tests/test-argp-2.sh: New file
54446
54447 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54448
54449         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
54450         (__argp_base_name): Removed
54451         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
54452         typo.
54453         (__argp_base_name): Provide macro definition or extern declaration
54454         depending on the configuration
54455
54456 2006-01-20  Simon Josefsson  <jas@extundo.com>
54457
54458         * modules/inet_ntop (Depends-on): Depend on sys_socket.
54459
54460 2006-01-20  Simon Josefsson  <jas@extundo.com>
54461
54462         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
54463
54464 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54465
54466         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
54467         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
54468         Suggested by Bruno Haible.
54469
54470 2006-01-20  Karl Berry  <karl@gnu.org>
54471
54472         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
54473         until changes propagate, I guess.
54474
54475 2006-01-19  Simon Josefsson  <jas@extundo.com>
54476
54477         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
54478
54479 2006-01-19  Simon Josefsson  <jas@extundo.com>
54480
54481         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
54482
54483 2006-01-19  Simon Josefsson  <jas@extundo.com>
54484
54485         * gnulib-tool: Set check_PROGRAMS.
54486
54487         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54488         modules/des-tests, modules/gc-arcfour-tests,
54489         modules/gc-arctwo-tests, modules/gc-des-tests,
54490         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54491         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54492         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54493         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54494         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54495         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
54496         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
54497         test_*_SOURCES.
54498
54499 2006-01-18  Simon Josefsson  <jas@extundo.com>
54500
54501         * modules/socklen (Depends-on): Depend on sys_socket.
54502
54503 2006-01-18  Simon Josefsson  <jas@extundo.com>
54504
54505         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54506         modules/des-tests, modules/gc-arcfour-tests,
54507         modules/gc-arctwo-tests, modules/gc-des-tests,
54508         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54509         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54510         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54511         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54512         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54513         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
54514         $(EXEEXT) to automake TESTS variable, for mingw32.
54515
54516 2006-01-17  Simon Josefsson  <jas@extundo.com>
54517
54518         * modules/socklen (Include): Need sys/socket.h.
54519
54520 2006-01-17  Bruno Haible  <bruno@clisp.org>
54521
54522         * modules/ssize_t (Include): Add <sys/types.h>.
54523
54524 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
54525
54526         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
54527         it's not portable and it doesn't work with cross-compiles.
54528         Problem reported by Bruno Haible.  Fix missing-$ typo in
54529         'test "gl_cv_ignore_unused_libraries" ...' that prevented
54530         -zignore from being used with Sun's C compiler.
54531
54532 2006-01-12  Simon Josefsson  <jas@extundo.com>
54533
54534         * lib/base64.c: Fix warning, reported by Bruno Haible
54535         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
54536
54537 2006-01-12  Bruno Haible  <bruno@clisp.org>
54538
54539         * modules/ldd: New file.
54540         * build-aux/ldd.sh.in: New file.
54541         * MODULES.html.sh (Support for building libraries and executables): Add
54542         ldd.
54543
54544 2006-01-12  Bruno Haible  <bruno@clisp.org>
54545
54546         * m4/ldd.m4: New file.
54547
54548 2006-01-12  Bruno Haible  <bruno@clisp.org>
54549
54550         * gnulib-tool (func_import, func_create_testdir): Don't go into an
54551         endless loop while replacing $auxdir with build-aux.
54552
54553 2006-01-11  Simon Josefsson  <jas@extundo.com>
54554
54555         * lib/stdint_.h (SIZE_MAX): Add missing (.
54556
54557 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
54558
54559         Sync from coreutils.
54560         * lib/md5.c: Fix commentary typos.
54561         (alignof, UNALIGNED_P): No need for a GCC-specific version.
54562         * lib/md5.h (__attribute__): Remove; unused.
54563         * lib/sha1.c: Fix commentary to match md5 better.
54564         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
54565         so that we don't need to worry about alignment.  All uses changed.
54566         This merges the 2005-10-28 md5 change into sha1.
54567
54568 2006-01-11  Jim Meyering  <jim@meyering.net>
54569
54570         Sync from coreutils.
54571         * lib/md5.c (OP): Fix spacing.
54572
54573 2006-01-11  Bruno Haible  <bruno@clisp.org>
54574
54575         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54576         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
54577         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
54578
54579 2006-01-11  Bruno Haible  <bruno@clisp.org>
54580
54581         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54582         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
54583         the "early" section as well.
54584
54585 2006-01-11  Bruno Haible  <bruno@clisp.org>
54586
54587         Avoid "ar: no archive members specified" error on MacOS X.
54588         * gnulib-tool (func_modules_add_dummy): New function.
54589         (func_import, func_create_testdir): Invoke it.
54590
54591 2006-01-11  Bruno Haible  <bruno@clisp.org>
54592
54593         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
54594         with $auxdir in AC_CONFIG_FILES statements.
54595
54596 2006-01-11  Bruno Haible  <bruno@clisp.org>
54597
54598         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54599         Initialize also noinst_HEADERS to empty.
54600
54601 2006-01-11  Bruno Haible  <bruno@clisp.org>
54602
54603         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
54604         variables.
54605         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
54606         autoreconf.
54607
54608 2006-01-11  Bruno Haible  <bruno@clisp.org>
54609
54610         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
54611         overridable by the user.
54612         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54613
54614 2006-01-10  Simon Josefsson  <jas@extundo.com>
54615
54616         * modules/sys_socket: New file.
54617
54618 2006-01-10  Simon Josefsson  <jas@extundo.com>
54619
54620         * m4/sys_socket_h.m4: New file.
54621
54622 2006-01-10  Simon Josefsson  <jas@extundo.com>
54623
54624         * lib/socket_.h: New file.
54625
54626 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54627
54628         * modules/readutmp (Maintainer): Add myself.
54629
54630 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54631
54632         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
54633         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
54634         People who are still concerned with buggy memcmp implementations
54635         can invoke gl_FUNC_MEMCMP themselves.
54636
54637 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54638
54639         * lib/regex_internal.h (BITSET_WORD_BITS):
54640         Work around a bug in 64-bit PGC (before version 6.1-2), where the
54641         preprocessor mishandles large unsigned values as if they were signed.
54642         Problem reported by Claudio Fontana in
54643         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
54644
54645 2006-01-10  Jim Meyering  <jim@meyering.net>
54646
54647         Avoid the double-free (first in fts_read, second in fts_close) that
54648         would occur when an `active' directory is made inaccessible (e.g.,
54649         via chmod a-x) during a traversal.
54650         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54651         before returning.  Reproduce this failure by
54652         mkdir -p a/b; cd a; chmod a-x . b
54653         Reported by Stavros Passas.
54654
54655         Sync from coreutils.
54656         * lib/sha1.c: Tweak grammar in a comment.
54657
54658 2006-01-10  Jim Meyering  <jim@meyering.net>
54659
54660         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
54661         Patch by Joerg Sonnenberger.
54662
54663 2006-01-10  Bruno Haible  <bruno@clisp.org>
54664
54665         * modules/readutmp: Depend on module free.
54666         * modules/strtok_r: Depend on module restrict.
54667
54668 2006-01-10  Bruno Haible  <bruno@clisp.org>
54669
54670         * modules/gettext (configure.ac): Add an invocation of
54671         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
54672
54673 2006-01-10  Bruno Haible  <bruno@clisp.org>
54674
54675         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
54676         Reported by Werner Lemberg <wl@gnu.org>.
54677
54678 2006-01-10  Bruno Haible  <bruno@clisp.org>
54679
54680         * lib/localcharset.c: Update from GNU gettext.
54681
54682 2006-01-10  Bruno Haible  <bruno@clisp.org>
54683
54684         * lib/argp.h (__const): Remove macro. Use const instead.
54685         * lib/argp-fmtstream.h (__const): Likewise.
54686         * lib/glob_.h (__const): Remove macro.
54687         * lib/glob-libc.h: Use const instead of __const.
54688
54689 2006-01-10  Bruno Haible  <bruno@clisp.org>
54690
54691         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
54692         variable.
54693         Needed to avoid an automake error regarding the 'gettext' module.
54694
54695 2006-01-09  Simon Josefsson  <jas@extundo.com>
54696
54697         * modules/inet_ntop (Depends-on): Add restrict.
54698
54699 2006-01-09  Simon Josefsson  <jas@extundo.com>
54700
54701         * modules/gc-rijndael-tests (License): Put under LGPL.
54702
54703         * modules/gc-des-tests (License): Likewise.
54704
54705         * modules/gc-arcfour-tests (License): Likewise.
54706
54707         * modules/gc-arctwo-tests (License): Likewise.
54708
54709         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
54710
54711         * modules/gc-hmac-sha1-tests (Files): Likewise.
54712
54713         * modules/gc-hmac-md5-tests (License): Likewise.
54714
54715         * modules/gc-sha1-tests (License): Likewise.
54716
54717         * modules/gc-md5-tests (License): Likewise.
54718
54719         * modules/gc-md4-tests (License): Likewise.
54720
54721         * modules/gc-md2-tests (License): Likewise.
54722
54723         * modules/gc-tests (License): Likewise.
54724
54725         * modules/des-tests (License): Likewise.
54726
54727         * modules/md4-tests (License): Likewise.
54728
54729         * modules/md2-tests (License): Likewise.
54730
54731 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54732
54733         Sync from coreutils:
54734
54735         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
54736         * modules/lib-ignore: New file.
54737         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
54738         chdir-safer.m4, lchmod.m4.
54739         * modules/openat: Add mkdirat.c, openat-priv.h.
54740
54741 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54742
54743         Sync from coreutils.
54744         * m4/lib-ignore.m4: New file.
54745         * m4/lchmod.m4: New file.
54746
54747 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54748
54749         Sync from coreutils.
54750         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
54751         for write access: POSIX says that must fail.
54752         * lib/fts.c (diropen): Likewise.
54753         * lib/save-cwd.c (save_cwd): Likewise.
54754         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
54755         well, for minor improvements on hosts that lack O_DIRECTORY.
54756         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
54757         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
54758         Fall back on chown if open failed with EACCES.
54759
54760         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
54761         Report an error at compile-time if only a 1-second nominal clock
54762         resolution is found.
54763
54764         * lib/lchmod.h: New file.
54765         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
54766         (make_dir_parents): Use lchown rather than chown, and
54767         lchmod rather than chmod.
54768
54769         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
54770         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
54771         "proc" reported by n0dalus.
54772
54773         * lib/mountlist.c: Include <limits.h>.
54774         (dev_from_mount_options)
54775         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
54776         New function.  It no longer assumes "dev=" has the System V meaning
54777         on Linux (since it doesn't).  It also parses "dev=" more carefully.
54778         (read_file_system_list)
54779         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
54780         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
54781         dev= in that case.
54782
54783         * lib/posixtm.h (PDS_PRE_2000): New macro.
54784         * lib/posixtm.c (year): Arg is now syntax_bits rather than
54785         allow_century.  All usages changed.  Reject dates outside the range
54786         1969-1999 if PDS_PRE_2000 is used.
54787
54788 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54789
54790         Sync from coreutils.
54791         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
54792         (Time of day items): Mention the possibility of leap seconds.
54793         Problem reported by Dr. David Alan Gilbert.
54794
54795 2006-01-09  Jim Meyering  <jim@meyering.net>
54796
54797         Sync from coreutils.
54798
54799         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
54800
54801         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
54802
54803         * lib/modechange.c (mode_compile): Reject an invalid mode string
54804         that starts with an octal digit.  From Andreas Gruenbacher.
54805
54806         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
54807         and dup to open_safer and dup_safer, respectively.
54808         (openat_permissive): Fix typo in comment.
54809
54810         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
54811         "gettext.h"; either no longer needed or are guaranteed by openat.h.
54812         (_): Remove; no longer needed.
54813         (openat): Renamed from rpl_openat; no need for rpl_openat
54814         since openat.h renames openat for us.
54815         Replace most of the body with a call to openat_permissive,
54816         to avoid duplicate code.
54817         Port to (probably hypothetical) environments were mode_t is
54818         wider than int.
54819         (openat_permissive): Require mode arg, so that we can check
54820         types better.  Put it just after flags.  Change cwd failure
54821         indicator from pointer-to-bool to pointer-to-errno-value.
54822         All callers changed.
54823         Invoke openat_save_fail and/or openat_restore_fail if
54824         cwd_errno is null, so that openat can call us.
54825         (openat_permissive, fdopendir, fstatat, unlinkat):
54826         Simplify errno handling to avoid some duplicate code,
54827         as it's OK to set errno on success.
54828         * lib/openat.h: Revamp code so that function macros depend on
54829         __OPENAT_PREFIX only, not also on AT_FDCWD.
54830         (openat_ro): Remove.  Caller changed to use openat_permissive.
54831         (openat_permissive): Now a macro, if not a function.
54832         (openat_restore_fail, openat_save_fail): Now always functions,
54833         since mkdirat needs them even if __OPENAT_PREFIX is defined.
54834
54835         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
54836         and openat.c.
54837         * lib/mkdirat.c: Include openat-priv.h.
54838         Remove definitions of macros defined therein.
54839         * lib/openat.c: Likewise.
54840
54841         * lib/mkdirat.c (mkdirat): New file and function.
54842         * lib/openat.h (mkdirat): Declare.
54843
54844         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
54845
54846         * lib/openat.h (openat_permissive): Declare.
54847         (openat_ro): Define.
54848
54849         * lib/openat.c (EXPECTED_ERRNO): New macro.
54850         (openat_permissive): New function -- used in remove.c rewrite.
54851         (all functions): Set errno just before returning, only if there
54852         was an actual failure.
54853         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
54854
54855         Emulate openat-family functions using Linux's procfs, if possible.
54856         Idea and some code based on Ulrich Drepper's glibc changes.
54857
54858         * lib/openat.c: (BUILD_PROC_NAME): New macro.
54859         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
54860         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
54861         before falling back on save_cwd and restore_cwd.
54862         (fdopendir, fstatat, unlinkat): Likewise.
54863
54864         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
54865         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
54866
54867         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
54868         as second argument to va_arg.  Otherwise, some versions of gcc
54869         warn that `if this code is reached, the program will abort'.
54870
54871 2006-01-09  Jim Meyering  <jim@meyering.net>
54872
54873         Sync from coreutils.
54874         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
54875         Require openat-priv.h.
54876
54877 2006-01-09  Bruno Haible  <bruno@clisp.org>
54878
54879         * modules/strnlen (Include): Use strnlen.h.
54880
54881 2006-01-09  Bruno Haible  <bruno@clisp.org>
54882
54883         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
54884
54885 2006-01-09  Bruno Haible  <bruno@clisp.org>
54886
54887         * lib/sysexit_.h (EX_OK): New macro.
54888         Suggested by Martin Lambers <marlam@marlam.de>.
54889
54890 2006-01-09  Bruno Haible  <bruno@clisp.org>
54891
54892         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
54893         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
54894
54895 2006-01-09  Bruno Haible  <bruno@clisp.org>
54896
54897         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
54898         numbers.
54899
54900 2006-01-09  Bruno Haible  <bruno@clisp.org>
54901
54902         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
54903         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
54904         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
54905         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
54906
54907 2006-01-09  Bruno Haible  <bruno@clisp.org>
54908
54909         * build-aux/javacomp.sh.in: New file, moved from lib/.
54910         * modules/javacomp-script (Files): Update.
54911         (configure.ac): Add AC_CONFIG_FILES invocation.
54912         (EXTRA_DIST): Remove variable.
54913
54914         * build-aux/javaexec.sh.in: New file, moved from lib/.
54915         * modules/javaexec (Files): Update.
54916         (configure.ac): Add AC_CONFIG_FILES invocation.
54917         (EXTRA_DIST): Remove javaexec.sh.in.
54918
54919         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
54920         * modules/csharpcomp-script (Files): Update.
54921         (configure.ac): Add AC_CONFIG_FILES invocation.
54922         (EXTRA_DIST): Remove variable.
54923
54924         * build-aux/csharpexec.sh.in: New file, moved from lib/.
54925         * modules/csharpexec (Files): Update.
54926         (configure.ac): Add AC_CONFIG_FILES invocation.
54927         (EXTRA_DIST): Remove csharpexec.sh.in.
54928
54929 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
54930
54931         Sync from coreutils.
54932
54933         Add POSIX ACL support
54934         * lib/acl.h (copy_acl, set_acl): Add declarations.
54935         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
54936         systems other than Linux.
54937         (chmod_or_fchmod): New function: use fchmod when possible,
54938         and chmod otherwise.
54939         (file_has_acl): Add a POSIX ACL implementation, with a
54940         Linux-specific subcase.
54941         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
54942         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
54943         acls are unsupported.
54944         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
54945         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
54946         are unsupported.
54947
54948 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
54949
54950         Sync from coreutils.
54951         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
54952
54953 2006-01-07  Bruno Haible  <bruno@clisp.org>
54954
54955         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
54956         gl_EARLY.
54957
54958 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54959
54960         * lib/strftime.c (tzname): Don't declare if it is already #defined.
54961         Problem reported for Mingw by Mark Junker.
54962
54963 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54964
54965         * README: Gnulib normally doesn't generate a tarball.
54966
54967 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
54968
54969         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
54970         long int, not int, for nanosecond counts, so that people who are
54971         used to POSIX struct timespec won't be surprised.  Reported by Jim
54972         Meyering.
54973
54974 2005-12-28  Bruno Haible  <bruno@clisp.org>
54975
54976         * build-aux/config.rpath: Update from GNU gettext.
54977
54978 2005-12-16  Jim Meyering  <jim@meyering.net>
54979
54980         * modules/fprintftime: New module.
54981         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
54982
54983 2005-12-16  Jim Meyering  <jim@meyering.net>
54984
54985         * m4/fprintftime.m4: New file.
54986
54987 2005-12-16  Jim Meyering  <jim@meyering.net>
54988
54989         * lib/fprintftime.c, lib/fprintftime.h: New files.
54990
54991 2005-12-15  Simon Josefsson  <jas@extundo.com>
54992
54993         * modules/socklen (configure.ac): Fix M4 macro name, to align with
54994         new m4/socklen.m4.
54995
54996 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54997
54998         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
54999         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
55000
55001 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55002
55003         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
55004         * lib/argp-help.c (fill_in_uparams): Check if the constructed
55005         struct uparams is valid. Fall back to the default values if it is
55006         not.
55007
55008 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55009
55010         * modules/argp (Files): Add argp-pin.c
55011         (Depends-on): dirname
55012         (lib_SOURCES): Add argp-pin.c
55013
55014 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55015
55016         * m4/argp.m4:  Check if program_invocation_name and
55017         program_invocation_short_name are declared and define appropriate
55018         macros if they are not.
55019
55020 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55021
55022         * lib/argp-help.c (__argp_base_name): New function
55023         (__argp_short_program_name): Rewrite using __argp_base_name
55024         * lib/argp-namefrob.h: Define program_invocation_name and
55025         program_invocation_short_name if requested
55026         (__argp_base_name): Add prototype
55027         * lib/argp-parse.c (argp_def): Use gettext wrappers
55028         (argp_default_parser): Use __argp_base_name
55029         * lib/argp-pin.c: New file. Defines program_invocation_name and
55030         program_invocation_short_name on systems that lack them.
55031
55032 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55033
55034         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
55035         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55036         porting problem reported by Georg Schwarz in
55037         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55038
55039 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55040
55041         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
55042         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55043         porting problem reported by Georg Schwarz in
55044         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55045
55046 2005-12-05  Bruno Haible  <bruno@clisp.org>
55047
55048         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
55049         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
55050         Reported by Mark Junker <mjscod@gmx.de>.
55051
55052 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
55053
55054         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
55055         Use implementation from Albert Chin, with some
55056         comments/corrections by Stepan Kasal and myself.
55057
55058 2005-12-02  Bruno Haible  <bruno@clisp.org>
55059
55060         * gnulib-tool (func_import): Accept GPLed build tool modules when
55061         --lgpl is given.
55062         * modules/csharpcomp-script: New file.
55063         * modules/csharpcomp: Depend on it.
55064         * modules/javacomp-script: New file.
55065         * modules/javacomp: Depend on it.
55066         Suggested by Simon Josefsson.
55067
55068 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
55069
55070         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
55071         statement, to work around an HP-UX 10.20 compiler bug reported by
55072         Peter O'Gorman.
55073
55074 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55075
55076         * modules/savedir (Depends-on): Add openat.
55077
55078 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55079
55080         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
55081         (uintmax_t) [defined uintmax_t]: Do not declare.
55082         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
55083         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
55084         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
55085         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
55086         sake of portability to weird hosts that C allows (though we don't
55087         know of any practical examples).
55088
55089         * lib/savedir.h (fdsavedir): New decl.
55090         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
55091         contains most of the former guts of savedir.
55092         (savedir): Use savedirstream.
55093         Include "openat.h".
55094
55095 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
55096
55097         * modules/obstack (Files): Add m4/ulonglong.m4.
55098         Problem reported by Davide Angelocola.
55099
55100 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55101
55102         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
55103         coreutils no longer futzes with rounding modes.
55104
55105 2005-11-14  Jim Meyering  <jim@meyering.net>
55106
55107         * lib/mkstemp-safer.c: Include <config.h>, required for possible
55108         replacement of mkstemp.
55109
55110 2005-11-10  Simon Josefsson  <jas@extundo.com>
55111
55112         * lib/readline.c: Remove EOL.
55113
55114 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55115
55116         * modules/gethrxtime (Depends-on): Add gettime.
55117
55118 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55119
55120         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
55121         or gettimeofday; no longer needed.
55122
55123 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55124
55125         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
55126         time business.
55127         (gethrxtime) [! (HAVE_NANOUPTIME
55128         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
55129         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
55130         our own approximation.
55131
55132 2005-11-08  Eric Blake  <ebb9@byu.net>
55133
55134         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55135
55136 2005-11-08  Eric Blake  <ebb9@byu.net>
55137
55138         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55139
55140 2005-11-04  Bruno Haible  <bruno@clisp.org>
55141
55142         * gnulib-tool: Implement --update mode.
55143
55144 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55145
55146         Fix porting problem reported by Theodoros V. Kalamatianos.
55147         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
55148         Don't assume that futimes failing means we must fail.
55149
55150 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55151
55152         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
55153         variables to suggest the intended function of the PATH_MAX check.
55154
55155 2005-10-30  Kean Johnston  <jkj@sco.com>
55156
55157         Trivial changes to support SCO systems.
55158         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
55159         as PATH_MAX.
55160         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
55161         where __ptr is null when no I/O is pending.
55162
55163 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55164
55165         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
55166         leave errno alone.  Problem reported by Dmitry V. Levin.
55167
55168 2005-10-28  Simon Josefsson  <jas@extundo.com>
55169
55170         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
55171         Test more.
55172
55173         * tests/test-gc-md2.c, tests/test-md2.c: New files.
55174
55175         * modules/md2, modules/md2-tests: New files.
55176
55177 2005-10-28  Simon Josefsson  <jas@extundo.com>
55178
55179         * m4/inet_ntop.m4: More tests.
55180
55181         * m4/gc-md2.m4, md2.m4: New file.
55182
55183 2005-10-28  Simon Josefsson  <jas@extundo.com>
55184
55185         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
55186         "restrict" keywords, as per POSIX.  Protect the function
55187         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
55188         Don't use K&R prototypes.  Check the sprintf return values.
55189         Re-define EAFNOSUPPORT if not present.  Indent.
55190
55191         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
55192         suggested by Bruno Haible <bruno@clisp.org>.
55193
55194         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
55195
55196         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
55197
55198         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
55199         libgcrypt).
55200
55201         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
55202
55203         * lib/md2.h, lib/md2.c: New files.
55204
55205 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
55206
55207         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
55208         errno alone.  Problem reported by Frederic Jolliton.
55209
55210 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55211
55212         * modules/verify (License): Change from GPL to LGPL.  This is a
55213         tiny module and there are apparently near-equivalents that are
55214         under the BSD license.
55215
55216 2005-10-24  Simon Josefsson  <jas@extundo.com>
55217
55218         * modules/sha1: Relicense to LGPL.
55219
55220 2005-10-24  Simon Josefsson  <jas@extundo.com>
55221
55222         * lib/md4.h: Shrink buffer size, now that we changed the type.
55223
55224 2005-10-23  Simon Josefsson  <jas@extundo.com>
55225
55226         * gnulib-tool (func_import): Fix --tests-base.
55227
55228 2005-10-22  Simon Josefsson  <jas@extundo.com>
55229
55230         * modules/arcfour (Depends-on): Need stdint.
55231
55232 2005-10-22  Simon Josefsson  <jas@extundo.com>
55233
55234         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
55235         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
55236
55237 2005-10-22  Simon Josefsson  <jas@extundo.com>
55238
55239         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
55240         suggested by Bruno Haible <bruno@clisp.org>.
55241
55242 2005-10-22  Simon Josefsson  <jas@extundo.com>
55243
55244         * lib/crc.h: Include stddef.h, for size_t.
55245
55246 2005-10-22  Simon Josefsson  <jas@extundo.com>
55247
55248         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
55249         arcfour_context struct (simplify test vector testing in GNU
55250         Shishi).
55251
55252 2005-10-21  Simon Josefsson  <jas@extundo.com>
55253
55254         * modules/des, modules/des-tests: New files.
55255
55256         * modules/gc-des, modules/gc-des-tests: New files.
55257
55258         * tests/test-des.c, tests/test-gc-des.c: New file.
55259
55260 2005-10-21  Simon Josefsson  <jas@extundo.com>
55261
55262         * modules/arctwo, modules/arctwo-tests: New files.
55263
55264         * tests/test-arctwo.c: New file.
55265
55266         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
55267
55268         * tests/test-gc-arctwo.c: New file.
55269
55270 2005-10-21  Simon Josefsson  <jas@extundo.com>
55271
55272         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
55273         Bruno Haible <bruno@clisp.org>.
55274
55275         * m4/gc-des.m4: New file.
55276
55277 2005-10-21  Simon Josefsson  <jas@extundo.com>
55278
55279         * m4/arctwo.m4: New file.
55280
55281         * m4/gc-arctwo.m4: New file.
55282
55283 2005-10-21  Simon Josefsson  <jas@extundo.com>
55284
55285         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
55286         block.
55287
55288 2005-10-21  Simon Josefsson  <jas@extundo.com>
55289
55290         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
55291         <bruno@clisp.org>.
55292
55293         * lib/hmac-sha1.c (hmac_sha1): Likewise.
55294
55295         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
55296         Bruno Haible <bruno@clisp.org>.
55297
55298         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
55299         <bruno@clisp.org>.
55300
55301 2005-10-21  Simon Josefsson  <jas@extundo.com>
55302
55303         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
55304
55305 2005-10-21  Simon Josefsson  <jas@extundo.com>
55306
55307         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
55308
55309 2005-10-21  Simon Josefsson  <jas@extundo.com>
55310
55311         * lib/des.h, lib/des.c: New files.
55312
55313         * lib/gc-gnulib.c: Support DES.c
55314
55315 2005-10-21  Simon Josefsson  <jas@extundo.com>
55316
55317         * lib/arctwo.h, lib/arctwo.c: New files.
55318
55319         * lib/gc-gnulib.c: Support ARCTWO.
55320
55321 2005-10-21  Simon Josefsson  <jas@extundo.com>
55322
55323         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
55324         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55325
55326 2005-10-21  Simon Josefsson  <jas@extundo.com>
55327
55328         * gnulib-tool (func_import, func_create_testdir): Define automake
55329         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
55330         Makefile.am snippet),
55331         suggested by Bruno Haible <bruno@clisp.org>.
55332
55333         * modules/gc (Makefile.am): Use it.
55334
55335 2005-10-21  Bruno Haible  <bruno@clisp.org>
55336
55337         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
55338         patch.
55339
55340 2005-10-19  Simon Josefsson  <jas@extundo.com>
55341
55342         * tests/test-gc-rijndael.c: New file.
55343
55344         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
55345
55346 2005-10-19  Simon Josefsson  <jas@extundo.com>
55347
55348         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
55349         interface too.
55350
55351 2005-10-19  Simon Josefsson  <jas@extundo.com>
55352
55353         * tests/test-gc-arcfour.c: New file.
55354
55355         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
55356
55357 2005-10-19  Simon Josefsson  <jas@extundo.com>
55358
55359         * modules/gc-md4, modules/gc-md4-tests: New file.
55360
55361         * tests/test-gc-md4.c: New file.
55362
55363 2005-10-19  Simon Josefsson  <jas@extundo.com>
55364
55365         * m4/gc-md4.m4: New file.
55366
55367 2005-10-19  Simon Josefsson  <jas@extundo.com>
55368
55369         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
55370         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
55371         <kasal@ucw.cz>.
55372
55373 2005-10-19  Simon Josefsson  <jas@extundo.com>
55374
55375         * m4/gc-arcfour.m4: New file.
55376
55377         * m4/gc-rijndael.m4: New file.
55378
55379 2005-10-19  Simon Josefsson  <jas@extundo.com>
55380
55381         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
55382
55383 2005-10-19  Simon Josefsson  <jas@extundo.com>
55384
55385         * lib/gc-gnulib.c: Support ARCFOUR.
55386
55387 2005-10-19  Simon Josefsson  <jas@extundo.com>
55388
55389         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
55390         support.
55391
55392         * lib/gc.h: Add ECB enum type.
55393
55394         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
55395
55396 2005-10-18  Simon Josefsson  <jas@extundo.com>
55397
55398         * tests/test-md5.c: New file.
55399
55400         * modules/md5-tests: New file.
55401
55402 2005-10-18  Simon Josefsson  <jas@extundo.com>
55403
55404         * tests/test-md4.c: New file.
55405
55406         * modules/md4, modules/md4-tests: New files.
55407
55408 2005-10-18  Simon Josefsson  <jas@extundo.com>
55409
55410         * m4/md4.m4: New file.
55411
55412 2005-10-18  Simon Josefsson  <jas@extundo.com>
55413
55414         * lib/md4.h, lib/md4.c: New files, based on md5.?.
55415
55416 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
55417
55418         * gnulib-tool (func_create_testdir): Omit the second check whether
55419         BUILT_SOURCES in nonempty.
55420
55421 2005-10-17  Simon Josefsson  <jas@extundo.com>
55422
55423         * tests/test-rijndael.c: New file.
55424
55425 2005-10-17  Simon Josefsson  <jas@extundo.com>
55426
55427         * modules/sha1: Depend on stdint instead of md5.
55428
55429         * modules/md5: Depend on stdint, remove uint32_t.
55430
55431 2005-10-17  Simon Josefsson  <jas@extundo.com>
55432
55433         * modules/gc-sha1-tests: New file.
55434
55435         * tests/test-gc-sha1.c: New file.
55436
55437 2005-10-17  Simon Josefsson  <jas@extundo.com>
55438
55439         * m4/md5.m4: Remove call to uint32_t.m4.
55440
55441 2005-10-17  Simon Josefsson  <jas@extundo.com>
55442
55443         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
55444
55445         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
55446         md5.h.
55447
55448         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
55449
55450         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
55451
55452 2005-10-17  Simon Josefsson  <jas@extundo.com>
55453
55454         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
55455
55456 2005-10-17  Simon Josefsson  <jas@extundo.com>
55457
55458         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
55459
55460 2005-10-17  Simon Josefsson  <jas@extundo.com>
55461
55462         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
55463
55464         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
55465
55466 2005-10-17  Bruno Haible  <bruno@clisp.org>
55467
55468         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
55469         that it can also be used in a test.
55470
55471 2005-10-16  Bruno Haible  <bruno@clisp.org>
55472
55473         * gnulib-tool (func_emit_tests_Makefile_am): Also define
55474         TESTS_ENVIRONMENT, so that individual tests can augment it.
55475
55476         * gnulib-tool (func_create_testdir): Use an intermediate target for
55477         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
55478         macros, like $(ALLOCA_H), which cannot be passed through the command
55479         line.
55480
55481 2005-10-15  Simon Josefsson  <jas@extundo.com>
55482
55483         * modules/rijndael-tests: New file.
55484
55485         * modules/rijndael: New file.
55486
55487 2005-10-15  Simon Josefsson  <jas@extundo.com>
55488
55489         * m4/rijndael.m4: New file.
55490
55491 2005-10-15  Simon Josefsson  <jas@extundo.com>
55492
55493         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
55494
55495         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
55496
55497 2005-10-14  Simon Josefsson  <jas@extundo.com>
55498
55499         * tests/test-arcfour.c: New file.
55500
55501         * modules/arcfour, modules/arcfour-tests: New files.
55502
55503 2005-10-14  Simon Josefsson  <jas@extundo.com>
55504
55505         * m4/arcfour.m4: New file.
55506
55507 2005-10-14  Simon Josefsson  <jas@extundo.com>
55508
55509         * lib/arcfour.h, lib/arcfour.c: New files.
55510
55511 2005-10-14  Roland McGrath  <roland@redhat.com>
55512
55513         Import from libc.  [BZ #1331]
55514         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
55515         macro argument.
55516         Reported by Matej Vela <vela@debian.org>.
55517
55518 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55519
55520         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
55521         include <wchar.h>; no longer needed.
55522
55523 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55524
55525         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
55526
55527 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
55528         and  Ulrich Drepper  <drepper@redhat.com>
55529
55530         Import from libc.
55531         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
55532         instead of inline stream orientation test and two separate
55533         function calls.  Pay no attention to USE_IN_LIBIO.
55534
55535 2005-10-13  Simon Josefsson  <jas@extundo.com>
55536
55537         * modules/gc-hmac-md5-tests: New file.
55538
55539         * tests/test-gc-hmac-sha1.c: New file.
55540
55541         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
55542
55543         * modules/gc-hmac-md5-tests: New file.
55544
55545         * tests/test-gc-md5.c: New file.
55546
55547         * modules/gc-md5-tests: New file.
55548
55549 2005-10-13  Simon Josefsson  <jas@extundo.com>
55550
55551         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
55552         Move memory allocation outside of loop.
55553
55554 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
55555
55556         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
55557         intermediate directory is in a read-only file system.  Problem
55558         reported by Eric Blake.
55559
55560 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
55561
55562         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
55563
55564 2005-10-12  Simon Josefsson  <jas@extundo.com>
55565
55566         * tests/test-hmac-sha1.c: New file.
55567
55568         * modules/hmac-sha1-tests: New file.
55569
55570         * modules/hmac-sha1: New file.
55571
55572 2005-10-12  Simon Josefsson  <jas@extundo.com>
55573
55574         * modules/gc-sha1: New file.
55575
55576 2005-10-12  Simon Josefsson  <jas@extundo.com>
55577
55578         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
55579
55580         * tests/test-gc-pbkdf2-sha1.c: New file.
55581
55582 2005-10-12  Simon Josefsson  <jas@extundo.com>
55583
55584         * modules/gc-md5, modules/gc-hmac-md5: New files.
55585
55586         * modules/gc (Files): Remove md5, memxor and hmac files.
55587
55588 2005-10-12  Simon Josefsson  <jas@extundo.com>
55589
55590         * m4/gc-pbkdf2-sha1.m4: New file.
55591
55592         * m4/gc-hmac-sha1.m4: New file.
55593
55594         * m4/gc-sha1: New file.
55595
55596         * m4/hmac-sha1.m4: New file.
55597
55598 2005-10-12  Simon Josefsson  <jas@extundo.com>
55599
55600         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
55601
55602         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
55603
55604 2005-10-12  Simon Josefsson  <jas@extundo.com>
55605
55606         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
55607         suggested by Bruno Haible <bruno@clisp.org>.
55608
55609 2005-10-12  Simon Josefsson  <jas@extundo.com>
55610
55611         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
55612
55613 2005-10-12  Simon Josefsson  <jas@extundo.com>
55614
55615         * lib/gc-pbkdf2-sha1.c: New file.
55616
55617         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
55618
55619 2005-10-12  Simon Josefsson  <jas@extundo.com>
55620
55621         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
55622
55623         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
55624
55625 2005-10-12  Simon Josefsson  <jas@extundo.com>
55626
55627         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
55628         GC_USE_HMAC_MD5, respectively.
55629
55630         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
55631         (gc_md5): Fix typo.
55632
55633         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
55634
55635         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
55636
55637         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
55638
55639 2005-10-12  Bruno Haible  <bruno@clisp.org>
55640
55641         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
55642         Reported by Stepan Kasal <kasal@ucw.cz>.
55643
55644 2005-10-11  Simon Josefsson  <jas@extundo.com>
55645
55646         * tests/test-crc.c: New file.
55647
55648         * modules/crc, modules/crc-tests: New files.
55649
55650 2005-10-11  Simon Josefsson  <jas@extundo.com>
55651
55652         * m4/crc.m4: New file.
55653
55654 2005-10-11  Simon Josefsson  <jas@extundo.com>
55655
55656         * lib/gc.h: Add gc_hash and gc_hash_buffer.
55657
55658         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
55659
55660         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
55661
55662 2005-10-11  Simon Josefsson  <jas@extundo.com>
55663
55664         * lib/crc.h, lib/crc.c: New files.
55665
55666         * lib/gc.h (gc_hash_buffer): Add doc.
55667
55668 2005-10-11  Bruno Haible  <bruno@clisp.org>
55669
55670         * modules/c-strcasestr: New file.
55671         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
55672
55673 2005-10-11  Bruno Haible  <bruno@clisp.org>
55674
55675         * modules/c-strcase: New file.
55676         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
55677
55678 2005-10-11  Bruno Haible  <bruno@clisp.org>
55679
55680         * lib/strcasecmp.c: Include limits.h.
55681         (strcasecmp): Avoid integer overflow on exotic platforms.
55682         * lib/strncasecmp.c: Include limits.h.
55683         (strncasecmp): Avoid integer overflow on exotic platforms.
55684         Reported by Paul Eggert.
55685
55686 2005-10-11  Bruno Haible  <bruno@clisp.org>
55687
55688         * lib/c-strcasestr.h: New file, from GNU gettext.
55689         * lib/c-strcasestr.c: New file, from GNU gettext.
55690
55691 2005-10-11  Bruno Haible  <bruno@clisp.org>
55692
55693         * lib/c-strcase.h: New file, from GNU gettext.
55694         * lib/c-strcasecmp.c: New file, from GNU gettext.
55695         * lib/c-strncasecmp.c: New file, from GNU gettext.
55696
55697 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55698
55699         * modules/mempcpy (License): GPL -> LGPL.
55700         * modules/strchrnul (License): Likewise.
55701         * modules/sysexits (License): Likewise.
55702
55703 2005-10-08  Simon Josefsson  <jas@extundo.com>
55704
55705         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
55706
55707 2005-10-07  Simon Josefsson  <jas@extundo.com>
55708
55709         * m4/memxor.m4: Remove gl_C_RESTRICT call.
55710
55711 2005-10-06  Simon Josefsson  <jas@extundo.com>
55712
55713         * tests/test-hmac-md5.c: New file.
55714
55715         * modules/hmac-md5-tests: New file.
55716
55717         * modules/hmac-md5: New file.
55718
55719 2005-10-06  Simon Josefsson  <jas@extundo.com>
55720
55721         * m4/hmac-md5.m4: New file.
55722
55723         * m4/memxor.m4: Require gl_C_RESTRICT.
55724
55725 2005-10-06  Simon Josefsson  <jas@extundo.com>
55726
55727         * lib/memxor.c (memxor): Avoid casts and warnings.
55728
55729 2005-10-06  Simon Josefsson  <jas@extundo.com>
55730
55731         * lib/hmac-md5.c: New file.
55732
55733         * lib/hmac.h: New file.
55734
55735 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55736
55737         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
55738         promotes to int, not unsigned int, to catch the AIX 5.3
55739         compiler bug.
55740
55741 2005-10-05  Simon Josefsson  <jas@extundo.com>
55742
55743         * modules/memxor: New file.
55744
55745         * modules/iconv (Files): Move config.rpath to havelib, it is used
55746         there.
55747
55748         * modules/havelib (Files): Add config.rpath.
55749
55750 2005-10-05  Simon Josefsson  <jas@extundo.com>
55751
55752         * m4/memxor.m4: New file.
55753
55754 2005-10-05  Simon Josefsson  <jas@extundo.com>
55755
55756         * lib/memxor.c (memxor): Fix compiler error.
55757
55758         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
55759         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
55760
55761         * lib/memxor.h, lib/memxor.c: New files.
55762
55763         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
55764         we assume all systems have it, suggested by Jim Meyering
55765         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
55766         any systems lack sys/socket.h; mingw32 is known to lack it, but we
55767         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
55768         same reasons.
55769
55770 2005-10-05  Simon Josefsson  <jas@extundo.com>
55771
55772         * config/srclist.txt: Add glibc bug 1423 for md5.h.
55773
55774 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55775
55776         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
55777         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
55778         needed, since the source code now assumes these .h files.
55779
55780 2005-10-05  Derek Price  <derek@ximbiot.com>
55781
55782         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
55783
55784 2005-10-05  Bruno Haible  <bruno@clisp.org>
55785
55786         * modules/stdint (License): Change to LGPL.
55787
55788 2005-10-04  Simon Josefsson  <jas@extundo.com>
55789
55790         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
55791         D. Baushke" <mdb@gnu.org>.
55792
55793 2005-10-04  Bruno Haible  <bruno@clisp.org>
55794
55795         * lib/verify.h (verify_true): Provide alternative definition for C++.
55796
55797 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
55798
55799         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
55800         (SSIZE_MAX): New macro, if not already defined.
55801         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
55802         than 2 GiB.
55803
55804 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55805
55806         Sync from coreutils.
55807         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
55808         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
55809         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
55810         ULLONG_MAX doesn't work with 2.7.2.1.
55811
55812 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55813
55814         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
55815         From Ben Pfaff.
55816
55817         * modules/exclude (Depends-on): Depend on verify.
55818         * modules/strtoimax (Depends-on): Likewise.
55819         * modules/utimecmp (Depends-on): Likewise.
55820
55821 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55822
55823         * lib/exclude.c: Include verify.h.
55824         (verify): Remove.  All callers changed to use verify.h's version.
55825         * lib/strtoimax.c: Likewise.
55826         * lib/utimecmp.c: Likewis.e
55827
55828         Sync from coreutils.
55829         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
55830         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
55831         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
55832         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
55833         bother returning ENOSYS if settimeofday or stime fails; just let
55834         them return whatever errno they want to return.
55835         * lib/utimens.c: Include unistd.h, for dup2.
55836         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
55837         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
55838
55839 2005-10-02  Jim Meyering  <jim@meyering.net>
55840
55841         Sync from coreutils.
55842         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
55843         from glibc-2.2.5 that fails for read-only files.
55844
55845 2005-10-02  Jim Meyering  <jim@meyering.net>
55846
55847         Sync from coreutils.
55848         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
55849         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
55850         `#if HAVE_CONFIG_H'.
55851         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
55852         Remove AT_FDCWD test.
55853         Do not consume the fd unless successful.
55854         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
55855         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
55856         block, so that we don't even try to compile it if settimeofday is
55857         available.  This works around a compilation failure on OSF1 V5.1,
55858         due to stime requiring a `long int*' while tv_sec is `int'.
55859
55860 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
55861
55862         Sync from coreutils.
55863         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
55864         against `yes', rather than just testing for nonempty.
55865
55866 2005-10-01  Simon Josefsson  <jas@extundo.com>
55867
55868         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
55869         and Darwin.
55870
55871         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
55872         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
55873         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
55874         freeaddrinfo and gai_strerror are declared by the POSIX headers.
55875         Check if struct addrinfo is declared.
55876
55877 2005-10-01  Simon Josefsson  <jas@extundo.com>
55878
55879         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
55880         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
55881         AI_* and EAI_* definitions.  Protect function declarations.
55882
55883 2005-10-01  Jim Meyering  <jim@meyering.net>
55884
55885         Sync from coreutils.
55886
55887         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
55888         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
55889         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
55890         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
55891         in the inet and nsl libraries.  Required on Solaris 5.7.
55892
55893 2005-10-01  Jim Meyering  <jim@meyering.net>
55894
55895         Sync from coreutils.
55896         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
55897         in the inet and nsl libraries.  Required on Solaris 5.7.
55898
55899 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
55900
55901         * lib/getdelim.c (getdelim): Remove unused variables.
55902
55903 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
55904
55905         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
55906         so that the code works even with ancient cpp.  Portability problem
55907         with GCC 2.7.2.1 reported by Thomas M.Ott.
55908
55909 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
55910
55911         * modules/regex (Depends-on): Add strcase.
55912
55913         * modules/gethostname (Licence): Change from GPL to LGPL, since
55914         gethostname.c is a trivial implementation of a standard library
55915         function.
55916         * modules/poll (License): Change from GPL to LGPL, since it's
55917         derived from LGPL code.
55918
55919 2005-09-27  Jim Meyering  <jim@meyering.net>
55920
55921         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
55922         HAVE_CONFIG_H.
55923
55924         * lib/intprops.h (signed_type_or_expr__): Define.
55925         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
55926         for unsigned types.
55927
55928 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
55929
55930         * lib/verify.h (verify_expr): Remove, replacing with:
55931         (verify_true): New macro that returns true instead of void.
55932         (verify_type__): Remove.
55933         (verify): Use verify_true rather than verify_type__.
55934
55935 2005-09-26  Bruno Haible  <bruno@clisp.org>
55936
55937         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
55938         is necessary.
55939         (lib_SOURCES): Remove mbchar.c.
55940         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
55941         (Files): Add m4/mbrtowc.m4.
55942         * modules/mbiter: Likewise.
55943         * modules/mbuiter: Likewise.
55944
55945 2005-09-26  Bruno Haible  <bruno@clisp.org>
55946
55947         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
55948         compile mbchar.c if they are not both present.
55949         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
55950         * m4/mbiter.m4 (gl_MBITER): Likewise.
55951         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
55952         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
55953         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
55954
55955 2005-09-25  Jim Meyering  <jim@meyering.net>
55956
55957         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
55958         also uses socklen_t.
55959
55960 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
55961
55962         * lib/utimens.c (ENOSYS): Define if not already defined.
55963         (futimens): Support having a null PATH if the file descriptor
55964         is nonnegative.
55965
55966         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
55967         Remove.
55968         (__attribute): Define to empty unless GCC 3.1 or later.
55969         This works around a core dump on OpenBSD 3.4, which has GCC
55970         2.95.3, which dumps core when given __attribute__(()).  It also
55971         simplifies other tests, since we really don't want to bother with
55972         worrying about which ancient version of GCC supported what.
55973         Original problem reported by Yoann Vandoorselaere, with part of
55974         the fix suggested by Derek Price.
55975
55976 2005-09-24  Jim Meyering  <jim@meyering.net>
55977
55978         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
55979         so we can once again use a positive bitfield width of 1 -- now we
55980         don't have to explain why we were using a bitfield width of 2.
55981
55982 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
55983
55984         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
55985         and similarly for the other external symbols.  Problem reported
55986         by James Gallager.
55987
55988         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
55989         bug reported by Jim Meyering.
55990
55991         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
55992         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
55993         not needed, since socklen is a prerequisite module.
55994
55995 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
55996
55997         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
55998         Problem reported by Eric Blake.
55999         (getaddrinfo): Initialize se so that it's not garbage.
56000         Redo internal storage allocation so that it doesn't make unportable
56001         assumptions about alignment.
56002         Fix a memory leak.
56003
56004         * lib/utimens.c (futimens): Use futimesat if available.
56005         Prefer it to futimes since it doesn't have the futimes bug.
56006
56007         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
56008         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
56009         Instead, declare a function that returns a pointer to an array,
56010         and use verify_type__ to declare the size of the array.
56011         Problem and germ of a solution reported by Bruno Haible.
56012         (verify_type__): Use 2, not 1, for bitfield size, to avoid
56013         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
56014
56015 2005-09-23  Jim Meyering  <jim@meyering.net>
56016
56017         Sync from coreutils.
56018         Correct build failure (socklen_t not defined) on at least
56019         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
56020         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
56021
56022 2005-09-23  Jim Meyering  <jim@meyering.net>
56023
56024         * modules/getaddrinfo (Depends-on): Add socklen.
56025
56026 2005-09-23  Bruno Haible  <bruno@clisp.org>
56027
56028         * tests/test-verify.c: New file.
56029
56030 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56031
56032         Sync from coreutils.
56033
56034         * modules/argmatch (Depends-on): Add verify.
56035         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
56036         unistd-safer.
56037         * modules/save-cwd (Depends-on): Likewise.
56038
56039         * modules/openat (Files): Add lib/openat-die.c.
56040         (Depends-on): Remove error, exitfail.
56041         Add dirname.
56042
56043         * modules/verify: New file.
56044         * MODULES.html.sh (Diagnostics <assert.h>): New section,
56045         with "verify" module.
56046
56047 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56048
56049         Sync from coreutils.
56050
56051         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
56052         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
56053         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
56054         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
56055         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
56056         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
56057         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
56058         Don't bother checking for string.h, stdlib.h, unistd.h.
56059         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
56060         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
56061         module's job.
56062         * m4/jm-macros.m4 (gl_MACROS): Likewise.
56063         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
56064
56065         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
56066         (gl_GETDATE): Use it.
56067
56068         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
56069
56070 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56071
56072         Sync from coreutils.
56073
56074         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
56075         stat-time.h.
56076         * lib/argmatch.h: Include verify.h
56077         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
56078         (ARGMATCH_ASSERT): Remove; unused.
56079         * lib/canonicalize.c: Assume STDC_HEADERS.
56080         * lib/exclude.c: Include "strcase.h".
56081         * lib/regex_internal.h [!defined _LIBC]: Likewise.
56082         * lib/getusershell.c: Include stdio--.h rather than stdio.h
56083         and stdio-safer.h.
56084         (getusershell): Call fopen, not fopen_safer.
56085         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
56086         Do not include unistd-safer.h.
56087         (save_cwd): Don't call fd_safer; no longer needed
56088         now that we include fcntl--.h.
56089
56090         * lib/getdate.y (relative_time): New type.
56091         (RELATIVE_TIME_0): New constant.
56092         (parser_control): Use relative_time instead of doing it ourselves.
56093         (%union): Add new relative_time rel member.
56094         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
56095         Now typeless.
56096         (relunit, relunit_snumber): Now of type rel.
56097         (zone, rel, relunit, get_date): Adjust to above changes.
56098
56099         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
56100         Do not include unistd-safer.h.
56101         (getloadavg): Don't call fd_safer; no longer needed
56102         now that we include fcntl--.h.
56103
56104         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
56105         (make_dir_parents): Treat ENOSYS like EEXIST.
56106
56107         Improve quality of diagnostics on restore_cwd failure.
56108         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
56109         (make_dir_parents): Last arg is now int * (for errno), not bool *.
56110         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
56111         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
56112         each time through the loop.  Do not diagnose restore_cwd failure;
56113         that is the caller's job (and perhaps the caller does not care).
56114
56115         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
56116         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
56117         If the file already exists but is not a directory, don't bother
56118         to try to make its parents.
56119         Close potential file descriptor leak if we can't chdir("/") (!).
56120         Don't always return true if chdir($PWD) fails; return true only
56121         if the requested action was done successfully (except for the
56122         chdir($PWD)).
56123         Don't log final directory unless we actually made it.
56124         Refactor to avoid duplicate code to fix up permissions.
56125         Don't attempt to fix up parent permissions if chdir($PWD) fails.
56126
56127         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
56128         to make it a bit faster and (I hope) clearer.
56129         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
56130         Fix bug in formats like %2N.
56131
56132         * lib/verify.h: New file.
56133
56134 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56135
56136         Sync from coreutils.
56137         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
56138
56139 2005-09-22  Jim Meyering  <jim@meyering.net>
56140
56141         Sync from coreutils.
56142
56143         * m4/lstat.m4 (gl_FUNC_LSTAT):
56144         Use AC_LIBSOURCES to require lstat.c and lstat.h.
56145         Remove obsolete comment.
56146         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
56147         * m4/xstrtod.m4: Likewise.
56148
56149         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
56150
56151 2005-09-22  Jim Meyering  <jim@meyering.net>
56152
56153         Sync from coreutils.
56154
56155         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
56156
56157         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
56158         the .tm_year member, since otherwise gcc-4.0 would now warn about
56159         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
56160
56161         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
56162         order to avoid an unsuppressible warning from gcc on 64-bit systems.
56163
56164         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
56165         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
56166         when run in a time zone for which daylight savings time is in effect
56167         for the starting date.
56168
56169         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
56170         stop us from restricting permissions of just-created absolute-named
56171         directories.
56172         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
56173         to restore initial working directory.
56174         * lib/mkdir-p.c (make_dir_parents): New parameter:
56175         different_working_dir, to tell caller if/when we change the working
56176         directory and are unable to return to the initial one.
56177         * lib/mkdir-p.h (make_dir_parents): Update prototype.
56178         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
56179         `return false'.  This fixes a bug introduced on 2004-07-30.
56180
56181         * lib/openat.c (fdopendir): Be sure to close the supplied
56182         file descriptor before returning.  This makes our replacement
56183         implementation a little closer to Solaris's, where fdopendir
56184         ties the file descriptor to the returned DIR* pointer.
56185         * lib/openat.c (unlinkat): New function.
56186         * lib/openat.h (unlinkat): Add prototype.
56187         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
56188         (openat_restore_fail): Rename from openat_restore_die.
56189         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
56190
56191         Provide an alternative to exiting immediately upon save_cwd or
56192         restore_cwd failure.  Now, an application can arrange e.g.,
56193         to perform a longjump in that case.
56194         * lib/openat.c: Include dirname.h.
56195         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
56196         (rpl_openat, fdopendir, fstatat): Call openat_save_die
56197         and openat_restore_die rather than calling error directly.
56198         Don't include "error.h" or "exitfail.h"; they're no longer needed.
56199
56200         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
56201         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
56202         define.
56203
56204         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
56205         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
56206                             int utc, int nanoseconds);
56207         Background:
56208         date should not have to allocate a megabyte of virtual memory to
56209         handle a format argument like +%1048575T.  When implemented with
56210         strftime, it must allocate such a buffer, use strftime to fill it
56211         in, print it, then free it.
56212         With fprintftime, it simply prints everything and exits.
56213         With no need for memory allocation, that's one fewer way to fail.
56214         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
56215         optional field width, not before, so we accept %9:z, not %:9z.
56216         (my_strftime): Be sure to use L_('x') for literals.
56217
56218         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
56219         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
56220         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
56221         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
56222         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
56223         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
56224         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
56225         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
56226         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
56227         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
56228         * lib/xgethostname.c, lib/xreadlink.c:
56229         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
56230
56231         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
56232         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
56233         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
56234         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56235         and don't include <sys/file.h>).
56236
56237 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
56238
56239         Sync from coreutils.
56240
56241         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
56242         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
56243         [!LDAV_DONE]: Avoid unused variable warning.
56244
56245 2005-09-21  Bruno Haible  <bruno@clisp.org>
56246
56247         * lib/unicodeio.h (unicode_to_mb): New declaration.
56248
56249 2005-09-20  Derek Price  <derek@ximbiot.com>
56250
56251         * lib/getaddrinfo.c: Don't include <netdb.h> included from
56252         getaddrinfo.h.
56253
56254 2005-09-20  Bruno Haible  <bruno@clisp.org>
56255
56256         * gnulib-tool: Remove trailing slashes from the values specified for
56257         --source-base, --m4-base, --tests-base, --aux-dir.
56258         Suggested by Simon Josefsson <jas@extundo.com>.
56259
56260 2005-09-20  Bruno Haible  <bruno@clisp.org>
56261
56262         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
56263         func_modules_to_filelist, func_import, func_create_testdir): Make all
56264         sorting results locale-independent, so that gnulib-cache.m4 doesn't
56265         change when gnulib-tool is invoked in a different locale.
56266
56267 2005-09-19  Simon Josefsson  <jas@extundo.com>
56268
56269         * m4/socklen.m4: Fix typo.
56270
56271 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56272
56273         Use a consistent style for including <config.h>.
56274         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
56275         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
56276         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
56277         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
56278         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
56279         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
56280         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
56281         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
56282         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
56283         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
56284         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
56285         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
56286         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
56287         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
56288         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
56289         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
56290         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
56291         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
56292         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
56293         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
56294         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
56295         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
56296         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
56297         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
56298         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
56299         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
56300         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
56301         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
56302         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
56303         lib/xstrtoumax.c, lib/yesno.c:
56304         Standardize inclusion of config.h.
56305         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
56306         lib/inttostr.h:  Removed inclusion of config.h from header files.
56307         * lib/inttostr.c:  Adjusted in-tree users.
56308         * lib/timespec.h: Remove superfluous warning to include config.h.
56309         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
56310         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
56311         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
56312         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
56313         config.h with HAVE_CONFIG_H.
56314
56315 2005-09-19  Jim Meyering  <jim@meyering.net>
56316
56317         * modules/pathmax (License): Change to LGPL.
56318
56319 2005-09-19  Derek Price  <derek@ximbiot.com>
56320
56321         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
56322
56323 2005-09-19  Bruno Haible  <bruno@clisp.org>
56324
56325         * gnulib-tool (import): Provide default for --tests-base.
56326
56327 2005-09-19  Bruno Haible  <bruno@clisp.org>
56328
56329         * doc/quote.texi: New file, extracted from gnulib.texi.
56330         * doc/ctime.texi: New file, extracted from gnulib.texi.
56331         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
56332         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
56333         * doc/gnulib.texi: Include them.
56334
56335 2005-09-18  Bruno Haible  <bruno@clisp.org>
56336
56337         Portability fix.
56338         * gnulib-tool (func_readlink): New function.
56339         (func_ln_if_changed): Use it.
56340
56341 2005-09-18  Bruno Haible  <bruno@clisp.org>
56342
56343         * gnulib-tool: Support --with-tests also with --import.
56344         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
56345         (func_import): Use variables $testsbase and $inctests. Emit a
56346         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
56347         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
56348         SUBDIRS += $testsdir.
56349         (func_create_testdir): Update.
56350
56351 2005-09-18  Bruno Haible  <bruno@clisp.org>
56352
56353         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
56354         instead of $dry_run.
56355         (func_cp_if_changed, func_mv_if_changed): Remove functions.
56356         (func_ln_if_changed): Don't handle dry-run here.
56357         (func_import): In dry-run mode, detect more precisely which actions
56358         would be performed, and don't use "...ing" verbs.
56359
56360 2005-09-18  Bruno Haible  <bruno@clisp.org>
56361
56362         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
56363         (func_import): Use join on two temporary files instead of three nested
56364         loops, in order to determine which files are new or old.
56365
56366 2005-09-18  Bruno Haible  <bruno@clisp.org>
56367
56368         * gnulib-tool (func_import): Comment out code that spits out the
56369         new files with --dry-run.
56370
56371 2005-09-18  Bruno Haible  <bruno@clisp.org>
56372
56373         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
56374
56375 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56376
56377         * lib/stat-time.h: New file.
56378         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
56379         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
56380         in a different way.
56381         (timespec_cmp): New function.
56382         * lib/utimecmp.c: Include stat-time.h.
56383         (SYSCALL_RESOLUTION): Depend on whether various struct stat
56384         members exist, not on the obsolescent ST_MTIM_NSEC.
56385         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
56386
56387 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56388
56389         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
56390
56391 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56392
56393         * MODULES.html.sh (File system functions): Add stat-time.
56394         * modules/stat-time: New file.
56395         * modules/timespec (Files): Remove m4/st_mtim.m4; this
56396         is now done in a different way, by the stat-time module.
56397         * modules/utimecmp (Depends-on): Add stat-time.
56398
56399 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56400
56401         * m4/st_mtim.m4: Remove.  Superseded by...
56402         * m4/stat-time.m4: New file.
56403         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
56404         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
56405
56406 2005-09-15  Derek Price  <derek@ximbiot.com>
56407
56408         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
56409
56410 2005-09-15  Derek Price  <derek@ximbiot.com>
56411
56412         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
56413         * lib/regex_internal.c: Ditto, using this...
56414         (__GNUC_PREREQ): ...new macro.
56415         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
56416         using...
56417         (__GNUC_PREREQ): ...this new macro.
56418
56419         * lib/strstr.h: Include string.h. Define strstr as a macro here.
56420
56421 2005-09-15  Derek Price  <derek@ximbiot.com>
56422             Paul Eggert  <eggert@cs.ucla.edu>
56423
56424         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
56425         changes, consolidating in...
56426         * lib/regex_internal.h: ...this file.
56427
56428 2005-09-13  Jim Meyering  <jim@meyering.net>
56429
56430         * lib/canon-host.c: Filter through gnu indent and reword comments
56431         slightly.
56432         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
56433
56434 2005-09-13  Derek Price  <derek@ximbiot.com>
56435
56436         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
56437         failure.
56438         Reported by Jim Meyering  <jim@meyering.net>.
56439
56440 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56441
56442         * lib/base64.c: Typo.
56443         (base64_encode): Put b64str in initialized data section.
56444
56445 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
56446
56447         Merge glibc and coreutils changes into gnulib, plus a few
56448         extra fixes.
56449         * lib/md5.c: Use #error rather than a string.
56450         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
56451         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
56452         (__attribute__): Define to empty for non recent-GCC.
56453         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
56454         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
56455         Renamed from their non-__ counterparts, with new macros replacing
56456         them if not _LIBC.  Add __THROW attribute.
56457         (rol): Remove.
56458         (struct md5_ctx): Align buffer if using GCC.
56459         * lib/sha1.h (struct sha1_ctx): Likewise.
56460         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
56461         The old name was backwards.
56462         (NOTSWAP): Remove; not used.
56463         (rol): New macro, moved here from md5.h.
56464         (sha1_process_block): Remove a FIXME that doesn't make sense.
56465
56466 2005-09-12  Derek Price  <derek@ximbiot.com>
56467
56468         Return usable errors from canon-host.
56469         * lib/canon-host.h: New file.
56470         * lib/canon-host.c (canon_host): Wrap...
56471         (canon_host_r): ...this new function, which now relies exclusively on
56472         getaddrinfo.
56473         (ch_strerror): New function.
56474         (last_cherror): New global.
56475         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
56476         interface.
56477         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
56478         void *.
56479         (freeaddrinfo): Free ai->ai_canonname when set.
56480
56481 2005-09-12  Derek Price  <derek@ximbiot.com>
56482
56483         Make canon-host require getaddrinfo.
56484         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
56485         AC_LIBSOURCE canon-host.h.  Call...
56486         (gl_PREREQ_CANON_HOST): ...this new function, which requires
56487         gl_GETADDRINFO.
56488         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
56489
56490 2005-09-12  Derek Price  <derek@ximbiot.com>
56491
56492         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
56493         LGPL.
56494         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
56495
56496 2005-09-12  Derek Price  <derek@ximbiot.com>
56497
56498         * lib/gai_strerror.c: Include config.h when available.  Include
56499         getaddrinfo.h before other headers to test interface.
56500         Reported by Larry Jones <lawrence.jones@ugs.com>.
56501
56502 2005-09-12  Derek Price  <derek@ximbiot.com>
56503             Paul Eggert  <eggert@cs.ucla.edu>
56504
56505         * modules/glob (Files): Add glob-libc.h.
56506
56507 2005-09-12  Derek Price  <derek@ximbiot.com>
56508             Paul Eggert  <eggert@cs.ucla.edu>
56509
56510         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
56511         glob_.h, glob-libc.h.
56512         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
56513
56514 2005-09-12  Derek Price  <derek@ximbiot.com>
56515             Paul Eggert  <eggert@cs.ucla.edu>
56516
56517         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
56518         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
56519         protecting things that should be done only in gnulib contexts.
56520         * lib/glob_.h: New file, containing only the glob things needed for
56521         gnulib.
56522         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
56523         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
56524         (glob, globfree, glob_pattern_p): Now defined simply in terms of
56525         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
56526         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
56527         and to respect the namespace rules better.
56528
56529 2005-09-08  Simon Josefsson  <jas@extundo.com>
56530
56531         * modules/socklen: New file.
56532
56533 2005-09-08  Simon Josefsson  <jas@extundo.com>
56534
56535         * m4/socklen.m4: New file.
56536
56537 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56538
56539         * modules/utimens (Files): Add m4/utimbuf.m4, since
56540         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
56541         Reported by Sergey Poznyakoff.
56542
56543 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56544
56545         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
56546         definitions, since that's the preferred style in glibc.
56547         Fix a minor spacing issue, and update copyright notice to match
56548         glibc's.
56549
56550 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56551
56552         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
56553
56554 2005-09-06  Simon Josefsson  <jas@extundo.com>
56555
56556         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
56557         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
56558
56559 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56560
56561         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
56562         warning.
56563
56564 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56565
56566         * config/srclist.txt: Add glibc bug 1302.
56567
56568 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
56569
56570         Change bitset word type from unsigned int to unsigned long int,
56571         as this has better performance on typical 64-bit hosts.
56572         Port bitset code to hosts with unusual word sizes.
56573         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
56574         (build_collating_symbol):
56575         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
56576         argument is a bitset.  This is merely a style issue, but it makes
56577         it clearer that an entire array is expected.
56578         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
56579         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
56580         Port to the case where bitset_word is not the same as unsigned int.
56581         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56582         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
56583         Likewise.
56584         * lib/regexec.c (check_dst_limits_calc_pos_1,
56585         check_subexp_matching_top):
56586         (build_trtable, group_nodes_into_DFAstates):
56587         Likewise.
56588         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
56589         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
56590         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
56591         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
56592         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
56593         * lib/regcomp.c (optimize_subexps, lower_subexp):
56594         Work even if bitset_word has holes in its bitwise representation.
56595         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
56596         * lib/regexec.c (check_dst_limits_calc_pos_1,
56597         check_subexp_matching_top):
56598         Likewise.
56599         * lib/regex_internal.c (re_string_reconstruct):
56600         Don't assume UCHAR_MAX == 255.
56601         * lib/regex_internal.h (bitset_set_all): Likewise.
56602         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
56603         All uses changed.
56604         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
56605         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
56606         All uses changed.
56607         (BITSET_WORD_MAX): New macro.
56608         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
56609         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
56610         (bitset_empty, bitset_copy):
56611         Prefer sizeof (bitset) to multiplying it out ourselves.
56612         (bitset_not_merge): Remove; unused.
56613         (bitset_contain): Return bool, not unsigned int with one bit on.
56614         All callers changed.
56615         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
56616         alignment than re_node_set; do this by defining a new internal
56617         type struct dests_alloc and using it to allocate memory.
56618
56619 2005-09-05  Bruno Haible  <bruno@clisp.org>
56620
56621         * gnulib-tool (func_import): Fix comparison in handling of symbolic
56622         links.
56623
56624 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
56625
56626         * modules/size_max (Makefile.am): Add size_max.h
56627
56628 2005-09-04  Derek Price  <derek@ximbiot.com>
56629
56630         * gnulib-tool (func_import): Fix reversed $symbolic logic.
56631
56632 2005-09-03  Simon Josefsson  <jas@extundo.com>
56633
56634         * gnulib-tool: Fix typo.
56635
56636 2005-09-03  Simon Josefsson  <jas@extundo.com>
56637
56638         * config/srclist.txt: Add glibc bug 1293.
56639
56640 2005-09-03  Derek Price  <derek@ximbiot.com>
56641
56642         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
56643         From Larry Jones <lawrence.jones@ugs.com>.
56644
56645 2005-09-02  Simon Josefsson  <jas@extundo.com>
56646
56647         * modules/socklen: New file.
56648
56649 2005-09-02  Simon Josefsson  <jas@extundo.com>
56650
56651         * modules/havelib: New module.
56652
56653         * modules/gettext, modules/iconv, modules/lock, modules/readline:
56654         Use havelib.
56655
56656 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56657
56658         Check for arithmetic overflow when calculating sizes, to prevent
56659         some buffer-overflow issues.  These patches are conservative, in the
56660         sense that when I couldn't determine whether an overflow was possible,
56661         I inserted a run-time check.
56662         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
56663         macros.
56664         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
56665         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
56666         (re_xnrealloc, re_x2nrealloc): New inline functions.
56667         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
56668         parse_bracket_exp):
56669         (build_equiv_class, build_charclass): Check for arithmetic overflow
56670         in size expression calculations.
56671         * lib/regex_internal.c (re_string_realloc_buffers):
56672         (build_wcs_upper_buffer, re_node_set_add_intersect):
56673         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
56674         (re_dfa_add_node, register_state): Likewise.
56675         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
56676         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
56677         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
56678         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
56679
56680 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56681
56682         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
56683         m4/ulonglong.m4.  Problem reported by Martin Lambers.
56684
56685 2005-09-02  Bruno Haible  <bruno@clisp.org>
56686
56687         Support for lib vs. lib64 distinction on biarch platforms.
56688         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
56689         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
56690         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
56691
56692 2005-09-02  Bruno Haible  <bruno@clisp.org>
56693
56694         * gnulib-tool (import): In the other first-use case, provide defaults
56695         as well.
56696
56697 2005-09-02  Bruno Haible  <bruno@clisp.org>
56698
56699         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
56700         patches not yet found in the latest gettext release.
56701
56702 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56703
56704         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
56705         to avoid a collision with bits/local_lim.h in glibc.
56706         All uses changed.  Problem reported by Dmitry V. Levin in
56707         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
56708
56709         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
56710         bugs in int versus size_t comparisons.
56711         (re_string_context_at): Fix bug where the code assumed that
56712         Idx is signed.
56713
56714         Use bool where appropriate.
56715         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
56716         All callers changed.
56717         (calc_eclosure_iter): Likewise, for ROOT arg.
56718         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
56719         (build_charclass_op): Likewise, for NON_MATCH arg.
56720         * lib/regex_internal.c (re_string_allocate, re_string_construct):
56721         (re_string_construct_common): Likewise, for ICASE arg.
56722         * lib/regexec.c (re_search_2_stub, re_search_stub):
56723         Likewise, for RET_LEN arg.
56724         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
56725         (set_regs): Likewise, for FL_BACKTRACK arg.
56726         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
56727         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
56728         (calc_eclosure_iter, parse_bracket_exp):
56729         Use bool for internal variables that are booleans.
56730         * lib/regexec.c (re_search_internal, check_matching,
56731         proceed_next_node):
56732         (set_regs, build_sifted_states, sift_states_bkref):
56733         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
56734         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56735         (find_collation_sequence_value):
56736         Likewise.
56737         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
56738         (re_node_set_compare):
56739         Return bool, not int. All callers changed.
56740         * lib/regexec.c (check_halt_node_context, check_dst_limits):
56741         (build_trtable, check_node_accept): Likewise.
56742         * lib/regex_internal.h: Include stdbool.h.
56743
56744         Fix bugs uncovered when converting to bool.
56745         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
56746         failure instead of charging ahead blindly.
56747         * lib/regex_internal.c (register_state): Likewise.
56748         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
56749         for freeing internal storage.
56750         (group_nodes_into_DFA_states): Use unsigned int, not int, for
56751         bitset pieces used as boolean, to avoid undefined behavior
56752         on hosts that do int overflow checking.
56753
56754 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56755
56756         * config/srclist.txt: Add glibc bugs 1285-1287.
56757
56758 2005-09-01  Jim Meyering  <jim@meyering.net>
56759
56760         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
56761         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
56762         Require gl_STAT_MACROS, too.
56763
56764 2005-09-01  Bruno Haible  <bruno@clisp.org>
56765
56766         * gnulib-tool (import): In the first-use case, provide defaults.
56767
56768 2005-09-01  Bruno Haible  <bruno@clisp.org>
56769
56770         * gnulib-tool (func_import): Remove the .tmp files.
56771
56772 2005-09-01  Bruno Haible  <bruno@clisp.org>
56773
56774         * gnulib-tool (func_import): Fix handling of symbolic links.
56775
56776 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56777
56778         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
56779         old glibc regex code mishandles strings longer than 2**31 bytes.
56780         This patch fixes this when the regex code is used in gnulib
56781         (i.e., outside glibc).
56782
56783         This patch should not affect the use of the regex code inside
56784         glibc.  No doubt this problem also needs to be handled for glibc
56785         as well, but the result will be an incompatible change to the
56786         glibc ABI, and the old ABI will have to be supported too.  That
56787         can be the the subject for another patch.
56788
56789         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
56790         governing whether the rest of this patch is active.  By default,
56791         the macro is disabled and the patch has no effect.
56792         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
56793         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
56794         (struct re_pattern_buffer, re_search, re_search_2, re_match):
56795         (re_match_2, re_set_registers): Use the new types.
56796         * lib/regex_internal.h (Idx, re_hashval_t): New types.
56797         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
56798         New macros.
56799         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
56800         (re_string_context_at, bin_tree_t, re_dfastate_t):
56801         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
56802         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
56803         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
56804         (re_string_char_size_at, re_string_wchar_at):
56805         (re_string_elem_size_at):
56806         Use the new types and macros to port to 64-bit hosts.
56807         Use unsigned types for internal values, so that the code
56808         mostly works even for arrays larger than SSIZE_MAX.
56809         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
56810         (search_duplicated_node, calc_eclosure_iter, fetch_number):
56811         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
56812         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
56813         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
56814         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
56815         (calc_inveclosure, parse_dup_op, build_range_exp):
56816         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
56817         (fetch_number, create_token_tree, mark_opt_subexp):
56818         Likewise.
56819         * lib/regex_internal.c (re_string_construct_common,
56820         create_ci_newstate):
56821         (create_cd_newstate, re_string_allocate, re_string_construct):
56822         (re_string_realloc_buffers, build_wcs_upper_buffer):
56823         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56824         (re_string_reconstruct, re_string_peek_byte_case):
56825         (re_string_fetch_byte_case, re_string_context_at):
56826         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56827         (re_node_set_init_copy, re_node_set_add_intersect):
56828         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56829         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56830         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56831         (re_acquire_state, re_acquire_state_context, register_state):
56832         Likewise.
56833         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
56834         search_cur_bkref_entry):
56835         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
56836         (re_search_internal, re_search_2_stub, re_search_stub)
56837         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
56838         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
56839         (update_cur_sifted_state, check_dst_limits):
56840         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
56841         (check_subexp_limits, sift_states_bkref, merge_state_array):
56842         (check_subexp_matching_top, get_subexp, get_subexp_sub):
56843         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
56844         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56845         (expand_bkref_cache, check_node_accept_bytes):
56846         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
56847         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
56848         (acquire_init_state_context, check_halt_node_context):
56849         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
56850         (sift_states_backward, clean_state_log_if_needed):
56851         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
56852         (find_recover_state, transit_state_sb, transit_state_mb):
56853         (transit_state_bkref, build_trtable, match_ctx_clean):
56854         Likewise.
56855         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
56856         to work around an assumption that REG_MISSING is negative.
56857
56858         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
56859         (seek_collating_symbol_entry) [defined _LIBC]:
56860         (lookup_collation_sequence_value) [defined _LIBC]:
56861         (build_range_exp, build_collating_symbol) [defined _LIBC]:
56862         Use prototypes rather than old-style function definitions.
56863         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
56864         (transit_state_sb) [0]:
56865         (find_collation_sequence_value) [defined _LIBC]: Likewise.
56866
56867         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
56868         rm_eo.
56869
56870         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
56871         (optimize_subexps, lower_subexp):
56872         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
56873         since the signed shift might overflow.  Use 1u<<31 instead.
56874         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56875         Likewise.
56876         * lib/regexec.c (check_dst_limits_calc_pos_1,
56877         check_subexp_matching_top): Likewise.
56878
56879         * lib/regcomp.c (optimize_subexps, lower_subexp):
56880         Use CHAR_BIT rather than 8, for clarity.
56881         * lib/regexec.c (check_dst_limits_calc_pos_1):
56882         (check_subexp_matching_top): Likewise.
56883         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
56884         have to worry about portability issues when shifting it left.
56885         Remove no-longer-needed test for table_size > 0.
56886         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
56887         in a word, as the resulting behavior is undefined.
56888         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
56889         in one case, a <= should have been an <, and in another case the
56890         whole test was missing.
56891         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
56892         the standard name CHAR_BIT.
56893         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
56894         this is not true on one's complement and signed-magnitude hosts.
56895
56896         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
56897         next_last_offset.
56898         (struct re_dfa_t): Remove unused member states_alloc.
56899         * lib/regcomp.c (init_dfa): Don't initialize unused members.
56900
56901 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56902
56903         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
56904         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
56905         and large-file glibc and in 32-bit large-file Solaris.
56906
56907 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56908
56909         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
56910         lengths fit in regoff_t; this isn't true if regoff_t is the same
56911         width as size_t.
56912         * lib/regex.c (re_search_internal): 5th arg is LAST_START
56913         (= START + RANGE) instead of RANGE.  This avoids overflow
56914         problems when regoff_t is the same width as size_t.
56915         All callers changed.
56916         (re_search_2_stub): Check for overflow when adding the
56917         sizes of the two strings.
56918         (re_search_stub): Check for overflow when adding START
56919         to RANGE; if it occurs, substitute the extreme value.
56920
56921 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56922
56923         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
56924
56925 2005-08-31  Jim Meyering  <jim@meyering.net>
56926
56927         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
56928         a pointer-to-const.
56929         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
56930         (register_state): Likewise.
56931         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
56932         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
56933         (group_nodes_into_DFAstates): Likewise.
56934
56935 2005-08-31  Jim Meyering  <jim@meyering.net>
56936
56937         * check-module: Add a FIXME comment.
56938
56939 2005-08-31  Eric Blake  <ebb9@byu.net>
56940
56941         * modules/unistd-safer (Files): Add unistd--.h.
56942         * modules/stdio-safer (Files): Add stdio--.h.
56943
56944 2005-08-31  Derek Price  <derek@ximbiot.com>
56945
56946         * lib/getdelim.c (getdelim): Return EOF on EOF.
56947         Reported by Larry Jones <lawrence.jones@ugs.com>.
56948
56949 2005-08-31  Bruno Haible  <bruno@clisp.org>
56950
56951         Avoid unnecessary diffs in the generated lib/Makefile.am.
56952         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
56953         the generated files.
56954         (func_import): Don't set cmd.
56955
56956 2005-08-31  Bruno Haible  <bruno@clisp.org>
56957
56958         * lib/strstr.c: Include <stddef.h>, for NULL.
56959         * lib/strcasestr.c: Likewise.
56960         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56961
56962 2005-08-31  Bruno Haible  <bruno@clisp.org>
56963
56964         * gnulib-tool: New option --macro-prefix.
56965         (func_import): Use macro_prefix.
56966         (import): Handle option --macro-prefix.
56967
56968 2005-08-31  Bruno Haible  <bruno@clisp.org>
56969
56970         * gnulib-tool (import): Rename most ac_* variables to cached_*.
56971         Also use new variables cached_lgpl, cached_libtool.
56972
56973 2005-08-31  Bruno Haible  <bruno@clisp.org>
56974
56975         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
56976         always instantiating them.
56977
56978 2005-08-31  Bruno Haible  <bruno@clisp.org>
56979
56980         * gnulib-tool (func_import): Read the previous cached settings
56981         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
56982         earlier added by gnulib but are now dropped. Warn when a gnulib file
56983         overwrites a non-gnulib file.
56984
56985 2005-08-31  Bruno Haible  <bruno@clisp.org>
56986
56987         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
56988         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
56989         projects that don't keep autogenerated files in CVS. Put into
56990         actioncmd only the specified modules, not the transitive closure.
56991
56992 2005-08-31  Bruno Haible  <bruno@clisp.org>
56993
56994         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
56995         Create directories that shall be filled.
56996         (import): Don't look for gl_* macros in configure.ac. Recurse across
56997         all directories containing a gnulib-cache.m4 files, if meaningful.
56998
56999 2005-08-31  Bruno Haible  <bruno@clisp.org>
57000
57001         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
57002         (import): Set seen_libtool when we see gl_LIBTOOL.
57003
57004 2005-08-31  Bruno Haible  <bruno@clisp.org>
57005
57006         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
57007         declaration macro definitions from generated gnulib.m4.
57008
57009 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
57010
57011         * lib/iconvme.h: Add prototype for iconv_alloc.
57012
57013 2005-08-29  Simon Josefsson  <jas@extundo.com>
57014
57015         * lib/iconvme.c: Fix errno.
57016
57017 2005-08-29  Bruno Haible  <bruno@clisp.org>
57018
57019         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
57020         that it works when the directory contains spaces.
57021
57022 2005-08-29  Bruno Haible  <bruno@clisp.org>
57023
57024         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
57025
57026 2005-08-29  Bruno Haible  <bruno@clisp.org>
57027
57028         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
57029         Emit more advice.
57030
57031 2005-08-29  Bruno Haible  <bruno@clisp.org>
57032         and Stepan Kasal  <kasal@ucw.cz>
57033
57034         * check-module: If more parameters are given, check each of them
57035         separately; add more exceptions, as noted by Jim Meyering.
57036         (check_module): New procedure.
57037         (%exempt_header): Now contains all exceptions.
57038
57039 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
57040
57041         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
57042
57043 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
57044
57045         * lib/iconvme.c: Split iconv_string into iconv_alloc.
57046
57047 2005-08-28  Bruno Haible  <bruno@clisp.org>
57048
57049         * m4/gnulib-tool.m4: New file.
57050
57051 2005-08-27  Jim Meyering  <jim@meyering.net>
57052
57053         * modules/unistd-safer (Files): Add pipe-safer.c.
57054         * modules/fcntl-safer (Files): Add creat-safer.c.
57055
57056 2005-08-27  Jim Meyering  <jim@meyering.net>
57057
57058         * m4/stdlib-safer.m4: New file.  From coreutils.
57059         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
57060         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
57061         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
57062         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
57063         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
57064
57065 2005-08-27  Jim Meyering  <jim@meyering.net>
57066
57067         * lib/fopen-safer.c: Merge minor changes from coreutils.
57068         * lib/dup-safer.c: Likewise.
57069         * lib/fd-safer.c: Likewise.
57070
57071         Merge from coreutils.
57072         * lib/stdio--.h: New file.
57073         * lib/stdlib--.h: New file.
57074         * lib/mkstemp-safer.c: New file.
57075
57076         GNU tar needs these.
57077         * lib/pipe-safer.c: New file.
57078         * lib/creat-safer.c: New file.
57079         * lib/fcntl--.h (creat): Define to creat_safer.
57080         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
57081         * lib/unistd--.h (pipe): Define to pipe_safer.
57082         * lib/unistd-safer.h: Declare pipe_safer.
57083
57084 2005-08-26  Simon Josefsson  <jas@extundo.com>
57085
57086         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
57087         Haible <bruno@clisp.org>.
57088
57089 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
57090
57091         * lib/regex_internal.h: Remove all references to
57092         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
57093         or better.
57094         (bitset_not, bitset_merge, bitset_not_merge):
57095         (bitset_mask, re_string_allocate, re_string_construct):
57096         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
57097         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
57098         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
57099         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
57100         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57101         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57102         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
57103         (re_acquire_state_context):
57104         Remove unnecessary forward decls.
57105         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
57106         Put __attribute at function definition,
57107         now that the function decl has been removed.
57108         * lib/regex_internal.c (re_string_peek_byte_case):
57109         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
57110         Likewise.
57111
57112 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
57113
57114         * m4/regex.m4: Add AC_PREREQ(2.50).
57115         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
57116
57117 2005-08-25  Simon Josefsson  <jas@extundo.com>
57118
57119         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
57120         __fsetlocking.
57121
57122 2005-08-25  Simon Josefsson  <jas@extundo.com>
57123
57124         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
57125         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
57126         GLIBC specific code.
57127
57128 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57129
57130         Make regex safe for g++.  This fixes one real bug (an "err"
57131         that should have been "*err").  g++ problem reported by
57132         Sam Steingold.
57133         * lib/regex_internal.h (re_calloc): New macro, consistent with
57134         re_malloc etc.  All callers of calloc changed to use re_calloc.
57135         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
57136         not int.  All callers changed.
57137         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
57138         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
57139         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
57140         (find_recover_state): Change "err" to "*err"; this fixes what
57141         appears to be a real bug.
57142         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
57143         versus int.
57144
57145 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57146
57147         * modules/regex (Depends-on): Add malloc, since the code
57148         assumes that !malloc(0) means failure.
57149
57150 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57151
57152         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
57153
57154         alloca modernization/simplification for regex.
57155         * lib/regex.c: Remove portability cruft for alloca.  This no longer
57156         needs to be at the start of the file, and can be moved into
57157         regex_internal.h and simplified.
57158         * lib/regex_internal.h: Include <alloca.h>.
57159         (__libc_use_alloca) [!defined _LIBC]: New macro.
57160         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
57161         now works outside glibc.
57162
57163 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57164
57165         * config/srclist.txt: Add glibc bugs 1241, 1245.
57166
57167 2005-08-25  Jim Meyering  <jim@meyering.net>
57168
57169         * lib/open-safer.c: Include <config.h>.
57170         Otherwise, we'd lose LARGEFILE support in any file using
57171         e.g. "fcntl--.h"
57172
57173 2005-08-25  Bruno Haible  <bruno@clisp.org>
57174
57175         * m4/minmax.m4: Require autoconf 2.52.
57176         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
57177         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
57178         alternatives of translit over the alphabet.
57179         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
57180
57181 2005-08-24  Simon Josefsson  <jas@extundo.com>
57182
57183         * tests/test-getpass.c: New file.
57184
57185 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57186
57187         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
57188         for GNU regex features.
57189
57190 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57191
57192         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
57193         * lib/regex.h (regerror): Likewise.
57194
57195         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
57196         requires this.  (The code never needed it.)
57197
57198         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
57199         All uses of recently-renamed identifiers changed to use the new,
57200         POSIX-compliant names.  The code will build and run just fine
57201         without these changes, but it's better to eat our own dog food
57202         and use the standard-conforming names.
57203
57204         * lib/regex.h: Fix a multitude of POSIX name space violations.
57205         These changes have an effect only for programs that define
57206         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
57207         do not change anything for programs compiled in the normal way.
57208         Also, there is no effect on the ABI.
57209
57210         (_REGEX_SOURCE): New macro.
57211         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
57212         defined and _GNU_SOURCE is not; this fixes a name space violation.
57213
57214         Rename the following macros to obey POSIX requirements.
57215         The old names are still visible as macros if _REGEX_SOURCE is defined.
57216         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
57217         RE_BACKSLASH_ESCAPE_IN_LISTS.
57218         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
57219         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
57220         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
57221         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
57222         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
57223         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
57224         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
57225         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
57226         (REG_INTERVALS): renamed from RE_INTERVALS.
57227         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
57228         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
57229         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
57230         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
57231         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
57232         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
57233         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
57234         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
57235         RE_UNMATCHED_RIGHT_PAREN_ORD.
57236         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
57237         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
57238         (REG_DEBUG): renamed from RE_DEBUG.
57239         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
57240         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
57241         unusual, since we can't clash with the POSIX REG_ICASE.
57242         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
57243         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
57244         (REG_NO_SUB): renamed from RE_NO_SUB.
57245         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
57246         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
57247         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
57248         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
57249         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
57250         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
57251         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
57252         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
57253         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
57254         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
57255         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
57256         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
57257         RE_SYNTAX_POSIX_MINIMAL_BASIC.
57258         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
57259         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
57260         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
57261         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
57262         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
57263         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
57264         (REG_FIXED): Renamed from REGS_FIXED.
57265         (REG_NREGS): Renamed from RE_NREGS.
57266
57267         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
57268         of other REG_* macros, since POSIX says the user is allowed to
57269         #undef these macros selectively.
57270
57271         (reg_errcode_t): Update comment stating what other tables need
57272         to be consistent.
57273
57274         Rename the following enum values to obey POSIX requirements.
57275         The old names are still visible as macros.
57276         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
57277         is not defined, since GNU is supposed to be a superset of POSIX as
57278         much as possible, and since we want reg_errcode_t to be a signed
57279         type for implementation consistency.
57280         (_REG_NOERROR): Renamed from REG_NOERROR.
57281         (_REG_NOMATCH): Renamed from REG_NOMATCH.
57282         (_REG_BADPAT): Renamed from REG_BADPAT.
57283         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
57284         (_REG_ECTYPE): Renamed from REG_ECTYPE.
57285         (_REG_EESCAPE): Renamed from REG_EESCAPE.
57286         (_REG_ESUBREG): Renamed from REG_ESUBREG.
57287         (_REG_EBRACK): Renamed from REG_EBRACK.
57288         (_REG_EPAREN): Renamed from REG_EPAREN.
57289         (_REG_EBRACE): Renamed from REG_EBRACE.
57290         (_REG_BADBR): Renamed from REG_BADBR.
57291         (_REG_ERANGE): Renamed from REG_ERANGE.
57292         (_REG_ESPACE): Renamed from REG_ESPACE.
57293         (_REG_BADRPT): Renamed from REG_BADRPT.
57294         (_REG_EEND): Renamed from REG_EEND.
57295         (_REG_ESIZE): Renamed from REG_ESIZE.
57296         (_REG_ERPAREN): Renamed from REG_ERPAREN.
57297         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
57298         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
57299         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
57300         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
57301
57302         (_REG_RE_NAME, _REG_RM_NAME): New macros.
57303         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
57304         changed.  But support the old name if the new one is not defined
57305         and if _REGEX_SOURCE.
57306
57307         Change the following member names in struct re_pattern_buffer.
57308         The old names are still supported if !_REGEX_SOURCE.
57309         The new names are always supported, regardless of _REGEX_SOURCE.
57310         (re_buffer): Renamed from buffer.
57311         (re_allocated): Renamed from allocated.
57312         (re_used): Renamed from used.
57313         (re_syntax): Renamed from syntax.
57314         (re_fastmap): Renamed from fastmap.
57315         (re_translate): Renamed from translate.
57316         (re_can_be_null): Renamed from can_be_null.
57317         (re_regs_allocated): Renamed from regs_allocated.
57318         (re_fastmap_accurate): Renamed from fastmap_accurate.
57319         (re_no_sub): Renamed from no_sub.
57320         (re_not_bol): Renamed from not_bol.
57321         (re_not_eol): Renamed from not_eol.
57322         (re_newline_anchor): Renamed from newline_anchor.
57323
57324         Change the following member names in struct re_registers.
57325         The old names are still supported if !_REGEX_SOURCE.
57326         The new names are always supported, regardless of _REGEX_SOURCE.
57327         (rm_num_regs): Renamed from num_regs.
57328         (rm_start): Renamed from start.
57329         (rm_end): Renamed from end.
57330
57331         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
57332         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
57333         Prepend __ to parameter names.
57334
57335         Undo yesterday's changes.
57336
57337 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57338
57339         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
57340         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
57341         lib/regex.c.
57342
57343 2005-08-24  Jim Meyering  <jim@meyering.net>
57344
57345         Sync from coreutils.
57346         * m4/fcntl-safer.m4: New file.
57347
57348         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
57349         and object files for this module.
57350
57351 2005-08-24  Jim Meyering  <jim@meyering.net>
57352
57353         Sync from coreutils.
57354         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
57355
57356 2005-08-24  Jim Meyering  <jim@meyering.net>
57357
57358         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
57359         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
57360
57361 2005-08-24  Jim Meyering  <jim@meyering.net>
57362
57363         * modules/fcntl-safer: New module.
57364         * modules/fts (Depends-on): Add fcntl-safer.
57365         * MODULES.html.sh (File descriptor based Input/Output):
57366         Add fcntl-safer.
57367
57368 2005-08-24  Bruno Haible  <bruno@clisp.org>
57369
57370         Support for unit test modules.
57371         * modules/README: Mention tests modules.
57372         * modules/TEMPLATE-TESTS: New file.
57373         * gnulib-tool: New options --extract-tests-module, --with-tests and
57374         --tests-base (unused for the moment).
57375         (testsbase, inctests): New variables.
57376         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
57377         (func_verify_module): Exclude TEMPLATE-TESTS.
57378         (func_verify_nontests_module, func_verify_tests_module): New functions.
57379         (func_get_dependencies): Add implicit dependency for tests modules.
57380         (func_get_tests_module): New function.
57381         (func_modules_transitive_closure): When --with-tests was specified,
57382         include the unit tests as well, unless explicitly avoided.
57383         (func_emit_lib_Makefile_am): Ignore the tests modules here.
57384         (func_emit_tests_Makefile_am): New function.
57385         (func_create_testdir): When --with-tests was specified, emit a
57386         tests/ directory.
57387         * MODULES.html.sh (Future developments): Update.
57388
57389 2005-08-24  Bruno Haible  <bruno@clisp.org>
57390
57391         * modules/tls-tests: New file.
57392         * tests/test-tls.c: New file, from GNU gettext.
57393
57394 2005-08-24  Bruno Haible  <bruno@clisp.org>
57395
57396         * modules/lock-tests: New file.
57397         * tests/test-lock.c: New file, from GNU gettext.
57398
57399 2005-08-24  Bruno Haible  <bruno@clisp.org>
57400
57401         * lib/lock.h: Add multiple inclusion guard.
57402         * lib/tls.h: Add multiple inclusion guard.
57403
57404 2005-08-24  Bruno Haible  <bruno@clisp.org>
57405
57406         * gnulib-tool: Add support for the --aux-dir option to
57407         --create-testdir, --create-megatestdir, --test, --megatest.
57408         (func_create_testdir, func_create_megatestdir): Optionally emit a
57409         AC_CONFIG_AUX_DIR directive.
57410         (create-testdir, create-megatestdir, test, megatest): Provide a
57411         default value for $auxdir.
57412
57413 2005-08-24  Bruno Haible  <bruno@clisp.org>
57414
57415         * gnulib-tool (import): Use compound statement instead of subshell
57416         where possible.
57417
57418 2005-08-24  Bruno Haible  <bruno@clisp.org>
57419
57420         * gnulib-tool (import): Change --aux-dir default to "build-aux".
57421
57422 2005-08-24  Bruno Haible  <bruno@clisp.org>
57423
57424         * gnulib-tool (func_version): Update.
57425
57426 2005-08-24  Bruno Haible  <bruno@clisp.org>
57427
57428         * gnulib-tool (func_import, func_create_testdir,
57429         func_create_megatestdir): Quote all autoconf macro arguments.
57430
57431 2005-08-24  Bruno Haible  <bruno@clisp.org>
57432
57433         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
57434         option --force, because --force causes the aclocal.m4 of each
57435         subdirectory to be newer than the corresponding config.h.in.
57436
57437 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57438
57439         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
57440         All contents moved to gl_REGEX.
57441         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
57442         assume that it does.
57443
57444 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57445
57446         * lib/regex.h (REG_NOSYS)
57447         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
57448         Define, since POSIX requires it as of 2001.
57449         (_REG_ENOSYS)
57450         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
57451         New private symbol, used to keep the enum signed in all cases.
57452         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
57453         Youngman in
57454         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
57455
57456         * lib/regex_internal.c (re_string_skip_chars, register_state):
57457         (calc_state_hash):
57458         Remove forward decls; no longer needed now that we use prototypes.
57459         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
57460         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
57461         (clean_state_log_if_needed): Likewise.
57462
57463 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57464
57465         * config/srclist.txt: Add glibc bugs 1231-1233.
57466
57467 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57468
57469         Fix problems reported by Sam Steingold in
57470         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
57471         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
57472         assumed that reg_errcode_t is a signed type, which is not
57473         necessarily true if _XOPEN_SOURCE is not defined.
57474         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
57475         since some compilers warn about it otherwise.
57476
57477 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57478
57479         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
57480         (init_word_char, create_initial_state, duplicate_node_closure):
57481         (fetch_token, peek_token_bracket, build_range_exp):
57482         (build_collating_symbol): Remove forward decls; no longer needed
57483         now that we use prototypes.
57484
57485         * lib/regcomp.c:
57486         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
57487         (re_compile_fastmap_iter, regcomp, regerror, regfree):
57488         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
57489         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
57490         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
57491         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
57492         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
57493         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
57494         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
57495         (build_range_exp, build_collating_symbol, parse_bracket_exp):
57496         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
57497         (build_charclass, build_charclass_op, fetch_number, create_tree):
57498         (create_token_tree, mark_opt_subexp, duplicate_tree):
57499         Use prototypes rather than old-style definitions.
57500
57501         * lib/regex_internal.c:
57502         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
57503         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
57504         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
57505         (re_string_reconstruct, re_string_peek_byte_case):
57506         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
57507         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57508         (re_node_set_init_copy, re_node_set_add_intersect):
57509         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57510         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57511         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57512         (re_acquire_state, re_acquire_state_context, register_state):
57513         (create_ci_newstate, create_cd_newstate, free_state):
57514         Likewise.
57515         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
57516         re_search_2):
57517         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
57518         (re_search_internal, prune_impossible_nodes):
57519         (acquire_init_state_context, check_matching, static):
57520         (check_halt_node_context, check_halt_state_context, proceed_next_node):
57521         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
57522         (update_regs, sift_states_backward, build_sifted_states):
57523         (clean_state_log_if_needed, merge_state_array):
57524         (update_cur_sifted_state, add_epsilon_src_nodes):
57525         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
57526         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
57527         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
57528         (find_recover_state, check_subexp_matching_top, transit_state_mb):
57529         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
57530         (check_arrival, check_arrival_add_next_nodes):
57531         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57532         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57533         (check_node_accept_bytes, check_node_accept, extend_buffers):
57534         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
57535         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
57536         (sift_ctx_init):
57537         Likewise.
57538
57539         * lib/regex_internal.h:
57540         (re_string_allocate, re_string_construct, re_string_reconstruct):
57541         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
57542         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
57543         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
57544         (re_string_context_at, re_string_peek_byte_case):
57545         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
57546         is defined, since we now use prototypes always.
57547
57548         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
57549         C89 or better.  All uses removed.
57550
57551 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57552
57553         * config/srclist.txt: Add glibc bugs 1220-1227.
57554
57555 2005-08-20  Jim Meyering  <jim@meyering.net>
57556
57557         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
57558         of unused local, dfa.
57559
57560 2005-08-20  Bruno Haible  <bruno@clisp.org>
57561
57562         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
57563
57564 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57565
57566         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
57567         (re_node_set_insert_last, re_dfa_add_node):
57568         Rename local variables to avoid GCC shadowing warnings.
57569
57570 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57571
57572         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
57573         [defined lint]: Suppress bogus uninitialized-variable warnings.
57574
57575         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
57576         and let the caller return REG_ESPACE if out of space.  This
57577         removes an uninitialied-variable warning with GCC 4.0.1, and also
57578         avoids taking the address of a local variable.  All callers
57579         changed.
57580
57581 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57582
57583         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
57584         $LIBCSRC/posix/regexec.c.
57585         Add glibc bug 1217 for regcomp.c.
57586
57587 2005-08-19  Jim Meyering  <jim@meyering.net>
57588
57589         * lib/regexec.c (proceed_next_node): Redo local variables to
57590         avoid GCC shadowing warnings.
57591
57592 2005-08-18  Bruno Haible  <bruno@clisp.org>
57593
57594         * lib/strstr.c (strstr): Fix return value in multibyte case.
57595         * lib/strcasestr.c (strcasestr): Likewise.
57596
57597 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57598
57599         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
57600
57601 2005-08-17  Jim Meyering  <jim@meyering.net>
57602
57603         Make the %s format (seconds since the epoch) work for a negative
57604         number and when used with a zero-padded field width, e.g. %015s.
57605
57606         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
57607         label so that it precedes the code to set `digits'.  Otherwise,
57608         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
57609         print `00-22'.  Now, it prints `-0022', as it should.
57610
57611 2005-08-17  Bruno Haible  <bruno@clisp.org>
57612
57613         * modules/strstr (Files): Add m4/mbrtowc.m4.
57614         (Depends-on): Add mbuiter.
57615
57616 2005-08-17  Bruno Haible  <bruno@clisp.org>
57617
57618         * modules/strcasestr: New file.
57619         * MODULES.html.sh (String handling, based on ANSI C 89): Add
57620         strcasestr.
57621
57622 2005-08-17  Bruno Haible  <bruno@clisp.org>
57623
57624         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
57625
57626 2005-08-17  Bruno Haible  <bruno@clisp.org>
57627
57628         * modules/mbuiter: New file.
57629         * MODULES.html.sh (Extended multibyte and wide character utilities):
57630         Add mbuiter.
57631
57632 2005-08-17  Bruno Haible  <bruno@clisp.org>
57633
57634         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
57635         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
57636
57637 2005-08-17  Bruno Haible  <bruno@clisp.org>
57638
57639         * m4/strcasestr.m4: New file.
57640
57641 2005-08-17  Bruno Haible  <bruno@clisp.org>
57642
57643         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
57644         * lib/strstr.c: Completely rewritten, with multibyte locale support.
57645
57646 2005-08-17  Bruno Haible  <bruno@clisp.org>
57647
57648         * lib/strcasestr.h: New file.
57649         * lib/strcasestr.c: New file.
57650
57651 2005-08-17  Bruno Haible  <bruno@clisp.org>
57652
57653         * lib/strcasecmp.c: Use mbuiter.h.
57654
57655 2005-08-17  Bruno Haible  <bruno@clisp.org>
57656
57657         * lib/mbuiter.h: New file.
57658
57659 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57660
57661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
57662         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
57663         and gl_GETOPT are both invoked via different paths (as happens
57664         with GNU tar CVS because it uses both argp and getopt), the former
57665         wins.
57666
57667 2005-08-16  Bruno Haible  <bruno@clisp.org>
57668
57669         * modules/tls: New file.
57670         * MODULES.html.sh (Multithreading): Add tls.
57671
57672 2005-08-16  Bruno Haible  <bruno@clisp.org>
57673
57674         * modules/strnlen1: New file.
57675         * MODULES.html.sh (String handling): Add strnlen1.
57676
57677 2005-08-16  Bruno Haible  <bruno@clisp.org>
57678
57679         * modules/strcase (Files): Add m4/mbrtowc.m4.
57680         (Depends-on): Add strnlen1, mbchar.
57681
57682 2005-08-16  Bruno Haible  <bruno@clisp.org>
57683
57684         * modules/mbiter: New file.
57685         * MODULES.html.sh (Extended multibyte and wide character utilities):
57686         Add mbiter.
57687
57688 2005-08-16  Bruno Haible  <bruno@clisp.org>
57689
57690         * modules/mbfile: New file.
57691         * MODULES.html.sh (Extended multibyte and wide character utilities):
57692         Add mbfile.
57693
57694 2005-08-16  Bruno Haible  <bruno@clisp.org>
57695
57696         * modules/mbchar: New file.
57697         * MODULES.html.sh (Extended multibyte and wide character utilities):
57698         New section.
57699
57700 2005-08-16  Bruno Haible  <bruno@clisp.org>
57701
57702         * m4/tls.m4: New file, from GNU gettext.
57703
57704 2005-08-16  Bruno Haible  <bruno@clisp.org>
57705
57706         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
57707         always.
57708         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
57709
57710 2005-08-16  Bruno Haible  <bruno@clisp.org>
57711
57712         * m4/mbiter.m4: New file.
57713
57714 2005-08-16  Bruno Haible  <bruno@clisp.org>
57715
57716         * m4/mbfile.m4: New file.
57717
57718 2005-08-16  Bruno Haible  <bruno@clisp.org>
57719
57720         * m4/mbchar.m4: New file.
57721
57722 2005-08-16  Bruno Haible  <bruno@clisp.org>
57723
57724         * lib/tls.h: New file, from GNU gettext.
57725         * lib/tls.c: New file, from GNU gettext.
57726
57727 2005-08-16  Bruno Haible  <bruno@clisp.org>
57728
57729         * lib/strnlen1.h: New file.
57730         * lib/strnlen1.c: New file.
57731
57732 2005-08-16  Bruno Haible  <bruno@clisp.org>
57733
57734         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
57735         (mbi_init): Update.
57736         (mbi_avail, mbi_advance): Let the iteration end before the terminating
57737         NUL byte, not after it.
57738
57739 2005-08-16  Bruno Haible  <bruno@clisp.org>
57740
57741         * lib/strcase.h (strcasecmp): Add note in comments.
57742         * lib/strncasecmp.c: Use code from strcasecmp.c.
57743         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
57744         (strcasecmp): Work correctly in multibyte locales.
57745
57746 2005-08-16  Bruno Haible  <bruno@clisp.org>
57747
57748         * lib/mbiter.h: New file.
57749
57750 2005-08-16  Bruno Haible  <bruno@clisp.org>
57751
57752         * lib/mbfile.h: New file.
57753
57754 2005-08-16  Bruno Haible  <bruno@clisp.org>
57755
57756         * lib/mbchar.h: New file.
57757         * lib/mbchar.c: New file.
57758
57759 2005-08-16  Bruno Haible  <bruno@clisp.org>
57760
57761         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
57762         the valid ones. Makes the comparison operations transitive:
57763         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
57764         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
57765
57766 2005-08-15  Simon Josefsson  <jas@extundo.com>
57767
57768         * modules/ssize_t (License): Change to 'unlimited'.
57769
57770         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
57771
57772 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57773
57774         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
57775         Add comments for each pending glibc patch.
57776
57777 2005-08-15  Bruno Haible  <bruno@clisp.org>
57778
57779         * lib/regex.h (__restrict_arr): Don't define to __restrict if
57780         __cplusplus is defined.
57781
57782 2005-08-14  Jim Meyering  <jim@meyering.net>
57783
57784         Sync from coreutils.
57785
57786         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
57787         Use the hash-table-based cycle-detection code not just when
57788         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
57789         Reported by James Youngman in
57790         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
57791         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
57792         FTS_TIGHT_CYCLE_CHECK.
57793         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
57794         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
57795         once again.
57796         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
57797         * lib/fts.c (fd_safer): Remove decl.
57798         Include fcntl--.h rather than unistd-safer.h
57799         (fts_safe_changedir): Don't call fd_safer; no longer needed
57800         now that we include fcntl--.h.
57801
57802 2005-08-12  Simon Josefsson  <jas@extundo.com>
57803
57804         * modules/getndelim2: Use ssize_t module.
57805         * modules/getnline: Likewise.
57806         * modules/safe-read: Likewise.
57807         * modules/xreadlink: Likewise.
57808
57809         * modules/ssize_t: New file.
57810
57811 2005-08-12  Simon Josefsson  <jas@extundo.com>
57812
57813         * m4/readline.m4: Look for termcap, curses or ncurses if required.
57814
57815 2005-08-12  Simon Josefsson  <jas@extundo.com>
57816
57817         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57818         ssize_t.
57819
57820 2005-08-12  Simon Josefsson  <jas@extundo.com>
57821
57822         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
57823         readline, getdelim and check_version.
57824         (Support for systems lacking ISO C 99: Sizes of integer types):
57825         Add size_max.
57826
57827 2005-08-12  Bruno Haible  <bruno@clisp.org>
57828
57829         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
57830
57831 2005-08-11  Simon Josefsson  <jas@extundo.com>
57832
57833         * modules/readline: New file.
57834
57835         * modules/strnlen (Files): Add strnlen.h.
57836
57837 2005-08-11  Simon Josefsson  <jas@extundo.com>
57838
57839         * m4/readline.m4: New file.
57840
57841 2005-08-11  Simon Josefsson  <jas@extundo.com>
57842
57843         * lib/readline.h, readline.c: New file.
57844
57845 2005-08-11  Simon Josefsson  <jas@extundo.com>
57846
57847         * doc/gnulib.texi (Initial import, Finishing touches): Mention
57848         gl_AVOID.
57849
57850 2005-08-11  Bruno Haible  <bruno@clisp.org>
57851
57852         * lib/strnlen.h (strnlen): Change parameter name to match comment.
57853
57854 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
57855
57856         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
57857
57858 2005-08-10  Simon Josefsson  <jas@extundo.com>
57859
57860         * tests/test-iconvme.c: New file.
57861
57862 2005-08-10  Simon Josefsson  <jas@extundo.com>
57863
57864         * m4/strnlen.m4: New file.
57865
57866         * m4/strndup.m4: Don't check for strnlen declaration, done in
57867         strnlen.m4.
57868
57869 2005-08-10  Simon Josefsson  <jas@extundo.com>
57870
57871         * lib/strndup.c: Use strnlen.h.
57872
57873         * lib/strnlen.h: New file.
57874
57875 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57876
57877         * README: Typos.
57878
57879 2005-08-02  Simon Josefsson  <jas@extundo.com>
57880
57881         * modules/readline: New file.
57882
57883 2005-08-02  Simon Josefsson  <jas@extundo.com>
57884
57885         * modules/getdelim: New file.
57886
57887         * modules/getline: Rewrite, don't use getndelim2.
57888
57889 2005-08-02  Simon Josefsson  <jas@extundo.com>
57890
57891         * m4/getline.m4: Separate out getdelim stuff into separate module.
57892
57893         * m4/getdelim.m4: New file.
57894
57895 2005-08-02  Simon Josefsson  <jas@extundo.com>
57896
57897         * lib/getline.h, getline.c: Rewrite.
57898
57899         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
57900
57901 2005-07-31  Bruno Haible  <bruno@clisp.org>
57902
57903         * lib/lock.h (gl_lock_initializer): New macro.
57904         (gl_lock_define_initialized): Use it.
57905         (gl_rwlock_initializer): New macro.
57906         (gl_rwlock_define_initialized): Use it.
57907         (gl_recursive_lock_initializer): New macro.
57908         (gl_recursive_lock_define_initialized): Use it.
57909
57910 2005-07-30  Karl Berry  <karl@gnu.org>
57911
57912         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
57913         Report from Ben Pfaff, regarding getopt.
57914
57915 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
57916
57917         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
57918         normal way.
57919         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
57920         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
57921         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
57922         (gl_GETOPT): Use the new macros.  Most of the implementation
57923         is moved to the new macros.  This is for programs like Emacs
57924         that don't want all the functionality of gl_GETOPT.
57925
57926 2005-07-26  Bruno Haible  <bruno@clisp.org>
57927
57928         * m4/lock.m4: Update from GNU gettext.
57929
57930 2005-07-26  Bruno Haible  <bruno@clisp.org>
57931
57932         * lib/lock.h: Update from GNU gettext.
57933         * lib/lock.c: Update from GNU gettext.
57934
57935 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
57936
57937         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
57938         obsolescent AC_TRY_RUN.  Include the default includes files, for
57939         'exit'.
57940
57941 2005-07-24  Bruno Haible  <bruno@clisp.org>
57942
57943         * modules/visibility: New file.
57944         * MODULES.html.sh (Misc): Add visibility.
57945
57946 2005-07-24  Bruno Haible  <bruno@clisp.org>
57947
57948         * m4/visibility.m4: New file.
57949
57950 2005-07-24  Bruno Haible  <bruno@clisp.org>
57951
57952         * doc/visibility.texi: New file.
57953
57954 2005-07-22  Bruno Haible  <bruno@clisp.org>
57955
57956         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
57957         $(ALLOCA_H), redundant through BUILT_SOURCES.
57958         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
57959         redundant through BUILT_SOURCES.
57960         * modules/byteswap (Makefile.am): Remove explicit dependency on
57961         $(BYTESWAP_H), redundant through BUILT_SOURCES.
57962         * modules/fnmatch (Makefile.am): Remove explicit dependency on
57963         $(FNMATCH_H), redundant through BUILT_SOURCES.
57964         * modules/getopt (Makefile.am): Remove explicit dependency on
57965         $(GETOPT_H), redundant through BUILT_SOURCES.
57966         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
57967         redundant through BUILT_SOURCES.
57968         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
57969         redundant through BUILT_SOURCES.
57970         * modules/stdbool (Makefile.am): Remove explicit dependency on
57971         $(STDBOOL_H), redundant through BUILT_SOURCES.
57972         * modules/stdint (Makefile.am): Remove explicit dependency on
57973         $(STDINT_H), redundant through BUILT_SOURCES.
57974         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
57975         Remove explicit dependency on $(SYSEXITS_H).
57976         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
57977
57978 2005-07-18  Simon Josefsson  <jas@extundo.com>
57979
57980         * lib/check-version.c (check_version): Accept identical versions too.
57981
57982 2005-07-18  Bruno Haible  <bruno@clisp.org>
57983
57984         * modules/lock: New file.
57985         * MODULES.html.sh (Multithreading): New section.
57986
57987 2005-07-18  Bruno Haible  <bruno@clisp.org>
57988
57989         * m4/lock.m4: New file, from GNU gettext.
57990
57991 2005-07-18  Bruno Haible  <bruno@clisp.org>
57992
57993         * lib/lock.h: New file, from GNU gettext.
57994         * lib/lock.c: New file, from GNU gettext.
57995
57996 2005-07-18  Bruno Haible  <bruno@clisp.org>
57997
57998         * lib/lock.h (gl_once_t): New type.
57999         (gl_once_define, gl_once): New macros.
58000         * lib/lock.c (fresh_once): New variable.
58001         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
58002         functions.
58003
58004 2005-07-16  Simon Josefsson  <jas@extundo.com>
58005
58006         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
58007         workaround, suggested by Bruno.
58008
58009 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58010
58011         * modules/xalloc (Depends-on): Add xalloc-die.
58012         * modules/xvasprintf (Depends-on): Add xalloc-die.
58013
58014 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58015
58016         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
58017         with a minor change.
58018
58019 2005-07-15  Bruno Haible  <bruno@clisp.org>
58020
58021         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
58022         When using lib/poll.c, define poll as rpl_poll.
58023
58024 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
58025
58026         * modules/argp (Depends-on): Remove unlocked-io.
58027
58028 2005-07-14  Derek Price  <derek@ximbiot.com>
58029
58030         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
58031         for glob symlink bug.
58032
58033 2005-07-14  Bruno Haible  <bruno@clisp.org>
58034
58035         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
58036         Instead, test for *_unlocked function declarations directly.
58037
58038 2005-07-11  Simon Josefsson  <jas@extundo.com>
58039
58040         * modules/size_max: New file.
58041
58042         * modules/xsize: Depend on size_max module for size_max.m4.
58043
58044 2005-07-11  Simon Josefsson  <jas@extundo.com>
58045
58046         * lib/size_max.h: New file.
58047
58048 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
58049
58050         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
58051         copyright symbol and the year.
58052         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
58053         (version_etc_va): Use parameterized copyright notice.
58054         Reword to conform to the current GNU coding standards.
58055
58056 2005-07-11  Karl Berry  <karl@gnu.org>
58057
58058         * doc/gnulib.texi (Quoting): new node.
58059         (Initial import): more info, from Patrice.
58060
58061 2005-07-11  Bruno Haible  <bruno@clisp.org>
58062
58063         * gnulib-tool (func_usage): Document option --avoid.
58064         (Command line options): Handle --avoid.
58065         (func_acceptable): New function.
58066         (func_modules_transitive_closure): Use it.
58067
58068 2005-07-11  Bruno Haible  <bruno@clisp.org>
58069
58070         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
58071         Reported by Jim Meyering.
58072
58073 2005-07-10  Bruno Haible  <bruno@clisp.org>
58074
58075         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
58076         Needed when size_t is smaller than 'unsigned int'.
58077         Reported by Paul Eggert.
58078
58079 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58080
58081         * modules/argp (Depends-on): Add unlocked-io
58082
58083 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58084
58085         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
58086         block of defines.
58087
58088 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58089
58090         * config/srclist.txt: Comment out regcomp.c, since we have a porting
58091         fix now.
58092
58093 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
58094         and Paul Eggert  <eggert@cs.ucla.edu>
58095
58096         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
58097         in wint_t, not wchar_t.  Remove now-unnecessary cast.
58098
58099 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58100
58101         * modules/regex (Files): Add lib/regex_internal.c,
58102         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
58103         (Depends-on): Add extensions.
58104         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
58105
58106 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58107
58108         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
58109         pathconf.
58110         * m4/same.m4 (gl_SAME): Likewise.
58111         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
58112
58113         * m4/regex.m4: Adjust to new libc regex implementation.
58114         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
58115         all the .c and .h parts of (the new) regex.
58116         Quote the m4 stuff better.
58117         Check for RE_ICASE bug of old gnulib.
58118         Check for REG_STARTEND of recent libc.
58119         Rename local variables from jm_* to gl_*.
58120         Quote operand of "test -f".
58121         Say "recent enough" version of libc, not "version 2".
58122         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
58123         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
58124         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
58125         Remove check for btowc, isascii.
58126         Require AM_LANGINFO_CODESET.
58127
58128 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58129
58130         * lib/regex.c, regex.h: Sync from libc.
58131         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
58132         * lib/regexec.c:
58133         New files, synced from libc, except that regex_internal.h
58134         currently has a small porting fix.
58135
58136 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58137
58138         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
58139         regex_internal.c, regexec.c.
58140         Add regex_internal.h too, but as a comment, since the libc version
58141         is currently broken in gnulib mode.
58142
58143 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58144
58145         Support programs like Emacs that use gnulib but not gettext.
58146         * MODULES.html.sh (Internationalization functions): Add gettext-h.
58147         * modules/gettext-h: New file.
58148         * modules/gettext (Files): Remove lib/gettext.h.
58149         (Depends-on): Add gettext-h.
58150         (Makefile.am): Remove lib_SOURCES.
58151         * modules/argmatch, modules/c-stack, modules/closeout:
58152         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
58153         * modules/execute, modules/file-type, modules/getaddrinfo:
58154         * modules/getopt, modules/human, modules/javacomp:
58155         * modules/javaexec, modules/mkdir-p, modules/obstack:
58156         * modules/openat, modules/pagealign_alloc, modules/pipe:
58157         * modules/quotearg, modules/regex, modules/rpmatch:
58158         * modules/unicodeio, modules/userspec, modules/version-etc:
58159         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
58160         * modules/xsetenv:
58161         Depend on gettext-h, not gettext.
58162
58163 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58164
58165         * gnulib-tool (func_import): Add support for 'public domain' license.
58166         * modules/alloca, modules/atexit, modules/memmove:
58167         Now public domain, not GPL.
58168         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
58169         * modules/realloc, modules/strerror, modules/strtod:
58170         Now LGPL, not GPL.
58171
58172 2005-07-05  Bruno Haible  <bruno@clisp.org>
58173
58174         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
58175         autoconf CVS. Needed for mingw.
58176
58177 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58178
58179         Remove the dependency of the strftime module on the tzset module.
58180         * modules/strftime (Depends-on): Remove dependency on tzset.
58181
58182 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58183
58184         Remove the dependency of the strftime module on the tzset module.
58185         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
58186         gl_FUNC_TZSET_CLOBBER.
58187
58188 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58189
58190         Remove the dependency of the strftime module on the tzset module.
58191         * lib/strftime.c (my_strftime)
58192         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
58193         Copy the input structure, to work around some of the bug with
58194         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
58195         Solaris releases, you should also use the tzset module, but we won't
58196         require it as a dependency any more since we don't want LGPLed code
58197         to depend on GPLed code.
58198
58199 2005-07-02  Jim Meyering  <jim@meyering.net>
58200
58201         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
58202         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
58203         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
58204         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
58205
58206 2005-07-02  Jim Meyering  <jim@meyering.net>
58207
58208         * lib/backupfile.c (backup_args): Change a `0' to NULL.
58209
58210 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58211
58212         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
58213         declares only 'struct timespec;' (!).
58214
58215 2005-07-01  Jim Meyering  <jim@meyering.net>
58216
58217         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
58218         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
58219         * lib/save-cwd.c, tempname.c:
58220         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
58221         and don't include <sys/file.h>).
58222
58223 2005-06-29  Jim Meyering  <jim@meyering.net>
58224
58225         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
58226         type name.  Use the variable name instead.
58227         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
58228         Likewise.
58229
58230 2005-06-28  Simon Josefsson  <jas@extundo.com>
58231
58232         * modules/check-version (Files): Add check-version.m4.
58233
58234 2005-06-28  Simon Josefsson  <jas@extundo.com>
58235
58236         * m4/check-version.m4: New file, suggested by Jim Meyering
58237         <jim@meyering.net>.
58238
58239 2005-06-28  Simon Josefsson  <jas@extundo.com>
58240
58241         * lib/check-version.h, lib/check-version.c: New files.
58242
58243 2005-06-28  Simon Josefsson  <jas@extundo.com>
58244
58245         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
58246         collision with global variable.  Better indentation.  Don't
58247         increment buffer pointer beyond buffer end.  Based on comments
58248         from Paul Eggert <eggert@cs.ucla.edu>.
58249
58250         * lib/base64.h: Indent.
58251
58252 2005-06-28  Simon Josefsson  <jas@extundo.com>
58253
58254         * doc/gnulib.texi (Library version handling): New section.
58255
58256 2005-06-28  Jim Meyering  <jim@meyering.net>
58257
58258         * check-module (find_included_lib_files): Hard-code another
58259         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
58260         but modules/fts-lgpl (correctly) does not list those files.
58261
58262         * modules/canonicalize (Files): Add lib/pathmax.h.
58263
58264 2005-06-25  Simon Josefsson  <jas@extundo.com>
58265
58266         * modules/check-version: New file.
58267
58268 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
58269
58270         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
58271         initializer of struct addrinfo, as an indication that we don't
58272         care how many members the structure has.
58273
58274 2005-06-24  Derek Price  <derek@ximbiot.com>
58275         and Bruno Haible  <bruno@clisp.org>
58276
58277         Remove stat module & update lstat.
58278         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
58279         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58280         * m4/stat.m4: Remove this file.
58281
58282 2005-06-24  Derek Price  <derek@ximbiot.com>
58283         and Bruno Haible  <bruno@clisp.org>
58284
58285         Remove stat module & update lstat.
58286         * lib/stat.c: Remove this file...
58287         (slash_aware_lstat): ...moving this content and its support...
58288         * lib/lstat.c (rpl_lstat): ...into here.
58289         * lib/lstat.h: New file.
58290
58291 2005-06-24  Derek Price  <derek@ximbiot.com>
58292         and Bruno Haible  <bruno@clisp.org>
58293
58294         Remove stat module & update lstat.
58295         * config/srclist.txt (libc sources): Remove stat.
58296
58297 2005-06-24  Derek Price  <derek@ximbiot.com>
58298         and Bruno Haible  <bruno@clisp.org>
58299
58300         Remove stat module & update lstat.
58301         * MODULES.html.sh (stat): Remove.
58302         * MODULES.html: Regenerated.
58303         * modules/lstat (Description): Correct function name.
58304         (Files): Add "lstat.h".
58305         (Depends-on): Remove stat, add xalloc, stat-macros.
58306         * modules/stat: Remove this file.
58307         (Include): Add "lstat.h", remove <sys/stat.h>.
58308
58309 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58310
58311         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
58312         (ranged_convert): Don't save conversion in a temporary struct.
58313         This causes a warning with GCC 4.0.0, and anyway in the typical
58314         case it's not worth the extra 100 bytes or so of code.
58315         (ranged_convert, __mktime_internal): When calling a function via a
58316         pointer P, use P () rather than (*P) (), as we now assume C89 or
58317         better.
58318
58319 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58320
58321         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
58322         "who -r" failed to give output.  Problem reported by Tim Waugh.
58323
58324         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
58325         (xcalloc): Use it to avoid needless tests.
58326         Problem reported by Jim Meyering.
58327
58328 2005-06-20  Derek Price  <derek@ximbiot.com>
58329
58330         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
58331         unnecessary for Autoconfs > 2.59c.
58332
58333 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58334
58335         * lib/argp.h (__option_is_short): Check upper limit of
58336         __key. Isprint() requires its argument to have the value
58337         of an unsigned char or EOF.
58338
58339 2005-06-16  Jim Meyering  <jim@meyering.net>
58340
58341         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
58342         when either N or S is zero.
58343
58344 2005-06-16  Derek Price  <derek@ximbiot.com>
58345
58346         * m4/bison.m4: Declare YACC & YFLAGS precious.
58347
58348 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
58349
58350         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
58351         multibyte string or pattern, fall back on unibyte matching.
58352         Problem reported by James Youngman.
58353
58354 2005-06-08  Bruno Haible  <bruno@clisp.org>
58355
58356         * modules/csharpcomp: New file.
58357         * MODULES.html.sh (C#): Add csharpcomp.
58358
58359 2005-06-08  Bruno Haible  <bruno@clisp.org>
58360
58361         * m4/csharpcomp.m4: New file, from GNU gettext.
58362
58363 2005-06-08  Bruno Haible  <bruno@clisp.org>
58364
58365         * lib/csharpcomp.h: New file, from GNU gettext.
58366         * lib/csharpcomp.c: New file, from GNU gettext.
58367         * lib/csharpcomp.sh.in: New file, from GNU gettext.
58368
58369 2005-06-08  Bruno Haible  <bruno@clisp.org>
58370
58371         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
58372         warning on mingw.
58373
58374 2005-06-07  Derek Price  <derek@ximbiot.com>
58375
58376         Sync from CVS.
58377         * lib/glob_.h: Indent nested #ifdef.
58378
58379 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58380
58381         Sync from coreutils.
58382         Use "file name" when talking about file names, instead of "filename"
58383         or "path", as per the GNU coding standards.
58384         * lib/mkdir-p.c: Renamed from makepath.c.
58385         (make_dir_parents): Renamed from make_path.  All callers changed.
58386         * lib/mkdir-p.h: Likewise.  All includers changed.
58387         * lib/filenamecat.c: Renamed from path-concat.c.
58388         (file_name_concat): Renamed from path_concat.  All callers changed.
58389         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
58390         * lib/filenamecat.h: Likewise.  All includers changed.
58391         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
58392         in comments or local variable names.
58393         * lib/basename.c: Likewise.
58394         * lib/canonicalize.c, canonicalize.h: Likewise.
58395         * lib/dirname.c, dirname.h: Likewise.
58396         * lib/euidaccess.c: Likewise.
58397         * lib/exclude.c: Likewise
58398         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
58399         * lib/fsusage.c, fsuage.h: Likewise.
58400         * lib/fts.c, fts_.h: Likewise.
58401         * lib/getcwd.c: Likewise.
58402         * lib/getloadavg.c: Likewise.
58403         * lib/mkstemp.c: Likewise.
58404         * lib/mountlist.c, mountlist.h: Likewise.
58405         * lib/openat.c, openat.h: Likewise.
58406         * lib/readlink-stub.c: Likewise.
58407         * lib/readutmp.c, readutmp.h: Likewise.
58408         * lib/rename.c: Likewise.
58409         * lib/rmdir.c: Likewise.
58410         * lib/same.c: Likewise.
58411         * lib/savedir.c: Likewise.
58412         * lib/stripslash.c: Likewise.
58413         * lib/tempname.c: Likewise.
58414         * lib/xreadlink.c: Likewise.
58415         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
58416         All uses changed.
58417         * lib/exclude.h: Likewise.
58418
58419         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
58420         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58421         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
58422         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58423         * lib/pathmax.h: Include <limits.h> unconditionally, since other
58424         files have been getting away with it for years (MORE/BSD 4.3
58425         is extinct now).
58426         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
58427         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58428
58429         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
58430         Define to 256, not 255, as per modern POSIX.
58431
58432 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58433
58434         Sync from coreutils.
58435         Use "file name" when talking about file names, instead of "filename"
58436         or "path", as per the GNU coding standards.
58437         * MODULES.html.sh: mkdir-p renamed from makepath.
58438         filenamecat renamed from path-concat.
58439         * modules/filenamecat: Renamed from modules/path-concat.
58440         (Files): filenamecat.h and filenamecat.c renamed from
58441         path-concat.h and path-concat.c.
58442         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
58443         (Include): filenamecat.h, not path-concat.h.
58444         * modules/mkdir-p: Renamed from modules/makepath.
58445         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
58446         makepath.c.
58447         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
58448         (Include): mkdir-p.h, not makepath.h.
58449
58450 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58451
58452         Sync from coreutils.
58453         * m4/mkdir-p.m4: Renamed from makepath.m4.
58454         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
58455         Rename files from makepath.c to mkdir-p.c, and from
58456         makepath.h to mkdir-p.h.
58457         * m4/filenamecat.m4: Renamed from path-concat.m4.
58458         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
58459         Rename files from path-concat.c to filenamecat.c,
58460         and from path-concat.h to filenamecat.h.
58461         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
58462         "file name" in local variables or comments.
58463         * m4/rename.m4: Likewise.
58464
58465 2005-06-01  Bruno Haible  <bruno@clisp.org>
58466
58467         * modules/csharpexec: New file.
58468         * MODULES.html.sh (C#): New section.
58469
58470 2005-06-01  Bruno Haible  <bruno@clisp.org>
58471
58472         * m4/csharp.m4: New file, from GNU gettext.
58473         * m4/csharpexec.m4: New file, from GNU gettext.
58474
58475 2005-06-01  Bruno Haible  <bruno@clisp.org>
58476
58477         * lib/csharpexec.h: New file, from GNU gettext.
58478         * lib/csharpexec.c: New file, from GNU gettext.
58479         * lib/csharpexec.sh.in: New file, from GNU gettext.
58480
58481 2005-05-31  Derek Price  <derek@ximbiot.com>
58482             Paul Eggert  <eggert@cs.ucla.edu>
58483
58484         Sync from cvs.
58485         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58486
58487 2005-05-31  Derek Price  <derek@ximbiot.com>
58488             Paul Eggert  <eggert@cs.ucla.edu>
58489
58490         Sync from cvs.
58491         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58492
58493 2005-05-29  Derek Price  <derek@ximbiot.com>
58494
58495         * config/srclist.txt (glob_.h, glob.c): Add these files.
58496
58497 2005-05-29  Derek Price  <derek@ximbiot.com>
58498
58499         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
58500         * modules/glob: New file.
58501         * modules/getlogin_r: Add link to POSIX spec in description.
58502
58503 2005-05-29  Derek Price  <derek@ximbiot.com>
58504             Paul Eggert  <eggert@cs.ucla.edu>
58505
58506         * m4/glob.m4: New file.
58507
58508 2005-05-29  Derek Price  <derek@ximbiot.com>
58509             Paul Eggert  <eggert@cs.ucla.edu>
58510
58511         * lib/glob_.h, lib/glob.c: New files.
58512
58513 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58514
58515         * modules/fts (Files): Remove m4/inttypes-pri.m4.
58516         * modules/fts-lgpl (Depends-on): Remove gettext.
58517
58518 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58519
58520         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
58521         and don't require gt_INTTYPES_PRI.
58522
58523 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58524
58525         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
58526
58527         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
58528         the configuration hassle isn't worth it.
58529         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
58530         (LONGEST_MODIFIER, PRIuMAX): Remove.
58531
58532 2005-05-27  Bruno Haible  <bruno@clisp.org>
58533
58534         * lib/getlogin_r.h: Remove second include of <stddef.h>.
58535
58536 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
58537
58538         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
58539         _POSIX_PTHREAD_SEMANTICS for Solaris.
58540
58541 2005-05-25  Derek Price  <derek@ximbiot.com>
58542
58543         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
58544
58545 2005-05-25  Derek Price  <derek@ximbiot.com>
58546             Paul Eggert  <eggert@cs.ucla.edu>
58547
58548         * modules/getlogin_r, m4/getlogin_r.m4: New files.
58549         * lib/getlogin_r.c, getlogin_r.h: New files.
58550
58551 2005-05-25  Bruno Haible  <bruno@clisp.org>
58552             Derek Price  <derek@ximbiot.com>
58553
58554         * lib/getlogin_r.h: Simplify API documentation.
58555
58556 2005-05-23  Derek Price  <derek@ximbiot.com>
58557
58558         * modules/minmax (Files): Add m4/minmax.m4.
58559         (configure.ac): Add gl_MINMAX.
58560
58561 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58562
58563         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
58564         so that unistd-safer.h (GPL'ed code) need not be included.
58565
58566 2005-05-22  Bruno Haible  <bruno@clisp.org>
58567
58568         * m4/minmax.m4: New file.
58569         Based on a patch by Derek Price <derek@ximbiot.com>.
58570
58571 2005-05-22  Bruno Haible  <bruno@clisp.org>
58572
58573         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
58574         (INT64_MIN): Fix definition.
58575         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
58576
58577         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
58578         NEED_SIGNED_INT_TYPES.
58579
58580         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
58581         HAVE_SYSTEM_INTTYPES.
58582
58583 2005-05-22  Bruno Haible  <bruno@clisp.org>
58584
58585         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
58586         Also include <sys/param.h> if it defines MIN, MAX.
58587         Based on a patch by Derek Price <derek@ximbiot.com>.
58588
58589 2005-05-21  Jim Meyering  <jim@meyering.net>
58590
58591         * modules/fts (Files): Add m4/inttypes-pri.m4.
58592         (Depends-on): Add lstat and remove gettext.  Alphabetize.
58593
58594 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58595
58596         New fts module.
58597         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
58598         (setup_dir, free_dir): New functions.
58599         (enter_dir, leave_dir): Define trivial
58600         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
58601         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
58602         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
58603         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
58604         Move to fts-cycle.c.
58605         (fts_open): Use setup_dir.
58606         (fts_close): Use free_dir.
58607         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
58608         This adds a label and some gotos, but the alternatives were messier.
58609         Check for memory allocation failure when entering a dir.
58610         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
58611         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
58612         (FTS): New member fts_cycle, that is a union that contains the
58613         old active_dir_ht and cycle_state.  All uses changed to mention
58614         fts_cycle.ht and fts_cycle.state.
58615         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
58616         fts.c, with the following changes:
58617         (setup_dir, free_dir): New functions.
58618         (enter_dir): Now returns bool.  Return true if successful, false
58619         if memory exhausted.  All callers changed.
58620         Do not bother partly cleaning up on
58621         memory allocation failure; that is free_dir's job.
58622         However, free ad if hash_insert fails, to avoid memory leak.
58623         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
58624         fts->fts_options to see which union member to use.
58625
58626 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58627
58628         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
58629         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
58630
58631 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58632
58633         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
58634
58635 2005-05-20  Jim Meyering  <jim@meyering.net>
58636
58637         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
58638         Now a macro, to pacify GCC.
58639
58640 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58641
58642         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
58643         of -1.
58644
58645 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58646
58647         * lib/chown.c (rpl_chown): Return -1 on failure.
58648
58649 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58650
58651         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
58652         Don't check for stddef.h.
58653         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
58654         don't use its results.
58655         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
58656         since we include them unconditionally.  Don't require
58657         AM_STDBOOL_H, since stdbool is a prerequisite.
58658         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
58659         since we assume C89 or better.
58660         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
58661         as we don't use their results.
58662         Don't check for fchdir, memmove, memset, strrchr, as we use
58663         them unconditionally.
58664         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
58665         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
58666
58667 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58668
58669         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
58670         Include <stddef.h> unconditionally, since we assume C89 now.
58671         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
58672         * lib/fts.c: Include fts_.h first, to check interface.
58673         Do not include intprops.h; no longer needed.
58674         Include cycle-check.h and hash.h, since fts_.h no longer does.
58675         Remove unnecessary casts of closedir to void.
58676         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
58677         decide whether to decrement nlinks.
58678         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
58679         (FTS): Use struct hash_table * instead of Hash_table, so that
58680         we no longer need to include hash.h here.
58681
58682 2005-05-18  Jim Meyering  <jim@meyering.net>
58683
58684         * modules/dirfd (License): Change to LGPL.  Most of the code
58685         is already in the public domain.
58686
58687 2005-05-18  Jim Meyering  <jim@meyering.net>
58688
58689         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
58690         Reported by Yoann Vandoorselaere.
58691
58692 2005-05-17  Jim Meyering  <jim@meyering.net>
58693
58694         * m4/fts.m4: New file, from coreutils.
58695
58696 2005-05-17  Jim Meyering  <jim@meyering.net>
58697
58698         * lib/fts.c, lib/fts_.h: New files, from coreutils.
58699
58700 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58701
58702         Sync from coreutils.
58703         * m4/unlinkdir.m4: New file.
58704
58705 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58706
58707         Sync from coreutils.
58708         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
58709         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
58710         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
58711         White space changes only.
58712         * lib/makepath.c (make_path): Port to hosts where leading "//" is
58713         special.
58714         * lib/yesno.c: Include getline.h, not ctype.h.
58715         (yesno): Don't remove leading white space; POSIX doesn't allow it.
58716         Use getline to remove arbitrary restriction on response length.
58717
58718 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58719
58720         * config/srclist-update: Spell out "Street" in FSF postal
58721         mail address; this is the style the FSF seems to prefer.
58722
58723         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
58724         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
58725         this updates FSF postal mail address.
58726
58727         Sync from coreutils.
58728         * modules/unlinkdir: New file.
58729         * modules/yesno (Depends-on): Add getline.
58730         * MODULES.html.sh (File system functions): Add unlinkdir.
58731
58732 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58733
58734         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
58735         lib/strsep.h:
58736         Change the initial comment to refer to GPL, not LGPL.
58737         gnulib-tool will change it to LGPL as needed.
58738
58739         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
58740         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
58741         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
58742         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
58743         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
58744         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
58745         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
58746         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
58747         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
58748         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
58749         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
58750         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
58751         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
58752         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
58753         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
58754         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
58755         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
58756         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
58757         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
58758         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
58759         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
58760         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
58761         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
58762         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
58763         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
58764         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
58765         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
58766         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
58767         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
58768         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
58769         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
58770         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
58771         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
58772         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
58773         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
58774         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
58775         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
58776         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
58777         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
58778         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
58779         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
58780         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
58781         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
58782         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
58783         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
58784         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
58785         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
58786         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
58787         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
58788         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
58789         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58790         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
58791         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
58792         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
58793         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
58794         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
58795         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
58796         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
58797         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
58798         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
58799         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
58800         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
58801         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
58802         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
58803         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
58804         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
58805         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
58806         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
58807         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
58808         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
58809         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
58810         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
58811         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
58812         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
58813         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
58814         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
58815         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
58816         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
58817         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
58818         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
58819         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
58820         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
58821         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
58822         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
58823         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
58824         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
58825         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
58826         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
58827         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
58828         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
58829         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
58830         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
58831         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
58832         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
58833         lib/yesno.c, lib/yesno.h:
58834         Update FSF postal mail address.
58835
58836 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58837
58838         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
58839         tests/test-memmem.c, tests/test-stpncpy.c:
58840         Update FSF postal mail address.
58841
58842 2005-05-13  Bruno Haible  <bruno@clisp.org>
58843
58844         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
58845         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
58846         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
58847         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
58848         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
58849         Add support for 64-bit integers in the MSVC compiler.
58850
58851 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58852
58853         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
58854
58855 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
58856
58857         * gnulib-tool (func_import): Sort and uniquify recommended includes.
58858
58859 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
58860
58861         * doc/getdate.texi (General date syntax): Don't say that date
58862         date --iso-8601=ns generates acceptable dates; it doesn't yet.
58863         Problem reported by Nic Ferrier.
58864
58865 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58866
58867         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
58868         specified in ai_socktype. Fix invalid ai_protocol
58869         check. ai_protocol is usually set to 0 or depending on
58870         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
58871         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
58872         ai_socktype / ai_protocol in the returned addrinfo structure.
58873
58874 2005-05-10  Simon Josefsson  <jas@extundo.com>
58875
58876         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
58877         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58878
58879 2005-05-10  Karl Berry  <karl@gnu.org>
58880
58881         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
58882         (from http://www.gnu.org/licenses).
58883         * doc/COPYING.LIB: also rename to COPYING.LESSER.
58884         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
58885         fdl.texi suffices.
58886
58887 2005-05-10  Karl Berry  <karl@gnu.org>
58888
58889         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
58890         (COPYING.DOC): remove.
58891
58892         * config/srclist-update: new FSF address.
58893
58894 2005-05-10  Derek Price  <derek@ximbiot.com>
58895
58896         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
58897         possible.
58898
58899 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58900             Bruno Haible  <bruno@clisp.org>
58901
58902         * modules/inet_ntop: New file.
58903         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58904         inet_ntop.
58905
58906 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58907             Bruno Haible  <bruno@clisp.org>
58908
58909         * m4/inet_ntop.m4: New file.
58910
58911 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58912             Bruno Haible  <bruno@clisp.org>
58913
58914         * lib/inet_ntop.h: New file.
58915         * lib/inet_ntop.c: New file, from glibc with modifications.
58916
58917 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
58918
58919         * modules/time_r (License): Change to LGPL.
58920         * modules/extensions (License): Change to LGPL.  Actually,
58921         the license is more permissive than that, but currently gnulib-tool
58922         doesn't know how to handle more-permissive licenses.
58923
58924         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
58925         Problem reported by Dave Love.
58926
58927 2005-05-08  Jim Meyering  <jim@meyering.net>
58928
58929         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
58930         blank.
58931
58932 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
58933
58934         * modules/argmatch (Depends-on): Add stdbool.
58935         * modules/backupfile (Depends-on): Likewise.
58936         * modules/chdir-long (Depends-on): Likewise.
58937         * modules/closeout (Depends-on): Likewise.
58938         * modules/cycle-check (Depends-on): Likewise.
58939         * modules/dirname (Depends-on): Likewise.
58940         * modules/fnmatch (Depends-on): Likewise.
58941         * modules/fsusage (Depends-on): Likewise.
58942         * modules/fwriteerror (Depends-on): Likewise.
58943         * modules/getcwd (Depends-on): Likewise.
58944         * modules/getloadavg (Depends-on): Likewise.
58945         * modules/hard-locale (Depends-on): Likewise.
58946         * modules/makepath (Depends-on): Likewise.
58947         * modules/mountlist (Depends-on): Likewise.
58948         * modules/nanosleep (Depends-on): Likewise.
58949         * modules/posixtm (Depends-on): Likewise.
58950         * modules/quotearg (Depends-on): Likewise.
58951         * modules/readtokens (Depends-on): Likewise.
58952         * modules/readtokens0 (Depends-on): Likewise.
58953         * modules/readutmp (Depends-on): Likewise.
58954         * modules/save-cwd (Depends-on): Likewise.
58955         * modules/strftime (Depends-on): Likewise.
58956         * modules/userspec (Depends-on): Likewise.
58957         * modules/utimecmp (Depends-on): Likewise.
58958         * modules/xgetcwd (Depends-on): Likewise.
58959         * modules/xnanosleep (Depends-on): Likewise.
58960         * modules/xstrtod (Depends-on): Likewise.
58961         * modules/yesno (Depends-on): Likewise.
58962
58963 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
58964
58965         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
58966         needless checks.
58967
58968 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58969
58970         Merge from coreutils.  Among other things,
58971         add bulletproofing for cases where stdin, stdout, or stderr are closed.
58972         * lib/fd-safer.c: New file.
58973         * lib/fcntl-safer.h, open-safer.c: Remove.
58974         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
58975         * lib/dup-safer.c: Include unistd-safer.h first.
58976         Don't include errno.h.
58977         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
58978         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
58979         * lib/file-type.c: Rely on file-type.h change.
58980         * lib/getloadavg.c: Include unistd-safer.h.
58981         (getloadavg): Use safer open.
58982         * lib/getusershell.c: Include "stdio-safer.h".
58983         (getusershell): Use safer fopen.
58984         * lib/long-options.c (long_options): Use NULL rather than 0.
58985         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
58986         'free'.
58987         * lib/modechange.c: Likewise.
58988         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
58989         (MODE_DONE): New constant.
58990         (struct mode_change): Remove 'next' member.
58991         (make_node_op_equals): New function; like the old one of the
58992         same name, except it allocates an array.
58993         (mode_compile, mode_create_from_ref): Use it.
58994         (mode_compile): Allocate result as an array, not a linked list.
58995         Parse octal string ourself, so that we catch mistakes like "+0".
58996         (mode_adjust): Arg is an array, not a linked list.
58997         * lib/modechange.c: Include stat-macros.h, xalloc.h.
58998         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
58999         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
59000         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
59001         Remove.  This is now stat-macros.h's job.
59002         (talloc): Remove.  All callers replaced by xalloc, so that
59003         our invokers don't have to worry about reporting memory failures.
59004         (make_node_op_equals): Remove.
59005         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59006         New constants.
59007         (struct mode_change): Moved here from modechange.h.
59008         (mode_append_entry): Remove.
59009         (mode_compile): Remove MASKED_OPS arg, since it encouraged
59010         apps to have incorrect behavior.  Use simpler algorithm for head
59011         and tail.  Don't futz with umask; that's now the job of mode_adjust.
59012         Detect more invalid usages rather than having somewhat-random behavior.
59013         Don't insert an "a=" action, as that leads to incorrect behavior.
59014         (mode_compile, mode_create_from_ref): Return NULL on error instead
59015         of an enum, since now there's only one way to have an error.  All
59016         callers changed.
59017         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
59018         at the correct time.  Simplify calculation of "+u" and its ilk.
59019         Don't mishandle "+X".
59020         (mode_free): Remove "register" and localize decls.
59021         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59022         (struct mode_change): Move to modechange.c; callers don't
59023         need to see this stuff.
59024         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
59025         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
59026         (mode_change, mode_adjust): Reflect the new signatures noted above.
59027         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
59028         that might redefine system include files.
59029         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
59030         (my_usleep): Use NULL rather than (void *) 0.
59031         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
59032         Use siginterrupt to specify that system calls should be interrupted.
59033         (rpl_nanosleep): Move initialization of suspended closer to call of
59034         my_usleep.
59035         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
59036         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
59037         (desirable_utmp_entry): New function.
59038         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
59039         using x2nrealloc, to simplify logic.
59040         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
59041         size calculation.  Do not assume utmp file is a regular file.
59042         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
59043         (READ_UTMP_CHECK_PIDS): New constant.
59044         * lib/save-cwd.c: Include unistd-safer.h.
59045         (save_cwd): Use fd_safer.
59046         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
59047         [!_LIBC] Include "stat-macros.h" instead.
59048         * lib/unistd-safer.h (fd_safer): New decl.
59049
59050 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59051
59052         * modules/getloadavg (Depends-on): Add unistd-safer.
59053         * modules/getusershell (Depends-on): Add stdio-safer.
59054         * modules/lstat (Depends-on): Remove xalloc.
59055         * modules/mkstemp (Depends-on): Add stat-macros.
59056         * modules/modechange (Depends-on): Remove xstrtol.
59057         Add stat-macros, xalloc.
59058         * modules/save-cwd (Depends-on): Add unistd-safer.
59059         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
59060         * modules/unistd-safer (Files): Add lib/fd-safer.c
59061         (Makefile.am): Remove lib_SOURCES.
59062
59063         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
59064         Remove fcntl-safer; unistd-safer supersedes it.
59065
59066 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59067
59068         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
59069         AC_HEADER_STAT.
59070         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
59071         (gl_PREREQ_CHOWN): Remove.
59072         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
59073         it.  Don't require AC_HEADER_STAT.
59074         (gl_PREREQ_LSTAT): Remove.
59075         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
59076         Don't require AC_HEADER_STAT.
59077         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
59078         (gl_PREREQ_RMDIR): Remove.
59079         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
59080         mention stat-macros.h or AC_HEADER_STAT, since we'll make
59081         the stat-macros module a prerequisite.
59082         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
59083         * m4/filemode.m4 (gl_FILEMODE): Likewise.
59084         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
59085         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
59086         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
59087         variable names.
59088         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
59089         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
59090         variable prefixes.
59091         * m4/fcntl-safer.m4: Remove.
59092         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
59093         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
59094         Invoke gl_PREREQ_FD_SAFER.
59095         (gl_PREREQ_FD_SAFER): New macro.
59096         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
59097         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
59098         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
59099         Remove duplicate call to AC_LIBOBJ(readutmp).
59100         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
59101
59102         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
59103         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
59104
59105 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59106
59107         * MODULES.html.sh (Misc): Add byteswap.
59108
59109 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59110
59111         * modules/getcwd (Depends-on): Add extensions.
59112         * modules/openat (Depends-on): Likewise.
59113
59114 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59115
59116         * modules/byteswap: New file.
59117
59118 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59119
59120         * m4/byteswap.m4: New file.
59121
59122 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59123
59124         * lib/byteswap_.h: New file.
59125
59126 2005-04-25  Karl Berry  <karl@gnu.org>
59127
59128         * m4/gettext.m4: Update from GNU gettext 0.14.4.
59129
59130 2005-04-25  Albert Chin  <china@thewrittenword.com>
59131
59132         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
59133         Toolkit C bug.
59134
59135 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
59136
59137         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
59138         (func_ln_if_changed) Remove forcibly for no error message
59139         in case file does not exist.
59140
59141 2005-04-19  Simon Josefsson  <jas@extundo.com>
59142
59143         * gnulib-tool (Options): Make --symlink mean --symbolic.
59144
59145 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
59146
59147         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
59148
59149 2005-04-16  Simon Josefsson  <jas@extundo.com>
59150
59151         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
59152
59153 2005-04-15  Simon Josefsson  <jas@extundo.com>
59154
59155         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
59156
59157 2005-04-15  Simon Josefsson  <jas@extundo.com>
59158
59159         * gnulib-tool: Rename --symlink to --symbolic.
59160
59161 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
59162
59163         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
59164         symbolic links to files instead of copying/moving.  Add --aux-dir,
59165         specifying directory relative --dir where auxiliary build tools
59166         are placed.
59167
59168 2005-04-14  Bruno Haible  <bruno@clisp.org>
59169
59170         * modules/allocsa (License): Change to LGPL.
59171         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59172
59173 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59174
59175         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
59176         that "UTC +1 second" continues to work.  Problem reported
59177         by Dmitry V. Levin.
59178         (relunit_snumber): New rule.
59179         (relunit): Use it.
59180
59181 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59182
59183         * lib/getdate.y (universal_time_zone_table): New constant.
59184         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
59185         universal_time_zone_table.
59186         (lookup_zone): Prefer universal_time_zone_table to
59187         local_time_zone_table, so that "GMT" time stamps are allowed in
59188         London during the summer.  Problem reported by Ian Abbott.
59189
59190 2005-04-12  Jim Meyering  <jim@meyering.net>
59191
59192         * lib/human.c (humblock): Set *options even when returning due to
59193         xstrtoumax conversion failure.  Thanks to a used-uninitialized
59194         warning from gcc-4.
59195
59196 2005-04-09  Jim Meyering  <jim@meyering.net>
59197
59198         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
59199         -Wuninitialized: initialize tm0.tm_year.
59200
59201 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59202
59203         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
59204         count, since there's no maximum.  All uses changed.
59205         Add member dsts_seen.
59206         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
59207         not being INT_MAX.
59208         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
59209         Use pc_rels_seen to decide whther a date is absolute.
59210
59211         * lib/getdate.y (number): Don't overwrite year.
59212         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
59213         check.
59214
59215 2005-04-02  Simon Josefsson  <jas@extundo.com>
59216
59217         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
59218         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
59219
59220 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
59221
59222         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
59223         where no absolute path name can be longer than PATH_MAX.
59224
59225 2005-03-27  Jim Meyering  <jim@meyering.net>
59226
59227         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
59228
59229 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
59230
59231         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
59232         "one's complement" -> "ones' complement" in comment, as per Knuth.
59233         "value of type" -> "type or expression" in comment.
59234         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
59235
59236 2005-03-26  Jim Meyering  <jim@meyering.net>
59237
59238         Comment nits.
59239         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
59240         Correct typos: s/or/of/.
59241
59242 2005-03-26  Jim Meyering  <jim@meyering.net>
59243
59244         * modules/check-include-files: Move to ../ and rename to...
59245         * check-module: ...this.
59246
59247 2005-03-25  Jim Meyering  <jim@meyering.net>
59248
59249         * modules/xvasprintf (Files): Add xalloc.h.
59250
59251 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59252
59253         * modules/gettext (Files): config/config.rpath ->
59254         build-aux/config.rpath
59255         * modules/iconv (Files): Likewise.
59256         Problem reported by Oskar Liljeblad.
59257
59258 2005-03-23  Jim Meyering  <jim@meyering.net>
59259
59260         * modules/check-include-files: New script to check for
59261         missing dependencies, multiple includes, etc.
59262
59263         * modules/c-strtold (Depends-on): Add xalloc.
59264         * modules/c-strtod (Depends-on): Add xalloc.
59265         * modules/hash (Depends-on): Add xalloc.
59266         (Files): Remove lib/xalloc.h.
59267
59268         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
59269         * modules/userspec (Files): Add lib/inttostr.h.
59270
59271 2005-03-23  Jim Meyering  <jim@meyering.net>
59272
59273         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
59274
59275 2005-03-22  Jim Meyering  <jim@meyering.net>
59276
59277         * modules/stat-macros: New module.
59278         * modules/canonicalize, modules/euidaccess, modules/file-type,
59279         * modules/filemode, modules/lchown, modules/makepath,
59280         * modules/rmdir, modules/stat: Depend on new stat-macros module
59281         rather than listing lib/stat-macros.h manually.
59282         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
59283
59284 2005-03-22  Jim Meyering  <jim@meyering.net>
59285
59286         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
59287
59288 2005-03-22  Bruno Haible  <bruno@clisp.org>
59289
59290         * config/srclist.txt: Replace target directory 'config' with
59291         'build-aux'.
59292         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
59293         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
59294         ../build-aux/.
59295
59296 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
59297
59298         * modules/chdir-long (Depends-on): Add mempcpy.
59299
59300         * modules/acl, modules/backupfile, modules/c-strtod,
59301         modules/c-strtold, modules/canon-host, modules/canonicalize,
59302         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
59303         modules/exclude, modules/exitfail, modules/file-type,
59304         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
59305         modules/getdate, modules/getline, modules/getpagesize,
59306         modules/getpass, modules/getugroups, modules/group-member,
59307         modules/hard-locale, modules/hash, modules/human, modules/idcache,
59308         modules/inttostr, modules/long-options, modules/makepath,
59309         modules/md5, modules/memcasecmp, modules/memcoll,
59310         modules/modechange, modules/mountlist, modules/path-concat,
59311         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
59312         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
59313         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
59314         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
59315         modules/strftime, modules/strndup, modules/strverscmp,
59316         modules/timespec, modules/unlocked-io, modules/userspec,
59317         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
59318         modules/yesno:
59319         Remove lib_SOURCES line from Makefile.am section, as this is now
59320         done automatically by the corresponding Autoconf macro.
59321
59322 2005-03-21  Jim Meyering  <jim@meyering.net>
59323
59324         Changes imported from coreutils.
59325
59326         * lib/cycle-check.c: Don't include xalloc.h.
59327
59328         * lib/path-concat.c: Don't include assert.h.
59329         (path_concat): Remove assertion that would have triggered
59330         for ABASE starting with more than one slash.
59331         Reported by Andreas Schwab.
59332
59333         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
59334         properly when ABASE is an absolute file name.
59335         Correct the description of this function.
59336         Include <assert.h>.
59337         Add an assertion and a test driver.
59338         This fixes a bug introduced on 2004-07-02.
59339         Andreas Schwab reported the resulting failure of cp --parents:
59340         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
59341
59342 2005-03-21  Jim Meyering  <jim@meyering.net>
59343
59344         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
59345         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
59346
59347 2005-03-21  Jim Meyering  <jim@meyering.net>
59348         and  Paul Eggert  <eggert@cs.ucla.edu>
59349
59350         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
59351         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
59352         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
59353         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
59354         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
59355         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
59356         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
59357         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
59358         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
59359         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
59360         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
59361         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
59362         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
59363         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
59364         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
59365         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
59366         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
59367         for these modules.
59368
59369 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
59370
59371         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
59372         (which shouldn't happen), generate nothing instead of returning 0
59373         immediately, so that nstrftime (NULL, ...) doesn't return 0.
59374
59375 2005-03-16  Bruno Haible  <bruno@clisp.org>
59376
59377         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
59378         HAVE_LONGLONG_64BIT.
59379
59380 2005-03-16  Bruno Haible  <bruno@clisp.org>
59381
59382         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
59383         HAVE_LONGLONG_64BIT.
59384
59385 2005-03-16  Bruno Haible  <bruno@clisp.org>
59386
59387         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
59388         HAVE_LONGLONG_64BIT.
59389
59390 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59391
59392         * lib/strftime.c (my_strftime): Prepend space to format so that we can
59393         reliably distinguish strftime failure from empty output on POSIX
59394         hosts.
59395
59396 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59397
59398         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
59399         (iconv_string): Don't guess a size-zero buffer, as that might cause
59400         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
59401         result would be 'too large', where 'too large' is (heuristically)
59402         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
59403         overflow concerns.  This will prevent some unwanted malloc failures
59404         when the inputs are very large.
59405
59406 2005-03-15  Karl Berry  <karl@gnu.org>
59407
59408         * config/srclist.txt (config.rpath): from gettext.
59409         * config/config.rpath: update.
59410
59411 2005-03-15  Bruno Haible  <bruno@clisp.org>
59412
59413         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
59414         to 'negate'.
59415
59416         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
59417         variable.
59418
59419         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
59420         results.
59421
59422 2005-03-14  Simon Josefsson  <jas@extundo.com>
59423
59424         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
59425         <fx@gnu.org>.
59426
59427 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
59428
59429         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
59430         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
59431         intprops.h.
59432         * lib/strtol.c: Likewise.
59433
59434 2005-03-14  Jim Meyering  <jim@meyering.net>
59435
59436         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
59437         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
59438         to be nonzero so that we (and caller) can detect the difference
59439         between a valid zero-length expansion and an error return, even
59440         when the underlying strftime fails before writing anything into
59441         that location.
59442
59443 2005-03-14  Bruno Haible  <bruno@clisp.org>
59444
59445         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
59446         Update from GNU gettext 0.14.3.
59447
59448 2005-03-10  Jim Meyering  <jim@meyering.net>
59449
59450         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
59451
59452 2005-03-10  Jim Meyering  <jim@meyering.net>
59453
59454         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
59455         so that this module works on systems without fchdir.
59456
59457 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
59458
59459         Factor int-properties macros into a single file, except for
59460         glibc-related files.
59461         * lib/intprops.h: New file.
59462         * lib/getloadavg.c: Include it instead of limits.h.
59463         (INT_STRLEN_BOUND): Remove.
59464         * lib/human.c: Include intprops.h.
59465         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
59466         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
59467         302/1000.
59468         * lib/inttostr.h: Include intprops.h instead of limits.h.
59469         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
59470         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
59471         for consistency with intprops.h.
59472         (time_t_is_integer, twos_complement_arithmetic): Use them.
59473         * lib/sig2str.h: Include <signal.h>, intprops.h.
59474         (INT_STRLEN_BOUND): Remove.
59475         * lib/strftime.c (TYPE_SIGNED): Remove.
59476         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
59477         * lib/strtol.c: Adjust comments to match intprops.h.
59478         * lib/userspec.c: Include intprops.h.
59479         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
59480         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
59481         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
59482         instead of rolling our own expressions.
59483         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
59484
59485         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
59486         instead of int.
59487         (my_strftime): Do not mishandle years close to INT_MAX, by doing
59488         the right thing even if adding 1900 would overflow.  Similarly
59489         for tm_mon + 1 and tm_yday + 1.
59490         Make %Y always equivalent to %C%y, and similarly for %G and %g.
59491         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
59492         (DO_SIGNED_NUMBER): New macro.
59493         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
59494
59495 2005-03-07  Bruno Haible  <bruno@clisp.org>
59496
59497         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
59498
59499 2005-03-07  Bruno Haible  <bruno@clisp.org>
59500
59501         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
59502
59503 2005-03-04  Derek R. Price  <derek@ximbiot.com>
59504
59505         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
59506         (func_import): Only replace files via --import when they have actually
59507         changed.
59508
59509 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59510
59511         * m4/mmap-anon.m4: New file.
59512         * m4/pagealign_alloc.m4: New file.
59513
59514 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59515             Bruno Haible  <bruno@clisp.org>
59516
59517         * modules/pagealign_alloc: New file.
59518         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
59519
59520 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59521             Bruno Haible  <bruno@clisp.org>
59522
59523         * lib/pagealign_alloc.h: New file.
59524         * lib/pagealign_alloc.c: New file.
59525
59526 2005-03-03  Bruno Haible  <bruno@clisp.org>
59527
59528         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
59529         Use an all-permissive copyright notice, recommended by RMS.
59530
59531 2005-03-02  Bruno Haible  <bruno@clisp.org>
59532
59533         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
59534         of AIX, the replacement has to be done only after <string.h> is
59535         included, therefore not in config.h. stpncpy.h does the replacement,
59536         and stpncpy.c uses it.
59537
59538 2005-03-02  Bruno Haible  <bruno@clisp.org>
59539
59540         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
59541         stpncpy.c uses it.
59542
59543 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59544
59545         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
59546         The workaround isn't strictly needed for POSIX conformance, and
59547         it's too much of a pain to configure and maintain.  We'll ask
59548         people to fix their kernels instead.
59549         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
59550         (NANOSLEEP_BUG_WORKAROUND): Remove.
59551         (xnanosleep): Remove the workaround.
59552
59553 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59554
59555         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
59556         Reported by Derek Price.
59557         (Include): Add "timespec.h".
59558
59559         * modules/xnanosleep (Depends-on): Remove gethrxtime.
59560
59561 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59562
59563         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
59564         to detect nanosleep bug.
59565
59566 2005-03-01  Bruno Haible  <bruno@clisp.org>
59567
59568         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
59569
59570 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59571
59572         * modules/gethrxtime: New file.
59573         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
59574         (Depends-on): Add gethrxtime.
59575         (configure.ac): Add gl_XNANOSLEEP.
59576         (Makefile.am): Remove lib_SOURCES line.
59577
59578 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59579
59580         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
59581         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
59582
59583 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59584
59585         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
59586         * lib/timespec.h (gettime): Return void, since it always
59587         succeeds now.  All uses changed.
59588         * lib/gettime.c (gettime) Likewise.
59589         [HAVE_NANOTIME]: Prefer nanotime.
59590         Assume gettimeofday succeeds, as POSIX requires.
59591         Assime time () succeeds, since other code already does.
59592         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
59593         (timespec_subtract): Remove.
59594         (NANOSLEEP_BUG_WORKAROUND): New constant.
59595         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
59596         things considerably.  Use it only on GNU/Linux hosts, since the
59597         workaround shouldn't be needed elsewhere.
59598
59599 2005-02-24  Bruno Haible  <bruno@clisp.org>
59600
59601         * modules/gettext (Files): Add m4/glibc2.m4.
59602
59603 2005-02-24  Bruno Haible  <bruno@clisp.org>
59604
59605         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
59606         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
59607         * m4/progtest.m4:
59608         Update from GNU gettext 0.14.2.
59609         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
59610
59611 2005-02-24  Bruno Haible  <bruno@clisp.org>
59612
59613         * lib/localcharset.c: Update from GNU gettext 0.14.2.
59614         * lib/config.charset: Update from GNU gettext 0.14.2.
59615
59616 2005-02-24  Bruno Haible  <bruno@clisp.org>
59617
59618         * lib/gettext.h: Update from GNU gettext 0.14.2.
59619
59620 2005-02-23  Simon Josefsson  <jas@extundo.com>
59621
59622         * m4/iconvme.m4: New file.
59623
59624 2005-02-23  Jim Meyering  <jim@meyering.net>
59625
59626         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
59627         change.
59628         Thanks to Bruno Haible for catching it.
59629
59630 2005-02-22  Simon Josefsson  <jas@extundo.com>
59631
59632         * modules/iconvme: New file.
59633
59634         * MODULES.html.sh: Add iconvme.
59635
59636 2005-02-22  Simon Josefsson  <jas@extundo.com>
59637
59638         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
59639
59640 2005-02-22  Simon Josefsson  <jas@extundo.com>
59641
59642         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
59643
59644 2005-02-22  Jim Meyering  <jim@meyering.net>
59645
59646         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
59647         s/ifndef/ifdef/.
59648
59649 2005-02-20  Neil Conway  <neilc@samurai.com>
59650
59651         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
59652         returned by OSX/Darwin if the specified buffer is not large
59653         enough for the hostname.
59654
59655 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59656
59657         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
59658         pass it to _help, otherwise the latter coredumps trying to
59659         dereference state.root_argp.
59660
59661 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59662
59663         * modules/chdir-long (Depends-on): Add memrchr.
59664         * modules/memrchr (Files): Add lib/memrchr.h.
59665         (Include): "memrchr.h".
59666
59667 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59668
59669         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
59670
59671 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59672
59673         * lib/memrchr.h: New file.
59674         * lib/chdir-long.c: Include it.
59675         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
59676         Don't bother including stddef.h.
59677
59678 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59679
59680         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
59681         inclusion.
59682         Include <sys/types.h>, for dev_t.
59683         (ME_DUMMY, ME_REMOTE): Move from here....
59684         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
59685         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
59686         Dmitry V. Levin.
59687         Include mountlist.h first, to test the interface.
59688
59689 2005-01-29  Bruno Haible  <bruno@clisp.org>
59690
59691         * lib/progname.c (program_name): Initialize.
59692         Needed when linking statically on MacOS X.
59693
59694 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59695
59696         Sync from coreutils.
59697         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
59698         (Depends-on): Add c-strtod.
59699         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
59700
59701 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59702
59703         Sync from coreutils.
59704         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
59705
59706         Remove files that are specific to coreutils.
59707         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
59708
59709 2005-01-28  Bruno Haible  <bruno@clisp.org>
59710
59711         * modules/javacomp: New file.
59712         * MODULES.html.sh (Java): Add javacomp.
59713
59714 2005-01-28  Bruno Haible  <bruno@clisp.org>
59715
59716         * m4/javacomp.m4: New file, from GNU gettext.
59717
59718 2005-01-28  Bruno Haible  <bruno@clisp.org>
59719
59720         * lib/javacomp.sh.in: New file, from GNU gettext.
59721         * lib/javacomp.h: New file, from GNU gettext.
59722         * lib/javacomp.c: New file, from GNU gettext.
59723
59724 2005-01-26  Simon Josefsson  <jas@extundo.com>
59725
59726         * lib/gai_strerror.c: Use GPL in header.
59727
59728 2005-01-26  Bruno Haible  <bruno@clisp.org>
59729
59730         * modules/javaexec: New file.
59731         * MODULES.html.sh (Java): Add javaexec.
59732
59733 2005-01-26  Bruno Haible  <bruno@clisp.org>
59734
59735         * m4/javaexec.m4: New file, from GNU gettext.
59736
59737 2005-01-26  Bruno Haible  <bruno@clisp.org>
59738
59739         * lib/javaexec.sh.in: New file, from GNU gettext.
59740         * lib/javaexec.h: New file, from GNU gettext.
59741         * lib/javaexec.c: New file, from GNU gettext.
59742
59743 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59744
59745         * modules/lchown (Depends-on): Remove lchown.h
59746
59747 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59748
59749         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
59750         must be defined if the header file was not found, in order
59751         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
59752
59753 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59754
59755         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
59756         initializers for struct pentry_state.
59757         (__argp_error): Check return value of __asprintf
59758         (__argp_failure): Translate error message
59759
59760         * lib/argp-parse.c: Removed braces around the expansion of N_()
59761
59762 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59763
59764         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
59765         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
59766         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
59767         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
59768         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
59769         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
59770         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
59771         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
59772         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
59773         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
59774         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
59775         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
59776         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
59777         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
59778         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
59779         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
59780         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
59781         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
59782         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
59783         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
59784         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
59785         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
59786         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
59787         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
59788         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
59789         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
59790         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
59791         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
59792         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
59793         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
59794         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
59795         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
59796         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
59797         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
59798         xstrtol.m4, xstrtoumax.m4, yesno.m4:
59799         Use an all-permissive copyright notice, recommended by RMS.
59800
59801 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59802
59803         * modules/chdir-long (Depends-on): Remove mempcpy.
59804
59805 2005-01-21  Jim Meyering  <jim@meyering.net>
59806
59807         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
59808         same value as for Solaris 9.
59809
59810         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
59811         component length.  This included changing the parameter to be
59812         of type `char *' rather than `char const *'.
59813         * lib/chdir-long.h (chdir_long): Update prototype.
59814
59815         * lib/openat.c (fdopendir, fstatat): New functions.
59816         * lib/openat.h: Include headers required for use of DIR and struct
59817         stat.
59818         [AT_SYMLINK_NOFOLLOW]: Define.
59819         (fdopendir, fstatat): Add prototypes.
59820
59821 2005-01-21  Bruno Haible  <bruno@clisp.org>
59822
59823         * modules/classpath: New file.
59824         * MODULES.html.sh (Java): Add classpath.
59825
59826 2005-01-21  Bruno Haible  <bruno@clisp.org>
59827
59828         * lib/classpath.h: New file, from GNU gettext.
59829         * lib/classpath.c: New file, from GNU gettext.
59830
59831 2005-01-20  Simon Josefsson  <jas@extundo.com>
59832
59833         * modules/version-etc-fsf: New file.
59834
59835 2005-01-20  Simon Josefsson  <jas@extundo.com>
59836
59837         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
59838         * lib/version-etc.c: Remove version_etc_copyright.
59839         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
59840         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
59841
59842 2005-01-20  Simon Josefsson  <jas@extundo.com>
59843
59844         * lib/base64.h (isbase64): Add.
59845
59846         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
59847         using a unsigned prototype, don't inline.
59848         (base64_decode): Use it.
59849
59850 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59851
59852         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
59853         it.
59854
59855 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59856
59857         * lib/save-cwd.c (save_cwd): Remove code to support the case
59858         where fchdir is missing or flaky.
59859
59860 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59861
59862         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
59863
59864 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59865
59866         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
59867         AC_LIBSOURCES now does this.
59868         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
59869         with new ullong_max module.
59870
59871 2005-01-19  Bruno Haible  <bruno@clisp.org>
59872
59873         * modules/sh-quote: New file.
59874         * MODULES.html.sh (Executing programs): Add sh-quote.
59875
59876 2005-01-19  Bruno Haible  <bruno@clisp.org>
59877
59878         * lib/sh-quote.h: New file, from GNU gettext.
59879         * lib/sh-quote.c: New file, from GNU gettext.
59880
59881 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59882
59883         Merge from coreutils.
59884         * m4/ullong_max.m4: New file.
59885         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
59886         (gl_MACROS): Assume localeconv exists.
59887
59888 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59889
59890         Merge changes from coreutils, as described below in several
59891         changelogs dated today.
59892
59893         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
59894         (O_DIRECTORY): Remove; not needed here, since "." must be
59895         a directory.  All uses removed.
59896         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
59897         universal on Suns, and we also need to test for IRIX.
59898         Revamp code to use 'if' rather than '#if'.
59899         Avoid unnecessary comparison of cwd->desc to 0.
59900
59901         * lib/utimens.c (futimens): Robustify the previous patch, by checking
59902         for known valid error numbers rather than observed invalid ones.
59903
59904 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59905
59906         * modules/ullong_max: New file.
59907
59908         * modules/chdir-long, modules/openat: New files.
59909         * modules/save-cwd (Depends-on): Depend on chdir-long.
59910         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
59911
59912 2005-01-18  Jim Meyering  <jim@meyering.net>
59913
59914         Merge from coreutils.
59915         * m4/chdir-long.m4, m4/openat.m4: New files.
59916         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
59917         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
59918         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
59919         is sane and DOES follow symlinks.  Besides, testing 20 different
59920         systems found no broken chown implementations.
59921         Prompted by a change in rsync's copy of this macro.
59922         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
59923
59924         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
59925
59926         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
59927         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
59928         NULL-means-set-to-current-time semantics.
59929         Remove temporary file immediately, rather than waiting
59930         for configure's at-exit trap code to do it.
59931
59932 2005-01-18  Jim Meyering  <jim@meyering.net>
59933
59934         * lib/version-etc.c (version_etc_copyright): Update copyright date.
59935
59936         * lib/utimens.c (futimens): Account for the fact that futimes
59937         can also fail with errno == ENOSYS or errno == ENOENT.
59938         Patch from Dmitry V. Levin.
59939
59940         Change the name of the robust chdir function from chdir to chdir_long.
59941         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
59942         (restore_cwd): Use chdir_long, not chdir.
59943         * lib/chdir-long.c: Renamed from chdir.c.
59944         * lib/chdir-long.h: Renamed from chdir.h.
59945         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
59946         Hurd.
59947
59948 2005-01-18  Bruno Haible  <bruno@clisp.org>
59949
59950         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
59951         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
59952         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
59953         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
59954         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
59955         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
59956         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
59957         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
59958         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
59959         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
59960         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
59961         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
59962         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
59963         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
59964         Use an all-permissive copyright notice, recommended by RMS.
59965
59966 2005-01-18  Bob Proulx  <bob@proulx.com>
59967
59968         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
59969         simplify offsetof() macro construct to avoid compile failure with
59970         native HP-UX 11.0 ANSI C compiler.
59971
59972 2005-01-17  Bruno Haible  <bruno@clisp.org>
59973
59974         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
59975         redundant because stpncpy.m4 takes care of it.
59976
59977 2005-01-17  Bruno Haible  <bruno@clisp.org>
59978
59979         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
59980
59981 2005-01-17  Bruno Haible  <bruno@clisp.org>
59982
59983         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
59984         used.
59985
59986 2005-01-17  Bruno Haible  <bruno@clisp.org>
59987
59988         * lib/fwriteerror.h (fwriteerror): Change specification to include
59989         fclose.
59990         * lib/fwriteerror.c: Include <stdbool.h>.
59991         (fwriteerror): At the end, close the file stream. Record whether
59992         stdout was already closed.
59993
59994 2005-01-17  Bruno Haible  <bruno@clisp.org>
59995
59996         * lib/execute.c (environ): Declare if needed.
59997         * lib/pipe.c (environ): Likewise.
59998         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
59999
60000 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60001
60002         * modules/argp: Depend on vsnprintf
60003
60004 2005-01-10  Jim Meyering  <jim@meyering.net>
60005
60006         * modules/closeout (Depends-on): Add atexit.
60007
60008 2005-01-06  Bruno Haible  <bruno@clisp.org>
60009
60010         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
60011
60012 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60013
60014         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
60015         definitions to be after all include files, to avoid collisions.
60016         Problem reported by Bob Proulx.
60017
60018 2005-01-04  Jim Meyering  <jim@meyering.net>
60019
60020         Changes imported from coreutils.
60021         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
60022         as the mkstemp template, use a temporary directory and an
60023         8.3-friendly template to avoid trouble on systems like DJGPP.
60024         Reported by Juan M. Guerrero via Stepan Kasal.
60025         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
60026         close. Remove the temporary directory right away, rather than waiting
60027         for configure's at-exit trap code to do it.
60028         Suggestion from Stepan Kasal.
60029
60030 2005-01-01  Simon Josefsson  <jas@extundo.com>
60031
60032         * gnulib-tool: Print #include directives when --import'ing.
60033
60034 2004-12-28  Simon Josefsson  <jas@extundo.com>
60035
60036         * tests/test-base64.c: Include required header files.  Remove
60037         unused variables.
60038
60039 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60040
60041         * modules/error (Depends-on): Remove gettext.
60042
60043 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60044
60045         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
60046         not needed.  This removes a dependency on the gettext module.
60047         [defined _LIBC]: Do not include <libintl.h>; not needed.
60048
60049 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60050
60051         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
60052         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
60053
60054 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60055
60056         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
60057         HAVE_DECL_STRTOLD.
60058
60059 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60060
60061         * modules/getdate (Depends-on): Remove alloca-opt.
60062
60063 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60064
60065         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
60066
60067 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60068
60069         * lib/argp-parse.c: Include <stddef.h>.
60070         (alignof, alignto): New macros.
60071         (parser_init): Don't assume that void * is aligned sufficiently
60072         for struct option.
60073
60074         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
60075         need to extend the stack.
60076         (YYINITDEPTH): New macro, so that the initial stack isn't overly
60077         large.
60078
60079 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60080
60081         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
60082
60083 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60084
60085         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
60086         (2004-10-24) change.  Apparently this was a false alarm.
60087
60088         * modules/getdate: Depend on alloca-opt, not alloca.
60089
60090 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60091
60092         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
60093         Remove now-obsolete comment about AIX.
60094         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
60095         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
60096         (YYMAXDEPTH): New macro.
60097
60098 2004-12-18  Simon Josefsson  <jas@extundo.com>
60099
60100         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
60101
60102 2004-12-18  Bruno Haible  <bruno@clisp.org>
60103
60104         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
60105
60106 2004-12-18  Bruno Haible  <bruno@clisp.org>
60107
60108         * lib/fatal-signal.c (fatal_signals): Make non-const.
60109         (init_fatal_signals): New function.
60110         (uninstall_handlers, install_handlers): Ignore signals that were set to
60111         SIG_IGN.
60112         (at_fatal_signal): Call init_fatal_signals.
60113         (init_fatal_signal_set): Likewise. Ignore signals that were set to
60114         SIG_IGN.
60115         Reported by Paul Eggert.
60116
60117 2004-12-18  Bruno Haible  <bruno@clisp.org>
60118
60119         * doc/alloca.texi: New file.
60120         * doc/alloca-opt.texi: New file.
60121
60122 2004-12-17  Jim Meyering  <jim@meyering.net>
60123
60124         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
60125         Otherwise, install-sh could exit with improper exit status when
60126         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
60127
60128 2004-12-16  Simon Josefsson  <jas@extundo.com>
60129
60130         * tests/test-base64.c: Add license.
60131
60132 2004-12-15  Stepan Kasal  <address@hidden>
60133
60134         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
60135
60136 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
60137
60138         * modules/getcwd (Files): Add m4/d-ino.m4.
60139         Suggested by Mark D. Baushke.
60140
60141 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60142
60143         * lib/getdate.y (textint): New member "negative".
60144         (time_zone_hhmm): New function.
60145         Expect 14 shift-reduce conflicts, not 13.
60146         (o_colon_minutes): New rule.
60147         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
60148         (yylex): Set the "negative" member of signed numbers.
60149
60150 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60151
60152         * doc/getdate.texi (Time of day items, Time zone items):
60153         Describe new formats +00:00, UTC+00:00.
60154
60155 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60156
60157         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
60158         spurious "-l"s.  Problem reported by Stepan Kasal.
60159
60160 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
60161
60162         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
60163         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
60164
60165 2004-12-04  Simon Josefsson  <jas@extundo.com>
60166
60167         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
60168         Vandoorselaere <yoann@prelude-ids.org>.
60169
60170 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60171
60172         Changes imported from coreutils.
60173         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
60174         exist.
60175         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
60176
60177 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60178
60179         Changes imported from coreutils.
60180         * lib/hard-locale.c: Assume <locale.h> exists.
60181         Include "strdup.h".
60182         (GLIBC_VERSION): New macro.
60183         (hard_locale): Assume setlocale exists.
60184         Rewrite to avoid #ifdef.
60185         Use strdup rather than malloc + strcpy.
60186         * lib/human.c: Assume <locale.h> exists.
60187         (human_readable): Assume localeconv exists.
60188
60189 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60190
60191         * modules/hard-locale (Depends-on): Add strdup.
60192
60193 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60194
60195         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
60196         convert T2, not T.  (Imported from libc.)
60197
60198 2004-11-30  Simon Josefsson  <jas@extundo.com>
60199
60200         * modules/restrict (License): Change to LGPL.
60201
60202 2004-11-30  Simon Josefsson  <jas@extundo.com>
60203
60204         * m4/restrict.m4: Add copyright and copying conditions.
60205
60206 2004-11-30  Simon Josefsson  <jas@extundo.com>
60207
60208         * m4/base64.m4: New file.
60209
60210 2004-11-30  Simon Josefsson  <jas@extundo.com>
60211
60212         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
60213         base64.
60214
60215         * tests/test-base64.c: New file.
60216
60217         * modules/base64: New file.
60218
60219 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60220
60221         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
60222         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
60223
60224         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
60225
60226 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60227
60228         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
60229         (__getcwd.c): Don't restore errno; glibc doesn't.
60230         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
60231         first, falling back to our code only if its results look suspicious.
60232         Ensure that the resulting buffer is only as large as necessary.
60233
60234         * lib/readutmp.c: Include readutmp.h first.
60235         Include <errno.h>, since readutmp.h no longer does that.
60236         * lib/readutmp.h: Don't include <errno.h>,
60237         <sys/param.h>, <time.h>; not needed to establish interface.
60238         (errno): Remove decl.
60239         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
60240         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
60241         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
60242
60243 2004-11-28  Simon Josefsson  <jas@extundo.com>
60244
60245         * lib/base64.h, base64.c: New file.
60246
60247 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60248
60249         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
60250
60251 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60252
60253         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
60254         (Depends-on): Remove pathmax, same.  Add mempcpy.
60255         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
60256         (Makefile.am): Append getcwd.h to lib_SOURCES.
60257         (Include): Add getcwd.h.
60258         (Maintainer): Change from Jim Meyering to "all, glibc",
60259         since getdate now uses intended-for-glibc code.
60260         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
60261         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
60262
60263 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60264
60265         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
60266         HP's ANSI C compiler.
60267         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
60268         Declaring int functions causes warnings on some modern systems and
60269         shouldn't be needed to compile on ancient ones.
60270         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
60271         defined.
60272
60273         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
60274         with the following changes.
60275         (__set_errno): Parenthesize properly.
60276         Include <stdbool.h>.
60277         (MIN, MAX, MATCHING_INO): New macros.
60278         (__getcwd): Define with prototype, not K&R form.
60279         Use heuristics to allocate default buffer on stack if possible.
60280         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
60281         behavior, and to avoid the PATH_MAX limit when computing
60282         ../../../../...
60283         Use MATCHING_INO to compare inode number to file.
60284         Check for arithmetic overflow in size calculations.
60285         Fix bug in reallocation of dot array that caused getcwd to fail
60286         on directories nested deeper than 75.
60287         Be more careful about saving errno on error.
60288         Do not use realloc; use only free+malloc, as this is a bit
60289         more flexible and avoids a needless copy operation.
60290         Do not inspect st_dev and st_ino for symbolic links; POSIX
60291         doesn't specify the latter.
60292         Check for closedir errors.
60293         Avoid needless casts.
60294         Use "#ifdef weak_alias" around weak_alias, to be like other
60295         glibc code.
60296         The following changes to getcwd.c have effect only when used in
60297         gnulib; they have no effect inside glibc proper.
60298         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
60299         as alloca isn't used.
60300         (alloca, __alloca): Likewise.
60301         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
60302         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60303         unconditionally, as gnulib assumes C89 or better.
60304         Do not include <sys/param.h>.
60305         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
60306         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
60307         better.
60308         (NULL) [!defined NULL]: Remove; we assume C89 or better.
60309         Include <dirent.h> in a way that is compatible with modern Autoconf.
60310         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
60311         New macros, if not already defined.
60312         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
60313         Use "_LIBC", not "defined _LIBC", for consistency.
60314         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
60315         a mempcpy module.
60316         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
60317         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
60318         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
60319         credit only to Jim Meyering and adjust the copyright dates.
60320         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
60321         <stdlib.h>, <unistd.h>, "pathmax.h".
60322         Instead, include "xgetcwd.h" (first) and "getcwd.h".
60323         (INITIAL_BUFFER_SIZE): Remove.
60324         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
60325
60326 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60327
60328         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
60329         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
60330         Use the _ONCE methods, for efficiency.
60331         Check for fcntl.h.  In test program, include <errno.h>
60332         and <fcntl.h> if available.  Remove old K&R cruft from
60333         test program.  Check for common errors in GNU/Linux,
60334         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
60335         don't do AC_LIBOBJ, as that's getcwd.m4's job.
60336         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
60337         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
60338         name accordingly.
60339         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
60340         accommodate new getcwd.c.
60341         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
60342         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
60343         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
60344         that's all we need now.
60345
60346 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60347
60348         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
60349         argp-parse.c depends on getopt internals, that means we should
60350         always use our getopt, to be on the safe side.
60351         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
60352         order not to spoil the result of an eventual previous invocation
60353         of gl_GETOPT_SUBSTITUTE.
60354
60355 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60356
60357         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
60358         redefinition warnings. To avoid them, include the defines
60359         in `#if !defined __need_getopt ... #endif'. The only place
60360         where __getopt_argv_const is used is in definitions
60361         of getopt_long and getopt_long_only below, which are as well
60362         protected by `#ifndef __need_getopt'.
60363         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
60364         __need_getopt after including <stdio.h> and <unistd.h> These
60365         headers might have defined it.
60366
60367 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60368
60369         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
60370
60371 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60372
60373         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
60374         (futimens): New function, which uses futimes if available.
60375         (futimens, utimens): Support timespec==NULL, with same semantics
60376         as utime and utimens.
60377         * lib/utimens.h (futimens): New decl.
60378
60379 2004-11-23  Jim Meyering  <jim@meyering.net>
60380
60381         * lib/getopt_.h: Remove trailing blanks.
60382
60383 2004-11-23  Jim Meyering  <jim@meyering.net>
60384
60385         * lib/__fpending.c: Add comment.
60386
60387 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
60388
60389         * modules/canonicalize (Depends-on): Add xreadlink.
60390         Problem reported by James Youngman.
60391
60392 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60393
60394         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
60395         New macros.
60396         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
60397         optopt): Use them instead of invoking ## directly; otherwise, the
60398         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
60399
60400 2004-11-19  Bruno Haible  <bruno@clisp.org>
60401
60402         * lib/strtok_r.c: Move comments from here...
60403         * lib/strtok_r.h: ... to here.
60404
60405 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60406
60407         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
60408         implementations that mishandle size_t overflow.
60409
60410 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60411
60412         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
60413         might fail.  Problem reported by Yoann Vandoorselaere.
60414         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
60415         implementations that mishandle size_t overflow.
60416
60417 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60418
60419         * modules/canon-host (Depends-on): Add strdup.
60420
60421 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60422
60423         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
60424
60425 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60426
60427         * lib/canon-host.c: Include "strdup.h".
60428         (canon_host): Use getaddrinfo if available, so that IPv6 works.
60429         Use strdup instead of malloc/strcpy to duplicate strings.
60430
60431         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
60432         (human_space_before_unit): New constant.
60433         * lib/human.c (human_readable): Support it.
60434
60435         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
60436         (xgetcwd): Set errno correctly when failing.
60437         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
60438         the failure is actually due to a PATH_MAX problem.
60439
60440         Further getopt changes to make it more likely that glibc will
60441         buy the changes back.
60442         * lib/getopt.c (POSIXLY_CORRECT): New constant.
60443         (getopt): Use it, so to preserve glibc semantic
60444         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
60445         when compiling for libc.
60446         * lib/getopt_.h (__getopt_argv_const): Bring it back.
60447         (getopt_long, getopt_long_only): Use it.
60448
60449         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60450         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
60451         (getopt): Argv is now char * const *, as per standard.
60452         (_getopt_internal_r, _getopt_internal): Argv is now char **,
60453         not char *__getopt_argv_const *.
60454         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60455         _getopt_long_only_r): Likewise.
60456         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
60457         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60458         _getopt_long_r, _getopt_long_only_r): Likewise.
60459         * lib/getopt_.h (__getopt_argv_const): Remove.
60460         (getopt): Argv is now char * const *, as per standard.
60461
60462         * lib/getdate.y (tORDINAL): New token.
60463         (day, relunit): Allow it for relative times.
60464         (relative_time_table): Use tORDINAL for ordinals.
60465
60466 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60467
60468         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
60469         Document that "second" isn't allowed as an ordinal number.
60470
60471 2004-11-16  Jim Meyering  <jim@meyering.net>
60472
60473         * modules/closeout (Depends-on): Add fpending.
60474
60475 2004-11-15  Jim Meyering  <jim@meyering.net>
60476
60477         * lib/closeout.c: Include "__fpending.h" once again.
60478         Include <stdbool.h>.
60479         (close_stdout): Don't fail just because stdout was closed initially,
60480         since some programs don't write to stdout in the normal course of
60481         operation (other than --version and --help), and we don't want this
60482         function to make e.g. `touch file >&-' fail.
60483         But do fail if it was closed and someone has tried to write to it.
60484         E.g., `printf foo >&-' must fail.
60485
60486 2004-11-13  Jim Meyering  <jim@meyering.net>
60487
60488         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
60489
60490 2004-11-12  Simon Josefsson  <jas@extundo.com>
60491
60492         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
60493         small doc fix is still pending.
60494
60495 2004-11-11  Simon Josefsson  <jas@extundo.com>
60496
60497         * modules/strtok_r: New file.
60498
60499         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60500         strtok_r.
60501
60502 2004-11-11  Simon Josefsson  <jas@extundo.com>
60503
60504         * m4/strtok_r.m4: New file.
60505
60506         * m4/getopt.m4: Replace opterr.
60507
60508 2004-11-11  Simon Josefsson  <jas@extundo.com>
60509
60510         * lib/strtok_r.h, strtok_r.c: New file.
60511
60512 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60513
60514         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
60515         of replacing opterr, getopt, etc.  This should handle the
60516         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
60517
60518 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60519
60520         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
60521         we can stop lying to compilers about the constness of argv when we
60522         are compiled outside glibc.
60523         (getopt, getopt_long, getopt_long_only): Use it.
60524         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60525         _getopt_internal, getopt): Likewise.
60526         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60527         _getopt_long_only_r): Likewise.
60528         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60529         _getopt_long_r, _getopt_long_only_r): Likewise.
60530
60531         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
60532         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
60533         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
60534         the other external symbols.
60535         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
60536         declaration, since the above renaming now works around collisions.
60537
60538 2004-11-11  Jim Meyering  <jim@meyering.net>
60539
60540         * lib/linebreak.c: Remove trailing blanks.
60541         * lib/alloca_.h: Likewise.
60542         * lib/acosl.c: Likewise.
60543         * lib/euidaccess.c: Likewise.
60544         * lib/allocsa.h: Likewise.
60545
60546 2004-11-10  Simon Josefsson  <jas@extundo.com>
60547
60548         * m4/getaddrinfo.m4: New file.
60549
60550 2004-11-10  Simon Josefsson  <jas@extundo.com>
60551
60552         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
60553
60554 2004-11-10  Simon Josefsson  <jas@extundo.com>
60555
60556         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60557         getaddrinfo.
60558
60559         * modules/getaddrinfo: New file.
60560
60561 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60562
60563         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
60564
60565 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60566
60567         * lib/mktime.c (SHR): New macro, which is a portable
60568         substitute for >> that should work even on Crays.
60569         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
60570         Problem reported by Mark D. Baushke in
60571         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
60572         * lib/getdate.y (SHR): Likewise.
60573         (tm_diff): Use it.
60574         * lib/strftime.c (SHR): Likewise.
60575         (tm_diff): Use it.
60576         * lib/quotearg.c (struct quoting_options): Use unsigned int for
60577         quote_these_too, so that right shifts are well defined.  All uses
60578         changed.
60579
60580 2004-11-10  Jim Meyering  <jim@meyering.net>
60581
60582         Ensure that no close failure goes unreported.
60583         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
60584         return early when it seems there's nothing to flush.
60585         Don't include __fpending.h.
60586
60587 2004-11-10  Jim Meyering  <jim@meyering.net>
60588
60589         * modules/closeout (Depends-on): Remove fpending.
60590
60591 2004-11-10  Jim Meyering  <jim@meyering.net>
60592
60593         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
60594
60595 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60596
60597         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
60598         gl_FUNC_STRFTIME.
60599         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
60600         and AC_REQUIRE when possible, to avoid duplicate checks.
60601         Check for <wchar.h>.
60602
60603 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60604
60605         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
60606
60607 2004-11-09  Bruno Haible  <bruno@clisp.org>
60608
60609         * m4/sockpfaf.m4: New file.
60610
60611 2004-11-05  Bruno Haible  <bruno@clisp.org>
60612
60613         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
60614         Reported by Mark D. Baushke <mdb@cvshome.org>.
60615
60616 2004-11-04  Bruno Haible  <bruno@clisp.org>
60617
60618         2004-09-11  Bruno Haible  <bruno@clisp.org>
60619                 * allocsa.valgrind: New file.
60620         2004-02-06  Bruno Haible  <bruno@clisp.org>
60621                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
60622                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
60623                 Reported by Christopher Seip <chris.seip@hp.com>.
60624
60625 2004-11-04  Bruno Haible  <bruno@clisp.org>
60626
60627         * modules/allocsa (Files): Add lib/allocsa.valgrind.
60628         (Makefile.am): Distribute it.
60629
60630 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60631
60632         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
60633         with errno == ERANGE if the buffer is too small.
60634         Problem reported by Mark D. Baushke.
60635
60636 2004-11-03  Albert Chin  <china@thewrittenword.com>
60637             Paul Eggert  <eggert@cs.ucla.edu>
60638
60639         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
60640         equivalent, substitute $ac_type for equivalent type rather than
60641         blindly using uint32_t *always* which won't work if uint32_t is not
60642         available.  Define _UINT32_T to work around typedef of uint32_t if
60643         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
60644         2.5.1.
60645
60646 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60647
60648         * m4/jm-macros.m4: Sync from coreutils.
60649         (gl_MACROS): Check for mbrlen, for pathchk.
60650         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
60651
60652 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60653
60654         * lib/xreadlink.c (MAXSIZE): New macro.
60655         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
60656         size does not exceed MAXSIZE.  Avoid cast.
60657         As suggested by Mark D. Baushke in
60658         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
60659         if readlink fails with buffer size just under MAXSIZE, try again
60660         with MAXSIZE.
60661
60662 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60663
60664         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
60665
60666 2004-11-02  Derek R. Price  <derek@ximbiot.com>
60667         and  Paul Eggert  <eggert@cs.ucla.edu>
60668
60669         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
60670         (get_date): Overparenthesize to avoid GCC warning.
60671
60672 2004-11-02  Bruno Haible  <bruno@clisp.org>
60673
60674         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
60675         returns void.
60676
60677 2004-11-02  Bruno Haible  <bruno@clisp.org>
60678
60679         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
60680         function returns void.
60681
60682 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60683
60684         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
60685         fflush_unlocked, flockfile, funlockfile, funlockfile,
60686         fputs_unlocked, putc_unlocked.
60687
60688 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60689
60690         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60691         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
60692         already declared.
60693
60694 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60695
60696         * modules/getdate (Files): Add doc/getdate.texi.
60697         (Depends-on): Add setenv, xalloc.
60698
60699 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60700
60701         * lib/getdate.y: Add support for TZ="foo" within a date string.
60702         Fix some bugs near time_t boundaries.  Reject dates with
60703         out-of-range components, e.g., "Sept 31".
60704         Include <stdlib.h>, "setenv.h", "xalloc.h".
60705         (ISDIGIT_LOCALE): Remove; unused.
60706         Note that the TZ and time functions used here are not reentrant.
60707         (mktime_ok, get_tz): New functions.
60708         (TZBUFSIZE): New constant.
60709         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
60710         This requires that we sometimes generate our own TZ="XXX..." setting.
60711
60712 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60713
60714         * doc/getdate.texi: New file, from coreutils with modifications for
60715         the new TZ parsing.
60716
60717 2004-10-27  Derek R. Price  <derek@ximbiot.com>
60718
60719         * lib/mktime.c (not_equal_tm): Remove redundant check.
60720
60721 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60722
60723         * modules/regex (lib_SOURCES): Add regex.c.
60724         Reported by James Youngman in
60725         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
60726
60727 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60728
60729         * lib/getdate.y: Use Bison 1.875 features, and some minor
60730         code cleanups.  This change does not affect semantics.
60731         Don't include <stdlib.h>; no longer needed.
60732         Don't include unlocked-io.h; only the "#if TEST" code uses
60733         stdio, and performance isn't crucial there.
60734         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
60735         Bison 1.875 features as described below.
60736         All uses of "PC." replaced by "pc->".
60737         (YYSTYPE): Add a forward declaration.
60738         (yylex, yyerror): Use full prototypes in forward decls.
60739         Use "%pure-parser" rather than obsolescent "%pure_parser".
60740         Use %parse-param and %lex-param instead of obsolescent
60741         YYPARSE_PARAM and YYLEX_PARAM.
60742         (meridian_table, month_and_day_table, time_units_table,
60743         relative_time_table, time_zone_table, military_table,
60744         lookup_zone, lookup_word, get_date):
60745         Use NULL instead of 0 where appropriate.
60746         (to_hour): Avoid abort (), to avoid a dependency on
60747         stdlib.h.
60748         (yyerror, yylex): Now accepts parser_control * arg.
60749         (main) [TEST]: Use '\0' rather than 0 for char.
60750
60751 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60752
60753         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
60754
60755 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60756
60757         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
60758         It's now the caller's responsibility to handle the case where
60759         !HAVE_GETPAGESIZE && !defined getpagesize.
60760
60761         * lib/mktime.c (leapyear): Arg is long int, not int.
60762
60763 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
60764
60765         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
60766
60767 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60768
60769         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
60770         missing.  Problem reported by James Youngman.
60771
60772 2004-10-16  Simon Josefsson  <jas@extundo.com>
60773
60774         * gnulib-tool: Fix comments.  Fix parse problem.
60775         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
60776
60777 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
60778
60779         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
60780         implementation of getopt_long.  Problem reported by Alexander Taler in:
60781         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
60782
60783 2004-10-15  Bruno Haible  <bruno@clisp.org>
60784
60785         * gnulib-tool: Untabify. Initialize supplied_libname.
60786         (func_usage): More homogenous output.
60787         (func_modules_transitive_closure, func_modules_to_filelist,
60788         func_emit_lib_Makefile_am): New functions.
60789         (func_import): New function, extracted from big case statement. Use
60790         func_get_license, func_modules_transitive_closure,
60791         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
60792         opt_lgpl. Don't use test -a, as it's not portable.
60793         (func_create_testdir): Use func_modules_transitive_closure,
60794         func_modules_to_filelist, func_emit_lib_Makefile_am.
60795
60796 2004-10-15  Bruno Haible  <bruno@clisp.org>
60797
60798         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
60799
60800 2004-10-15  Bruno Haible  <bruno@clisp.org>
60801
60802         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
60803         the portions belonging to each module.
60804         Suggested by Derek Robert Price <derek@ximbiot.com>.
60805
60806 2004-10-12  Simon Josefsson  <jas@extundo.com>
60807
60808         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60809         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
60810         to real functions.
60811
60812 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60813
60814         * modules/vsnprintf: New file.
60815
60816 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60817
60818         * m4/vsnprintf.m4: New file.
60819
60820 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60821
60822         * lib/vsnprintf.h: New file.
60823         * lib/vsnprintf.c: New file.
60824
60825 2004-10-11  Bruno Haible  <bruno@clisp.org>
60826
60827         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
60828         vsnprintf.
60829
60830 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60831
60832         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
60833
60834 2004-10-07  Bruno Haible  <bruno@clisp.org>
60835
60836         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
60837         fits into the provided buffer.
60838
60839 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60840
60841         * lib/diacrit.c, diacrit.h: Add GPL notice.
60842
60843         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
60844         notice.
60845         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
60846         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
60847         This avoids a potential constant-folding bug.
60848
60849 2004-10-05  Bruno Haible  <bruno@clisp.org>
60850
60851         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
60852         for the declaration of strsep.
60853
60854 2004-10-05  Bruno Haible  <bruno@clisp.org>
60855
60856         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
60857
60858 2004-10-04  Simon Josefsson  <jas@extundo.com>
60859
60860         * modules/memmem: New file.
60861         * tests/test-memmem.c: New file.
60862         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
60863
60864 2004-10-04  Simon Josefsson  <jas@extundo.com>
60865
60866         * m4/memmem.m4: New file.
60867
60868 2004-10-04  Simon Josefsson  <jas@extundo.com>
60869
60870         * lib/memmem.h: New file.
60871         * lib/memmem.c: New file, taken from glibc.
60872
60873 2004-10-04  Simon Josefsson  <jas@extundo.com>
60874
60875         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
60876         '#ifdef USE_UNLOCKED_IO'.
60877
60878 2004-10-04  Simon Josefsson  <jas@extundo.com>
60879
60880         * config/srclist.txt: Add memmem from glibc.
60881
60882 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60883
60884         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
60885
60886         * modules/argmatch, modules/argp, modules/closeout, modules/error,
60887         modules/exclude, modules/getdate, modules/getline,
60888         modules/getndelim2, modules/getpass, modules/getpass-gnu,
60889         modules/getusershell, modules/linebuffer, modules/md5,
60890         modules/mountlist, modules/posixtm, modules/readtokens,
60891         modules/readutmp, modules/regex, modules/sha1,
60892         modules/version-etc, modules/yesno:
60893         Remove dependency on unlocked-io.
60894
60895 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60896
60897         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
60898
60899         * m4/unlocked-io.m4: Add copyright notice.
60900         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
60901
60902 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60903
60904         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
60905         * lib/xmalloc.c (xmemdup): Likewise.
60906         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
60907         XFREE): Remove these long-obsolescent macros.
60908         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
60909         * lib/xstrdup.c: Remove.
60910
60911         * lib/regex.c (re_comp): Cast gettext return value to char *,
60912         Problem reported by Martin Neitzel via Mark D. Baushke.
60913
60914 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60915
60916         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
60917         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
60918         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
60919         regex.c, sha1.c, version-etc.c, yesno.c:
60920         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
60921         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
60922         the includer's responsibility.
60923
60924         Sync from coreutils.
60925
60926         * lib/modechange.c (mode_compile): Don't decrement a pointer that
60927         points to the start of a string, as the C Standard says the
60928         resulting behavior is undefined.
60929
60930         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
60931         simple -> simple_backups, numbered_existing ->
60932         numbered_existing_backups, numbered -> numbered_backups
60933         to avoid shadowing problems.  All uses changed.
60934         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
60935         * lib/backupfile.c (check_extension, numbered_backup):
60936         Rename locals to avoid shadowing 'basename'.
60937         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
60938         once.
60939
60940         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
60941         * lib/.cvsignore: Add getopt.h.
60942
60943 2004-10-04  Bruno Haible  <bruno@clisp.org>
60944
60945         * modules/README: New file.
60946         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
60947         not a module.
60948
60949 2004-10-02  Jim Meyering  <jim@meyering.net>
60950
60951         * lib/dirfd.h, getpagesize.h: Add copyright notice.
60952
60953 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60954
60955         * modules/strsep: New file.
60956
60957 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60958
60959         * m4/strsep.m4: New file.
60960
60961 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60962
60963         * lib/strsep.h: New file.
60964         * lib/strsep.c: New file.
60965
60966 2004-10-01  Simon Josefsson  <jas@extundo.com>
60967
60968         * lib/snprintf.c (snprintf): Handle size==0.
60969
60970 2004-10-01  Simon Josefsson  <jas@extundo.com>
60971             Bruno Haible  <bruno@clisp.org>
60972
60973         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
60974         (snprintf): Declare 'args'.
60975
60976 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
60977
60978         * lib/snprintf.c: Remove comments as to why each header is needed.
60979
60980 2004-10-01  Bruno Haible  <bruno@clisp.org>
60981
60982         * MODULES.html.sh: Add strsep.
60983
60984 2004-09-30  Simon Josefsson  <jas@extundo.com>
60985
60986         * modules/snprintf: New file.
60987
60988 2004-09-30  Simon Josefsson  <jas@extundo.com>
60989
60990         * m4/snprintf.m4: New file.
60991
60992 2004-09-30  Simon Josefsson  <jas@extundo.com>
60993
60994         * lib/snprintf.h, lib/snprintf.c: New files.
60995
60996 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60997
60998         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
60999         (hol_entry_help): Never translate an empty string.
61000         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
61001         * lib/argp.h (OPTION_NO_TRANS): New option.
61002
61003 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61004
61005         * modules/argp (Maintainer): Replace Simon Josefsson
61006         by Sergey Poznyakoff.
61007
61008 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61009
61010         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
61011         changes merged back into glibc.
61012
61013 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61014
61015         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
61016
61017 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
61018
61019         * lib/xvasprintf.c: Include xalloc.h.
61020         (xvasprintf): Use xalloc_die, not xmalloc_die.
61021
61022 2004-09-29  Bruno Haible  <bruno@clisp.org>
61023
61024         * modules/alloca-opt: New file, derived from modules/alloca.
61025         * modules/allocsa: Depend on alloca-opt instead of alloca.
61026         * modules/setenv: Likewise.
61027         * modules/vasnprintf: Likewise.
61028         * MODULES.html.sh: Add alloca-opt.
61029
61030 2004-09-28  Simon Josefsson  <jas@extundo.com>
61031
61032         * gnulib-tool: New parameter --lgpl, to asseert that modules are
61033         LGPL, and to replace license template from GPL to LGPL.
61034
61035 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61036
61037         * modules/dummy: Change license to LGPL.
61038
61039 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61040
61041         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
61042
61043 2004-09-24  Simon Josefsson  <jas@extundo.com>
61044
61045         * modules/minmax (License): Change from GPL to LGPL.
61046
61047 2004-09-23  Simon Josefsson  <jas@extundo.com>
61048
61049         * gnulib-tool (--import): Typo.
61050
61051 2004-09-23  Simon Josefsson  <jas@extundo.com>
61052
61053         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
61054
61055 2004-09-22  Bruno Haible  <bruno@clisp.org>
61056
61057         * modules/*: Add 'License' field.
61058         * gnulib-tool: Accept --extract-license option.
61059         (func_get_license): New function.
61060
61061 2004-09-21  Bruno Haible  <bruno@clisp.org>
61062
61063         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
61064         Reported by Simon Josefsson.
61065
61066 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61067
61068         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
61069         gl_AC_TYPE_LONG_LONG.
61070
61071 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61072
61073         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
61074
61075 2004-09-18  Simon Josefsson  <jas@extundo.com>
61076         and  Paul Eggert  <eggert@cs.ucla.edu>
61077
61078         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
61079         calls with autoreconf.  Define GL_LIB.
61080
61081 2004-09-14  Karl Berry  <karl@gnu.org>
61082
61083         * config/srclist.txt: unsync setenv.c, sigh.
61084
61085 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61086
61087         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
61088         Problem reported by Bruno Haible in:
61089         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
61090
61091 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61092
61093         * config/srclist.txt: Comment out argp-pvh.c.
61094
61095 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
61096
61097         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
61098         in case some system header has #define'd it.  Problem reported by
61099         Soeren D. Schulze in
61100         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
61101
61102 2004-09-09  Karl Berry  <karl@gnu.org>
61103
61104         * regex.[ch]: delete from the root.  These were supposed to be
61105                 synced with emacs cvs, but this has not happened for about
61106                 a year, and anyway nothing else uses emacs regex.[ch].
61107                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
61108                 lib/regex[.ch] is untouched.
61109
61110 2004-09-09  Bruno Haible  <bruno@clisp.org>
61111
61112         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
61113
61114 2004-09-09  Bruno Haible  <bruno@clisp.org>
61115
61116         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
61117         modifications.
61118         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
61119
61120 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61121
61122         * modules/xvasprintf: New file.
61123         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
61124
61125 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61126
61127         * lib/xvasprintf.h: New file.
61128         * lib/xvasprintf.c: New file.
61129         * lib/xasprintf.c: New file.
61130
61131 2004-09-08  Bruno Haible  <bruno@clisp.org>
61132
61133         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
61134
61135 2004-09-08  Bruno Haible  <bruno@clisp.org>
61136
61137         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
61138         length is > INT_MAX.
61139         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
61140         more.
61141
61142 2004-09-08  Bruno Haible  <bruno@clisp.org>
61143
61144         * lib/stdint_.h: New file, taken from GNU clisp.
61145
61146 2004-09-08  Bruno Haible  <bruno@clisp.org>
61147             Oskar Liljeblad  <oskar@osk.mine.nu>
61148
61149         * modules/stdint: New file.
61150         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
61151
61152 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61153
61154         Import from coreutils.
61155         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
61156         strings on unbounded length.  alloca's performance benefits aren't
61157         that important here.
61158         (V_STRDUP): Remove.
61159         (parse_with_separator): New function, with most of the internals
61160         of the old parse_user_spec.  Allow user to omit both user and group,
61161         for compatibility with FreeBSD.
61162         Clone only the user name, not the entire spec.
61163         Do not set *uid, *gid unless entirely successful.
61164         Avoid memory leak in some failing cases.
61165         Fix regression for USER.GROUP reported by Dmitry V. Levin in
61166         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
61167         (parse_user_spec): Rewrite to use parse_with_separator.
61168
61169 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61170
61171         * modules/userspec: Don't depend on alloca.
61172
61173 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61174
61175         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
61176
61177 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61178
61179         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
61180         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
61181         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
61182
61183 2004-08-16  Simon Josefsson  <jas@extundo.com>
61184
61185         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
61186         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
61187         Add --dry-run for --import.
61188         Let user provided command line parameters override configure.ac
61189         settings.
61190
61191 2004-08-12  Simon Josefsson  <jas@extundo.com>
61192
61193         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
61194         as discussed with Paul Eggert in threads rooted at
61195         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
61196         and
61197         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
61198         Before, the test was empty, and relied on ELIDE_CODE in source
61199         code.)
61200         (gl_PREREQ_GETOPT): New macro.
61201         (gl_GETOPT): Use them.
61202
61203 2004-08-12  Simon Josefsson  <jas@extundo.com>
61204
61205         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
61206         * lib/getopt_.h: Renamed from getopt.h.
61207
61208 2004-08-12  Simon Josefsson  <jas@extundo.com>
61209
61210         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
61211         Change default library name from libfoo to libgnu.
61212         Now, if you have a configure.ac that says:
61213                 gl_SOURCE_BASE(gl)
61214                 gl_M4_BASE(gl/m4)
61215                 gl_MODULES(error getopt etcetera)
61216                 gl_INIT
61217         you can import all you need by running:
61218                 ../gnulib/gnulib-tool --import
61219
61220         * modules/getopt (Files): Rename getopt.h to getopt_.h.
61221         (Makefile.am): Rewrite, use logic from argz.
61222         (Include): Use <getopt.h> instead of "getopt.h".
61223
61224 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61225
61226         * modules/argp (Files): Add m4/unlocked-io.m4.
61227         (Depends-on): Add extensions.
61228
61229 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61230
61231         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
61232         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
61233         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
61234         Check for program_invocation_name, program_invocation_short_name,
61235         flockfile, funlockfile, features.h, _getopt_long_only_r.
61236
61237 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61238
61239         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
61240         its complicated substitute.
61241         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
61242         and program_invocation_name.
61243         (__argp_basename) [!_LIBC]: Remove; the only use was
61244         replaced by its body.
61245         (__argp_short_program_name): Change condition from
61246         !defined __argp_short_program_name to
61247         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
61248         to match argp-namefrob.h.
61249         (__argp_failure): Don't assume strerror_r returns char *.
61250         * lib/argp-parse.c (N_): Define unconditionally.
61251         (argp_default_options): Fill out initializers with 0 to avoid
61252         gcc warnings.
61253
61254 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61255
61256         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
61257         getopt1.c.
61258
61259 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61260
61261         Merge from coreutils.
61262
61263         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
61264
61265         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
61266         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
61267
61268 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61269
61270         Merge from coreutils.
61271
61272         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
61273         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
61274         for Reliant Unix 5.43.
61275
61276         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
61277         (union fooround): Use uintmax_t, not long int.
61278         The rest is a merge from libc:
61279         [defined _LIBC]: Include <shlib-compat.h>.
61280         (_obstack) [defined _LIBC]: Remove after 2.3.4.
61281
61282         * lib/settime.c (settime): Recode to avoid warning with
61283         Sun Forte C 6U2.
61284
61285         * lib/strverscmp.c: Convert to UTF-8.
61286
61287 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61288
61289         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61290         m4/uintmax_t.m4.
61291
61292 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61293
61294         * modules/xalloc-die: New file.
61295         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
61296
61297         * modules/md5 (Files): Add m4/uint32_t.m4.
61298         * modules/sha1: Renamed from modules/sha.
61299         (Files):
61300         Rename lib/sha.h to lib/sha1.h.
61301         Rename lib/sha.c to lib/sha1.c.
61302         Rename m4/sha.m4 to m4/sha1.m4.
61303         (lib_SOURCES): Likewise.
61304         (configure.ac): Rename gl_SHA to gl_SHA1.
61305         (Include): sha.h -> sha1.h.
61306
61307 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61308
61309         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
61310         * m4/sha1.m4: Renamed from sha.m4.
61311         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
61312
61313 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61314
61315         * lib/obstack.h (obstack_empty_p):
61316         Don't assume that chunk->contents is suitably aligned.
61317         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
61318         Likewise. Problem reported by Benno in
61319         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
61320
61321         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
61322         readable.  This could be improved further but it'd take some work.
61323
61324 2004-08-08  Simon Josefsson  <jas@extundo.com>
61325
61326         * modules/xgethostname (Depends-on): Remove exit and error (not
61327         used).
61328
61329         * modules/getpass-gnu: Add getpass.h.
61330         (Depends-on): Add stdbool.
61331         * modules/getpass: Add getpass.h.
61332
61333 2004-08-08  Simon Josefsson  <jas@extundo.com>
61334
61335         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
61336         Check getpass declaration.
61337
61338 2004-08-08  Simon Josefsson  <jas@extundo.com>
61339
61340         * lib/xgethostname.c: Don't include error.h (not used).
61341
61342         * lib/getpass.h: Add.
61343         * lib/getpass.c: Include getpass.h first.
61344
61345 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
61346
61347         * lib/xalloc-die.c: New file.
61348         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
61349         All uses removed.
61350         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
61351         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
61352         xalloc-die.c.
61353         (_, N_, xalloc_die): Move to xalloc-die.c.
61354         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
61355         so that we needn't mess with xalloc_msg_memory_exhausted.
61356
61357         * lib/sha1.h: Renamed from sha.h.
61358         (SHA1_H): Renamed from _SHA_H.
61359         (sha1_ctx): Renamed from sha_ctx.
61360         (sha1_init_ctx): Renamed from sha_init_ctx.
61361         (sha1_process_block): Renamed from sha_process_block.
61362         (sha1_process_bytes): Renamed from sha_process_bytes.
61363         (sha1_finish_ctx): Renamed from sha_finish_ctx.
61364         (sha1_read_ctx): Renamed from sha_read_ctx.
61365         (sha1_stream): Renamed from sha_stream.
61366         (sha1_buffer): Renamed from sha_buffer.
61367         * lib/sha1.c: Likewise; renamed from sha.c.
61368         Do not include <sys/types.h>.
61369         Include <stddef.h> rather than <stdlib.h>.
61370
61371 2004-08-08  Bruno Haible  <bruno@clisp.org>
61372
61373         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
61374         FILESYSTEM_PREFIX_LEN.
61375         * lib/progreloc.c: Likewise.
61376         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
61377
61378 2004-08-06  Simon Josefsson  <jas@extundo.com>
61379
61380         * modules/progname (Depends-on): Don't depend on stdbool.
61381
61382 2004-08-06  Simon Josefsson  <jas@extundo.com>
61383
61384         * modules/getsubopt: New file.
61385         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61386         getsubopt.
61387
61388 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61389
61390         More merge from coreutils.
61391
61392         * m4/utimens.m4, m4/utimecmp.m4: New files.
61393         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
61394         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
61395         prereq.m4, sha.m4: Import changes from coreutils.
61396
61397 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61398
61399         More merge from coreutils.
61400         * modules/raise, modules/readtokens0, modules/utimens:
61401         * modules/utimecmp, module/xnanosleep: New files.
61402         * modules/strftime: Add lib/strftime.h.
61403         Change include from <time.h> to "strftime.h".
61404         * modules/yesno: Add lib/yesno.h.
61405         * modules/backupfile: Remove lib/addext.c.
61406         * modules/euidaccess: Add stat-macros.h.
61407         * modules/canonicalize, modules/euidaccess,
61408         modules/filemode, modules/lchown, modules/makepath,
61409         modules/rmdir, modules/stat: Likewise.
61410
61411 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61412
61413         Merge from tar.
61414         * lib/argp-help.c (make_hol, hol_append): Don't assume that
61415         SIZE_MAX is a valid preprocessor constant.
61416         (__argp_basename): Change from "#ifndef _LIBC"
61417         to "#ifndef __argp_short_program_name", so that
61418         we don't compile these functions for tar.
61419
61420         More merges from coreutils.
61421         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
61422         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
61423         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
61424         * lib/addext.c: Remove; no longer needed.
61425         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
61426         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
61427         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
61428         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
61429         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
61430         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
61431         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
61432         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
61433         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
61434         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61435         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
61436         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
61437         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
61438         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
61439         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
61440         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
61441         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
61442         Import changes from coreutils.
61443
61444 2004-08-05  Simon Josefsson  <jas@extundo.com>
61445
61446         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
61447
61448 2004-08-05  Simon Josefsson  <jas@extundo.com>
61449
61450         * m4/getsubopt.m4: New file.
61451
61452 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61453
61454         Merge from coreutils.
61455
61456         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
61457         * m4/getcwd-path-max.m4: New files.
61458
61459         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
61460         FILESYSTEM_PREFIX_LEN ->
61461         FILE_SYSTEM_PREFIX_LEN.
61462         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
61463         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
61464         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
61465         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
61466
61467         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
61468         prerequisite modules now handle the DOS stuff.
61469         Don't check for unistd.h.
61470
61471 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61472
61473         Merge from coreutils.
61474
61475         * lib/.gdb-history: Remove; this doesn't belong here.
61476
61477         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
61478         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
61479         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
61480         * lib/getcwd.c: New files.
61481
61482         * lib/dirname.h: Include <stdbool.h>.
61483         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
61484         for consistency with POSIX terminology.  All uses changed.
61485         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
61486         (strip_trailing_slashes): Use bool for booleans.
61487         * lib/stripslash.c (strip_trailing_slashes): Likewise.
61488
61489         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
61490         sometimes returns a positive errno value even when it succeeds.
61491         (print_errno_message) [!LIBC]: Fall back on strerror if
61492         __strerror_r fails.
61493
61494         * lib/path-concat.c (mempcpy): Don't define if a system header defines
61495         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
61496         (longest_relative_suffix): New function.
61497         (path_concat): Use it.  Assume first argument is not NULL.
61498         Port to DOS.  Omit redundant separators.
61499         Report an error instead of returning NULL.
61500         Use mempcpy instead of memcpy.
61501         (xpath_concat): Remove: not declared or used.
61502
61503         * lib/same.h: Include <stdbool.h>
61504         (same_name): Return bool, not int.
61505         * lib/same.c (same_name): Likewise.
61506         (errno): Don't declare; we assume C89 or better now.
61507
61508         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
61509         if not already defined.
61510
61511         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
61512         * lib/dup-safer.c (errno): Likewise.
61513
61514 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61515
61516         Merge from coreutils.
61517         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
61518         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
61519         * modules/path-concat: Don't depend on strdup.
61520
61521 2004-08-03  Simon Josefsson  <jas@extundo.com>
61522
61523         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
61524         * lib/progname.h: Don't include stdbool.h.
61525
61526 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61527
61528         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
61529         * MODULES.html.sh (func_all_modules): Remove fatal.
61530
61531 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61532
61533         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
61534
61535 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61536
61537         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
61538         working.
61539
61540 2004-08-02  Simon Josefsson  <jas@extundo.com>
61541
61542         * lib/getsubopt.h: New file, with comments from Bruno Haible.
61543         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
61544         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
61545
61546 2004-08-01  Simon Josefsson  <jas@extundo.com>
61547
61548         * lib/xgetdomainname.c: Include stdlib.h, for free().
61549
61550 2004-07-19  Bruno Haible  <bruno@clisp.org>
61551
61552         * MODULES.html.sh (func_all_modules): Add dummy.
61553
61554 2004-07-16  Simon Josefsson  <jas@extundo.com>
61555
61556         * modules/dummy: New file.
61557
61558 2004-07-16  Simon Josefsson  <jas@extundo.com>
61559
61560         * lib/dummy.c: New file.
61561
61562 2004-07-16  Bruno Haible  <bruno@clisp.org>
61563
61564         * lib/backupfile.h: Add extern "C" for C++.
61565         * lib/closeout.h: Likewise.
61566         * lib/copy-file.h: Likewise.
61567         * lib/findprog.h: Likewise.
61568         * lib/full-write.h: Likewise.
61569         * lib/pathname.h: Likewise.
61570         * lib/progname.h: Likewise.
61571         * lib/stpcpy.h: Likewise.
61572         * lib/stpncpy.h: Likewise.
61573         * lib/strcase.h: Likewise.
61574         * lib/strstr.h: Likewise.
61575         * lib/xalloc.h: Likewise.
61576
61577         * lib/mbswidth.h: Add extern "C" for C++.
61578         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
61579
61580 2004-07-13  Robert Millan  <robertmh@gnu.org>
61581
61582         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
61583
61584 2004-07-09  Simon Josefsson  <jas@extundo.com>
61585
61586         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
61587         failed without this.)
61588
61589 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61590
61591         * modules/chown (Files): Add lib/fchown-stub.c, since
61592         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
61593
61594 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61595
61596         * lib/fchown-stub.c: New file.
61597
61598 2004-06-24  Jim Meyering  <jim@meyering.net>
61599
61600         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
61601
61602 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61603
61604         * modules/argz: Omit "#include".
61605
61606         * MODULES.html.sh (func_all_modules): Add calloc, to match
61607         2004-06-01 addition of calloc module.
61608
61609 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61610
61611         * m4/argz.m4: New file, which is autoupdated from libtool.
61612
61613 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61614
61615         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
61616         libtool.
61617
61618 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61619
61620         * config/srclist-update: Don't insist on "USA." before the
61621         close-comment, as libtool omits the period and puts the */ on a
61622         separate line.
61623         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
61624         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
61625
61626 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
61627
61628         * modules/argz: New file.
61629         * MODULES.html.sh (func_all_modules): Add argz.
61630
61631 2004-06-12  Jim Meyering  <jim@meyering.net>
61632         and  Paul Eggert  <eggert@cs.ucla.edu>
61633
61634         * modules/hash (Files): Add lib/xalloc.h.
61635         * modules/pipe (Depends-on): Add wait-process.
61636         * modules/stat (Depends-on): Add xalloc.
61637         * modules/userspec (Files): Add lib/userspec.h.
61638         * modules/xstrto
61639
61640         Upgrade from gettext-0.13.
61641         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
61642         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
61643         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
61644
61645 2004-06-10  Jim Meyering  <jim@meyering.net>
61646
61647         * lib/calloc.c: New file.
61648
61649 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61650
61651         * lib/getdate.y (yylex): Allow space between sign and number.
61652         Problem reported by Dan Jacobson.
61653
61654 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61655
61656         Merge from coreutils CVS.
61657
61658         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
61659         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
61660         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
61661         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
61662         xstrtol.m4: Fix copyright date and/or serial number.
61663
61664         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
61665         See if we need an fchown replacement.
61666         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
61667         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
61668         and use the replacement function if we detect either defect.
61669
61670         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
61671         gl_UTIMECMP.
61672
61673 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61674         and  Jim Meyering  <jim@meyering.net>
61675
61676         Merge from coreutils CVS.
61677
61678         * lib/stat-macros.h: New file, with contents from file-type.h
61679         and coreutils' system.h.
61680         * lib/file-type.c: Include "stat-macros.h".
61681         * lib/file-type.h (file_type): Move all macro definitions to new file,
61682         stat-macros.h.
61683
61684         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
61685         Wrap old code with this conditional.
61686         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
61687         function that does not dereference symlinks.
61688         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
61689
61690         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
61691         dependency problems.
61692         (xreadlink): Accept new arg SIZE, for efficiency.
61693         All decls and uses changed.
61694         * lib/xreadlink.h: Include <stddef.h>, for size_t.
61695
61696         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
61697         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
61698
61699         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
61700         sysexits.h.
61701
61702 2004-06-01  Jim Meyering  <jim@meyering.net>
61703
61704         * m4/calloc.m4: New file.
61705
61706 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
61707
61708         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
61709         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
61710         Also, fix a typo in a diagnostic.
61711
61712 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61713
61714         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
61715         or AC_FUNC_REALLOC.
61716
61717 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61718
61719         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
61720         macros to be defined.
61721         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
61722         the allocator returns NULL because the requested size is zero.
61723
61724 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61725
61726         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
61727         var.  Add comment explaining why libc still defines it.  This
61728         merges the following patch from glibc:
61729         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
61730
61731 2004-05-20  Andreas Schwab  <schwab@suse.de>
61732
61733         * m4/free.m4: Replace free if it not known to work, not the other
61734         way round.
61735
61736 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61737
61738         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
61739         present in glibc since revision 1.1 of this file.
61740         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
61741         obstack_alignment_mask, obstack_alloc, obstack_base,
61742         obstack_blank, obstack_blank_fast, obstack_chunk_size,
61743         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
61744         obstack_grow0, obstack_init, obstack_int_grow,
61745         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
61746         obstack_next_free, obstack_object_size, obstack_ptr_grow,
61747         obstack_ptr_grow_fast, obstack_room): Remove declarations of
61748         nonexistent functions.
61749
61750 2004-05-18  Karl Berry  <karl@gnu.org>
61751
61752         * config/srclist.txt: break link for vasnprintf.c.
61753
61754 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61755
61756         Port obstack to the AS/400, where pointers are 16 bytes wide and
61757         you cannot cast an integer to a valid pointer.  This patch is
61758         currently waiting to be integrated into glibc; see
61759         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
61760
61761         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
61762         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
61763         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
61764         (struct obstack): temp member is now a union of a pointer and
61765         an integer, instead of an integer.  All integer uses changed.
61766         This does not affect the physical layout of struct obstack,
61767         except on hosts (like the AS/400) where the size or alignment of
61768         void * is greater than that of ptrdiff_t.
61769         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
61770         __STDC__)]: Store temporary in pointer member of union, not
61771         integer member.
61772         * lib/obstack.c: Include <stddef.h>, for offsetof.
61773         (struct fooalign): Remove; it doesn't need a name.
61774         (union fooround): Change double to long double, and add void *.
61775         (DEFAULT_ALIGNMENT): Use offsetof to compute.
61776         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
61777         not a macro.  Hence the values are always int; so remove all
61778         casts-to-int in uses.
61779
61780 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61781
61782         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
61783         we can get this patch merged into glibc.
61784
61785 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61786             Paul Eggert  <eggert@cs.ucla.edu>
61787
61788         * m4/argp: Depend on alloca.
61789
61790 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61791             Paul Eggert  <eggert@cs.ucla.edu>
61792
61793         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
61794         freecoding.
61795
61796 2004-05-17  Bruno Haible  <bruno@clisp.org>
61797
61798         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
61799         precision that consists of a '.' followed by an empty digit string.
61800         Patch by Tor Lillqvist <tml@iki.fi>.
61801
61802 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61803
61804         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
61805         for backward compatibility with older code.  We need our own
61806         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
61807         it under some other name, and our alloca.h will define it.
61808
61809 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61810             Derek Price  <derek@ximbiot.com>
61811
61812         * lib/alloca.c: Include <alloca.h>, to get our interface.
61813         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
61814         include <alloca.h> first.  Use C89 prototype for alloca; this
61815         requires including <stddef.h> for size_t.  Use extern "C" if C++.
61816         Use #elif for simplicity, since we can assume C89 now.
61817         Don't try to source the system alloca.h since it will not be found
61818         and to prevent recursively including its replacement.
61819         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
61820         * lib/regex.c: Likewise.
61821
61822 2004-05-16  Derek Price  <derek@ximbiot.com>
61823             Paul Eggert  <eggert@cs.ucla.edu>
61824
61825         getline cleanup.  This changes the getndelim2 API: both order of
61826         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
61827         no delimiter).
61828
61829         * lib/getline.c: Don't include stddef.h or stdio.h, since our
61830         interface does that.
61831         (getline): Always use getdelim, so that we don't have two
61832         copies of this code.
61833         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
61834         if available.
61835         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
61836         (GETNDELIM2_MAXIMUM): New macro.
61837         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
61838         instead of the old practice of delim2==0.  All callers changed.
61839         Return -1 on overflow, instead of returning junk.
61840         Do not set *linesize unless allocation succeeds.
61841         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
61842         that we include sys/types.h.
61843         * lib/getnline.h: Likewise.
61844         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
61845         (getndelim2): Reorder arguments.
61846         * lib/getnline.c (getnline, getndelim):
61847         Don't discard the NMAX argument.
61848         (getnline): Invoke getndelim, to avoid code duplication.
61849         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
61850         of (size_t) -1 by callers of the getnline family.
61851
61852 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61853
61854         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
61855         Check for gettimeofday.
61856         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
61857         Check for settimeofday, stime.
61858
61859 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61860
61861         * lib/nanosleep.c (suspended): Change its type from int to
61862         sig_atomic_t volatile.
61863         (first_call): Make it private to rpl_nanosleep, and have it
61864         be zero initially as that's a bit faster.
61865         (my_usleep): Round up fractional times instead of truncating them,
61866         as this is the usual meaning for 'sleep'.
61867
61868         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
61869         doesn't work.
61870         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
61871         (ENOSYS): Define if not defined.
61872         (settime): Fall back on stime if it exists and settimeofday fails.
61873         But don't bother with fallbacks if a method fails with errno == EPERM.
61874
61875 2004-05-11  Jim Meyering  <jim@meyering.net>
61876
61877         Prior to this change, the save_cwd caller required read access to the
61878         current directory on most systems (ones with the fchdir function).
61879
61880         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
61881         fails, try write-only, and finally, resort to using xgetcwd.
61882
61883 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
61884
61885         * lib/obstack.c, obstack.h: Import changes from libc.
61886
61887 2004-04-28  Bruno Haible  <bruno@clisp.org>
61888
61889         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
61890         also implicitly appends .exe to executables.
61891         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
61892         accepts Windows pathnames.
61893         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
61894         Treat Cygwin like Windows, since it now accepts Windows pathnames.
61895         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
61896         Treat Cygwin like Windows, since it now accepts Windows pathnames.
61897         Reported by Derek Robert Price <derek@ximbiot.com>.
61898
61899 2004-04-21  Karl Berry  <karl@gnu.org>
61900
61901         * config/srclist.txt (localcharset.c): break sync.
61902
61903 2004-04-20  Paul Eggert  <eggert@twinsun.com>
61904
61905         * m4/host-os.m4: Add a copyright notice.
61906
61907 2004-04-20  Jim Meyering  <jim@meyering.net>
61908
61909         Change UTILS_ to gl_ in AC_DEFINE'd names.
61910         Change utils_- and jm_-prefixed variables, too.
61911         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
61912         UTILS_FUNC_MKDIR_TRAILING_SLASH.
61913         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
61914
61915         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
61916         Don't emit trailing blanks.
61917         Also rename jm_-prefixed variables to have gl_ prefix.
61918
61919         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
61920         Also rename jm_-prefixed variables to have gl_ prefix.
61921
61922         * m4/jm-macros.m4: Reflect the renamings.
61923         * m4/prereq.m4: Likewise.
61924
61925 2004-04-20  Jim Meyering  <jim@meyering.net>
61926
61927         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
61928         memory.
61929
61930 2004-04-20  Jim Meyering  <jim@meyering.net>
61931             Bruno Haible  <bruno@clisp.org>
61932
61933         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
61934         memory when realloc fails.
61935
61936 2004-04-19  Jim Meyering  <jim@meyering.net>
61937
61938         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
61939         now that readutmp.c may call `free (0)'.
61940
61941 2004-04-19  Bruno Haible  <bruno@clisp.org>
61942
61943         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
61944         * m4/inttypes_h.m4: Likewise.
61945         * m4/stdint_h.m4: Likewise.
61946         * m4/intmax_t.m4: Likewise.
61947         * m4/uintmax_t.m4: Likewise.
61948
61949 2004-04-18  Jim Meyering  <jim@meyering.net>
61950
61951         * m4/prereq.m4: Don't forbid jm_ prefix.
61952
61953         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
61954         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
61955         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
61956         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
61957         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
61958         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
61959         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
61960         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
61961         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
61962         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
61963         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
61964         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
61965         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
61966         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
61967         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
61968         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
61969         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
61970         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
61971         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
61972
61973 2004-04-18  Jim Meyering  <jim@meyering.net>
61974
61975         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
61976         failure, don't leak memory and do call END_UTMP_ENT.
61977
61978 2004-04-16  Jim Meyering  <jim@meyering.net>
61979
61980         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
61981         coreutils' stat program.
61982         (gl_PREREQ): Don't require jm_PREREQ_STAT.
61983
61984 2004-04-11  Paul Eggert  <eggert@twinsun.com>
61985
61986         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
61987         C89.
61988         (CHAR_BIT): Remove, since we assume C89.
61989         Include <stdint.h> if available, as per current Autoconf CVS advice.
61990
61991 2004-03-31  Jim Meyering  <jim@meyering.net>
61992
61993         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
61994         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
61995         * m4/xalloc.m4: Likewise.
61996
61997 2004-03-30  Paul Eggert  <eggert@twinsun.com>
61998
61999         Merge from coreutils.
62000
62001         * m4/inttostr.m4: New file.
62002         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
62003         Require AM_STDBOOL_H and gl_TIMESPEC instead.
62004         Require gl_CLOCK_TIME.
62005         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
62006
62007 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62008
62009         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
62010         not bool, to be more consistent with Unix conventions.
62011         Suggested by Bruno Haible.
62012
62013         Merge from coreutils.
62014
62015         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
62016         * lib/umaxtostr.c: New files.
62017
62018         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
62019         the usual <time.h> dance.
62020         (get_date): Change signature to support fractional time stamps.
62021         All callers changed.
62022         * lib/getdate.y: Include "getdate.h" first, as we can now
62023         assume C89 and don't need to worry about 'const'.
62024         Similarly, include "unlocked-io.h" near start, not in middle.
62025         Include <limits.h>.
62026         (textint.value): Use long int rather than int.
62027         (textint.digits): Use size_t rather than int.
62028         (BILLION, LOG10_BILLION): New constants.
62029         (parser_control): New member rel_ns.  Members day_ordinal,
62030         time_zone, month, day, hour, minutes, rel_year, rel_month,
62031         rel_day, rel_hour, rel_minutes, rel_seconds
62032         are now long int, not int.  Member seconds is now struct timespec,
62033         not int.  New member timespec_seen.  Members dates_seen, days_seen,
62034         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
62035         not int.
62036         (%union.intval): Now long int, not int.
62037         New member timespec.
62038         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
62039         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
62040         (spec): Now is a timespec or an item list.
62041         (timespec, items): New nonterminals.
62042         (time, rel, relunit, number, get_date):
62043         Add support for fractional seconds.
62044         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
62045         (gmtime, localtime, mktime): Remove decls; not needed with C89.
62046         (to_hour): First arg is now long int, not int.
62047         (to_year): Returns long int, not int.
62048         Don't treat year -70 like 70.
62049         (tm_diff): Returns long int, not int.
62050         (lookup_word): Use bool instead of int when appropriate.
62051         (yylex): Use size_t for count, not int.
62052         Detect overflow when parsing large integer constants.
62053         Add support for fractions.
62054         (get_date): Make pointers 'const' if possible.
62055         Use more-portable code to detect integer overflow.
62056         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
62057         Don't use ctime; it's not reliable if the year has >4 digits.
62058
62059         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
62060         This is for compatibility with BSD.
62061
62062         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
62063         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
62064         From coreutils' system.h.
62065
62066         * lib/userspec.c: Don't include "posixver.h".
62067         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
62068         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
62069         compatible extension.  Simplify code by removing a boolean int
62070         that was always nonzero if a string was nonnull.
62071
62072 2004-03-30  Jim Meyering  <jim@meyering.net>
62073
62074         Merge from coreutils.
62075
62076         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
62077         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
62078         on some systems one must include <grp.h> before it.
62079         Reported by Christian Krackowizer.
62080
62081 2004-03-30  Jim Meyering  <jim@meyering.net>
62082
62083         Merge from coreutils.
62084
62085         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
62086
62087         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
62088         an empty input stream.
62089
62090         * lib/readtokens.c: Include <stdbool.h>.
62091         (readtoken): Use `size_t' rather than int/long.
62092         All callers adjusted.
62093         Use `bool' rather than `int' where appropriate.
62094         Use memset rather than an explicit loop.
62095         Use x2nrealloc rather than xrealloc.
62096         Allow the use of `\0' as a delimiter.
62097         (readtokens): Likewise.
62098         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
62099
62100 2004-03-30  Jim Meyering  <jim@meyering.net>
62101
62102         * m4/realloc.m4: Remove file, since now it does no more than
62103         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
62104         the `configure.ac' section of module/realloc.
62105         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
62106
62107 2004-03-30  Bruno Haible  <bruno@clisp.org>
62108
62109         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
62110         nonnull.
62111
62112 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62113
62114         Merge changes to getloadavg.c from coreutils and Emacs.
62115
62116         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
62117         Define to an expression, not to the empty string.
62118         Include cloexec.h and xalloc.h.
62119         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
62120         Use set_cloexec_flag rather than rolling our own.
62121         * lib/cloexec.c, lib/cloexec.h: New files.
62122
62123 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62124
62125         * m4/cloexec.m4: New file.
62126
62127 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62128
62129         * lib/getopt.h: Sync with libc CVS.
62130
62131 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62132             Bruno Haible  <bruno@clisp.org>
62133
62134         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
62135         mbswidth.
62136
62137 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62138             Bruno Haible  <bruno@clisp.org>
62139
62140         * lib/mbswidth.h: Include <wchar.h> only if
62141         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
62142         <wchar.h>.
62143         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
62144
62145 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62146
62147         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
62148         Sync with libc CVS.
62149         * lib/getopt_int.h: New file, also synced from libc.
62150
62151 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62152
62153         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
62154         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
62155         Bring back getopt.c, getopt.h, getopt1.c.
62156
62157 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62158
62159         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
62160         All uses changed.  Check for sa_sigaction member; this fixes
62161         a bug first reported by Jason Andrade in
62162         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62163
62164 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62165
62166         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
62167         '#if' expressions.  Unlike the code it replaces, it does not
62168         depend on (defined _SC_PAGESIZE).  However, it does depend on
62169         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
62170         first reported by Jason Andrade in
62171         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62172
62173 2004-02-25  Simon Josefsson  <jas@extundo.com>
62174
62175         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
62176
62177 2004-02-25  Simon Josefsson  <jas@extundo.com>
62178
62179         * lib/strdup.h: New file.
62180         * lib/strdup.c: Include it.
62181         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
62182         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
62183
62184 2004-02-23  Karl Berry  <karl@gnu.org>
62185
62186         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
62187         (from fencepost.gnu.org:/gd/gnuorg).
62188
62189 2004-02-23  Karl Berry  <karl@gnu.org>
62190
62191         * config/srclistvars.sh (GNUORG) [karl]: redefine.
62192         * config/srclist.txt: add maintain/standards documents.
62193
62194 2004-02-18  Bruno Haible  <bruno@clisp.org>
62195
62196         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
62197         Reported by Derek Robert Price <derek@ximbiot.com>.
62198
62199 2004-02-16  Karl Berry  <karl@gnu.org>
62200
62201         * config/mkinstalldirs, install-sh: update from automake.
62202
62203 2004-02-06  Karl Berry  <karl@gnu.org>
62204
62205         * m4/po.m4: update from gettext 0.14.1.
62206
62207 2004-02-06  Karl Berry  <karl@gnu.org>
62208
62209         * lib/config.charset: update from gettext 0.14.1.
62210
62211 2004-02-05  Paul Eggert  <eggert@twinsun.com>
62212
62213         Add comments and code, prompted by suggestions from Bruno Haible
62214         for sh-quote.
62215         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
62216         describing the enum quoting_style values.
62217         * lib/quotearg.c (quotearg_alloc): New function.
62218         (quotearg_buffer_restyled): Treat lone { and } as special.
62219         Treat = as special.  Work around bug with older shells
62220         that "see" a '\' that is really the 2nd byte of a multibyte char.
62221         Quote empty string with shell_quoting_style.
62222
62223 2004-02-03  Bruno Haible  <bruno@clisp.org>
62224
62225         * m4/pipe.m4: New file, from GNU gettext.
62226
62227 2004-02-03  Bruno Haible  <bruno@clisp.org>
62228
62229         * lib/pipe.h: New file, from GNU gettext.
62230         * lib/pipe.c: New file, from GNU gettext.
62231
62232 2004-01-27  Bruno Haible  <bruno@clisp.org>
62233
62234         * m4/execute.m4: New file, from GNU gettext.
62235
62236 2004-01-27  Bruno Haible  <bruno@clisp.org>
62237
62238         * lib/execute.h: New file, from GNU gettext.
62239         * lib/execute.c: New file, from GNU gettext.
62240         * lib/w32spawn.h: New file, from GNU gettext.
62241
62242 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62243
62244         Merge from diffutils.
62245
62246         * lib/file-type.c (file_type): Add typed memory objects.
62247         * lib/file-type.h (S_TYPEISTMO): New macro.
62248
62249         * lib/c-stack.h (c_stack_action): Remove argv argument.
62250         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
62251         (die): Don't calculate message unless segv_action returns.
62252         (get_stack_location, min_address_from_argv, max_address_from_argv,
62253         volatile stack_base, volatile_stack_size): Remove.
62254         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
62255         that every segmentation violation is a stack overflow.  (Ouch!)
62256         See Debian bug 136249 (still outstanding) for more info about why
62257         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
62258
62259 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62260
62261         Exit-status fix from coreutils.
62262
62263         Use exit_failure consistently in place of EXIT_FAILURE,
62264         so that program exit statuses are consistent on failure.
62265
62266         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
62267         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
62268         * lib/argmatch.h: Comment fix to match the above.
62269         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
62270         Now a macro referring to exit_failure, instead of a separate
62271         variable.  Include "exitfail.h" to get it.
62272         * lib/xstrtol.h: Include "exitfail.h".
62273         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
62274
62275         * lib/long-options.c (parse_long_options): Use prototype
62276         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
62277         for clarity.
62278
62279 2004-01-21  Jim Meyering  <jim@meyering.net>
62280
62281         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
62282         so as not to conflict with a different-sized __mktime_internal
62283         function in GNU libc.
62284         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
62285         Problem building statically-linked `ls' reported by Michael Brunnbauer.
62286
62287 2004-01-20  Karl Berry  <karl@gnu.org>
62288
62289         * config/config.guess: update from config.
62290
62291         * config/srclistvars.sh: GNUWWWLICENSES for karl.
62292
62293 2004-01-20  Bruno Haible  <bruno@clisp.org>
62294
62295         Safer stack allocation.
62296         * lib/setenv.c: Include allocsa.h.
62297         (alloca): Remove fallback definition.
62298         (freea): Remove macro.
62299         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
62300         instead of freea.
62301
62302 2004-01-20  Bruno Haible  <bruno@clisp.org>
62303
62304         * m4/eealloc.m4: New file, from GNU gettext.
62305
62306 2004-01-20  Bruno Haible  <bruno@clisp.org>
62307
62308         * m4/allocsa.m4: New file, from GNU gettext.
62309
62310 2004-01-20  Bruno Haible  <bruno@clisp.org>
62311
62312         * lib/xallocsa.h: New file, from GNU gettext.
62313         * lib/xallocsa.c: New file, from GNU gettext.
62314
62315 2004-01-20  Bruno Haible  <bruno@clisp.org>
62316
62317         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
62318
62319 2004-01-20  Bruno Haible  <bruno@clisp.org>
62320
62321         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
62322         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
62323         specially.
62324
62325 2004-01-20  Bruno Haible  <bruno@clisp.org>
62326
62327         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
62328         patch.
62329
62330 2004-01-20  Bruno Haible  <bruno@clisp.org>
62331
62332         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
62333
62334 2004-01-20  Bruno Haible  <bruno@clisp.org>
62335
62336         * lib/eealloc.h: New file.
62337
62338 2004-01-20  Bruno Haible  <bruno@clisp.org>
62339
62340         * lib/binary-io.h: Avoid warnings on Cygwin.
62341
62342 2004-01-20  Bruno Haible  <bruno@clisp.org>
62343
62344         * lib/allocsa.h: New file, from GNU gettext.
62345         * lib/allocsa.c: New file, from GNU gettext.
62346
62347 2004-01-18  Karl Berry  <karl@gnu.org>
62348
62349         * doc/gpl.texi, doc/lgpl.texi: new files.
62350
62351 2004-01-18  Karl Berry  <karl@gnu.org>
62352
62353         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
62354         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
62355
62356 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62357
62358         Merge from coreutils.
62359
62360         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
62361         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
62362         (gl_DEFAULT_POSIX2_VERSION): Move
62363         the documentation from 'configure' into 'config.hin',
62364         so that 'configure --help' isn't burdened by it and
62365         we don't have to worry about its formatting there.
62366         Reword the documentation so that it's more succinct
62367         and can be run together into a single paragraph.
62368         * m4/same.m4 (gl_SAME): Check for pathconf.
62369
62370 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62371
62372         Merge from coreutils.
62373
62374         * lib/posixver.c: Include posixver.h.
62375
62376         * lib/same.c: Include <stdbool.h>, <limits.h>.
62377         (_POSIX_NAME_MAX): Define if not defined.
62378         (MIN): New macro.
62379         (same_name): If file names are silently truncated, report
62380         that the file names are the same if they are the same after
62381         the silent truncation.
62382
62383         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
62384         conversion function.
62385         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
62386         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
62387         longer needed.
62388
62389 2004-01-15  Jim Meyering  <jim@meyering.net>
62390
62391         Merge from coreutils.
62392
62393         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
62394         if no library is required.
62395         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
62396         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
62397         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
62398         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
62399         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
62400         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
62401         value, $ac_cv_search_crypt, if it's "none required".
62402         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
62403         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
62404         not gl_FUNC_GETLOADAVG.
62405         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
62406         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
62407
62408 2004-01-15  Jim Meyering  <jim@meyering.net>
62409
62410         Merge from coreutils.
62411
62412         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
62413         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
62414         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
62415
62416         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
62417         optional configure-time default.
62418
62419         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62420
62421         * lib/xreadlink.c (xreadlink): Correct outdated comment.
62422
62423 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
62424
62425         Merge from coreutils.
62426
62427         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
62428         value, $ac_cv_search_nanosleep, if it's "none required".
62429
62430 2004-01-14  Paul Eggert  <eggert@twinsun.com>
62431
62432         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
62433         with like-named macro in fnmatch.c.
62434         (EXT): Use an internal constant instead.
62435
62436         Merge fnmatch patches from glibc.
62437         * lib/fnmatch.c (mbsinit): Remove define.
62438         Add libc_hidden_ver (__fnmatch, fnmatch).
62439         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
62440         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
62441
62442 2004-01-14  Karl Berry  <karl@gnu.org>
62443
62444         * config/install-sh: update from automake.
62445
62446 2004-01-13  Karl Berry  <karl@gnu.org>
62447
62448         * config/install-sh: update from automake.
62449
62450 2004-01-09  Karl Berry  <karl@gnu.org>
62451
62452         * config/install-sh: update from automake.
62453
62454 2004-01-05  Karl Berry  <karl@gnu.org>
62455
62456         * config/config.{sub,guess}: update from config.
62457
62458 2003-12-31  Karl Berry  <karl@gnu.org>
62459
62460         * config/depcomp: update from automake.
62461
62462 2003-12-14  Karl Berry  <karl@gnu.org>
62463
62464         * lib/config.charset: update from gettext-runtime.
62465
62466 2003-12-03  Paul Eggert  <eggert@twinsun.com>
62467
62468         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
62469         Bug reported by Alfred M. Szmidt.
62470
62471 2003-12-03  Bruno Haible  <bruno@clisp.org>
62472
62473         * m4/gettext.m4: Upgrade from gettext-0.13.
62474         * m4/po.m4: Upgrade from gettext-0.13.
62475         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
62476         * m4/intmax.m4: New file, from gettext-0.13.
62477         * m4/printf-posix.m4: New file, from gettext-0.13.
62478
62479 2003-11-29  Karl Berry  <karl@gnu.org>
62480
62481         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
62482
62483 2003-11-25  Paul Eggert  <eggert@twinsun.com>
62484             Bruno Haible  <bruno@clisp.org>
62485
62486         * lib/printf-parse.h: Don't include sys/types.h.
62487         (ARG_NONE): New macro.
62488         (char_directive): Change type of *arg_index fields to size_t.
62489         * lib/printf-parse.c: Don't include sys/types.h.
62490         (SSIZE_MAX): Remove macro.
62491         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
62492         Remove unnecessary overflow check.
62493         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
62494         fields.
62495
62496 2003-11-25  Bruno Haible  <bruno@clisp.org>
62497
62498         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
62499
62500 2003-11-25  Bruno Haible  <bruno@clisp.org>
62501
62502         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
62503         gt_TYPE_SSIZE_T.
62504
62505 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62506
62507         * modules/alloca: Remove dependency on xalloc.
62508
62509 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62510
62511         * lib/alloca.c: Remove dependency on xalloc module.
62512         (xalloc_die): Remove.
62513         (memory_full) [!defined emacs]: New macro.
62514         [!defined emacs]: Don't include xalloc.h.
62515         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
62516         address arithmetic overflows.  Change datatypes a bit to avoid
62517         unnecessary casts.
62518
62519 2003-11-22  Jim Meyering  <jim@meyering.net>
62520
62521         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
62522         s/size/size_t/.
62523
62524 2003-11-21  Karl Berry  <karl@gnu.org>
62525
62526         * config/config.{sub,guess}: update from config.
62527
62528 2003-11-18  Karl Berry  <karl@gnu.org>
62529
62530         * config/config.{sub,guess}: update from config.
62531
62532         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
62533
62534 2003-11-17  Paul Eggert  <eggert@twinsun.com>
62535
62536         * README: Mention that S+T cannot overflow if S is the size of
62537         an existing object and T is sufficiently small.
62538
62539 2003-11-17  Jim Meyering  <jim@meyering.net>
62540
62541         On systems without utime and without a utimes function capable of
62542         dealing with a NULL struct utimbuf* argument, this utime replacement
62543         could -- in unusual circumstances -- leak a file descriptor.
62544         * lib/utime.c: Include <unistd.h> and <errno.h>.
62545         (utime_null): Be sure to close `fd' and to preserve errno.
62546         Reported by Geoff Collyer via Arnold Robbins.
62547
62548 2003-11-17  Bruno Haible  <bruno@clisp.org>
62549
62550         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
62551         (Depends-on): Add xsize.
62552
62553 2003-11-17  Bruno Haible  <bruno@clisp.org>
62554
62555         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
62556
62557 2003-11-17  Bruno Haible  <bruno@clisp.org>
62558
62559         * lib/vasnprintf.c (alloca): Remove fallback definition.
62560         (freea): Remove definition.
62561         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
62562         Reported by Paul Eggert.
62563
62564 2003-11-16  Paul Eggert  <eggert@twinsun.com>
62565             Bruno Haible  <bruno@clisp.org>
62566
62567         Protect against address arithmetic overflow.
62568         * lib/printf-args.h: Include stddef.h.
62569         (arguments): Change type of field 'count' to size_t.
62570         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
62571         'unsigned int' where appropriate.
62572         * lib/printf-parse.h: Include sys/types.h.
62573         (char_directive): Change type of *arg_index fields to ssize_t.
62574         (char_directives): Change type of fields 'count', max_*_length to
62575         size_t.
62576         * lib/printf-parse.c: Include sys/types.h and xsize.h.
62577         (SSIZE_MAX): Define fallback value.
62578         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
62579         instead of 'int' where appropriate. Check a_allocated, d_allocated
62580         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
62581         * lib/vasnprintf.c: Include xsize.h.
62582         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
62583         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
62584         overflow. Avoid wraparound when converting a width or precision from
62585         decimal to binary.
62586
62587 2003-11-16  Bruno Haible  <bruno@clisp.org>
62588
62589         Update from GNU gettext.
62590         * lib/printf-parse.c: Generalize to it can be compiled for wide
62591         strings.
62592         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
62593         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
62594         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
62595         SNPRINTF): New macros.
62596         Don't include <alloca.h> if the file is used inside libintl.
62597         (local_wcslen): New function, for Solaris 2.5.1.
62598         (VASNPRINTF): Use it instead of wcslen.
62599
62600 2003-11-16  Bruno Haible  <bruno@clisp.org>
62601
62602         * lib/xsize.h (xmax): New function.
62603         (xsum, xsum3, xsum4): Declare as "pure" functions.
62604
62605 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62606
62607         * modules/xalloc (Files): Undo latest change, since xalloc.h
62608         no longer needs SIZE_MAX or PTRDIFF_MAX.
62609
62610 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62611
62612         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
62613         gl_PTRDIFF_MAX.
62614
62615 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62616
62617         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
62618         "return", to pacify some unknown compiler.  Problem reported
62619         by Joerg Schilling.
62620
62621 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62622
62623         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
62624         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
62625         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
62626         heuristic is just as accurate as far as we know, and it removes a
62627         dependency on size_max.m4 and ptrdiff_max.m4.
62628
62629 2003-11-11  Bruno Haible  <bruno@clisp.org>
62630
62631         * modules/xsize (Files): Add m4/size_max.m4.
62632         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
62633
62634 2003-11-11  Bruno Haible  <bruno@clisp.org>
62635
62636         * m4/size_max.m4: New file.
62637         * m4/ptrdiff_max.m4: New file.
62638         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
62639         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
62640         (gl_XALLOC): Invoke it.
62641
62642 2003-11-11  Bruno Haible  <bruno@clisp.org>
62643
62644         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
62645         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
62646         defined.
62647
62648 2003-11-10  Paul Eggert  <eggert@twinsun.com>
62649
62650         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
62651         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
62652         rejected some allocations of exactly SIZE_MAX - 2 bytes.
62653         From Bruno Haible.
62654         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
62655         not (size_t) -1, since it's defined here.
62656
62657 2003-11-09  Karl Berry  <karl@gnu.org>
62658
62659         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
62660
62661 2003-11-06  Paul Eggert  <eggert@twinsun.com>
62662
62663         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
62664         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
62665         Reject sizes of exactly SIZE_MAX bytes.
62666         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
62667         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
62668
62669 2003-11-05  Bruno Haible  <bruno@clisp.org>
62670
62671         * lib/xsize.h: Include limits.h, to avoid a possible collision with
62672         SIZE_MAX defined in <limits.h> on Solaris.
62673
62674 2003-11-04  Jim Meyering  <jim@meyering.net>
62675
62676         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
62677         variable names, rather than @VAR@.
62678         * modules/poll: Likewise.
62679
62680 2003-11-04  Bruno Haible  <bruno@clisp.org>
62681
62682         * modules/xsize: New file.
62683         * modules/linebreak: Depend on xsize.
62684         * MODULES.html.sh (func_all_modules): Add xsize.
62685
62686 2003-11-04  Bruno Haible  <bruno@clisp.org>
62687
62688         * m4/xsize.m4: New file.
62689
62690 2003-11-04  Bruno Haible  <bruno@clisp.org>
62691
62692         * lib/xsize.h: New file.
62693         * lib/linebreak.c: Include xsize.h.
62694         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
62695         argument for overflow.
62696         Suggested by Paul Eggert.
62697
62698 2003-11-03  Karl Berry  <karl@gnu.org>
62699
62700         * config/config.{guess,sub}: update from config.
62701
62702 2003-11-03  Jim Meyering  <jim@meyering.net>
62703
62704         * modules/userspec (lib_SOURCES): Add userspec.h.
62705         (Include): Add "userspec.h".
62706         Improve description.
62707
62708 2003-11-03  Jim Meyering  <jim@meyering.net>
62709
62710         * lib/userspec.c: Include "userspec.h".
62711         * lib/userspec.h: New file.
62712
62713 2003-11-03  Bruno Haible  <bruno@clisp.org>
62714
62715         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
62716
62717 2003-11-03  Bruno Haible  <bruno@clisp.org>
62718
62719         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
62720         available, to avoid (extremely rare) race condition.
62721         Suggested by Paul Eggert.
62722
62723 2003-11-02  Karl Berry  <karl@gnu.org>
62724
62725         * config/srclist.txt (vasprintf.c): sync broken, sigh.
62726
62727 2003-10-31  Paul Eggert  <eggert@twinsun.com>
62728
62729         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
62730         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
62731         (read_filesystem_list): Set and use me_type_malloced.
62732         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
62733         whatever the type happens to be), for brevity and consistency.
62734         Check for size calculation overflow on Alphas running OSF/1.
62735
62736 2003-10-31  Jim Meyering  <jim@meyering.net>
62737
62738         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
62739
62740         * lib/linebuffer.c: Include <string.h> for declaration of memset.
62741
62742 2003-10-30  Paul Eggert  <eggert@twinsun.com>
62743             Bruno Haible  <bruno@clisp.org>
62744
62745         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
62746         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
62747
62748 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62749
62750         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
62751         netbsd*-gnu*.  Suggested by Robert Millan.
62752
62753 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62754
62755         * modules/group-member: Depend on stdbool.
62756
62757 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62758
62759         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
62760
62761 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62762
62763         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
62764         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
62765         after the 'gnu' in these cases.  This fixes some bugs in the
62766         previous change, and is based on suggestions by Robert Millan.
62767
62768 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62769
62770         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
62771         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
62772         no longer needed.
62773         * lib/quotearg.c (quotearg_n_options): Use it.
62774         * lib/group-member.c: Include <stdbool.h>.
62775         (free_group_info): Arg is now const *; don't free arg.
62776         (get_group_info): Now returns bool and accepts struct group_info *,
62777         rather than returning a malloc'ed struct group_info *.
62778         All uses changed.  Check for overflow in internal size calculation.
62779
62780         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
62781         rather than xmalloc/xrealloc.
62782         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
62783         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
62784         conformance bug: the old code used a pointer after freeing the
62785         storage that it addressed.
62786         * lib/hash.c (hash_initialize): Simplify the code by using
62787         xalloc_oversized rather than doing it by hand.
62788         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
62789         the buffer preserved.  Use free and xmalloc instead.
62790         * lib/quotearg.c (quotearg_n_options): Likewise.
62791         Use a simpler test for size overflow.  Don't use xalloc_oversized
62792         because unsigned int might be wider than size_t (!); this suggests
62793         that we should switch from unsigned int to size_t for slot numbers.
62794
62795 2003-10-28  Paul Eggert  <eggert@twinsun.com>
62796
62797         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
62798         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
62799         NetBSD kernels.  Requested by Richard Stallman.
62800
62801 2003-10-27  Paul Eggert  <eggert@twinsun.com>
62802
62803         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
62804         to allocate the returned structure.  Do not allocate a subarray,
62805         as x2nrealloc will do that.
62806         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
62807         instead of xnrealloc.
62808         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
62809
62810 2003-10-27  Bruno Haible  <bruno@clisp.org>
62811
62812         * lib/stdbool_.h: Better support for BeOS.
62813
62814 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62815
62816         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
62817         now uses inline.
62818
62819 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62820
62821         * lib/xalloc.h (xalloc_oversized): New static inline function, for
62822         callers that want to do their own size-overflow checking.  Include
62823         <stdbool.h>, since xalloc_oversized returns bool.
62824         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
62825         to use xalloc_oversized.
62826
62827         Add two functions x2realloc, x2nrealloc, for programs that grow
62828         arrays dynamically by doubling their sizes.
62829         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
62830         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
62831         New functions.
62832
62833         Port to C99 semantics for 'inline' of external functions.
62834         Bug reported by Bruno Haible.
62835         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
62836         with the old contents of xnmalloc.
62837         (xnmalloc, xmalloc): Use it.
62838         (xnrealloc_inline): New static inline function,
62839         with the old contents of xnrealloc.
62840         (xnrealloc, xrealloc): Use it.
62841
62842         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
62843         that.
62844
62845 2003-10-26  Karl Berry  <karl@gnu.org>
62846
62847         * config/srclist.txt (COPYING.DOC): no longer available from
62848         /gd/gnuorg; don't know where the ultimate source is.
62849
62850 2003-10-25  Paul Eggert  <eggert@twinsun.com>
62851
62852         Fix several address-calculation bugs in the hash modules,
62853         plus some minor code cleanup.
62854
62855         * lib/hash.h: Include <stdbool.h>, for bool.
62856         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
62857         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
62858         hash_get_n_entries, hash_get_max_bucket_length,
62859         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
62860         hash_rehash): Use size_t rather than unsigned.
62861         * lib/hash.c (struct hash_table, hash_get_n_buckets,
62862         hash_get_n_buckets_used, hash_get_n_entries,
62863         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
62864         hash_get_entries, hash_do_for_each, hash_string, is_prime,
62865         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
62866         Likewise.
62867         (SIZE_MAX): Define if not defined.
62868         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
62869         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
62870         hash_print):
62871         Use const * when possible.
62872         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
62873         (check_tuning): Fix bug: if tuning parameters were very close to
62874         0 or 1, rounding errors could have caused subscript violations.
62875         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
62876         (hash_initialize): Add 'fail:' label
62877         to free table and return NULL, and use it to simplify code.
62878         Use calloc rather than clearing the storage ourself.
62879         (hash_initialize, hash_rehash): Check for arithmetic overflow in
62880         buffer size calculations.
62881         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
62882         Include <stddef.h>, for size_t.
62883         * lib/hash-pjw.c (hash_pjw): Likewise.
62884         Switch to method described by Bruno Haible.
62885         Include <limits.h>, for CHAR_BIT.
62886         (SIZE_BITS): New macro.
62887
62888 2003-10-23  Paul Eggert  <eggert@twinsun.com>
62889
62890         * m4/getline.m4 (AM_FUNC_GETLINE):
62891         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
62892         hosts.  Problem reported by Derek Robert Price in
62893         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
62894         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
62895         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
62896
62897 2003-10-21  Paul Eggert  <eggert@twinsun.com>
62898
62899         * lib/getndelim2.c (getndelim2): When size calculation overflows,
62900         ceiling the allocation at NMAX bytes rather than silently
62901         discarding input bytes before NMAX is reached.  This makes
62902         a difference only if NMAX exceeds SIZE_MAX / 2.
62903
62904         * lib/obstack.c: Merge from glibc.
62905         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
62906         Add libc_hidden_def (_obstack_newchunk).
62907         (_obstack_free) [! defined _LIBC]: Remove.
62908         [defined _LIBC]: Make a strong alias from obstack_free, rather than
62909         a clone of the function body.
62910         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
62911         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
62912
62913         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
62914         glibc.
62915         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
62916         arg to memcpy.
62917
62918         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
62919         (obstack_ptr_grow_fast, obstack_int_grow_fast):
62920         Don't use lvalue casts, as GCC plans to remove support for them
62921         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
62922         was also present in the non-GCC version, indicating that this
62923         code had always been buggy and had never been widely used.
62924         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
62925         Use the fast variant of each macro, rather than copying the
62926         definiens of the fast variant; that way, we'll be more likely to
62927         catch future bugs in the fast variants.
62928
62929 2003-10-20  Bruno Haible  <bruno@clisp.org>
62930
62931         * modules/wait-process: New file.
62932         * MODULES.html.sh (func_all_modules): Add wait-process.
62933
62934 2003-10-20  Bruno Haible  <bruno@clisp.org>
62935
62936         * m4/wait-process.m4: New file.
62937
62938 2003-10-20  Bruno Haible  <bruno@clisp.org>
62939
62940         * lib/wait-process.h: New file, from GNU gettext.
62941         * lib/wait-process.c: New file, from GNU gettext.
62942
62943 2003-10-19  Jim Meyering  <jim@meyering.net>
62944
62945         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
62946         HPUX 10.20.
62947
62948 2003-10-18  Karl Berry  <karl@gnu.org>
62949
62950         * config/config.guess: update from config.
62951
62952 2003-10-16  Paul Eggert  <eggert@twinsun.com>
62953
62954         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
62955         (getgroups): First arg is int, not size_t.
62956         Don't let 'free' mangle errno.
62957
62958 2003-10-16  Paul Eggert  <eggert@twinsun.com>
62959
62960         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
62961
62962 2003-10-16  Karl Berry  <karl@gnu.org>
62963
62964         * config/config.{guess,sub}: update from config.
62965
62966 2003-10-16  Jim Meyering  <jim@meyering.net>
62967
62968         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
62969         memcpy.
62970
62971 2003-10-15  Paul Eggert  <eggert@twinsun.com>
62972
62973         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
62974         (SIZE_MAX): Remove.
62975         (new_exclude, add_exclude_file): Initial size no longer needs to
62976         be a power of 2.
62977         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
62978         our own address arithmetic overflow checking.
62979
62980         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
62981         (fnmatch): Do not alloca more than 2000 wide characters;
62982         instead, use malloc for large buffers.
62983         Check for address arithmetic overflow, and return -1
62984         with errno set to ENOMEM in that case.
62985         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
62986         (NEW_PATTERN): Do not alloca more than 8000 bytes;
62987         instead, return -1.  Check for address arithmetic overflow.
62988
62989 2003-10-14  Paul Eggert  <eggert@twinsun.com>
62990
62991         Handle invalid suffixes and overflow independently, so that
62992         callers can treat them independently as needed.  Fix some bugs in
62993         suffix handling, e.g., "100k@" was not diagnosed as an invalid
62994         suffix for a human-readable blocksize.  The major caller-visible
62995         change is the addition of a new
62996         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
62997         that both overflow and suffix chars were found.
62998
62999         * lib/human.c (humblock): Don't check separately for invalid suffix
63000         char; that is xstrtoumax's job (now that its bug is fixed).
63001         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
63002         INTMAX_MAX]: New macros.
63003         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
63004         TYPE_MAXIMUM): New macros.
63005         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
63006         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
63007         if overflow occurs, as it's what __strtol does and it's more useful
63008         in practice.
63009         (__xstrtol): If __strtol reports some error other than ERANGE,
63010         reflect it to the caller as LONGINT_INVALID.  If it reports
63011         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
63012         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
63013         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
63014         value.
63015         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
63016         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
63017         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
63018         [defined UINTMAX_MAX]: New macros.
63019
63020 2003-10-14  Bruno Haible  <bruno@clisp.org>
63021
63022         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
63023
63024 2003-10-14  Bruno Haible  <bruno@clisp.org>
63025
63026         * m4/sig_atomic_t: New file, from GNU gettext.
63027         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
63028
63029 2003-10-14  Bruno Haible  <bruno@clisp.org>
63030
63031         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
63032         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
63033         Also use volatile where needed.
63034
63035 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63036
63037         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
63038         Change maintainer from Bruno Haible to 'all'.
63039
63040 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63041
63042         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
63043
63044 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63045
63046         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
63047         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
63048         and define in terms of the other primitives.
63049         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
63050         (SIZE_MAX): Define if not already defined.
63051         (array_size_overflow): New function.
63052         (xalloc_die): Abort instead of exiting if 'error' returns.
63053         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
63054         (xmalloc, xrealloc): Use them.
63055         (xcalloc): Check for address arithmetic overflow.
63056         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
63057         a bit faster than strcpy.
63058
63059 2003-10-10  Simon Josefsson  <jas@extundo.com>
63060
63061         * modules/argp (Depends-on): Add restrict and strcase.
63062
63063 2003-10-10  Simon Josefsson  <jas@extundo.com>
63064
63065         * m4/argp.m4: Add AC_C_INLINE.
63066
63067 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63068
63069         Merge getpass from libc, plus a few fixes.
63070
63071         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
63072         Include <stdbool.h>.
63073         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
63074         __fsetlocking to empty.
63075         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
63076         do include <bits/libc-lock.h>.
63077         Do not include <fcntl.h>; not needed.
63078         [_LIBC]: Include <wchar.h>.
63079         (NOTCANCEL_MODE): New macro.
63080         (flockfile, funlockfile) [_LIBC]: New macros.
63081         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
63082         [!_LIBC]: New macros.
63083         (call_fclose): New function.
63084         (getpass): Use it.  Save tty stream separately; this simplifies the
63085         code and makes it more reliable if stdin happens to equal stdout.
63086         Invoke __fsetlocking on tty.
63087         Handle thread cancellation if needed.
63088         Namespace cleanup (use __tcgetattr, __getline).
63089         Use bool for Booleans.
63090         [USE_IN_LIBIO]: Handle wide streams.
63091         [!_LIBC]: Unconditionally do the fseek, since we don't know what
63092         stream might go where.
63093
63094         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
63095         doesn't have to include <stdio.h> before us.
63096         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
63097         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
63098         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
63099         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
63100         if not declared, so that we can use getpass.c code from libc without
63101         rewriting it.
63102         (flockfile, ftrylockfile, funlockfile): New macros.
63103
63104 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63105
63106         * modules/getpass: Depend on stdbool.
63107
63108 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63109
63110         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
63111
63112 2003-10-07  Karl Berry  <karl@gnu.org>
63113
63114         * config/config.{guess,sub}: update from config.
63115
63116 2003-10-06  Jim Meyering  <jim@meyering.net>
63117             Bruno Haible  <bruno@clisp.org>
63118
63119         This lets translators provide better translations for the
63120         "Written by ..." part of --version output.
63121         * lib/version-etc.h: Include stdarg.h.
63122         (version_etc_copyright): Declare as readonly.
63123         (version_etc): Make this function variadic with a NULL-terminated list
63124         of author name strings.
63125         (version_etc_va): New declaration.
63126         * lib/version-etc.c: Include stdarg.h, stdlib.h.
63127         (version_etc_copyright): Declare as readonly.
63128         (version_etc_va): New function. Provide a different translatable string
63129         for each possible number of authors < 10. Abbreviate when there are 10
63130         authors or more.
63131         (version_etc): Make this function variadic. Call version_etc_va.
63132         Suggestion from Gary V. Vaughan.
63133
63134         * lib/long-options.h (parse_long_options): Change prototype: the
63135         authors string is moved to the end and becomes variadic.
63136         * lib/long-options.c: Include stdarg.h.
63137         (parse_long_options): Make this function variadic, too.
63138         Call version_etc_va, not version_etc.
63139
63140 2003-10-06  Bruno Haible  <bruno@clisp.org>
63141
63142         * modules/version-etc-2: Remove file.
63143         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
63144
63145 2003-10-06  Bruno Haible  <bruno@clisp.org>
63146
63147         * modules/fatal-signal: New file.
63148         * MODULES.html.sh (func_all_modules): Add fatal-signal.
63149
63150 2003-10-06  Bruno Haible  <bruno@clisp.org>
63151
63152         * m4/fatal-signal.m4: New file.
63153         * m4/signalblocking.m4: New file, from GNU gettext.
63154
63155 2003-10-06  Bruno Haible  <bruno@clisp.org>
63156
63157         * lib/version-etc-2.h: Remove file.
63158         * lib/version-etc-2.c: Remove file.
63159
63160 2003-10-06  Bruno Haible  <bruno@clisp.org>
63161
63162         * lib/fatal-signal.h: New file, from GNU gettext.
63163         * lib/fatal-signal.c: New file, from GNU gettext.
63164
63165 2003-10-05  Paul Eggert  <eggert@twinsun.com>
63166
63167         * README: Rework advice for preventing empty .o files.
63168         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
63169         not <sys/types.h>.
63170
63171 2003-10-04  Karl Berry  <karl@gnu.org>
63172
63173         * lib/argp*: update from libc.
63174
63175 2003-10-04  Karl Berry  <karl@gnu.org>
63176
63177         * config/config.{guess,sub}: update from config.
63178
63179 2003-10-02  Bruno Haible  <bruno@clisp.org>
63180
63181         * modules/lchown (Include): Add lchown.h.
63182         * modules/time_r (Include): Use "..." syntax.
63183         * modules/xgetdomainname (Include): Add xgetdomainname.h.
63184
63185 2003-10-01  Simon Josefsson  <jas@extundo.com>
63186
63187         * MODULES.html.sh (func_all_modules): Move gethostname from section
63188         'based on' to section 'lacking' POSIX:2001.
63189
63190 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
63191
63192         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
63193         to output mode on the same stream.
63194
63195 2003-09-29  Paul Eggert  <eggert@twinsun.com>
63196
63197         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
63198         Fix arg typo in previous patch.
63199
63200 2003-09-28  Jim Meyering  <jim@meyering.net>
63201
63202         * lib/error.c: Correct cpp indentation.
63203
63204 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63205
63206         * modules/free: New file.
63207
63208 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63209
63210         * m4/free.m4: New file.
63211
63212 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63213
63214         * lib/minmax.h (MIN, MAX)
63215         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
63216         Omit the special code that used __typeof__, since we worry that
63217         it could be more trouble than it's worth.  See:
63218         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
63219         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
63220
63221         * lib/free.c: New file.
63222
63223 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
63224
63225         Trivial fixes to Makefile.am parts of module listings.
63226         * modules/strstr: Append strstr.h to lib_SOURCES.
63227         * modules/strcase: Likewise, for strcase.h.
63228
63229 2003-09-27  Karl Berry  <karl@gnu.org>
63230
63231         * config/mkinstalldirs: update from automake.
63232
63233 2003-09-26  Paul Eggert  <eggert@twinsun.com>
63234
63235         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
63236         (error_tail): Do not loop, reallocating temporary buffer, since
63237         the output cannot contain more wide characters than the input
63238         contains bytes, the size must be big enough already.  This avoids
63239         one potential size overflow calculation.  Check for size overflow
63240         when calculating temporary buffer size.  Free temporary buffer
63241         when done, if it was allocated with malloc; this plugs a memory
63242         leak.  Remove casts from void * to pointers, that are no longer
63243         needed now that we're assuming C89 or better.
63244
63245         Merge error changes from glibc.
63246
63247         * lib/error.c, error.h: Update copyright notice header to match glibc.
63248         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
63249         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
63250         Disable cancellation while printing error.
63251         * lib/error.h: Prepend __ to parameter names.
63252
63253 2003-09-26  Jim Meyering  <jim@meyering.net>
63254
63255         * lib/error.c (error_tail): Move some declarations
63256         into inner scope where the local variables are used.
63257
63258 2003-09-26  Bruno Haible  <bruno@clisp.org>
63259
63260         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
63261         stpncpy().
63262         Don't define stpncpy through config.h; it's now done through stpncpy.h.
63263
63264 2003-09-26  Bruno Haible  <bruno@clisp.org>
63265
63266         * lib/stpncpy.h (gnu_stpncpy): New declaration.
63267         (stpncpy): Define as alias for gnu_stpncpy.
63268         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
63269
63270 2003-09-25  Simon Josefsson  <jas@extundo.com>
63271
63272         * lib/xgetdomainname.h: New file.
63273         * lib/xgetdomainname.c: New file.
63274
63275 2003-09-25  Simon Josefsson  <jas@extundo.com>
63276             Bruno Haible  <bruno@clisp.org>
63277
63278         * modules/getdomainname: New file.
63279         * modules/xgetdomainname: New file.
63280         * MODULES.html.sh (func_all_modules): Add getdomainname,
63281         xgetdomainname.
63282
63283 2003-09-25  Simon Josefsson  <jas@extundo.com>
63284             Bruno Haible  <bruno@clisp.org>
63285
63286         * m4/getdomainname.m4: New file.
63287
63288 2003-09-25  Simon Josefsson  <jas@extundo.com>
63289             Bruno Haible  <bruno@clisp.org>
63290
63291         * lib/getdomainname.h: New file.
63292         * lib/getdomainname.c: New file.
63293
63294 2003-09-25  Karl Berry  <karl@gnu.org>
63295
63296         * lib/argp-fmtstream.c, argp-help.c: update from libc.
63297
63298 2003-09-25  Karl Berry  <karl@gnu.org>
63299
63300         * config/install-sh: update from automake.
63301
63302 2003-09-25  Bruno Haible  <bruno@clisp.org>
63303
63304         * modules/version-etc-2: New file, from modules/version-etc with
63305         modifications.
63306         * MODULES.html.sh (func_all_modules): Add version-etc-2.
63307
63308 2003-09-25  Bruno Haible  <bruno@clisp.org>
63309
63310         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
63311         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
63312
63313 2003-09-24  Simon Josefsson  <jas@extundo.com>
63314
63315         * modules/xgethostname: Add xgethostname.h.
63316
63317 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63318
63319         * lib/linebuffer.c (freebuffer): Don't free the argument, just
63320         the buffer associated with the argument.  Bug reported by
63321         Simon Josefsson.
63322
63323 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63324
63325         * README: Document assumptions that 'int' is at least 32 bits
63326         wide, that integer arithmetic is 2's complement without overflow,
63327         that there are no holes in integer values, that adding sizes of
63328         two nonoverlapping objects can't overflow, and that all-bits-zero
63329         yields scalar zero.  Fix spelling and capitalization typos.
63330
63331 2003-09-19  Karl Berry  <karl@gnu.org>
63332
63333         * lib/argp.h: update from libc.
63334
63335 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63336
63337         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
63338         to avoid spurious warnings like "AC_RUN_IFELSE was called before
63339         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
63340
63341 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63342
63343         * gnulib-tool: Use "test -h", not "test -L", for portability
63344         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
63345         (tags_regexp): Remove, since \| doesn't conform to POSIX.
63346         (sed_extract_prog): Issue s commands one-by-one, rather than
63347         using \| in one s command.
63348
63349 2003-09-16  Paul Eggert  <eggert@twinsun.com>
63350
63351         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
63352         input error, instead of returning NULL the next time we are called
63353         (and therefore losing track of errno).
63354
63355 2003-09-16  Bruno Haible  <bruno@clisp.org>
63356
63357         * gnulib-tool (func_create_testdir): Warn about duplicated
63358         dependencies.
63359
63360 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63361
63362         * modules/argmatch, modules/fatal, modules/obstack,
63363         modules/xalloc, modules/xgethostname: Sort dependencies by
63364         importance, not alphabetically.
63365
63366 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63367
63368         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
63369         fails, so that the caller gets the proper errno.
63370
63371         * lib/readutmp.c (read_utmp): Likewise.
63372         Check for fstat error.  Close stream and free storage
63373         when failing.
63374
63375 2003-09-14  Karl Berry  <karl@gnu.org>
63376
63377         * config/srclist.txt (strdup.c): disable for c89 changes.
63378
63379 2003-09-14  Jim Meyering  <jim@meyering.net>
63380
63381         * lib/getloadavg.c: Correct cpp indentation.
63382         * lib/strdup.c: Likewise.
63383         * lib/vasnprintf.c: Likewise.
63384
63385 2003-09-14  Bruno Haible  <bruno@clisp.org>
63386
63387         * modules/fwriteerror: New file.
63388         * MODULES.html.sh (func_all_modules): Add fwriteerror.
63389
63390 2003-09-14  Bruno Haible  <bruno@clisp.org>
63391
63392         * lib/fwriteerror.h: New file.
63393         * lib/fwriteerror.c: New file.
63394
63395 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63396
63397         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
63398         modules/xgethostname, modules/xalloc: Depend on exit.
63399
63400 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63401
63402         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
63403
63404         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
63405         and AC_MINIX, too, so that their extensions are available.
63406
63407         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
63408         This macro has been superseded by gl_BACKUPFILE.
63409
63410         More patches to assume C89 or better.
63411
63412         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
63413
63414         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
63415         unconditionally.
63416         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
63417         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
63418         Include <string.h>, <stdlib.h> unconditionally.
63419         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
63420         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
63421         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
63422         headers or for string.h.
63423         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
63424         or strtoul.
63425
63426         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
63427         headers.
63428         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
63429         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63430         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
63431         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
63432         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63433         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
63434         memcpy, memset.
63435         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
63436         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
63437         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
63438         strtol.
63439         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
63440         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
63441         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
63442         strtoul.
63443
63444 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63445
63446         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
63447         * lib/obstack.c [!defined _LIBC]: Likewise.
63448         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
63449         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
63450         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
63451
63452         More changes to assume C89 or better.
63453
63454         * lib/error.c (error_tail): Assume vprintf.
63455
63456         * lib/argmatch.c (getenv): Remove decl.
63457         * lib/progreloc.c (get_full_program_name): Define via prototype.
63458         * lib/setenv.c (clearenv): Likewise.
63459         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
63460         needed.
63461         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
63462         (malloc, memcpy): Remove decls.
63463         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
63464         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
63465         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63466         (memcpy): Remove macro.
63467         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
63468         (__P): Remove.  All uses removed.
63469         (PTR): Remove.  All uses changed to void *.
63470         (CHAR_BIT, NULL): Remove.
63471         (spaces, zeros, memset_space, memset_zero)
63472         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
63473         Remove.
63474         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
63475         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
63476         Define with prototype.
63477         Remove now-unnecessary prototype decl.
63478         (extra_args_spec): Assume ANSI C.  All uses changed.
63479         (extra_args_spec_iso): Remove.
63480         (my_strftime, emacs_strftimeu): Define via prototype.
63481         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
63482         unconditionally.
63483         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
63484         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
63485         (strtoul, strtol): Remove decls.
63486         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
63487         LONG_MAX): Remove.
63488         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63489         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
63490         (LOCALE_PARAM_PROTO): New macro.
63491         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
63492         (INTERNAL (strtol), strtol): Define with a prototype.
63493         (PARAMS): Remove.  All uses removed.
63494         * lib/tempname.c: Include <string.h> unconditionally.
63495         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
63496         * lib/xgethostname.c (main): Define with a prototype.
63497         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
63498         Include <stdlib.h> unconditionally.
63499         (calloc, malloc, realloc, free): Remove decls.
63500         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
63501         Include <stdlib.h> unconditionally.  Sort include file names.
63502         (strtod): Remove.
63503         (xstrtod): Define with a prototype.
63504         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
63505         (strtol, strtoul): Remove decls.
63506
63507 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63508
63509         More patches to assume C89 or better.
63510         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
63511         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
63512         string.h, memchr, STDC_HEADERS.
63513
63514 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63515
63516         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
63517         Include <stdlib.h>, <string.h> unconditionally.
63518         Remove now-unnecessary cast to char *.
63519         * lib/strnlen.c: Include <string.h> unconditionally.
63520         * lib/yesno.c (yesno): Define with a prototype.
63521
63522 2003-09-11  Bruno Haible  <bruno@clisp.org>
63523
63524         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
63525
63526 2003-09-10  Jim Meyering  <jim@meyering.net>
63527
63528         * lib/error.c: Correct indentation of cpp directives.
63529
63530 2003-09-10  Bruno Haible  <bruno@clisp.org>
63531
63532         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
63533         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
63534         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
63535         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
63536         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
63537         <stdlib.h> and <string.h> checks.
63538         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
63539         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
63540
63541 2003-09-10  Bruno Haible  <bruno@clisp.org>
63542
63543         * lib/strcspn.c: Include <string.h> unconditionally.
63544         * lib/strpbrk.c: Include <string.h> unconditionally.
63545         * lib/strstr.c: Include <string.h> unconditionally.
63546         * lib/unicodeio.c: Include <string.h> unconditionally.
63547         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
63548         * lib/unsetenv.c: Likewise.
63549         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
63550         * lib/yesno.c: Include <stdlib.h> unconditionally.
63551         (rpmatch): Add prototype.
63552
63553 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63554
63555         More patches to assume C89 or better.
63556         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
63557         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
63558         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
63559         or for string.h.
63560         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
63561         stdlib.h.
63562         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
63563         C headers.
63564         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
63565         string.h.
63566         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
63567         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
63568         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
63569         or for string.h.
63570         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
63571         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
63572         C headers.
63573         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
63574         memcpy.
63575         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
63576         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
63577         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
63578         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
63579         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
63580         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
63581         string.h, free.
63582         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
63583         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
63584         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
63585         C headers, or for string.h.
63586         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
63587         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
63588         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
63589         headers, memory.h, stdlib.h, string.h, strings.h.
63590         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
63591         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
63592         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
63593         strchr.
63594         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
63595         headers, memory.h, string.h.
63596         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
63597         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
63598         free.
63599         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
63600         headers.
63601         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
63602         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
63603         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
63604         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
63605         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
63606
63607 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63608
63609         More K&R removal.
63610
63611         * lib/acosl.c (main): Use a prototype.
63612         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
63613         tanl.c: Likewise.
63614
63615         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
63616
63617         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
63618         (getopt, etopt_long, getopt_long_only, _getopt_internal)
63619         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
63620         with a prototype.
63621         * lib/getopt.c (const): Remove macro.
63622         Include <string.h> unconditionally.
63623         (my_index): Remove; all uses changed to strchr.
63624         (strlen): Remove decl.
63625         (exchange): Remove forward decl; no longer needed.
63626         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
63627         Define with prototype.
63628         * lib/getopt1.c (const): Remove macro.
63629         (getopt_long, getopt_long_only, main): Define with prototype.
63630
63631         * lib/getugroups.c: Include <string.h> unconditionally.
63632
63633         * lib/getusershell.c: Include <stdlib.h> unconditionally.
63634         (getusershell, setusershell, endusershell, readname, main):
63635         Define with prototypes.
63636
63637         * lib/group-member.c: Include group-member.h first.
63638         Include <stdlib.h> unconditionally.
63639
63640         * lib/hard-locale.c: Include hard-locale.h first.
63641         Include <stdlib.h>, <string.h> unconditionally.
63642
63643         * lib/hash.c (free, malloc): Remove decls.
63644         Include <stdlib.h> unconditionally.
63645
63646         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
63647         (getenv): Do not declare.
63648
63649         * lib/idcache.c: Include <string.h> unconditionally.
63650
63651         * lib/long-options.c: Include long-options.h first, to test interface.
63652         Include <stdlib.h> unconditionally.
63653
63654         * lib/makepath.c: Include makepath.h first, to test interface.
63655         Include <stdlib.h> and <string.h> unconditionally.
63656
63657         * lib/linebuffer.c: Include <stdlib.h>.
63658         (free): Remove decl.
63659
63660         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
63661         stddef.h. rpl_malloc returns void *, not char *.
63662         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
63663         prototype.
63664
63665         * lib/md5.h: Include <limits.h> unconditionally.
63666         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
63667         (__P): Remove; all uses removed.
63668         * lib/md5.c: Include "md5.h" first.
63669         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
63670         md5_buffer, md5_process_bytes, md5_process_block):
63671         Define with prototypes.
63672         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
63673         * lib/sha.c: Include "sha.h" first.
63674         Include <stdlib.h>, <string.h> unconditionally.
63675
63676         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
63677         * lib/memcmp.c (__ptr_t): Likewise.
63678         * lib/memrchr.c (__ptr_t): Likewise.
63679         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
63680         Include <string.h> unconditionally.
63681         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
63682         * lib/memchr.c: Include <stdlib.h> unconditionally.
63683         * lib/memchr.c (LONG_MAX): Remove.
63684         * lib/memrchr.c (LONG_MAX): Likewise.
63685         * lib/memchr.c (__memchr): Define via a prototype.
63686         * lib/memrchr.c (__memrchr): Likewise.
63687         * lib/memcmp.c (__P): Remove, and remove all uses.
63688         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
63689         Remove forward decls; no longer needed.
63690         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
63691         Use types required by C89 in prototype.
63692
63693         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
63694         * lib/savedir.c: Likewise.
63695         * lib/mkdir.c (free): Remove decl.
63696         * lib/rmdir.c (rmdir): Define with a prototype.
63697         * lib/savedir.c: Include savedir.h first, to test interface.
63698
63699         * lib/mktime.c (STDC_HEADERS): Remove.
63700         Include <stdlib.h>, <string.h> unconditionally.
63701
63702         * lib/modechange.c: Include <stdlib.h> unconditionally.
63703         (malloc): Remove decl.
63704
63705         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
63706         (free): Remove decl.
63707
63708         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
63709         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
63710         (This type really should be intptr_t, but that's a C99ism.)
63711         (_obstack_memcpy): Remove: all uses changed to memcpy.
63712         Include <string.h> unconditionally.
63713         (struct obstack): Assume __STDC__ for types of members
63714         chunkfun, freefun, extra_arg.
63715         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
63716         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
63717         obstack_begin, obstack_specify_allocation,
63718         obstack_specify_allocation_with_arg, obstack_chunkfun,
63719         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
63720         Remove unprototyped decls and the macros that use them.
63721         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
63722         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
63723         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
63724         (defined __STDC__ && __STDC__)]:
63725         Remove nonprototyped code.
63726         Include <stdlib.h> unconditionally.
63727         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
63728         _obstack_allocated_p, _obstack_free, obstack_free,
63729         _obstack_memory_used, print_and_abort):
63730         Define using prototypes.
63731         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
63732         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
63733         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
63734         obstack_next_free, obstack_object_size, obstack_room) [0]:
63735         Remove unused, unprototyped code.
63736
63737         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
63738
63739         * lib/physmem.c (physmem_total, physmem_available, main): Define
63740         with prototypes.
63741
63742         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
63743         (main): Define with a prototype.
63744
63745         * lib/posixver.c (getenv): Remove decl.
63746
63747         * lib/putenv.c (malloc): Returns void *, not char *.
63748         Include <string.h> unconditionally.
63749         (strchr, memcpy, NULL): Do not define.
63750
63751         * lib/readtokens.c: Include readtokens.h first, to test interface.
63752         Include <stdlib.h>, <string.h> unconditionally.
63753         (init_tokenbuffer): Define with a prototype.
63754
63755         * lib/regex.c (PARAMS): Remove.  All uses removed.
63756         All uses of _RE_ARGS removed, too.
63757         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63758         unconditionally.
63759         (bzero): Assume memset exists.
63760         (memcmp, memcpy, NULL): Remove.
63761         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
63762         char, or assignments to local vars of type signed char.
63763         (init_syntax_once, PREFIX(extract_number_and_incr),
63764         PREFIX(print_partial_compiled_pattern),
63765         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
63766         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
63767         PREFIX(regex_grow_registers), PREFIX(regex_compile),
63768         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
63769         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
63770         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
63771         wcs_compile_range, byte_compile_range, truncate_wchar,
63772         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
63773         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
63774         count_mbs_length, wcs_re_match_2_internal,
63775         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
63776         PREFIX(alt_match_null_string_p),
63777         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
63778         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
63779         regfree, PREFIX(extract_number)): Define with prototype.  Remove
63780         now-unnecessary declaration, if any.
63781         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
63782         regcomp, regexec):
63783         Remove now-unnecessary casts among pointer types.
63784         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
63785
63786         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
63787         (free): Remove decl.
63788
63789         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
63790
63791         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
63792         (free): Remove decl.
63793
63794         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
63795         * lib/xgetcwd.c: Likewise.
63796
63797         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
63798         (free): Remove decl.
63799
63800         * lib/strchrnul.c (strchrnul): Define with a prototype.
63801         Fix bug: c_in was not converted to char before searching.
63802
63803         The following changes are not K&R related:
63804
63805         * lib/group-member.h: Include <sys/types.h>, so that this file is
63806         self-contained.
63807         * lib/makepath.h: Likewise.
63808
63809         * lib/getusershell.c (readname, default_index, line_size, readname):
63810         Use size_t, not int, for sizes.
63811         (readname): If the size overflows, report an error instead of
63812         looping forever.
63813
63814 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63815
63816         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
63817         libc.
63818
63819 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63820
63821         * README: New section: portability guidelines.
63822
63823 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63824
63825         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
63826         C89 spec.
63827
63828 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63829
63830         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
63831
63832 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63833
63834         Assume C89 or better; remove K&R cruft.
63835         A few of these changes were first proposed by Derek Robert Price
63836         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
63837
63838         * lib/addext.c: Include <string.h> unconditionally.
63839         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
63840         Don't declare getenv or malloc.
63841
63842         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
63843         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
63844         (NULL): Remove.
63845         (find_stack_direction, alloca): Use prototypes.
63846
63847         * lib/atexit.c (atexit): Define using a prototype.
63848
63849         * lib/basename.c, dirname.c, stripslash.c:
63850         Include <string.h> unconditionally.
63851
63852         * lib/bcopy.c: Include <stddef.h>.
63853         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
63854
63855         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
63856
63857         * lib/error.h (error, error_at_line, error_print_progname)
63858         [! (defined (__STDC__) && __STDC__)]: Remove decls.
63859         * lib/error.c: Include error.h first, to check interface.
63860         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
63861         (VA_START): Remove; all uses changeed to va_start.
63862         (exit, strerror): Remove decls.
63863         (error_print_progname): Prototype uncondionally.
63864         Don't include <errno.h>; no longer needed.
63865         (private_strerror): Remove.
63866         (error_tail): Always define.
63867         (error, error_at_line): Assume C89 or better; always use prototypes.
63868         * lib/fatal.c: Include "fatal.h" first, to test interface.
63869         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
63870         (VA_START): Remove; all uses changed to va_start.
63871         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
63872         this case.
63873         (exit): Remove decl.
63874         (fatal): Prototype unconditionally.  Assume va_start works.
63875         Abort at end, to pacify gcc.
63876
63877         * lib/euidaccess.c (main): Define with a prototype.
63878
63879         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
63880
63881         * lib/exitfail.c: Include <stdlib.h> unconditionally.
63882
63883         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
63884         prototypes.
63885         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
63886         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
63887         (getenv): Remove decl.
63888         (fnmatch): Define using a prototype.
63889         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
63890         (FCT): Define using a prototype.
63891
63892         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
63893
63894         * lib/gethostname.c: Include <stddef.h>.
63895         (gethostname): Define with prototype.  Length is size_t, not int.
63896
63897 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63898
63899         Assume C89 or better; remove K&R cruft.
63900         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
63901         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
63902         string.h, getenv, malloc.
63903         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
63904         headers.
63905         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
63906         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
63907         do not check for strerror.
63908         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
63909         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
63910         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
63911         do not check for doprnt or vprintf.
63912         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
63913         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
63914
63915 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63916
63917         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
63918         getversion.c should have been removed then, but was accidentally
63919         preserved.
63920
63921         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
63922         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
63923
63924 2003-09-08  Karl Berry  <karl@gnu.org>
63925
63926         * config/config.sub, config.guess, srclistvars.sh: update from savannah
63927                 config, forget about prep.
63928
63929         * config/depcomp, missing: update from automake.
63930
63931 2003-09-07  Paul Eggert  <eggert@twinsun.com>
63932
63933         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
63934         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
63935
63936 2003-09-07  Paul Eggert  <eggert@twinsun.com>
63937
63938         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
63939         copy_tm_result.  Bug reported by Simon Josefsson in
63940         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
63941
63942 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63943
63944         * m4/time_r.m4: New file.
63945         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
63946         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
63947         is. Check for timegm declaration.
63948         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
63949         Do not check for gmtime_r.
63950         Replace mktime if __mktime_internal does not exist and if mktime
63951         hasn't been replaced already.
63952
63953 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63954
63955         * lib/time_r.c, lib/time_r.h: New files.
63956
63957         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
63958         __localtime_r.
63959         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
63960         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
63961
63962         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
63963         __gmtime_r.
63964         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
63965         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
63966         Include <time_r.h>.
63967
63968         * lib/timegm.c: Switch to glibc implementation, with the following
63969         changes:
63970         [defined HAVE_CONFIG_H]: Include <config.h>.
63971         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
63972         (__mktime_internal) [!defined _LIBC]: New decl.
63973         (__gmtime_r) [!defined _LIBC]: New macro and function.
63974         (timegm): Use a prototype, since gnulib assumes C89.
63975         Do not bother declaring tmp to be const, as it's not really usefu.
63976         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
63977         (timegm): Declare only if HAVE_DECL_TIMEGM.
63978
63979 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63980
63981         * MODULES.html.sh (func_all_modules): Add time_r.
63982         * modules/time_r: New file.
63983         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
63984         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
63985
63986 2003-09-03  Paul Eggert  <eggert@twinsun.com>
63987
63988         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
63989         Bug reported by Lute Kamstra in
63990         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
63991
63992         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
63993         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
63994         course with correspondingly smaller numbers for tomorrow and
63995         yesterday.  From Tadayoshi Funaba.  Originally installed into
63996         sh-utils on 1999-08-07, but the patch got lost (I guess during the
63997         coreutils merge?).
63998
63999 2003-08-31  Simon Josefsson  <jas@extundo.com>
64000
64001         * modules/timegm: New file.
64002         * MODULES.html.sh (func_all_modules): Add timegm.
64003
64004 2003-08-31  Simon Josefsson  <jas@extundo.com>
64005
64006         * m4/timegm.m4: New file.
64007
64008 2003-08-31  Simon Josefsson  <jas@extundo.com>
64009
64010         * lib/timegm.h: New file.
64011         * lib/timegm.c: New file.  Based on
64012         wget-1.8.2/src/http.c:mktime_from_utc.
64013
64014 2003-08-31  Karl Berry  <karl@gnu.org>
64015
64016         * lib/argp.h: update from libc.
64017
64018 2003-08-28  Bruno Haible  <bruno@clisp.org>
64019
64020         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
64021         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
64022         followed by '#define fnmatch fnmatch_posix' gives an error.
64023
64024 2003-08-28  Bruno Haible  <bruno@clisp.org>
64025
64026         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
64027         warning on QNX, which defines O_BINARY to 000000.
64028
64029 2003-08-27  Jim Meyering  <jim@meyering.net>
64030
64031         * m4/mkstemp.m4: Require that the system mkstemp be able to create
64032         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
64033         would fail after 32.  Reported by Danny Levinson.  Details here:
64034         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
64035
64036 2003-08-24  Bruno Haible  <bruno@clisp.org>
64037
64038         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
64039         MSVC7 <stdio.h> is included later.
64040
64041 2003-08-22  Simon Josefsson  <jas@extundo.com>
64042
64043         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
64044
64045 2003-08-20  Karl Berry  <karl@gnu.org>
64046
64047         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
64048
64049 2003-08-20  Bruno Haible  <bruno@clisp.org>
64050
64051         * modules/progname: New file.
64052         * MODULES.html.sh (func_all_modules): Add progname.
64053
64054 2003-08-20  Bruno Haible  <bruno@clisp.org>
64055
64056         * lib/progname.h: New file, from GNU gettext.
64057         * lib/progname.c: New file, from GNU gettext.
64058         * lib/progreloc.c: New file, from GNU gettext.
64059
64060 2003-08-19  Jim Meyering  <jim@meyering.net>
64061
64062         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
64063         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
64064
64065 2003-08-19  Bruno Haible  <bruno@clisp.org>
64066
64067         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
64068         more.
64069
64070 2003-08-19  Bruno Haible  <bruno@clisp.org>
64071
64072         * lib/xstrdup.c: Assume <string.h> exists.
64073
64074 2003-08-18  Paul Eggert  <eggert@twinsun.com>
64075
64076         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
64077         in makefile rules.
64078
64079 2003-08-18  Jim Meyering  <jim@meyering.net>
64080
64081         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
64082         * m4/lib-ld.m4: Likewise.
64083
64084 2003-08-18  Jim Meyering  <jim@meyering.net>
64085
64086         * lib/setenv.h: Indent nested cpp directive.
64087         * lib/vasnprintf.c: Remove trailing blanks.
64088
64089 2003-08-17  Simon Josefsson  <jas@extundo.com>
64090
64091         * modules/xstrndup: New file.
64092         * MODULES.html.sh (func_all_modules): Add xstrndup.
64093
64094 2003-08-17  Simon Josefsson  <jas@extundo.com>
64095
64096         * modules/argp: Fix autoconf macro name. Add more dependencies.
64097
64098 2003-08-17  Simon Josefsson  <jas@extundo.com>
64099
64100         * m4/xstrndup.m4: New file.
64101
64102 2003-08-17  Simon Josefsson  <jas@extundo.com>
64103
64104         * m4/argp.m4: New file.
64105
64106 2003-08-17  Simon Josefsson  <jas@extundo.com>
64107             Bruno Haible  <bruno@clisp.org>
64108
64109         * lib/xstrndup.h: New file.
64110         * lib/xstrndup.c: New file.
64111
64112 2003-08-17  Bruno Haible  <bruno@clisp.org>
64113
64114         * modules/strndup (Files, Include): Add lib/strndup.h.
64115
64116 2003-08-17  Bruno Haible  <bruno@clisp.org>
64117
64118         * modules/euidaccess (Files): Add lib/euidaccess.h.
64119
64120 2003-08-17  Bruno Haible  <bruno@clisp.org>
64121
64122         * lib/strndup.h: New file.
64123
64124 2003-08-17  Bruno Haible  <bruno@clisp.org>
64125
64126         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
64127         like AC_GNU_SOURCE.
64128         * modules/extensions (configure.ac): Comment out the invocation of
64129         gl_USE_SYSTEM_EXTENSIONS.
64130
64131 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64132
64133         Merges from coreutils, etc.
64134         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
64135         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
64136         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
64137         fixing a typo.
64138         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
64139         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
64140
64141 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64142
64143         Document merge from coreutils.
64144         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
64145         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
64146         * modules/utime: Add m4/utimes-null.m4.
64147
64148 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64149
64150         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
64151         space, undoing this 2003-08-12 change:
64152         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64153
64154 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64155
64156         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
64157         strtoul.c from libc, undoing this 2003-08-12 change:
64158         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64159
64160 2003-08-16  Jim Meyering  <jim@meyering.net>
64161
64162         Merges from coreutils.
64163         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
64164         prefix.  Adjust cache variables similarly.  Create 500 rather than
64165         just 300 files, to exercise bug on Darwin6.5, too.
64166         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
64167         $missing_dir.
64168         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
64169         AM_SYS_POSIX_TERMIOS.
64170         Reported by mkc@mathdogs.com.
64171         Also change use of $am_cv_sys_posix_termios
64172         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
64173         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
64174         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
64175         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
64176         in /proc/mounts until it finds one with matching device number.  This
64177         is unnecessary when the FILE argument *is* a mount point.  No stat call
64178         is necessary in that case.  So, disable the statvfs-testing code on
64179         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
64180         as RedHat bug# 84846.
64181         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64182         to 1MB, so as not to render systems with no stack size limit (e.g.,
64183         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64184         Include <unistd.h>.  On some systems,
64185         it is required for the definition of _SC_PAGESIZE.
64186
64187 2003-08-16  Jim Meyering  <jim@meyering.net>
64188
64189         Merge from coreutils.
64190         * lib/xstrtoimax.c: #else #if -> #elif.
64191         * lib/xstrtoumax.c: Likewise.
64192
64193 2003-08-16  Jim Meyering  <jim@meyering.net>
64194
64195         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
64196         * m4/utimes.m4: Removed.
64197         * m4/utimes-null.m4: Renamed from utimes.m4.
64198
64199         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64200         to 1MB, so as not to render systems with no stack size limit (e.g.,
64201         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64202         Include <unistd.h>.  On some systems,
64203         it is required for the definition of _SC_PAGESIZE.
64204
64205 2003-08-16  Jim Meyering  <jim@meyering.net>
64206         and Paul Eggert  <eggert@cs.ucla.edu>
64207
64208         Merges from coreutils, etc.
64209
64210         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
64211         using the latest version from cvs.  This avoids problems with #line
64212         directives using a vendor (Sun) compiler.
64213         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
64214         Don't set GETGROUPS_LIB here; now it's
64215         done via getgroups.m4's wrapper function.
64216         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
64217         rather than just in sh-util/configure.in, so that the
64218         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
64219         same.
64220         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
64221         AC_FUNC_GETLOADAVG where to find getloadavg.c.
64222         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
64223         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
64224         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
64225         Remove code that is now done by the newly-required macros.
64226         Append $(EXEEXT) to DF_PROG.
64227         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
64228         Do not invoke or require the following here,
64229         since prereq.m4 or some gnulib .m4 now does this for us:
64230         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
64231         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
64232         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
64233         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
64234         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
64235         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
64236         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
64237         AC_FUNC_OBSTACK.
64238         Do not replace the following functions, as this is now the job
64239         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
64240         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
64241         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
64242         atexit getpass, strdup, getpagesize.
64243         Replace 'raise'.
64244         Do not check for the following functions, as this is now the job
64245         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
64246         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
64247         setregid.
64248         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
64249         Check for sys/sysctl.h.
64250         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
64251         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
64252         of checking for ssize_t ourselves.
64253
64254         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
64255         Require every macro that gnulib/modules/* suggests for us.
64256         (jm_PREREQ_ADDEXT): New macro.
64257         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
64258         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
64259
64260         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
64261         (gl_PHYSMEM): Use it.
64262         Also check for `table' function.
64263         Check for new headers and functions.
64264         Add check for sys/sysmp.h.
64265         With suggestions from Kaveh Ghazi.
64266         Ignore headers that are present but cannot be compiled.  This
64267         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
64268         C 5.4.
64269
64270 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64271
64272         Document merge from coreutils.
64273         * modules/userspec: Depend on posixver.
64274         * modules/strftime: Depend on tzset.
64275
64276 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64277
64278         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
64279         rather than tab, after '#' in shell-script copyright notices.
64280         Suggested by Bruno Haible.
64281
64282 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64283
64284         * config/srclist-update: Use three spaces, rather than tab, after '#'
64285         in shell-script copyright notices.  Suggested by Bruno Haible.
64286         Remove unnecessary parenthesization in regular expression.
64287
64288 2003-08-15  Jim Meyering  <jim@meyering.net>
64289
64290         Merge from coreutils.
64291         * lib/xgethostname.c: Include <stdlib.h>.
64292         (xghostname): Don't exit for anything other than memory-related
64293         failure; just return NULL.
64294         * lib/userspec.c: Include "posixver.h".
64295         (parse_user_spec): Accept `.' as a separator only
64296         in pre-POSIX-200112 mode.
64297         * lib/strtoimax.c: Use #elif rather than #else #if.
64298         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
64299         Remove function, now that we can rely on a working tzset function.
64300         [!_LIBC]: Ensure that the required autoconf test has been run.
64301         [!defined _NL_CURRENT && HAVE_STRFTIME]:
64302         Use underlying_strftime for %r.
64303         * lib/sha.c: Merge in some clean-up and optimization changes from
64304         glibc.
64305         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
64306         Ensure that it is a multiple of 64.
64307         Rearrange loop exit tests so as to avoid performing an
64308         additional fread after encountering an error or EOF.
64309         * lib/realloc.c: Update copyright date.
64310
64311 2003-08-15  Jim Meyering  <jim@meyering.net>
64312         and Paul Eggert  <eggert@twinsun.com>
64313
64314         Merge from coreutils.
64315         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
64316         member but strut utmpx does not.  Needed for AIX 4.3.3.
64317         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
64318
64319 2003-08-15  Jim Meyering  <jim@meyering.net>
64320         and Paul Eggert  <eggert@cs.ucla.edu>
64321
64322         Merges from coreutils, etc.
64323         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
64324         Require gl_FUNC_TZSET_CLOBBER.
64325         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
64326         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
64327         members.
64328
64329 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64330
64331         Help the merge from coreutils.
64332         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
64333         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
64334         * m4/tzset.m4: Use it too.
64335
64336 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64337
64338         * modules/tzset: New file.
64339
64340 2003-08-14  Jim Meyering  <jim@meyering.net>
64341
64342         Merges from coreutils.
64343         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
64344         variable names, rather than @FNMATCH_H@.
64345         * modules/alloca: Likewise for $(ALLOCA_H).
64346
64347         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
64348         the three copies of the literal target, `fnmatch.h'.
64349         * modules/alloca (alloca.h): Likewise.
64350
64351 2003-08-14  Jim Meyering  <jim@meyering.net>
64352
64353         Merge from coreutils.
64354         * m4/tzset.m4: New file.
64355         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
64356         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
64357         otherwise, AIX 5.1 systems would end up using the latter.
64358         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
64359         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
64360         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
64361         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
64362
64363 2003-08-14  Jim Meyering  <jim@meyering.net>
64364
64365         Merge from coreutils.
64366         * lib/obstack.h: Whitespace changes.
64367         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
64368         and xcalloc return values.
64369         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
64370         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
64371         hang on OSF/1 5.1 for DIR on both local and remote file systems.
64372         Reported by (and fix confirmed by) Nelson H. F. Beebe.
64373         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64374         error from mntctl.
64375         Use mntctl's return value to drive the entry-processing loop, since
64376         we can't rely on the value of the vmt_length member in the last
64377         entry.  On some systems doing so could result in exhausting
64378         virtual memory.  Based in part on a patch from Mike Jetzer.
64379
64380 2003-08-14  Jim Meyering  <jim@meyering.net>
64381         and Paul Eggert  <eggert@twinsun.com>
64382
64383         Merges from coreutils, plus other fixes.
64384         * lib/physmem.c: Merge in portability changes from gcc/libiberty
64385         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
64386         for credits and details.  Thanks to Kaveh Ghazi for helping
64387         to keep these files in sync.
64388         (ARRAY_SIZE): Define it.
64389         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
64390         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
64391         (memcasecmp): Don't assume size_t fits in unsigned int.
64392         Remove casts and duplicate code.
64393         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
64394         (memcpy): Remove definition.
64395         Merge in some clean-up and optimization changes from glibc.
64396         [BLOCKSIZE]: Move definition to top of file.
64397         Ensure that it is a multiple of 64.
64398         Rearrange loop exit tests so as to avoid performing an
64399         additional fread after encountering an error or EOF.
64400         * lib/md5.h (md5_uintptr): Define.
64401         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
64402         return to the initial working directory.  Preserve errno
64403         for caller.
64404         * lib/idcache.c: Include "xalloc.h".
64405         (xmalloc, xrealloc): Remove decls.
64406         (getuser): Remove casts no longer required in C89.
64407         * lib/human.c: Include stdio.h, for sprintf.
64408         * lib/group-member.c: Include "xalloc.h".
64409         (xmalloc, xrealloc): Remove decls.
64410         (get_group_info): Remove casts no longer required in C89.
64411         * lib/getusershell.c (readname): Remove casts no longer required in
64412         C89.
64413         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
64414         * lib/getline.c: Whitespace fix, from coreutils.
64415
64416 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64417
64418         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
64419         Check for isascii.
64420
64421         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64422         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64423         Undo previous (whitespace-only) change.
64424
64425 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64426
64427         * lib/exclude.c: Include <ctype.h>
64428         (IN_CTYPE_DOMAIN): New macro.
64429         (is_space): New fn.
64430         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
64431         and empty lines.
64432
64433         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64434         Undo previous (whitespace-only) change.
64435
64436 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64437
64438         * config/srclist-update: Change update back to the old behavior,
64439         leaving whitespace alone.  Use one 'sed' command rather than a
64440         pipeline.
64441         (fixlicense): Now a variable, not a function.
64442         (remove_trailing_blanks): Remove.
64443         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
64444         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64445         Undo previous (whitespace-only) change.
64446
64447 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64448
64449         Merge from coreutils.
64450         * modules/euidaccess: Add lib_SOURCES, include for new
64451         file euidaccess.h
64452
64453 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64454
64455         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64456         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64457         Normalize leading white space and remove trailing white space.
64458
64459         Merge from coreutils
64460         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
64461
64462         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
64463         0.12.1.  These files are now being upgraded automatically by
64464         ../config/srclist-update.
64465
64466 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64467
64468         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64469         Normalize leading white space and remove trailing white space.
64470         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
64471         notice, as per ../config/srclist-update.
64472
64473         Merge from coreutils.
64474         * lib/euidaccess.h: New file.
64475         * lib/euidaccess.c: Include it.
64476         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
64477         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
64478         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
64479
64480 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64481
64482         * config/srclist-update: Add copyright notice.
64483         (remove_id_lines, remove_trailing_blanks): New constants.
64484         (fixfile): Use them to normalize spacing a bit in copied files.
64485         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64486         Normalize leading white space and remove trailing white space.
64487
64488         * config/texinfo.tex: Sync with texinfo.
64489
64490         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
64491         strtoul.c from libc, to merge coreutils whitespace changes.
64492
64493         * config/srclist.txt: Get the following m4 files from gettext:
64494         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
64495         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
64496         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
64497         wint_t.m4.
64498
64499 2003-08-12  Karl Berry  <karl@gnu.org>
64500
64501         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
64502         been made.
64503
64504 2003-08-11  Paul Eggert  <eggert@twinsun.com>
64505
64506         * modules/gnu-source, m4/gnu-source.m4:
64507         Remove; we're assuming Autoconf 2.54 or later now.
64508         Suggested by Bruno Haible.
64509         * MODULES.html.sh (func_all_modules): Remove gnu-source.
64510
64511 2003-08-11  Bruno Haible  <bruno@clisp.org>
64512
64513         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
64514
64515 2003-08-11  Bruno Haible  <bruno@clisp.org>
64516
64517         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
64518         (vasnprintf): Use it instead of wcslen.
64519
64520 2003-08-11  Bruno Haible  <bruno@clisp.org>
64521
64522         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
64523         value to ensure that _Bool promotes to int. Use #define for _Bool when
64524         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
64525
64526 2003-08-10  Karl Berry  <karl@gnu.org>
64527
64528         * lib/regex.h: update from libc (whitespace fix).
64529
64530 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64531
64532         Merge some files from coreutils.  These changes were
64533         originally made by Jim Meyering.
64534         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
64535         many older Unixes require this.
64536         * lib/alloca.c (alloca): Remove cast to argument of free;
64537         no longer needed in C89.
64538         * lib/alloca_.h, regex.h: Fix white space to match
64539         what GNU indent does.
64540
64541 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64542
64543         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
64544         apparently Emacs's Unicode mode got confused before my 2003-08-05
64545         checkin.
64546
64547 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64548
64549         * m4/extensions.m4: New file.
64550         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
64551         Require gl_USE_SYSTEM_EXTENSIONS.
64552         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
64553         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
64554
64555 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64556
64557         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
64558         * modules/extensions, modules/gnu-source: New files.
64559         * modules/timespec, modules/unlocked-io: Depend on extensions.
64560
64561 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64562
64563         * modules/restrict: New file.
64564         * MODULES.html.sh (func_all_modules): Add restrict.
64565         * modules/regex: Depend on restrict.
64566
64567 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64568
64569         * m4/restrict.m4: New file.
64570         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
64571
64572 2003-08-07  Bruno Haible  <bruno@clisp.org>
64573
64574         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
64575         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
64576
64577 2003-08-07  Bruno Haible  <bruno@clisp.org>
64578
64579         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
64580         makes the module 'getndelim2' compatible with the module 'getline'.
64581
64582 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64583
64584         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
64585         byte with "\201" to avoid glitches when editing that source file
64586         with multi-gnome-terminal.
64587
64588 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64589
64590         * lib/bumpalloc.h: Remove.
64591
64592 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64593
64594         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
64595         * modules/bumpalloc: Remove.
64596
64597 2003-08-04  Paul Eggert  <eggert@twinsun.com>
64598
64599         * lib/getloadavg.c: Change copyright notice and spacing to conform to
64600         GNU coding style.
64601
64602         Merge from coreutils.
64603         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
64604         1. From glibc.
64605         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
64606         from Karl Berry, implemented by Jim Meyering.
64607         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
64608         from Dmitry V. Levin.
64609         Remove anachronistic cast of xrealloc.
64610         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
64611         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
64612         type. Otherwise, it wouldn't compile with at least /bin/cc on
64613         ymp-cray-unicos9.0.2.X.
64614         Combine two mostly-identical uses of alloca into one.
64615         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
64616
64617 2003-08-04  Dave Love  <d.love@dl.ac.uk>
64618
64619         [From Emacs.]
64620
64621         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
64622         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
64623         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
64624         obsolete NLIST_NAME_UNION.
64625         [__GNU__]: Undef BSD and FSCALE.
64626         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
64627
64628 2003-08-03  Paul Eggert  <eggert@twinsun.com>
64629
64630         * lib/stdbool_.h (_Bool): Make it signed char, instead of
64631         an enum type, so that it's guaranteed to promote to int.  See:
64632         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
64633
64634 2003-08-03  Karl Berry  <karl@gnu.org>
64635
64636         * config/depcomp: update from automake.
64637
64638 2003-07-31  Paul Eggert  <eggert@twinsun.com>
64639
64640         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
64641         (strerror): Don't assume that a printable int fits in 14 bytes.
64642
64643 2003-07-31  Bruno Haible  <bruno@clisp.org>
64644
64645         * modules/getpass-gnu: New file.
64646         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
64647
64648 2003-07-31  Bruno Haible  <bruno@clisp.org>
64649
64650         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
64651
64652 2003-07-24  Karl Berry  <karl@gnu.org>
64653
64654         * config/missing: update from automake.
64655
64656 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
64657             Bruno Haible  <bruno@clisp.org>
64658
64659         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
64660         * lib/getline.c (getline, getdelim): Likewise.
64661         Remove _GNU_SOURCE define; now it's defined in config.h through
64662         m4/getline.m4.
64663
64664 2003-07-23  Karl Berry  <karl@gnu.org>
64665
64666         * config/config.sub: update from prep.
64667
64668 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64669
64670         * modules/xalloc (Depends-on): Add exitfail.
64671         * modules/xmemcoll: Likewise.
64672
64673 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64674
64675         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
64676         over-parenthesization in macros.
64677
64678         Sync with coreutils.
64679
64680         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
64681         required by C99.
64682
64683         Use `exit_failure' for xalloc and xmemcoll instead of their own
64684         private exit-failure variables.
64685         * lib/xalloc.h (xalloc_exit_failure): Remove.
64686         * lib/xmalloc.c: Likewise.  Include exitfail.h.
64687         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
64688         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
64689         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
64690         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
64691
64692 2003-07-20  Jim Meyering  <jim@meyering.net>
64693
64694         * modules/closeout (Depends-on): Add exitfail.
64695         Suggestion from Bruno Haible.
64696
64697 2003-07-19  Karl Berry  <karl@gnu.org>
64698
64699         * config/config.sub: update from prep.
64700
64701 2003-07-18  Paul Eggert  <eggert@twinsun.com>
64702
64703         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
64704         Remove.
64705         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
64706         to test that it can stand by itself.  Include "exitfail.h".
64707         Clients should set exit_failure instead.
64708         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
64709
64710 2003-07-18  Bruno Haible  <bruno@clisp.org>
64711
64712         * modules/getndelim2: New file.
64713         * modules/getline: Share files with module getndelim2.
64714         * modules/getnline: Depend on getndelim2 instead of sharing files with
64715         it. Add getnline.c to lib_SOURCES.
64716         * MODULES.html.sh (func_all_modules): Add getndelim2.
64717
64718 2003-07-18  Bruno Haible  <bruno@clisp.org>
64719
64720         * m4/getndelim2.m4: New file.
64721         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
64722         invoke gl_PREREQ_GETNDELIM2.
64723         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
64724         gl_PREREQ_GETNDELIM2.
64725         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
64726         gl_GETNDELIM2.
64727
64728 2003-07-18  Bruno Haible  <bruno@clisp.org>
64729
64730         * lib/getndelim2.h: New file.
64731         * lib/getndelim2.c: Make into a module of its own. Include config.h,
64732         getndelim2.h.
64733         (getndelim2): Make non-static. Change return type to ssize_t.
64734         * lib/getline.h: Change argument names.
64735         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
64736         * lib/getnline.c: Include getndelim2.h.
64737
64738 2003-07-18  Andreas Schwab  <schwab@suse.de>
64739
64740         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
64741
64742 2003-07-17  Karl Berry  <karl@gnu.org>
64743
64744         * config/config.sub: update from prep.
64745
64746 2003-07-17  Bruno Haible  <bruno@clisp.org>
64747
64748         * modules/getnline: New file.
64749         * modules/getline: Add lib/getndelim2.c to source file list.
64750         * MODULES.html.sh (func_all_modules): Add getnline.
64751
64752 2003-07-17  Bruno Haible  <bruno@clisp.org>
64753
64754         * m4/getnline.m4: New file.
64755
64756 2003-07-17  Bruno Haible  <bruno@clisp.org>
64757
64758         * m4/Makefile.am.in: Remove file.
64759         * m4/Makefile.am: Remove file.
64760         * m4/Makefile.in: Remove file.
64761
64762 2003-07-17  Bruno Haible  <bruno@clisp.org>
64763
64764         * lib/getnline.h: New file.
64765         * lib/getnline.c: New file.
64766         * lib/getndelim2.c: New file, extracted from getline.c.
64767         (getndelim2): Renamed from getdelim2, with added nmax argument.
64768         * lib/getline.c: Include getndelim2.c.
64769         (getdelim2): Moved out to getndelim2.c.
64770         (getline, getdelim): Update.
64771
64772 2003-07-17  Bruno Haible  <bruno@clisp.org>
64773
64774         * lib/Makefile.am: Remove file.
64775         * lib/Makefile.in: Remove file.
64776
64777 2003-07-17  Bruno Haible  <bruno@clisp.org>
64778
64779         * configure.in: Remove file.
64780         * Makefile.in: Remove file.
64781
64782 2003-07-17  Bruno Haible  <bruno@clisp.org>
64783
64784         * MODULES.html.sh: Put the </BODY> right before </HTML>.
64785
64786 2003-07-16  Karl Berry  <karl@gnu.org>
64787
64788         * config/srclist-update: was running fixlicense twice, which caused
64789                 texinfo.tex to be nullified for some reason.  Simplify,
64790                 $gplsrc is no longer needed as far as I can see?
64791
64792 2003-07-16  Jim Meyering  <jim@meyering.net>
64793
64794         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
64795
64796 2003-07-15  Paul Eggert  <eggert@twinsun.com>
64797
64798         * config/srclist.txt: Get the following files from gettext-runtime/intl
64799         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
64800         ref-del.sin.  From Bruno Haible.
64801         * config/srclist-update (fixfile): Change grep pattern again, since the
64802         previous fix didn't work (there was another trailing $).  Use
64803         '[$]' to escape the $s.
64804
64805 2003-07-15  Karl Berry  <karl@gnu.org>
64806
64807         * lib/vasnprintf.c: update from gettext.
64808
64809 2003-07-15  Karl Berry  <karl@gnu.org>
64810
64811         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
64812         gets expanded when surrounded by '$'.
64813
64814 2003-07-15  Jim Meyering  <jim@meyering.net>
64815
64816         * modules/save-cwd: Don't depend on error.  From Derek Price.
64817
64818 2003-07-15  Jim Meyering  <jim@meyering.net>
64819
64820         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
64821
64822 2003-07-14  Simon Josefsson  <jas@extundo.com>
64823
64824         * modules/mempcpy: New file.
64825         * MODULES.html.sh (func_all_modules): Add mempcpy.
64826
64827 2003-07-14  Simon Josefsson  <jas@extundo.com>
64828
64829         * m4/mempcpy.m4: New file.
64830
64831 2003-07-14  Simon Josefsson  <jas@extundo.com>
64832
64833         * lib/mempcpy.h: New file.
64834         * lib/mempcpy.c: New file.
64835
64836 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64837
64838         * modules/getdate, modules/posixtm: Depend on mktime.
64839
64840 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64841
64842         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
64843         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
64844         unicodeio.c, unicodeio.h, unlocked-io.h:
64845         Switch from LGPL to GPL.
64846
64847 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64848
64849         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
64850         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
64851         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
64852         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
64853         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
64854         updated automatically by ../config/srclist-update.  This changes
64855         their license from LPGL to GPL.
64856
64857 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64858
64859         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
64860         assumed to refer to the root of the most recent stable gettext version.
64861         * config/srclistvars.sh: Add defaults for eggert.
64862         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
64863         Match "This program" as well as "The program".  This is needed
64864         for gettext.
64865
64866 2003-07-14  Jim Meyering  <jim@meyering.net>
64867
64868         Don't emit diagnostics.  Let callers do that.
64869         * lib/save-cwd.c: Don't include "error.h".
64870         (save_cwd): Don't call error.  Ensure that errno is valid
64871         when returning nonzero.
64872
64873         * lib/save-cwd.h (restore_cwd): Update prototype.
64874         * lib/save-cwd.c (restore_cwd): Remove two parameters.
64875         Simplify.  Don't call error upon failure.  Let callers do that.
64876         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
64877         when auditing is enabled.  But don't bother updating the #if.
64878
64879 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
64880
64881         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
64882         it breaks C++ compilation.
64883         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
64884
64885 2003-07-10  Simon Josefsson  <jas@extundo.com>
64886
64887         * modules/strchrnul (Makefile.am): Add strchrnul.h.
64888
64889 2003-07-10  Jim Meyering  <jim@meyering.net>
64890
64891         * m4/clock_time.m4: Remove trailing blank.
64892         * m4/intmax_t.m4: Likewise.
64893
64894 2003-07-10  Jim Meyering  <jim@meyering.net>
64895
64896         * lib/vasnprintf.c: Remove trailing blanks.
64897         Make cpp indentation consistent.
64898
64899 2003-07-09  Paul Eggert  <eggert@twinsun.com>
64900
64901         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
64902         posixver.c, strftime.c, strnlen.c, strverscmp.c:
64903         Switch from LGPL to GPL.
64904
64905 2003-07-09  Paul Eggert  <eggert@twinsun.com>
64906
64907         * config/srclist.txt: Sort sublists.  Add
64908         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
64909         that differ from gnulib for one reason or another; we'd like this list
64910         to be smaller but for now let's document what we have.
64911
64912 2003-07-08  Paul Eggert  <eggert@twinsun.com>
64913
64914         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
64915         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
64916         and sweeter "eval x=$x".
64917         * config/srclist.txt: Get lib/argp* from glibc.
64918
64919 2003-07-07  Paul Eggert  <eggert@twinsun.com>
64920
64921         * lib/mktime.c: Fix some boundary cases and remove need for floating
64922         point.
64923
64924         Issue a compile-time diagnostic if time_t is floating point, or if
64925         two's complement arithmetic is not in effect, or if arithmetic
64926         right shift does not propagate the sign.  These assumptions were
64927         all in the original code but they weren't checked.
64928
64929         (TIME_T_MIDPOINT, verify): New macros.
64930         (__isleap): Remove; it has integer overflow problems.
64931         (leapyear): New function, without those problems.
64932         (ydhms_tm_diff): Remove; splitting into two parts.
64933         (ydhms_diff): New function, containing the arithmetic part of
64934         the old ydhms_tm_diff function.  Issue a compile-time
64935         diagnostic if we are not using C99 integer division.
64936         Avoid casts when possible.
64937         (guess_time_tm): New function, containing the checking part of
64938         the old ydhms_tm_diff function.  Return the new value, rather than
64939         the difference between it and the old.  Accept a new argument T
64940         so that *T specifies the old value.  Check for overflow in the result.
64941
64942         (__mktime_internal): Use a time_t offset, not a long int offset.
64943         This undoes the 2003-06-04 change, which is no longer needed now
64944         that we have better overflow checking.
64945         (localtime_offset): Likewise.
64946
64947         (__mktime_internal): Avoid harmful overflow on hosts where time_t
64948         and long are 64-bit but int is only 32-bit.
64949         (ydhms_diff): Use long int to store year1 and yday1.
64950         Issue a compile-time diagnostic if long int is not wide enough.
64951
64952         (__mktime_internal): Use long int to store adjusted year and yday.
64953         Use plain C rather than preprocessor commands, if that doesn't
64954         affect efficiency.
64955         Check for overflow (and try to repair) after each probe
64956         rather than checking only at the very end.  This avoids some bugs
64957         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
64958         does not equal GMT offset at maximum time).
64959         Use integer to check for overflow rather than floating point; this
64960         is more portable to non-IEEE hosts, and is a tad faster.
64961         When we detect that we are oscillating between two values,
64962         don't check whether tm_isdst has the requested value, since
64963         we already know the answer.  When tm_isdst has the wrong value,
64964         use a different heuristic to find the right one, based on the
64965         extreme values actually observed in practice in tz2003a,
64966         rather than the (overly optimistic) "previous 3 calendar quarters".
64967
64968         (not_equal_tm, print_tm, check_result): Use "const T" rather than
64969         "T const" to accommodate glibc style.
64970         (check_result): Use less-confusing report format.  "long" -> "long int.
64971         (main): Likewise.
64972         Don't loop if the iteration overflows time_t.
64973         Allow a negative step in the iteration.
64974
64975 2003-07-06  Karl Berry  <karl@gnu.org>
64976
64977         * config/depcomp: update from automake.
64978         * config/config.sub: update from prep.
64979
64980 2003-07-03  Karl Berry  <karl@gnu.org>
64981
64982         * config/config.guess: update from prep.
64983
64984 2003-07-01  Paul Eggert  <eggert@twinsun.com>
64985
64986         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
64987         xreadlink.c now includes it unconditionally.
64988
64989 2003-07-01  Paul Eggert  <eggert@twinsun.com>
64990
64991         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
64992         having it depend on HAVE_SYS_TYPES_H.
64993
64994 2003-07-01  Bruno Haible  <bruno@clisp.org>
64995
64996         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
64997         <sys/types.h> should be sufficient.
64998         Reported by Paul Eggert.
64999
65000 2003-06-26  Karl Berry  <karl@gnu.org>
65001
65002         * config/depcomp: update from automake.
65003
65004 2003-06-26  Bruno Haible  <bruno@clisp.org>
65005
65006         * modules/human: Depend on module stdbool.
65007
65008 2003-06-25  Bruno Haible  <bruno@clisp.org>
65009
65010         * modules/readlink: New file.
65011         * modules/xreadlink: Depend on it.
65012         * MODULES.html.sh (func_all_modules): Add readlink.
65013
65014 2003-06-25  Bruno Haible  <bruno@clisp.org>
65015
65016         * m4/readlink.m4: New file.
65017
65018 2003-06-25  Bruno Haible  <bruno@clisp.org>
65019
65020         * lib/readlink.c: New file.
65021
65022 2003-06-22  Karl Berry  <karl@gnu.org>
65023
65024         * config/srclist.txt: update mkinstalldirs from automake.
65025         * config/mkinstalldirs: update.
65026
65027 2003-06-22  Bruno Haible  <bruno@clisp.org>
65028
65029         Portability to mingw32.
65030         * m4/ssize_t.m4: New file, from GNU gettext.
65031         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
65032         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
65033
65034 2003-06-22  Bruno Haible  <bruno@clisp.org>
65035
65036         * modules/safe-read: Add m4/ssize_t.m4.
65037         * modules/xreadlink: Add m4/ssize_t.m4.
65038
65039 2003-06-20  Bruno Haible  <bruno@clisp.org>
65040
65041         Assume C89, so PARAMS isn't needed.
65042         * lib/unicodeio.h (PARAMS): Remove.
65043         * lib/unicodeio.c: Don't use PARAMS.
65044
65045 2003-06-18  Karl Berry  <karl@gnu.org>
65046
65047         * config/config.{guess,sub}: update from prep.
65048
65049 2003-06-18  Jim Meyering  <jim@meyering.net>
65050
65051         Merge changes from coreutils.
65052         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
65053         Remove explicit declarations of xmalloc and realloc.
65054         Include xalloc.h.
65055         (read_utmp): Remove anachronistic cast of xmalloc.
65056
65057 2003-06-17  Paul Eggert  <eggert@twinsun.com>
65058
65059         Assume C89, so PARAMS isn't needed.
65060         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
65061         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
65062         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
65063         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
65064         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
65065         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
65066         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
65067         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
65068         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
65069         lib/xstrtod.h, lib/xstrtol.h: Likewise.
65070         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
65071         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
65072         no longer needed. Anyway, config.h should always be included before any
65073         other file.
65074
65075 2003-06-11  Simon Josefsson  <jas@extundo.com>
65076
65077         * modules/sysexits: New file.
65078         * MODULES.html.sh (func_all_modules): Add sysexits.
65079
65080 2003-06-11  Simon Josefsson  <jas@extundo.com>
65081
65082         * lib/sysexit_.h: New file.
65083
65084 2003-06-11  Derek Price  <derek@ximbiot.com>
65085
65086         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
65087         necessary.
65088
65089 2003-06-11  Bruno Haible  <bruno@clisp.org>
65090
65091         * m4/sysexits.m4: New file.
65092
65093 2003-06-10  Simon Josefsson  <jas@extundo.com>
65094
65095         * lib/argp.h: New file, from glibc.
65096         * lib/argp-ba.c: New file, from glibc.
65097         * lib/argp-eexst.c: New file, from glibc.
65098         * lib/argp-fmtstream.c: New file, from glibc.
65099         * lib/argp-fmtstream.h: New file, from glibc.
65100         * lib/argp-fs-xinl.c: New file, from glibc.
65101         * lib/argp-help.c: New file, from glibc.
65102         * lib/argp-namefrob.h: New file, from glibc.
65103         * lib/argp-parse.c: New file, from glibc.
65104         * lib/argp-pv.c: New file, from glibc.
65105         * lib/argp-pvh.c: New file, from glibc.
65106         * lib/argp-xinl.c: New file, from glibc.
65107
65108 2003-06-10  Simon Josefsson  <jas@extundo.com>
65109
65110         * modules/strchrnul: New file.
65111
65112 2003-06-10  Simon Josefsson  <jas@extundo.com>
65113
65114         * modules/argp: New file.
65115
65116 2003-06-10  Simon Josefsson  <jas@extundo.com>
65117
65118         * m4/strchrnul.m4: New file.
65119
65120 2003-06-10  Simon Josefsson  <jas@extundo.com>
65121
65122         * lib/strchrnul.h: New file.
65123         * lib/strchrnul.c: New file.
65124
65125 2003-06-10  Bruno Haible  <bruno@clisp.org>
65126
65127         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
65128
65129 2003-06-07  Karl Berry  <karl@gnu.org>
65130
65131         * config/config.{guess,sub}: update from prep.
65132
65133 2003-06-07  Jim Meyering  <jim@meyering.net>
65134
65135         * modules/strtod: Use $(...) notation, not @...@ for
65136         AC_REPLACE'd variables.
65137         * modules/localcharset: Likewise.
65138
65139 2003-06-07  Jim Meyering  <jim@meyering.net>
65140
65141         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
65142         in place of my name in the copyright comment.
65143         Remove definition and uses of __P.
65144
65145         From coreutils.
65146         * lib/stat.c: Don't declare xmalloc explicitly.
65147         Instead, include "xalloc.h".
65148         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
65149         xrealloc, and xcalloc return values.
65150         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
65151         Improve comment.
65152         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
65153
65154 2003-06-07  Bruno Haible  <bruno@clisp.org>
65155
65156         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
65157         avoid AC_CONFIG_LINKS.
65158         * modules/fnmatch (Makefile.am): Use explicit creation rule for
65159         fnmatch.h, to avoid AC_CONFIG_LINKS.
65160         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
65161
65162 2003-06-07  Bruno Haible  <bruno@clisp.org>
65163
65164         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
65165         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
65166         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65167         directory.
65168         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
65169         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65170         directory.
65171
65172 2003-06-06  Jim Meyering  <jim@meyering.net>
65173
65174         Merge from coreutils.
65175         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
65176         Consolidate declarations and initializations of *_base* locals.
65177
65178         Merge from coreutils.
65179         This avoids a core dump on systems without GNU putenv,
65180         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
65181         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
65182         (unsetenv): New static function, from GNU libc.
65183         (rpl_putenv): Use it.
65184
65185         * lib/modechange.c: Remove trailing blanks.
65186
65187         Merge from coreutils.
65188         * lib/fsusage.c: Remove declaration of statfs.
65189         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
65190
65191         * lib/posixtm.c: Include <stdbool.h> unconditionally.
65192
65193 2003-06-06  Jim Meyering  <jim@meyering.net>
65194
65195         * lib/stdbool_.h: Renamed from stdbool.h.in.
65196
65197 2003-06-06  Jim Meyering  <jim@meyering.net>
65198             Bruno Haible  <bruno@clisp.org>
65199
65200         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
65201         Adjust Makefile.am snippet not to redirect directly to target.
65202         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
65203
65204 2003-06-05  Paul Eggert  <eggert@twinsun.com>
65205
65206         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
65207         mismatch, look in future quarters as well as past.  This fixes a
65208         bug when processing fall-backwards gaps immediately after a long
65209         period of daylight-saving time.
65210
65211         * lib/mktime.c: Assume freestanding C89 or better.
65212         (HAVE_LIMITS_H): Remove.  Assume it's 1.
65213         (__P): Remove; not used.
65214         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
65215         (mktime, not_equal_tm, print_tm, check_result,
65216         main): Use prototypes.  Use const * where appropriate.
65217         (main): Fix typo in testing code that uncovered by above changes.
65218         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
65219
65220 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65221
65222         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
65223         locale.h, localeconv.  This merges changes from coreutils.
65224
65225         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
65226         It can be removed after the next Autoconf is released.
65227         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
65228         needed.
65229
65230 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65231
65232         * lib/mktime.c: Fix Debian bug 177940
65233         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
65234         (localtime_offset): Now long int, not time_t, because we want it
65235         to be guaranteed to be signed.  All uses changed.
65236         (__mktime_internal): If overflow would occur when adding offset,
65237         don't add it.
65238
65239         Merge 'human' changes from coreutils.  Rewrite to support
65240         locale-specific notations like thousands separators.
65241         * lib/human.c: Simplify authorship notice.
65242         Include human.h immediately after config.h.
65243         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
65244         <limits.h>: Do not include, since human.h does.
65245         (SIZE_MAX, UINTMAX_MAX): New macros.
65246         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
65247         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
65248         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
65249         (power_letter): Renamed from suffixes.
65250         (generate_suffix_backwards): Remove.
65251         (adjust_value): Now takes int style (because of human.h changes)
65252         and long double value (for greater precision on some platforms).
65253         (group_number): New function.
65254         (human_readable): Use it.  Use integer options, not enum.
65255         Put the options before the sizes in the arg list.
65256         Support all the new options.
65257         The old human_readable function has been removed;
65258         use inttostr.h instead.
65259         (human_readable, default_block_size, humblock):
65260         Use uintmax_t, not int, for block sizes.
65261         (human_readable_inexact, block_size_types): Remove.
65262         (block_size_opts): New constant.
65263         (human_options): Renamed from human_block_size, with new signature
65264         that allows block sizes up to UINTMAX_MAX.  All callers changed.
65265         * lib/human.h: Add copyright and authorship notice.
65266         Include <limits.h> and <stdbool.h> unconditionally.
65267         (PARAMS): Remove.  All uses removed.
65268         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
65269         (enum human_inexact_style): Remove tag; now a nameless enum.
65270         (human_floor, human_ceiling, human_round_to_even): Now have
65271         values 2, 0, 1 rather than -1, 1, 0.
65272         (human_group_digits, human_suppress_point_zero, human_autoscale,
65273         human_base_1024, human_SI, human_B): New constants.
65274         (human_readable_inexact, human_block_size): Remove.
65275         (human_readable): Size args are now uintmax_t, not int.
65276         (human_options): New decl.
65277
65278         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
65279         unnecessary now that we assume C89 or better.  This change
65280         imported from coreutils.
65281
65282         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65283         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
65284         in the 2003-05-30 sync from glibc.
65285
65286         .h files should stand alone, but we shouldn't include <sys/types.h>
65287         if we can get away with just <stddef.h>.
65288
65289         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
65290         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
65291         rather than <sys/types.h>, as we merely need size_t.
65292         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
65293         to get size_t.
65294         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
65295         Include <stdio.h>, to get FILE.
65296         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
65297         memcasecmp.h has included <stddef.h> and all we need is size_t.
65298         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
65299         our interface, instead of including <sys/types.h>
65300
65301 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65302
65303         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
65304         now, as glibc mktime is buggy on non-glibc systems.
65305
65306 2003-06-03  Karl Berry  <karl@gnu.org>
65307
65308         * config/config.sub: update from prep.
65309
65310 2003-06-02  Paul Eggert  <eggert@twinsun.com>
65311
65312         [from coreutils]
65313         Fix some minor time-related bugs with POSIX time arguments.
65314         Some valid time stamps were being rejected (notably -1, and
65315         time stamps before 1900 on 64-bit hosts).  And some invalid
65316         time stamps were being accepted, e.g. September 31.
65317
65318         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
65319         that we can return (time_t) -1 successfully.
65320         * lib/posixtm.c: Likewise.
65321         [HAVE_STDBOOL_H]: Include <stdbool.h>.
65322         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
65323         (t): Remove static var.
65324         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
65325         of static var.  All uses changed.
65326         (year): Do not reject years before 1900; they can occur with
65327         64-bit time_t.
65328         (posix_time_parse): Do not check for out-of-range components;
65329         that is now the caller's responsibility, since our checks were
65330         only approximations.
65331         (posixtime): Use mktime to check for out-of-range components,
65332         since it knows them exactly.
65333         If mktime returns (time_t) -1, check whether an error actually occurred
65334         by invoking localtime on -1.
65335         (main) [TEST_POSIXTIME]: Check for input data errors, and report
65336         posixtime failures better.
65337         Improve the test data (in comments only).
65338
65339 2003-06-02  Karl Berry  <karl@gnu.org>
65340
65341         * config/mkinstalldirs (version): new variable.
65342         (--version): new option.
65343         (usage): improve message.
65344
65345 2003-05-30  Karl Berry  <karl@gnu.org>
65346
65347         * lib/mktime.c: update from libc.
65348
65349 2003-05-30  Bruno Haible  <bruno@clisp.org>
65350
65351         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
65352         * config/config.rpath: Upgrade to gettext-0.12.1.
65353
65354 2003-05-30  Bruno Haible  <bruno@clisp.org>
65355
65356         * m4/gettext.m4: Upgrade to gettext-0.12.1.
65357         * m4/nls.m4: New file, from gettext-0.12.1.
65358         * m4/po.m4: New file, from gettext-0.12.1.
65359         * m4/progtest.m4: Upgrade to gettext-0.12.1.
65360
65361 2003-05-30  Bruno Haible  <bruno@clisp.org>
65362
65363         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
65364         * lib/localcharset.h: Likewise.
65365         * lib/localcharset.c: Likewise.
65366
65367 2003-05-29  Karl Berry  <karl@gnu.org>
65368
65369         * config/config.rpath: update from gettext.
65370
65371 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65372
65373         Assume the headers required for C89 freestanding compilers.
65374         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
65375         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
65376         * m4/human.m4 (gl_HUMAN): Likewise.
65377         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
65378         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
65379         * m4/userspec.m4 (gl_USERSPEC): Likewise.
65380         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
65381         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65382         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
65383
65384 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65385
65386         Assume the headers required for C89 freestanding compilers.
65387         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
65388         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
65389         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
65390         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
65391         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
65392         define, since <limits.h> is guaranteed to do that.
65393         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
65394         * lib/exclude.c: Include <stdbool.h> unconditionally.
65395         * lib/tempname.c: Include <stddef.h> unconditionally.
65396         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
65397         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
65398         <stddef.h> does that.
65399         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
65400         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
65401         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
65402         needed.
65403         * lib/xstrtol.c: Likewise.
65404         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
65405         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
65406
65407         * lib/addext.c (addext): Use assignment rather than cast, to avoid
65408         warnings on some platforms.
65409
65410         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65411         arbitrarily.
65412
65413 2003-05-26  Jim Meyering  <jim@meyering.net>
65414
65415         Merge in a change from coreutils:
65416         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
65417         that is guaranteed to be `no'.  Use `no_such_member' to indicate
65418         that condition, rather than `-1' which is slightly misleading.
65419         Change the name of the cache variable to have the gl_ prefix.
65420         Prompted by a patch from Richard Dawe for DJGPP.
65421
65422 2003-05-24  Karl Berry  <karl@gnu.org>
65423
65424         * config/config.guess: update from prep.
65425
65426 2003-05-22  Karl Berry  <karl@gnu.org>
65427
65428         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
65429
65430 2003-05-20  Karl Berry  <karl@gnu.org>
65431
65432         * config/config.guess: update from prep.
65433
65434 2003-05-18  Karl Berry  <karl@gnu.org>
65435
65436         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
65437         might actually be set by the user.
65438
65439         * config/depcomp, install-sh, mdate-sh: update from automake.
65440
65441 2003-05-17  Bruno Haible  <bruno@clisp.org>
65442
65443         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
65444         invalid expansion for AC_EGREP_CPP.
65445         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
65446         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
65447         Suggested by Akim Demaille <akim@epita.fr> in
65448         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
65449
65450 2003-05-12  Jim Meyering  <jim@meyering.net>
65451
65452         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
65453         the space-padded-by-default conversion specifiers, %e, %k, %l.
65454
65455 2003-05-12  Bruno Haible  <bruno@clisp.org>
65456
65457         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
65458         the string is longer than 4 KB.
65459
65460 2003-05-11  Karl Berry  <karl@gnu.org>
65461
65462         * config/config.{guess,sub}: update from prep.
65463
65464 2003-05-09  Bruno Haible  <bruno@clisp.org>
65465
65466         * modules/error: Add m4/strerror_r.m4 to file list.
65467
65468 2003-05-03  Bruno Haible  <bruno@clisp.org>
65469
65470         Upgrade to Unicode-4.0.
65471         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
65472         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
65473         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
65474         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
65475         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
65476         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
65477         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
65478         Change width of U+E0100..U+E01EF from 1 to 0.
65479
65480 2003-04-25  Jim Meyering  <jim@meyering.net>
65481
65482         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
65483         of type size_t, not int.
65484
65485 2003-04-25  Bruno Haible  <bruno@clisp.org>
65486
65487         * lib/copy-file.c: Include <stddef.h>, for size_t.
65488
65489 2003-04-21  Paul Eggert  <eggert@twinsun.com>
65490
65491         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
65492         code which expansion is under static control.  Patch imported from
65493         Akim Demaille's patch to Bison; see
65494         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
65495
65496 2003-04-14  Bruno Haible  <bruno@clisp.org>
65497
65498         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
65499
65500 2003-04-11  Jim Meyering  <jim@meyering.net>
65501
65502         Merge changes from Coreutils.
65503
65504         2003-03-22  Jim Meyering  <jim@meyering.net>
65505
65506         * lib/strftime.c (widen): Cast alloca return value to proper type.
65507
65508         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
65509
65510         From GNU libc.
65511         * lib/strftime.c (my_strftime): Handle very large width
65512         specifications for numeric values correctly.  Improve checks for
65513         overflow.
65514
65515         2003-01-19  Jim Meyering  <jim@meyering.net>
65516
65517         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
65518         definitions.
65519         (nl_get_alt_digit) [! defined my_strftime]: Define.
65520         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
65521         _nl_get_alt_digit and _nl_get_walt_digit.
65522
65523         * lib/strftime.c (my_strftime): Merge in locale-related changes from
65524         libc. These changes have no effect outside of _LIBC.
65525
65526 2003-04-10  Bruno Haible  <bruno@clisp.org>
65527
65528         * modules/findprog: New file.
65529         * MODULES.html.sh (func_all_modules): Add it.
65530
65531 2003-04-10  Bruno Haible  <bruno@clisp.org>
65532
65533         * m4/findprog.m4: New file.
65534         * m4/eaccess.m4: New file.
65535
65536 2003-04-10  Bruno Haible  <bruno@clisp.org>
65537
65538         * lib/findprog.h: New file, from GNU gettext.
65539         * lib/findprog.c: New file, from GNU gettext.
65540
65541 2003-04-05  Jim Meyering  <jim@meyering.net>
65542
65543         Merge changes from Coreutils.
65544
65545         * lib/exclude.h (PARAMS): Remove definition and uses.
65546         * lib/exclude.c: Remove uses of `PARAMS'.
65547
65548         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
65549         Add test-cases for DOS filenames. Declare program_name.
65550         (main): Set up program_name.  Patch by Rich Dawe.
65551
65552         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65553         error from mntctl.
65554         Use mntctl's return value to drive the entry-processing loop, since
65555         we can't rely on the value of the vmt_length member in the last
65556         entry.  On some systems doing so could result in exhausting
65557         virtual memory.  Based in part on a patch from Mike Jetzer.
65558
65559 2003-04-04  Bruno Haible  <bruno@clisp.org>
65560
65561         * modules/linebreak: New file.
65562         * MODULES.html.sh (func_all_modules): Add it.
65563
65564 2003-04-04  Bruno Haible  <bruno@clisp.org>
65565
65566         * m4/linebreak.m4: New file.
65567
65568 2003-04-04  Bruno Haible  <bruno@clisp.org>
65569
65570         * lib/linebreak.h: New file, from GNU gettext.
65571         * lib/linebreak.c: New file, from GNU gettext with slight
65572         modifications.
65573         * lib/lbrkprop.h: New file, from GNU gettext.
65574
65575 2003-04-03  Bruno Haible  <bruno@clisp.org>
65576
65577         * modules/utf8-ucs4: New file.
65578         * modules/utf16-ucs4: New file.
65579         * modules/ucs4-utf8: New file.
65580         * modules/ucs4-utf16: New file.
65581         * MODULES.html.sh (func_all_modules): Add them.
65582
65583 2003-04-03  Bruno Haible  <bruno@clisp.org>
65584
65585         * m4/utf-ucs4.m4: New file.
65586         * m4/ucs4-utf.m4: New file.
65587
65588 2003-04-03  Bruno Haible  <bruno@clisp.org>
65589
65590         * lib/utf8-ucs4.h: New file, from GNU gettext.
65591         * lib/utf16-ucs4.h: New file, from GNU gettext.
65592         * lib/ucs4-utf8.h: New file, from GNU gettext.
65593         * lib/ucs4-utf16.h: New file, from GNU gettext.
65594
65595 2003-04-02  Bruno Haible  <bruno@clisp.org>
65596
65597         * modules/binary-io: New file.
65598         * MODULES.html.sh (func_all_modules): Add it.
65599
65600 2003-04-02  Bruno Haible  <bruno@clisp.org>
65601
65602         * lib/binary-io.h: New file, from GNU gettext.
65603
65604 2003-04-01  Bruno Haible  <bruno@clisp.org>
65605
65606         * modules/pathname: New file.
65607         * MODULES.html.sh (func_all_modules): Add it.
65608
65609 2003-04-01  Bruno Haible  <bruno@clisp.org>
65610
65611         * lib/pathname.h: New file, from GNU gettext.
65612         * lib/concatpath.c: New file, from GNU gettext.
65613
65614 2003-03-30  Bruno Haible  <bruno@clisp.org>
65615
65616         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
65617
65618 2003-03-30  Bruno Haible  <bruno@clisp.org>
65619
65620         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
65621         function chown() doesn't exist.
65622
65623 2003-03-28  Bruno Haible  <bruno@clisp.org>
65624
65625         * modules/copy-file: New file.
65626         * MODULES.html.sh (func_all_modules): Add it.
65627
65628 2003-03-28  Bruno Haible  <bruno@clisp.org>
65629
65630         * m4/copy-file.m4: New file.
65631
65632 2003-03-28  Bruno Haible  <bruno@clisp.org>
65633
65634         * lib/copy-file.h: New file, from GNU gettext.
65635         * lib/copy-file.c: New file, from GNU gettext.
65636
65637 2003-03-18  Jim Meyering  <jim@meyering.net>
65638
65639         * lib/quote.c (quote_n): Fix typo in comment.
65640
65641 2003-03-18  Bruno Haible  <bruno@clisp.org>
65642
65643         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
65644         checking.
65645         * m4/onceonly_2_57.m4: Likewise.
65646
65647 2003-03-17  Bruno Haible  <bruno@clisp.org>
65648
65649         * m4/onceonly.m4: Require autoconf 2.54 or newer.
65650         (m4_quote): Remove macro.
65651         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
65652
65653 2003-03-14  Jim Meyering  <jim@meyering.net>
65654
65655         Merge changes from Coreutils.
65656         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
65657         to be const, in order to avoid warnings.
65658         (obstack_room): Likewise.
65659         (obstack_empty_p): Likewise.
65660
65661 2003-03-14  Bruno Haible  <bruno@clisp.org>
65662
65663         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
65664         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
65665
65666 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65667
65668         Merge changes from Bison.
65669         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
65670         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
65671         when compiling Bison 1.875's `bitset bset = obstack_alloc
65672         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
65673         * lib/hash.c: Include <stdbool.h> unconditionally.
65674
65675 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65676
65677         * m4/onceonly.m4 (m4_quote): New macro.
65678         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
65679         Quote AC_FOREACH variable-expansions properly.
65680
65681 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65682
65683         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
65684
65685 2003-03-09  Paul Eggert  <eggert@twinsun.com>
65686
65687         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
65688         Reported by Bruce Becker; see:
65689         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
65690
65691 2003-03-03  Paul Eggert  <eggert@twinsun.com>
65692             Bruno Haible  <bruno@clisp.org>
65693
65694         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
65695         Reported by John Hughes, see
65696         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
65697
65698 2003-02-20  Bruno Haible  <bruno@clisp.org>
65699
65700         * MODULES.html.sh (func_all_modules): Add poll.
65701
65702 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65703
65704         * modules/poll: New file.
65705
65706 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65707
65708         * lib/poll_.h: New file.
65709         * lib/poll.c: New file.
65710
65711 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65712
65713         * m4/poll.m4: New file.
65714
65715 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65716
65717         * modules/mathl: New file.
65718
65719 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65720
65721         * lib/mathl.h: New file.
65722         * lib/acosl.c: New file.
65723         * lib/asinl.c: New file.
65724         * lib/atanl.c: New file.
65725         * lib/ceill.c: New file.
65726         * lib/cosl.c: New file.
65727         * lib/expl.c: New file.
65728         * lib/floorl.c: New file.
65729         * lib/frexpl.c: New file.
65730         * lib/ldexpl.c: New file.
65731         * lib/logl.c: New file.
65732         * lib/sincosl.c: New file.
65733         * lib/sinl.c: New file.
65734         * lib/sqrtl.c: New file.
65735         * lib/tanl.c: New file.
65736         * lib/trigl.c: New file.
65737         * lib/trigl.h: New file.
65738
65739 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65740
65741         * m4/mathl.m4: New file.
65742
65743 2003-02-18  Bruno Haible  <bruno@clisp.org>
65744
65745         * MODULES.html.sh (func_all_modules): Add mathl.
65746
65747 2003-02-17  Bruno Haible  <bruno@clisp.org>
65748
65749         * modules/mkdtemp: New module.
65750         * MODULES.html.sh (func_all_modules): Add it.
65751
65752 2003-02-17  Bruno Haible  <bruno@clisp.org>
65753
65754         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
65755
65756 2003-02-17  Bruno Haible  <bruno@clisp.org>
65757
65758         * lib/mkdtemp.h: New file, from GNU gettext.
65759         * lib/mkdtemp.c: New file, from GNU gettext.
65760
65761 2003-02-02  Jim Meyering  <jim@meyering.net>
65762
65763         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
65764         e.g. glibc-2.2.93.
65765
65766 2003-01-31  Bruno Haible  <bruno@clisp.org>
65767
65768         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
65769         'rpl_rename'.
65770         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
65771         'rpl_strnlen'.
65772         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
65773         'rpl_strtod'.
65774         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
65775         'rpl_utime'.
65776
65777 2003-01-31  Bruno Haible  <bruno@clisp.org>
65778
65779         * lib/rename.c: #undef rename before defining rpl_rename.
65780         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
65781
65782 2003-01-30  Bruno Haible  <bruno@clisp.org>
65783
65784         * modules/vasnprintf, modules/vasprintf: New modules.
65785         * MODULES.html.sh (func_all_modules): Add them.
65786
65787 2003-01-30  Bruno Haible  <bruno@clisp.org>
65788
65789         * m4/signed.m4: New file, from GNU gettext.
65790         * m4/longdouble.m4: New file, from GNU gettext.
65791         * m4/wchar_t.m4: New file, from GNU gettext.
65792         * m4/wint_t.m4: New file, from GNU gettext.
65793         * m4/vasnprintf.m4: New file.
65794         * m4/vasprintf.m4: New file.
65795
65796 2003-01-30  Bruno Haible  <bruno@clisp.org>
65797
65798         * lib/printf-args.h: New file, from GNU gettext.
65799         * lib/printf-args.c: New file, from GNU gettext.
65800         * lib/printf-parse.h: New file, from GNU gettext.
65801         * lib/printf-parse.c: New file, from GNU gettext.
65802         * lib/vasnprintf.h: New file, from GNU gettext.
65803         * lib/vasnprintf.c: New file, from GNU gettext.
65804         * lib/asnprintf.c: New file, from GNU gettext.
65805         * lib/vasprintf.h: New file, from GNU gettext with modifications.
65806         * lib/vasprintf.c: New file, from GNU gettext.
65807         * lib/asprintf.c: New file, from GNU gettext.
65808
65809 2003-01-29  Bruno Haible  <bruno@clisp.org>
65810
65811         * modules/stpncpy: New module.
65812         * MODULES.html.sh (func_all_modules): Add it.
65813
65814 2003-01-29  Bruno Haible  <bruno@clisp.org>
65815
65816         * m4/stpncpy.m4: New file.
65817
65818 2003-01-29  Bruno Haible  <bruno@clisp.org>
65819
65820         * lib/stpncpy.h: New file, from GNU gettext with modifications.
65821         * lib/stpncpy.c: New file, from GNU gettext with modifications.
65822
65823 2003-01-28  Bruno Haible  <bruno@clisp.org>
65824
65825         * modules/c-ctype: New module.
65826         * MODULES.html.sh (func_all_modules): Add it.
65827
65828 2003-01-28  Bruno Haible  <bruno@clisp.org>
65829
65830         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
65831         Paul Eggert.
65832         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
65833         Paul Eggert.
65834
65835 2003-01-27  Bruno Haible  <bruno@clisp.org>
65836
65837         * modules/xsetenv: New module.
65838         * MODULES.html.sh (func_all_modules): Add it.
65839
65840 2003-01-27  Bruno Haible  <bruno@clisp.org>
65841
65842         * lib/xsetenv.h: New file, from GNU gettext.
65843         * lib/xsetenv.c: New file, from GNU gettext.
65844
65845 2003-01-23  Jim Meyering  <jim@meyering.net>
65846
65847         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
65848         from working on systems without dirfd (at least Irix and OSF1/Tru64).
65849
65850 2003-01-23  Bruno Haible  <bruno@clisp.org>
65851
65852         * modules/minmax: New module.
65853         * MODULES.html.sh (func_all_modules): Add it.
65854
65855 2003-01-23  Bruno Haible  <bruno@clisp.org>
65856
65857         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
65858         Eggert.
65859
65860 2003-01-22  Bruno Haible  <bruno@clisp.org>
65861
65862         * modules/exit: New module.
65863         * MODULES.html.sh (func_all_modules): Add it.
65864
65865 2003-01-22  Bruno Haible  <bruno@clisp.org>
65866
65867         * lib/exit.h: New file, from GNU gettext.
65868
65869 2003-01-19  Bruno Haible  <bruno@clisp.org>
65870
65871         * gnulib-tool: Recognize option --extract-maintainer.
65872         (func_get_maintainer): New function.
65873         * modules/*: Add Maintainer entry.
65874
65875 2003-01-16  Jim Meyering  <jim@meyering.net>
65876
65877         * m4/regex.m4: The `regex' struct is both input and output.
65878         Initialize it before each use.  Patch by Tim Waugh.
65879
65880 2003-01-16  Bruno Haible  <bruno@clisp.org>
65881
65882         * MODULES.html.sh: Add a table of contents. Add the module name as
65883         leftmost column. Add hyperlinks.
65884
65885 2003-01-15  Bruno Haible  <bruno@clisp.org>
65886
65887         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
65888
65889 2003-01-15  Bruno Haible  <bruno@clisp.org>
65890
65891         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
65892         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
65893         suffix.
65894
65895 2003-01-15  Bruno Haible  <bruno@clisp.org>
65896
65897         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
65898
65899 2003-01-15  Bruno Haible  <bruno@clisp.org>
65900
65901         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
65902         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
65903
65904 2003-01-14  Jim Meyering  <jim@meyering.net>
65905
65906         * lib/same.c (same_name): Tweak a comment.
65907
65908 2003-01-14  Bruno Haible  <bruno@clisp.org>
65909
65910         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
65911         when a string comparison is sufficient.
65912
65913 2003-01-14  Bruno Haible  <bruno@clisp.org>
65914
65915         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
65916         'unsigned int'.
65917
65918 2003-01-14  Bruno Haible  <bruno@clisp.org>
65919
65920         * lib/hash-pjw.c: Add comment about low quality of this function.
65921
65922 2003-01-13  Bruno Haible  <bruno@clisp.org>
65923
65924         * modules/stpcpy: Distribute lib/stpcpy.h.
65925         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
65926
65927 2003-01-13  Bruno Haible  <bruno@clisp.org>
65928
65929         * modules/*: Add a description.
65930         * modules/strpbrk: Fix Makefile.am snippet.
65931         * modules/strtoimax: Fix dependencies.
65932         * modules/strtoumax: Likewise.
65933
65934 2003-01-13  Bruno Haible  <bruno@clisp.org>
65935
65936         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
65937         * modules/alloca (Makefile.am): All object files depend on alloca.h.
65938         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
65939
65940 2003-01-13  Bruno Haible  <bruno@clisp.org>
65941
65942         * gnulib-tool (func_create_testdir): Store config/* files in the main
65943         directory.
65944         * config.rpath: Move to ...
65945         * config/config.rpath: ... here.
65946         * modules/gettext: Contains config/config.rpath, not config.rpath.
65947         * modules/iconv: Likewise.
65948
65949 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65950
65951         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65952         to avoid collisions with libcurses and libreadline.
65953
65954         * m4/getstr.m4: Remove.
65955         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
65956
65957 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65958
65959         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65960         to avoid collisions with libcurses and libreadline.
65961
65962         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
65963         * lib/getstr.h, getstr.c: Remove.
65964         * lib/getline.c: Include "getline.h", to check interface.
65965         Move body of old getstr.c here: this defines MIN_CHUNK and
65966         declares getdelim2, which is renamed from getstr.
65967         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
65968
65969         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
65970         All uses changed.
65971         * lib/linebuffer.h: Likewise.
65972         (readline): Remove backward-compatibility macro.
65973
65974 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65975
65976         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65977         to avoid collisions with libcurses and libreadline.
65978         * getstr: Remove.
65979         * MODULES.html.sh: Remove getstr.
65980         * modules/getline: Depend on unlocked-io, not getstr.
65981
65982 2003-01-12  Jim Meyering  <jim@meyering.net>
65983
65984         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
65985
65986 2003-01-10  Bruno Haible  <bruno@clisp.org>
65987
65988         * modules/alloca: Change Makefile.am requirements. Simplify Include
65989         requirements. Add lib/alloca_.h to file list.
65990
65991 2003-01-10  Bruno Haible  <bruno@clisp.org>
65992
65993         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
65994
65995 2003-01-10  Bruno Haible  <bruno@clisp.org>
65996
65997         * lib/alloca_.h: New file.
65998         * lib/getdate.y: Unconditionally include alloca.h.
65999         * lib/makepath.c: Likewise.
66000         * lib/setenv.c: Likewise.
66001         * lib/userspec.c: Likewise.
66002
66003 2003-01-09  Karl Berry  <karl@gnu.org>
66004
66005         * MODULES.html.sh: include `dirname $0` in PATH, to find
66006         gnulib-tool.
66007
66008 2003-01-09  Bruno Haible  <bruno@clisp.org>
66009
66010         * modules/stdbool: Change configure.ac, Makefile.am requirements.
66011         Simplify Include requirements. Add lib/stdbool.h.in to file list.
66012
66013 2003-01-09  Bruno Haible  <bruno@clisp.org>
66014
66015         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
66016
66017 2003-01-09  Bruno Haible  <bruno@clisp.org>
66018
66019         * lib/stdbool.h.in: New file.
66020
66021 2003-01-09  Bruno Haible  <bruno@clisp.org>
66022
66023         * gnulib-tool (func_all_modules): Ignore files ending in ~.
66024         * MODULES.html.sh: Likewise.
66025
66026 2003-01-08  Jim Meyering  <jim@meyering.net>
66027
66028         * lib/full-write.c: Undefine and define-away `const' after inclusion
66029         of errno.h, not before.  Suggestion from Bruno Haible.
66030
66031 2003-01-08  Bruno Haible  <bruno@clisp.org>
66032
66033         * modules/full-read: Depend on full-write.
66034
66035 2003-01-08  Bruno Haible  <bruno@clisp.org>
66036
66037         * lib/safe-read.c: Include specification header first, to ensure its
66038         selfcontainedness.
66039         * lib/full-write.c: Likewise.
66040
66041 2003-01-07  Jim Meyering  <jim@meyering.net>
66042
66043         * lib/full-write.c: Rework so that it may serve to define full_read,
66044         too.
66045         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
66046
66047 2003-01-07  Bruno Haible  <bruno@clisp.org>
66048
66049         * lib/strtoimax.c: Include <stdint.h> as an alternative to
66050         <inttypes.h>.
66051         * lib/xstrtol.h: Likewise.
66052         * lib/xstrtoimax.c: Likewise.
66053         * lib/xstrtoumax.c: Likewise.
66054         * lib/human.h: Likewise.
66055
66056         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
66057         on systems that have <inttypes.h> but not <stdint.h>.
66058
66059 2003-01-07  Bruno Haible  <bruno@clisp.org>
66060
66061         * MODULES.html.sh: Add copyright notice.
66062         (missed_files): Omit CVS directory entries.
66063         (func_module): Make it work with sed-3.02.
66064         * MODULES.txt: Remove file.
66065
66066 2003-01-06  Jim Meyering  <jim@meyering.net>
66067
66068         * lib/version-etc.c: Update year in translatable copyright string.
66069
66070 2003-01-03  Karl Berry  <karl@gnu.org>
66071
66072         * config/config.{guess,sub}: update from prep.
66073
66074 2003-01-02  Karl Berry  <karl@gnu.org>
66075
66076         * doc/COPYING.DOC: belatedly updated to 1.2.
66077
66078 2003-01-01  Karl Berry  <karl@gnu.org>
66079
66080         * gnulib-tool (func_verify_module): report module name $module in
66081         error message, not $1.
66082         * gnulib-tool (create-testdir): don't complain if destdir couldn't
66083         be created, only if it doesn't exist.
66084         * gnulib-tool (last_checkin_date): don't expand the $Date here.
66085
66086 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66087
66088         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
66089
66090 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66091
66092         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
66093         memcmp if strcoll doesn't work.
66094
66095 2002-12-31  Bruno Haible  <bruno@clisp.org>
66096
66097         * lib/utime.c (utime_null): No need to call ftruncate if the file was
66098         nonempty.
66099
66100 2002-12-31  Bruno Haible  <bruno@clisp.org>
66101
66102         * lib/memcoll.c (STRCOLL): New macro.
66103         (memcoll): Use it.
66104
66105 2002-12-31  Bruno Haible  <bruno@clisp.org>
66106
66107         * lib/localcharset.h: New file.
66108         * lib/localcharset.c: Include it.
66109         * lib/unicodeio.c: Likewise.
66110
66111 2002-12-31  Bruno Haible  <bruno@clisp.org>
66112
66113         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
66114         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
66115
66116 2002-12-31  Bruno Haible  <bruno@clisp.org>
66117
66118         * lib/getline.h: Include <stddef.h>, for size_t.
66119
66120         * lib/unicodeio.h: Include <stddef.h>, for size_t.
66121         * lib/unicodeio.c: Don't include <stddef.h>.
66122
66123 2002-12-31  Bruno Haible  <bruno@clisp.org>
66124
66125         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
66126         HAVE_TM_ZONE.
66127
66128 2002-12-24  Karl Berry  <karl@gnu.org>
66129
66130         * config/config.guess: update from prep.
66131
66132 2002-12-24  Bruno Haible  <bruno@clisp.org>
66133
66134         General infrasructure.
66135         * m4/README: Rewritten.
66136         * m4/onceonly.m4: New file.
66137         * m4/onceonly_2_57.m4: New file.
66138
66139         Module atexit.
66140         * m4/atexit.m4: New file.
66141
66142         Module strtod.
66143         * m4/strtod.m4: New file.
66144
66145         Module strtol.
66146         * m4/strtol.m4: New file.
66147
66148         Module strtoul.
66149         * m4/strtoul.m4: New file.
66150
66151         Module memchr.
66152         * m4/memchr.m4: New file.
66153
66154         Module memcmp.
66155         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
66156         (jm_FUNC_MEMCMP): Invoke it.
66157
66158         Module memcpy.
66159         * m4/memcpy.m4: New file.
66160
66161         Module memmove.
66162         * m4/memmove.m4: New file.
66163
66164         Module memset.
66165         * m4/memset.m4: New file.
66166
66167         Module strcspn.
66168         * m4/strcspn.m4: New file.
66169
66170         Module strpbrk.
66171         * m4/strpbrk.m4: New file.
66172
66173         Module strstr.
66174         * m4/strstr.m4: New file.
66175
66176         Module strerror.
66177         * m4/strerror.m4: New file.
66178
66179         Module mktime.
66180         * m4/mktime.m4: Renamed from jm-mktime.m4.
66181         (gl_PREREQ_MKTIME): New macro.
66182         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
66183
66184         Module malloc.
66185         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
66186         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
66187         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
66188
66189         Module realloc.
66190         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
66191         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
66192         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
66193
66194         Module strftime.
66195         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
66196         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
66197         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
66198         gl_TM_GMTOFF.
66199         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
66200
66201         Module xalloc.
66202         * m4/xalloc.m4: New file.
66203
66204         Module alloca.
66205         * m4/alloca.m4: New file.
66206
66207         Module putenv.
66208         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
66209         (jm_FUNC_PUTENV): Invoke it.
66210
66211         Module setenv.
66212         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
66213         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
66214         when invoked twice.
66215         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
66216         gt_FUNC_SETENV.
66217
66218         Module memrchr.
66219         * m4/memrchr.m4: New file.
66220
66221         Module stpcpy.
66222         * m4/stpcpy.m4: New file.
66223
66224         Module strcase.
66225         * m4/strcase.m4: New file.
66226
66227         Module strdup.
66228         * m4/strdup.m4: New file.
66229
66230         Module strnlen.
66231         * m4/strnlen.m4: New file.
66232
66233         Module strndup.
66234         * m4/strndup.m4: New file.
66235
66236         Module xstrtod.
66237         * m4/xstrtod.m4: New file.
66238
66239         Module xstrtol.
66240         * m4/xstrtol.m4: New file.
66241
66242         Module getdate.
66243         * m4/getdate.m4: New file.
66244
66245         Module unlocked-io.
66246         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
66247         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
66248         * m4/jm-glibc-io.m4n: Remove file.
66249
66250         Module long-options.
66251         * m4/long-options.m4: New file.
66252
66253         Module md5.
66254         * m4/md5.m4: New file.
66255
66256         Module sha.
66257         * m4/sha.m4: New file.
66258
66259         Module getstr.
66260         * m4/getstr.m4: New file.
66261
66262         Module getline.
66263         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
66264         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
66265         <sys/types.h>, for size_t. Use the function name gnu_getline, not
66266         simply getline. Infoke gl_PREREQ_GETLINE.
66267
66268         Module obstack.
66269         * m4/obstack.m4: New file.
66270
66271         Module hash.
66272         * m4/hash.m4: New file.
66273
66274         Module readtokens.
66275         * m4/readtokens.m4: New file.
66276
66277         Module strverscmp.
66278         * m4/strverscmp.m4: New file.
66279
66280         Module stdbool.
66281         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
66282         OSF/1.
66283
66284         Module strtoll.
66285         * m4/strtoll.m4: New file.
66286
66287         Module strtoull.
66288         * m4/strtoull.m4: New file.
66289
66290         Module strtoimax.
66291         * m4/strtoimax.m4: New file.
66292
66293         Module strtoumax.
66294         * m4/strtoumax.m4: New file.
66295
66296         Module xstrtoimax.
66297         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
66298         jm_AC_PREREQ_XSTRTOIMAX.
66299         Moved the strtol prerequisites to strtol.m4.
66300         Moved the strtoll prerequisites to strtoll.m4.
66301         Moved the strtoimax prerequisites to strtoimax.m4.
66302
66303         Module xstrtoumax.
66304         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
66305         jm_AC_PREREQ_XSTRTOUMAX.
66306         Moved the strtoul prerequisites to strtoul.m4.
66307         Moved the strtoull prerequisites to strtoull.m4.
66308         Moved the strtoumax prerequisites to strtoumax.m4.
66309
66310         Module chown.
66311         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
66312         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
66313
66314         Module dup2.
66315         * m4/dup2.m4: New file.
66316
66317         Module ftruncate.
66318         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
66319         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
66320
66321         Module getgroups.
66322         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
66323         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
66324
66325         Module gettimeofday.
66326         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
66327         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
66328         gl_PREREQ_GETTIMEOFDAY.
66329
66330         Module mkdir.
66331         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
66332         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
66333
66334         Module mkstemp.
66335         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
66336         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
66337         jm_AC_TYPE_UINTMAX_T.
66338         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
66339
66340         Module stat.
66341         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
66342         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
66343
66344         Module lstat.
66345         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
66346         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
66347
66348         Module timespec.
66349         * m4/timespec.m4 (gl_TIMESPEC): New macro.
66350         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
66351         * m4/st_mtim.m4: Indentation.
66352
66353         Module nanosleep.
66354         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
66355         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
66356         gl_PREREQ_NANOSLEEP.
66357
66358         Module regex.
66359         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
66360         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
66361         (gl_REGEX): New macro.
66362
66363         Module rename.
66364         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
66365         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
66366
66367         Module rmdir.
66368         * m4/rmdir.m4: New file.
66369
66370         Module utime.
66371         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
66372         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
66373         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
66374
66375         Module dirname.
66376         * m4/dirname.m4: New file.
66377
66378         Module getopt.
66379         * m4/getopt.m4: New file.
66380
66381         Module unistd-safer.
66382         * m4/unistd-safer.m4: New file.
66383
66384         Module fnmatch.
66385         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
66386         declaration.
66387         (gl_PREREQ_FNMATCH_EXTRA): New macro.
66388         (gl_FUNC_FNMATCH_POSIX): New macro.
66389         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
66390         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
66391         simply fnmatch.
66392
66393         Module exclude.
66394         * m4/exclude.m4: New file.
66395
66396         Module human.
66397         * m4/human.m4: New file.
66398
66399         Module acl.
66400         * m4/acl.m4: Nop.
66401
66402         Module backupfile.
66403         * m4/backupfile.m4: New file.
66404         * m4/d-ino.m4: Indentation.
66405
66406         Module fsusage.
66407         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
66408         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
66409         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
66410
66411         Module dirfd.
66412         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
66413         requirements.
66414
66415         Module euidaccess.
66416         * m4/euidaccess.m4: New file.
66417
66418         Module file-type.
66419         * m4/file-type.m4: New file.
66420
66421         Module fileblocks.
66422         * m4/fileblocks.m4: New file.
66423
66424         Module filemode.
66425         * m4/filemode.m4: New file.
66426
66427         Module isdir.
66428         * m4/isdir.m4: New file.
66429
66430         Module lchown.
66431         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
66432         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
66433
66434         Module makepath.
66435         * m4/makepath.m4: New file.
66436
66437         Module modechange.
66438         * m4/modechange.m4: New file.
66439
66440         Module mountlist.
66441         * m4/mountlist.m4: New file.
66442         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
66443         Indentation.
66444
66445         Module path-concat.
66446         * m4/path-concat.m4: New file.
66447
66448         Module pathmax.
66449         * m4/pathmax.m4: New file.
66450
66451         Module same.
66452         * m4/same.m4: New file.
66453
66454         Module save-cwd.
66455         * m4/save-cwd.m4: New file.
66456
66457         Module savedir.
66458         * m4/savedir.m4: New file.
66459
66460         Module xgetcwd.
66461         * m4/xgetcwd.m4: New file.
66462         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
66463
66464         Module xreadlink.
66465         * m4/xreadlink.m4: New file.
66466
66467         Module safe-read.
66468         * m4/safe-read.m4: New file.
66469
66470         Module safe-write.
66471         * m4/safe-write.m4: New file.
66472
66473         Module closeout.
66474         * m4/closeout.m4: New file.
66475
66476         Module stdio-safer.
66477         * m4/stdio-safer.m4: New file.
66478
66479         Module getpass.
66480         * m4/getpass.m4: New file.
66481
66482         Module getugroups.
66483         * m4/getugroups.m4: New file.
66484
66485         Module group-member.
66486         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
66487         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
66488
66489         Module idcache.
66490         * m4/idcache.m4: New file.
66491
66492         Module userspec.
66493         * m4/userspec.m4: New file.
66494
66495         Module gettime.
66496         * m4/clock_time.m4: New file.
66497         * m4/gettime.m4: New file.
66498
66499         Module settime.
66500         * m4/settime.m4: New file.
66501
66502         Module posixtm.
66503         * m4/posixtm.m4: New file.
66504
66505         Module gethostname.
66506         * m4/gethostname.m4: New file.
66507
66508         Module canon-host.
66509         * m4/canon-host.m4: New file.
66510
66511         Module gettext.
66512         * m4/codeset.m4: New file, from gettext-0.11.5.
66513         * m4/gettext.m4: New file, from gettext-0.11.5.
66514         * m4/glibc21.m4: New file, from gettext-0.11.5.
66515         * m4/iconv.m4: New file, from gettext-0.11.5.
66516         * m4/intdiv0.m4: New file, from gettext-0.11.5.
66517         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
66518         * m4/inttypes.m4: New file, from gettext-0.11.5.
66519         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
66520         * m4/isc-posix.m4: New file, from gettext-0.11.5.
66521         * m4/lcmessage.m4: New file, from gettext-0.11.5.
66522         * m4/lib-ld.m4: New file, from gettext-0.11.5.
66523         * m4/lib-link.m4: New file, from gettext-0.11.5.
66524         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
66525         * m4/progtest.m4: New file, from gettext-0.11.5.
66526         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
66527         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
66528         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
66529
66530         Module localcharset.
66531         * m4/localcharset.m4: New file.
66532
66533         Module hard-locale.
66534         * m4/hard-locale.m4: New file.
66535
66536         Module mbswidth.
66537         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
66538         onceonly macros.
66539         * m4/mbrtowc.m4: Add comment.
66540
66541         Module memcasecmp.
66542         * m4/memcasecmp.m4: New file.
66543
66544         Module memcoll.
66545         * m4/memcoll.m4: New file.
66546
66547         Module unicodeio.
66548         * m4/unicodeio.m4: New file.
66549
66550         Module rpmatch.
66551         * m4/rpmatch.m4: New file.
66552
66553         Module yesno.
66554         * m4/yesno.m4: New file.
66555
66556         Module exitfail.
66557         * m4/exitfail.m4: New file.
66558
66559         Module c-stack.
66560         * m4/c-stack.m4 (gl_C_STACK): New macro.
66561         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
66562
66563         Module error.
66564         * m4/error.m4 (gl_ERROR): New macro.
66565         (jm_PREREQ_ERROR): Use onceonly macros.
66566
66567         Module fatal.
66568         * m4/fatal.m4: New file.
66569
66570         Module getloadavg.
66571         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
66572         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
66573
66574         Module getpagesize.
66575         * m4/getpagesize.m4: New file.
66576
66577         Module getusershell.
66578         * m4/getusershell.m4: New file.
66579
66580         Module physmem.
66581         * m4/physmem.m4: New file.
66582
66583         Module posixver.
66584         * m4/posixver.m4: New file.
66585
66586         Module quotearg.
66587         * m4/quotearg.m4: New file.
66588
66589         Module quote.
66590         * m4/quote.m4: New file.
66591
66592         Module readutmp.
66593         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
66594
66595         Module sig2str.
66596         * m4/sig2str.m4: New file.
66597
66598         Other.
66599         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
66600         ulonglong.m4.
66601         * m4/intmax_t.m4: New file.
66602         * m4/d-type.m4: Indentation.
66603         * m4/jm-macros.m4: Update.
66604         * m4/prereq.m4 (jm_PREREQ): Update.
66605         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
66606         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
66607         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
66608         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
66609         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
66610         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
66611         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
66612         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
66613         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
66614         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
66615         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
66616         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
66617         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
66618         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
66619         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
66620         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
66621         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
66622         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
66623         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
66624
66625 2002-12-24  Bruno Haible  <bruno@clisp.org>
66626
66627         * MODULES.txt: Update according to m4/ changes.
66628
66629         Module gettext.
66630         * config.rpath: New file, from gettext-0.11.5.
66631
66632         * modules/*: New module descriptions.
66633         * gnulib-tool: New file.
66634         * MODULES.html.sh: New file.
66635
66636 2002-12-21  Karl Berry  <karl@gnu.org>
66637
66638         * doc/fdl.texi: update to version 1.2.
66639
66640 2002-12-19  Karl Berry  <karl@gnu.org>
66641
66642         * config/config.guess: update from prep.
66643
66644 2002-12-18  Bruno Haible  <bruno@clisp.org>
66645
66646         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
66647         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
66648
66649 2002-12-17  Bruno Haible  <bruno@clisp.org>
66650
66651         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
66652         stdlib.h, string.h.
66653
66654 2002-12-17  Bruno Haible  <bruno@clisp.org>
66655
66656         * lib/canon-host.c (strdup): Remove unused declaration.
66657
66658         * lib/fsusage.c: Include full_read.h.
66659         (get_fs_usage): Use full_read instead of safe_read.
66660
66661         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
66662
66663 2002-12-12  Karl Berry  <karl@gnu.org>
66664
66665         * config/config.guess: update from prep.
66666
66667 2002-12-11  Bruno Haible  <bruno@clisp.org>
66668
66669         * m4/setenv.m4: New file, from gettext-0.11.5.
66670
66671 2002-12-11  Bruno Haible  <bruno@clisp.org>
66672
66673         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
66674         not unsetenv().
66675         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
66676         modifications:
66677
66678         2002-12-11  Bruno Haible  <bruno@clisp.org>
66679
66680                 * setenv.c (alloca): Fall back to malloc.
66681                 (freea): New macro.
66682                 (setenv): Use freea() to free memory allocated with alloca().
66683
66684         2002-11-13  Bruno Haible  <bruno@clisp.org>
66685
66686                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
66687                 function declarations.
66688                 * unsetenv.c (unsetenv): Likewise.
66689
66690         2002-03-04  Bruno Haible  <bruno@clisp.org>
66691
66692                 Portability to AIX 4.3.3.
66693                 * unsetenv.c: New file, extracted from setenv.c.
66694                 * setenv.c: Move the unsetenv() function to unsetenv.c.
66695
66696         2001-12-20  Bruno Haible  <bruno@clisp.org>
66697
66698                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
66699                 use malloc instead. For SunOS 4.
66700
66701         2001-12-11  Bruno Haible  <bruno@clisp.org>
66702
66703                 * setenv.c: Declare alloca.
66704                 (compar_fn_t): New typedef.
66705                 (KNOWN_VALUE, STORE_VALUE): Use it.
66706
66707         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
66708         setenv.h.
66709
66710 2002-12-10  Paul Eggert  <eggert@twinsun.com>
66711
66712         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
66713         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
66714         Choose values that are less likely to collide with system fnmatch
66715         options.
66716         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
66717         defined (e.g., a pure POSIX system).
66718         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
66719         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
66720
66721 2002-12-06  Paul Eggert  <eggert@twinsun.com>
66722
66723         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
66724         a pain in practice to deal with generated m4 files.  This change
66725         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
66726
66727         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
66728         and jm-glibc-io.m4, as they are no longer a special case.
66729         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
66730         kludge and the auto-generation stuff.  Check only whether the
66731         functions are declared, not whether they exist, since older hosts
66732         that don't declare the functions can't use the optimization anyway.
66733
66734 2002-12-06  Jim Meyering  <jim@meyering.net>
66735
66736         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
66737
66738         Merge in changes from libc's misc/error.c, in preparation
66739         for the merge of gnulib's changes back into libc.
66740
66741         * lib/error.c (_): Define only if not already defined.
66742         Move definition to follow all #include directives.
66743         Include unlocked-io.h only if !_LIBC.
66744         [_LIBC]: Include <libio/libioP.h>.
66745         [USE_IN_LIBIO]: Include <libio/iolibio.h>
66746         (fflush): Tweak definition to use INTUSE.
66747         (putc): Define.
66748
66749 2002-12-05  Paul Eggert  <eggert@twinsun.com>
66750
66751         * lib/alloca.c [defined emacs]: Include "lisp.h".
66752         (xalloc_die) [defined emacs]: New macro.
66753         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
66754         [! defined emacs]: Include <xalloc.h>.
66755         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
66756         (pointer): Typedef to POINTER_TYPE *.
66757         (malloc): Remove decl; we now always use xmalloc.
66758         (alloca): Use old-style definition, since Emacs needs this.
66759         Check for arithmetic overflow when computing combined size.
66760
66761 2002-12-04  Paul Eggert  <eggert@twinsun.com>
66762
66763         Do not generate unlocked-io.h automatically, since it's easier to
66764         maintain it by hand.
66765
66766         * lib/unlocked-io.h: New file, from GNU diffutils,
66767         but with proper copyright notice and attribution.
66768         * lib/gen-uio: Remove.
66769         * lib/Makefile.am: Add copyright notice.
66770         (libfetish_a_SOURCES): Add unlocked-io.h.
66771         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
66772         (DISTCLEANFILES, io_functions): Remove macros.
66773         (EXTRA_DIST): Remove gen_uio.
66774         (unlocked-io.h): Remove rule.
66775
66776 2002-12-04  Jim Meyering  <jim@meyering.net>
66777
66778         Reflect the fact that stat.c and lstat.c are no longer generated.
66779         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
66780         (DISTCLEANFILES): Likewise.
66781         (EXTRA_DIST): Likewise.
66782         (all_local): Don't depend on stat.c or lstat.c.
66783         (stat.c, lstat.c): Remove rules.
66784         (EXTRA_DIST): Remove xstat.in.
66785
66786         * lib/xstat.in: Remove file.  Contents moved into stat.c.
66787         * lib/stat.c: New file.  Contents mostly from xstat.in.
66788         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
66789         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
66790
66791         * lib/safe-read.c: Rework so that it may serve to define safe_write,
66792         too.
66793         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
66794
66795 2002-12-03  Jim Meyering  <jim@meyering.net>
66796
66797         * lib/safe-read.c, safe-write.c: Change variable names and comments,
66798         but not semantics, to minimize the differences between these two files.
66799         (safe_read): Change comment to mention SAFE_READ_ERROR.
66800
66801         * lib/safe-read.c (IS_EINTR): Define.
66802         (safe_read): Use IS_EINTR in place of in-function cpp directives.
66803
66804 2002-12-02  Jim Meyering  <jim@meyering.net>
66805
66806         * lib/safe-read.c (EINTR): Define.
66807         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66808         (INT_MAX): Provide fallback.
66809         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
66810
66811         * lib/safe-read.h (SAFE_READ_ERROR): Define.
66812
66813 2002-12-02  Bruno Haible  <bruno@clisp.org>
66814
66815         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
66816         Define, taken from safe-read.c.
66817         (INT_MAX): Provide fallback.
66818         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
66819         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
66820
66821         * lib/safe-read.c (EINTR): Remove definition.
66822         (safe_read): Don't use EINTR if it is absent.
66823
66824 2002-12-01  Jim Meyering  <jim@meyering.net>
66825
66826         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
66827         zero.
66828         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
66829
66830 2002-11-27  Paul Eggert  <eggert@twinsun.com>
66831
66832         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
66833         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
66834         with `if (! (value < limit)) abort ();', for readability.
66835
66836 2002-11-26  Karl Berry  <karl@gnu.org>
66837
66838         * lib/strdup.c: copy from libc again, with jim's ok.
66839         * lib/.cppi-disable: re-add strdup.c
66840
66841 2002-11-25  Karl Berry  <karl@gnu.org>
66842
66843         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
66844         instead of "strtol.c".
66845
66846 2002-11-25  Karl Berry  <karl@gnu.org>
66847
66848         * config/install-sh: update from automake for variable quoting, $0 in
66849         error msgs, etc.
66850
66851         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
66852         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
66853         entry.
66854
66855 2002-11-25  Jim Meyering  <jim@meyering.net>
66856
66857         * lib/mktime.c: Sync from libc, now that it has the latest fix.
66858
66859 2002-11-24  Karl Berry  <karl@gnu.org>
66860
66861         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
66862         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
66863
66864 2002-11-24  Jim Meyering  <jim@meyering.net>
66865
66866         Update from coreutils:
66867
66868         * lib/mktime.c: Merge in changes from libc.
66869
66870         Avoid a link-time failure on some Linux systems.
66871         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
66872         (otherwise).
66873         (__mon_yday): Declare with the STATIC attribute.
66874         (__mktime_internal): Likewise.
66875         Based on a report from Greg Schafer.
66876
66877 2002-11-23  Jim Meyering  <jim@meyering.net>
66878
66879         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
66880         Use `unsigned', not `int', as type of index.
66881
66882         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
66883
66884         * lib/fsusage.c: Remove unneeded parentheses around operands of
66885         `defined'.
66886
66887 2002-11-22  Paul Eggert  <eggert@twinsun.com>
66888
66889         * lib/quotearg.h: Allow multiple inclusion by surrounding with
66890         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
66891         so that we can be included first.
66892         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
66893         * lib/quotearg.c: Include quotearg.h immediately after config.h.
66894         No need to include stddef.h or sys/types.h any more.
66895         Surround local include files with "", not "<>".
66896         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
66897         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
66898         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
66899         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
66900         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
66901         (ISPRINT): Remove; no longer needed now that we assume C89.
66902
66903         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
66904         Preserve errno.
66905
66906         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
66907         quotearg_char): Use SIZE_MAX rather than
66908         (size_t) -1 when we are talking about "infinity".
66909
66910         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
66911
66912 2002-11-22  Paul Eggert  <eggert@twinsun.com>
66913
66914         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
66915         hint that one should use `if (! x) abort ();' rather than `assert
66916         (x);', and anyway it's one less thing to worry about configuring.
66917         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
66918         hash_rehash, hash_insert): Use abort rather than assert.
66919
66920 2002-11-22  Bruno Haible  <bruno@clisp.org>
66921
66922         * lib/safe-read.h: Assume C89. Add comments.
66923         (safe_read): Change return type to size_t.
66924         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
66925         byte counts > SSIZE_MAX correctly.
66926         * lib/safe-write.h: New file.
66927         * lib/safe-write.c: New file.
66928         * lib/full-read.h: New file.
66929         * lib/full-read.c: New file.
66930         * lib/full-write.h: Assume C89. Add comments.
66931         * lib/full-write.c: Include safe-write.h.
66932         (full_write): Rewritten to use safe_write.
66933         Suggested by Jim Meyering and Paul Eggert.
66934
66935 2002-11-21  Jim Meyering  <jim@meyering.net>
66936
66937         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
66938
66939         Merge in changes from the coreutils.
66940
66941         2002-09-25  Paul Eggert  <eggert@twinsun.com>
66942         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
66943         <stdint.h>.
66944         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
66945         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
66946         int.  Work more efficiently if X is the same width as uintmax_t.
66947         Do not compare X to -1, to avoid bogus compiler warning.
66948         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
66949         Don't assume that f_frsize and f_bsize are the same type.
66950
66951         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
66952         warning on FreeBSD.
66953
66954         * lib/makepath.c (make_path): Restore umask *before* creating the final
66955         component.
66956         (make_path): Minor reformatting.
66957
66958         * lib/xmalloc.c: Adjust to work with new autoconf macros,
66959         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
66960         HAVE_MALLOC/HAVE_REALLOC.
66961
66962         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
66963         dummy ones.  At least on GNU/Linux systems, `auto' means something
66964         else.
66965         From Michael Stone.
66966
66967 2002-11-21  Bruno Haible  <bruno@clisp.org>
66968
66969         Remove case insensitive option matching.
66970         * lib/argmatch.h (argcasematch): Remove declaration.
66971         (ARGCASEMATCH): Remove macro.
66972         (__xargmatch_internal): Remove case_sensitive argument.
66973         (XARGMATCH): Update.
66974         (XARGCASEMATCH): Remove macro.
66975         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
66976         case_sensitive argument.
66977         (argcasematch): Remove function.
66978         (__xargmatch_internal): Remove case_sensitive argument.
66979         (main): Use XARGMATCH instead of XARGCASEMATCH.
66980
66981         * lib/xmalloc.c: Change compile-time error message. Add comment about
66982         required autoconf version.
66983
66984 2002-11-20  Paul Eggert  <eggert@twinsun.com>
66985
66986         Merge argmatch cleanups from Bison.  Assume C89.
66987
66988         * lib/argmatch.c: Include config.h here, not in argmatch.h.
66989         Include stdlib.h, for EXIT_FAILURE.
66990         Always include <string.h>, since we assume C89.
66991         (EXIT_FAILURE): Remove pre-C89 bug workaround.
66992         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
66993         Include <stddef.h> instead, since it's all we need for size_t.
66994         (PARAMS): Remove.  All uses removed.
66995         (ARRAY_CARDINALITY): Do not bother to #undef.
66996         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
66997         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
66998         Remove unnecessary parentheses.
66999         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67000         Insert necessary parentheses.
67001         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
67002         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
67003
67004 2002-11-19  Bruno Haible  <bruno@clisp.org>
67005
67006         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
67007         * lib/mbswidth.h: Include <stddef.h>, for size_t.
67008
67009         * lib/mbswidth.h (PARAMS): Remove macro.
67010         (mbswidth, mbsnwidth): Use ANSI C function declarations.
67011         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
67012
67013         * lib/gcd.h (PARAMS): Remove macro.
67014         (gcd): Use ANSI C function declarations.
67015         * lib/gcd.c (gcd): Likewise.
67016
67017 2002-11-15  Bruno Haible  <bruno@clisp.org>
67018
67019         * lib/strcspn.c: Include <stddef.h>.
67020         (strcspn): Use ANSI C function declaration. Change return type to
67021         size_t. Use NULL.
67022         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
67023         (strpbrk): Use NULL.
67024         * lib/strpbrk.h (PARAMS): Remove macro.
67025         (strpbrk): Use ANSI C function declaration.
67026         * lib/strstr.c: Don't include <sys/types.h>.
67027         * lib/strstr.h (PARAMS): Remove macro.
67028         (strstr): Use ANSI C function declarations.
67029
67030 2002-11-14  Karl Berry  <karl@gnu.org>
67031
67032         * config/mkinstalldirs: `do' on separate line, instead of
67033         `for var; do'.
67034
67035 2002-11-06  Bruno Haible  <bruno@clisp.org>
67036
67037         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
67038         * lib/gcd.c (gcd): Likewise.
67039
67040 2002-11-05  Bruno Haible  <bruno@clisp.org>
67041
67042         * lib/gcd.h: New file, from gettext-0.11.5.
67043         * lib/gcd.c: New file, from gettext-0.11.5.
67044
67045 2002-11-05  Bruno Haible  <bruno@clisp.org>
67046
67047         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67048         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67049         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67050         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67051
67052         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
67053         <libintl.h>.
67054         * lib/makepath.c: Include gettext.h instead of <locale.h> and
67055         <libintl.h>.
67056
67057         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
67058         * lib/human.c: Include gettext.h instead of <libintl.h>.
67059         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
67060         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
67061         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
67062         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
67063         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
67064         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
67065         (textdomain): Remove definition.
67066         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
67067
67068         * lib/long-options.c: Remove include of <libintl.h> and definition of
67069         _.
67070         * lib/same.c: Remove include of <libintl.h> and definition of _.
67071
67072 2002-11-04  Owen Taylor  <otaylor@redhat.com>
67073
67074         * lib/config.charset: A few additions for Solaris.
67075
67076 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67077
67078         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
67079         * lib/localcharset.c (locale_charset): Declare as extern "C".
67080
67081 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67082
67083         * lib/config.charset: msdos in uk_UA uses CP1125.
67084
67085 2002-11-04  Bruno Haible  <bruno@clisp.org>
67086
67087         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
67088         * lib/strcase.h: New file, from GNU gettext-0.11.5.
67089         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
67090         * lib/strstr.h: New file, from GNU gettext-0.11.5.
67091         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
67092
67093 2002-11-04  Bruno Haible  <bruno@clisp.org>
67094
67095         * lib/localcharset.c (locale_charset): Don't return an empty string.
67096
67097 2002-11-04  Bruno Haible  <bruno@clisp.org>
67098
67099         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
67100         aliases.
67101
67102 2002-11-04  Bruno Haible  <bruno@clisp.org>
67103
67104         * lib/config.charset: Update for newest glibc. Add canonical names
67105         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
67106
67107 2002-11-04  Bruno Haible  <bruno@clisp.org>
67108
67109         * lib/config.charset: Add support for NetBSD.
67110
67111 2002-11-04  Bruno Haible  <bruno@clisp.org>
67112
67113         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
67114
67115 2002-11-01  Bruno Haible  <bruno@clisp.org>
67116
67117         * configure.in: Add AC_CONFIG_AUX_DIR call.
67118         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
67119         test/Makefile.
67120         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
67121
67122 2002-09-28  Karl Berry  <karl@gnu.org>
67123
67124         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
67125         installed automake until the next release, since changes have been
67126         made.
67127
67128 2002-09-25  Karl Berry  <karl@gnu.org>
67129
67130         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
67131         * lib/getopt*: copy from libc/posix.
67132         * lib/gettext.h: copy from gettext.
67133         * lib/.cppi-disable: add strdup.c, gettext.h.
67134
67135 2002-09-25  Karl Berry  <karl@gnu.org>
67136
67137         * config/srclist.txt: enable gettext.h check.
67138         * config/config.{guess,sub}: update from prep.
67139         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
67140                 from automake 1.6.3.
67141         See srclist*.
67142
67143 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
67144
67145         * regex.c (PATFETCH): Remove the translating fetch.
67146         (PATFETCH_RAW): Rename to PATFETCH.
67147         (set_image_of_range): New fun.
67148         (SET_RANGE_TABLE_WORK_AREA): Use it.
67149         (regex_compile): Don't translate the pattern chars so eagerly.
67150         Only do it when inserting an `exactn' bytecode or when handling
67151         a char-range.
67152         (mutually_exclusive_p): Avoid empty statement.
67153
67154 2002-07-06  Jim Meyering  <meyering@lucent.com>
67155
67156         * m4/README: Don't mention Makefile.am.in.
67157         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
67158
67159 2002-07-01  Jim Meyering  <meyering@lucent.com>
67160
67161         * lib/c-stack.c: Include sys/time.h.
67162         From Volker Borchert.
67163
67164 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67165
67166         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
67167
67168 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67169
67170         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
67171         New macro.  Use it uniformly instead of
67172         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
67173         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
67174         reported by Vin Shelton.
67175
67176 2002-06-22  Paul Eggert  <eggert@twinsun.com>
67177
67178         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
67179         Do not assume SA_SIGINFO behavior.
67180         Bug reported by Jim Meyering on NetBSD 1.5.2.
67181
67182 2002-06-22  Jim Meyering  <meyering@lucent.com>
67183
67184         * m4/c-stack.m4: New file, from diffutils-2.8.2.
67185         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
67186
67187         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
67188         now that configure.ac uses AC_GNU_SOURCE.
67189         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
67190         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
67191
67192         Update to latest tools.  Suggestions from Paul Eggert.
67193         * m4/stdbool.m4: New file, from diffutils-2.8.2.
67194         * m4/gnu-source.m4: Update from diffutils-2.8.2.
67195         * m4/fnmatch.m4: Likewise.
67196         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
67197         to AC_HEADER_STDBOOL
67198
67199 2002-06-22  Jim Meyering  <meyering@lucent.com>
67200
67201         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
67202         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
67203
67204 2002-06-22  Jim Meyering  <meyering@lucent.com>
67205
67206         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
67207
67208         * lib/exitfail.c, exitfail.h: Likewise.
67209         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
67210
67211         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
67212         of fnmatch.h.
67213         (EXTRA_DIST): Add fnmatch_loop.c.
67214         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
67215
67216         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
67217         * lib/fnmatch.c: Update from diffutils-2.8.2.
67218         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
67219         * lib/fnmatch.h: Remove file.
67220
67221 2002-06-21  Jim Meyering  <meyering@lucent.com>
67222
67223         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
67224         * m4/mbrtowc.m4: Likewise.
67225
67226         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
67227         * m4/mbswidth.m4: Reflect name change:
67228         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
67229         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67230
67231         * m4/lib-link.m4: Update from gettext-0.11.2.
67232         * m4/gettext.m4: Likewise.
67233
67234         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
67235         From Alfred M. Szmidt.
67236
67237 2002-06-18  Paul Eggert  <eggert@twinsun.com>
67238
67239         * lib/file-type.h: Report an error if neither S_ISREG nor
67240         S_IFREG is defined, instead of using a test specific to glibc
67241         2.2.  This should be safe, since POSIX requires S_ISREG and
67242         Unix Version 7 had S_IFREG.  We don't need to check for
67243         <sys/types.h> since we don't use any symbols that it defines.
67244
67245 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
67246
67247         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
67248         $@-t, so that each temporary file name is unique and valid in the first
67249         8 characters, for operation under DOS.
67250
67251 2002-06-15  Paul Eggert  <eggert@twinsun.com>
67252
67253         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
67254
67255 2002-06-15  Jim Meyering  <meyering@lucent.com>
67256
67257         Work even with DJGPP 2.03, which lacks support for symlinks.
67258         From Richard Dawe.
67259         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
67260         is defined.
67261         * lib/lchown.c (S_ISLNK): Likewise.
67262
67263 2002-06-15  Jim Meyering  <meyering@lucent.com>
67264
67265         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
67266         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
67267         have been included before this file.
67268
67269 2002-06-14  Jim Meyering  <meyering@lucent.com>
67270
67271         * lib/file-type.h: Use the version from diffutils-2.8.2.
67272         * lib/file-type.c: Likewise.
67273
67274 2002-06-07  Jim Meyering  <meyering@lucent.com>
67275
67276         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
67277         They're needed at least for NetBSD 1.5.2.
67278         ($statxfs_includes): Include those same headers.
67279         ($statxfs_includes): Include sys/vfs.h if available.
67280         ($statxfs_includes): Likewise for sys/statvfs.h.
67281         Check for the following members in both structs statfs and statvfs:
67282         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
67283
67284 2002-06-01  Jim Meyering  <meyering@lucent.com>
67285
67286         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
67287         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
67288
67289 2002-05-28  Jim Meyering  <meyering@lucent.com>
67290
67291         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
67292         Reported by Volker Borchert.
67293
67294 2002-05-27  Jim Meyering  <meyering@lucent.com>
67295
67296         Fix a problem seen only on nonconforming systems whereby ls.c's
67297         use of localtime, and then of gettimeofday would cause trouble:
67298         the localtime call used to initialize rpl_gettimeofday's save
67299         mechanism would clobber ls's current local time information so
67300         that in any long listing the first file would always be listed
67301         with date 1970-01-01.  Analysis by Volker Borchert.
67302
67303         * lib/gettimeofday.c (localtime): Undefine.
67304         (rpl_localtime): New function.
67305
67306 2002-05-27  Jim Meyering  <meyering@lucent.com>
67307
67308         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
67309         localtime.
67310
67311         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
67312         use the replacement function; it wouldn't resolve at link time.
67313         Reported by Volker Borchert.
67314
67315 2002-05-22  Jim Meyering  <meyering@lucent.com>
67316
67317         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
67318         file-type.h.
67319         * lib/file-type.h: New file.
67320         * lib/file-type.c (file_type): New file/function.  Extracted from
67321         diffutils.
67322
67323 2002-04-30  Jim Meyering  <meyering@lucent.com>
67324
67325         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
67326
67327 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67328
67329         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
67330
67331 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67332
67333         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
67334         Do not check for alloca.h (no longer used) or stdbool.h (was never
67335         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
67336
67337 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67338
67339         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
67340
67341 2002-04-29  Jim Meyering  <meyering@lucent.com>
67342
67343         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
67344         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
67345         Use AC_FUNC_STRNLEN here instead.
67346
67347         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
67348         With autoconf-2.53a, it's part of AC_PROG_CC.
67349
67350 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67351
67352         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
67353         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
67354
67355 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67356
67357         * lib/sig2str.h, lib/sig2str.c: New files.
67358         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
67359
67360 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67361
67362         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
67363         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
67364         of 127, since 64 is the largest conceivable number for ancient
67365         nonstandard hosts.
67366         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
67367
67368 2002-04-28  Jim Meyering  <meyering@lucent.com>
67369
67370         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
67371
67372 2002-04-24  Jim Meyering  <meyering@lucent.com>
67373
67374         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
67375         (jm_PREREQ): Use it.
67376
67377         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
67378         mach/mach.h fcntl.h.
67379         Check for this function: setlocale.
67380
67381 2002-04-24  Jim Meyering  <meyering@lucent.com>
67382
67383         * lib/gettext.h: New file, from Gettext.
67384         * lib/Makefile.am (INCLUDES): Remove -I../intl.
67385         (libfetish_a_SOURCES): Add gettext.h.
67386
67387 2002-04-16  Jim Meyering  <meyering@lucent.com>
67388
67389         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
67390         ut_pid, ut_id, ut_exit.
67391
67392 2002-04-16  Jim Meyering  <meyering@lucent.com>
67393
67394         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
67395         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
67396         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
67397
67398 2002-04-12  Jim Meyering  <meyering@lucent.com>
67399
67400         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
67401         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
67402         existence of the getmntinfo function.  Needed for Darwin 5.3.
67403
67404         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
67405         This is necessary at least on Darwin 5.3.
67406
67407         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
67408         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
67409         strnlen.o in the library, and that makes some versions of ranlib
67410         object.
67411
67412 2002-04-12  Jim Meyering  <meyering@lucent.com>
67413
67414         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
67415
67416 2002-04-09  Jim Meyering  <meyering@lucent.com>
67417
67418         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
67419         to be more precise.  Rather than saying we're checking whether the
67420         function `works', say what we're testing.
67421         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
67422         Reported by Bruno Haible.
67423
67424 2002-03-10  Jim Meyering  <meyering@lucent.com>
67425
67426         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
67427         Suggestion from Santiago Vila.
67428
67429 2002-03-08  Jim Meyering  <meyering@lucent.com>
67430
67431         * lib/rename.c: Mention that this wrapper is needed also on
67432         mips-dec-ultrix4.4 systems.
67433
67434 2002-03-02  Jim Meyering  <meyering@lucent.com>
67435
67436         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
67437         not HAVE_CLOCK_SETTIME.
67438
67439 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67440
67441         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
67442         Check for clock_settime.
67443
67444 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67445
67446         * lib/nanosleep.h: Rename to....
67447         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
67448
67449         * lib/gettime.c: New file.
67450         * lib/settime.c: New file.
67451         * lib/stime.c: Remove.
67452
67453         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
67454         timespec.h.  Remove nanosleep.h.
67455
67456 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67457
67458         * m4/acl.m4: New file.
67459         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
67460         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
67461
67462 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67463
67464         * lib/acl.c, lib/acl.h: New files.
67465         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
67466
67467 2002-02-24  Jim Meyering  <meyering@lucent.com>
67468
67469         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
67470         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
67471         cause trouble.  Reported by Nelson Beebe.
67472
67473 2002-02-23  Paul Eggert  <eggert@twinsun.com>
67474
67475         * lib/path-concat.c (xpath_concat): Reorder code to pacify
67476         compilers that don't know that xalloc_die never returns.
67477
67478 2002-02-20  Jim Meyering  <meyering@lucent.com>
67479
67480         * lib/getdate.c: Regenerate using bison-1.33.
67481
67482 2002-02-17  Jim Meyering  <meyering@lucent.com>
67483
67484         * config/config.guess (main): Don't use `head -1'; it's no longer
67485         portable. Use `sed 1q' instead.
67486
67487 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
67488
67489         * m4/codeset.m4: Upgrade to gettext-0.11.
67490         * m4/gettext.m4: Upgrade to gettext-0.11.
67491         * m4/glibc21.m4: Upgrade to gettext-0.11.
67492         * m4/iconv.m4: Upgrade to gettext-0.11.
67493         * m4/isc-posix.m4: Upgrade to gettext-0.11.
67494         * m4/lcmessage.m4: Upgrade to gettext-0.11.
67495         * m4/lib-ld.m4: New file, from gettext-0.11.
67496         * m4/lib-link.m4: New file, from gettext-0.11.
67497         * m4/lib-prefix.m4: New file, from gettext-0.11.
67498         * m4/progtest.m4: Upgrade to gettext-0.11.
67499
67500 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67501
67502         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
67503         (jm_PREREQ): Use it.
67504
67505 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67506
67507         * lib/posixver.c, lib/posixver.h: New files.
67508         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67509
67510 2002-02-02  Paul Eggert  <eggert@twinsun.com>
67511             Bruno Haible  <bruno@clisp.org>
67512
67513         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
67514         (fwrite_success_callback): New declaration.
67515         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
67516         print_unicode_char. Call failure callback instead of error.
67517         (fwrite_success_callback): New function.
67518         (exit_failure_callback): New function.
67519         (fallback_failure_callback): New function.
67520         (print_unicode_char): Call unicode_to_mb.
67521
67522 2002-01-26  Jim Meyering  <meyering@lucent.com>
67523
67524         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
67525         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
67526
67527 2002-01-26  Jim Meyering  <meyering@lucent.com>
67528
67529         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
67530
67531 2002-01-22  Paul Eggert  <eggert@twinsun.com>
67532
67533         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
67534
67535 2002-01-22  Jim Meyering  <meyering@lucent.com>
67536
67537         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
67538         Otherwise, some versions of automake would omit the rule that makes
67539         Makefile from Makefile.in.
67540
67541 2002-01-21  Paul Eggert  <eggert@twinsun.com>
67542
67543         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
67544         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67545         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
67546         (memcoll): Set errno to zero if there is no error.
67547
67548         * lib/quotearg.c (quotearg_buffer_restyled):
67549         Fix bug with quoting buffers containing NUL when backslashing escapes.
67550         This bug was exposed by the other changes in this patch.
67551         (quotearg_n_options): New arg ARGSIZE.
67552         All callers changed.
67553         (quoting_options_from_style): New function.
67554         (quotearg_n_style): Use it.
67555         (quotearg_n_style_mem): New function.
67556
67557         * lib/quotearg.h (quotearg_n_style_mem): New function.
67558
67559 2002-01-19  Jim Meyering  <meyering@lucent.com>
67560
67561         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
67562         Remove useless quotes: DF_PROG="df".
67563         * m4/strnlen.m4: New file.
67564
67565 2002-01-16  Paul Eggert  <eggert@twinsun.com>
67566
67567         * lib/backupfile.c (ISDIGIT): Comment fix.
67568         * lib/getdate.y (ISDIGIT): Likewise.
67569         * lib/posixtm.c (ISDIGIT, year): Likewise.
67570         * lib/strverscmp.c (ISDIGIT): Likewise.
67571         * lib/userspec.c (ISDIGIT): Likewise.
67572
67573 2002-01-16  Jim Meyering  <meyering@lucent.com>
67574
67575         * lib/getdate.y: Add three semicolons, each just before a closing
67576         brace. Bison (as of version 1.31) no longer papers over that mistake.
67577
67578 2002-01-05  Jim Meyering  <meyering@lucent.com>
67579
67580         * lib/version-etc.c (version_etc_copyright): Update copyright year.
67581
67582 2001-12-19  Paul Eggert  <eggert@twinsun.com>
67583
67584         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
67585         not silently exit merely because the output buffer happens to
67586         have nothing pending.
67587
67588 2001-12-18  Paul Eggert  <eggert@twinsun.com>
67589
67590         See the big note in ../ChangeLog.
67591         * lib/human.c (suffixes): Prefer K to k for 1024.
67592         (generate_suffix_backwards): New function.
67593         (human_readable_inexact): Use it.
67594         * lib/xstrtol.c (__xstrtol): If there is no number but there
67595         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
67596         Accept 'K' as well as 'k'.
67597
67598 2001-12-15  Jim Meyering  <meyering@lucent.com>
67599
67600         * lib/regex.h (__restrict_arr): Update from libc.
67601
67602         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
67603         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
67604         (STREQ): Define.
67605
67606 2001-12-14  Jim Meyering  <meyering@lucent.com>
67607
67608         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
67609         Suggestion from Bruno Haible.
67610
67611 2001-12-10  Jim Meyering  <meyering@lucent.com>
67612
67613         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
67614         xrealloc, Instead, include "xalloc.h".
67615         (initbuffer): Don't cast xmalloc return value to char*.
67616         (readline): Reword comment.
67617         Don't cast xrealloc return value to char*
67618         Return NULL, not 0.
67619
67620 2001-12-09  Jim Meyering  <meyering@lucent.com>
67621
67622         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
67623         about `signed and unsigned type in conditional expression'.
67624         * lib/posixtm.c (posix_time_parse): Likewise.
67625
67626         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
67627
67628         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
67629         to avoid a pedantic warning.
67630
67631         * lib/getstr.c: Don't include assert.h.
67632         (getstr): Remove warning-evoking assertions.
67633         Return -1 if offset parameter is out of bounds.
67634         Change the type of a local from int to size_t.
67635
67636         * lib/strftime.c (my_strftime_localtime_r): Include this function
67637         definition in the `#if ! HAVE_TM_GMTOFF' block.
67638
67639         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
67640         Include xalloc.h instead.
67641
67642 2001-12-02  Jim Meyering  <meyering@lucent.com>
67643
67644         * lib/tempname.c: Don't declare getenv, thus reverting the change of
67645         2001-11-18.  It's no longer necessary, now that stdlib.h is always
67646         included.
67647
67648         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
67649         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
67650
67651 2001-11-30  Akim Demaille  <akim@epita.fr>
67652
67653         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
67654         before being defined.
67655
67656 2001-11-27  Paul Eggert  <eggert@twinsun.com>
67657
67658         * lib/quotearg.h (quotearg_n, quotearg_n_style):
67659         First arg is int, not unsigned.
67660         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
67661         (SIZE_MAX, UINT_MAX): New macros.
67662         (quotearg_n_options): Abort if N is negative.
67663         Avoid overflow check on hosts where size_t is 64 bits and int
67664         is 32 bits, as overflow is impossible there.
67665         Fix off-by-one typo that caused unnecessary reallocation.
67666
67667 2001-11-27  Jim Meyering  <meyering@lucent.com>
67668
67669         * lib/tempname.c: Merge with version from libc.
67670         * lib/regex.c: Likewise.
67671
67672         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
67673         systems for which STDC_HEADERS is 0, it was not included, resulting in
67674         a warning about an integer-to-pointer conversion problem with getenv.
67675         Reported by Volker Borchert.
67676
67677 2001-11-26  Jim Meyering  <meyering@lucent.com>
67678
67679         * lib/gtod.h: Remove file.
67680         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
67681         * lib/gettimeofday.c: Don't include gtod.h.
67682         (GTOD_init): Remove function.
67683         (rpl_gettimeofday): Do its job here instead, rather than aborting.
67684         Suggestion from Volker Borchert.
67685
67686 2001-11-23  Jim Meyering  <meyering@lucent.com>
67687
67688         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
67689         it.
67690         * lib/hash.c (struct hash_table): Define it here instead.
67691
67692 2001-11-22  Jim Meyering  <meyering@lucent.com>
67693
67694         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
67695
67696 2001-11-20  Jim Meyering  <meyering@lucent.com>
67697
67698         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
67699         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
67700
67701 2001-11-19  Jim Meyering  <meyering@lucent.com>
67702
67703         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
67704         directory.  Use "conftestXXXXXX" as the template.
67705         Suggestion from Paul Eggert.
67706
67707         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
67708         immediately, so the test doesn't mistakenly hit the max-open-files
67709         limit.
67710
67711 2001-11-18  Paul Eggert  <eggert@twinsun.com>
67712
67713         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
67714         (TEMPORARIES): New macro.
67715         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
67716         removes an artificial limitation (e.g. HP-UX 10.20, where
67717         TMP_MAX is 17576).
67718
67719 2001-11-18  Jim Meyering  <meyering@lucent.com>
67720
67721         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
67722
67723 2001-11-18  Jim Meyering  <meyering@lucent.com>
67724
67725         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
67726         on SunOS 4.
67727
67728         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
67729         files will be created before anything else.
67730
67731 2001-11-17  Paul Eggert  <eggert@twinsun.com>
67732
67733         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
67734         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
67735
67736 2001-11-17  Jim Meyering  <meyering@lucent.com>
67737
67738         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
67739         Prompted by a report from Bob Proulx.
67740
67741         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
67742         Instead, require UTILS_FUNC_MKSTEMP.
67743
67744 2001-11-17  Jim Meyering  <meyering@lucent.com>
67745
67746         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
67747         Now, that's done as part of AC_FUNC_STRTOD.
67748
67749 2001-11-17  Jim Meyering  <meyering@lucent.com>
67750
67751         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
67752         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
67753         rather than group writable.  Patch by Juan F. Codagnone.
67754
67755         * lib/readtokens.c: Remove explicit declarations of xmalloc and
67756         xrealloc, Instead, include "xalloc.h".
67757
67758         * lib/mountlist.c: Include unlocked-io.h after all system headers.
67759         Remove explicit declarations of xmalloc, xrealloc,
67760         and xstrdup.  Instead, include "xalloc.h".
67761
67762         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
67763         unlocked-io.h.
67764         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
67765         Likewise.
67766         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
67767
67768         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
67769         Reported by Padraig Brady.
67770
67771         * lib/mkstemp.c: #undef mkstemp.
67772         Include config.h.
67773         (rpl_mkstemp): Rename from mkstemp.
67774         Protoize.
67775
67776 2001-11-16  Jim Meyering  <meyering@lucent.com>
67777
67778         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
67779         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
67780         determine the amount of total physical memory, use pstat_getstatic.
67781         HPUX-11 doesn't define _SC_PHYS_PAGES.
67782         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
67783         If sysconf couldn't be used to determine the amount of available
67784         physical memory, use both pstat_getstatic and pstat_getdynamic.
67785         Based on a patch from Bob Proulx.
67786
67787 2001-11-10  Jim Meyering  <meyering@lucent.com>
67788
67789         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
67790         (jm_PREREQ): Use it.
67791
67792 2001-11-09  Jim Meyering  <meyering@lucent.com>
67793
67794         * m4/jm-macros.m4: Require autoconf-2.52f.
67795         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
67796         Use these AC_-prefixed names, not the AM_-prefixed ones.
67797
67798         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
67799
67800 2001-11-05  Jim Meyering  <meyering@lucent.com>
67801
67802         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
67803
67804 2001-11-04  Jim Meyering  <meyering@lucent.com>
67805
67806         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
67807         $DEFS.
67808
67809 2001-11-03  Jim Meyering  <meyering@lucent.com>
67810
67811         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
67812         of AC_DEFUN.
67813
67814         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
67815         know the name of the variable in the macro definition.
67816
67817 2001-11-03  Jim Meyering  <meyering@lucent.com>
67818
67819         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
67820         in argmatch_to_argument call.
67821
67822         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
67823         argument.
67824
67825         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
67826         e.g., a fault due to an attempt to free a NULL pointer.
67827
67828 2001-11-01  Jim Meyering  <meyering@lucent.com>
67829
67830         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
67831         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
67832
67833 2001-11-01  Jim Meyering  <meyering@lucent.com>
67834
67835         * lib/dirfd.c, lib/dirfd.h: New files.
67836         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
67837
67838         * lib/hash.c (hash_print) [TESTING]: Clean up.
67839
67840 2001-10-22  Paul Eggert  <eggert@twinsun.com>
67841
67842         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
67843         to avoid a warning if -Wall.
67844
67845 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
67846
67847         * README: New file
67848         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
67849         (per RMS's instructions, this is now the canonical source)
67850         * lgpl/, gpl/: New directories.
67851
67852 2001-10-21  Paul Eggert  <eggert@twinsun.com>
67853
67854         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
67855
67856 2001-10-21  Jim Meyering  <meyering@lucent.com>
67857
67858         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
67859         this code would end up calling gettext even in packages built
67860         with --disable-nls.
67861         * lib/getopt.c (_): Likewise.
67862         * lib/regex.c (_): Likewise.
67863
67864 2001-10-20  Paul Eggert  <eggert@twinsun.com>
67865
67866         * m4/error.m4 (jm_PREREQ_ERROR):
67867         Do not invoke AC_CHECK_FUNCS with strerror_r, as
67868         AC_FUNC_STRERROR_R does that.
67869         Check for strerror declaration.
67870
67871         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
67872         are supposed to have them these days.
67873         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
67874         Merge changes from latest Autoconf CVS.
67875         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
67876         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
67877         POSIX decided to standardize on the int flavor of strerror_r.
67878
67879 2001-10-20  Paul Eggert  <eggert@twinsun.com>
67880
67881         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
67882         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
67883         Use strerror_r that is only a macro, even if it is not a function.
67884         (strerror): Check for HAVE_DECL_STRERROR before declaring.
67885         (private_strerror): Use prototypes, not old-style function definition.
67886         (print_errno_message): New function.
67887         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
67888         char*-flavored one.
67889         (error_tail, error, error_at_line): Use it.
67890
67891 2001-10-11  Jim Meyering  <meyering@lucent.com>
67892
67893         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
67894         and quote_n (1, ... to avoid clobbering a buffer.
67895
67896 2001-10-05  Jim Meyering  <meyering@lucent.com>
67897
67898         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
67899         hash-pjw.h.
67900         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
67901         * lib/hash-pjw.h: New file.
67902
67903 2001-09-30  Jim Meyering  <meyering@lucent.com>
67904
67905         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
67906         `struct fsstat' has the `f_fstypename' member.
67907         Use that to define FS_TYPE, which is now used to make
67908         the getfsstat link test tighter.
67909
67910 2001-09-30  Jim Meyering  <meyering@lucent.com>
67911
67912         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
67913         Include <sys/ucred.h>, for Apple Darwin.
67914         Include sys/mount.h and sys/fs_types.h only if available.
67915         (FS_TYPE): Define.
67916         (read_filesystem_list): Use FS_TYPE.
67917
67918 2001-09-29  Paul Eggert  <eggert@twinsun.com>
67919
67920         * lib/exclude.c (excluded_filename): 0 -> false, since it's
67921         a boolean context.
67922
67923 2001-09-29  Jim Meyering  <meyering@lucent.com>
67924
67925         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
67926         [one-argument getmntent function]): Include stdio.h before mntent.h.
67927         SunOS 4.1.x needs it for the declaration of `FILE'.
67928         Patch by Volker Borchert.
67929
67930         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
67931         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
67932         sys/fs_types.h, and make the link-test for getfsstat guard #include
67933         directives with appropriate #if HAVE_*_H tests so that we can
67934         detect getfsstat on Apple Darwin1.3.7 systems.
67935         Reported by Nelson Beebe.
67936         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
67937
67938 2001-09-28  Paul Eggert  <eggert@twinsun.com>
67939
67940         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
67941         #defines strtoimax.  Also treat the other strto* functions
67942         like strtoimax.
67943
67944         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
67945         Check for strtoul and strtoumax,
67946         as those declarations are made even in the signed case.
67947         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
67948         Likewise, for strtol and strtoimax.
67949
67950 2001-09-28  Paul Eggert  <eggert@twinsun.com>
67951
67952         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
67953         #defines strtoimax.  Also treat the other strto* functions
67954         like strtoimax.
67955
67956         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
67957         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
67958         (strtoimax, strtoumax): Do not declare if already defined as a macro.
67959
67960 2001-09-26  Jim Meyering  <meyering@lucent.com>
67961
67962         Most macros in unlocked-io.h had the wrong number of arguments.
67963         * lib/gen-uio: New script.
67964         (USE_UNLOCKED_IO): Define to 1 if not already defined.
67965         * lib/unlocked-io.hin: Remove file.
67966         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
67967         rather than trying to embed it here.
67968         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
67969         Reported by Padraig Brady.
67970
67971 2001-09-25  Volker Borchert  <bt@teknon.de>
67972
67973         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
67974         `result'.
67975
67976 2001-09-24  Jim Meyering  <meyering@lucent.com>
67977
67978         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
67979
67980 2001-09-23  Jim Meyering  <meyering@lucent.com>
67981
67982         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
67983         instead of the mere test for existence of mntent.h.  The latter
67984         would get a false-positive on AIX 3.4 systems.
67985         In the outer getmntent if-block, don't die if neither of the getmntent
67986         tests succeeds.  Instead, just fall through and continue with the
67987         remaining tests.
67988
67989 2001-09-23  Jim Meyering  <meyering@lucent.com>
67990
67991         * lib/mountlist.c: Remove useless parentheses in #if directives.
67992         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
67993         the deprecated MOUNTED symbol is no longer defined in mntent.h.
67994
67995 2001-09-22  Jim Meyering  <meyering@lucent.com>
67996
67997         * m4/gettext.m4: New file.  From gettext.
67998         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
67999         * m4/progtest.m4: Likewise
68000         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
68001         * m4/glibc21.m4: Likewise.
68002
68003         * m4/libintl.m4: Remove.  No longer used.
68004
68005 2001-09-22  Jim Meyering  <meyering@lucent.com>
68006
68007         * lib/localcharset.c: Update from latest gettext.
68008         * lib/config.charset: Likewise.
68009
68010 2001-09-20  Jim Meyering  <meyering@lucent.com>
68011
68012         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
68013         strtoimax.
68014         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
68015         strtoumax.
68016
68017 2001-09-20  Jim Meyering  <meyering@lucent.com>
68018
68019         * lib/xstrtol.c (strtoimax): Guard declaration with
68020         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
68021         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
68022         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
68023         (strtoumax): Likewise, for completeness (it wasn't necessary).
68024
68025 2001-09-17  Paul Eggert  <eggert@twinsun.com>
68026
68027         * lib/strtoimax.c (HAVE_LONG_LONG):
68028         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
68029         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
68030         to work around bug in IBM C compiler.
68031
68032 2001-09-17  Jim Meyering  <meyering@lucent.com>
68033
68034         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
68035         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
68036         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
68037         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
68038         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
68039         whenever the right hand side need not be expanded by the shell.
68040
68041 2001-09-16  Paul Eggert  <eggert@twinsun.com>
68042
68043         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
68044         library.  It's not correct, as some older glibcs are buggy.
68045         fnmatch wasn't fixed until glibc 2.2.
68046
68047         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
68048         special shell magic here.
68049
68050 2001-09-16  Jim Meyering  <meyering@lucent.com>
68051
68052         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
68053         * m4/jm-macros.m4: Require it.
68054
68055 2001-09-16  Jim Meyering  <meyering@lucent.com>
68056
68057         * lib/mkdir.c: New file.
68058
68059 2001-09-15  Jim Meyering  <meyering@lucent.com>
68060
68061         * m4/jm-macros.m4: Check for help2man.
68062
68063 2001-09-11  Jim Meyering  <meyering@lucent.com>
68064
68065         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
68066         The body, by Paul Eggert, was moved here from configure.in.
68067         * m4/jm-macros.m4: Require UTILS_HOST_OS.
68068
68069 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68070
68071         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
68072         (jm_PREREQ): Use it.
68073
68074 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68075
68076         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
68077         Use ssize_t, not int, to store result of readlink.
68078         Check for ssize_t overflow as well as size_t overflow,
68079         as POSIX says the result of readlink is implementation-defined
68080         when ssize_t overflows.
68081         Remove unnecessary cast to char*.
68082         Use free+malloc instead of realloc, as the storage doesn't need
68083         to be preserved and it's clearer and can be more efficient that way.
68084         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
68085         * lib/xreadlink.h (xreadlink): Update prototype.
68086
68087 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68088
68089         * lib/xgetcwd.c: Revert some of the previous change; intead,
68090         fix the HAVE_GETCWD_NULL code to behave more like the
68091         !HAVE_GETCWD_NULL code used to.
68092
68093         Include "xalloc.h".
68094         (xgetcwd): Do not return NULL when memory is exhausted; instead,
68095         invoke xalloc_die.
68096
68097 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68098
68099         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
68100         sys/param.h, as pathmax.h includes them.
68101
68102 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68103
68104         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
68105         (jm_PREREQ_XGETCWD): New macro.
68106
68107         * m4/getcwd.m4: New file.
68108
68109 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68110
68111         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
68112         like the HAVE_GETCWD_NULL code.
68113         Include pathmax.h if not HAVE_GETCWD.
68114         Do not include xalloc.h.
68115         (INITIAL_BUFFER_SIZE): New symbol.
68116         Do not use xmalloc / xrealloc, since the caller is responsible for
68117         handling errors.  Preserve errno around `free' during failure.
68118         Do not overrun buffer when using getwd.
68119
68120 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68121
68122         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
68123         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
68124         getcwd (NULL, 0).
68125
68126 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68127
68128         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
68129         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
68130         spotted by Jim Meyering.
68131
68132 2001-09-03  Jim Meyering  <meyering@lucent.com>
68133
68134         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
68135         failure.
68136
68137 2001-09-02  Jim Meyering  <meyering@lucent.com>
68138
68139         * lib/error.c: Update from GNU libc.
68140
68141 2001-09-01  Jim Meyering  <meyering@lucent.com>
68142
68143         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
68144         Used by df.
68145
68146 2001-09-01  Jim Meyering  <meyering@lucent.com>
68147
68148         * lib/xreadlink.c: New file.
68149         * lib/xreadlink.h: New file.
68150         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
68151         xreadlink.h.
68152
68153         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
68154         doesn't conflict with sparc Solaris 7's definition in
68155         /usr/include/sys/int_types.h.
68156
68157         * lib/exclude.c: Use `""', not `<>' to #include non-system header
68158         files.
68159         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
68160         and strncasecmp as r-values.  Unixware didn't have declarations.
68161
68162 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68163
68164         * lib/xstrtol.h: Add copyright notice.
68165         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
68166         LONGINT_INVALID_SUFFIX_CHAR.
68167
68168 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68169
68170         * lib/xstrtol.c (strtoimax): New decl.
68171
68172 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68173
68174         * lib/xgetcwd.c: Don't include pathmax.h.
68175         Include stdlib.h and unistd.h if available.
68176         Include xalloc.h.
68177         (xmalloc, xstrdup, free): Remove decls.
68178         (xgetcwd): Don't assume sizes fit in unsigned.
68179         Check for overflow when computing sizes.
68180         Simplify reallocation code.
68181
68182 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68183
68184         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
68185         a directory's st_size can have an arbitrary value, so the old
68186         usage could waste an arbitrary amount of memory.  All uses
68187         changed.
68188         * lib/savedir.h: Update prototype.
68189
68190 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68191
68192         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
68193
68194         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
68195         old strtoimax.c.
68196
68197         Also, make the following further changes to make this file's
68198         configuration more similar to that of strtol.c:
68199         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
68200         (strtoumax, uintmax_t, strtoull, strtol): Remove.
68201         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
68202         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
68203         changed to signed values.
68204
68205         And make the following changes as well:
68206         Fix copyright notice, as 1999 was missing.
68207         (verify): New macro.
68208         (strtoimax): Check sizes at compile-time, not run-time.
68209         Prefer strtol to strtoll if both work.
68210         (main): Remove; it was not that useful and was a pain to maintain.
68211
68212         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
68213
68214 2001-08-31  Jim Meyering  <meyering@lucent.com>
68215
68216         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
68217         Use an initial, malloc'd, buffer of length 128 rather than
68218         a statically allocated one of length 1024.
68219
68220 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68221
68222         Simplify code, partly by assuming autoconf 2.52 semantics.
68223
68224         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
68225
68226         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
68227         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
68228         All uses removed.
68229         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
68230         Move AC_REQUIRE to next-to-top level, to avoid confusion.
68231         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
68232         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
68233         jm_AC_HEADER_INTTYPES_H.
68234         * m4/jm-macros.m4 (jm_MACROS): Likewise.
68235
68236         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
68237
68238         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68239         Quote first arg of AC_DEFUN.
68240         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
68241         since they are needed to parse the include file even if we need
68242         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
68243         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
68244         but with opposite signedness.
68245
68246 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68247
68248         Merge 'exclude' changes from tar 1.13.22.
68249         This fixes one or two unlikely storage allocation overflow bugs,
68250         but doesn't change user-visible behavior otherwise.
68251
68252 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68253
68254         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
68255         (jm_PREREQ_EXCLUDE): New macro.
68256
68257 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68258
68259         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
68260         tm to be declared.
68261
68262 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68263
68264         * lib/hash.c: Remove '2001' from copyright notice.
68265
68266 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68267
68268         * lib/full-write.h: New file.
68269         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
68270         * lib/full-write.c: Correct credits, as cccp.c no longer
68271         exists and anyway it was so heavily changed from the old cccp
68272         code as to be unrecognizable.  Include full-write.h.
68273         (full_write) Return size_t, with short writes meaning failure.
68274         All callers changed.  This fixes a bug with large buffers
68275         on 64-bit hosts.
68276         * lib/utime.c: Include full-write.h.
68277
68278 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68279
68280         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
68281         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
68282         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
68283         Include if available.
68284         (<xalloc.h>): Include
68285         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
68286         (verify): New macro.  Use it to verify that EXCLUDE macros do not
68287         collide with FNM macros.
68288         (struct patopts): New struct.
68289         (struct exclude): Use it, as exclude patterns now come with options.
68290         (new_exclude): Support above changes.
68291         (new_exclude, add_exclude_file):
68292         Initial size must now be a power of two to simplify overflow checking.
68293         (free_exclude, fnmatch_no_wildcards): New function.
68294         (excluded_filename): No longer requires options arg, as the options
68295         are determined by add_exclude.  Now returns bool, not int.
68296         (excluded_filename, add_exclude):
68297         Add support for the fancy new exclusion options.
68298         (add_exclude, add_exclude_file): Now takes int options arg.
68299         Check for arithmetic overflow when computing sizes.
68300         (add_exclude_file): xrealloc might modify errno, so don't
68301         realloc until after errno might be used.
68302
68303         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
68304         New macros.
68305         (free_exclude): New decl.
68306         (add_exclude, add_exclude_file): Now takes int options arg.
68307         (excluded_filename): No longer requires options arg, as the options
68308         are determined by add_exclude.  Now returns bool, not int.
68309
68310 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68311
68312         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
68313
68314 2001-08-27  Jim Meyering  <meyering@lucent.com>
68315
68316         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
68317
68318         * lib/version-etc.c (N_): Remove definition.
68319         Revert most of last change.
68320         Instead, simply don't mark the `Copyright...' string for translation.
68321         Based on advice from Paul Eggert.
68322
68323         * lib/strtoxmax.c: Tweak comment.
68324
68325 2001-08-26  Jim Meyering  <meyering@lucent.com>
68326
68327         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
68328
68329         * m4/xstrtoimax.m4: New file.
68330         * m4/xstrtoumax.m4: Add comments explaining why we
68331         AC_REPLACE_FUNCS(strtol).
68332
68333 2001-08-26  Jim Meyering  <meyering@lucent.com>
68334
68335         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
68336         of copyright with `%s' so translators don't get an untranslated
68337         message in 2002.
68338         (COPYRIGHT_YEAR): Define.
68339         (version_etc): Use fprintf rather than fputs.
68340         Suggestion from Ulrich Drepper.
68341
68342         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
68343
68344         * lib/strtoll.c: New file, from GNU libc.
68345         * lib/xstrtoimax.c: New file.
68346
68347         * lib/xstrtol.h: Add xstrtoimax.
68348         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
68349         * lib/strtoimax.c: New file.  Likewise, but first define
68350         STRTOUXMAX_SIGNED.
68351
68352         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
68353         ...
68354         * lib/strtoxmax.c: ... then renamed to this.
68355
68356 2001-08-18  Paul Eggert  <eggert@twinsun.com>
68357
68358         * m4/inttypes.m4: Add AC_PREREQ(2.13).
68359         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
68360         (jm_AC_TYPE_INTMAX_T): New macro.
68361         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
68362
68363         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
68364
68365         * m4/longlong.m4: Renamed from ulonglong.m4.
68366         * m4/inttypes.m4: Renamed from inttypes_h.m4.
68367         * m4/uintmax_t.m4: Removed.
68368
68369 2001-08-13  Paul Eggert  <eggert@twinsun.com>
68370
68371         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
68372         Port to Solaris 8, where 'sed' requires a space after the 'r'
68373         command, and where sh dislikes "$/".  Clean up the spacing a bit.
68374         Redirect output to $tmp just once.
68375
68376 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
68377
68378         * lib/addext.c (<errno.h>): Include.
68379         (errno): Declare if not defined.
68380         (addext): Work correctly when pathconf returns -1 and leaves
68381         errno alone because there is no limit.  Also, work even if
68382         pathconf returns a value greater than SIZE_MAX.
68383
68384 2001-08-12  Jim Meyering  <meyering@lucent.com>
68385
68386         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
68387         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
68388         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
68389         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
68390         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
68391         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
68392         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
68393         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
68394         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
68395         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
68396         utime.m4, utimes.m4, xstrtoumax.m4:
68397         Quote the first argument in each use of AC_DEFUN.
68398
68399 2001-08-12  Jim Meyering  <meyering@lucent.com>
68400
68401         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
68402         Simply `return getcwd (NULL, 0);'.
68403         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
68404         Use 1300 as initial value for length, not PATH_MAX.
68405
68406         * lib/pathmax.h: Clean up cpp syntax.
68407
68408 2001-08-12  Jim Meyering  <meyering@lucent.com>
68409
68410         * lib/gettimeofday.c: New file.
68411         * lib/gtod.h: New file.
68412         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
68413
68414 2001-08-05  Jim Meyering  <meyering@lucent.com>
68415
68416         * m4/jm-macros.m4: Require autoconf-2.52.
68417
68418 2001-08-04  Jim Meyering  <meyering@lucent.com>
68419
68420         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
68421         stmt, to get in sync with glibc.
68422
68423 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68424
68425         The following changes are from gettext 0.10.39 as maintained by
68426         Bruno Haible.
68427
68428         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
68429         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
68430         with inverted sense.  All uses changed.
68431
68432         * lib/mbswidth.c: Don't include <limits.h>.
68433         Include <stdlib.h> and <string.h> unconditionally.
68434         (iswcntrl, mbsinit, ISCNTRL): New macros.
68435         (mbsnwidth): Use K&R style function declarations.
68436         Don't bother checking for MB_LEN_MAX == 1, since the compiler
68437         can optimize it when MB_CUR_MAX == 1.
68438         The width of control characters is zero, not 1.
68439
68440 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68441
68442         The following changes are from gettext 0.10.39 as maintained by
68443         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
68444
68445         * m4/codeset.m4: Upgrade to serial AM1.
68446         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
68447         all uses changed.  Quote first arg of AC_DEFUN.
68448         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
68449
68450         * m4/iconv.m4: Upgrade to serial AM2.
68451         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
68452         Add --with-libconv-prefix.
68453         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
68454         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
68455         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
68456         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
68457         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
68458
68459         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
68460         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
68461         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
68462         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
68463         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
68464         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
68465         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
68466         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
68467         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68468
68469         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
68470         string.h any more.
68471
68472         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
68473         not the default value.
68474
68475         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
68476         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
68477         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
68478         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
68479         Also check for iswcntrl, used for wcwidth fallback.
68480         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
68481         to Autoconf 2.13.
68482
68483 2001-08-03  Jim Meyering  <meyering@lucent.com>
68484
68485         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
68486         as it was in the original.  Reported by Paul Eggert.
68487
68488 2001-07-16  Jim Meyering  <meyering@lucent.com>
68489
68490         * m4/gettimeofday.m4: New file.
68491         Prompted by a report from Bernhard Baehr.
68492
68493 2001-07-15  Jim Meyering  <meyering@lucent.com>
68494
68495         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
68496         stuff. Now it's in ../Makefile.cfg.
68497
68498 2001-07-15  Jim Meyering  <meyering@lucent.com>
68499
68500         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
68501         (BUILT_SOURCES): Add unlocked-io.h.
68502         (io_functions): Define.
68503         (unlocked-io.h): New rule.
68504         (DISTCLEANFILES): Add unlocked-io.h.
68505         (all-local): Depend on unlocked-io.h, to ensure it is created.
68506
68507         * lib/unlocked-io.hin: New file
68508
68509         * lib/regex.c: Update from glibc.
68510
68511 2001-07-05  Jim Meyering  <meyering@lucent.com>
68512
68513         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
68514         recommendation.
68515         (libfetish_a_SOURCES): Put all .h files here instead.
68516         Remove a thus-exposed (better checks in automake) duplicate and
68517         two unnecessary .h files.
68518
68519 2001-07-04  Jim Meyering  <meyering@lucent.com>
68520
68521         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
68522         that generates jm-glibc-io.m4 so that it doesn't trigger any make
68523         distcheck failure.
68524
68525 2001-07-02  Jim Meyering  <meyering@lucent.com>
68526
68527         The following changes were prompted by suggestions from Bruno Haible.
68528
68529         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
68530         is now generated.
68531         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
68532         definition of EXTRA_DIST.
68533         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
68534         ensure that the generated file is created/updated whenever the list
68535         of $(unlocked_functions) is changed.
68536         (jm-glibc-io.m4): New rule.
68537         (unlocked-io.h): New rule -- currently unused.
68538
68539 2001-06-24  Jim Meyering  <meyering@lucent.com>
68540
68541         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
68542         unmatched right bracket, rather than kludging it with an extra,
68543         falsely-matching quote in a comment.  Patch by Akim Demaille.
68544
68545 2001-06-11  Jim Meyering  <meyering@lucent.com>
68546
68547         * lib/regex.c: Update from GNU libc.
68548
68549 2001-05-27  Jim Meyering  <meyering@lucent.com>
68550
68551         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
68552         Check for ut_type in struct utmp.
68553
68554 2001-05-27  Jim Meyering  <meyering@lucent.com>
68555
68556         * lib/readutmp.h (UT_TYPE): Define.
68557
68558 2001-05-24  Jim Meyering  <meyering@lucent.com>
68559
68560         * lib/argmatch.c: Include "quote.h".
68561         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
68562         quote function.  Reported by Göran Uddeborg.
68563
68564 2001-05-22  Jim Meyering  <meyering@lucent.com>
68565
68566         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
68567         now that we use the package-supplied version unconditionally.
68568         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
68569
68570 2001-05-21  Jim Meyering  <meyering@lucent.com>
68571
68572         * m4/regex.m4: Change a couple backticks to single quotes to avoid
68573         shell syntax errors.
68574
68575 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68576
68577         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
68578
68579 2001-05-20  Paul Eggert  <eggert@twinsun.com>
68580
68581         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
68582         Don't bother to check library strftime, since
68583         we'll be using our own my_strftime function anyway.
68584         Define my_strftime instead of strftime.
68585
68586 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
68587
68588         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
68589         which is not yet declared.
68590
68591 2001-05-15  Jim Meyering  <meyering@lucent.com>
68592
68593         * m4/regex.m4: Use proper quoting so brackets appear in the test
68594         program.
68595         Reported by, and with help from, Bruno Haible.
68596
68597 2001-05-13  Jim Meyering  <meyering@lucent.com>
68598
68599         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
68600         undefined.
68601
68602 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68603
68604         dirname code cleanup.  base_name now behaves more compatibly
68605         with POSIX basename when given file names that have trailing
68606         slashes, and similarly for dir_name.  Add new primitives
68607         base_len and dir_len.  Put the directory-name-related decls
68608         into dirname.h.
68609
68610         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
68611         * lib/backupfile.c (base_name): Likewise.
68612         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
68613         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
68614         * lib/makepath.c (strip_trailing_slashes): Likewise.
68615         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
68616         ISSLASH): Likewise.
68617         * lib/rename.c (strip_trailing_slashes): Likewise.
68618         * lib/same.c (base_name): Likewise.
68619         * lib/stripslash.c (ISSLASH): Likewise.
68620
68621         * lib/addext.c: Include <dirname.h> after size_t is defined.
68622         * lib/backupfile.c: Likewise.
68623
68624         * lib/addext.c (addext): Use base_len to trim redundant
68625         trailing slashes instead of doing it ourselves.
68626         But do not trim the last slash if it is not redundant.
68627
68628         * lib/backupfile.c (find_backup_file_name,
68629         max_backup_version): Use base_len instead of rolling it ourselves.
68630         Handle the case of "" and (on DOS) "C:" correctly.
68631
68632         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
68633         needed. Include <string.h>, <dirname.h>.
68634         (base_name): Allow file names ending in slashes, other than names
68635         that are all slashes.  In this case, return the basename followed
68636         by the slashes.  This is more general, and can be used in places
68637         where the original base_name purposely had an assertion failure.
68638         (base_len): New function.
68639
68640         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
68641         Do not include <assert.h>; no longer needed.
68642         Include xalloc.h.
68643         (memrchr): Remove decl.
68644         (dir_name_r): Remove.
68645         (dir_len): Renamed from dirlen.  All callers changed.
68646         Rewrite in terms of base_name, for simplicity and consistency.
68647         (dir_name): Never return NULL.  All callers changed.
68648         Do not include <stdlib.h> in test program; no longer needed.
68649         return 0; is fine for test program.
68650
68651         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
68652         New macros.
68653         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
68654
68655         * lib/path-concat.c (path_concat): Use base_len to compute
68656         base length, not strlen; this means we cannot rely on memcpy
68657         to null-terminate.
68658
68659         * lib/same.c (STREQ): Remove.
68660         (same_name): Handle the case where the basename ends in trailing '/'.
68661
68662         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
68663         a slash was stripped.  Do not strip the last slash after a
68664         file system prefix.
68665
68666 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68667
68668         * lib/Makefile.am (libfetish_a_SOURCES):
68669         Add strftime.c, since we now compile it on all hosts.
68670
68671         * lib/strftime.c (my_strftime):
68672         Define to nstrftime if emacs, but only if my_strftime is not defined.
68673         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
68674         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
68675         Add one more extra argument: a nanoseconds value.
68676         All uses changed.
68677         (ns): New macro.
68678         (my_strftime function): Add %N format.
68679         (emacs_strftimeu): Renamed from emacs_strftime,
68680         with extra ut argument.
68681
68682 2001-05-09  Paul Eggert  <eggert@twinsun.com>
68683
68684         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
68685
68686 2001-04-21  Jim Meyering  <meyering@lucent.com>
68687
68688         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
68689         doesn't interfere.
68690
68691 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68692
68693         * m4/ftruncate.m4: Check for chsize.
68694         Link with ftruncate.o unconditionally if ftruncate is missing.
68695         This was required when cross-compiling to i586-mingw32msvc.
68696
68697 2001-04-08  Jim Meyering  <meyering@lucent.com>
68698
68699         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
68700         recomputed; that's necessary when the offset spans a DST transition.
68701         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
68702
68703 2001-04-02  Jim Meyering  <meyering@lucent.com>
68704
68705         * lib/regex.h, regex.c: Update from GNU libc.
68706
68707 2001-03-24  Jim Meyering  <meyering@lucent.com>
68708
68709         * m4/jm-macros.m4: Require autoconf-2.49d.
68710
68711 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
68712
68713         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
68714
68715 2001-03-19  Paul Eggert  <eggert@twinsun.com>
68716
68717         * lib/version-etc.c (version_etc_copyright): Update to 2001.
68718
68719 2001-03-17  Jim Meyering  <meyering@lucent.com>
68720
68721         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
68722         now that the version in autoconf is equivalent.
68723         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
68724
68725         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
68726         Suggestion from Akim Demaille.
68727
68728         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
68729         (jm_PREREQ_TEMPNAME): New function.
68730
68731 2001-03-16  Paul Eggert  <eggert@twinsun.com>
68732
68733         * lib/tempname.c (uint64_t): Define to uintmax_t if
68734         not defined, and if UINT64_MAX is not defined.
68735         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
68736         Reported by John David Anglin.
68737
68738 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
68739
68740         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
68741         resolve alias if codeset is empty.
68742         * lib/config.charset (BeOS): Use wildcard syntax.
68743
68744 2001-03-13  Jim Meyering  <meyering@lucent.com>
68745
68746         * lib/path-concat.c (path_concat)
68747         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
68748         concatenating e.g., `C:' and `foo'.
68749         From Bruno Haible.
68750
68751 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68752
68753         * lib/localcharset.c (locale_charset): Don't use
68754         setlocale(LC_CTYPE,NULL). Don't return NULL.
68755         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
68756
68757 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68758
68759         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
68760         support for DOS/DJGPP.
68761
68762 2001-03-01  Paul Eggert  <eggert@twinsun.com>
68763
68764         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
68765         lacks mkstemp.  Compile our own tempname.c if we compile our own
68766         mkstemp.c, as mkstemp relies on tempname.
68767
68768 2001-03-01  Jim Meyering  <meyering@lucent.com>
68769
68770         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
68771         AH_VERBATIM really does output its argument verbatim.
68772
68773 2001-02-28  Paul Eggert  <eggert@twinsun.com>
68774
68775         * lib/Makefile.am (libfetish_a_SOURCES):
68776         Add dup-safer.c, fopen-safer.c.
68777         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
68778
68779         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
68780         * lib/unistd-safer.h: New files.
68781
68782 2001-02-25  Paul Eggert  <eggert@twinsun.com>
68783
68784         The mkstemp replacement is taken from glibc 2.2.2, with some
68785         portability fixes for use outside glibc, as follows:
68786
68787         * lib/tempname.c (struct_stat64): New macro.
68788         (direxists, __gen_tempname): Use it.
68789         This avoids a portability problem with Solaris 8.
68790
68791         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
68792         (<stddef.h>, <stdint.h>, <string.h>):
68793         Include only if STDC_HEADERS || _LIBC.
68794         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
68795         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
68796         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
68797         (__set_errno): Define this macro if <errno.h> doesn't.
68798         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
68799         Define these macros if <stdio.h> doesn't.
68800         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
68801         Define these macros if <sys/stat.h>
68802         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
68803         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
68804         __xstat64): Define if not _LIBC.
68805         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
68806         (__gen_tempname): Invoke gettimeofday only if
68807         HAVE_GETTIMEOFDAY || _LIBC;
68808         otherwise, fall back on plain "time".
68809         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
68810
68811         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
68812
68813         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
68814
68815 2001-02-18  Paul Eggert  <eggert@twinsun.com>
68816
68817         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
68818
68819 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68820
68821         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
68822         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
68823         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
68824         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
68825
68826 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68827
68828         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
68829         Remove workaround macros for hosts that have mbrtowc but not
68830         mbstate_t, as we now insist on proper declarations for both
68831         before using mbrtowc.
68832
68833 2001-02-17  Jim Meyering  <meyering@lucent.com>
68834
68835         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
68836         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
68837         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
68838         UnixWare 7.1.1.
68839
68840         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
68841         rather than AC_CACHE_VAL.
68842
68843 2001-02-17  Jim Meyering  <meyering@lucent.com>
68844
68845         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
68846         around included file name.
68847
68848         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
68849
68850         * lib/strftime.c: Update from GNU libc (the only changes were to
68851         comments).
68852
68853 2001-02-17  Jim Meyering  <meyering@lucent.com>
68854
68855         * lib/regex.c: Update from libc.
68856
68857 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
68858
68859         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
68860         clash.
68861
68862 2001-02-16  Paul Eggert  <eggert@twinsun.com>
68863
68864         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
68865         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
68866         Reported by Mark Hounschell via Paul Eggert.
68867
68868 2001-02-07  Jim Meyering  <meyering@lucent.com>
68869
68870         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
68871
68872 2001-02-05  Jim Meyering  <meyering@lucent.com>
68873
68874         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
68875         it includes the patch required for `large file' support with at least
68876         HP-UX's 10.20 /bin/cc.
68877
68878 2001-02-03  Jim Meyering  <meyering@lucent.com>
68879
68880         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
68881         AS_IF, now that it works once again (mysteriously).
68882         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
68883
68884 2001-01-30  Jim Meyering  <meyering@lucent.com>
68885
68886         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
68887         * m4/chown.m4: Rename conftestchown to conftest.chown.
68888         * m4/rename.m4: s/conftestdir/conftest.d1/ and
68889         s/conftestdir2/conftest.d2/.
68890         * m4/utimes.m4: s/conftestdata/conftest.data/
68891         Inspired by Pavel Roskin's change in autoconf.
68892
68893 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
68894
68895         * lib/config.charset: Update for FreeBSD 4.2.
68896
68897 2001-01-27  Jim Meyering  <meyering@lucent.com>
68898
68899         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
68900         a use of AS_IF.
68901         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
68902
68903 2001-01-26  Jim Meyering  <meyering@lucent.com>
68904
68905         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
68906         quotearg.c includes it.
68907
68908 2001-01-26  Jim Meyering  <meyering@lucent.com>
68909
68910         * lib/quotearg.c: Include stddef.h.
68911         * lib/quote.c: Include stddef.h.
68912         Reported by Axel Kittenberger.
68913
68914         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
68915         line in double quotes so that it evokes a better diagnostic.
68916         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
68917         Reported by Axel Kittenberger.
68918
68919 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
68920
68921         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
68922         as if it was a `charset'.
68923
68924 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
68925
68926         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
68927         has const.
68928
68929 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
68930
68931         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
68932         to avoid a warning.  Add back 'const' to inptr.
68933
68934 2001-01-20  Jim Meyering  <meyering@lucent.com>
68935
68936         Be sure that headers are checked before used in code compiled
68937         for the type checks.
68938         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
68939         In place of that, invoke jm_CHECK_ALL_TYPES.
68940         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
68941         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
68942         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
68943         The check for ssize_t was mistakenly run before the test for unistd.h.
68944
68945         The configure-time check for stdbool.h was missing.
68946         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
68947         (jm_PREREQ_HASH): New function.
68948
68949 2001-01-17  Jim Meyering  <meyering@lucent.com>
68950
68951         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
68952         for autoconf-2.49c.
68953         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
68954
68955 2001-01-16  Jim Meyering  <meyering@lucent.com>
68956
68957         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
68958         From Bruno Haible.
68959
68960 2001-01-14  Jim Meyering  <meyering@lucent.com>
68961
68962         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
68963         foo and bar.  Create conftestdir/ in the script, not in the C code.
68964         Remove directories in the script, not in the C code.
68965         Remove conftestdir{,2} before trying to create the directory.
68966         Make the entire configure script fail if the mkdir fails.
68967
68968 2001-01-14  Jim Meyering  <meyering@lucent.com>
68969
68970         * lib/rename.c: New file.  From Volker Borchert.
68971         Include stdlib.h, string.h or strings.h, and xalloc.h.
68972         Use strip_trailing_slashes rather than open-coding it.
68973
68974 2001-01-03  Paul Eggert  <eggert@twinsun.com>
68975
68976         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
68977
68978 2001-01-03  Jim Meyering  <meyering@lucent.com>
68979
68980         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
68981         of local `inptr' to avoid warning with some system declarations of
68982         iconv.
68983
68984 2001-01-02  Volker Borchert  <bt@teknon.de>
68985
68986         * m4/rename.m4: New file.
68987         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
68988
68989 2001-01-01  Jim Meyering  <meyering@lucent.com>
68990
68991         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
68992         even on systems with utmpx.h.  It's necessary for the declaration of
68993         utmp's ut_user member.  Reported by Andreas Jaeger.
68994
68995         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
68996         available. They are required for the declarations of getgrgid and
68997         getpwuid resp.
68998         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
68999         Reported by Andreas Jaeger.
69000
69001 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
69002
69003         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
69004         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
69005         so `make install' also works in VPATH builds.
69006
69007 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
69008
69009         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
69010         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
69011         can be used in subdirectories.
69012
69013 2000-12-29  Paul Eggert  <eggert@twinsun.com>
69014
69015         * lib/modechange.c: Do not assume that mode_t uses the
69016         traditional octal encoding.  E.g. "chmod 1 FOO" should set
69017         the other-execute bit of FOO even if S_IXOTH != 1.
69018
69019         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
69020         WOTH, XOTH, ALLM): New macros.
69021         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
69022          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
69023         Use them.
69024         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
69025         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
69026         (mode_compile):
69027         No need to use uintmax_t; unsigned long is long enough.
69028         Don't bother to get suffix since we don't use it.
69029
69030 2000-12-26  Jim Meyering  <meyering@lucent.com>
69031
69032         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
69033         better with autoheader.
69034
69035 2000-12-24  Jim Meyering  <meyering@lucent.com>
69036
69037         * lib/hash.c (is_prime): Return explicit boolean values.
69038         (hash_get_first): Return NULL to appease Irix5.6's 89.
69039         Reported by Nelson Beebe.
69040
69041 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
69042
69043         * lib/localcharset.c (locale_charset): Add support for Win32.
69044
69045 2000-12-18  Paul Eggert  <eggert@twinsun.com>
69046
69047         * lib/physmem.h, lib/physmem.c: New files.
69048
69049         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
69050         (noinst_HEADERS): Add physmem.h.
69051
69052         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
69053         't' for compatibility with Solaris 8 sort.
69054
69055 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
69056
69057         * lib/config.charset: Add support for BeOS.
69058
69059 2000-12-17  Jim Meyering  <meyering@lucent.com>
69060
69061         * m4/dos.m4 (jm_AC_DOS): New file and macro.
69062         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
69063
69064 2000-12-16  Jim Meyering  <meyering@lucent.com>
69065
69066         This bug had a serious impact on chown: `chown N:M FILE' (for integer
69067         N and M) would have treated it like `chown N:N FILE'.
69068
69069         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
69070
69071 2000-12-16  Jim Meyering  <meyering@lucent.com>
69072
69073         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
69074         SHELLS_FILE to a file name that's useful on djgpp systems.
69075         Include stdlib.h.
69076         (ADDITIONAL_DEFAULT_SHELLS): Define.
69077         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
69078         Based mostly on a patch from Prashant TR.
69079
69080 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
69081
69082         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
69083         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
69084         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
69085
69086 2000-12-08  Andreas Schwab  <schwab@suse.de>
69087
69088         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
69089         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
69090
69091 2000-12-07  Jim Meyering  <meyering@lucent.com>
69092
69093         * lib/stripslash.c (ISSLASH): Define.
69094         (strip_trailing_slashes): Use ISSLASH rather than comparing against
69095         `/'.
69096         From Prashant TR.
69097
69098         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
69099         (dir_name_r): Declare this function as static.
69100         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
69101         manifest itself on a name containing a mix of slashes and
69102         backslashes.
69103         Make this function work with names starting with a DOS-style
69104         drive letter and colon prefix.
69105         (dir_name): Append `.' if necessary.
69106         Based mostly on patches from Prashant TR and Eli Zaretskii.
69107
69108         * lib/dirname.h (dir_name_r): Remove prototype.
69109
69110 2000-12-06  Paul Eggert  <eggert@twinsun.com>
69111
69112         * m4/off_t-format.m4: Remove this file.
69113         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
69114
69115 2000-12-06  Jim Meyering  <meyering@lucent.com>
69116
69117         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
69118         replacement strtoull, we may well need the replacement strtoul, too.
69119         Check for declarations of strtoul and strtoull.
69120         Check for strtol.  Mainly as a cue to cause automake to include
69121         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
69122         Check for limits.h -- strtol.c needs it.
69123
69124 2000-12-05  Jim Meyering  <meyering@lucent.com>
69125
69126         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
69127
69128 2000-12-04  Jim Meyering  <meyering@lucent.com>
69129
69130         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
69131         Also include memory.h, stdlib.h, unistd.h if appropriate.
69132         Reported by Andreas Jaeger (conflicting declaration of malloc).
69133
69134 2000-12-02  Jim Meyering  <meyering@lucent.com>
69135
69136         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
69137         * m4/jm-macros.m4 (jm_MACROS): require it.
69138
69139 2000-12-02  Jim Meyering  <meyering@lucent.com>
69140
69141         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
69142
69143 2000-12-01  Paul Eggert  <eggert@twinsun.com>
69144
69145         * lib/memrchr.c: Include <config.h> before any system include file.
69146
69147 2000-11-30  Jim Meyering  <meyering@lucent.com>
69148
69149         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
69150
69151 2000-11-30  Jim Meyering  <meyering@lucent.com>
69152
69153         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
69154
69155 2000-11-29  Paul Eggert  <eggert@twinsun.com>
69156
69157         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
69158
69159 2000-11-26  Jim Meyering  <meyering@lucent.com>
69160
69161         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
69162
69163 2000-11-22  Paul Eggert  <eggert@twinsun.com>
69164
69165         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
69166         size of (size_t) -1; it's not portable.
69167
69168 2000-11-17  Jim Meyering  <meyering@lucent.com>
69169
69170         * lib/strstr.c: Update from GNU libc.
69171
69172 2000-11-17  Akim Demaille  <akim@epita.fr>
69173
69174         * lib/obstack.h: Formatting changes.
69175         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
69176         prevent type checking.
69177         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
69178         cast the value to (void *): assigning a `foo *' to a `void *'
69179         variable is valid.
69180         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
69181
69182 2000-11-16  Jim Meyering  <meyering@lucent.com>
69183
69184         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
69185
69186 2000-11-11  Jim Meyering  <meyering@lucent.com>
69187
69188         * lib/error.c: Add a couple #includes, merging from GNU libc version.
69189
69190 2000-11-10  Jim Meyering  <meyering@lucent.com>
69191
69192         * lib/obstack.h: Update from GNU libc.
69193         * lib/obstack.c: Likewise.
69194
69195 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
69196
69197         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
69198
69199 2000-11-06  Paul Eggert  <eggert@twinsun.com>
69200
69201         * lib/getusershell.c (setusershell): Use rewind rather than
69202         fseek/fseeko, to avoid configuration hassles with fseeko.
69203         Don't bother opening SHELLS_FILE if shellstream is NULL;
69204         it's not necessary.
69205
69206 2000-11-05  Jim Meyering  <meyering@lucent.com>
69207
69208         * lib/makepath.h (make_dir): Declare.
69209         * lib/makepath.c (make_dir): Remove `static' attribute.
69210         Tweak a comment.
69211
69212 2000-11-04  Jim Meyering  <meyering@lucent.com>
69213
69214         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
69215
69216 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
69217
69218         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
69219         last one in a bucket, advance to the next bucket.
69220
69221 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
69222
69223         * lib/fnmatch.c: Do not comment out all the code if we are using
69224         the GNU C library, because in some cases we are replacing buggy
69225         code in the GNU C library itself.
69226
69227 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
69228
69229         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
69230         (regex_compile): Catch bogus \(\1\).
69231
69232 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69233
69234         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
69235         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
69236         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
69237
69238 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69239
69240         * lib/error.h, getline.h, modechange.h:
69241         Remove "2000" from Copyright line, as the file hasn't been
69242         changed this year other than in the copyright notice.
69243
69244         * lib/xalloc.h: Add "2000" to Copyright line, as this file
69245         was changed this year.
69246
69247 2000-10-29  Jim Meyering  <meyering@lucent.com>
69248
69249         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
69250         renaming.
69251         * m4/ls-mntd-fs.m4: Likewise
69252
69253 2000-10-29  Jim Meyering  <meyering@lucent.com>
69254
69255         * lib/xstat.in: Fix grammar in comment.
69256
69257 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
69258
69259         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
69260         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
69261         doesn't define __restrict_arr.
69262
69263 2000-10-28  Jim Meyering  <meyering@lucent.com>
69264
69265         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
69266         (jm_PREREQ_MEMCHR): New function.
69267
69268 2000-10-28  Jim Meyering  <meyering@lucent.com>
69269
69270         * lib/memchr.c: Update from libc.
69271         Adjust for portability:
69272         [HAVE_STDLIB_H]: Include stdlib.h.
69273         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
69274         Undef __memchr, too.
69275         [!weak_alias]: Define __memchr to memchr.
69276
69277         * lib/regex.c: Update from libc.
69278         * lib/regex.h: Likewise.
69279         * lib/getopt1.c: Likewise.
69280         * lib/memcmp.c: Likewise.
69281
69282         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
69283         Avoid using fseek, when possible -- it's broken by design.
69284         Patch by Ulrich Drepper.
69285
69286 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
69287
69288         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
69289         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
69290         Giving in to popular pressure to shut up the compiler with casts.
69291
69292 2000-10-26  Jim Meyering  <meyering@lucent.com>
69293
69294         * lib/strftime.c: Update from libc.
69295
69296 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
69297
69298         * regex.c: More `unsigned char' -> `re_char' changes.
69299         Also change several `int' into `re_wchar_t'.
69300         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
69301         (PUSH_FAILURE_POINTER): Don't cast any more.
69302         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
69303         We want GCC to complain, since this piece of code makes
69304         re_match non-reentrant, which *should* be fixed.
69305         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
69306         (EXTEND_BUFFER): Use RETALLOC.
69307         (SET_LIST_BIT): Don't cast.
69308         (re_wchar_t): New type.
69309         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
69310         that those two functions will always properly return.
69311         (IMMEDIATE_QUIT_CHECK): Cast to void.
69312         (analyse_first): Use recursion rather than an explicit stack.
69313         (re_compile_fastmap): Can't fail anymore.
69314         (re_search_2): Don't check re_compile_fastmap for failure.
69315         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
69316         Now also sets the new value (passed in a new argument).
69317         (re_match_2_internal): Use it.
69318         Also, use a new var `reg' of type size_t when looping through regs
69319         rather than reuse the inappropriate `mcnt'.
69320
69321 2000-10-25  Jim Meyering  <meyering@lucent.com>
69322
69323         * lib/obstack.c: Update from libc.
69324
69325 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
69326
69327         * regex.c (regex_compile): Change the way of handling a range from
69328         a char less than 256 to a char not less than 256.
69329
69330 2000-10-24  Andrew Innes  <andrewi@gnu.org>
69331
69332         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
69333         NT-Emacs only.
69334         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
69335         so that re_search functions only quit when callers expect them to.
69336
69337 2000-10-23  Jim Meyering  <meyering@lucent.com>
69338
69339         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
69340         wrong.  That set_locale call must not have any side effects.
69341         From Paul Eggert.
69342
69343 2000-10-22  Jim Meyering  <meyering@lucent.com>
69344
69345         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
69346         [CYCLIC]: Remove now-unused definition.
69347
69348         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
69349         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
69350         Suggestion from Ulrich Drepper.
69351
69352 2000-10-21  Jim Meyering  <meyering@lucent.com>
69353
69354         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
69355         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
69356         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
69357
69358 2000-10-21  Jim Meyering  <meyering@lucent.com>
69359
69360         * lib/dirname.c (memrchr): Declare if necessary.
69361         (dir_name): Remove the restriction that there be no
69362         trailing slashes.  Now, this code skips past them, effectively
69363         ignoring them.
69364         [TEST_DIRNAME] (main): New unit tests.
69365
69366         * lib/memrchr.c: New file from GNU libc.
69367         Undef __memrchr, too.
69368         [!weak_alias]: Define __memrchr to memrchr.
69369         Guard weak_alias use with `#ifdef weak_alias'.
69370
69371 2000-10-21  Jim Meyering  <meyering@lucent.com>
69372
69373         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
69374         (dir_name): Use dir_name_r.
69375         * lib/dirname.h (dir_name_r): Declare it.
69376
69377 2000-10-17  Jim Meyering  <meyering@lucent.com>
69378
69379         * lib/quote.h (PARAMS): Define and use.
69380         Reported by Akim Demaille.
69381
69382         * lib/getopt.c: Update from libc.
69383
69384 2000-10-16  Jim Meyering  <meyering@lucent.com>
69385
69386         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
69387         setlocale.
69388         From Jan Fedak.
69389
69390 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
69391
69392         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
69393
69394 2000-09-25  Jim Meyering  <meyering@lucent.com>
69395
69396         * lib/md5.h (rol): Define (from GnuPG).
69397
69398         * lib/sha.c: Give credit (GnuPG) where due.
69399         (M): Use rol rather than open-coding it.
69400         Add a FIXME comment.
69401
69402 2000-09-21  Jim Meyering  <meyering@lucent.com>
69403
69404         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
69405         Reported by Michael Stone.
69406
69407 2000-09-20  Jim Meyering  <meyering@lucent.com>
69408
69409         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
69410         (noinst_HEADERS): Add sha.h.
69411         Based on code from Scott G. Miller and from GnuPG.
69412
69413 2000-09-18  Jim Meyering  <meyering@lucent.com>
69414
69415         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
69416         LIBS. Otherwise, everyone ends up linking with -lelf for some
69417         configurations.
69418         Reported by Mike Stone.
69419
69420 2000-09-15  Jim Meyering  <meyering@lucent.com>
69421
69422         * lib/regex.c: Update from libc.
69423
69424 2000-09-10  Jim Meyering  <meyering@lucent.com>
69425
69426         * lib/getopt.c (_getopt_internal): Update from glibc.
69427
69428 2000-09-09  Jim Meyering  <meyering@lucent.com>
69429
69430         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
69431         think it should be used as a general replacement for isascii.
69432         * lib/fnmatch.c: Likewise.
69433         * lib/mbswidth.c: Likewise
69434         * lib/regex.c: Likewise.
69435
69436         Don't use atoi.
69437         * lib/userspec.c: Include sys/param.h and limits.h.
69438         Include xstrtol.h.
69439         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69440         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
69441         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
69442         UID, GID.  Check range.
69443
69444 2000-09-06  Jim Meyering  <meyering@lucent.com>
69445
69446         * lib/getopt.c (_getopt_internal): Update from glibc.
69447
69448 2000-08-30  Jim Meyering  <meyering@lucent.com>
69449
69450         * lib/strftime.c: Merge in changes from GNU libc.
69451
69452 2000-08-26  Jim Meyering  <meyering@lucent.com>
69453
69454         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
69455         * m4/fpending.m4: New file.
69456
69457 2000-08-26  Jim Meyering  <meyering@lucent.com>
69458
69459         * lib/closeout.c: Include "__fpending.h".
69460         (close_stdout_status): Return right away if there's nothing to flush.
69461
69462         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
69463         * lib/__fpending.c: New file.
69464         * lib/__fpending.h: New file.
69465
69466 2000-08-20  Jim Meyering  <meyering@lucent.com>
69467
69468         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
69469         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
69470         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
69471
69472 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
69473
69474         Improve fileutils installation on systems where running
69475         programs (like install) can't be unlinked.
69476         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
69477         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
69478
69479 2000-08-07  Paul Eggert  <eggert@twinsun.com>
69480
69481         Standardize on "memory exhausted" instead of "Memory exhausted"
69482         or "virtual memory exhausted".
69483         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
69484         "virtual memory exhausted".
69485         * lib/same.c (same_name): Invoke xalloc_die instead of printing
69486         our own message.
69487         * lib/userspec.c (parse_user_spec): Likewise.
69488         * lib/bumpalloc.h: comment fix
69489         * lib/same.c, userspec.c: Include xalloc.h.
69490
69491         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
69492         not char *const and pointing to a constant array.
69493         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
69494         (xrealloc): Comment fix.
69495
69496         * lib/userspec.c (parse_user_spec):
69497         Don't translate a message until just before returning,
69498         to avoid unnecessary translation.
69499
69500 2000-08-07  Jim Meyering  <meyering@lucent.com>
69501
69502         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
69503         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
69504         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
69505         getgroups.c, gethostname.c, getopt.h, group-member.c,
69506         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
69507         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
69508         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
69509         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
69510         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
69511         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
69512         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
69513         yesno.c: Back out Copyright date changes for each file with no change
69514         this year.  This eases coordination with other programs using the same
69515         source code modules.  From Paul Eggert.
69516
69517 2000-08-06  Paul Eggert  <eggert@twinsun.com>
69518
69519         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
69520         not char, for compatibility with glibc 2.1.3 strftime.c.
69521
69522 2000-08-03  Greg McGary  <greg@mcgary.org>
69523
69524         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
69525         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
69526         (EXTEND_BUFFER): Use them.
69527
69528 2000-08-01  Jim Meyering  <meyering@lucent.com>
69529
69530         * lib/dirname.c (ISSLASH): Define.
69531         (BACKSLASH_IS_PATH_SEPARATOR): Define.
69532         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
69533         both `\' and `/' may be use as path separators.
69534         Based on a patch from Prashant TR.
69535
69536 2000-07-31  Paul Eggert  <eggert@twinsun.com>
69537
69538         * lib/quotearg.c (quotearg_n_options): Don't make the initial
69539         slot vector a constant, since it might get modified.
69540
69541 2000-07-31  Jim Meyering  <meyering@lucent.com>
69542
69543         * lib/xmalloc.c: Use `virtual memory exhausted', not
69544         `Memory exhausted'.
69545         * lib/obstack.c (print_and_abort): Likewise.
69546
69547 2000-07-30  Paul Eggert  <eggert@twinsun.com>
69548
69549         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
69550         buffer, so that the caller can always quote one small
69551         component of a "memory exhausted" message in slot 0.
69552         From a suggestion by Jim Meyering.
69553
69554 2000-07-30  Jim Meyering  <meyering@lucent.com>
69555
69556         * lib/makepath.c (make_path): Quote the other instance, too.
69557
69558         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
69559         (STATIC_BUF_SIZE): Define.
69560         (quotearg_n_options): Use only statically allocated storage when
69561         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
69562         than STATIC_BUF_SIZE.
69563
69564 2000-07-29  Jim Meyering  <meyering@lucent.com>
69565
69566         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
69567         * lib/dirname.c (dir_name): Likewise.
69568
69569         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
69570         `/'.
69571
69572         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
69573         (dir_name): Assert that there are no trailing slashes.
69574
69575 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
69576
69577         * lib/mbswidth.h (mbswidth): Add a flags argument.
69578         (mbswidth): New declaration.
69579         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
69580         * lib/mbswidth.c (mbswidth): Add a flags argument.
69581         (mbsnwidth): New function.
69582
69583 2000-07-24  Jim Meyering  <meyering@lucent.com>
69584
69585         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
69586
69587 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69588
69589         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
69590
69591 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69592
69593         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
69594         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
69595         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
69596         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
69597         invoke multibyte primitives.
69598
69599 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69600
69601         * lib/quotearg.c:
69602         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
69603         so that mbstate_t is always defined.
69604
69605         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
69606         be 1 in at least one GCC installation, and this configuration
69607         error is likely to be common.  Ignoring MB_LEN_MAX hurts
69608         performance on hosts that have mbrtowc but have only unibyte
69609         locales, but I assume these hosts are rare.
69610
69611 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69612
69613         * lib/mbswidth.c (_XOPEN_SOURCE):
69614         Don't define; this causes problems on Solaris 7.
69615         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
69616
69617 2000-07-23  Jim Meyering  <meyering@lucent.com>
69618
69619         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
69620         too: getgrgid, getpwuid, getuid.
69621
69622 2000-07-23  Jim Meyering  <meyering@lucent.com>
69623
69624         * lib/basename.c (base_name): Add an assertion.
69625
69626 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
69627
69628         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
69629         shadow its mbsinit function.
69630
69631 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69632
69633         * lib/mbswidth.h: New file.
69634         * lib/mbswidth.c: New file.
69635         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
69636         (noinst_HEADERS): Add mbswidth.h.
69637
69638 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69639
69640         * lib/config.charset: Add support for FreeBSD. Improve support for
69641         HP-UX and IRIX 6.
69642
69643 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
69644
69645         * m4/mbswidth.m4: New file.
69646         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
69647
69648 2000-07-15  Jim Meyering  <meyering@lucent.com>
69649
69650         * lib/makepath.c: Include quote.h.
69651         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
69652         corresponding argument in a `quote (...)' call.
69653         Give better diagnostics.
69654
69655         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
69656         (noinst_HEADERS): Add quote.h.
69657
69658         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
69659         from tar's src/misc.c.
69660         * lib/quote.h: New file.  Prototypes for same.
69661
69662 2000-07-14  Paul Eggert  <eggert@twinsun.com>
69663
69664         From a suggestion by Bruno Haible.
69665         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
69666         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
69667         to decide whether to define the BeOS workaround macro;
69668         this adjusts to the change to AC_MBSTATE_T.
69669
69670 2000-07-14  Jim Meyering  <meyering@lucent.com>
69671
69672         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
69673         jm_AC_TYPE_UINTMAX_T.
69674
69675 2000-07-13  Paul Eggert  <eggert@twinsun.com>
69676
69677         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
69678
69679         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
69680         quotearg_buffer_restyled): Add support for
69681         clocale_quoting_style.  Undo previous change to
69682         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
69683         and "{RIGHT QUOTATION MARK}" msgids.
69684
69685 2000-07-10  Paul Eggert  <eggert@twinsun.com>
69686
69687         From a suggestion by Bruno Haible.
69688         * m4/mbstate_t.m4 (AC_MBSTATE_T):
69689         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
69690         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
69691         and mbstate_t, to a single-part test that simply defines mbstate_t.
69692         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
69693         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
69694
69695 2000-07-10  Jim Meyering  <meyering@lucent.com>
69696
69697         * m4/strerror_r.m4: Mirror the correction made in autoconf.
69698
69699         * m4/gnu-source.m4: Output to confdefs.h directly.
69700         Suggestion from Akim Demaille.
69701
69702 2000-07-09  Paul Eggert  <eggert@twinsun.com>
69703
69704         The old behavior of quoting `like this' doesn't look good with
69705         newer, ISO-style fonts.  See:
69706         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
69707
69708         Instead, quote "like this" by default.  Let the translator
69709         tailor the locale-specific quoting behavior by providing
69710         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
69711
69712         * lib/quotearg.c (N_): New macro.
69713         (gettext_default): New function.
69714         (quotearg_buffer_restyled): Use
69715         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
69716         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
69717
69718 2000-07-09  Jim Meyering  <meyering@lucent.com>
69719
69720         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
69721         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
69722
69723         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
69724         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
69725
69726 2000-07-09  Jim Meyering  <meyering@lucent.com>
69727
69728         * lib/Most files: Update copyright dates to include 2000.
69729
69730 2000-07-08  Jim Meyering  <meyering@lucent.com>
69731
69732         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
69733         if not defined.
69734         (xgethostname): Remove now-unnecessary #ifdef.
69735         Move declaration of `err' into loop where it's used.
69736
69737 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69738         and Bruno Haible  <haible@clisp.cons.org>
69739
69740         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
69741         only if the test for an object-type mbstate_t fails.  This
69742         prevents us from mistakenly reporting that mbstate_t is a
69743         system object type after we "#define mbstate_t int" to work
69744         around its lack.
69745
69746 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69747         and Bruno Haible  <haible@clisp.cons.org>
69748
69749         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
69750
69751 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69752
69753         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
69754         to strerror_r.
69755         Include <ctype.h> for use of isalpha.
69756
69757 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69758
69759         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
69760         by allocating a larger buffer. Test the gethostname return value for
69761         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
69762         returns an error and ENAMETOOLONG isn't defined.
69763
69764 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69765
69766         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
69767         dimension.
69768
69769 2000-07-04  Jim Meyering  <meyering@lucent.com>
69770
69771         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
69772         of the deprecated AC_CHECKING.
69773
69774 2000-07-04  Jim Meyering  <meyering@lucent.com>
69775
69776         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
69777         Reported by Bruno Haible.
69778
69779 2000-07-04  Jim Meyering  <meyering@lucent.com>
69780
69781         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
69782         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
69783         lacks mbrtowc.
69784
69785 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69786
69787         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
69788         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
69789
69790 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69791         and Bruno Haible  <haible@clisp.cons.org>
69792
69793         * lib/quotearg.c (mbrtowc):
69794         Assign to *pwc, and return 1 only if result is nonzero.
69795         (iswprint): Use ISPRINT when substituting our own mbrtowc.
69796
69797 2000-07-03  Jim Meyering  <meyering@lucent.com>
69798
69799         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
69800
69801 2000-07-03  Jim Meyering  <meyering@lucent.com>
69802
69803         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
69804         This is necessary to get a definition of e.g., UTMP_FILE on
69805         HP-UX 10.20.
69806         From Bob Proulx.
69807
69808 2000-07-02  Jim Meyering  <meyering@lucent.com>
69809
69810         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
69811
69812         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
69813         AC_LIBOBJ(function_name).
69814         * m4/chown.m4: Likewise.
69815         * m4/fnmatch.m4: Likewise.
69816         * m4/ftruncate.m4: Likewise.
69817         * m4/getgroups.m4: Likewise.
69818         * m4/getline.m4: Likewise.
69819         * m4/group-member.m4: Likewise.
69820         * m4/jm-macros.m4: Likewise.
69821         * m4/lstat.m4: Likewise.
69822         * m4/malloc.m4: Likewise.
69823         * m4/memcmp.m4: Likewise.
69824         * m4/nanosleep.m4: Likewise.
69825         * m4/putenv.m4: Likewise.
69826         * m4/realloc.m4: Likewise.
69827         * m4/regex.m4: Likewise.
69828         * m4/stat.m4: Likewise.
69829         * m4/strftime.m4: Likewise.
69830
69831 2000-07-02  Jim Meyering  <meyering@lucent.com>
69832
69833         * lib/quotearg.c (mbstate_t): Don't define here.
69834
69835 2000-07-02  Jim Meyering  <meyering@lucent.com>
69836
69837         * lib/nanosleep.c (SIGCONT): Define if not already defined.
69838
69839 2000-07-01  Jim Meyering  <meyering@lucent.com>
69840
69841         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
69842
69843 2000-07-01  Jim Meyering  <meyering@lucent.com>
69844
69845         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
69846         problem.
69847
69848 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
69849
69850         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
69851         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
69852
69853 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
69854
69855         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
69856         per change in ../m4/ls-mntd-fs.m4.
69857         (read_filesystem_list): Ignore symbolic links.
69858
69859 2000-06-29  Jim Meyering  <meyering@lucent.com>
69860
69861         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
69862         for declaration of strcmp.
69863
69864         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
69865
69866         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
69867         Avoid warning by casting result to `char *' to remove `const'.
69868
69869 2000-06-28  Jim Meyering  <meyering@lucent.com>
69870
69871         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
69872         included by quotearg.c, for which we perform this test.  From
69873         Bruno Haible.
69874
69875 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
69876
69877         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
69878         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
69879         <utmpx.h> exists, put readutmp.o into LIBOBJS.
69880
69881 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
69882
69883         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
69884
69885 2000-06-26  Paul Eggert  <eggert@twinsun.com>
69886
69887         savedir now sets errno on failure and invokes xmalloc to get memory.
69888         Fix a couple of other minor bugs while we're at it.
69889
69890         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
69891         (NAMLEN): Remove macro.
69892         (malloc, realloc): Remove decls.
69893         (stpcpy): Likewise.
69894         ("xalloc.h"): Include.
69895         (NAME_SIZE_DEFAULT): New macro.
69896         (savedir): Use xmalloc / xrealloc to allocate memory.
69897         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
69898         Skip "" directory entries.
69899         Use strlen to calculate directory entry length, since the old method
69900         is rarely used these days and isn't worth supporting.
69901         Don't use a pointer after freeing it.
69902         Check for integer overflow when calculating allocation size.
69903         Use memcpy to copy entries, instead of stpcpy.
69904         Set errno properly when returning NULL.
69905         Check for readdir error.
69906
69907 2000-06-26  Jim Meyering  <meyering@lucent.com>
69908
69909         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
69910
69911 2000-06-25  Jim Meyering  <meyering@lucent.com>
69912
69913         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
69914         Linux header bug when _XOPEN_SOURCE is defined to 500.
69915
69916 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
69917
69918         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
69919         deficiency.
69920
69921 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
69922
69923         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
69924         Include xalloc.h.
69925         Don't include <stdlib.h>.  Don't declare malloc, realloc.
69926
69927 2000-06-24  Jim Meyering  <meyering@lucent.com>
69928
69929         * m4/strerror_r.m4: Revive this file -- to try out an experimental
69930         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
69931         for which strerror does return char*, but which lacks a conveniently
69932         accessible declaration of the function.  If the compile-test says
69933         strerror_r doesn't work, then resort to a `run'-test that works on
69934         BeOS and segfaults on DEC Unix.
69935
69936 2000-06-24  Jim Meyering  <meyering@lucent.com>
69937
69938         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
69939
69940 2000-06-23  Paul Eggert  <eggert@twinsun.com>
69941
69942         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
69943         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
69944
69945 2000-06-23  Paul Eggert  <eggert@twinsun.com>
69946
69947         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
69948         (mbrtowc, mbstate_t): Define substitutes if
69949         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
69950         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
69951         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
69952
69953 2000-06-23  Jim Meyering  <meyering@lucent.com>
69954
69955         * m4/afs.m4: Add missing AC_MSG_RESULT.
69956         Reported by Bruno Haible.
69957
69958         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
69959         Suggestion from Bruno Haible.
69960
69961 2000-06-23  Jim Meyering  <meyering@lucent.com>
69962
69963         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
69964
69965 2000-06-21  Jim Meyering  <meyering@lucent.com>
69966
69967         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
69968
69969 2000-06-21  Jim Meyering  <meyering@lucent.com>
69970
69971         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
69972         (noinst_HEADERS): Add getstr.h.
69973
69974         * lib/getline.c (getstr): Move into a separate file.
69975         * lib/getstr.c (getstr): New file, extracted from getline.c, with
69976         the following changes: new parameter, delim2; both delim[12]
69977         parameters have type `int', not `char'.  The latter would lose
69978         with 8-bit delimiters.
69979         * lib/getstr.h: New file.
69980
69981 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69982
69983         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
69984         than 1024, return a memory chunk of least possible size, instead
69985         of size PATH_MAX + 2. In the loop, increment the size proportionally.
69986         Use free/xmalloc instead of xrealloc to avoid copying for very long
69987         paths.
69988
69989 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69990
69991         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
69992         the empty string.
69993
69994 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69995
69996         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
69997         address, not strdup.  Include <stdlib.h> and don't declare free().
69998
69999 2000-06-19  Jim Meyering  <meyering@lucent.com>
70000
70001         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
70002
70003 2000-06-18  Jim Meyering  <meyering@lucent.com>
70004
70005         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
70006
70007         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
70008         `checking whether...' message to be consistent with that of the
70009         lstat test.
70010
70011 2000-06-18  Jim Meyering  <meyering@lucent.com>
70012
70013         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
70014         Besides, these days every porting target provides a mkdir function.
70015
70016         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
70017         needed. (this snippet comes from src/system.h).
70018
70019 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
70020
70021         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
70022
70023 2000-06-15  Paul Eggert  <eggert@twinsun.com>
70024
70025         * lib/human.c (adjust_value): New function.
70026         (human_readable_inexact): Apply rounding style even when
70027         printing approximate values.
70028
70029 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70030
70031         * lib/human.c (human_readable_inexact): Allow an input block
70032         size that is not a multiple of the output block size, and vice versa.
70033         Reported by Piergiorgio Sartor.
70034
70035 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70036
70037         * lib/getdate.y (get_date): Apply relative times after time
70038         zone indicator, not before.  Reported by Todd A. Jacobs.
70039
70040 2000-06-13  Jim Meyering  <meyering@lucent.com>
70041
70042         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
70043
70044         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
70045
70046 2000-06-12  Paul Eggert  <eggert@twinsun.com>
70047
70048         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
70049
70050 2000-06-12  Jim Meyering  <meyering@lucent.com>
70051
70052         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
70053         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
70054         optional argument.
70055         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
70056         the optional argument, `lib'.
70057
70058 2000-06-08  Jim Meyering  <meyering@lucent.com>
70059
70060         * m4/largefile.m4: Remove file (now that it's part of autoconf).
70061
70062 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70063
70064         Rewrite largefile configuration so that we don't need to run
70065         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
70066         AC_CANONICAL_HOST in configure.in -- jmm]
70067
70068         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
70069         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
70070         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
70071         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
70072         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
70073         All uses changed.
70074         Instead of inspecting the output of getconf, try to compile the
70075         test program without and with the macro definition.
70076         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
70077         for getconf.  Instead, check for the needed flags by compiling
70078         test programs.
70079
70080 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70081
70082         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
70083
70084 2000-06-04  Jim Meyering  <meyering@lucent.com>
70085
70086         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
70087         SunOS 4.1.4 for which gid_t is an unsigned type.
70088
70089 2000-06-03  Jim Meyering  <meyering@lucent.com>
70090
70091         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
70092         now that autoconf requires that.
70093
70094         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
70095         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
70096         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
70097
70098 2000-06-03  Jim Meyering  <meyering@lucent.com>
70099
70100         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
70101
70102 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70103
70104         * m4/glibc21.m4: New file.
70105         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
70106
70107 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70108
70109         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
70110         newer, don't install charset.alias.
70111         * lib/config.charset: Change the Linux/glibc rules so they become empty
70112         on glibc-2.1 or newer.
70113
70114 2000-06-02  Jim Meyering  <meyering@lucent.com>
70115
70116         * lib/mountlist.c: Back out last change.  Instead, do this...
70117         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
70118         me_dummy member using the same `ignore'-testing code.
70119         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
70120         fs_type strings.
70121         From Mark D. Roth.
70122
70123 2000-05-29  Jim Meyering  <meyering@lucent.com>
70124
70125         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
70126         mounts with the `ignore' attribute.  Based on a patch from
70127         Mark D. Roth.
70128
70129 2000-05-28  Jim Meyering  <meyering@lucent.com>
70130
70131         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
70132         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70133         * m4/stat.m4: Likewise.
70134         * m4/lstat.m4: Likewise.
70135         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
70136
70137         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
70138         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
70139
70140 2000-05-26  Jim Meyering  <meyering@lucent.com>
70141
70142         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
70143
70144 2000-05-24  Jim Meyering  <meyering@lucent.com>
70145
70146         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
70147         autoconf requires that.
70148         * m4/lib-check.m4: Likewise.
70149         * m4/jm-macros.m4: Likewise.
70150         * m4/strftime.m4: Likewise.
70151
70152         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
70153         AC_CHECK_DECLS, now that autoconf requires that.
70154
70155 2000-05-22  Jim Meyering  <meyering@lucent.com>
70156
70157         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70158         * m4/lstat.m4: Likewise.
70159
70160 2000-05-22  Jim Meyering  <meyering@lucent.com>
70161
70162         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
70163
70164 2000-05-20  Jim Meyering  <meyering@lucent.com>
70165
70166         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
70167         (jm_PREREQ): Use it.
70168
70169 2000-05-18  Jim Meyering  <meyering@lucent.com>
70170
70171         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
70172         back, too, since it may have been modified by allocate_entry.
70173         (hash_delete): Rewrite to use neither the assignment operator
70174         nor the comma operator in an if-expression.
70175
70176 2000-05-15  Paul Eggert  <eggert@twinsun.com>
70177
70178         * lib/closeout.c:
70179         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
70180         Remove; no longer needed.
70181         "quotearg.h": Add include.
70182         (file_name): Do not bother to explicitly initialize to NULL; it's less
70183         efficient on some hosts.
70184         (close_stdout_status): Remove test as to whether stdout was already
70185         closed; it breaks for the case "echo x | sort >&-".
70186         Quote file name colons.
70187         Do not assume that _("write error") lacks format strings.
70188
70189 2000-05-15  Jim Meyering  <meyering@lucent.com>
70190
70191         * lib/version-etc.c (version_etc_copyright): Update the copyright
70192         string used in all --version output.
70193
70194 2000-05-14  Jim Meyering  <meyering@lucent.com>
70195
70196         * lib/closeout.c (close_stdout_set_file_name): New function.
70197         (close_stdout_status): Use new file-scoped global.
70198         Return right away if fstat says the stdout file descriptor is invalid.
70199         * lib/closeout.h (close_stdout_set_file_name): Declare.
70200
70201 2000-05-10  Jim Meyering  <meyering@lucent.com>
70202
70203         * lib/closeout.c [default_exit_status]: New file-scoped variable.
70204         (close_stdout_set_status): New function.
70205         * lib/closeout.h (close_stdout_set_status): Declare.
70206
70207 2000-05-09  Jim Meyering  <meyering@lucent.com>
70208
70209         * m4/gettext.m4: Rename this...
70210         * m4/libintl.m4: ...to this.
70211
70212 2000-05-08  Jim Meyering  <meyering@lucent.com>
70213
70214         * lib/long-options.c: Don't include closeout.h.
70215         (parse_long_options): Don't call close_stdout for --version.
70216
70217 2000-05-06  Paul Eggert  <eggert@twinsun.com>
70218
70219         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
70220         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
70221         2.1.3 bug.  This avoids a clash when files like regex.c define
70222         _GNU_SOURCE.
70223
70224 2000-05-06  Jim Meyering  <meyering@lucent.com>
70225
70226         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
70227         (AC_REPLACE_FUNCS): Add strnlen.
70228
70229         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
70230         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
70231
70232         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
70233         AC_SEARCH_LIBS call for nanosleep.
70234         (LIB_NANOSLEEP): Set and AC_SUBST.
70235
70236 2000-05-06  Jim Meyering  <meyering@lucent.com>
70237
70238         * lib/strnlen.c: Undefine __strnlen and strnlen.
70239         [!weak_alias]: Define __strnlen to strnlen.
70240
70241         * lib/atexit.c: New file, from libiberty.
70242
70243 2000-05-06  Jim Meyering  <meyering@lucent.com>
70244
70245         * lib/closeout.c (close_stdout_status): Also check for errors on the
70246         stderr stream.
70247
70248 2000-05-05  Jim Meyering  <meyering@lucent.com>
70249
70250         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
70251         AC_SEARCH_LIBS call for clock_gettime.
70252         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
70253
70254         * m4/search-libs.m4: Update from autoconf.
70255
70256         su doesn't work on Solaris 2.6.
70257         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
70258         <shadow.h>.  Reported by Dragos Harabor.
70259
70260 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
70261
70262         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
70263         memcpy instead of xmalloc, xrealloc, path_concat.
70264         (locale_charset): Treat empty environment variables as absent.
70265         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
70266
70267 2000-05-04  Jim Meyering  <meyering@lucent.com>
70268
70269         * lib/getopt.c: Update from glibc.
70270         * lib/obstack.c: Likewise.
70271         * lib/obstack.h: Likewise.
70272         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
70273         file
70274
70275         * lib/regex.h: Likewise.
70276         * lib/strndup.c: Likewise.
70277         * lib/strnlen.c: New file, from glibc.
70278
70279 2000-05-03  Jim Meyering  <meyering@lucent.com>
70280
70281         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
70282
70283 2000-05-02  Paul Eggert  <eggert@twinsun.com>
70284
70285         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
70286         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
70287         compile-time test, rather than inspecting host and OS, to
70288         decide whether to define _LARGEFILE_SOURCE.
70289
70290 2000-05-01  Jim Meyering  <meyering@lucent.com>
70291
70292         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
70293
70294         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
70295         Based on a patch from Bruno Haible.
70296
70297 2000-05-01  Jim Meyering  <meyering@lucent.com>
70298
70299         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
70300
70301 2000-04-29  Jim Meyering  <meyering@lucent.com>
70302
70303         * lib/path-concat.c: Declare strdup only if it's not defined.
70304         * lib/canon-host.c: Likewise.
70305
70306 2000-04-28  Jim Meyering  <meyering@lucent.com>
70307
70308         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
70309         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
70310         is included first, then limits.h is included by locale.h by libintl.h.
70311         From John David Anglin.
70312
70313 2000-04-25  Jim Meyering  <meyering@lucent.com>
70314
70315         * lib/makepath.c (S_IRWXUGO): Define.
70316         (make_path): Always perform explicit chmod if MODE specifies any
70317         of the `special' permission bits.  Prompted by a bug report against
70318         install from Mate Wierdl and Joost van Baal.
70319
70320 2000-04-18  Jim Meyering  <meyering@lucent.com>
70321
70322         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
70323         (jm_PREREQ): Use it.
70324
70325 2000-04-18  Jim Meyering  <meyering@lucent.com>
70326
70327         * lib/README: New file.
70328
70329         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
70330         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
70331
70332 2000-04-17  Jim Meyering  <meyering@lucent.com>
70333
70334         Get it right :-)
70335         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
70336         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
70337         Suggestion from Akim Demaille.
70338
70339 2000-04-17  Jim Meyering  <meyering@lucent.com>
70340
70341         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
70342         the definition of it to rpl_strftime also defined-away the system's
70343         declaration.
70344
70345 2000-04-15  Jim Meyering  <meyering@lucent.com>
70346
70347         Use `C' to denote so-called `contiguous' files, the same way
70348         that tar does.
70349         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
70350         (ftypelet): Use S_ISCTG.
70351         From Michael Deutschmann.
70352
70353 2000-04-14  Jim Meyering  <meyering@lucent.com>
70354
70355         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
70356         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
70357         clobbered.
70358
70359 2000-04-14  Jim Meyering  <meyering@lucent.com>
70360
70361         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
70362
70363 2000-04-13  Jim Meyering  <meyering@lucent.com>
70364
70365         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
70366         AH_VERBATIM to insert required #ifndef into config.h.in.
70367         Suggestion from Akim Demaille.
70368
70369 2000-04-12  Jim Meyering  <meyering@lucent.com>
70370
70371         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
70372         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
70373         Christian Krackowizer.
70374
70375         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
70376         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
70377         (AC_SYS_LARGEFILE): Require.
70378         (AM_C_PROTOTYPES): Require.
70379
70380 2000-04-08  Jim Meyering  <meyering@lucent.com>
70381
70382         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
70383         names don't conflict.  Reported by Eli Zaretskii.
70384
70385 2000-04-07  Jim Meyering  <meyering@lucent.com>
70386
70387         * lib/putenv.c: Move inclusion of errno.h so it follows that of
70388         sys/types.h, to work around system header problems on AIX 3.2.5.
70389         From Bruno Haible.
70390
70391 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
70392
70393         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
70394         bug.  Deal with the different error behavior of Irix iconv.
70395
70396 2000-04-05  Paul Eggert  <eggert@twinsun.com>
70397
70398         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
70399         IRIX if the installer said otherwise.
70400
70401 2000-04-05  Jim Meyering  <meyering@lucent.com>
70402
70403         Portability tweaks required for ultrix4.3.
70404         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
70405         (jm_CHECK_DECLS): Add getutent to the list of functions.
70406         (_jm_DECL_HEADERS): Add utmpx.h.
70407         From John David Anglin.
70408
70409         * m4/strftime.m4: Back out the 2000-04-02 change.
70410         Instead of that change, simply undefine putenv in the test program.
70411
70412 2000-04-05  Jim Meyering  <meyering@lucent.com>
70413
70414         Portability tweaks required for ultrix4.3.
70415         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
70416         getutent.
70417         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
70418         * lib/canon-host.c: Declare strdup.
70419         * lib/path-concat.c: Likewise.
70420         From John David Anglin.
70421
70422 2000-04-04  Jim Meyering  <meyering@lucent.com>
70423
70424         Be more DOS 8.3-friendly.
70425         * lib/ref-add.sin: Renamed from ref-add.sed.in.
70426         * lib/ref-del.sin: Renamed from ref-del.sed.in.
70427         * lib/Makefile.am: Reflect renaming.
70428         Reported by Eli Zaretskii.
70429
70430         Use a temporary file name that won't clash with `charset.alias'
70431         in the DOS 8.3 name space.
70432         * lib/Makefile.am (charset_tmp): Define.
70433         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
70434         (uninstall-local): Likewise.
70435         Reported by Eli Zaretskii.
70436
70437 2000-04-03  Jim Meyering  <meyering@lucent.com>
70438
70439         * m4/gettext.m4: Fix typo in comment.
70440
70441         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
70442         textutils/configure.in).  Suggestion from Paul Eggert.
70443         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
70444
70445 2000-04-02  Paul Eggert  <eggert@twinsun.com>
70446
70447         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
70448         variable in the shell rather than using putenv, which isn't
70449         portable.  This avoids the configure-time inter-test dependency
70450         on the potentially-renamed putenv function.
70451
70452 2000-03-30  Paul Eggert  <eggert@twinsun.com>
70453
70454         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
70455         before checking struct stat.st_blksize, so that
70456         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
70457
70458 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70459
70460         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
70461         since strftime.c uses HAVE_STRFTIME to decide whether to use
70462         the underlying strftime.
70463
70464 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70465
70466         * lib/time/strftime.c (my_strftime): Make sure we call the system
70467         strftime, not ourselves, when invoking the underlying strftime.
70468
70469 2000-03-24  Jim Meyering  <meyering@lucent.com>
70470
70471         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
70472         (charset_alias): Define.
70473         (install-exec-local): Factor out common code.
70474         (uninstall-local): Split lines longer than 80.
70475         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
70476         (SUFFIXES): Define.
70477         (.sed.in.sed): New rule.  Don't redirect directly to $@.
70478         (CLEANFILES): Add ref-add.sed and ref-del.sed.
70479
70480 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
70481
70482         * lib/config.charset: Output a line containing "Packages using this
70483         file".
70484         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
70485         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
70486         ref-del.sed): New rules.
70487
70488 2000-03-17  Jim Meyering  <meyering@lucent.com>
70489
70490         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
70491         Otherwise, include <strings.h>
70492
70493 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
70494
70495         * lib/unicodeio.c (utf8_wctomb): New function.
70496         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
70497         format instead of in UCS-4 with platform dependent endianness.
70498
70499 2000-03-10  Jim Meyering  <meyering@lucent.com>
70500
70501         * m4/lib-check.m4: Look for getspnam in -lgen, too.
70502         From Marco Franzen.
70503
70504 2000-03-07  Paul Eggert  <eggert@twinsun.com>
70505
70506         * lib/savedir.c (savedir): Work even if directory size is
70507         negative; this can happen with some screwy NFS configurations.
70508
70509 2000-03-06  Jim Meyering  <meyering@lucent.com>
70510
70511         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
70512         if it's NULL (because we ran out of memory).  From Bruno Haible.
70513
70514 2000-03-05  Jim Meyering  <meyering@lucent.com>
70515
70516         * lib/localcharset.c ("path-concat.h"): Include.
70517         (get_charset_aliases): Use path_concat instead of ANSI string
70518         concatenation.
70519
70520         * lib/unicodeio.h (PARAMS): Define.
70521         Use it to guard prototype.
70522
70523 2000-03-04  Jim Meyering  <meyering@lucent.com>
70524
70525         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
70526         for lib/localcharset.c.
70527
70528 2000-03-04  Jim Meyering  <meyering@lucent.com>
70529
70530         * lib/Makefile.am (install-exec-local): Create $(libdir) before
70531         installing into it.
70532         (uninstall-local): Uncomment this rule so `make distcheck' works
70533         once again.
70534
70535         * lib/unicodeio.c (<errno.h>): Include it.
70536         (errno): Declare if not defined.
70537
70538         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
70539
70540         * lib/config.charset: New version, incorporating remarks from a linux
70541         i18n mailing list.  From Bruno Haible.
70542
70543 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
70544
70545         * m4/codeset.m4: New file.
70546         * m4/iconv.m4: New file.
70547         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
70548
70549 2000-03-03  Jim Meyering  <meyering@lucent.com>
70550
70551         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
70552
70553 2000-03-02  Jim Meyering  <meyering@lucent.com>
70554
70555         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
70556         the messages come out on separate lines.
70557
70558         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
70559         rather than jm_CHECK_DECLARATIONS.
70560         * m4/decl.m4: Remove now-unused file.
70561
70562         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
70563         geteuid.
70564
70565 2000-03-02  Jim Meyering  <meyering@lucent.com>
70566
70567         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
70568
70569 2000-03-01  Jim Meyering  <meyering@lucent.com>
70570
70571         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
70572         * lib/unicodeio.c: Likewise.
70573
70574 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
70575
70576         * lib/config.charset: New file.
70577         * lib/localcharset.c: New file.
70578         * lib/unicodeio.h, lib/unicodeio.c: New files.
70579         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
70580         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
70581         (noinst_HEADERS): Add unicodeio.h.
70582         (all-local, install-exec-local, charset.alias): New targets.
70583
70584 2000-02-28  Paul Eggert  <eggert@twinsun.com>
70585
70586         * lib/quotearg.c (ALERT_CHAR): New macro.
70587         (quotearg_buffer_restyled): Use it.
70588
70589 2000-02-27  Jim Meyering  <meyering@lucent.com>
70590
70591         * m4/check-decl.m4: Add getenv to the list.
70592
70593 2000-02-27  Jim Meyering  <meyering@lucent.com>
70594
70595         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
70596         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
70597
70598         * lib/backupfile.c: Guard inclusion of stdlib.h with
70599         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
70600         Declare malloc if needed.
70601
70602         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
70603         `#ifndef HAVE_DECL..'
70604         now that autoconf always defines the HAVE_DECL_ symbols.
70605         * lib/human.c: Likewise.
70606         * lib/same.c: Likewise.
70607         * lib/strtoumax.c: Likewise.
70608
70609         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
70610         declaration check was not run.
70611         * lib/hash.c: Likewise.
70612         * lib/human.c: Likewise.
70613         * lib/same.c: Likewise.
70614         * lib/strtoumax.c: Likewise.
70615
70616         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
70617         `.', then first look up the entire `.'-containing string as a login
70618         name.
70619
70620 2000-02-23  Jim Meyering  <meyering@lucent.com>
70621
70622         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
70623         in place of my hack.
70624
70625 2000-02-18  Paul Eggert  <eggert@twinsun.com>
70626
70627         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
70628         (textint): New typedef.
70629         (parser_control): Member year changed from int to textint.
70630         All uses changed.
70631         (YYSTYPE): Removed; replaced by %union with int and textint members.
70632         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
70633         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
70634         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
70635         (tSNUMBER, tUNUMBER): Now of type <textintval>.
70636         (date, number, to_year): Use width of number in digits, not its value,
70637         to determine whether it's a 2-digit year, or a 2-digit time.
70638         (yylex): Store number of digits of numeric tokens.
70639         Reported by John Kendall.
70640
70641         (parser_control): Changed from struct parser_control to typedef (for
70642         consistency).  All uses changed.
70643
70644         (tID): Removed; not used.
70645         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
70646
70647 2000-02-14  Paul Eggert  <eggert@twinsun.com>
70648
70649         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
70650         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
70651
70652 2000-02-12  Jim Meyering  <meyering@lucent.com>
70653
70654         * lib/userspec.c (ISDIGIT): Define it.
70655         (isdigit): Remove definition.
70656         (is_number): Use ISDIGIT, not isdigit.
70657         <libintl.h>: Include.
70658         (_ and N_): Define.
70659         (parse_user_spec): Mark translatable strings.
70660
70661 2000-02-10  Jim Meyering  <meyering@lucent.com>
70662
70663         With these changes, nanosleep.[ch] are finally enough like the other
70664         lib/* replacement files to compile on a few more losing systems.
70665
70666         * lib/nanosleep.h: Don't include config.h.
70667         Remove prototype from declaration of nanosleep.
70668         (PARAMS): Remove now-unneeded definition.
70669         * lib/nanosleep.c: #undef nanosleep.
70670         (rpl_nanosleep): Rename from nanosleep.
70671
70672 2000-02-10  Jim Meyering  <meyering@lucent.com>
70673
70674         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
70675         gnu_nanosleep to rpl_nanosleep.
70676
70677 2000-02-09  Jim Meyering  <meyering@lucent.com>
70678
70679         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
70680         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
70681
70682 2000-02-08  Akim Demaille  <akim@epita.fr>
70683
70684         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
70685         `[' and `]' and remove uses of `changequote'.
70686         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
70687         (AC_SYS_LARGEFILE): Likewise.
70688         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
70689         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
70690         of changequote.
70691         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
70692         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
70693         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
70694         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
70695
70696 2000-02-05  Jim Meyering  <meyering@lucent.com>
70697
70698         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
70699         Remove explicit use of AC_HEADER_TIME.  It is required by
70700         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
70701         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
70702         in autoconf whereby the expansion of the latter ended up preceding
70703         the expansion of its prerequisite, AC_HEADER_TIME.
70704         Reported by Volker Borchert.
70705
70706 2000-02-03  Jim Meyering  <meyering@lucent.com>
70707
70708         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
70709
70710 2000-02-03  Jim Meyering  <meyering@lucent.com>
70711
70712         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
70713         rather than with `#if HAVE_UTMPNAME'.
70714
70715 2000-02-02  Jim Meyering  <meyering@lucent.com>
70716
70717         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
70718         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
70719         Reported by Eli Zaretskii.
70720
70721 2000-02-01  Jim Meyering  <meyering@lucent.com>
70722
70723         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
70724
70725 2000-01-31  Jim Meyering  <meyering@lucent.com>
70726
70727         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
70728         functions.  Add the time.h and sys/time.h headers along with the
70729         AC_REQUIRE'ment of AC_HEADER_TIME.
70730
70731 2000-01-31  Jim Meyering  <meyering@lucent.com>
70732
70733         * lib/nanosleep.h (nanosleep): Guard declaration with
70734         `#if ! HAVE_DECL_NANOSLEEP'.
70735         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
70736         the declaration in that vendor's sys/timers.h.
70737         Reported by Christian Krackowizer.
70738
70739         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
70740         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
70741         (ISPRINT): Likewise.
70742         Reported by Tom Tromey.
70743
70744 2000-01-30  Jim Meyering  <meyering@lucent.com>
70745
70746         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
70747
70748         * m4/prereq.m4 (utmp_includes): Define.
70749         Check for ut_user and ut_name members in both struct utmpx
70750         and struct utmp.
70751
70752 2000-01-30  Jim Meyering  <meyering@lucent.com>
70753
70754         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
70755         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
70756         header files where only utmpx.ut_user is declared.
70757
70758         * lib/readutmp.h (UT_USER): Define.
70759
70760 2000-01-29  Jim Meyering  <meyering@lucent.com>
70761
70762         * m4/lib-check.m4: New file containing library-related checks from
70763         fileutils and sh-utils (textutils had none).
70764
70765 2000-01-28  Jim Meyering  <meyering@lucent.com>
70766
70767         * m4/perl.m4: Change format of warning message to look more like that
70768         from the missing script.  Suggestion from François Pinard.
70769
70770 2000-01-25  Jim Meyering  <meyering@lucent.com>
70771
70772         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
70773         well as time.h in the compile check.
70774         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
70775         Fix typo in cross-compiling case: s/yes/no/.
70776
70777 2000-01-23  Jim Meyering  <meyering@lucent.com>
70778
70779         * m4/jm-macros.m4: Move df-related tests here from
70780         fileutils/configure.in
70781
70782         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
70783         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
70784
70785         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
70786         s/space/ac_fsusage_space/.
70787         (jm_FILE_SYSTEM_USAGE): Take two parameters.
70788
70789         * m4/ftruncate.m4: New file (derived from part of
70790         fileutils/configure.in).
70791         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
70792         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
70793
70794         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
70795         AC_SUBST these here, rather than just in sh-util/configure.in, so
70796         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
70797         all the same.
70798         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
70799         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
70800         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
70801         (AC_SUBST(POW_LIBM)): Likewise.
70802         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
70803
70804 2000-01-23  Jim Meyering  <meyering@lucent.com>
70805
70806         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
70807         obstack.c.
70808
70809 2000-01-22  Jim Meyering  <meyering@lucent.com>
70810
70811         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
70812
70813         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
70814
70815         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
70816         configure.in
70817         (AC_CHECK_HEADERS): Likewise for sh-utils.
70818         (AC_CHECK_HEADERS): Likewise for textutils.
70819         Merge the three lists of headers.
70820
70821         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
70822         from fileutils' configure.in.
70823
70824         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
70825         code. Moved tests into their own function (_jm_DECL_HEADERS) in
70826         check-decl.m4.
70827
70828         * m4/check-decl.m4: Use #if rather than #ifdef.
70829         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
70830         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
70831         (_jm_DECL_HEADERS): Define new function.
70832         (jm_CHECK_DECLARATIONS): Require it.
70833
70834 2000-01-22  Jim Meyering  <meyering@lucent.com>
70835
70836         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
70837         [! HAVE_DECL_STRTOULL]: Declare strtoull.
70838         Required for some AIX systems.  Reported by Christian Krackowizer.
70839         [TESTING] (main): New function.
70840
70841         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
70842         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
70843         letters.
70844
70845         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
70846         iswprint.
70847
70848         * lib/strverscmp.c (ISDIGIT): Define.
70849         (strverscmp): Use ISDIGIT, not isdigit.
70850
70851 2000-01-19  Jim Meyering  <meyering@lucent.com>
70852
70853         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
70854         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
70855         defines `struct timespec' in <sys/time.h>
70856
70857         * m4/c-bs-a.m4: Remove uses of changequote altogether.
70858         Thanks to Akim for explaining.
70859
70860 2000-01-17  Paul Eggert  <eggert@twinsun.com>
70861
70862         * lib/nanosleep.c (nanosleep):
70863         Don't use SA_INTERRUPT to decide whether to call sigaction, as
70864         POSIX.1 doesn't require SA_INTERRUPT and some systems
70865         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
70866         it's been part of POSIX.1 since day 1 (in 1988).
70867
70868 2000-01-17  Jim Meyering  <meyering@lucent.com>
70869
70870         * lib/interlock: Remove unused file.  Reported by François Pinard.
70871
70872 2000-01-16  Paul Eggert  <eggert@twinsun.com>
70873
70874         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
70875         alert, backslash, formfeed, and vertical tab unnecessarily in
70876         shell quoting style.
70877
70878 2000-01-16  Jim Meyering  <meyering@lucent.com>
70879
70880         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
70881         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
70882         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
70883         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
70884
70885 2000-01-16  Jim Meyering  <meyering@lucent.com>
70886
70887         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
70888         because the latter didn't work.
70889
70890 2000-01-15  Jim Meyering  <meyering@lucent.com>
70891
70892         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
70893         (AC_REPLACE_FUNCS): Add memcpy and memset.
70894         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
70895         Add strpbrk.
70896         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
70897
70898 2000-01-12  Jim Meyering  <meyering@lucent.com>
70899
70900         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
70901         (jm_PREREQ): Use it.
70902         (jm_PREREQ_READUTMP): New macro.
70903         (jm_PREREQ): Use it.
70904
70905 2000-01-11  Paul Eggert  <eggert@twinsun.com>
70906
70907         Quote multibyte characters correctly.
70908         * m4/c-bs-a.m4: New file.
70909         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
70910         (jm_PREREQ): Use it.
70911
70912 2000-01-11  Paul Eggert  <eggert@twinsun.com>
70913
70914         * m4/uintmax_t.m4: Port to autoconf 2.13.
70915
70916 2000-01-08  Jim Meyering  <meyering@ascend.com>
70917
70918         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
70919         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
70920
70921 2000-01-04  Jim Meyering  <meyering@ascend.com>
70922
70923         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
70924         jm_STRUCT_DIRENT_D_TYPE.
70925         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
70926         jm_STRUCT_DIRENT_D_INO.
70927         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
70928         jm_STRUCT_UTIMBUF.
70929         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
70930         renamings.
70931         * m4/utime.m4: Likewise.
70932
70933         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
70934         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
70935
70936 2000-01-03  Paul Eggert  <eggert@twinsun.com>
70937
70938         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
70939         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
70940
70941 2000-01-02  Jim Meyering  <meyering@ascend.com>
70942
70943         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
70944         remember if this is necessary.
70945
70946 1999-12-26  Jim Meyering  <meyering@ascend.com>
70947
70948         * m4/jm-macros.m4: Use it here.
70949         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
70950
70951 1999-12-23  Jim Meyering  <meyering@ascend.com>
70952
70953         * m4/jm-macros.m4: Check for clock_gettime (moved from
70954         fileutils/configure.in)
70955         Check for gettimeofday.
70956
70957 1999-12-20  Jim Meyering  <meyering@ascend.com>
70958
70959         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
70960         autoconf-2.14a-1999-12-20.
70961
70962 1999-12-19  Jim Meyering  <meyering@ascend.com>
70963
70964         * m4/lstat-slash.m4: New file.
70965         * m4/jm-macros.m4: Use the new macro:
70966         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70967
70968 1999-12-07  Jim Meyering  <meyering@ascend.com>
70969
70970         * m4/perl.m4: Require that File::Compare be available, too.
70971         Too many systems seem to lack it.
70972
70973         * m4/strftime.m4: Add checks for most of the cpp macros tested in
70974         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
70975
70976 1999-11-18  Paul Eggert  <eggert@twinsun.com>
70977
70978         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
70979         problem with the QNX 4.25 shell, which doesn't propagate exit
70980         status of failed commands inside shell assignments.
70981
70982 1999-11-17  Jim Meyering  <meyering@ascend.com>
70983
70984         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
70985
70986 1999-11-07  Jim Meyering  <meyering@ascend.com>
70987
70988         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
70989
70990 1999-11-06  Jim Meyering  <meyering@ascend.com>
70991
70992         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
70993         * m4/jm-macros.m4 (jm_MACROS): Use it here.
70994
70995 1999-11-05  Jim Meyering  <meyering@ascend.com>
70996
70997         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
70998         configure.in of textutils, fileutils, and sh-utils into this one
70999         (shared between those packages) file.
71000         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
71001         AC_STRUCT_ST_BLKSIZE.
71002
71003 1999-11-03  Jim Meyering  <meyering@ascend.com>
71004
71005         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
71006         of AC_CHECK_TYPE checks includes unistd.h.
71007         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
71008         Suggestion from Akim Demaille.
71009
71010 1999-10-30  Jim Meyering  <meyering@ascend.com>
71011
71012         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
71013         m4-quoted string.
71014         * m4/ls-mntd-fs.m4: Likewise.
71015         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
71016         * m4/jm-winsz1.m4: Likewise.
71017
71018         * m4/const.m4: Remove file, since the fix made it into the experimental
71019         version of autoconf.
71020         * m4/mktime.m4: Likewise.
71021
71022         * m4/check-type.m4: Remove file, now that the latest version of
71023         AC_CHECK_TYPE takes a third arg to specify additional #includes.
71024
71025         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
71026         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
71027         AC_CHECK_TYPE.
71028
71029 1999-10-04  Jim Meyering  <meyering@ascend.com>
71030
71031         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
71032
71033 1999-09-22  Paul Eggert  <eggert@twinsun.com>
71034
71035         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
71036         2.95.1 bug with HP-UX 10.20.
71037
71038 1999-09-17  Jim Meyering  <meyering@ascend.com>
71039
71040         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
71041         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
71042         due to missing strdup (against sh-utils-2.0).
71043
71044 1999-08-29  Jim Meyering  <meyering@ascend.com>
71045
71046         * m4/jm-macros.m4: Require jm_BISON.
71047         * m4/bison.m4: New file.
71048
71049 1999-08-17  Paul Eggert  <eggert@twinsun.com>
71050
71051         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
71052         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
71053
71054 1999-08-05  Jim Meyering  <meyering@ascend.com>
71055
71056         * m4/getline.m4: Rename test file from conftestdata to conftest.data
71057         to avoid conflicts with `conftest' on 8+3 filesystems.
71058         Suggestion from Eli Zaretskii.
71059
71060 1999-08-04  Jim Meyering  <meyering@ascend.com>
71061
71062         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
71063         fileutils and sh-utils (textutils's getline test was inadequate).
71064         (AM_FUNC_GETLINE): Run this test.
71065         (AC_CHECK_FUNCS): Check for getdelim.
71066         Reported by Bob Proulx.
71067
71068 1999-08-02  Jim Meyering  <meyering@ascend.com>
71069
71070         * m4/jm-macros.m4: Add a comment.
71071
71072 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71073
71074         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
71075         <inttypes.h> defines strtoumax as a macro (and not as a
71076         function).
71077
71078 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71079
71080         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
71081         that we can shift, multiply and divide unsigned long long
71082         values; Ultrix cc can't do it.
71083
71084 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71085
71086         * m4/mktime.m4: New file, which is a preview of what should appear
71087         in the next public autoconf release.
71088
71089 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71090
71091         * m4/lfs.m4: Remove this file.
71092         * m4/largefile.m4: New file.  It contains the old contents of
71093         lfs.m4, except that all names with prefix AC_LFS have been
71094         changed to use the prefix AC_SYS_LARGEFILE instead, to be
71095         compatible with future autoconf versions.  Also, some minor m4
71096         quoting problems have been fixed.
71097
71098 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71099
71100         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
71101         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
71102         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
71103         and simplify the shell code.
71104
71105 1999-08-01  Jim Meyering  <meyering@ascend.com>
71106
71107         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
71108         m4.
71109
71110 1999-07-20  Jim Meyering  <meyering@ascend.com>
71111
71112         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
71113
71114 1999-07-15  Jim Meyering  <meyering@ascend.com>
71115
71116         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
71117
71118 1999-05-22  Jim Meyering  <meyering@ascend.com>
71119
71120         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
71121
71122 1999-05-20  Jim Meyering  <meyering@ascend.com>
71123
71124         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
71125         Add a colon after each `then' in case $4 is empty.
71126
71127 1999-05-16  Jim Meyering  <meyering@ascend.com>
71128
71129         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
71130
71131 1999-05-10  Jim Meyering  <meyering@ascend.com>
71132
71133         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
71134
71135         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
71136         AC_FUNC_MKTIME.
71137
71138 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
71139
71140         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
71141
71142 1999-05-04  Paul Eggert  <eggert@twinsun.com>
71143
71144         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
71145         not CPPFLAGS, so that linking works correctly in IRIX.
71146
71147 1999-04-30  Paul Eggert  <eggert@twinsun.com>
71148
71149         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
71150
71151 1999-04-20  Paul Eggert  <eggert@twinsun.com>
71152
71153         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
71154         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
71155         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
71156         jm_AC_TYPE_UNSIGNED_LONG_LONG.
71157         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
71158
71159         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
71160
71161 1999-04-20  Jim Meyering  <meyering@ascend.com>
71162
71163         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
71164         AC_REPLACE xstroull if necessary.  From Paul Eggert.
71165         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
71166
71167 1999-04-18  Jim Meyering  <meyering@ascend.com>
71168
71169         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
71170         * m4/jm-macros.m4: Use it.
71171
71172 1999-04-06  Jim Meyering  <meyering@ascend.com>
71173
71174         * m4/strftime.m4: Remove test for %f.
71175
71176 1999-03-29  Jim Meyering  <meyering@ascend.com>
71177
71178         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
71179         superset of the AC_TYPE_* checks in the textutils, fileutils,
71180         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
71181         AC_TYPE_PID_T.
71182
71183 1999-03-28  Jim Meyering  <meyering@ascend.com>
71184
71185         * m4/jm-macros.m4: Define GNU_PACKAGE here.
71186         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
71187         replaced e.g., in the *.sh files of the sh-utils.
71188
71189 1999-03-20  Jim Meyering  <meyering@ascend.com>
71190
71191         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
71192         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
71193         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
71194
71195 1999-03-19  Jim Meyering  <meyering@ascend.com>
71196
71197         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
71198
71199 1999-03-12  Jim Meyering  <meyering@ascend.com>
71200
71201         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
71202
71203 1999-03-07  Jim Meyering  <meyering@ascend.com>
71204
71205         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
71206         declared.
71207
71208 1999-02-17  Jim Meyering  <meyering@ascend.com>
71209
71210         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
71211         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
71212
71213 1999-02-07  Jim Meyering  <meyering@ascend.com>
71214
71215         * m4/group-member.m4: New file -- extracted from sh-utils'
71216         configure.in.
71217
71218         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
71219         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
71220
71221 1999-02-06  Jim Meyering  <meyering@ascend.com>
71222
71223         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
71224         * m4/fnmatch.m4: Likewise.
71225         * m4/getgroups.m4: Likewise.
71226         * m4/lstat.m4: Likewise.
71227         * m4/malloc.m4: Likewise.
71228         * m4/putenv.m4: Likewise.
71229         * m4/realloc.m4: Likewise.
71230         * m4/regex.m4: Likewise.
71231         * m4/stat.m4: Likewise.
71232         * m4/strftime.m4: Likewise.
71233         Suggestion from Alain Magloire.
71234
71235         * m4/chown.m4: Use `.$ac_objext', not `.o'.
71236         * m4/fnmatch.m4: Likewise.
71237         * m4/getgroups.m4: Likewise.
71238         * m4/getline.m4: Likewise.
71239         * m4/lstat.m4: Likewise.
71240         * m4/malloc.m4: Likewise.
71241         * m4/memcmp.m4: Likewise.
71242         * m4/putenv.m4: Likewise.
71243         * m4/realloc.m4: Likewise.
71244         * m4/regex.m4: Likewise.
71245         * m4/stat.m4: Likewise.
71246         * m4/strftime.m4: Likewise.
71247         Suggestion from Alain Magloire.
71248
71249         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
71250         an argument.
71251
71252         * m4/regex.m4: Add a run-time Test for proper operation of
71253         re_compile_pattern.
71254
71255 1999-01-31  Jim Meyering  <meyering@ascend.com>
71256
71257         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
71258
71259 1999-01-30  Jim Meyering  <meyering@ascend.com>
71260
71261         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
71262
71263         * m4/jm-mktime.m4: Make this a wrapper around the official
71264         AM_FUNC_MKTIME rather than my private copy, now that the official one
71265         is up to date.
71266         * m4/mktime.m4: Remove file.
71267
71268         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
71269         * m4/uptime.m4: Likewise.
71270         * m4/uintmax_t.m4: Likewise.
71271
71272 1999-01-28  Jim Meyering  <meyering@ascend.com>
71273
71274         * m4/jm-macros.m4: Use jm_AFS.
71275         * m4/afs.m4: New file (from fileutils' configure.in).
71276
71277         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
71278         * m4/chown.m4: Likewise.
71279         * m4/d-ino.m4: Likewise.
71280         * m4/d-type.m4: Likewise.
71281         * m4/fnmatch.m4: Likewise.
71282         * m4/getgroups.m4: Likewise.
71283         * m4/gettext.m4: Likewise.
71284         * m4/jm-mktime.m4: Likewise.
71285         * m4/jm-winsz2.m4: Likewise.
71286         * m4/lcmessage.m4: Likewise.
71287         * m4/ls-mntd-fs.m4: Likewise.
71288         * m4/malloc.m4: Likewise.
71289         * m4/memcmp.m4: Likewise.
71290         * m4/putenv.m4: Likewise.
71291         * m4/realloc.m4: Likewise.
71292         * m4/st_mtim.m4: Likewise.
71293         * m4/strftime.m4: Likewise.
71294
71295 1999-01-16  Jim Meyering  <meyering@ascend.com>
71296
71297         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
71298         (ARGMATCH_DIE_DECL): Define.
71299
71300 1999-01-12  Jim Meyering  <meyering@ascend.com>
71301
71302         * m4/Makefile.am.in: Rewrite to avoid using fmt.
71303         Reported by Lars Hecking.
71304
71305 1999-01-10  Jim Meyering  <meyering@ascend.com>
71306
71307         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
71308         gross kludge.
71309         * m4/inttypes_h.m4: Likewise.
71310         * m4/lstat.m4: Likewise.
71311         * m4/malloc.m4: Likewise.
71312         * m4/readdir.m4: Likewise.
71313         * m4/realloc.m4: Likewise.
71314         * m4/st_dm_mode.m4: Likewise.
71315         * m4/stat.m4: Likewise.
71316         * m4/utimbuf.m4: Likewise.
71317         * m4/utimes.m4: Likewise.
71318
71319         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
71320         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
71321         comments in config.h.in are meaningful.
71322
71323         * m4/jm-macros.m4: Require autoconf-2.13 here.
71324
71325         * m4/regex.m4: By default, don't use the included regex.c on systems
71326         with glibc 2.  Suggestion from Uli Drepper.
71327
71328 1999-01-02  Jim Meyering  <meyering@ascend.com>
71329
71330         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
71331
71332 1998-12-18  Jim Meyering  <meyering@ascend.com>
71333
71334         * m4/Makefile.am.in (Makefile.am): Simplify rule.
71335         Based on a suggestion from Lars Hecking.
71336
71337 1998-11-16  Paul Eggert  <eggert@twinsun.com>
71338
71339         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
71340
71341 1998-11-16  Jim Meyering  <meyering@ascend.com>
71342
71343         * m4/lfs.m4: Double-quote the `uname...` expression.
71344
71345 1998-11-14  Jim Meyering  <meyering@ascend.com>
71346
71347         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
71348         * m4/stat.m4: Likewise.
71349
71350 1998-11-03  Jim Meyering  <meyering@ascend.com>
71351
71352         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
71353         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
71354
71355 1998-10-18  Jim Meyering  <meyering@ascend.com>
71356
71357         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
71358
71359 1998-10-17  Jim Meyering  <meyering@ascend.com>
71360
71361         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
71362         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
71363         calls for those previously hard-coded headers.  Instead, take a new
71364         parameter.
71365         (jm_CHECK_DECLARATIONS): Reflect interface change.
71366         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
71367         (jm_CHECK_DECL_LOCALTIME_R): New macro.
71368
71369         * m4/mktime.m4: Test for spring-forward gap before long-running test.
71370
71371 1998-10-14  Jim Meyering  <meyering@ascend.com>
71372
71373         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
71374         instead of "TZ=America/Vancouver".  From Paul Eggert.
71375
71376 1998-10-11  Jim Meyering  <meyering@ascend.com>
71377
71378         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
71379         This adds a test for a recently added compatibility fix for mktime.c.
71380         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
71381
71382 1998-09-27  Jim Meyering  <meyering@ascend.com>
71383
71384         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
71385
71386         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
71387         ../configure.in, including a change from Gordon Matzigkeit to allow
71388         cross-compiling for the Hurd.
71389
71390         * m4/glibc.m4: New file/macro to test for the GNU C Library
71391         versions 1 and 2.  From Gordon Matzigkeit.
71392         Indent.
71393
71394 1998-09-21  Jim Meyering  <meyering@ascend.com>
71395
71396         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
71397
71398 1998-08-18  Paul Eggert  <eggert@twinsun.com>
71399
71400         Port nanosecond-resolution times to UnixWare 2.1.2 and
71401         pedantic Solaris 2.6.
71402
71403         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
71404         AC_STRUCT_ST_MTIM.
71405         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
71406         Generate name of ns member, instead of just 1 or undef.
71407         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
71408
71409 1998-08-15  Jim Meyering  <meyering@ascend.com>
71410
71411         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
71412         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
71413         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
71414         instead of jm_TYPE_SSIZE_T.
71415
71416 1998-08-12  Jim Meyering  <meyering@ascend.com>
71417
71418         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
71419
71420 1998-08-02  Jim Meyering  <meyering@ascend.com>
71421
71422         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
71423         in acconfig.h manually.
71424
71425 1998-07-31  Paul Eggert  <eggert@twinsun.com>
71426
71427         * m4/st_mtim.m4: New file.
71428
71429 1998-07-28  Jim Meyering  <meyering@ascend.com>
71430
71431         * m4/utimes.m4: Undef stat.
71432
71433 1998-07-25  Jim Meyering  <meyering@ascend.com>
71434
71435         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
71436         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
71437
71438 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
71439
71440         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
71441         uid and gid actually remain unchanged.
71442
71443 1998-07-07  Jim Meyering  <meyering@ascend.com>
71444
71445         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
71446
71447 1998-07-04  Jim Meyering  <meyering@ascend.com>
71448
71449         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
71450         to prove that this macro can be used in packages without regex.c.
71451
71452 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
71453
71454         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
71455         is to be used.
71456
71457 1998-07-03  Jim Meyering  <meyering@ascend.com>
71458
71459         * m4/gettext.m4: Add -lintl if it's found to be necessary.
71460
71461         * m4/gettext.m4: New file -- from gettext-0.10.35.
71462         * m4/lcmessage.m4: Likewise.
71463         * m4/progtest.m4: Likewise.
71464
71465         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
71466         * m4/jm-macros.m4: Require the new macro.
71467
71468 1998-06-29  Jim Meyering  <meyering@ascend.com>
71469
71470         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
71471         for the definition of NGROUPS (used in a system header included
71472         by sys/mount.h).
71473
71474 1998-06-28  Jim Meyering  <meyering@ascend.com>
71475
71476         * m4/ls-mntd-fs.m4: New file.
71477         * m4/fstypename.m4: New file.
71478
71479         * m4/jm-macros.m4: Require the new macro.
71480         * m4/jm-glibc-io.m4: New file.
71481
71482 1998-05-19  Jim Meyering  <meyering@ascend.com>
71483
71484         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
71485         * m4/lchown.m4: New file.
71486
71487         * m4/Makefile.am.in: New file.
71488         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
71489
71490 1998-05-14  Jim Meyering  <meyering@ascend.com>
71491
71492         * m4/Makefile.am (EXTRA_DIST): Add them.
71493         * m4/jm-macros.m4: New file.
71494         * m4/utimbuf.m4: New file.
71495
71496 1998-05-12  Jim Meyering  <meyering@ascend.com>
71497
71498         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
71499
71500 1998-05-11  Jim Meyering  <meyering@ascend.com>
71501
71502         * m4/isc-posix.m4: New file.
71503
71504 1998-05-10  Jim Meyering  <meyering@ascend.com>
71505
71506         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
71507
71508 1998-05-09  Jim Meyering  <meyering@ascend.com>
71509
71510         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
71511         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
71512         with automake.
71513
71514         * m4/ssize_t.m4: New file.
71515         * m4/mktime.m4: Remove file -- the new automake has this now.
71516
71517 1998-04-26  Jim Meyering  <meyering@ascend.com>
71518
71519         * m4/assert.m4: New file.
71520         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
71521
71522 1998-04-05  Jim Meyering  <meyering@ascend.com>
71523
71524         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
71525         (jm_PREREQ): Use it here.
71526
71527 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
71528
71529         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
71530         in acconfig.h.
71531
71532 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
71533
71534         * m4/prereq.m4: New file.
71535         * m4/error.m4: New file.
71536         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
71537
71538 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
71539
71540         * m4/getline.m4: Don't set am_cv_func_working_getline before the
71541         cache-check for the same variable -- that defeated the purpose of
71542         the test; the test program was never run.  This was a problem only
71543         on systems with losing getline functions -- HP-UX 10.20 is one.
71544         Reported by Bjorn Helgaas.
71545
71546 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
71547
71548         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
71549
71550 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
71551
71552         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
71553
71554         * m4/const.m4: New file.  Use an initializer in this declaration
71555         typedef int charset[2]; const charset x;
71556         Reported by Bob Glickstein.
71557
71558 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
71559
71560         * m4/chown.m4: Fix reversed types on -1 args to chown.
71561         From Kaveh Ghazi.
71562
71563 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
71564
71565         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
71566         Add lseek and memchr.
71567
71568         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
71569         T.E.Dickey <dickey@clark.net> said that some older preprocessors
71570         have a 20-character limit on names.
71571
71572 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
71573
71574         * m4/inttypes_h.m4: New file.
71575         * m4/uintmax_t.m4: New file.
71576         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
71577
71578
71579         -----
71580
71581         Local Variables:
71582         coding: utf-8
71583         End:
71584
71585         Copyright (C) 1997-2010 Free Software Foundation, Inc.
71586
71587         Copying and distribution of this file, with or without
71588         modification, are permitted provided the copyright notice
71589         and this notice are preserved.