memmem: Fix autoconf test.
[pspp] / ChangeLog
1 2010-11-20  Bruno Haible  <bruno@clisp.org>
2
3         memmem: Fix autoconf test.
4         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
5
6 2010-11-20  Bruno Haible  <bruno@clisp.org>
7
8         Port to uClibc.
9         * lib/relocatable.c (find_shared_library_fullname): Treat uClibc like
10         glibc.
11         * lib/strerror_r.c: Likewise.
12         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
15         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16         * tests/test-sigaction.c (handler, main): Likewise.
17         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18         Treat uClibc like a non-glibc platform.
19         * lib/propername.c (proper_name_utf8): Likewise.
20         * lib/spawn.in.h: Likewise.
21         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
22         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23         mem_cd_iconveh_internal): Likewise.
24         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
25         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26         strstr, strcasestr): Likewise.
27         * lib/unicodeio.c (unicode_to_mb): Likewise.
28         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
31         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
32         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
33         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
34         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
35         Likewise.
36         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
37         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
38         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
39         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
42         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
43         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
44         * tests/test-getopt.h (OPTIND_MIN): Likewise.
45         * tests/test-striconveha.c (main): Likewise.
46         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
47         * doc/posix-functions/getline.texi: Likewise.
48         Reported by Mike Frysinger <vapier@gentoo.org>.
49
50 2010-11-20  Bruno Haible  <bruno@clisp.org>
51
52         nproc: Fix condition.
53         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
54         HAVE_PTHREAD_AFFINITY_NP.
55
56 2010-11-20  Bruno Haible  <bruno@clisp.org>
57
58         Fix a comment.
59         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
60
61 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
62
63         ftoastr: don't assume snprintf
64         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
65         Implement a subset of snprintf here, by using sprintf safely.
66         * modules/ftoastr (Depends-on): Remove snprintf.
67
68 2010-11-19  Jim Meyering  <meyering@redhat.com>
69
70         test-rename.h: fix compilation failure
71         * tests/test-rename.h (test_rename): Add omitted "}".
72
73 2010-11-17  Jim Meyering  <meyering@redhat.com>
74
75         maint.mk: add a URL discussing the no-@acronym policy
76         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
77
78 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
79
80         ftoastr: depend on snprintf, improve comments
81         * lib/ftoastr.c: Also mention Loitsch's draft.
82         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
83         needed in the current implementation, but it might simplify
84         speeding up the code later.
85         * modules/ftoastr: Depend on snprintf; this improves portability.
86         Suggested by Bruno Haible in the same email.
87
88         ftoastr: port to hosts lacking strtof and strtold
89         Problem reported by Bruno Haible in
90         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
91         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
92         environment and strtold (and presumably strtof) are not available.
93         * modules/ftoastr (Files): Add m4/c-strtod.m4.
94         (configure.ac): Require gl_C99_STRTOLD.
95
96 2010-11-18  Bruno Haible  <bruno@clisp.org>
97
98         c-strtold: Avoid link error on AIX 7.
99         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
100         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
101         (gl_C_STRTOLD): Test whether strtold_l exists.
102         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
103
104 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
105
106         intprops: new macro INT_BITS_STRLEN_BOUND
107         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
108         ftoastr.h.  This exposes an internal of intprops.h that was formerly
109         not exposed.  Also, it uses a slightly tighter bound than before;
110         though this makes no practical difference, we might as well be as
111         tight as we easily can.
112
113         ftoastr: new module, for lossless conversion of floats to short strings
114         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
115         * modules/ftoastr: New files.
116
117 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
118
119         bootstrap: port to Solaris sed
120         * build-aux/bootstrap (get_version): Port to Solaris sed.
121         See Ralf Wildenhues's note in
122         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
123
124 2010-11-14  Jim Meyering  <meyering@redhat.com>
125
126         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
127         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
128         and move definition closer to sole use.
129
130 2010-11-13  Jim Meyering  <meyering@redhat.com>
131
132         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
133         Now we require at least autoconf-2.59, which means the work-around
134         is no longer needed.
135         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
136         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
137         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
138         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
139         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
140
141 2010-11-13  Bruno Haible  <bruno@clisp.org>
142
143         rename, renameat: Avoid test failures at NFS mounted locations.
144         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
145         functions.
146         (test_rename): Use assert_nonexistent.
147         * tests/test-rename.c: Include <dirent.h>.
148         * tests/test-renameat.c: Likewise.
149         Reported by Gary V. Vaughan <gary@gnu.org>.
150
151         rename, renameat: Document Linux bug with NFS
152         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
153         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
154         * doc/posix-functions/renameat.texi: Likewise.
155         Suggested by Eric Blake.
156
157 2010-11-13  Bruno Haible  <bruno@clisp.org>
158
159         rename test: Add comments.
160         * tests/test-rename.h (test_rename): Add structure and comments.
161
162 2010-11-13  Eric Blake  <eblake@redhat.com>
163
164         maintainer-makefile: cover a few more files
165         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
166         scripts generated within C files, for libvirt.
167
168 2010-11-13  Bruno Haible  <bruno@clisp.org>
169
170         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
171         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
172         character, return the number of bytes that belong together, not always
173         1.
174         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
175         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
176         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
177         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
178         number of bytes of an invalid character.
179         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
180         (main): Invoke it.
181         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
182         results.
183         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
184         malformed byte sequences.
185         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
186         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
187         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
188         Reported by Ben Pfaff and Paolo Bonzini.
189
190 2010-11-13  Bruno Haible  <bruno@clisp.org>
191
192         openat: Work around glibc bug with fchownat() and empty file names.
193         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
194         (gl_FUNC_FCHOWNAT): Invoke it.
195         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
196         * doc/posix-functions/fchownat.texi: Document the glibc bug.
197         Reported by Gary V. Vaughan <gary@gnu.org>.
198
199 2010-11-13  Bruno Haible  <bruno@clisp.org>
200
201         openat: Ensure autoconf macro ordering.
202         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
203         gl_USE_SYSTEM_EXTENSIONS.
204         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
205
206 2010-11-13  Bruno Haible  <bruno@clisp.org>
207
208         Update comments.
209         * lib/unistr/u8-check.c: Update file name in comments.
210         * lib/unistr/u8-mblen.c: Likewise.
211         * lib/unistr/u8-prev.c: Likewise.
212         * lib/unistr/u8-strmblen.c: Likewise.
213         * lib/unistr/u8-strmbtouc.c: Likewise.
214
215 2010-11-13  Jim Meyering  <meyering@redhat.com>
216
217         tests: avoid test failure on Solaris 10 due to lack of PATH export
218         * tests/test-update-copyright.sh: Don't forget to export PATH.
219
220         init.sh: ensure that IFS is defined, just in case...
221         * tests/init.sh (setup_): Ensure that IFS is defined,
222         so that saving and restoring it works as expected.  This
223         appears to be useful at least for an old version of dash
224         from a long time ago (RH 6).  See here for details:
225         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
226
227         maint.mk: tighten "test a == b" check
228         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
229         test to files that contain something like #!/bin/sh.
230         Without this, coreutils would get two false positives in
231         the comments of C source files.
232
233 2010-11-12  Eric Blake  <eblake@redhat.com>
234
235         bootstrap: fix typo in previous attempt
236         * build-aux/bootstrap (buildreq): Correct the grouping.
237         Reported by Paul Eggert.
238
239         maintainer-makefile: prohibit test x == x
240         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
241         Based on a report by Matthias Bolte.
242
243         bootstrap: allow FreeBSD gzip
244         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
245         which has no '.' and goes to stderr.
246         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
247         Reported by Matthias Bolte.
248
249         maintainer-makefile: check for i18n setup
250         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
251         will likely work.
252
253 2010-11-12  Bruno Haible  <bruno@clisp.org>
254
255         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
256         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
257         * lib/nanosleep.c (nanosleep): Likewise.
258
259 2010-11-11  Bruno Haible  <bruno@clisp.org>
260
261         fcntl-h: Fix for use of C++ on glibc systems.
262         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
263         also on glibc systems in C++ mode.
264         Reported by Gary V. Vaughan <gary@gnu.org>.
265
266 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
267
268         mknod: avoid false failure with dash
269         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
270
271 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
272
273         unlink: Fix "is it should" typo in diagnostic.
274         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
275         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
276
277 2010-11-11  Bruno Haible  <bruno@clisp.org>
278
279         Tests for module 'strerror_r-posix'.
280         * modules/strerror_r-posix-tests: New file.
281         * tests/test-strerror_r.c: New file.
282         * tests/test-string-c++.cc: Check the signature of strerror_r.
283
284         New module 'strerror_r-posix'.
285         * lib/string.in.h (strerror_r): New declaration.
286         * lib/strerror_r.c: New file.
287         * m4/strerror_r.m4: New file.
288         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
289         of strerror_r.
290         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
291         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
292         * modules/strerror_r-posix: New file.
293         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
294         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
295         * doc/posix-functions/strerror_r.texi: Mention the new module and the
296         portability problems.
297
298 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
299
300         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
301         line is also considered for output. Quoted function name in shell
302         command, so temporary files for functions like MyClass::operator()
303         are removed correctly without errors.
304
305 2010-11-09  Bruno Haible  <bruno@clisp.org>
306
307         * doc/posix-functions/strerror.texi: List more failing platforms.
308
309         * doc/posix-functions/strerror.texi: Add a comment.
310
311 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
312
313         fdopendir: fix bug on MacOS X when low on file descriptors
314
315         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
316         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
317         All callers changed.
318         (fdopendir): Invoke save_cwd at the top level, not after using
319         multiple dup() calls to use up file descriptors.  Then retry
320         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
321         less than the maximum number of open file descriptors, because
322         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
323         on Mac OS X 10.6.4 for tar 1.24
324         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
325         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
326         and for tar 1.25
327         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
328
329 2010-11-07  Bruno Haible  <bruno@clisp.org>
330
331         vasnprintf: Support I flag on glibc systems.
332         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
333         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
334         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
335         snprintf function.
336         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
337         glibc systems.
338         * tests/test-vasnprintf-posix3.c: New file.
339         * modules/vasnprintf-posix-tests (Files): Add it.
340         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
341
342 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
343
344         [html] Fix copy/paste bug: Use unique name for compiler warnings.
345         * MODULES.html.sh: For compiler warnings, use name
346         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
347
348 2010-11-05  Eric Blake  <eblake@redhat.com>
349
350         ceil, floor: avoid spurious failure with icc
351         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
352         [denormals-as-zero] when optimizing without -mieee-fp option.
353         * tests/test-floorf2.c (floorf_reference): Likewise.
354         * tests/test-ceilf1.c (dummy): New function.
355         (main): Use it to outsmart icc's optimization.
356         * tests/test-floorf1.c (dummy, main): Likewise.
357
358         tests: require working signbit
359         * modules/ceilf-tests (Depends-on): Add signbit.
360         * modules/ceill-tests (Depends-on): Likewise.
361         * modules/floorf-tests (Depends-on): Likewise.
362         * modules/floorl-tests (Depends-on): Likewise.
363         * modules/round-tests (Depends-on): Likewise.
364         * modules/roundf-tests (Depends-on): Likewise.
365         * modules/roundl-tests (Depends-on): Likewise.
366         * modules/trunc-tests (Depends-on): Likewise.
367         * modules/truncf-tests (Depends-on): Likewise.
368         * modules/truncl-tests (Depends-on): Likewise.
369
370         strtod: work around icc bug
371         * lib/strtod.c (minus_zero): Define to working value.
372         (strtod): Use it to avoid icc bug.
373
374         copysign: enhance tests
375         * modules/copysign-tests (Files): Add minus-zero.h.
376         * tests/test-copysign.c (main): Also test zeros.
377
378 2010-11-04  Eric Blake  <eblake@redhat.com>
379
380         ceil, floor, round, trunc: enhance tests of -0
381         * tests/test-ceilf1.c (main): Ensure correct sign of result.
382         * tests/test-ceill.c (main): Likewise.
383         * tests/test-floorf1.c (main): Likewise.
384         * tests/test-floorl.c (main): Likewise.
385         * tests/test-round1.c (main): Likewise.
386         * tests/test-roundf1.c (main): Likewise.
387         * tests/test-roundl.c (main): Likewise.
388         * tests/test-trunc1.c (main): Likewise.
389         * tests/test-truncf1.c (main): Likewise.
390         * tests/test-truncl.c (main): Likewise.
391
392 2010-11-04  Eric Blake  <eblake@redhat.com>
393
394         frexp, tests: work around ICC bug with -zero
395         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
396         works with more compilers.
397         * tests/minus-zero.h: New file.
398         * modules/ceilf-tests (Files): Include it.
399         * modules/ceill-tests (Files): Likewise.
400         * modules/floorf-tests (Files): Likewise.
401         * modules/floorl-tests (Files): Likewise.
402         * modules/frexp-nolibm-tests (Files): Likewise.
403         * modules/frexp-tests (Files): Likewise.
404         * modules/frexpl-nolibm-tests (Files): Likewise.
405         * modules/frexpl-tests (Files): Likewise.
406         * modules/isnan-tests (Files): Likewise.
407         * modules/isnand-nolibm-tests (Files): Likewise.
408         * modules/isnand-tests (Files): Likewise.
409         * modules/isnanf-nolibm-tests (Files): Likewise.
410         * modules/isnanf-tests (Files): Likewise.
411         * modules/isnanl-nolibm-tests (Files): Likewise.
412         * modules/isnanl-tests (Files): Likewise.
413         * modules/round-tests (Files): Likewise.
414         * modules/roundf-tests (Files): Likewise.
415         * modules/roundl-tests (Files): Likewise.
416         * modules/ldexpl-tests (Files): Likewise.
417         * modules/signbit-tests (Files): Likewise.
418         * modules/snprintf-posix-tests (Files): Likewise.
419         * modules/sprintf-posix-tests (Files): Likewise.
420         * modules/strtod-tests (Files): Likewise.
421         * modules/trunc-tests (Files): Likewise.
422         * modules/truncf-tests (Files): Likewise.
423         * modules/truncl-tests (Files): Likewise.
424         * modules/vsnprintf-posix-tests (Files): Likewise.
425         * modules/vsprintf-posix-tests (Files): Likewise.
426         * modules/vasnprintf-posix-tests (Files): Likewise.
427         * modules/vasprintf-posix-tests (Files): Likewise.
428         * tests/test-ceilf1.c (main): Use it.
429         * tests/test-ceill.c (main): Likewise.
430         * tests/test-floorf1.c (main): Likewise.
431         * tests/test-floorl.c (main): Likewise.
432         * tests/test-frexp.c (main): Likewise.
433         * tests/test-frexpl.c (main): Likewise.
434         * tests/test-isnan.c (main): Likewise.
435         * tests/test-isnand.h (main): Likewise.
436         * tests/test-isnanf.h (main): Likewise.
437         * tests/test-isnanl.h (main): Likewise.
438         * tests/test-ldexpl.c (main): Likewise.
439         * tests/test-round.c (main): Likewise.
440         * tests/test-roundf.c (main): Likewise.
441         * tests/test-roundl.c (main): Likewise.
442         * tests/test-signbit.c (test_signbitf, test_signbitd)
443         (test_signbitl): Likewise.
444         * tests/test-snprintf-posix.h (test_function): Likewise.
445         * tests/test-sprintf-posix.h (test_function): Likewise.
446         * tests/test-strtod.c (main): Likewise.
447         * tests/test-trunc1.c (main): Likewise.
448         * tests/test-truncf1.c (main): Likewise.
449         * tests/test-truncl.c (main): Likewise.
450
451         isnanl: work around icc bug
452         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
453
454 2010-11-03  Eric Blake  <eblake@redhat.com>
455
456         tests: fix compiler warnings
457         * tests/test-getopt.h (test_getopt): Fix condition.
458         * tests/test-getopt_long.h (test_getopt_long): Likewise.
459         * tests/test-pipe2.c (main): Likewise.
460         * tests/test-quotearg-simple.c (main): Avoid icc warning.
461
462         utimens: fix broken m4 test
463         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
464
465 2010-10-28  Bruno Haible  <bruno@clisp.org>
466
467         posix_spawn*, getdtablesize: Relax license.
468         * modules/posix_spawn (License): Change to LGPLv2+.
469         * modules/posix_spawnp (License): Likewise.
470         * modules/posix_spawn-internal (License): Likewise.
471         * modules/posix_spawnattr_init (License): Likewise.
472         * modules/posix_spawnattr_getflags (License): Likewise.
473         * modules/posix_spawnattr_setflags (License): Likewise.
474         * modules/posix_spawnattr_getpgroup (License): Likewise.
475         * modules/posix_spawnattr_setpgroup (License): Likewise.
476         * modules/posix_spawnattr_getschedparam (License): Likewise.
477         * modules/posix_spawnattr_setschedparam (License): Likewise.
478         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
479         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
480         * modules/posix_spawnattr_getsigdefault (License): Likewise.
481         * modules/posix_spawnattr_setsigdefault (License): Likewise.
482         * modules/posix_spawnattr_getsigmask (License): Likewise.
483         * modules/posix_spawnattr_setsigmask (License): Likewise.
484         * modules/posix_spawnattr_destroy (License): Likewise.
485         * modules/posix_spawn_file_actions_init (License): Likewise.
486         * modules/posix_spawn_file_actions_addclose (License): Likewise.
487         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
488         * modules/posix_spawn_file_actions_addopen (License): Likewise.
489         * modules/posix_spawn_file_actions_destroy (License): Likewise.
490         * modules/getdtablesize (License): Likewise.
491         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
492
493 2010-10-26  Bruno Haible  <bruno@clisp.org>
494
495         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
496         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
497         Cygwin and mingw.
498         Suggested by Eric Blake.
499
500 2010-10-26  Bruno Haible  <bruno@clisp.org>
501
502         stdio: Work around compilation error due to renameat() on Solaris 10.
503         * lib/stdio.in.h: Include <unistd.h> on Solaris.
504         * lib/renameat.c: Don't include <unistd.h> here.
505         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
506         Reported by Paul Eggert and Eric Blake.
507
508 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
509
510         renameat: port to Solaris 10, which declares renameat in unistd.h
511
512         * lib/renameat.c: Include unistd.h before stdio.h, because
513         Solaris 10 declares renameat in unistd.h.  Problem encountered
514         when building GNU tar 1.24 on Solaris 10.
515
516 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
517
518         fdopendir: fix C89 compilation
519         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
520         compilers.
521
522 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
523
524         inttostr: simplify by removing unnecessary redundancy
525         * lib/anytostr.c: Don't include verify.h.
526         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
527         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
528         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
529         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
530         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
531         Likewise.
532         * modules/inttostr (Depends-on): Remove 'verify'.
533
534 2010-10-23  Bruno Haible  <bruno@clisp.org>
535
536         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
537         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
538         Reported by Eric Blake.
539
540 2010-10-23  Bruno Haible  <bruno@clisp.org>
541
542         Tests: Fix LOCALE_JA on MirBSD 10.
543         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
544         to an UTF-8 locale.
545         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
546         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
547         Reported by Eric Blake.
548
549 2010-10-21  Bruno Haible  <bruno@clisp.org>
550
551         nl_langinfo test: Avoid test failure on NetBSD 5.
552         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
553         Reported by Eric Blake.
554
555 2010-10-21  Eric Blake  <eblake@redhat.com>
556
557         c-stack: work around libsigsegv 2.8 bug
558         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
559         overflow on at least PowerPC64.
560
561 2010-10-17  Bruno Haible  <bruno@clisp.org>
562
563         userspec: Drop redundant file.
564         * modules/userspec (Files): Remove lib/inttostr.h.
565
566 2010-10-17  Bruno Haible  <bruno@clisp.org>
567
568         nl_langinfo tests: Silence some warnings.
569         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
570         Reported by Jim Meyering.
571
572 2010-10-17  Bruno Haible  <bruno@clisp.org>
573
574         Make use of GCC's attribute __alloc_size__.
575         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
576         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
577         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
578         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
579         __alloc_size__.
580         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
581         Suggested by Jim Meyering.
582
583 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
584
585         bootstrap: anchor .gitignore entries.
586         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
587         with...
588         (insert_vc_ignore): ... this new function, which prepends `/' to
589         all .gitignore entries before passing them to
590         insert_sorted_if_absent.
591
592 2010-10-16  Bruno Haible  <bruno@clisp.org>
593
594         nextafter: Fix configure check.
595         * modules/nextafter (configure.ac): Correct expected prototype.
596
597 2010-10-16  Bruno Haible  <bruno@clisp.org>
598
599         termios: Update documentation.
600         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
601
602 2010-10-16  Bruno Haible  <bruno@clisp.org>
603
604         tests: Make them compile with TinyCC.
605         * tests/test-strstr.c (main): Remove parentheses around array
606         initializer.
607
608 2010-10-15  Eric Blake  <eblake@redhat.com>
609
610         ignore-value: make header idempotent
611         * lib/ignore-value.h: Add double-inclusion guards.
612         Reported by Stefan Berger.
613
614 2010-10-15  Jim Meyering  <meyering@redhat.com>
615
616         GNUmakefile: handle "stable" target, not "major"
617         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
618         lists in maint.mk and announce-gen.  Without this, "make stable"
619         would fail to ensure that $(VERSION) is up to date.
620
621 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
622
623         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
624         & co.
625
626 2010-10-14  Bruno Haible  <bruno@clisp.org>
627
628         vasnprintf: Don't set errno to 0.
629         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
630         block that sets it to 0.
631         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
632
633 2010-10-14  Bruno Haible  <bruno@clisp.org>
634
635         socketlib: Fix.
636         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
637         gl_PREREQ_SYS_H_WINSOCK2.
638         Reported by Ian Beckwith <ianb@erislabs.net>.
639
640 2010-10-13  Jim Meyering  <meyering@redhat.com>
641
642         test-select-stdin.c: avoid warn_unused_result warnings
643         * tests/test-select-stdin.c: Include "macros.h".
644         ASSERT that read and fflush succeed.
645
646 2010-10-13  Jim Meyering  <meyering@redhat.com>
647
648         git-version-gen: do require git-VC'd files in cwd
649         * build-aux/git-version-gen: Reject a git version string
650         if there are no commits associated with the current directory.
651         This avoids an unlikely false-positive (unrelated dir whose parent
652         repository also contains a tag matching v*), as pointed out
653         by Giuseppe Scrivano in
654         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
655
656 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
657
658         argv-iter: omit nonconforming declaration
659         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
660         enum arg_iter_err declaration, which doesn't conform to C99.
661         Solaris 10 cc warns about this.
662
663 2010-10-13  Eric Blake  <eblake@redhat.com>
664
665         termios: fix compilation on mingw
666         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
667         (gl_TERMIOS_H): Adjust it on mingw.
668         * modules/termios (Makefile.am): Substitute new key.
669         * lib/termios.in.h (includes): Make include_next conditional.
670         * doc/posix-headers/termios.texi (termios.h): Update
671         documentation.
672         Reported by Daniel P. Berrange.
673
674 2010-10-13  Jim Meyering  <meyering@redhat.com>
675
676         git-version-gen: don't require that .git/ be in the current dir
677         * build-aux/git-version-gen: Adjust this script so that it works
678         when run from any working directory beneath the top-level .git/-
679         containing directory.  Inspired by a patch from Giuseppe Scrivano,
680         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
681
682         test-select: avoid warn_unused_result warnings
683         * tests/test-select.c: Include "macros.h".
684         ASSERT that each call to read, write, and pipe succeeds.
685         While not technically required, also check each "close".
686         * modules/select-tests (Files): Add tests/macros.h.
687
688         test-symlinkat: remove declaration of unused local
689         * tests/test-symlinkat.c (main): Remove unused local, "buf".
690
691         test-inttostr: avoid shadowing warnings
692         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
693         and use malloc rather than the stack for the same reason as
694         mentioned in the comment justifying the other allocation.
695
696 2010-10-11  Bruno Haible  <bruno@clisp.org>
697
698         stdlib: Allow multiple gnulib generated replacements to coexist.
699         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
700         Reported by Sam Steingold <sds@gnu.org>.
701
702 2010-10-11  Jim Meyering  <meyering@redhat.com>
703
704         fix a documentation typo
705         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
706
707 2010-10-11  Eric Blake  <eblake@redhat.com>
708
709         futimens: work around Solaris 11 bug
710         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
711         * tests/test-futimens.h (test_futimens): Enhance, rather than
712         weaken test.
713         * doc/posix-functions/futimens.texi (futimens): Document the bug.
714
715 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
716
717         Indentation.
718         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
719         higher-level operators more to the left.
720
721 2010-10-11  Jim Meyering  <meyering@redhat.com>
722
723         test-futimens: avoid unwarranted test failure on Solaris 5.11
724         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
725         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
726         because it tries to dereference the NULL name argument.
727
728 2010-10-11  Bruno Haible  <bruno@clisp.org>
729
730         Indentation.
731         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
732         indentation.
733
734 2010-10-11  Jim Meyering  <meyering@redhat.com>
735
736         spawn.in.h: make indentation consistent with parentheses
737         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
738         Make indentation consistent with parentheses.
739
740 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
741
742         Fix mismatched parens in previous commit
743         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
744         parens.
745
746 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
747
748         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
749
750         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
751         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
752         * lib/malloca.c: Include "verify.h".
753         (verify1): Remove, replacing with a verify call.
754         * lib/relocwrapper.c (verify1): Likewise.
755         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
756         Likewise.
757         * modules/malloca (Depends-on): Add 'verify'.
758         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
759         * modules/vasnprintf (Depends-on): Add 'verify'.
760         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
761         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
762         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
763         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
764         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
765         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
766         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
767
768         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
769
770         Formerly the style was sometimes 2*X - 1, because the C standard
771         was wrongly thought to disallow ?: in integral constant expressions.
772         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
773         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
774         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
775         * lib/stdint.in.h (_verify_intmax_size): Likewise.
776         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
777         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
778         verify that time_t cannot be floating.
779
780 2010-10-08  Eric Blake  <eblake@redhat.com>
781
782         time: enforce recent POSIX ruling that time_t is integral
783         * lib/time.in.h (__time_t_must_be_integral): Detect any
784         problematic systems, allowing the rest of gnulib to assume POSIX.
785
786 2010-10-08  Jim Meyering  <meyering@redhat.com>
787
788         fdopendir: fix a bug on systems lacking openat and /proc support
789         OpenBSD 4.7 is one such system.  The most noticeable effect was
790         failure of any application making nontrivial use of fts: rm, du,
791         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
792           ./rm: traversal failed: `a': Bad file descriptor
793         Debugging that, you see that even though FD 6 was closed just
794         prior to the opendir call in fd_clone_opendir, its resulting
795         dir->dd_fd was 8, rather than the expected value of 6:
796
797         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
798         93                close (fd);
799         (gdb) n
800         94                dir = fd_clone_opendir (dupfd);
801         (gdb) n
802         95                saved_errno = errno;
803         (gdb) p dir->dd_fd
804         $11 = 8
805
806         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
807         The problem is that on OpenBSD, fd_clone_opendir has to resort
808         to using the old-style save/restore CWD mechanism, due to its
809         lack of openat/proc support, and *that* would steal the FD (6)
810         that opendir was supposed to use.
811
812         The fix is to squirrel away the desired FD so that save_cwd uses a
813         different one, and then free the dest FD right before calling opendir.
814         That guarantees opendir will use the required file descriptor.
815
816         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
817
818 2010-10-08  Bruno Haible  <bruno@clisp.org>
819
820         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
821         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
822
823 2010-10-08  Bruno Haible  <bruno@clisp.org>
824
825         nanosleep: Make replacement POSIX compliant.
826         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
827         is out of range.
828         Reported by Jim Meyering.
829
830 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
831
832         bootstrap: add hook for altering gnulib.mk, for Bison
833         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
834         the Bison bootstrapping process can rewrite file names and variables
835         in this file before later parts of 'bootstrap' use the file.
836         Bison wants to include lib/gnulib.mk from the top-level makefile,
837         so it needs the file names in this file to be relative to the top
838         level, not relative to lib; plus it needs variable names to be
839         rewritten.
840         (slurp): Use the new function.
841
842         bootstrap: reformat for readability
843         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
844
845 2010-10-08  Eric Blake  <eblake@redhat.com>
846
847         docs: update cygwin progress
848         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
849         1.7.7.
850         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
851         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
852         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
853         * doc/posix-functions/carg.texi (carg): Likewise.
854         * doc/posix-functions/cargf.texi (cargf): Likewise.
855         * doc/posix-functions/casin.texi (casin): Likewise.
856         * doc/posix-functions/casinf.texi (casinf): Likewise.
857         * doc/posix-functions/casinh.texi (casinh): Likewise.
858         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
859         * doc/posix-functions/catan.texi (catan): Likewise.
860         * doc/posix-functions/catanf.texi (catanf): Likewise.
861         * doc/posix-functions/catanh.texi (catanh): Likewise.
862         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
863         * doc/posix-functions/ccos.texi (ccos): Likewise.
864         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
865         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
866         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
867         * doc/posix-functions/cexp.texi (cexp): Likewise.
868         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
869         * doc/posix-functions/cimag.texi (cimag): Likewise.
870         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
871         * doc/posix-functions/clog.texi (clog): Likewise.
872         * doc/posix-functions/clogf.texi (clogf): Likewise.
873         * doc/posix-functions/conj.texi (conj): Likewise.
874         * doc/posix-functions/conjf.texi (conjf): Likewise.
875         * doc/posix-functions/cpow.texi (cpow): Likewise.
876         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
877         * doc/posix-functions/cproj.texi (cproj): Likewise.
878         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
879         * doc/posix-functions/creal.texi (creal): Likewise.
880         * doc/posix-functions/crealf.texi (crealf): Likewise.
881         * doc/posix-functions/csin.texi (csin): Likewise.
882         * doc/posix-functions/csinf.texi (csinf): Likewise.
883         * doc/posix-functions/csinh.texi (csinh): Likewise.
884         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
885         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
886         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
887         * doc/posix-functions/ctan.texi (ctan): Likewise.
888         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
889         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
890         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
891         * doc/posix-headers/complex.texi (complex.h): Likewise.
892
893 2010-10-07  Jim Meyering  <meyering@redhat.com>
894
895         parse-datetime: avoid compilation failure on OpenBSD 4.7
896         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
897         This works around a compilation failure on OpenBSD 4.7:
898         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
899
900 2010-10-07  Eric Blake  <eblake@redhat.com>
901
902         docs: update cygwin progress
903         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
904         1.7.6.
905         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
906         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
907         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
908         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
909         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
910         Likewise.
911         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
912         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
913         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
914         Likewise.
915         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
916         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
917         Likewise.
918         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
919         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
920         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
921         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
922         Likewise.
923         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
924         Likewise.
925         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
926
927         docs: update parse-datetime history
928         * doc/parse-datetime.texi (Authors of parse_datetime): Better
929         documentation of this function's history and alternatives.
930
931         cygwin: use more robust version check
932         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
933         exclude an eventual cygwin 1.9.1.
934         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
935         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
936         (gl_FUNC_STRCASESTR): Likewise.
937         Reported by Bruno Haible.
938
939 2010-10-06  Bruno Haible  <bruno@clisp.org>
940
941         string, sys_select: Avoid #including large headers unless necessary.
942         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
943         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
944         OSF/1, BeOS, Haiku.
945         Reported by Jim Meyering.
946
947 2010-10-05  Eric Blake  <eblake@redhat.com>
948
949         memmem, strstr, strcasestr: fix bug with long periodic needle
950         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
951         periodic needle having false positive.
952         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
953         and cygwin 1.7.7.
954         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
955         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
956         (gl_FUNC_STRCASESTR): Likewise.
957         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
958         * tests/test-memmem.c (main): Expose the bug.
959         * tests/test-strcasestr.c (main): Likewise.
960         * tests/test-strstr.c (main): Likewise.
961         * tests/test-c-strcasestr.c (main): Likewise.
962         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
963         * doc/posix-functions/strstr.texi (strstr): Likewise.
964         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
965         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
966
967 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
968
969         parse-datetime: do some more renaming
970         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
971         parse_datetime, not get_date.  Mention the renaming.
972         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
973         in comments.
974         * m4/bison.m4: Likewise.
975
976 2010-10-05  Eric Blake  <eblake@redhat.com>
977
978         parse-datetime: better name than get_date
979         * NEWS: Reword the deprecation notice.
980         * modules/get_date: Rename to modules/parse-datetime.
981         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
982         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
983         * lib/get_date.y: Rename to lib/parse-datetime.y.
984         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
985         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
986         * doc/getdate.texi: Provide fallback wrapper.
987         * lib/getdate.h: Move guts, and wrap...
988         * lib/parse-datetime.h: ...new file.
989         * lib/parse-datetime.y (get_date): Rename...
990         (parse_datetime): ...to this.
991         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
992         (gl_PARSE_DATETIME): ...to this.
993         * doc/posix-functions/getdate.texi (get_date): Provide fallback
994         documentation.
995         * modules/getdate (Files): Provide fallback docs and header.
996         (Notice, Depends-on): Update references.
997         * tests/test-parse-datetime.c: Likewise.
998         * DEPENDENCIES: Likewise.
999         * MODULES.html.sh (Date and time <time.h>): Likewise.
1000         * doc/parse-datetime.texi (Date input formats)
1001         (Authors of parse_datetime): Likewise.
1002         * modules/parse-datetime (Files, configure.ac, Makefile.am)
1003         (Include): Likewise.
1004         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
1005         * gnulib-tool: Likewise.
1006         * m4/bison.m4 (gl_BISON): Likewise.
1007         Suggested by Bruno Haible.
1008
1009 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1010
1011         more ports to Solaris tr, which needs [] around ranges
1012         * gnulib-tool: Solaris tr needs [] around ranges.
1013         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
1014         * tests/test-pipe-filter-gi1.c (main): Likewise.
1015         * tests/test-pipe-filter-ii1.c (main): Likewise.
1016
1017 2010-10-05  Eric Blake  <eblake@redhat.com>
1018
1019         bootstrap: fix Solaris regression
1020         * build-aux/bootstrap (check_versions): Solaris tr still needs []
1021         around ranges.
1022         Reported by Pádraig Brady.
1023
1024         bootstrap: work with pkg-config
1025         * build-aux/bootstrap (check_versions): Also transliterate - in
1026         prerequisite name.
1027         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
1028         prerequisites that were already found, to avoid confusion.
1029         Reported by Justin Clift.
1030
1031         faccessat: remove unused wrappers
1032         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
1033         presence of these wrappers dragged in -lgen on Solaris.
1034         Reported by Clemens Brogi; fix suggested by Paul Eggert.
1035
1036 2010-10-05  Jim Meyering  <meyering@redhat.com>
1037
1038         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
1039         * Makefile (sc_pragma_columns): New syntax-check rule.
1040
1041 2010-10-04  Bruno Haible  <bruno@clisp.org>
1042
1043         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
1044         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
1045         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
1046         Reported by Bruce Korb and Eric Blake.
1047
1048 2010-10-04  Bruno Haible  <bruno@clisp.org>
1049
1050         threadlib: Make option --with-libpth-prefix work.
1051         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
1052         use $LIBPTH, not just -lpth.
1053
1054 2010-10-04  Bruno Haible  <bruno@clisp.org>
1055
1056         Avoid line length limitation from HP NonStop system header files.
1057         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
1058         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
1059         * lib/ctype.in.h: Likewise.
1060         * lib/dirent.in.h: Likewise.
1061         * lib/errno.in.h: Likewise.
1062         * lib/fcntl.in.h: Likewise.
1063         * lib/float.in.h: Likewise.
1064         * lib/getopt.in.h: Likewise.
1065         * lib/iconv.in.h: Likewise.
1066         * lib/inttypes.in.h: Likewise.
1067         * lib/langinfo.in.h: Likewise.
1068         * lib/locale.in.h: Likewise.
1069         * lib/math.in.h: Likewise.
1070         * lib/netdb.in.h: Likewise.
1071         * lib/netinet_in.in.h: Likewise.
1072         * lib/poll.in.h: Likewise.
1073         * lib/pthread.in.h: Likewise.
1074         * lib/pty.in.h: Likewise.
1075         * lib/sched.in.h: Likewise.
1076         * lib/se-selinux.in.h: Likewise.
1077         * lib/search.in.h: Likewise.
1078         * lib/signal.in.h: Likewise.
1079         * lib/spawn.in.h: Likewise.
1080         * lib/stdarg.in.h: Likewise.
1081         * lib/stddef.in.h: Likewise.
1082         * lib/stdint.in.h: Likewise.
1083         * lib/stdio.in.h: Likewise.
1084         * lib/stdlib.in.h: Likewise.
1085         * lib/string.in.h: Likewise.
1086         * lib/strings.in.h: Likewise.
1087         * lib/sys_file.in.h: Likewise.
1088         * lib/sys_ioctl.in.h: Likewise.
1089         * lib/sys_select.in.h: Likewise.
1090         * lib/sys_socket.in.h: Likewise.
1091         * lib/sys_stat.in.h: Likewise.
1092         * lib/sys_time.in.h: Likewise.
1093         * lib/sys_times.in.h: Likewise.
1094         * lib/sys_utsname.in.h: Likewise.
1095         * lib/sys_wait.in.h: Likewise.
1096         * lib/sysexits.in.h: Likewise.
1097         * lib/termios.in.h: Likewise.
1098         * lib/time.in.h: Likewise.
1099         * lib/unistd.in.h: Likewise.
1100         * lib/wchar.in.h: Likewise.
1101         * lib/wctype.in.h: Likewise.
1102         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
1103         * modules/ctype (Makefile.am): Likewise.
1104         * modules/dirent (Makefile.am): Likewise.
1105         * modules/errno (Makefile.am): Likewise.
1106         * modules/fcntl-h (Makefile.am): Likewise.
1107         * modules/float (Makefile.am): Likewise.
1108         * modules/getopt-posix (Makefile.am): Likewise.
1109         * modules/iconv-h (Makefile.am): Likewise.
1110         * modules/inttypes (Makefile.am): Likewise.
1111         * modules/langinfo (Makefile.am): Likewise.
1112         * modules/locale (Makefile.am): Likewise.
1113         * modules/math (Makefile.am): Likewise.
1114         * modules/netdb (Makefile.am): Likewise.
1115         * modules/netinet_in (Makefile.am): Likewise.
1116         * modules/poll-h (Makefile.am): Likewise.
1117         * modules/pthread (Makefile.am): Likewise.
1118         * modules/pty (Makefile.am): Likewise.
1119         * modules/sched (Makefile.am): Likewise.
1120         * modules/search (Makefile.am): Likewise.
1121         * modules/selinux-h (Makefile.am): Likewise.
1122         * modules/signal (Makefile.am): Likewise.
1123         * modules/spawn (Makefile.am): Likewise.
1124         * modules/stdarg (Makefile.am): Likewise.
1125         * modules/stddef (Makefile.am): Likewise.
1126         * modules/stdint (Makefile.am): Likewise.
1127         * modules/stdio (Makefile.am): Likewise.
1128         * modules/stdlib (Makefile.am): Likewise.
1129         * modules/string (Makefile.am): Likewise.
1130         * modules/strings (Makefile.am): Likewise.
1131         * modules/sys_file (Makefile.am): Likewise.
1132         * modules/sys_ioctl (Makefile.am): Likewise.
1133         * modules/sys_select (Makefile.am): Likewise.
1134         * modules/sys_socket (Makefile.am): Likewise.
1135         * modules/sys_stat (Makefile.am): Likewise.
1136         * modules/sys_time (Makefile.am): Likewise.
1137         * modules/sys_times (Makefile.am): Likewise.
1138         * modules/sys_utsname (Makefile.am): Likewise.
1139         * modules/sys_wait (Makefile.am): Likewise.
1140         * modules/sysexits (Makefile.am): Likewise.
1141         * modules/termios (Makefile.am): Likewise.
1142         * modules/time (Makefile.am): Likewise.
1143         * modules/unistd (Makefile.am): Likewise.
1144         * modules/wchar (Makefile.am): Likewise.
1145         * modules/wctype (Makefile.am): Likewise.
1146
1147 2010-10-04  Bruno Haible  <bruno@clisp.org>
1148
1149         read-file tests: Avoid a test failure on NonStop Kernel.
1150         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
1151         a regular file.
1152         Reported by Joachim Schmitz <schmitz@hp.com>.
1153
1154 2010-10-03  Bruno Haible  <bruno@clisp.org>
1155
1156         gnulib-tool: Fixes for --create-testdir with --libtool.
1157         * gnulib-tool (func_get_automake_snippet): Don't augment
1158         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
1159         an executable.
1160         (func_create_testdir): Handle module 'alloca' like func_import.
1161         Reported by Bruce Korb <bruce.korb@gmail.com>.
1162
1163 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
1164
1165         Avoid some lines longer than 80 characters.
1166         * lib/stdint.in.h: Break long comment lines.
1167         * lib/math.in.h: Likewise.
1168         (_GL_NUM_UINT_WORDS): New macro, for readability.
1169         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
1170         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
1171         * lib/stdlib.in.h: Likewise.
1172         * lib/spawn.in.h: Likewise.
1173         * lib/sys_socket.in.h: Update an URL.
1174         * lib/sys_stat.in.h: Break long line.
1175
1176 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
1177
1178         Improve pmccabe2html.
1179         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
1180         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
1181         when the sources change. Remove the line in the HTML about "Used
1182         ranges" (which implied that there might be other unused ranges),
1183         rename "Resume" to "Summary" (easier to understand for more users).
1184         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
1185         styles, and some unnecessary blank lines.
1186
1187 2010-10-03  Bruno Haible  <bruno@clisp.org>
1188             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1189
1190         acl: Add support for ACLs on NonStop Kernel.
1191         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
1192         Check whether the function aclsort() exists.
1193         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
1194         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
1195         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1196         (acl_nontrivial [HAVE_ACLSORT]: New function.
1197         (file_has_acl): Implement for NonStop Kernel.
1198         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1199         (qset_acl): Implement for NonStop Kernel.
1200         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
1201         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
1202         (main): Implement for NonStop Kernel.
1203         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
1204         Kernel. Handle this flavor.
1205         * tests/test-set-mode-acl.sh: Likewise.
1206         * tests/test-copy-acl.sh: Likewise.
1207         * tests/test-copy-file.sh: Likewise.
1208
1209 2010-10-03  Bruno Haible  <bruno@clisp.org>
1210
1211         Info about ACLs on NonStop Kernel.
1212         * doc/acl-resources.txt: Add info about NonStop Kernel.
1213         References by Joachim Schmitz <schmitz@hp.com>.
1214
1215 2010-10-02  Bruno Haible  <bruno@clisp.org>
1216
1217         Define missing EDQUOT on NonStop Kernel.
1218         * lib/errno.in.h (EDQUOT): Assign a value if missing.
1219         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
1220         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
1221         missing.
1222         * doc/posix-headers/errno.texi: Mention the NSK bug.
1223         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
1224         Reported by Joachim Schmitz <schmitz@hp.com>.
1225
1226 2010-10-02  Bruno Haible  <bruno@clisp.org>
1227
1228         Update doc for POSIX:2008.
1229         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
1230         Update URL of POSIX specification.
1231
1232 2010-10-02  Bruno Haible  <bruno@clisp.org>
1233
1234         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
1235         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
1236         from gnulib, not from Automake.
1237
1238 2010-10-02  Bruno Haible  <bruno@clisp.org>
1239
1240         New module 'system-posix'.
1241         * modules/system-posix: New file.
1242         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
1243         module is present.
1244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
1245         GNULIB_SYSTEM_POSIX.
1246         * modules/stdlib (Depends-on): Remove sys_wait.
1247         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
1248         * doc/posix-functions/system.texi: Mention the new module.
1249         * doc/posix-headers/stdlib.texi: Likewise.
1250         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
1251         define test_sys_wait_macros to a no-op.
1252         Reported by Sam Steingold <sds@gnu.org>.
1253
1254 2010-09-30  Bruno Haible  <bruno@clisp.org>
1255
1256         More renaming from 'getdate' to 'get_date'.
1257         * doc/get_date.texi: Renamed from doc/getdate.texi.
1258         * modules/get_date (Files): Update.
1259         * MODULES.html.sh (Date and time <time.h>): Update.
1260         * DEPENDENCIES: Update.
1261         * gnulib-tool: Update comment.
1262         * m4/bison.m4 (gl_BISON): Likewise.
1263         * m4/get_date.m4 (gl_GET_DATE): Likewise.
1264
1265 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
1266
1267         bootstrap: support ACLOCAL_FLAGS during aclocal
1268         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
1269         can add additional -I dir for third-party .m4 files.
1270
1271 2010-09-30  Eric Blake  <eblake@redhat.com>
1272
1273         bootstrap: use glibtoolize on MacOS
1274         * build-aux/bootstrap (check_versions): Convert libtool into
1275         libtoolize.
1276         (tool search): Move libtool check earlier, and look for
1277         glibtoolize for MacOS.
1278         (gnulib_tool_options): Auto-add --libtool when appropriate.
1279         Reported by Justin Clift.
1280
1281         poll: fix typo that broke test on MacOS
1282         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
1283         Reported by Justin Clift.
1284
1285         getdate: rename to get_date
1286         Note: getdate.h is not renamed, to minimize client impact.
1287         * modules/getdate: Mark obsolete.  Move old contents...
1288         * modules/get_date: ...to new module name.
1289         * modules/getdate-tests: Move...
1290         * modules/get_date-tests: ...here.
1291         * m4/getdate.m4: Move...
1292         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
1293         * lib/getdate.y: Move...
1294         * lib/get_date.y: ...here.
1295         * tests/test-getdate.c: Move...
1296         * tests/test-get_date.c: ...here.
1297         * doc/posix-functions/getdate.texi (getdate): Update name.
1298         * NEWS: Mention the change.
1299
1300 2010-09-29  Bruno Haible  <bruno@clisp.org>
1301
1302         Separate the module 'waitpid' from the module 'sys_wait'.
1303         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
1304         present.
1305         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
1306         gl_MODULE_INDICATOR_FOR_TESTS.
1307         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
1308         * modules/sys_wait (Depends-on): Remove waitpid.
1309         (Makefile.am): Substitute GNULIB_WAITPID.
1310         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
1311         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
1312         signature only if the 'waitpid' module is present.
1313         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
1314         * NEWS: Mention the change.
1315         * modules/grantpt (Depends-on): Add waitpid.
1316         * modules/wait-process (Depends-on): Likewise.
1317
1318 2010-09-29  Bruno Haible  <bruno@clisp.org>
1319
1320         More tests for module 'sys_wait'.
1321         * modules/sys_wait-c++-tests: New file.
1322         * tests/test-sys_wait-c++.cc: New file.
1323         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
1324         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1325
1326 2010-09-29  Bruno Haible  <bruno@clisp.org>
1327
1328         New module 'waitpid'.
1329         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
1330         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
1331         Don't include <process.h>.
1332         (waitpid): Declare only, using modern idiom.
1333         * m4/waitpid.m4: New file.
1334         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
1335         * modules/waitpid: New file.
1336         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
1337         (Makefile.am): Update.
1338         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
1339
1340 2010-09-28  Bruno Haible  <bruno@clisp.org>
1341
1342         poll: Assume ANSI C.
1343         * lib/poll.c (poll): Use an ANSI C declaration.
1344
1345 2010-09-28  Bruno Haible  <bruno@clisp.org>
1346
1347         poll-h: Create poll.h on all platforms.
1348         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
1349         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
1350         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
1351         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
1352         (gl_REPLACE_POLL_H): Don't set POLL_H.
1353         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
1354         * modules/poll-h (Depends-on): Add include_next.
1355         (Makefile.am): Create poll.h unconditionally. Substitute also
1356         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
1357
1358 2010-09-28  Bruno Haible  <bruno@clisp.org>
1359
1360         Tests for module 'poll-h'.
1361         * modules/poll-h-c++-tests: New file.
1362         * tests/test-poll-h-c++.cc: New file.
1363
1364         Tests for module 'poll-h'.
1365         * modules/poll-h-tests: New file.
1366         * tests/test-poll-h.c: New file.
1367
1368 2010-09-28  Bruno Haible  <bruno@clisp.org>
1369
1370         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
1371         * modules/poll-h (Depends-on): Add 'extensions'.
1372
1373 2010-09-28  Bruno Haible  <bruno@clisp.org>
1374
1375         New module 'poll-h'.
1376         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
1377         (poll): Use modern idiom.
1378         * modules/poll-h: New file.
1379         * modules/poll (Files): Remove lib/poll.in.h.
1380         (Depends-on): Add poll-h.
1381         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
1382         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
1383         * m4/poll_h.m4: New file.
1384         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
1385         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
1386         and invoke gl_REPLACE_POLL_H.
1387         * lib/poll.c: Use common idiom.
1388         * tests/test-poll.c: Likewise.
1389         * doc/posix-headers/poll.texi: Mention the poll-h module.
1390         Suggested by Eric Blake.
1391
1392 2010-09-26  Bruno Haible  <bruno@clisp.org>
1393
1394         sys_wait: Implement WSTOPSIG.
1395         * lib/sys_wait.in.h (WSTOPSIG): New macro.
1396         Reported by Simon Josefsson.
1397
1398 2010-09-26  Simon Josefsson  <simon@josefsson.org>
1399
1400         stdlib, sys_wait: Avoid compilation error on mingw.
1401         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
1402
1403 2010-09-26  Bruno Haible  <bruno@clisp.org>
1404
1405         stdlib tests: Avoid code duplication.
1406         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
1407         * modules/sys_wait-tests (Files): Likewise.
1408         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
1409         * tests/test-stdlib.c: Include test-sys_wait.h.
1410         (main): Invoke test_sys_wait_macros.
1411         * tests/test-sys_wait.c: Include test-sys_wait.h.
1412         (main): Invoke test_sys_wait_macros.
1413
1414 2010-09-25  Simon Josefsson  <simon@josefsson.org>
1415
1416         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
1417         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
1418         sure Windows sockets are working before calling getaddrinfo.
1419         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
1420         * doc/gnulib.texi (Windows sockets): Fix typo.
1421
1422 2010-09-25  Bruno Haible  <bruno@clisp.org>
1423
1424         Tests for module 'regex-quote'.
1425         * modules/regex-quote-tests: New file.
1426         * tests/test-regex-quote.c: New file.
1427
1428         New module 'regex-quote'.
1429         * lib/regex-quote.h: New file.
1430         * lib/regex-quote.c: New file.
1431         * modules/regex-quote: New file.
1432         Suggested by Reuben Thomas <rrt@sc3d.org>.
1433
1434 2010-09-24  Bruno Haible  <bruno@clisp.org>
1435
1436         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
1437         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
1438
1439 2010-09-23  Bruno Haible  <bruno@clisp.org>
1440
1441         setenv: Relax license.
1442         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
1443         Blake.
1444         Requested by Eric Blake.
1445
1446 2010-09-22  Bruno Haible  <bruno@clisp.org>
1447
1448         termios: Relax license.
1449         * modules/termios (License): Change to LGPLv2+.
1450         Requested by Eric Blake.
1451
1452 2010-09-22  Bruno Haible  <bruno@clisp.org>
1453
1454         threadlib: Allow the package to change the default to 'no'.
1455         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
1456         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
1457         Reported by Paul Eggert.
1458
1459 2010-09-22  Pádraig Brady  <P@draigbrady.com>
1460             Bruno Haible  <bruno@clisp.org>
1461
1462         Fix endless loop in mbmemcasecoll.
1463         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
1464         byte.
1465         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
1466
1467 2010-09-22  Bruno Haible  <bruno@clisp.org>
1468
1469         Tests for module 'memcoll'.
1470         * modules/memcoll-tests: New file.
1471         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
1472
1473         memcoll, xmemcoll: Clarify size vs. length.
1474         * modules/memcoll.c (memcoll0): Clarify specification.
1475         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
1476         passed to collate_error.
1477
1478 2010-09-22  Bruno Haible  <bruno@clisp.org>
1479
1480         Tests for module 'memcasecmp'.
1481         * modules/memcasecmp-tests: New file.
1482         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
1483
1484 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1485
1486         * lib/pthread.in.h: Add split double-inclusion guard, and include
1487         system <pthread.h> if there is one.  Use @@-style as in other
1488         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
1489         pthread.h doesn't.
1490         (pthread_mutexattr_destroy, pthread_mutexattr_init):
1491         (pthread_mutexattr_settype, pthread_mutex_trylock):
1492         New static inline functions, if there's no system <pthread.h>.
1493         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
1494         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
1495         Approximate with mutexes if the system lacks spinlocks, as in
1496         MacOS.
1497         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
1498         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
1499         @@-style.  Check for spinlocks separately.
1500         (gl_PTHREAD_DEFAULTS): New macro.
1501         * modules/pthread: Redo to use a more typical style for in.h files.
1502
1503 2010-09-21  Eric Blake  <eblake@redhat.com>
1504
1505         net_if: enhance tests
1506         * tests/test-net_if.c (main): Move signature checks earlier.
1507         Print failures to stderr.
1508         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
1509         Document the bug that we do not yet fix.
1510
1511 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1512
1513         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
1514         about gnulib, not GSS.
1515
1516 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
1517
1518         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
1519         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
1520         for Emacs.
1521         * build-aux/pmccabe2html: Make Makefile.am example code more
1522         cut-and-paste friendly.
1523
1524 2010-09-21  Simon Josefsson  <simon@josefsson.org>
1525
1526         * tests/test-net_if.c: New file.
1527         * modules/net_if-tests: New file.
1528
1529 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
1530
1531         pthread: add pthread_spin_destroy
1532         * lib/pthread.in.h (pthread_spin_destroy): New function.
1533
1534 2010-09-19  Bruno Haible  <bruno@clisp.org>
1535
1536         gnulib-tool: Fix --help output.
1537         * gnulib-tool (func_usage): Fix help message.
1538         Reported by Reuben Thomas <rrt@sc3d.org>.
1539
1540 2010-09-18  Jim Meyering  <meyering@redhat.com>
1541
1542         maint.mk: avoid unexpanded \n in two diagnostics
1543         * top/maint.mk (sc_prohibit_always_true_header_tests):
1544         Don't use a literal \n in a halt=... assignment.  It would not be
1545         expanded, and the two \n bytes would appear in the diagnostic output
1546         rather than the desired newline.  Use halt=$$(printf ... instead.
1547         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
1548
1549 2010-09-18  Bruno Haible  <bruno@clisp.org>
1550
1551         netinet_in: Doc tweak.
1552         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
1553         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1554
1555 2010-09-18  Jim Meyering  <meyering@redhat.com>
1556
1557         init.sh: correct an outdated comment
1558         * tests/init.sh (create_exe_shims_):  s/function/alias/
1559
1560         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
1561         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
1562         a file named "*.exe" is removed between the glob expansion and the
1563         processing of that oddly named file.
1564
1565 2010-09-17  Eric Blake  <eblake@redhat.com>
1566
1567         mirbsd: add some more support
1568         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
1569         in BSD family.
1570         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
1571         devices as OpenBSD.
1572         * m4/host-os.m4 (mirbsd): Add MirBSD.
1573
1574         tests: fix unportable assumption on sys/wait.h
1575         * tests/test-sys_wait.c (main): Relax test.
1576         * tests/test-stdlib.c (main): Likewise.
1577
1578         init.sh: accomodate directory with no .exes
1579         * tests/init.sh: Accomodate directory containing only scripts.
1580
1581         tests: avoid compiler warning
1582         * tests/test-stdlib.c (main): Use the variable.
1583
1584         fdutimens, fdutimensat: update signature, again
1585         * lib/utimens.h (gl_futimens): Delete, and move signature...
1586         (fdutimens): ...here.
1587         (fdutimensat): Rearrange signature.
1588         (lutimensat): Rename variable for clarity.
1589         * lib/fdutimensat.c (fdutimensat): Update signature.
1590         * lib/utimens.c (fdutimens): Likewise.
1591         (gl_futimens): Delete.
1592         (utimens, lutimens): Update callers.
1593         * lib/futimens.c (futimens): Likewise.
1594         * tests/test-fdutimensat.c: Likewise.
1595         * tests/test-utimens.c: Likewise.
1596         * tests/test-futimens.h: Update comment.
1597         * NEWS: Mention this.
1598         Suggested by Paul Eggert.
1599
1600 2010-09-17  Bruno Haible  <bruno@clisp.org>
1601
1602         Take over the maintenance of some older macros from Autoconf.
1603         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
1604         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
1605         GNU Autoconf.
1606         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
1607         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
1608
1609 2010-09-17  Eric Blake  <eblake@redhat.com>
1610
1611         fdutimensat: drop atflag validation
1612         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
1613         with valid fd, to close a race scenario where futimens is
1614         unsupported and FILE was replaced by a symlink.
1615         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
1616         accordingly.
1617         Suggested by Paul Eggert.
1618
1619 2010-09-16  Bruno Haible  <bruno@clisp.org>
1620
1621         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
1622         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
1623
1624 2010-09-16  Bruno Haible  <bruno@clisp.org>
1625
1626         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
1627         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
1628         login_tty exists.
1629         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1630
1631 2010-09-16  Bruno Haible  <bruno@clisp.org>
1632
1633         login_tty: Make the replacement code work on BSD systems.
1634         * lib/login_tty.c: Include <sys/ioctl.h>.
1635         (login_tty): Use ioctl TIOCSCTTY when available.
1636         * modules/login_tty (Depends-on): Add sys_ioctl.
1637         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1638
1639 2010-09-16  Bruno Haible  <bruno@clisp.org>
1640
1641         login_tty: Stricter unit test.
1642         * modules/login_tty-tests (Depends-on): Add tcgetsid.
1643         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
1644         and tcgetsid() after login_tty.
1645         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1646
1647 2010-09-16  Bruno Haible  <bruno@clisp.org>
1648
1649         New module 'tcgetsid'.
1650         * lib/tcgetsid.c: New file.
1651         * m4/tcgetsid.m4: New file.
1652         * modules/tcgetsid: New file.
1653         * modules/termios (Depends-on): Add c++defs, warn-on-use.
1654         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
1655         GNULIB_TCGETSID, HAVE_TCGETSID.
1656         * lib/termios.in.h: Include <sys/types.h>.
1657         (tcgetsid): New declaration.
1658         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
1659         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
1660         * doc/posix-functions/tcgetsid.texi: Mention the new module.
1661         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
1662
1663 2010-09-16  Bruno Haible  <bruno@clisp.org>
1664
1665         Tests for module 'termios'.
1666         * modules/termios-c++-tests: New file.
1667         * modules/termios-tests: New file.
1668         * tests/test-termios-c++.cc: New file.
1669         * tests/test-termios.c: New file.
1670
1671         New module 'termios'.
1672         * modules/termios: New file.
1673         * lib/termios.in.h: New file.
1674         * m4/termios_h.m4: New file.
1675         * doc/posix-headers/termios.texi: Mention the new module.
1676
1677 2010-09-16  Eric Blake  <eblake@redhat.com>
1678
1679         fdutimensat: add an atflag parameter
1680         * lib/fdutimensat.c (fdutimensat): Add new parameter.
1681         * lib/utimens.h (fdutimensat): Update prototype.
1682         * tests/test-fdutimensat.c: Adjust test to match.
1683         * NEWS: Document the change.
1684         Suggested by Paul Eggert.
1685
1686 2010-09-16  Bruno Haible  <bruno@clisp.org>
1687
1688         Fix typos in comments.
1689         * lib/striconveh.h: Fix typo in comment.
1690         * lib/login_tty.c (login_tty): Likewise.
1691
1692 2010-09-15  Bruno Haible  <bruno@clisp.org>
1693
1694         stdlib: clarify MirBSD WEXITSTATUS bug
1695         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
1696         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1697
1698 2010-09-15  Eric Blake  <eblake@redhat.com>
1699
1700         stdlib: work around MirBSD WEXITSTATUS bug
1701         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
1702         * modules/stdlib (Depends-on): Add sys_wait.
1703         * tests/test-sys_wait.c (main): Enhance test.
1704         * tests/test-stdlib.c (main): Likewise.
1705         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
1706
1707         docs: mention MacOS issue with WEXITSTATUS(constant)
1708         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
1709         issue.
1710         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
1711
1712         strnlen: add tests
1713         * modules/strnlen-tests: New file.
1714         * tests/test-strnlen.c: Likewise.
1715
1716 2010-09-14  Bruno Haible  <bruno@clisp.org>
1717
1718         unistr/base: Avoid link errors when module 'libunistring' is also used.
1719         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
1720         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
1721         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
1722         Declare also when HAVE_LIBUNISTRING is set.
1723         Reported by Pádraig Brady <P@draigbrady.com>.
1724
1725 2010-09-14  Eric Blake  <eblake@redhat.com>
1726
1727         test-rawmemchr: make more robust
1728         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
1729         (Depends-on, configure.ac): Add needed prerequisites to use it.
1730         * modules/memchr-tests (Files, Depends-on, configure.ac):
1731         Likewise, to avoid implicit reliance on memchr module prereqs.
1732         * tests/test-memchr.c (main): Ensure proper masking.
1733         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
1734         reads.
1735
1736         memchr: detect glibc Alpha bug
1737         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
1738         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
1739         Alpha.
1740         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
1741         * tests/test-memchr.c (main): Enhance test.
1742         Reported by Nelson H. F. Beebe.
1743
1744 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1745
1746         fts, getcwd, glob: audit for dirfd returning -1
1747         * lib/fts.c (opendir): Remove #define; no longer used.
1748         (opendirat): New arg PDIR_FD.  All callers changed.
1749         (fts_build, _opendir2): Use new opendirat to avoid the need for
1750         dirfd, or for checking whether dirfd returns a negative value.
1751         Don't use opendir; always use openat followed by fdopendir.
1752         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
1753         it.
1754         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
1755         returns -1 here.
1756         * modules/fts (Depends-on): Remove dirfd.
1757         * modules/getcwd (Depends-on): Likewise.
1758
1759 2010-09-13  Eric Blake  <eblake@redhat.com>
1760
1761         float: fix broken MirBSD header
1762         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
1763         * doc/posix-headers/float.texi (float.h): Document it.
1764
1765 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1766
1767         fts: use O_NOFOLLOW to avoid race condition when opening a directory
1768         * lib/fts.c (opendirat): New arg extra_flags.
1769         (__opendir2): Use it to avoid following symlinks when opening
1770         a directory, if symlinks are not supposed to be followed.  See
1771         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
1772
1773         fdopendir: preserve argument fd before returning
1774         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
1775         (fdopendir_with_dup, fd_clone_opendir): New static functions.
1776         (fdopendir): Use them, arranging for FD to be open to the same
1777         directory that it was when it started.  (It might be temporarily
1778         closed while fdopendir is running, so this not thread- or
1779         signal-safe.)  Be careful to do the right thing even when file
1780         descriptors are scarce and dup fails with errno == EMFILE.  See
1781         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
1782
1783 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
1784
1785         regex: Pass the system regex if its only problem is 32-bit regoff_t.
1786         * NEWS: Document change.
1787         * m4/regex.m4: Disable test for regoff_t size.
1788
1789 2010-09-13  Jim Meyering  <meyering@redhat.com>
1790
1791         fts: don't operate on an invalid file descriptor after failed dup
1792         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
1793         negative file descriptor.
1794
1795 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
1796
1797         savedir: add streamsavedir, deprecate fdsavedir
1798         * NEWS: Mention deprecation of fdsavedir.
1799         * lib/savedir.c (streamsavedir): New extern function, whose name
1800         ends in "savedir" to be consistent with the others.  This differs
1801         from savedirstream in that it doesn't close its argument.  The
1802         next version of GNU tar will use this instead of fdsavedir, to
1803         avoid some race conditions and conserve file descriptors.
1804         (savedirstream): Reimplement as a wrapper around streamsavedir.
1805         (fdsavedir): Add a comment deprecating this function.  As far as
1806         I know, only GNU tar used it, and GNU tar doesn't need it any more.
1807         * lib/savedir.h (streamsavedir): New decl.
1808         (fdsavedir): Add a comment deprecating this.
1809
1810 2010-09-10  Bruno Haible  <bruno@clisp.org>
1811
1812         langinfo: Fix last commit.
1813         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
1814         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
1815         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1816
1817 2010-09-10  Bruno Haible  <bruno@clisp.org>
1818
1819         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
1820         * lib/progreloc.c (O_EXEC): Define fallback.
1821
1822 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1823
1824         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
1825         * NEWS: Document recent changes to fcntl-h.
1826         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
1827         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
1828         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
1829         Similarly for O_SEARCH; this last was already true, but not documented.
1830         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
1831         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
1832         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
1833         Likewise.
1834         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
1835         is zero, not whether it is defined.
1836         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
1837         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
1838         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
1839
1840 2010-09-10  Bruno Haible  <bruno@clisp.org>
1841
1842         langinfo, nl_langinfo: Fix for IRIX 5.3.
1843         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
1844         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
1845         HAVE_LANGINFO_YESEXPR.
1846         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
1847         HAVE_LANGINFO_YESEXPR.
1848         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
1849         HAVE_LANGINFO_T_FMT_AMPM is 0.
1850         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
1851         HAVE_LANGINFO_YESEXPR is 0.
1852         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
1853         NOEXPR.
1854         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
1855         * doc/posix-functions/nl_langinfo.texi: Likewise.
1856         Reported by Eric Blake.
1857
1858 2010-09-10  Bruno Haible  <bruno@clisp.org>
1859
1860         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
1861         * doc/glibc-functions/login_tty.texi: Mention the include file problem
1862         on FreeBSD 8.0 and OpenBSD 4.6.
1863         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
1864         * m4/pty_h.m4 (gl_PTY_H): Likewise.
1865         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
1866         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
1867         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
1868         ac_includes_default.
1869         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1870
1871 2010-09-09  Eric Blake  <eblake@redhat.com>
1872
1873         strsignal: work around NetBSD bug
1874         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
1875         * lib/string.in.h (includes): Likewise.
1876         * doc/posix-functions/strsignal.texi (strsignal): Document the
1877         bug.
1878         Reported by Nelson H. F. Beebe.
1879
1880         gnulib-tool: work with NetBSD /bin/sh
1881         * gnulib-tool (func_cache_var, func_cache_lookup_module)
1882         (func_get_description, func_get_comment, func_get_status)
1883         (func_get_notice, func_get_applicability, func_get_filelist)
1884         (func_get_dependencies, func_get_autoconf_early_snippet)
1885         (func_get_autoconf_snippet, func_get_automake_snippet)
1886         (func_get_include_directive, func_get_link_directive)
1887         (func_get_license, func_get_maintainer, func_import): Avoid
1888         shell syntax errors from parsing syntax extensions.
1889
1890 2010-09-09  Bruno Haible  <bruno@clisp.org>
1891
1892         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1893         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
1894         a reliable way to determine whether the 'alias' command works.
1895
1896 2010-09-08  Jim Meyering  <meyering@redhat.com>
1897
1898         init.sh: penalize a set-x-impaired shell; don't disqualify it
1899         * tests/init.sh: Too many shells corrupt application stderr when
1900         you set -x, so we can't afford to disqualify them, since at least
1901         on Irix-6.5, that would disqualify all bourne shells.
1902         Instead, use a two-pass approach.
1903         On the first pass, try to find a shell that meets the stricter
1904         condition that set -x does not corrupt stderr.
1905         If no shell meets the stricter condition, retest each candidate
1906         shell, but without that extra condition.  Finally, when
1907         VERBOSE=yes is requested and set -x might cause trouble, simply
1908         issue a warning and refrain from enabling debug output.
1909
1910 2010-09-08  Eric Blake  <eblake@redhat.com>
1911
1912         unsetenv: fix OpenBSD bug
1913         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
1914         * doc/posix-functions/unsetenv.texi (unsetenv): Update
1915         documentation.
1916         Reported by Jim Meyering.
1917
1918         strtod: work around IRIX 6.5 bug
1919         * lib/strtod.c (strtod): Reparse number on shorter string if
1920         exponent parse was invalid.
1921         * tests/test-strtod.c (main): Add check for "0x1p 2".
1922         Reported by Tom G. Christensen.
1923
1924         getopt: optimize previous patch
1925         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
1926         empty variable.  Speed up awk script.
1927         Reported by Paolo Bonzini.
1928
1929 2010-09-08  Jim Meyering  <meyering@redhat.com>
1930
1931         test.sh: disqualify shells for which set -x corrupts stderr
1932         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
1933         and OpenBSD 4.7.  They make it so with "set -x", environment settings
1934         appear in stderr output.  For example, this command:
1935             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
1936         prints "P=1" on those two systems:
1937
1938 2010-09-08  Bruno Haible  <bruno@clisp.org>
1939
1940         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1941         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
1942         commands, because some shells ignore redirections when there is an
1943         error in the command lookup.
1944         Reported by Eric Blake.
1945
1946 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
1947
1948         * lib/regex.h: Fix a mention of `regex_compile' (should be
1949         `re_compile_pattern').
1950         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
1951         (re_set_registers): Correct name of parameter in comment.
1952
1953         * doc/regex.texi: Add documentation for missing syntax flags.
1954         Remove commented-out documentation of defunct syntax option
1955         RE_NO_EMPTY_ALTS.
1956         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
1957         Add documentation of re_set_registers.
1958         Document trick to re-use a pattern buffer by setting fastmap manually.
1959         Update documentation of struct re_pattern_buffer per public members.
1960         Uncomment documentation of equivalence class operators and
1961         collating symbol operators, since they are now implemented,
1962         Explain leftmost-longest matching in relation to alternatives.
1963         Tidy documentation of substring matching.
1964         Remove POSIX documentation, which is done better in
1965         glibc, and refer the reader there. Keep BSD API documentation, as
1966         that is not readily available elsewhere.
1967
1968 2010-09-07  Eric Blake  <eblake@redhat.com>
1969
1970         getopt: handle POSIXLY_CORRECT set but not exported
1971         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
1972         export state of POSIXLY_CORRECT, due to bash set -o posix.
1973         Reported by Dustin J. Mitchell.
1974
1975 2010-09-05  Bruno Haible  <bruno@clisp.org>
1976
1977         gnulib-tool: Highlight the changed options.
1978         * gnulib-tool (func_usage): Display the --import, --add-import,
1979         --remove-import explanations in bold font.
1980
1981 2010-09-06  Karl Berry  <karl@gnu.org>
1982
1983         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
1984
1985 2010-09-05  Bruno Haible  <bruno@clisp.org>
1986
1987         uniwidth/width: Update comment.
1988         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
1989         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
1990
1991 2010-09-05  Bruno Haible  <bruno@clisp.org>
1992
1993         isinf, isnan: Relax license.
1994         * modules/isinf (License): Change from GPL to LGPL, with consent from
1995         Ben Pfaff.
1996         * modules/isnan (License): Likewise.
1997         Requested by Ludovic Courtès.
1998
1999 2010-09-04  Bruno Haible  <bruno@clisp.org>
2000
2001         gnulib-tool: Help migration from --import to --add-import or --update.
2002         * gnulib-tool: Emit a verbose error message when --import is used
2003         without any module name.
2004
2005 2010-09-04  Bruno Haible  <bruno@clisp.org>
2006
2007         Update doc about gnulib-tool.
2008         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
2009         'gnulib-tool --update' in more detail.
2010         Reported by Eric Blake.
2011
2012 2010-09-04  Bruno Haible  <bruno@clisp.org>
2013
2014         gnulib-tool: Change --import. New options --add/remove-import.
2015         * gnulib-tool: New options --add-import, --remove-import.
2016         (func_usage): Document them.
2017         (have_associative): Define always.
2018         (func_import): In import mode, don't merge the specified settings with
2019         the cached settings. Implement remove-import mode.
2020         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
2021         Explain when to use them versus --import.
2022         (Simple update): Use --add-import instead of --import.
2023         * NEWS: Mention the change.
2024
2025 2010-09-04  Bruno Haible  <bruno@clisp.org>
2026
2027         * doc/gnulib-tool.texi (Initial import): Update paragraph about
2028         separate gnulib.mk.
2029
2030 2010-09-04  Bruno Haible  <bruno@clisp.org>
2031
2032         gnulib-tool: Don't talk about CVS any more.
2033         * gnulib-tool (func_usage, func_import): Write "version control"
2034         instead of CVS.
2035
2036 2010-09-04  Jim Meyering  <meyering@redhat.com>
2037
2038         maint.mk: avoid obscure sc_copyright_check failure in coreutils
2039         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
2040         false positives (whose names may be ill-chosen) when searching
2041         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
2042         would cause a false-positive.
2043
2044         avoid coreutils "make distcheck" failure
2045         Coreutils tests with an absolute build directory name that contains
2046         a space.  Not quoting this directory name caused a failure.
2047         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
2048         * tests/test-vc-list-files-cvs.sh: Likewise.
2049
2050 2010-09-04  Bruno Haible  <bruno@clisp.org>
2051
2052         gnulib-tool: Avoid error when run in a package without Makefile.am.
2053         * gnulib-tool: When collecting the m4dirs in a package that does not
2054         have a Makefile.am, eliminate those directories that contain no
2055         gnulib-cache.m4. Fix expression that counts these directories.
2056
2057 2010-09-04  Bruno Haible  <bruno@clisp.org>
2058
2059         update-copyright test: Improve output when perl is missing or too old.
2060         * tests/test-update-copyright.sh: Move test of Perl version down after
2061         the test whether Perl exists. Provide an explanation relating Perl's
2062         error message to Automake's SKIP: message.
2063
2064 2010-09-04  Bruno Haible  <bruno@clisp.org>
2065
2066         Don't augment PATH in TESTS_ENVIRONMENT.
2067         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
2068         set abs_aux_dir instead of augmenting PATH.
2069         * modules/vc-list-files-tests (Makefile.am): Likewise.
2070         * tests/test-update-copyright.sh: Augment PATH here.
2071         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
2072         path_prepend_.
2073         * tests/test-vc-list-files-git.sh: Likewise.
2074
2075 2010-09-04  Jim Meyering  <meyering@redhat.com>
2076
2077         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
2078         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
2079
2080 2010-09-04  Bruno Haible  <bruno@clisp.org>
2081
2082         strdup: Fix compilation error in C++ mode.
2083         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
2084         the macro.
2085
2086 2010-09-04  Bruno Haible  <bruno@clisp.org>
2087
2088         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
2089         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
2090         macro into a function.
2091         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
2092
2093 2010-09-04  Bruno Haible  <bruno@clisp.org>
2094
2095         Set PATH_SEPARATOR the same way autoconf does.
2096         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
2097         the value of PATH_SEPARATOR the same way autoconf-generated configure
2098         scripts do.
2099         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
2100         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
2101
2102 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2103
2104         Set PATH_SEPARATOR the same way autoconf does.
2105         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
2106         the same way autoconf-generated configure scripts do.
2107         * posix-modules: Likewise.
2108
2109 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2110
2111         hash: fix safe_hasher const typo
2112         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
2113         const; otherwise, there is a type error later.
2114
2115 2010-09-02  Jim Meyering  <meyering@redhat.com>
2116
2117         test-update-copyright.sh: require perl 5.8.0
2118         * tests/test-update-copyright.sh: Require 5.8.0,
2119         which Tom G. Christensen has confirmed is adequate,
2120         while 5.6.1 is not.
2121
2122 2010-09-02  Eric Blake  <eblake@redhat.com>
2123
2124         tests: init.sh improvements for re-exec'ing with zsh
2125         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
2126         -vx through shell re-exec.
2127         Reported by Tom G. Christensen.
2128
2129         wctype: fix typo in previous commit
2130         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
2131         Reported by Ludovic Courtès.
2132
2133 2010-09-02  Jim Meyering  <meyering@redhat.com>
2134
2135         test-update-copyright.sh: skip test if Perl is too old
2136         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
2137         Reported by Tom G. Christensen.
2138
2139 2010-09-02  Bruno Haible  <bruno@clisp.org>
2140
2141         wctype: Avoid compilation error on IRIX 6.5.30.
2142         * lib/wctype.in.h (iswblank): Declare with a replacement if
2143         REPLACE_ISWBLANK is set.
2144         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
2145         declared. Set REPLACE_ISWBLANK.
2146         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
2147         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
2148         * doc/posix-headers/wctype.texi: Likewise.
2149         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2150
2151 2010-09-01  Bruno Haible  <bruno@clisp.org>
2152
2153         New module 'socketlib'.
2154         * modules/socketlib: New file.
2155         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
2156         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
2157         * modules/sockets (Depends-on): Add socketlib.
2158         Suggested by Sam Steingold <sds@gnu.org>.
2159
2160 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
2161
2162         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
2163
2164         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
2165         when one needs search access to a directory but not read access.
2166         On systems where it is available, it works in some cases where
2167         O_RDONLY does not, namely on directories that are searchable but
2168         not readable, and which need only to be searchable.  If O_SEARCH
2169         is not available, fall back to the traditional method of using
2170         O_RDONLY.
2171
2172         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
2173         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
2174         when opening a directory that needs only to be searchable.
2175         * lib/chdir-safer.c (chdir_no_follow): Likewise.
2176         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
2177         * lib/openat-proc.c (openat_proc_name): Likewise.
2178         * lib/openat.c (openat_needs_fchdir): Likewise.
2179         * lib/save-cwd.c (save_cwd): Likewise.
2180         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
2181
2182 2010-08-28  Bruno Haible  <bruno@clisp.org>
2183
2184         New module 'host-cpu-c-abi'.
2185         * modules/host-cpu-c-abi: New file.
2186         * m4/host-cpu-c-abi.m4: New file, based on part of
2187         clisp/src/m4/general.m4.
2188         Requested by Sam Steingold <sds@gnu.org>.
2189
2190 2010-08-31  Eric Blake  <eblake@redhat.com>
2191         and Jim Meyering  <meyering@redhat.com>
2192
2193         hash: factor, and guard against misbehaving hasher function
2194         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
2195         of table->hasher's return value.  Also protect against a hash value
2196         so large that adding it to table->bucket results in a NULL pointer.
2197         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
2198         Use it in place of open-coded check-and-abort.
2199
2200 2010-08-30  Bruno Haible  <bruno@clisp.org>
2201
2202         hash: silence spurious clang warning
2203         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
2204         Reported by Eric Blake.
2205
2206 2010-08-30  Eric Blake  <eblake@redhat.com>
2207
2208         strstr, memmem, strcasestr: avoid leaked shell message
2209         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
2210         FreeBSD.
2211         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
2212         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
2213
2214         tests: silence clang warning
2215         * tests/test-malloca.c (do_allocation): Avoid dead store.
2216
2217 2010-08-29  Bruno Haible  <bruno@clisp.org>
2218
2219         gettext: Fix recent mistake.
2220         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
2221
2222 2010-08-29  Bruno Haible  <bruno@clisp.org>
2223
2224         selinux-h: Offer a --without-selinux option.
2225         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
2226         --without-selinux was specified, skip all tests and define
2227         HAVE_SELINUX_SELINUX_H to 0.
2228         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
2229         set LIB_SELINUX to empty.
2230         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
2231         gl_LIBSELINUX. If --without-selinux was specified, replace
2232         selinux/context.h.
2233         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
2234
2235 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2236             Bruno Haible  <bruno@clisp.org>
2237
2238         Make the module 'realloc-gnu' work again on AIX and OSF/1.
2239         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
2240         of HAVE_REALLOC.
2241         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
2242         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
2243         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
2244         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2245
2246 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2247             Bruno Haible  <bruno@clisp.org>
2248
2249         Make the module 'calloc-gnu' work again on AIX and OSF/1.
2250         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
2251         HAVE_CALLOC.
2252         * lib/xmalloc.c: Update accordingly.
2253         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
2254         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
2255         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2256
2257 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2258             Bruno Haible  <bruno@clisp.org>
2259
2260         Make the module 'malloc-gnu' work again on AIX and OSF/1.
2261         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
2262         HAVE_MALLOC.
2263         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
2264         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
2265         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
2266
2267 2010-08-29  Bruno Haible  <bruno@clisp.org>
2268
2269         Update modules list.
2270         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
2271         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
2272         (String handling <string.h>): Add astrxfrm.
2273         (File system functions): Add readlinkat.
2274
2275 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2276
2277         Tests for module 'realloc-gnu'.
2278         * modules/realloc-gnu-tests: New file.
2279         * tests/test-realloc-gnu.c: New file.
2280
2281         Tests for module 'calloc-gnu'.
2282         * modules/calloc-gnu-tests: New file.
2283         * tests/test-calloc-gnu.c: New file.
2284
2285         Tests for module 'malloc-gnu'.
2286         * modules/malloc-gnu-tests: New file.
2287         * tests/test-malloc-gnu.c: New file.
2288
2289 2010-08-28  Bruno Haible  <bruno@clisp.org>
2290
2291         Rename module 'realloc' -> 'realloc-gnu'.
2292         * modules/realloc-gnu: New file, copied from modules/realloc.
2293         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
2294         obsolete.
2295         * modules/mgetgroups (Depends-on): Update.
2296         * doc/posix-functions/realloc.texi: Update.
2297         * NEWS: Mention the change.
2298
2299         Rename module 'calloc' -> 'calloc-gnu'.
2300         * modules/calloc-gnu: New file, copied from modules/calloc.
2301         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
2302         obsolete.
2303         * doc/posix-functions/calloc.texi: Update.
2304         * NEWS: Mention the change.
2305
2306         Rename module 'malloc' -> 'malloc-gnu'.
2307         * modules/malloc-gnu: New file, copied from modules/malloc.
2308         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
2309         obsolete.
2310         * modules/argp (Depends-on): Update.
2311         * modules/regex (Depends-on): Update.
2312         * doc/posix-functions/malloc.texi: Update.
2313         * NEWS: Mention the change.
2314
2315 2010-08-28  Eric Blake  <eblake@redhat.com>
2316
2317         pread, pwrite: add missing dependency
2318         * modules/pread (Depends-on): Add extensions.
2319         * modules/pwrite (Depends-on): Likewise.
2320
2321 2010-08-28  Bruno Haible  <bruno@clisp.org>
2322
2323         unistr/u*-strchr: Fix tests dependencies.
2324         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
2325         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
2326         Reported by Ian Beckwith <ianb@erislabs.net>.
2327
2328 2010-08-28  Bruno Haible  <bruno@clisp.org>
2329
2330         read-file: Don't occupy too much unused memory.
2331         * lib/read-file.c (fread_file): Shrink the buffer at the end.
2332
2333 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
2334             Eric Blake  <eblake@redhat.com>
2335             Bruno Haible  <bruno@clisp.org>
2336
2337         read-file: Avoid memory reallocations with regular files.
2338         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
2339         (fread_file): With regular files, use the remaining length as the
2340         initial buffer size.  Check against overflow.
2341         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
2342         sys_stat.
2343
2344 2010-08-28  Bruno Haible  <bruno@clisp.org>
2345
2346         ftello: Relax license.
2347         * modules/ftello (License): Relax to LGPLv2+.
2348         Reported by Eric Blake.
2349
2350 2010-08-28  Bruno Haible  <bruno@clisp.org>
2351
2352         Avoid relocwrapper link errors due to gnulib replacement functions.
2353         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
2354         function.
2355         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2356
2357 2010-08-28  Bruno Haible  <bruno@clisp.org>
2358
2359         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
2360         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
2361         defined.
2362         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
2363         Suggested by Eric Blake.
2364
2365 2010-08-28  Bruno Haible  <bruno@clisp.org>
2366
2367         sys_socket, netdb: Ensure socklen_t gets defined.
2368         * modules/sys_socket (Depends-on): Add socklen.
2369         * modules/netdb (Depends-on): Likewise.
2370         * modules/getaddrinfo (Depends-on): Remove socklen.
2371         * modules/getsockopt (Depends-on): Likewise.
2372         * modules/setsockopt (Depends-on): Likewise.
2373         * tests/test-sys_socket.c: Check that socklen_t is defined.
2374         * tests/test-netdb.c: Likewise.
2375         * m4/socklen.m4: Update comments.
2376         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2377
2378 2010-08-27  Eric Blake  <eblake@redhat.com>
2379
2380         login_tty: add missing dependency
2381         * modules/login_tty (Depends-on): Add pty.
2382
2383 2010-08-26  Eric Blake  <eblake@redhat.com>
2384
2385         lib-symbol-versions: fix m4 quoting
2386         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
2387         format for AC_LINK_IFELSE.
2388
2389         glob: fix compile test
2390         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
2391
2392         btowc: fix missing file
2393         * modules/btowc (Files): Also ship locale-fr.m4.
2394
2395         lseek: fix link test
2396         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
2397         AC_LINK_IFELSE.
2398
2399         include_next: silence autoconf 2.68 warning
2400         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
2401         AC_COMPILE_IFELSE as special.
2402         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
2403         autoconf < 2.68.
2404
2405         acl: fix compilation test
2406         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
2407         AC_COMPILE_IFELSE.
2408
2409 2010-08-26  Bruno Haible  <bruno@clisp.org>
2410
2411         Modernize AC_TRY_RUN invocations.
2412         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
2413         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
2414         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
2415         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
2416         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
2417         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2418         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
2419         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
2420         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2421         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2422         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
2423         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
2424         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
2425         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
2426         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
2427         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
2428         gl_MBRLEN_NUL_RETVAL): Likewise.
2429         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
2430         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
2431         Likewise.
2432         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
2433         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
2434         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
2435         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
2436         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
2437         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
2438         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
2439         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
2440         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
2441         Likewise.
2442         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
2443         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
2444         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
2445         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2446         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2447         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
2448         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
2449         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
2450         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
2451         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
2452
2453 2010-08-26  Bruno Haible  <bruno@clisp.org>
2454
2455         Modernize AC_TRY_LINK invocations.
2456         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
2457         AC_TRY_LINK.
2458         * m4/argp.m4 (gl_ARGP): Likewise.
2459         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2460         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2461         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
2462         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
2463         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
2464         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
2465         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2466         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2467         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
2468         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
2469         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
2470         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
2471         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
2472         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2473         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
2474         * m4/hostent.m4 (gl_HOSTENT): Likewise.
2475         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
2476         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
2477         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
2478         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
2479         Likewise.
2480         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
2481         Likewise.
2482         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
2483         Likewise.
2484         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
2485         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
2486         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
2487         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2488         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
2489         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
2490         * m4/servent.m4 (gl_SERVENT): Likewise.
2491         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
2492         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2493         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2494         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2495         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
2496         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2497         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2498         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2499         * modules/tsearch-tests (configure.ac): Likewise.
2500
2501 2010-08-26  Bruno Haible  <bruno@clisp.org>
2502
2503         Modernize AC_TRY_COMPILE invocations.
2504         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
2505         AC_TRY_COMPILE.
2506         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
2507         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
2508         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
2509         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
2510         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
2511         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
2512         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
2513         * m4/lock.m4 (gl_LOCK): Likewise.
2514         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
2515         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
2516         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
2517         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2518         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
2519         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
2520         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
2521         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
2522         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
2523         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
2524         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
2525         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
2526         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
2527         extraneous semicolon.
2528
2529 2010-08-26  Jim Meyering  <meyering@redhat.com>
2530
2531         stat-time: relax license LGPL
2532         * modules/stat-time (License): Change from GPL to LGPL,
2533         with consent from all contributors, for use in libguile.
2534         Requested by Ludovic Courtès.
2535
2536 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
2537
2538         poll: return immediately on POLLHUP.
2539         * lib/poll.c (poll): Always set timeout before wait_timeout is
2540         computed.
2541
2542 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2543
2544         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
2545         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
2546         rmdir ("dir/.//"), unlinkat.
2547
2548 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2549
2550         stdbool: avoid spurious failure with modern xlc
2551         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2552
2553 2010-08-24  Bruno Haible  <bruno@clisp.org>
2554
2555         getloadavg: simplify code
2556         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
2557         gl_have_func. Update comments.
2558
2559 2010-08-24  Eric Blake  <eblake@redhat.com>
2560
2561         getloadavg: don't define SVR4 on cygwin
2562         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
2563         only define SVR4 when -lkvm is required.
2564         Reported by Yaakov Selkowitz.
2565
2566 2010-08-24  Bruno Haible  <bruno@clisp.org>
2567
2568         priv-set: fix comment
2569         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
2570
2571 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2572
2573         priv-set: fix comments
2574         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
2575         to match code, as suggested by David Bartley in:
2576         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
2577
2578 2010-08-23  Eric Blake  <eblake@redhat.com>
2579
2580         stdbool: avoid rejecting clang
2581         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
2582         * tests/test-stdbool.c: Enable more tests if using the system
2583         <stdbool.h> instead of the gnulib replacement.
2584         (main): Move xlc bug test to a runtime test for all compilers.
2585         Reported by Anders Kaseorg.
2586
2587         argz: fix shell quoting issue
2588         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
2589         Reported by Charles Wilson.
2590
2591 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
2592             Erik Faye-Lund <kusmabite@gmail.com>
2593
2594         poll, select: handle ERROR_BROKEN_PIPE.
2595         * lib/poll.c (win32_compute_revents): Return POLLHUP when
2596         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2597         * lib/select.c (win32_compute_revents): Do not mark a pipe
2598         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
2599
2600 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
2601
2602         fts: allow compilation with C++
2603         * lib/fts_.h: Specify extern "C" linkage with C++.
2604
2605 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2606
2607         Fix gnulib-tool sed script de-commentation for AIX sed.
2608         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
2609         sed.
2610
2611 2010-08-17  Eric Blake  <eblake@redhat.com>
2612
2613         test-stddef: test for (some) offsetof bugs
2614         * tests/test-stddef.c: Enhance test to ensure correct type of
2615         offsetof.
2616         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
2617         that we are not fixing at this time.
2618
2619 2010-08-15  Bruno Haible  <bruno@clisp.org>
2620
2621         stpncpy: Allow stpncpy to be defined as a macro.
2622         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
2623         if it's already correctly declared.
2624         * lib/string.in.h (stpncpy): Undefine before redefining.
2625         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
2626
2627 2010-08-14  Bruno Haible  <bruno@clisp.org>
2628
2629         Rename module 'memxfrm' to 'amemxfrm'.
2630         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
2631         (amemxfrm): Renamed from memxfrm.
2632         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
2633         (amemxfrm): Renamed from memxfrm.
2634         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
2635         * NEWS: Mention the change.
2636         * MODULES.html.sh (String handling <string.h>): Update.
2637         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
2638         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
2639         * lib/unicase/u16-casexfrm.c: Likewise.
2640         * lib/unicase/u32-casexfrm.c: Likewise.
2641         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
2642         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
2643         * lib/uninorm/u16-normxfrm.c: Likewise.
2644         * lib/uninorm/u32-normxfrm.c: Likewise.
2645         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
2646         memxfrm.
2647         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
2648         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
2649         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
2650         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
2651         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
2652         Suggested by Paul Eggert.
2653
2654 2010-08-14  Bruno Haible  <bruno@clisp.org>
2655
2656         Tests for module 'astrxfrm'.
2657         * modules/astrxfrm-tests: New file.
2658         * tests/test-astrxfrm.c: New file.
2659
2660         New module 'astrxfrm'.
2661         * lib/astrxfrm.h: New file.
2662         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
2663         * modules/astrxfrm: New file.
2664
2665 2010-08-14  Reuben Thomas <rrt@sc3d.org>
2666
2667         regex: Tweak doc.
2668         * doc/regex.texi (Overview): Don't mention regex.c.
2669         (GNU Regular Expression Compiling): Likewise.
2670         (Match-end-of-line Operator): Mention 'not_eol'.
2671
2672 2010-08-14  Brian Gough  <bjg@gnu.org>
2673             Bruno Haible  <bruno@clisp.org>
2674
2675         git-merge-changelog: add doc relating to use with bzr and hg.
2676         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
2677
2678 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
2679
2680         pthread: fix pthread.h creation for srcdir != builddir
2681         * modules/pthread (Makefile.am): Fix the rule to work also in a
2682         non-srcdir build.
2683
2684 2010-08-13  Karl Berry  <karl@gnu.org>
2685
2686         * doc/regex.texi (Predefined Syntaxes): @smallexample.
2687         * doc/posix-*/*: force line break before @url of POSIX
2688         specifications.
2689         Suggested by Werner Lemberg.
2690
2691 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
2692
2693         strtod: fix const diagnostic
2694         * lib/strtod.c (strtod): Don't assign const char * to char *,
2695         as this elicits a warning from GCC when warnings are enabled.
2696
2697 2010-08-10  Pádraig Brady <P@draigbrady.com>
2698         and Eric Blake  <eblake@redhat.com>
2699
2700         copy-acl: ignore ENOTSUP on HP-UX
2701         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
2702         so that it is available for HP-UX.
2703         * lib/copy-acl.c (qcopy_acl): Use it.
2704         Reported by Patrick M. Callahan.
2705
2706 2010-08-10  Eric Blake  <eblake@redhat.com>
2707
2708         open, chown: relax license
2709         * modules/open (License): Change to LGPLv2+, with consent by all
2710         authors, for use in augeas.
2711         * modules/chown (License): Likewise.
2712         * modules/lchown (Likewise): Likewise.
2713         Requested by Adam Stokes.
2714
2715 2010-08-09  Karl Berry  <karl@gnu.org>
2716
2717         * build-aux/ar-lib: new file, import from Automake.
2718         * config/srclist.txt: autocheck for updates.
2719
2720 2010-08-09  Eric Blake  <eblake@redhat.com>
2721
2722         readlinkat: adjust client modules
2723         * modules/areadlinkat (Depends-on): Use readlinkat, not
2724         symlinkat.
2725         * modules/areadlinkat-with-size (Depends-on): Likewise.
2726
2727         mknod: be more vocal about danger of running tests as root
2728         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
2729         root, since that is just asking for problems.
2730         Suggested by Bruno Haible, based on a report by Rainer Tammer.
2731
2732         readlinkat: split into its own module
2733         * modules/symlinkat: Split readlinkat...
2734         * modules/readlinkat: ...into separate module.
2735         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
2736         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
2737         * lib/symlinkat.c (readlinkat): Move...
2738         * lib/readlinkat.c: ...into new file.
2739         * modules/symlinkat-tests: Split readlinkat test...
2740         * modules/readlinkat-tests: ...into separate module.
2741         * tests/test-symlinkat.c: Split...
2742         * tests/test-readlinkat.c: ...into new file.
2743         * NEWS: Document the split.
2744         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
2745         * lib/unistd.in.h (readlinkat): Likewise.
2746         Suggested by Bruno Haible.
2747
2748 2010-08-08  Bruno Haible  <bruno@clisp.org>
2749
2750         memxfrm: Speed up.
2751         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
2752         that usually only one call to strxfrm is necessary for each string
2753         part.
2754         Reported by Paul Eggert <eggert@cs.ucla.edu>.
2755
2756 2010-08-07  Karl Berry  <karl@gnu.org>
2757
2758         * doc/posix-headers/limits.texi,
2759         * doc/posix-functions/malloc.texi,
2760         * doc/posix-functions/strsignal.texi: missing @item.
2761         * doc/ld-version-script.texi: spurious leading i.
2762         * doc/regex.texi (Interval Operators): no commas inside @var.
2763
2764 2010-08-01  Bruno Haible  <bruno@clisp.org>
2765
2766         Integrate the regex documentation.
2767         * doc/gnulib.texi: Define 'cn' index.
2768         (Regular expressions): New a chapter that includes regex.texi and
2769         regexprops-generic.texi.
2770         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
2771         syntax.
2772
2773         Whitespace cleanup.
2774         * doc/regex.texi: Remove trailing spaces.
2775
2776         Add regex documentation.
2777         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
2778         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
2779         Written by Kathy A. Hargreaves and Karl Berry.
2780
2781 2010-08-01  Bruno Haible  <bruno@clisp.org>
2782
2783         link: Update documentation.
2784         * doc/posix-functions/link.texi: Update regarding Solaris.
2785
2786 2010-07-31  Bruno Haible  <bruno@clisp.org>
2787
2788         Update modules list.
2789         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
2790         (String handling <string.h>): Add memcmp2, memxfrm.
2791         (Container data structures): Add xlist, xsublist, xoset.
2792         (Core language properties): Add alignof, unused-parameter.
2793         (Process control, Numeric conversion functions <stdlib.h>): Renamed
2794         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
2795         (Unibyte characters <ctype.h>): New section.
2796         (String handling <string.h>): New section.
2797         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
2798         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
2799         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
2800         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
2801         tan, tanh, tanl, y0, y1, yn.
2802         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
2803         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
2804         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
2805         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
2806         unlockpt, vdprintf, vdprintf-posix.
2807         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
2808         (File system functions): Add concat-filename, sys_file, sys_ioctl,
2809         xconcat-filename.
2810         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
2811         getdtablesize, pipe2, pipe2-safer.
2812         (Security): New section.
2813         (Networking functions): Add accept4.
2814         (Signal handling): Add sigpipe.
2815         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
2816         mbmemcasecoll.
2817         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
2818         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
2819         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
2820         pipe-filter-ii.
2821         (Misc): Add argp-version-etc, login_tty, parse-duration.
2822
2823 2010-07-31  Bruno Haible  <bruno@clisp.org>
2824
2825         Improve doc in MODULES.html.
2826         * modules/linkat (Description): Add the word "function".
2827         * modules/mkfifo (Description): Likewise.
2828         * modules/mknod (Description): Likewise.
2829         * modules/remove (Description): Likewise.
2830         * modules/renameat (Description): Likewise.
2831         * modules/stat (Description): Likewise.
2832         * modules/symlink (Description): Likewise.
2833         * modules/unlink (Description): Likewise.
2834
2835 2010-07-31  Bruno Haible  <bruno@clisp.org>
2836
2837         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
2838         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
2839         option --enable/disable-c++ instead of --enable/disable-cxx.
2840         * NEWS: Mention the change.
2841
2842 2010-07-31  Bruno Haible  <bruno@clisp.org>
2843
2844         readlink, areadlink: Relax test a bit.
2845         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
2846         alternative to ENOTDIR.
2847         * tests/test-areadlink.h (test_areadlink): Likewise.
2848         Reported by Rainer Tammer.
2849
2850 2010-07-31  Bruno Haible  <bruno@clisp.org>
2851
2852         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
2853         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
2854         character, perform the search using U_STRCHR.
2855         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
2856         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
2857         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
2858         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
2859         Suggested by Paolo Bonzini.
2860
2861 2010-07-31  Bruno Haible  <bruno@clisp.org>
2862
2863         unistr/u*-strstr: Fix dependencies.
2864         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
2865         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
2866         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
2867
2868 2010-07-31  Bruno Haible  <bruno@clisp.org>
2869
2870         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
2871         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
2872         the beginning of the loop.
2873         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
2874         cases in 'switch' statement.
2875
2876         unistr/u8-strchr: Fix several bugs.
2877         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
2878         the string. When not found, return NULL, not a pointer near the end.
2879
2880         More tests for unistr/u8-strchr.
2881         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
2882         that the function does not read past the first occurrence of the byte
2883         being searched.
2884         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
2885         * tests/unistr/test-u16-strchr.c (main): New function.
2886         * tests/unistr/test-u32-strchr.c (main): New function.
2887
2888 2010-07-31  Bruno Haible  <bruno@clisp.org>
2889
2890         posix-modules: Ignore backup files of documentation files.
2891         * posix-modules: grep only through files named *.texi.
2892
2893 2010-07-31  Bruno Haible  <bruno@clisp.org>
2894
2895         symlinkat: Fix documentation.
2896         * doc/posix-functions/readlinkat.texi: Fix module name.
2897
2898 2010-07-31  Bruno Haible  <bruno@clisp.org>
2899
2900         fchownat: Replace also when chown has the trailing slash bug.
2901         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
2902         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
2903         introduced on 2010-04-10.
2904         Reported by Rainer Tammer.
2905
2906 2010-07-31  Bruno Haible  <bruno@clisp.org>
2907
2908         linkat: Work around AIX 7.1 bug.
2909         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
2910         whether linkat handles trailing slash correctly. If not, replace linkat
2911         and define LINKAT_TRAILING_SLASH_BUG.
2912         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
2913         check whether (fd1,file1) points to a directory if file1 or file2 ends
2914         in a slash. Code taken from lib/link.c.
2915         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
2916         Reported by Rainer Tammer.
2917
2918 2010-07-31  Bruno Haible  <bruno@clisp.org>
2919
2920         Correctly determine whether pow is available in libc on AIX 7 with xlc.
2921         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
2922         This disables an xlc optimization that was causing wrong test results.
2923         Reported by Rainer Tammer.
2924
2925 2010-07-31  Bruno Haible  <bruno@clisp.org>
2926
2927         iconv: Work around AIX 6.1..7.1 bug.
2928         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
2929         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
2930         cross-compiling, guess no on all versions of AIX.
2931         Reported by Rainer Tammer.
2932
2933 2010-07-31  Bruno Haible  <bruno@clisp.org>
2934
2935         readlink: Relax test a bit.
2936         * tests/test-readlink.h (test_readlink): Allow different errno value
2937         when readlink is called with a file name that ends in / and refers to
2938         a file.
2939         Suggested by Eric Blake.
2940         Reported by Rainer Tammer.
2941
2942 2010-07-31  Bruno Haible  <bruno@clisp.org>
2943
2944         copysign: Does not require -lm on glibc systems.
2945         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
2946         gl_COMMON_DOUBLE_MATHFUNC.
2947         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
2948
2949 2010-07-31  Bruno Haible  <bruno@clisp.org>
2950
2951         duplocale: Work around AIX 7.1 bug.
2952         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
2953         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
2954         * lib/duplocale.c (rpl_duplocale): Update comment.
2955         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
2956         Reported by Rainer Tammer.
2957
2958 2010-07-30  Bruno Haible  <bruno@clisp.org>
2959
2960         dirfd: Avoid link error on AIX 7.1.
2961         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
2962         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
2963         exist, set REPLACE_DIRFD.
2964         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
2965         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
2966         * doc/posix-functions/dirfd.texi: Update.
2967         Reported by Rainer Tammer.
2968
2969 2010-07-30  Eric Blake  <eblake@redhat.com>
2970
2971         strtod: next round of AIX fixes
2972         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
2973         exponent.
2974         * tests/test-strtod.c (main): Enhance tests.
2975         * doc/posix-functions/strtod.texi (strtod): Document next bug.
2976         Reported by Rainer Tammer.
2977
2978         futimens: fix configure check
2979         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
2980         Reported by Bruno Haible.
2981
2982 2010-07-30  Bruno Haible  <bruno@clisp.org>
2983
2984         getline: Update regarding AIX.
2985         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
2986         Reported by Rainer Tammer.
2987
2988 2010-07-30  Bruno Haible  <bruno@clisp.org>
2989
2990         wcwidth: Drop replacement on AIX 7.
2991         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
2992         AIX 7.
2993         Reported by Rainer Tammer.
2994
2995 2010-07-30  Bruno Haible  <bruno@clisp.org>
2996
2997         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
2998         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
2999         a 'char *'.
3000         Reported by Rainer Tammer.
3001
3002 2010-07-30  Bruno Haible  <bruno@clisp.org>
3003
3004         unlink: Update regarding AIX.
3005         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
3006         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
3007         Reported by Rainer Tammer.
3008
3009 2010-07-30  Bruno Haible  <bruno@clisp.org>
3010
3011         symlink: Update regarding AIX.
3012         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
3013         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
3014         Reported by Rainer Tammer.
3015
3016 2010-07-30  Bruno Haible  <bruno@clisp.org>
3017
3018         strndup: Update regarding AIX.
3019         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
3020         AIX 7.
3021         Reported by Rainer Tammer.
3022
3023 2010-07-30  Bruno Haible  <bruno@clisp.org>
3024
3025         stat: Update regarding AIX.
3026         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
3027         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
3028         Reported by Rainer Tammer.
3029
3030 2010-07-30  Bruno Haible  <bruno@clisp.org>
3031
3032         truncl: Fix autoconf test.
3033         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
3034         whether truncl works.
3035         Reported by Rainer Tammer.
3036
3037 2010-07-30  Bruno Haible  <bruno@clisp.org>
3038
3039         round: Update regarding AIX.
3040         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
3041         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
3042         Reported by Rainer Tammer.
3043
3044 2010-07-30  Bruno Haible  <bruno@clisp.org>
3045
3046         rename: Update regarding AIX.
3047         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
3048         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
3049         Reported by Rainer Tammer.
3050
3051 2010-07-30  Bruno Haible  <bruno@clisp.org>
3052
3053         printf.m4: Update regarding AIX.
3054         * m4/printf.m4: Update comments regarding AIX.
3055         Reported by Rainer Tammer.
3056
3057 2010-07-30  Bruno Haible  <bruno@clisp.org>
3058
3059         iconv: Update regarding AIX.
3060         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
3061         AIX 7.
3062         Reported by Rainer Tammer.
3063
3064 2010-07-30  Bruno Haible  <bruno@clisp.org>
3065
3066         getopt: Update regarding AIX.
3067         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
3068         no on AIX.
3069         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
3070         Reported by Rainer Tammer.
3071
3072 2010-07-30  Bruno Haible  <bruno@clisp.org>
3073
3074         ldexpl; Update regarding AIX.
3075         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
3076         on AIX 7.
3077         Reported by Rainer Tammer.
3078
3079 2010-07-30  Bruno Haible  <bruno@clisp.org>
3080
3081         frexpl: Update regarding AIX.
3082         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
3083         on AIX 7.
3084         Reported by Rainer Tammer.
3085
3086 2010-07-30  Bruno Haible  <bruno@clisp.org>
3087
3088         open, fopen: Update regarding AIX.
3089         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
3090         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3091         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
3092         * doc/posix-functions/fopen.texi: Likewise.
3093         Reported by Rainer Tammer.
3094
3095 2010-07-30  Bruno Haible  <bruno@clisp.org>
3096
3097         chown: Update doc regarding AIX.
3098         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
3099         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
3100         Reported by Rainer Tammer.
3101
3102 2010-07-30  Eric Blake  <eblake@redhat.com>
3103
3104         strtod: fix bug in replacement function on AIX
3105         * lib/strtod.c (strtod): Special case broken "0x" parse in
3106         underlying strtod.
3107         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
3108         * doc/posix-functions/strtod.texi (strtod): Likewise.
3109         Reported by Rainer Tammer.
3110
3111 2010-07-30  Bruno Haible  <bruno@clisp.org>
3112
3113         mbrlen: Fix cross-compilation guess for AIX.
3114         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
3115         guess. Leftover from 2008-12-22.
3116
3117 2010-07-30  Bruno Haible  <bruno@clisp.org>
3118
3119         mbrtowc: Fix cross-compilation guess for AIX.
3120         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
3121         guess. Leftover from 2008-12-21.
3122
3123 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
3124
3125         init.sh: work around trap limitation of some shells
3126         * tests/init.sh (setup_): Move exit trap outside of shell function.
3127
3128 2010-07-29  Eric Blake  <eblake@redhat.com>
3129
3130         strtod: aid debugging
3131         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
3132         understanding why strtod is rejected.
3133
3134 2010-07-28  Bruno Haible  <bruno@clisp.org>
3135
3136         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
3137         * lib/unistr/u8-chr.c: Include <string.h>.
3138         * tests/unistr/test-u8-chr.c: Likewise.
3139         * tests/unistr/test-u16-chr.c: Likewise.
3140         * tests/unistr/test-u32-chr.c: Likewise.
3141         * tests/unistr/test-u8-strchr.c: Likewise.
3142         * tests/unistr/test-u16-strchr.c: Likewise.
3143         * tests/unistr/test-u32-strchr.c: Likewise.
3144         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
3145         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3146         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
3147         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
3148
3149 2010-07-28  Bruno Haible  <bruno@clisp.org>
3150
3151         Use spaces for indentation, not tabs.
3152         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3153
3154 2010-07-27  Bruno Haible  <bruno@clisp.org>
3155
3156         mbspcasecmp: Fix function specification.
3157         * lib/string.in.h (mbspcasecmp): Fix specification comment.
3158         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
3159         Reported by Eric Blake <eblake@redhat.com>.
3160
3161 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
3162
3163         timespec: use cast and not conditional, as truncation isn't possible
3164         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
3165         instead of a conditional.  Comment about the situation in more detail.
3166         This undoes most of the 2009-10-29 patch.
3167
3168 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
3169
3170         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
3171         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
3172         * lib/unistr/u8-strchr.c: Likewise.
3173         * modules/unistr/u8-chr: Depend on memchr.
3174
3175         unistr/u*-strchr: add tests
3176         * modules/unistr/u8-strchr-tests: New file.
3177         * modules/unistr/u16-strchr-tests: New file.
3178         * modules/unistr/u32-strchr-tests: New file.
3179         * tests/unistr/test-strchr.h: New file.
3180         * tests/unistr/test-u8-strchr.c: New file.
3181         * tests/unistr/test-u16-strchr.c: New file.
3182         * tests/unistr/test-u32-strchr.c: New file.
3183
3184         unistr/u*-chr: test multibyte sequences more
3185         * tests/unistr/test-chr.h: Do complete testing of the characters in the
3186         test vector.
3187         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
3188         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
3189         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
3190
3191         unistr/u*-chr: test multibyte sequences
3192         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
3193
3194         unistr/u*-chr: prepare for multibyte tests
3195         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
3196         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
3197         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
3198         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
3199         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
3200         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
3201
3202 2010-07-18  Bruno Haible  <bruno@clisp.org>
3203
3204         unistr/u8-strchr: Optimize non-ASCII argument case.
3205         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
3206         because the first byte often matches anyway.
3207         Reported by Pádraig Brady <P@draigbrady.com>.
3208
3209 2010-07-15  Karl Berry  <karl@gnu.org>
3210
3211         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
3212
3213 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
3214
3215         getcwd: on Solaris, work better if ancestors are inaccessible
3216         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
3217         buffer and size, try again with a large buffer.  This works better
3218         on Solaris, since its getcwd succeeds even if the path to the root
3219         is inaccessible, and this is helpful in common cases such as .zfs
3220         hidden directories.  Problem reported by J Chapman Flack in
3221         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
3222         Use system getcwd if it's declared, not merely if it's partly
3223         working; use the partly-working test only to avoid needless effort
3224         if the system getcwd fails.
3225         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
3226         comment that was already obsolete and is now even more obsolete.
3227         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
3228         now might call strdup.
3229
3230 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
3231
3232         pthread: Add enough so that coreutils/src/sort.c compiles.
3233         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
3234         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
3235         gnulib. Include <sched.h> and <time.h>, as per POSIX.
3236         Include <sys/types.h>, in case it defines pthread_t.
3237         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
3238         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
3239         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
3240         (pthread_rwlockattr_t, pthread_spinlock_t):
3241         New typedefs, if HAVE_PTHREAD_T is not defined.
3242         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
3243         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
3244         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
3245         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
3246         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
3247         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
3248         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
3249         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
3250         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
3251         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
3252         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
3253         New macros.
3254         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
3255         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
3256         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
3257         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
3258         (pthread_spin_unlock): New dummy functions.
3259         (pthread_create): Return EAGAIN; don't set errno.
3260         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
3261         require AC_C_INLINE.
3262         * modules/pthread (Depends-on): Add sched, time.
3263         (pthread.h): Use AM_V_GEN.
3264
3265 2010-07-13  Bruno Haible  <bruno@clisp.org>
3266
3267         striconveh: Don't malloc memory if the result buffer is sufficient.
3268         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
3269         buffer if its size is sufficient.
3270         Reported by Ludovic Courtès <ludo@gnu.org>.
3271
3272 2010-07-13  Bruno Haible  <bruno@clisp.org>
3273
3274         strtod: Add safety check.
3275         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
3276
3277 2010-07-12  Bruno Haible  <bruno@clisp.org>
3278
3279         Unify tests that set gl_cv_func_ldexpl_no_libm.
3280         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
3281         gl_FUNC_LDEXPL.
3282         (gl_FUNC_LDEXPL): Invoke it.
3283         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3284
3285 2010-07-12  Bruno Haible  <bruno@clisp.org>
3286
3287         Unify tests that set gl_cv_func_ldexp_no_libm.
3288         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
3289         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
3290         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
3291         (configure.ac): Simply invoke gl_FUNC_LDEXP.
3292         * modules/strtod (Files): Add m4/ldexp.m4.
3293
3294 2010-07-12  Bruno Haible  <bruno@clisp.org>
3295
3296         Unify tests that set gl_cv_func_frexpl_no_libm.
3297         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
3298         gl_FUNC_FREXPL_NO_LIBM.
3299         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
3300         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
3301
3302 2010-07-12  Bruno Haible  <bruno@clisp.org>
3303
3304         Unify tests that set gl_cv_func_frexp_no_libm.
3305         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
3306         gl_FUNC_FREXP_NO_LIBM.
3307         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
3308         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3309
3310 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3311
3312         memcoll: clarify sizes versus lengths, document better, and tweak perf
3313         * lib/memcoll.c (strcoll_loop, memcoll0):
3314         Improve quality of descriptive comments.  Name variables
3315         consistently as to whether they are lengths (which do not include
3316         terminating null) versus sizes (which do).
3317         * lib/xmemcoll.c (xmemcoll0): Likewise.
3318         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
3319         returned when s1size == 0; this is easier to compile and saves
3320         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
3321
3322 2010-07-12  Bruno Haible  <bruno@clisp.org>
3323
3324         Tests for module '_Exit'.
3325         * modules/_Exit-tests: New file.
3326         * tests/test-_Exit.sh: New file.
3327         * tests/test-_Exit.c: New file.
3328
3329         New module '_Exit'.
3330         * lib/stdlib.in.h (__attribute__): New macro.
3331         (_Exit): New declaration.
3332         * lib/_Exit.c: New file.
3333         * m4/_Exit.m4: New file.
3334         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
3335         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
3336         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
3337         * modules/_Exit: New file.
3338         * tests/test-stdlib-c++.cc (_Exit): Check signature.
3339         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
3340
3341 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
3342
3343         strtod: make it more-accurate typically, and don't require libm
3344         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
3345         Include limits.h.  Don't include string.h.
3346         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
3347         (locale_isspace): New function, so that no casts are needed to
3348         check whether *s is a space.
3349         (ldexp): Provide an unused dummy if not available.
3350         (scale_radix_exp, parse_number, underlying_strtod): New functions.
3351         (strtod): Use them.  This implementation prefers to use the
3352         underlying strtod if available, falling back on our own code
3353         only to fix known bugs.  This is more likely to produce an
3354         accurate result.  Also, it avoids the use of libm functions.
3355         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
3356         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
3357         was absent, but it caused a test failure with coreutils.
3358         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
3359         with libm.
3360         * modules/strtod (Makefile.am, Link): libm is no longer needed.
3361         * modules/strtod-tests (Makefile.am): Likewise.
3362
3363 2010-07-11  Pádraig Brady  <P@draigBrady.com>
3364             Bruno Haible  <bruno@clisp.org>
3365
3366         unistr/u8-strchr: Optimize ASCII argument case.
3367         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
3368
3369 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
3370
3371         (x)memcoll: minor tweaks
3372         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
3373         is after the type that it qualifies.
3374         (memcoll0): Likewise.
3375         * lib/memcoll.h (memcoll0): Likewise.
3376         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
3377         * lib/xmemcoll.h (xmemcoll0): Likewise.
3378         * lib/memcoll.c (memcoll0): Correct the comment.  This function
3379         differs from memcoll in that the NUL byte is part of the argument.
3380         Omit the abort-checks, as performance is a real issue here.  Plus,
3381         the checks were wrong anyway (an off-by-one error).  Omit local
3382         variable 'diff', as it's a bit clearer that way.
3383         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
3384         no longer needed.
3385
3386 2010-07-08  Chen Guo <chenguo4@yahoo.com>
3387
3388         (x)memcoll: speedup when input is known to be NUL delimited
3389         * lib/memcoll.c: Include stdlib.
3390         (memcoll0) New function.
3391         (strcoll_loop) New function, refactored for use in both memcoll
3392         and memcoll0.
3393         * lib/memcoll.h: Add prototype for memcoll0.
3394         * lib/xmemcoll.c: (xmemcoll0) New function.
3395         (collate_error) New function, refactored for use in both xmemcoll
3396         and xmemcoll0.
3397         * lib/xmemcoll.h: Add prototype for xmemcoll0.
3398         * m4/memcoll.m4: add inline invocation.
3399
3400 2010-07-06  Pádraig Brady  <P@draigBrady.com>
3401
3402         * build-aux/bootstrap: Remove any local translations
3403         from the translation project synchronization directory,
3404         so that local only translations are not distributed.
3405
3406 2010-07-04  Bruno Haible  <bruno@clisp.org>
3407
3408         fsusage: Clarify which code applies to which platforms.
3409         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
3410         platform.
3411         * lib/fsusage.c (get_fs_usage): Likewise.
3412
3413 2010-07-04  Bruno Haible  <bruno@clisp.org>
3414
3415         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
3416         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
3417         Reported by Martin Lambers <marlam@marlam.de>.
3418
3419 2010-07-04  Jim Meyering  <meyering@redhat.com>
3420
3421         hash: once again explicitly disallow insertion of NULL
3422         * lib/hash.c (hash_insert0): Reinstate just-removed test:
3423         inserting a NULL pointer cannot work with these functions.
3424         Add a comment with details.
3425         This reverts part of the 2010-07-01 commit, 5bef1a35
3426         "hash: extend module to deal with non-pointer keys".
3427
3428 2010-07-01  Bruno Haible  <bruno@clisp.org>
3429
3430         stdbool: Update doc.
3431         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
3432         Info from Christian Weisgerber <naddy@mips.inka.de>.
3433
3434 2010-07-01  Jim Meyering  <meyering@redhat.com>
3435
3436         hash: extend module to deal with non-pointer keys
3437         * lib/hash.c (hash_insert0): New interface, much like hash_insert
3438         but that allows insertion of non-pointer entries.
3439         Do not disallow an ENTRY value of NULL.
3440         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
3441         * lib/hash.h (hash_insert0): Declare.
3442
3443 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
3444
3445         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
3446         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
3447         not present (i.e. with autoconf 2.59 and when using gettextize, not
3448         gnulib), require AC_GNU_SOURCE instead.
3449
3450 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
3451
3452         idpriv-drop: Fix tests.
3453         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
3454         not to the test-idpriv-droptemp program.
3455
3456 2010-06-29  Bruno Haible  <bruno@clisp.org>
3457
3458         string: Fix syntax error with g++ 2.96.
3459         * lib/string.in.h (__pure__): Remove definition.
3460         (_GL_ATTRIBUTE_PURE): New macro.
3461         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
3462         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
3463         Reported by Christian Weisgerber <naddy@mips.inka.de>.
3464
3465 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
3466
3467         unitypes: Fix bug introduced on 2010-05-18.
3468         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
3469
3470 2010-06-22  Eric Blake  <eblake@redhat.com>
3471
3472         memmem: slight optimization
3473         * lib/str-two-way.h (critical_factorization): Update comments.
3474         Reduce work during factorization phase.
3475         Reported by Carlos Bueno <carlos@bueno.org>.
3476
3477 2010-06-21  Bruno Haible  <bruno@clisp.org>
3478
3479         Fix HAVE_CALLOC_POSIX misnomer.
3480         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
3481         !HAVE_CALLOC_POSIX.
3482         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
3483         HAVE_CALLOC_POSIX.
3484         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
3485         instead of HAVE_CALLOC_POSIX.
3486         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
3487         HAVE_CALLOC_POSIX.
3488
3489         Use modern idiom for calloc() replacement.
3490         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
3491         AC_FUNC_CALLOC.
3492         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
3493         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
3494         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3495         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
3496         (gl_REPLACE_CALLOC): New macro.
3497
3498 2010-06-21  Bruno Haible  <bruno@clisp.org>
3499
3500         Fix HAVE_REALLOC_POSIX misnomer.
3501         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
3502         !HAVE_REALLOC_POSIX.
3503         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
3504         HAVE_REALLOC_POSIX.
3505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
3506         instead of HAVE_REALLOC_POSIX.
3507         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
3508         HAVE_REALLOC_POSIX.
3509
3510         Use modern idiom for realloc() replacement.
3511         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
3512         AC_FUNC_REALLOC.
3513         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
3514         Autoconf's AC_FUNC_REALLOC.
3515         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3516         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
3517         (gl_REPLACE_REALLOC): New macro.
3518         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3519
3520 2010-06-21  Bruno Haible  <bruno@clisp.org>
3521
3522         Fix HAVE_MALLOC_POSIX misnomer.
3523         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
3524         !HAVE_MALLOC_POSIX.
3525         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
3526         HAVE_MALLOC_POSIX.
3527         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
3528         instead of HAVE_MALLOC_POSIX.
3529         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
3530         HAVE_MALLOC_POSIX.
3531
3532         Use modern idiom for malloc() replacement.
3533         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
3534         AC_FUNC_MALLOC.
3535         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
3536         Autoconf's AC_FUNC_MALLOC.
3537         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
3538         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
3539         (gl_REPLACE_MALLOC): New macro.
3540         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
3541
3542 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
3543
3544         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
3545         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
3546         This macro takes 3 arguments, not 4.
3547
3548 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
3549
3550         ipv6: fix detection under mingw
3551         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
3552         in6_addr.
3553
3554 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
3555
3556         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
3557         that strtod() works when cross-compiling to a glibc version known
3558         to work.
3559
3560 2010-06-15  Bruno Haible  <bruno@clisp.org>
3561
3562         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
3563
3564 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
3565
3566         select: Correct timeout.
3567         * lib/select.c (rpl_select): Compute wait_timeout correctly.
3568
3569 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
3570
3571         git-version-gen: init shell var to avoid env var influence
3572         * build-aux/git-version-gen (v): Init shell var to empty.
3573
3574 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
3575
3576         priv-set: Don't assume that priv.h exists merely because getppriv does.
3577         See Jan Andersen's bug report about AIX 5L in
3578         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
3579         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
3580         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
3581         * lib/priv-set.h: Likewise.
3582         * tests/test-priv-set.c: Likewise.
3583
3584 2010-06-13  Bruno Haible  <bruno@clisp.org>
3585
3586         relocatable: Make it easier to test whether to install wrappers.
3587         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
3588         RELOCATABLE_VIA_WRAPPER.
3589
3590 2010-06-13  Bruno Haible  <bruno@clisp.org>
3591
3592         gnulib-tool: Display specified modules and dependencies differently.
3593         * gnulib-tool (func_show_module_list): New function.
3594         (func_import, func_create_testdir): Invoke it.
3595         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
3596
3597 2010-06-13  Bruno Haible  <bruno@clisp.org>
3598
3599         gnulib-tool: Align code of func_import and func_create_testdir.
3600         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
3601         specified_modules.
3602
3603 2010-06-12  Jim Meyering  <meyering@redhat.com>
3604
3605         test-inttostr: avoid spurious failure on Solaris 9
3606         * tests/test-inttostr.c (main): Skip the test when snprintf fails
3607         to accept "%ju".  Reported by Bruno Haible.
3608
3609 2010-06-11  Jim Meyering  <meyering@redhat.com>
3610
3611         test-sys_socket: mark variables as used more readably
3612         * tests/test-sys_socket.c (main): Mark otherwise unused variables
3613         as "used" explicitly via (void) statement casts.  This is more
3614         readable than using them in an artificial return expression.
3615         Suggestion from Bruno Haible.
3616
3617 2010-06-11  Bruno Haible  <bruno@clisp.org>
3618
3619         Avoid some more warnings from "gcc -Wwrite-strings".
3620         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
3621         to 'const char *'.
3622         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
3623         * tests/test-c-strcasestr.c (main): Likewise.
3624         * tests/test-mbscasestr1.c (main): Likewise.
3625         * tests/test-mbscasestr2.c (main): Likewise.
3626         * tests/test-memmem.c (main): Likewise.
3627         * tests/test-strstr.c (main): Likewise.
3628         * tests/test-strcasestr.c (main): Likewise.
3629
3630 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3631
3632         init.sh: change framework_failure_ to fail with status 99, not 1
3633         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
3634         automake's parallel-tests rule that this is an unexpected failure,
3635         even if the test is listed in XFAIL_TESTS.
3636
3637 2010-06-11  Jim Meyering  <meyering@redhat.com>
3638
3639         test-inttostr: avoid warnings about 4-6KB literal strings
3640         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
3641         Include "macros.h", for its definition of ASSERT.
3642         (CK): s/assert/ASSERT/
3643         * modules/inttostr-tests (Files): Add macros.h.
3644
3645         init.sh: don't use $ME_ or skip_ before they are defined
3646         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
3647         their first uses.  Also hoist their companions: warn_, fail_,
3648         framework_failure_, $stderr_fileno.  Prompted by a patch from
3649         Stefano Lattarini.
3650
3651         test-sys_socket: avoid set-but-not-used warnings from gcc
3652         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
3653         avoid warning about set-but-not-used variables.
3654
3655         test-xvasprintf: avoid 'const' discard warnings
3656         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
3657         "const" when assigning from literal strings.
3658         (test_xasprintf): Add "void" in function argument list to placate
3659         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
3660
3661         tests: avoid compilation warnings in argmatch and exclude tests...
3662         in packages that define ARGMATCH_DIE_DECL, like coreutils.
3663         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
3664         Since it always exits, declare with the "noreturn" attribute.
3665         * tests/test-argmatch.c: Likewise.
3666
3667         tests: avoid 'const' discard warnings in mbsstr tests
3668         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
3669         * tests/test-mbsstr2.c (main): Likewise.
3670
3671         test-verify: avoid warning from gcc's -Wmissing-declarations
3672         * tests/test-verify.c (function): Declare to be static.
3673
3674         test-inttostr.c: include <string.h> for use of strcmp
3675         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
3676
3677         test-linkat: avoid failed assertion on "other" architectures
3678         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
3679         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
3680         sparc: https://bugs.launchpad.net/bugs/591968
3681
3682 2010-06-11  Jim Meyering  <meyering@redhat.com>
3683
3684         printf.m4: avoid autoconf's "Expanded Before Required" warning
3685         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
3686         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
3687         autoconf warning.
3688
3689 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
3690
3691         Replacement header templates are now named with ".in", not "_".
3692         * doc/gnulib-intro.texi: Correct.
3693
3694 2010-06-10  Jim Meyering  <meyering@redhat.com>
3695
3696         inttostr-tests: depend on snprintf, not snprintf-posix
3697         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
3698         snprintf-posix, to avoid this aclocal failure:
3699           missing file gnulib-tests/vasnprintf.c
3700           configure.ac:45: error: expected source file, required through \
3701           AC_LIBSOURCES, not found
3702
3703 2010-06-10  Jim Meyering  <meyering@redhat.com>
3704
3705         inttostr: add a new function, inttostr, and tests
3706         The namesake function was not available.  The existence of the
3707         template file, inttostr.c makes its addition nontrivial.
3708         * lib/anytostr.c: Rename from inttostr.c.
3709         (anytostr): Rename from inttostr.
3710         * lib/inttostr.c: New file.
3711         * modules/inttostr (Files): Add anytostr.c.
3712         (Makefile.am): Set lib_SOURCES instead of ...
3713         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
3714         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
3715         * lib/offtostr.c: Likewise.
3716         * lib/uinttostr.c: Likewise.
3717         * lib/umaxtostr.c: Likewise.
3718         * modules/inttostr-tests: New file.
3719         * tests/test-inttostr.c: New file.  Test these functions.
3720
3721 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
3722             Bruno Haible  <bruno@clisp.org>
3723
3724         Add "Extending Gnulib" chapter to manual.
3725         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
3726         chapter.
3727         (Extending Gnulib): New chapter.
3728         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
3729         chapter.
3730
3731 2010-06-09  Bruno Haible  <bruno@clisp.org>
3732
3733         Avoid relocwrapper link errors due to gnulib replacement functions.
3734         * lib/areadlink.c: Use the system's malloc, realloc functions.
3735         (areadlink): Set errno to ENOMEM explicitly.
3736         * modules/areadlink (Depends-on): Remove malloc-posix.
3737         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3738
3739 2010-06-09  Bruno Haible  <bruno@clisp.org>
3740
3741         Avoid relocwrapper link errors due to gnulib replacement functions.
3742         * lib/canonicalize-lgpl.c: Use the system's malloc function.
3743         * lib/malloca.c: Likewise.
3744         * lib/relocatable.c: Likewise.
3745         * lib/progreloc.c: Use the system's malloc, sprintf functions.
3746         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
3747         * lib/setenv.c: Use the system's malloc, realloc functions.
3748         * lib/strerror.c: Use the system's sprintf function.
3749         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3750
3751 2010-06-04  Bruno Haible  <bruno@clisp.org>
3752
3753         Prefer documented low-level autoconf macro names.
3754         * m4/lib-link.m4: Use m4_translit instead of translit.
3755         * m4/environ.m4: Likewise.
3756         * m4/mathfunc.m4: Likewise.
3757         * m4/onceonly.m4: Likewise.
3758         * m4/stdint.m4: Likewise.
3759         Suggested by Eric Blake.
3760
3761 2010-06-04  Martin Lambers  <marlam@marlam.de>
3762             Bruno Haible  <bruno@clisp.org>
3763
3764         havelib: Allow library names with '+' characters.
3765         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
3766         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
3767
3768 2010-06-09  Bruno Haible  <bruno@clisp.org>
3769
3770         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
3771         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
3772         realloc failed.
3773
3774 2010-06-08  Peter Simons  <simons@cryp.to>
3775
3776         maint.mk: make the news-check rule more configurable
3777         * top/maint.mk (news-check-lines-spec) New variable.
3778         (news-check): Use "sed -n 1,10p" in place of "head".
3779
3780 2010-06-07  Jim Meyering  <meyering@redhat.com>
3781
3782         do-release-commit-and-tag: fix typo in --help
3783         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
3784
3785         regex: avoid new dead-code warning with gcc-4.6.0
3786         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
3787         if-block containing a while-loop.  It's been unused for at least
3788         5 years.
3789
3790 2010-06-05  Bruno Haible  <bruno@clisp.org>
3791
3792         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
3793         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
3794
3795 2010-06-04  Bruno Haible  <bruno@clisp.org>
3796
3797         Update to GNU gettext 0.18.1.
3798         * modules/gettext (configure.ac): Require gettext infrastructure from
3799         version 0.18.1.
3800
3801 2010-06-03  Bruno Haible  <bruno@clisp.org>
3802
3803         Don't use AC_LIBOBJ with file names in subdirectories.
3804         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
3805         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
3806         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
3807         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
3808         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
3809         gl_LIBUNISTRING_LIBSOURCE.
3810         (Makefile.am): Augment lib_SOURCES here, conditionally.
3811         * NEWS: Drop requirement for Automake option 'subdir-objects'.
3812
3813 2010-06-03  Bruno Haible  <bruno@clisp.org>
3814
3815         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
3816         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
3817         expansion does not end with a newline.
3818         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
3819         unnecessary newline.
3820
3821 2010-06-03  Bruno Haible  <bruno@clisp.org>
3822
3823         Reduce dependencies.
3824         * tests/test-quotearg.h: New file, extracted from
3825         tests/test-quotearg.c.
3826         * tests/test-quotearg-simple.c: New file, extracted from
3827         tests/test-quotearg.c.
3828         * tests/test-quotearg.c: Don't include <ctype.h>.
3829         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
3830         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
3831         use_quote_double_quotes, use_quotearg_colon): Moved to
3832         tests/test-quotearg.h.
3833         (results_g, flag_results, custom_quotes, custom_results): Moved
3834         to tests/test-quotearg-simple.c.
3835         (main): Moved the part that does not depend on gettext to
3836         tests/test-quotearg-simple.c. Return 77 if the test cannot be
3837         performed.
3838         * modules/quotearg-simple: New file.
3839         * modules/quotearg-simple-tests: New file.
3840         * modules/quotearg (Depends-on): Add quotearg-simple.
3841         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
3842         (Files): Add tests/test-quotearg.h.
3843         Reported by Paolo Bonzini.
3844
3845 2010-06-03  Bruno Haible  <bruno@clisp.org>
3846
3847         Reduce dependencies.
3848         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
3849
3850 2010-06-03  Bruno Haible  <bruno@clisp.org>
3851
3852         time: Undefine more broken macros.
3853         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
3854         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
3855         Reported by Eric Blake.
3856
3857 2010-06-03  Bruno Haible  <bruno@clisp.org>
3858
3859         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
3860         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
3861         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
3862         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
3863         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
3864         Reported by Ludovic Courtès <ludo@gnu.org>.
3865
3866 2010-06-02  Eric Blake  <eblake@redhat.com>
3867
3868         time: work with mingw + pthreads-win32 library
3869         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
3870         if timespec is defined only in pthread.h.
3871         * modules/time (Makefile.am): Substitute it.
3872         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
3873         <pthread.h>, when needed.
3874         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
3875         from the library.
3876
3877 2010-05-31  Bruno Haible  <bruno@clisp.org>
3878
3879         Avoid expanding two macros in the wrong order.
3880         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
3881         gl_LIBUNISTRING if it is defined.
3882         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
3883         autoconf >= 2.64.
3884         Reported by Ludovic Courtès <ludo@gnu.org>.
3885
3886 2010-05-27  Jim Meyering  <meyering@redhat.com>
3887
3888         maint.mk: also prohibit "#undef" of always-defined symbols
3889         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
3890         Allow more than one space before the symbol name.
3891         (sc_prohibit_always-defined_macros): Use grep's -E, now that
3892         the regexp uses alternation.
3893
3894 2010-05-26  Eric Blake  <eblake@redhat.com>
3895
3896         maint.mk: avoid echo -e
3897         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
3898         Convert all uses of echo -* to printf.
3899         Reported by Matthias Bolte.
3900
3901 2010-05-25  Bruno Haible  <bruno@clisp.org>
3902
3903         Update to GNU gettext 0.18, part 2.
3904         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
3905         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
3906
3907 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3908
3909         Add missing include in test-pwrite.c.
3910         * tests/test-pwrite.c: Include string.h, for strcmp.
3911
3912 2010-05-24  Bruno Haible  <bruno@clisp.org>
3913
3914         * NEWS: Mention requirement for Automake option 'subdir-objects'.
3915
3916 2010-05-24  Bruno Haible  <bruno@clisp.org>
3917
3918         Don't use conversion with transliteration in u{8,16,32}_strcoll.
3919         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
3920         iconveh_error argument.
3921         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
3922         U_STRCONV_TO_LOCALE.
3923         * lib/unistr/u16-strcoll.c: Likewise.
3924         * lib/unistr/u32-strcoll.c: Likewise.
3925         * modules/unistr/u8-strcoll (Depends-on): Add
3926         uniconv/u8-strconv-to-enc, localcharset. Remove
3927         uniconv/u8-strconv-to-locale.
3928         (configure.ac): Bump version number.
3929         * modules/unistr/u16-strcoll (Depends-on): Add
3930         uniconv/u16-strconv-to-enc, localcharset. Remove
3931         uniconv/u16-strconv-to-locale.
3932         (configure.ac): Bump version number.
3933         * modules/unistr/u32-strcoll (Depends-on): Add
3934         uniconv/u32-strconv-to-enc, localcharset. Remove
3935         uniconv/u32-strconv-to-locale.
3936         (configure.ac): Bump version number.
3937
3938 2010-05-24  Bruno Haible  <bruno@clisp.org>
3939
3940         Avoid a test failure on NetBSD 5.0.
3941         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
3942         an iconv() bug.
3943
3944 2010-05-24  Bruno Haible  <bruno@clisp.org>
3945
3946         Adjust #include directive style.
3947         * modules/regex (Includes): Recommend to write <regex.h>.
3948
3949 2010-05-24  Bruno Haible  <bruno@clisp.org>
3950
3951         regex: Don't require alloca.
3952         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
3953         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
3954         only inside if (0).
3955
3956 2010-05-23  Jim Meyering  <meyering@redhat.com>
3957
3958         test-renameat.c: include <sys/stat.h>
3959         * tests/test-renameat.c: Include <sys/stat.h>; required for
3960         definition of S_IS* macros.
3961
3962 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
3963
3964         Update maintainer documentation for 'relocatable-prog' module.
3965         * doc/relocatable-maint.texi: Update.
3966         Comments by Bruno Haible.
3967
3968 2010-05-23  Bruno Haible  <bruno@clisp.org>
3969
3970         git-merge-changelog: Enable --split-merged-entry by default.
3971         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
3972         (usage): Don't mention this option any more.
3973         Reported by Ralf Wildenhues.
3974
3975 2010-05-23  Jim Meyering  <meyering@redhat.com>
3976
3977         test-pwrite: do not leave behind a test file named "out"
3978         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
3979         The trivial-looking use of init.sh is really necessary.
3980         It ensures that the temporary file, "out", is created in
3981         a temporary directory, and removed upon termination.
3982         * tests/test-pwrite.sh: Re-add file.
3983         * modules/pwrite-tests: Reference it.
3984
3985 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3986
3987         Fix output redirection buglet in init.sh.
3988         * tests/init.sh: Fix redirection of stderr.
3989
3990 2010-05-20  Simon Josefsson  <simon@josefsson.org>
3991
3992         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
3993
3994 2010-05-17  Simon Josefsson  <simon@josefsson.org>
3995
3996         * modules/valgrind-tests: New file.
3997         * m4/valgrind-tests.m4: New file.
3998         * doc/valgrind-tests.texi: New file.
3999         * doc/gnulib.texi (Running self-tests under valgrind): New
4000         section.
4001
4002 2010-05-19  Bruno Haible  <bruno@clisp.org>
4003
4004         Clean up dead code in recent commit.
4005         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
4006         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
4007         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
4008         Suggested by Paolo Bonzini.
4009
4010 2010-05-19  Bruno Haible  <bruno@clisp.org>
4011
4012         Avoid valgrind error reports from libunistring.
4013         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
4014         * modules/libunistring (Files): Add it.
4015         * modules/libunistring-optional (Files): Likewise.
4016
4017 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
4018             Bruno Haible  <bruno@clisp.org>
4019
4020         New module 'libunistring-optional'.
4021         * modules/libunistring-optional: New file.
4022         * m4/libunistring-base.m4: New file.
4023         * m4/libunistring-optional.m4: New file.
4024         * lib/unicase.in.h: Renamed from lib/unicase.h.
4025         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
4026         * lib/unictype.in.h: Renamed from lib/unictype.h.
4027         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
4028         * lib/uniname.in.h: Renamed from lib/uniname.h.
4029         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
4030         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
4031         * lib/unistr.in.h: Renamed from lib/unistr.h.
4032         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
4033         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
4034         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
4035         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
4036         gl_LIBUNISTRING. If the library was found, determine the installed
4037         version and set LIBUNISTRING_VERSION.
4038         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
4039         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
4040         handle a configuration option --with-included-libunistring.
4041         * modules/libunistring (Files): Add m4/absolute-header.m4.
4042         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
4043         Add m4/libunistring-base.m4.
4044         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4045         (Makefile.am): Build unicase.h from unicase.in.h.
4046         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
4047         Add m4/libunistring-base.m4.
4048         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4049         (Makefile.am): Build uniconv.h from uniconv.in.h.
4050         * modules/unictype/base (Files): Use unictype.in.h instead of
4051         unictype.h. Add m4/libunistring-base.m4.
4052         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4053         (Makefile.am): Build unictype.h from unictype.in.h.
4054         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
4055         Add m4/libunistring-base.m4.
4056         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4057         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
4058         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
4059         Add m4/libunistring-base.m4.
4060         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4061         (Makefile.am): Build uniname.h from uniname.in.h.
4062         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
4063         Add m4/libunistring-base.m4.
4064         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4065         (Makefile.am): Build uninorm.h from uninorm.in.h.
4066         * modules/unistdio/base (Files): Use unistdio.in.h instead of
4067         unistdio.h. Add m4/libunistring-base.m4.
4068         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4069         (Makefile.am): Build unistdio.h from unistdio.in.h.
4070         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
4071         Add m4/libunistring-base.m4.
4072         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4073         (Makefile.am): Build unistr.h from unistr.in.h.
4074         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
4075         Add m4/libunistring-base.m4.
4076         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4077         (Makefile.am): Build unitypes.h from unitypes.in.h.
4078         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
4079         Add m4/libunistring-base.m4.
4080         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4081         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
4082         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
4083         uniwidth.h. Add m4/libunistring-base.m4.
4084         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
4085         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
4086         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
4087         instead of augmenting lib_SOURCES.
4088         * modules/unicase/empty-suffix-context: Likewise.
4089         * modules/unicase/locale-language: Likewise.
4090         * modules/unicase/tolower: Likewise.
4091         * modules/unicase/totitle: Likewise.
4092         * modules/unicase/toupper: Likewise.
4093         * modules/unicase/u8-casecmp: Likewise.
4094         * modules/unicase/u8-casecoll: Likewise.
4095         * modules/unicase/u8-casefold: Likewise.
4096         * modules/unicase/u8-casexfrm: Likewise.
4097         * modules/unicase/u8-ct-casefold: Likewise.
4098         * modules/unicase/u8-ct-tolower: Likewise.
4099         * modules/unicase/u8-ct-totitle: Likewise.
4100         * modules/unicase/u8-ct-toupper: Likewise.
4101         * modules/unicase/u8-is-cased: Likewise.
4102         * modules/unicase/u8-is-casefolded: Likewise.
4103         * modules/unicase/u8-is-lowercase: Likewise.
4104         * modules/unicase/u8-is-titlecase: Likewise.
4105         * modules/unicase/u8-is-uppercase: Likewise.
4106         * modules/unicase/u8-prefix-context: Likewise.
4107         * modules/unicase/u8-suffix-context: Likewise.
4108         * modules/unicase/u8-tolower: Likewise.
4109         * modules/unicase/u8-totitle: Likewise.
4110         * modules/unicase/u8-toupper: Likewise.
4111         * modules/unicase/u16-casecmp: Likewise.
4112         * modules/unicase/u16-casecoll: Likewise.
4113         * modules/unicase/u16-casefold: Likewise.
4114         * modules/unicase/u16-casexfrm: Likewise.
4115         * modules/unicase/u16-ct-casefold: Likewise.
4116         * modules/unicase/u16-ct-tolower: Likewise.
4117         * modules/unicase/u16-ct-totitle: Likewise.
4118         * modules/unicase/u16-ct-toupper: Likewise.
4119         * modules/unicase/u16-is-cased: Likewise.
4120         * modules/unicase/u16-is-casefolded: Likewise.
4121         * modules/unicase/u16-is-lowercase: Likewise.
4122         * modules/unicase/u16-is-titlecase: Likewise.
4123         * modules/unicase/u16-is-uppercase: Likewise.
4124         * modules/unicase/u16-prefix-context: Likewise.
4125         * modules/unicase/u16-suffix-context: Likewise.
4126         * modules/unicase/u16-tolower: Likewise.
4127         * modules/unicase/u16-totitle: Likewise.
4128         * modules/unicase/u16-toupper: Likewise.
4129         * modules/unicase/u32-casecmp: Likewise.
4130         * modules/unicase/u32-casecoll: Likewise.
4131         * modules/unicase/u32-casefold: Likewise.
4132         * modules/unicase/u32-casexfrm: Likewise.
4133         * modules/unicase/u32-ct-casefold: Likewise.
4134         * modules/unicase/u32-ct-tolower: Likewise.
4135         * modules/unicase/u32-ct-totitle: Likewise.
4136         * modules/unicase/u32-ct-toupper: Likewise.
4137         * modules/unicase/u32-is-cased: Likewise.
4138         * modules/unicase/u32-is-casefolded: Likewise.
4139         * modules/unicase/u32-is-lowercase: Likewise.
4140         * modules/unicase/u32-is-titlecase: Likewise.
4141         * modules/unicase/u32-is-uppercase: Likewise.
4142         * modules/unicase/u32-prefix-context: Likewise.
4143         * modules/unicase/u32-suffix-context: Likewise.
4144         * modules/unicase/u32-tolower: Likewise.
4145         * modules/unicase/u32-totitle: Likewise.
4146         * modules/unicase/u32-toupper: Likewise.
4147         * modules/unicase/ulc-casecmp: Likewise.
4148         * modules/unicase/ulc-casecoll: Likewise.
4149         * modules/unicase/ulc-casexfrm: Likewise.
4150         * modules/uniconv/u8-conv-from-enc: Likewise.
4151         * modules/uniconv/u8-conv-to-enc: Likewise.
4152         * modules/uniconv/u8-strconv-from-enc: Likewise.
4153         * modules/uniconv/u8-strconv-from-locale: Likewise.
4154         * modules/uniconv/u8-strconv-to-enc: Likewise.
4155         * modules/uniconv/u8-strconv-to-locale: Likewise.
4156         * modules/uniconv/u16-conv-from-enc: Likewise.
4157         * modules/uniconv/u16-conv-to-enc: Likewise.
4158         * modules/uniconv/u16-strconv-from-enc: Likewise.
4159         * modules/uniconv/u16-strconv-from-locale: Likewise.
4160         * modules/uniconv/u16-strconv-to-enc: Likewise.
4161         * modules/uniconv/u16-strconv-to-locale: Likewise.
4162         * modules/uniconv/u32-conv-from-enc: Likewise.
4163         * modules/uniconv/u32-conv-to-enc: Likewise.
4164         * modules/uniconv/u32-strconv-from-enc: Likewise.
4165         * modules/uniconv/u32-strconv-from-locale: Likewise.
4166         * modules/uniconv/u32-strconv-to-enc: Likewise.
4167         * modules/uniconv/u32-strconv-to-locale: Likewise.
4168         * modules/unictype/bidicategory-byname: Likewise.
4169         * modules/unictype/bidicategory-name: Likewise.
4170         * modules/unictype/bidicategory-of: Likewise.
4171         * modules/unictype/bidicategory-test: Likewise.
4172         * modules/unictype/block-list: Likewise.
4173         * modules/unictype/block-test: Likewise.
4174         * modules/unictype/category-C: Likewise.
4175         * modules/unictype/category-Cc: Likewise.
4176         * modules/unictype/category-Cf: Likewise.
4177         * modules/unictype/category-Cn: Likewise.
4178         * modules/unictype/category-Co: Likewise.
4179         * modules/unictype/category-Cs: Likewise.
4180         * modules/unictype/category-L: Likewise.
4181         * modules/unictype/category-Ll: Likewise.
4182         * modules/unictype/category-Lm: Likewise.
4183         * modules/unictype/category-Lo: Likewise.
4184         * modules/unictype/category-Lt: Likewise.
4185         * modules/unictype/category-Lu: Likewise.
4186         * modules/unictype/category-M: Likewise.
4187         * modules/unictype/category-Mc: Likewise.
4188         * modules/unictype/category-Me: Likewise.
4189         * modules/unictype/category-Mn: Likewise.
4190         * modules/unictype/category-N: Likewise.
4191         * modules/unictype/category-Nd: Likewise.
4192         * modules/unictype/category-Nl: Likewise.
4193         * modules/unictype/category-No: Likewise.
4194         * modules/unictype/category-P: Likewise.
4195         * modules/unictype/category-Pc: Likewise.
4196         * modules/unictype/category-Pd: Likewise.
4197         * modules/unictype/category-Pe: Likewise.
4198         * modules/unictype/category-Pf: Likewise.
4199         * modules/unictype/category-Pi: Likewise.
4200         * modules/unictype/category-Po: Likewise.
4201         * modules/unictype/category-Ps: Likewise.
4202         * modules/unictype/category-S: Likewise.
4203         * modules/unictype/category-Sc: Likewise.
4204         * modules/unictype/category-Sk: Likewise.
4205         * modules/unictype/category-Sm: Likewise.
4206         * modules/unictype/category-So: Likewise.
4207         * modules/unictype/category-Z: Likewise.
4208         * modules/unictype/category-Zl: Likewise.
4209         * modules/unictype/category-Zp: Likewise.
4210         * modules/unictype/category-Zs: Likewise.
4211         * modules/unictype/category-and: Likewise.
4212         * modules/unictype/category-and-not: Likewise.
4213         * modules/unictype/category-byname: Likewise.
4214         * modules/unictype/category-name: Likewise.
4215         * modules/unictype/category-none: Likewise.
4216         * modules/unictype/category-of: Likewise.
4217         * modules/unictype/category-or: Likewise.
4218         * modules/unictype/category-test: Likewise.
4219         * modules/unictype/combining-class: Likewise.
4220         * modules/unictype/ctype-alnum: Likewise.
4221         * modules/unictype/ctype-alpha: Likewise.
4222         * modules/unictype/ctype-blank: Likewise.
4223         * modules/unictype/ctype-cntrl: Likewise.
4224         * modules/unictype/ctype-digit: Likewise.
4225         * modules/unictype/ctype-graph: Likewise.
4226         * modules/unictype/ctype-lower: Likewise.
4227         * modules/unictype/ctype-print: Likewise.
4228         * modules/unictype/ctype-punct: Likewise.
4229         * modules/unictype/ctype-space: Likewise.
4230         * modules/unictype/ctype-upper: Likewise.
4231         * modules/unictype/ctype-xdigit: Likewise.
4232         * modules/unictype/decimal-digit: Likewise.
4233         * modules/unictype/digit: Likewise.
4234         * modules/unictype/mirror: Likewise.
4235         * modules/unictype/numeric: Likewise.
4236         * modules/unictype/property-alphabetic: Likewise.
4237         * modules/unictype/property-ascii-hex-digit: Likewise.
4238         * modules/unictype/property-bidi-arabic-digit: Likewise.
4239         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
4240         * modules/unictype/property-bidi-block-separator: Likewise.
4241         * modules/unictype/property-bidi-boundary-neutral: Likewise.
4242         * modules/unictype/property-bidi-common-separator: Likewise.
4243         * modules/unictype/property-bidi-control: Likewise.
4244         * modules/unictype/property-bidi-embedding-or-override: Likewise.
4245         * modules/unictype/property-bidi-eur-num-separator: Likewise.
4246         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
4247         * modules/unictype/property-bidi-european-digit: Likewise.
4248         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
4249         * modules/unictype/property-bidi-left-to-right: Likewise.
4250         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
4251         * modules/unictype/property-bidi-other-neutral: Likewise.
4252         * modules/unictype/property-bidi-pdf: Likewise.
4253         * modules/unictype/property-bidi-segment-separator: Likewise.
4254         * modules/unictype/property-bidi-whitespace: Likewise.
4255         * modules/unictype/property-byname: Likewise.
4256         * modules/unictype/property-combining: Likewise.
4257         * modules/unictype/property-composite: Likewise.
4258         * modules/unictype/property-currency-symbol: Likewise.
4259         * modules/unictype/property-dash: Likewise.
4260         * modules/unictype/property-decimal-digit: Likewise.
4261         * modules/unictype/property-default-ignorable-code-point: Likewise.
4262         * modules/unictype/property-deprecated: Likewise.
4263         * modules/unictype/property-diacritic: Likewise.
4264         * modules/unictype/property-extender: Likewise.
4265         * modules/unictype/property-format-control: Likewise.
4266         * modules/unictype/property-grapheme-base: Likewise.
4267         * modules/unictype/property-grapheme-extend: Likewise.
4268         * modules/unictype/property-grapheme-link: Likewise.
4269         * modules/unictype/property-hex-digit: Likewise.
4270         * modules/unictype/property-hyphen: Likewise.
4271         * modules/unictype/property-id-continue: Likewise.
4272         * modules/unictype/property-id-start: Likewise.
4273         * modules/unictype/property-ideographic: Likewise.
4274         * modules/unictype/property-ids-binary-operator: Likewise.
4275         * modules/unictype/property-ids-trinary-operator: Likewise.
4276         * modules/unictype/property-ignorable-control: Likewise.
4277         * modules/unictype/property-iso-control: Likewise.
4278         * modules/unictype/property-join-control: Likewise.
4279         * modules/unictype/property-left-of-pair: Likewise.
4280         * modules/unictype/property-line-separator: Likewise.
4281         * modules/unictype/property-logical-order-exception: Likewise.
4282         * modules/unictype/property-lowercase: Likewise.
4283         * modules/unictype/property-math: Likewise.
4284         * modules/unictype/property-non-break: Likewise.
4285         * modules/unictype/property-not-a-character: Likewise.
4286         * modules/unictype/property-numeric: Likewise.
4287         * modules/unictype/property-other-alphabetic: Likewise.
4288         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
4289         * modules/unictype/property-other-grapheme-extend: Likewise.
4290         * modules/unictype/property-other-id-continue: Likewise.
4291         * modules/unictype/property-other-id-start: Likewise.
4292         * modules/unictype/property-other-lowercase: Likewise.
4293         * modules/unictype/property-other-math: Likewise.
4294         * modules/unictype/property-other-uppercase: Likewise.
4295         * modules/unictype/property-paired-punctuation: Likewise.
4296         * modules/unictype/property-paragraph-separator: Likewise.
4297         * modules/unictype/property-pattern-syntax: Likewise.
4298         * modules/unictype/property-pattern-white-space: Likewise.
4299         * modules/unictype/property-private-use: Likewise.
4300         * modules/unictype/property-punctuation: Likewise.
4301         * modules/unictype/property-quotation-mark: Likewise.
4302         * modules/unictype/property-radical: Likewise.
4303         * modules/unictype/property-sentence-terminal: Likewise.
4304         * modules/unictype/property-soft-dotted: Likewise.
4305         * modules/unictype/property-space: Likewise.
4306         * modules/unictype/property-terminal-punctuation: Likewise.
4307         * modules/unictype/property-test: Likewise.
4308         * modules/unictype/property-titlecase: Likewise.
4309         * modules/unictype/property-unassigned-code-value: Likewise.
4310         * modules/unictype/property-unified-ideograph: Likewise.
4311         * modules/unictype/property-uppercase: Likewise.
4312         * modules/unictype/property-variation-selector: Likewise.
4313         * modules/unictype/property-white-space: Likewise.
4314         * modules/unictype/property-xid-continue: Likewise.
4315         * modules/unictype/property-xid-start: Likewise.
4316         * modules/unictype/property-zero-width: Likewise.
4317         * modules/unictype/scripts: Likewise.
4318         * modules/unictype/syntax-c-ident: Likewise.
4319         * modules/unictype/syntax-c-whitespace: Likewise.
4320         * modules/unictype/syntax-java-ident: Likewise.
4321         * modules/unictype/syntax-java-whitespace: Likewise.
4322         * modules/unilbrk/u8-possible-linebreaks: Likewise.
4323         * modules/unilbrk/u8-width-linebreaks: Likewise.
4324         * modules/unilbrk/u16-possible-linebreaks: Likewise.
4325         * modules/unilbrk/u16-width-linebreaks: Likewise.
4326         * modules/unilbrk/u32-possible-linebreaks: Likewise.
4327         * modules/unilbrk/u32-width-linebreaks: Likewise.
4328         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
4329         * modules/unilbrk/ulc-width-linebreaks: Likewise.
4330         * modules/uniname/uniname: Likewise.
4331         * modules/uninorm/canonical-decomposition: Likewise.
4332         * modules/uninorm/composition: Likewise.
4333         * modules/uninorm/decomposing-form: Likewise.
4334         * modules/uninorm/decomposition: Likewise.
4335         * modules/uninorm/filter: Likewise.
4336         * modules/uninorm/nfc: Likewise.
4337         * modules/uninorm/nfd: Likewise.
4338         * modules/uninorm/nfkc: Likewise.
4339         * modules/uninorm/nfkd: Likewise.
4340         * modules/uninorm/u8-normalize: Likewise.
4341         * modules/uninorm/u8-normcmp: Likewise.
4342         * modules/uninorm/u8-normcoll: Likewise.
4343         * modules/uninorm/u8-normxfrm: Likewise.
4344         * modules/uninorm/u16-normalize: Likewise.
4345         * modules/uninorm/u16-normcmp: Likewise.
4346         * modules/uninorm/u16-normcoll: Likewise.
4347         * modules/uninorm/u16-normxfrm: Likewise.
4348         * modules/uninorm/u32-normalize: Likewise.
4349         * modules/uninorm/u32-normcmp: Likewise.
4350         * modules/uninorm/u32-normcoll: Likewise.
4351         * modules/uninorm/u32-normxfrm: Likewise.
4352         * modules/unistdio/u8-asnprintf: Likewise.
4353         * modules/unistdio/u8-asprintf: Likewise.
4354         * modules/unistdio/u8-snprintf: Likewise.
4355         * modules/unistdio/u8-sprintf: Likewise.
4356         * modules/unistdio/u8-u8-asnprintf: Likewise.
4357         * modules/unistdio/u8-u8-asprintf: Likewise.
4358         * modules/unistdio/u8-u8-snprintf: Likewise.
4359         * modules/unistdio/u8-u8-sprintf: Likewise.
4360         * modules/unistdio/u8-u8-vasnprintf: Likewise.
4361         * modules/unistdio/u8-u8-vasprintf: Likewise.
4362         * modules/unistdio/u8-u8-vsnprintf: Likewise.
4363         * modules/unistdio/u8-u8-vsprintf: Likewise.
4364         * modules/unistdio/u8-vasnprintf: Likewise.
4365         * modules/unistdio/u8-vasprintf: Likewise.
4366         * modules/unistdio/u8-vsnprintf: Likewise.
4367         * modules/unistdio/u8-vsprintf: Likewise.
4368         * modules/unistdio/u16-asnprintf: Likewise.
4369         * modules/unistdio/u16-asprintf: Likewise.
4370         * modules/unistdio/u16-snprintf: Likewise.
4371         * modules/unistdio/u16-sprintf: Likewise.
4372         * modules/unistdio/u16-u16-asnprintf: Likewise.
4373         * modules/unistdio/u16-u16-asprintf: Likewise.
4374         * modules/unistdio/u16-u16-snprintf: Likewise.
4375         * modules/unistdio/u16-u16-sprintf: Likewise.
4376         * modules/unistdio/u16-u16-vasnprintf: Likewise.
4377         * modules/unistdio/u16-u16-vasprintf: Likewise.
4378         * modules/unistdio/u16-u16-vsnprintf: Likewise.
4379         * modules/unistdio/u16-u16-vsprintf: Likewise.
4380         * modules/unistdio/u16-vasnprintf: Likewise.
4381         * modules/unistdio/u16-vasprintf: Likewise.
4382         * modules/unistdio/u16-vsnprintf: Likewise.
4383         * modules/unistdio/u16-vsprintf: Likewise.
4384         * modules/unistdio/u32-asnprintf: Likewise.
4385         * modules/unistdio/u32-asprintf: Likewise.
4386         * modules/unistdio/u32-snprintf: Likewise.
4387         * modules/unistdio/u32-sprintf: Likewise.
4388         * modules/unistdio/u32-u32-asnprintf: Likewise.
4389         * modules/unistdio/u32-u32-asprintf: Likewise.
4390         * modules/unistdio/u32-u32-snprintf: Likewise.
4391         * modules/unistdio/u32-u32-sprintf: Likewise.
4392         * modules/unistdio/u32-u32-vasnprintf: Likewise.
4393         * modules/unistdio/u32-u32-vasprintf: Likewise.
4394         * modules/unistdio/u32-u32-vsnprintf: Likewise.
4395         * modules/unistdio/u32-u32-vsprintf: Likewise.
4396         * modules/unistdio/u32-vasnprintf: Likewise.
4397         * modules/unistdio/u32-vasprintf: Likewise.
4398         * modules/unistdio/u32-vsnprintf: Likewise.
4399         * modules/unistdio/u32-vsprintf: Likewise.
4400         * modules/unistdio/ulc-asnprintf: Likewise.
4401         * modules/unistdio/ulc-asprintf: Likewise.
4402         * modules/unistdio/ulc-fprintf: Likewise.
4403         * modules/unistdio/ulc-snprintf: Likewise.
4404         * modules/unistdio/ulc-sprintf: Likewise.
4405         * modules/unistdio/ulc-vasnprintf: Likewise.
4406         * modules/unistdio/ulc-vasprintf: Likewise.
4407         * modules/unistdio/ulc-vfprintf: Likewise.
4408         * modules/unistdio/ulc-vsnprintf: Likewise.
4409         * modules/unistdio/ulc-vsprintf: Likewise.
4410         * modules/unistr/u8-check: Likewise.
4411         * modules/unistr/u8-chr: Likewise.
4412         * modules/unistr/u8-cmp: Likewise.
4413         * modules/unistr/u8-cmp2: Likewise.
4414         * modules/unistr/u8-cpy: Likewise.
4415         * modules/unistr/u8-cpy-alloc: Likewise.
4416         * modules/unistr/u8-endswith: Likewise.
4417         * modules/unistr/u8-mblen: Likewise.
4418         * modules/unistr/u8-mbsnlen: Likewise.
4419         * modules/unistr/u8-mbtouc: Likewise.
4420         * modules/unistr/u8-mbtouc-unsafe: Likewise.
4421         * modules/unistr/u8-mbtoucr: Likewise.
4422         * modules/unistr/u8-move: Likewise.
4423         * modules/unistr/u8-next: Likewise.
4424         * modules/unistr/u8-prev: Likewise.
4425         * modules/unistr/u8-set: Likewise.
4426         * modules/unistr/u8-startswith: Likewise.
4427         * modules/unistr/u8-stpcpy: Likewise.
4428         * modules/unistr/u8-stpncpy: Likewise.
4429         * modules/unistr/u8-strcat: Likewise.
4430         * modules/unistr/u8-strchr: Likewise.
4431         * modules/unistr/u8-strcmp: Likewise.
4432         * modules/unistr/u8-strcoll: Likewise.
4433         * modules/unistr/u8-strcpy: Likewise.
4434         * modules/unistr/u8-strcspn: Likewise.
4435         * modules/unistr/u8-strdup: Likewise.
4436         * modules/unistr/u8-strlen: Likewise.
4437         * modules/unistr/u8-strmblen: Likewise.
4438         * modules/unistr/u8-strmbtouc: Likewise.
4439         * modules/unistr/u8-strncat: Likewise.
4440         * modules/unistr/u8-strncmp: Likewise.
4441         * modules/unistr/u8-strncpy: Likewise.
4442         * modules/unistr/u8-strnlen: Likewise.
4443         * modules/unistr/u8-strpbrk: Likewise.
4444         * modules/unistr/u8-strrchr: Likewise.
4445         * modules/unistr/u8-strspn: Likewise.
4446         * modules/unistr/u8-strstr: Likewise.
4447         * modules/unistr/u8-strtok: Likewise.
4448         * modules/unistr/u8-to-u16: Likewise.
4449         * modules/unistr/u8-to-u32: Likewise.
4450         * modules/unistr/u8-uctomb: Likewise.
4451         * modules/unistr/u16-check: Likewise.
4452         * modules/unistr/u16-chr: Likewise.
4453         * modules/unistr/u16-cmp: Likewise.
4454         * modules/unistr/u16-cmp2: Likewise.
4455         * modules/unistr/u16-cpy: Likewise.
4456         * modules/unistr/u16-cpy-alloc: Likewise.
4457         * modules/unistr/u16-endswith: Likewise.
4458         * modules/unistr/u16-mblen: Likewise.
4459         * modules/unistr/u16-mbsnlen: Likewise.
4460         * modules/unistr/u16-mbtouc: Likewise.
4461         * modules/unistr/u16-mbtouc-unsafe: Likewise.
4462         * modules/unistr/u16-mbtoucr: Likewise.
4463         * modules/unistr/u16-move: Likewise.
4464         * modules/unistr/u16-next: Likewise.
4465         * modules/unistr/u16-prev: Likewise.
4466         * modules/unistr/u16-set: Likewise.
4467         * modules/unistr/u16-startswith: Likewise.
4468         * modules/unistr/u16-stpcpy: Likewise.
4469         * modules/unistr/u16-stpncpy: Likewise.
4470         * modules/unistr/u16-strcat: Likewise.
4471         * modules/unistr/u16-strchr: Likewise.
4472         * modules/unistr/u16-strcmp: Likewise.
4473         * modules/unistr/u16-strcoll: Likewise.
4474         * modules/unistr/u16-strcpy: Likewise.
4475         * modules/unistr/u16-strcspn: Likewise.
4476         * modules/unistr/u16-strdup: Likewise.
4477         * modules/unistr/u16-strlen: Likewise.
4478         * modules/unistr/u16-strmblen: Likewise.
4479         * modules/unistr/u16-strmbtouc: Likewise.
4480         * modules/unistr/u16-strncat: Likewise.
4481         * modules/unistr/u16-strncmp: Likewise.
4482         * modules/unistr/u16-strncpy: Likewise.
4483         * modules/unistr/u16-strnlen: Likewise.
4484         * modules/unistr/u16-strpbrk: Likewise.
4485         * modules/unistr/u16-strrchr: Likewise.
4486         * modules/unistr/u16-strspn: Likewise.
4487         * modules/unistr/u16-strstr: Likewise.
4488         * modules/unistr/u16-strtok: Likewise.
4489         * modules/unistr/u16-to-u32: Likewise.
4490         * modules/unistr/u16-to-u8: Likewise.
4491         * modules/unistr/u16-uctomb: Likewise.
4492         * modules/unistr/u32-check: Likewise.
4493         * modules/unistr/u32-chr: Likewise.
4494         * modules/unistr/u32-cmp: Likewise.
4495         * modules/unistr/u32-cmp2: Likewise.
4496         * modules/unistr/u32-cpy: Likewise.
4497         * modules/unistr/u32-cpy-alloc: Likewise.
4498         * modules/unistr/u32-endswith: Likewise.
4499         * modules/unistr/u32-mblen: Likewise.
4500         * modules/unistr/u32-mbsnlen: Likewise.
4501         * modules/unistr/u32-mbtouc: Likewise.
4502         * modules/unistr/u32-mbtouc-unsafe: Likewise.
4503         * modules/unistr/u32-mbtoucr: Likewise.
4504         * modules/unistr/u32-move: Likewise.
4505         * modules/unistr/u32-next: Likewise.
4506         * modules/unistr/u32-prev: Likewise.
4507         * modules/unistr/u32-set: Likewise.
4508         * modules/unistr/u32-startswith: Likewise.
4509         * modules/unistr/u32-stpcpy: Likewise.
4510         * modules/unistr/u32-stpncpy: Likewise.
4511         * modules/unistr/u32-strcat: Likewise.
4512         * modules/unistr/u32-strchr: Likewise.
4513         * modules/unistr/u32-strcmp: Likewise.
4514         * modules/unistr/u32-strcoll: Likewise.
4515         * modules/unistr/u32-strcpy: Likewise.
4516         * modules/unistr/u32-strcspn: Likewise.
4517         * modules/unistr/u32-strdup: Likewise.
4518         * modules/unistr/u32-strlen: Likewise.
4519         * modules/unistr/u32-strmblen: Likewise.
4520         * modules/unistr/u32-strmbtouc: Likewise.
4521         * modules/unistr/u32-strncat: Likewise.
4522         * modules/unistr/u32-strncmp: Likewise.
4523         * modules/unistr/u32-strncpy: Likewise.
4524         * modules/unistr/u32-strnlen: Likewise.
4525         * modules/unistr/u32-strpbrk: Likewise.
4526         * modules/unistr/u32-strrchr: Likewise.
4527         * modules/unistr/u32-strspn: Likewise.
4528         * modules/unistr/u32-strstr: Likewise.
4529         * modules/unistr/u32-strtok: Likewise.
4530         * modules/unistr/u32-to-u16: Likewise.
4531         * modules/unistr/u32-to-u8: Likewise.
4532         * modules/unistr/u32-uctomb: Likewise.
4533         * modules/uniwbrk/u8-wordbreaks: Likewise.
4534         * modules/uniwbrk/u16-wordbreaks: Likewise.
4535         * modules/uniwbrk/u32-wordbreaks: Likewise.
4536         * modules/uniwbrk/ulc-wordbreaks: Likewise.
4537         * modules/uniwbrk/wordbreak-property: Likewise.
4538         * modules/uniwidth/u8-strwidth: Likewise.
4539         * modules/uniwidth/u8-width: Likewise.
4540         * modules/uniwidth/u16-strwidth: Likewise.
4541         * modules/uniwidth/u16-width: Likewise.
4542         * modules/uniwidth/u32-strwidth: Likewise.
4543         * modules/uniwidth/u32-width: Likewise.
4544         * modules/uniwidth/width: Likewise.
4545         * modules/unicase/cased-tests (Makefile.am): Link all test programs
4546         with $(LIBUNISTRING).
4547         * modules/unicase/ignorable-tests: Likewise.
4548         * modules/unicase/locale-language-tests: Likewise.
4549         * modules/unicase/tolower-tests: Likewise.
4550         * modules/unicase/totitle-tests: Likewise.
4551         * modules/unicase/toupper-tests: Likewise.
4552         * modules/unicase/u8-casecmp-tests: Likewise.
4553         * modules/unicase/u8-casecoll-tests: Likewise.
4554         * modules/unicase/u8-casefold-tests: Likewise.
4555         * modules/unicase/u8-is-cased-tests: Likewise.
4556         * modules/unicase/u8-is-casefolded-tests: Likewise.
4557         * modules/unicase/u8-is-lowercase-tests: Likewise.
4558         * modules/unicase/u8-is-titlecase-tests: Likewise.
4559         * modules/unicase/u8-is-uppercase-tests: Likewise.
4560         * modules/unicase/u8-tolower-tests: Likewise.
4561         * modules/unicase/u8-totitle-tests: Likewise.
4562         * modules/unicase/u8-toupper-tests: Likewise.
4563         * modules/unicase/u16-casecmp-tests: Likewise.
4564         * modules/unicase/u16-casecoll-tests: Likewise.
4565         * modules/unicase/u16-casefold-tests: Likewise.
4566         * modules/unicase/u16-is-cased-tests: Likewise.
4567         * modules/unicase/u16-is-casefolded-tests: Likewise.
4568         * modules/unicase/u16-is-lowercase-tests: Likewise.
4569         * modules/unicase/u16-is-titlecase-tests: Likewise.
4570         * modules/unicase/u16-is-uppercase-tests: Likewise.
4571         * modules/unicase/u16-tolower-tests: Likewise.
4572         * modules/unicase/u16-totitle-tests: Likewise.
4573         * modules/unicase/u16-toupper-tests: Likewise.
4574         * modules/unicase/u32-casecmp-tests: Likewise.
4575         * modules/unicase/u32-casecoll-tests: Likewise.
4576         * modules/unicase/u32-casefold-tests: Likewise.
4577         * modules/unicase/u32-is-cased-tests: Likewise.
4578         * modules/unicase/u32-is-casefolded-tests: Likewise.
4579         * modules/unicase/u32-is-lowercase-tests: Likewise.
4580         * modules/unicase/u32-is-titlecase-tests: Likewise.
4581         * modules/unicase/u32-is-uppercase-tests: Likewise.
4582         * modules/unicase/u32-tolower-tests: Likewise.
4583         * modules/unicase/u32-totitle-tests: Likewise.
4584         * modules/unicase/u32-toupper-tests: Likewise.
4585         * modules/unicase/ulc-casecmp-tests: Likewise.
4586         * modules/unicase/ulc-casecoll-tests: Likewise.
4587         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
4588         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
4589         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
4590         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
4591         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
4592         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
4593         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
4594         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
4595         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
4596         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
4597         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
4598         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
4599         * modules/unictype/bidicategory-byname-tests: Likewise.
4600         * modules/unictype/bidicategory-name-tests: Likewise.
4601         * modules/unictype/bidicategory-of-tests: Likewise.
4602         * modules/unictype/bidicategory-test-tests: Likewise.
4603         * modules/unictype/block-list-tests: Likewise.
4604         * modules/unictype/block-of-tests: Likewise.
4605         * modules/unictype/block-test-tests: Likewise.
4606         * modules/unictype/category-C-tests: Likewise.
4607         * modules/unictype/category-Cc-tests: Likewise.
4608         * modules/unictype/category-Cf-tests: Likewise.
4609         * modules/unictype/category-Cn-tests: Likewise.
4610         * modules/unictype/category-Co-tests: Likewise.
4611         * modules/unictype/category-Cs-tests: Likewise.
4612         * modules/unictype/category-L-tests: Likewise.
4613         * modules/unictype/category-Ll-tests: Likewise.
4614         * modules/unictype/category-Lm-tests: Likewise.
4615         * modules/unictype/category-Lo-tests: Likewise.
4616         * modules/unictype/category-Lt-tests: Likewise.
4617         * modules/unictype/category-Lu-tests: Likewise.
4618         * modules/unictype/category-M-tests: Likewise.
4619         * modules/unictype/category-Mc-tests: Likewise.
4620         * modules/unictype/category-Me-tests: Likewise.
4621         * modules/unictype/category-Mn-tests: Likewise.
4622         * modules/unictype/category-N-tests: Likewise.
4623         * modules/unictype/category-Nd-tests: Likewise.
4624         * modules/unictype/category-Nl-tests: Likewise.
4625         * modules/unictype/category-No-tests: Likewise.
4626         * modules/unictype/category-P-tests: Likewise.
4627         * modules/unictype/category-Pc-tests: Likewise.
4628         * modules/unictype/category-Pd-tests: Likewise.
4629         * modules/unictype/category-Pe-tests: Likewise.
4630         * modules/unictype/category-Pf-tests: Likewise.
4631         * modules/unictype/category-Pi-tests: Likewise.
4632         * modules/unictype/category-Po-tests: Likewise.
4633         * modules/unictype/category-Ps-tests: Likewise.
4634         * modules/unictype/category-S-tests: Likewise.
4635         * modules/unictype/category-Sc-tests: Likewise.
4636         * modules/unictype/category-Sk-tests: Likewise.
4637         * modules/unictype/category-Sm-tests: Likewise.
4638         * modules/unictype/category-So-tests: Likewise.
4639         * modules/unictype/category-Z-tests: Likewise.
4640         * modules/unictype/category-Zl-tests: Likewise.
4641         * modules/unictype/category-Zp-tests: Likewise.
4642         * modules/unictype/category-Zs-tests: Likewise.
4643         * modules/unictype/category-and-not-tests: Likewise.
4644         * modules/unictype/category-and-tests: Likewise.
4645         * modules/unictype/category-byname-tests: Likewise.
4646         * modules/unictype/category-name-tests: Likewise.
4647         * modules/unictype/category-none-tests: Likewise.
4648         * modules/unictype/category-of-tests: Likewise.
4649         * modules/unictype/category-or-tests: Likewise.
4650         * modules/unictype/category-test-withtable-tests: Likewise.
4651         * modules/unictype/combining-class-tests: Likewise.
4652         * modules/unictype/ctype-alnum-tests: Likewise.
4653         * modules/unictype/ctype-alpha-tests: Likewise.
4654         * modules/unictype/ctype-blank-tests: Likewise.
4655         * modules/unictype/ctype-cntrl-tests: Likewise.
4656         * modules/unictype/ctype-digit-tests: Likewise.
4657         * modules/unictype/ctype-graph-tests: Likewise.
4658         * modules/unictype/ctype-lower-tests: Likewise.
4659         * modules/unictype/ctype-print-tests: Likewise.
4660         * modules/unictype/ctype-punct-tests: Likewise.
4661         * modules/unictype/ctype-space-tests: Likewise.
4662         * modules/unictype/ctype-upper-tests: Likewise.
4663         * modules/unictype/ctype-xdigit-tests: Likewise.
4664         * modules/unictype/decimal-digit-tests: Likewise.
4665         * modules/unictype/digit-tests: Likewise.
4666         * modules/unictype/mirror-tests: Likewise.
4667         * modules/unictype/numeric-tests: Likewise.
4668         * modules/unictype/property-alphabetic-tests: Likewise.
4669         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
4670         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
4671         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
4672         * modules/unictype/property-bidi-block-separator-tests: Likewise.
4673         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
4674         * modules/unictype/property-bidi-common-separator-tests: Likewise.
4675         * modules/unictype/property-bidi-control-tests: Likewise.
4676         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
4677         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
4678         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
4679         * modules/unictype/property-bidi-european-digit-tests: Likewise.
4680         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
4681         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
4682         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
4683         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
4684         * modules/unictype/property-bidi-pdf-tests: Likewise.
4685         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
4686         * modules/unictype/property-bidi-whitespace-tests: Likewise.
4687         * modules/unictype/property-byname-tests: Likewise.
4688         * modules/unictype/property-combining-tests: Likewise.
4689         * modules/unictype/property-composite-tests: Likewise.
4690         * modules/unictype/property-currency-symbol-tests: Likewise.
4691         * modules/unictype/property-dash-tests: Likewise.
4692         * modules/unictype/property-decimal-digit-tests: Likewise.
4693         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
4694         * modules/unictype/property-deprecated-tests: Likewise.
4695         * modules/unictype/property-diacritic-tests: Likewise.
4696         * modules/unictype/property-extender-tests: Likewise.
4697         * modules/unictype/property-format-control-tests: Likewise.
4698         * modules/unictype/property-grapheme-base-tests: Likewise.
4699         * modules/unictype/property-grapheme-extend-tests: Likewise.
4700         * modules/unictype/property-grapheme-link-tests: Likewise.
4701         * modules/unictype/property-hex-digit-tests: Likewise.
4702         * modules/unictype/property-hyphen-tests: Likewise.
4703         * modules/unictype/property-id-continue-tests: Likewise.
4704         * modules/unictype/property-id-start-tests: Likewise.
4705         * modules/unictype/property-ideographic-tests: Likewise.
4706         * modules/unictype/property-ids-binary-operator-tests: Likewise.
4707         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
4708         * modules/unictype/property-ignorable-control-tests: Likewise.
4709         * modules/unictype/property-iso-control-tests: Likewise.
4710         * modules/unictype/property-join-control-tests: Likewise.
4711         * modules/unictype/property-left-of-pair-tests: Likewise.
4712         * modules/unictype/property-line-separator-tests: Likewise.
4713         * modules/unictype/property-logical-order-exception-tests: Likewise.
4714         * modules/unictype/property-lowercase-tests: Likewise.
4715         * modules/unictype/property-math-tests: Likewise.
4716         * modules/unictype/property-non-break-tests: Likewise.
4717         * modules/unictype/property-not-a-character-tests: Likewise.
4718         * modules/unictype/property-numeric-tests: Likewise.
4719         * modules/unictype/property-other-alphabetic-tests: Likewise.
4720         * modules/unictype/property-other-default-ignorable-code-point-tests:
4721         Likewise.
4722         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
4723         * modules/unictype/property-other-id-continue-tests: Likewise.
4724         * modules/unictype/property-other-id-start-tests: Likewise.
4725         * modules/unictype/property-other-lowercase-tests: Likewise.
4726         * modules/unictype/property-other-math-tests: Likewise.
4727         * modules/unictype/property-other-uppercase-tests: Likewise.
4728         * modules/unictype/property-paired-punctuation-tests: Likewise.
4729         * modules/unictype/property-paragraph-separator-tests: Likewise.
4730         * modules/unictype/property-pattern-syntax-tests: Likewise.
4731         * modules/unictype/property-pattern-white-space-tests: Likewise.
4732         * modules/unictype/property-private-use-tests: Likewise.
4733         * modules/unictype/property-punctuation-tests: Likewise.
4734         * modules/unictype/property-quotation-mark-tests: Likewise.
4735         * modules/unictype/property-radical-tests: Likewise.
4736         * modules/unictype/property-sentence-terminal-tests: Likewise.
4737         * modules/unictype/property-soft-dotted-tests: Likewise.
4738         * modules/unictype/property-space-tests: Likewise.
4739         * modules/unictype/property-terminal-punctuation-tests: Likewise.
4740         * modules/unictype/property-test-tests: Likewise.
4741         * modules/unictype/property-titlecase-tests: Likewise.
4742         * modules/unictype/property-unassigned-code-value-tests: Likewise.
4743         * modules/unictype/property-unified-ideograph-tests: Likewise.
4744         * modules/unictype/property-uppercase-tests: Likewise.
4745         * modules/unictype/property-variation-selector-tests: Likewise.
4746         * modules/unictype/property-white-space-tests: Likewise.
4747         * modules/unictype/property-xid-continue-tests: Likewise.
4748         * modules/unictype/property-xid-start-tests: Likewise.
4749         * modules/unictype/property-zero-width-tests: Likewise.
4750         * modules/unictype/scripts-tests: Likewise.
4751         * modules/unictype/syntax-c-ident-tests: Likewise.
4752         * modules/unictype/syntax-c-whitespace-tests: Likewise.
4753         * modules/unictype/syntax-java-ident-tests: Likewise.
4754         * modules/unictype/syntax-java-whitespace-tests: Likewise.
4755         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
4756         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
4757         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
4758         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
4759         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
4760         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
4761         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
4762         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
4763         * modules/uniname/uniname-tests: Likewise.
4764         * modules/uninorm/canonical-decomposition-tests: Likewise.
4765         * modules/uninorm/compat-decomposition-tests: Likewise.
4766         * modules/uninorm/composition-tests: Likewise.
4767         * modules/uninorm/decomposing-form-tests: Likewise.
4768         * modules/uninorm/decomposition-tests: Likewise.
4769         * modules/uninorm/filter-tests: Likewise.
4770         * modules/uninorm/nfc-tests: Likewise.
4771         * modules/uninorm/nfd-tests: Likewise.
4772         * modules/uninorm/nfkc-tests: Likewise.
4773         * modules/uninorm/nfkd-tests: Likewise.
4774         * modules/uninorm/u8-normcmp-tests: Likewise.
4775         * modules/uninorm/u8-normcoll-tests: Likewise.
4776         * modules/uninorm/u16-normcmp-tests: Likewise.
4777         * modules/uninorm/u16-normcoll-tests: Likewise.
4778         * modules/uninorm/u32-normcmp-tests: Likewise.
4779         * modules/uninorm/u32-normcoll-tests: Likewise.
4780         * modules/unistdio/u8-asnprintf-tests: Likewise.
4781         * modules/unistdio/u8-vasnprintf-tests: Likewise.
4782         * modules/unistdio/u8-vasprintf-tests: Likewise.
4783         * modules/unistdio/u8-vsnprintf-tests: Likewise.
4784         * modules/unistdio/u8-vsprintf-tests: Likewise.
4785         * modules/unistdio/u16-asnprintf-tests: Likewise.
4786         * modules/unistdio/u16-vasnprintf-tests: Likewise.
4787         * modules/unistdio/u16-vasprintf-tests: Likewise.
4788         * modules/unistdio/u16-vsnprintf-tests: Likewise.
4789         * modules/unistdio/u16-vsprintf-tests: Likewise.
4790         * modules/unistdio/u32-asnprintf-tests: Likewise.
4791         * modules/unistdio/u32-vasnprintf-tests: Likewise.
4792         * modules/unistdio/u32-vasprintf-tests: Likewise.
4793         * modules/unistdio/u32-vsnprintf-tests: Likewise.
4794         * modules/unistdio/u32-vsprintf-tests: Likewise.
4795         * modules/unistdio/ulc-asnprintf-tests: Likewise.
4796         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
4797         * modules/unistdio/ulc-vasprintf-tests: Likewise.
4798         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
4799         * modules/unistdio/ulc-vsprintf-tests: Likewise.
4800         * modules/unistr/u8-check-tests: Likewise.
4801         * modules/unistr/u8-chr-tests: Likewise.
4802         * modules/unistr/u8-cmp-tests: Likewise.
4803         * modules/unistr/u8-cmp2-tests: Likewise.
4804         * modules/unistr/u8-cpy-alloc-tests: Likewise.
4805         * modules/unistr/u8-cpy-tests: Likewise.
4806         * modules/unistr/u8-mblen-tests: Likewise.
4807         * modules/unistr/u8-mbsnlen-tests: Likewise.
4808         * modules/unistr/u8-mbtouc-tests: Likewise.
4809         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
4810         * modules/unistr/u8-mbtoucr-tests: Likewise.
4811         * modules/unistr/u8-move-tests: Likewise.
4812         * modules/unistr/u8-next-tests: Likewise.
4813         * modules/unistr/u8-prev-tests: Likewise.
4814         * modules/unistr/u8-set-tests: Likewise.
4815         * modules/unistr/u8-stpcpy-tests: Likewise.
4816         * modules/unistr/u8-stpncpy-tests: Likewise.
4817         * modules/unistr/u8-strcat-tests: Likewise.
4818         * modules/unistr/u8-strcmp-tests: Likewise.
4819         * modules/unistr/u8-strcoll-tests: Likewise.
4820         * modules/unistr/u8-strcpy-tests: Likewise.
4821         * modules/unistr/u8-strdup-tests: Likewise.
4822         * modules/unistr/u8-strlen-tests: Likewise.
4823         * modules/unistr/u8-strmblen-tests: Likewise.
4824         * modules/unistr/u8-strmbtouc-tests: Likewise.
4825         * modules/unistr/u8-strncat-tests: Likewise.
4826         * modules/unistr/u8-strncmp-tests: Likewise.
4827         * modules/unistr/u8-strncpy-tests: Likewise.
4828         * modules/unistr/u8-strnlen-tests: Likewise.
4829         * modules/unistr/u8-to-u16-tests: Likewise.
4830         * modules/unistr/u8-to-u32-tests: Likewise.
4831         * modules/unistr/u8-uctomb-tests: Likewise.
4832         * modules/unistr/u16-check-tests: Likewise.
4833         * modules/unistr/u16-chr-tests: Likewise.
4834         * modules/unistr/u16-cmp-tests: Likewise.
4835         * modules/unistr/u16-cmp2-tests: Likewise.
4836         * modules/unistr/u16-cpy-alloc-tests: Likewise.
4837         * modules/unistr/u16-cpy-tests: Likewise.
4838         * modules/unistr/u16-mblen-tests: Likewise.
4839         * modules/unistr/u16-mbsnlen-tests: Likewise.
4840         * modules/unistr/u16-mbtouc-tests: Likewise.
4841         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
4842         * modules/unistr/u16-mbtoucr-tests: Likewise.
4843         * modules/unistr/u16-move-tests: Likewise.
4844         * modules/unistr/u16-next-tests: Likewise.
4845         * modules/unistr/u16-prev-tests: Likewise.
4846         * modules/unistr/u16-set-tests: Likewise.
4847         * modules/unistr/u16-stpcpy-tests: Likewise.
4848         * modules/unistr/u16-stpncpy-tests: Likewise.
4849         * modules/unistr/u16-strcat-tests: Likewise.
4850         * modules/unistr/u16-strcmp-tests: Likewise.
4851         * modules/unistr/u16-strcoll-tests: Likewise.
4852         * modules/unistr/u16-strcpy-tests: Likewise.
4853         * modules/unistr/u16-strdup-tests: Likewise.
4854         * modules/unistr/u16-strlen-tests: Likewise.
4855         * modules/unistr/u16-strmblen-tests: Likewise.
4856         * modules/unistr/u16-strmbtouc-tests: Likewise.
4857         * modules/unistr/u16-strncat-tests: Likewise.
4858         * modules/unistr/u16-strncmp-tests: Likewise.
4859         * modules/unistr/u16-strncpy-tests: Likewise.
4860         * modules/unistr/u16-strnlen-tests: Likewise.
4861         * modules/unistr/u16-to-u32-tests: Likewise.
4862         * modules/unistr/u16-to-u8-tests: Likewise.
4863         * modules/unistr/u16-uctomb-tests: Likewise.
4864         * modules/unistr/u32-check-tests: Likewise.
4865         * modules/unistr/u32-chr-tests: Likewise.
4866         * modules/unistr/u32-cmp-tests: Likewise.
4867         * modules/unistr/u32-cmp2-tests: Likewise.
4868         * modules/unistr/u32-cpy-alloc-tests: Likewise.
4869         * modules/unistr/u32-cpy-tests: Likewise.
4870         * modules/unistr/u32-mblen-tests: Likewise.
4871         * modules/unistr/u32-mbsnlen-tests: Likewise.
4872         * modules/unistr/u32-mbtouc-tests: Likewise.
4873         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
4874         * modules/unistr/u32-mbtoucr-tests: Likewise.
4875         * modules/unistr/u32-move-tests: Likewise.
4876         * modules/unistr/u32-next-tests: Likewise.
4877         * modules/unistr/u32-prev-tests: Likewise.
4878         * modules/unistr/u32-set-tests: Likewise.
4879         * modules/unistr/u32-stpcpy-tests: Likewise.
4880         * modules/unistr/u32-stpncpy-tests: Likewise.
4881         * modules/unistr/u32-strcat-tests: Likewise.
4882         * modules/unistr/u32-strcmp-tests: Likewise.
4883         * modules/unistr/u32-strcoll-tests: Likewise.
4884         * modules/unistr/u32-strcpy-tests: Likewise.
4885         * modules/unistr/u32-strdup-tests: Likewise.
4886         * modules/unistr/u32-strlen-tests: Likewise.
4887         * modules/unistr/u32-strmblen-tests: Likewise.
4888         * modules/unistr/u32-strmbtouc-tests: Likewise.
4889         * modules/unistr/u32-strncat-tests: Likewise.
4890         * modules/unistr/u32-strncmp-tests: Likewise.
4891         * modules/unistr/u32-strncpy-tests: Likewise.
4892         * modules/unistr/u32-strnlen-tests: Likewise.
4893         * modules/unistr/u32-to-u16-tests: Likewise.
4894         * modules/unistr/u32-to-u8-tests: Likewise.
4895         * modules/unistr/u32-uctomb-tests: Likewise.
4896         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
4897         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
4898         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
4899         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
4900         * modules/uniwidth/u8-strwidth-tests: Likewise.
4901         * modules/uniwidth/u8-width-tests: Likewise.
4902         * modules/uniwidth/u16-strwidth-tests: Likewise.
4903         * modules/uniwidth/u16-width-tests: Likewise.
4904         * modules/uniwidth/u32-strwidth-tests: Likewise.
4905         * modules/uniwidth/u32-width-tests: Likewise.
4906         * modules/uniwidth/width-tests: Likewise.
4907
4908 2010-05-18  Richard Jones  <rjones@redhat.com>
4909
4910         doc: users.txt: list hivex
4911         * users.txt: Add hivex.
4912
4913 2010-05-18  Richard Jones  <rjones@redhat.com>
4914
4915         doc: users.txt: list febootstrap
4916         * users.txt: Add febootstrap.
4917
4918 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
4919
4920         bootstrap: fix an error when gnulib is not used as a git submodule
4921         * build-aux/bootstrap (gnulib_path): If its length is zero then
4922         assign "gnulib" to it.
4923         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
4924
4925 2010-05-16  Bruno Haible  <bruno@clisp.org>
4926
4927         Avoid autoconf warnings about AM_ICONV.
4928         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
4929         2.64.
4930
4931 2010-05-16  Bruno Haible  <bruno@clisp.org>
4932
4933         absolute-header: Make the macro usable in more situations.
4934         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
4935         from gl_ABSOLUTE_HEADER.
4936         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
4937
4938 2010-05-16  James Youngman  <jay@gnu.org>
4939
4940         doc: update users.txt
4941         * users.txt: Add CSSC.
4942
4943 2010-05-16  Jim Meyering  <meyering@redhat.com>
4944
4945         init.sh: fix an error in the previous change; add more comments
4946         * tests/init.sh: Compare exit code in loop against 9, not 2.
4947         Patch by Bruno Haible.
4948         Make the two tests more similar by adding an empty "then" clause.
4949         Add comments.
4950
4951         init.sh: avoid unnecessary shell re-exec
4952         * tests/init.sh: Improve the re-exec-required check to first test the
4953         current shell.  If it passes the test, do not search for a shell that
4954         does pass, and do not re-exec.  This test is particularly contorted to
4955         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
4956         of $(...) evokes a syntax error and causes immediate shell exit with
4957         status 2.  Bruno Haible reported that the re-exec made it impossible
4958         to single-step through any init.sh-using script.
4959
4960 2010-05-16  Bruno Haible  <bruno@clisp.org>
4961
4962         Fix collision between gnulib's and libintl's printf replacements.
4963         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
4964         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
4965         (printf): When using GNU C, map the __printf__ function to rpl_printf
4966         via __asm__. When not using GNU C, define rpl_printf instead of
4967         __printf__.
4968         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
4969         commit.
4970         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
4971         commit.
4972         * m4/asm-underscore.m4: New file.
4973         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
4974         * modules/stdio (Files): Add m4/asm-underscore.m4.
4975         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
4976         Reported by Ben Pfaff.
4977
4978 2010-05-16  Bruno Haible  <bruno@clisp.org>
4979
4980         verify: Avoid skipping the test on openSUSE 11.0.
4981         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
4982
4983 2010-05-13  Bruno Haible  <bruno@clisp.org>
4984
4985         Avoid useless warnings from G++.
4986         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
4987         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
4988         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4989
4990 2010-05-11  Jim Meyering  <meyering@redhat.com>
4991
4992         maint.mk: tweak preceding change
4993         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
4994         regexps tighter by anchoring at EOL, and make the new group "shy"
4995         for slightly decreased overhead.
4996
4997 2010-05-11  Eric Blake  <eblake@redhat.com>
4998
4999         maint.mk: gnulib doesn't guarantee NSIG
5000         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
5001
5002 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
5003
5004         test-pwrite.c: Remove unused variable declaration.
5005         * tests/test-pwrite.c (main): Remove read_buf declaration.
5006
5007         Remove useless test-pwrite.sh file.
5008         * tests/test-pwrite.sh: Delete file.
5009         * modules/pwrite-tests: Remove references.
5010         Reported by Bruno Haible.
5011
5012 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
5013
5014         init.sh: fix a typo
5015         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
5016
5017 2010-05-10  Jim Meyering  <meyering@redhat.com>
5018
5019         maint.mk: avoid using a temporary file in the always-defined-macros check
5020         * top/maint.mk (.re-defmac): Remove rule.
5021         (gl_trap_): Remove definition.
5022         (sc_prohibit_always-defined_macros): Rewrite not to create and
5023         depend on a temporary file.  Instead, depend on GNU grep's ability
5024         to read a list of regular expressions from stdin when given "-f -".
5025
5026 2010-05-09  Bruno Haible  <bruno@clisp.org>
5027
5028         Update to GNU gettext 0.18, part 1.
5029         * m4/gettext.m4: Update to GNU gettext 0.18.
5030         * m4/intl.m4: Likewise.
5031         * m4/po.m4: Likewise.
5032         * modules/gettext (Files): Add m4/fcntl-o.m4.
5033         (configure.ac): Require gettext infrastructure from version 0.18.
5034
5035 2010-05-09  Jim Meyering  <meyering@redhat.com>
5036
5037         init.sh: enable MALLOC_PERTURB_
5038         * tests/init.sh: Enable glibc's malloc-perturbing option.
5039
5040         maint.mk: improve sc_cross_check_PATH_usage_in_tests
5041         With my recent change in init.sh from the two-line form:
5042             -#   : ${srcdir=.}
5043             -#   . "$srcdir/init.sh"; path_prepend_ .
5044             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
5045         I noticed that using the one-line form would cause this test
5046         to fail with a false-positive, or to stop working altogether,
5047         depending on whether help-version changed or all the tests did.
5048         * top/maint.mk (_hv_regex): Remove this definition.
5049         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
5050         (_hv_regex_strong): Use a stronger regex to check for conformance.
5051         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
5052         Give a separate diagnostic for lack of conforming use.
5053
5054         maint.mk: prohibit definition of symbols defined by gnulib
5055         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
5056         definition of symbols defined by gnulib.
5057
5058 2010-05-09  Bruno Haible  <bruno@clisp.org>
5059
5060         acl: Avoid test failure on Cygwin-hosted mingw.
5061         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
5062
5063 2010-05-09  Bruno Haible  <bruno@clisp.org>
5064
5065         error: Use system's fcntl function.
5066         * lib/error.c (fcntl): Undefine.
5067
5068 2010-05-09  Jim Meyering  <meyering@redhat.com>
5069
5070         verify: adjust formatting to be more consistent
5071         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
5072         argument-list '('s, and after one comma.
5073
5074 2010-05-09  Bruno Haible  <bruno@clisp.org>
5075
5076         error: More reliable output on mingw.
5077         * lib/error.c: Include <windows.h>.
5078         (is_open): New function.
5079         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
5080         defined.
5081
5082 2010-05-09  Bruno Haible  <bruno@clisp.org>
5083
5084         vasnprintf: Fix syntax errors in libintl build on mingw.
5085         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
5086         pad_ourselves and prec_ourselves after use.
5087
5088 2010-05-08  Bruno Haible  <bruno@clisp.org>
5089
5090         * lib/config.charset: Update comments for Cygwin 1.7.
5091         * lib/localcharset.c: Likewise.
5092
5093 2010-05-07  Jim Meyering  <meyering@redhat.com>
5094
5095         init.sh: improve comments
5096         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
5097         . "${srcdir=.}/init.sh"; path_prepend_ .
5098         Add a note about path_prepend_ and the alternative of using
5099         TESTS_ENVIRONMENT.
5100
5101 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
5102
5103         exclude: Unescape hashed patterns in wildcard mode.
5104         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
5105         to the hash list.
5106         * tests/test-exclude8.sh: New test case.
5107         * modules/exclude-tests: Add new test.
5108
5109 2010-05-05  Eric Blake  <eblake@redhat.com>
5110
5111         verify: automate tests
5112         * modules/verify-tests: New module.
5113         * tests/test-verify.sh: New file.
5114         * tests/test-verify.c: Guard each negative test with a unique id.
5115         Also avoid warning about unused left hand of comma expressions.
5116
5117 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
5118
5119         Further improvements to verify.h, suggested by Eric Blake.
5120         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
5121         the GL_* versions, to avoid collision with OpenGL.
5122         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
5123         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
5124         than testing merely whether it's defined.
5125
5126         Modify verify.h to pacify gcc -Wredundant_decls.
5127         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
5128         These use the prefix "GL_" since they're likely to be useful elsewhere.
5129         We may need to break them out into a different .h file.
5130         (__COUNTER__): Define to 0 if the compiler doesn't support it.
5131         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
5132         of verify_function__.
5133
5134 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5135
5136         Tests for module pwrite.
5137         * modules/pwrite-tests: New file.
5138         * tests/test-pwrite.sh: New file.
5139         * tests/test-pwrite.c: New file.
5140
5141         New module pwrite.
5142         * lib/unistd.in.h (pwrite): New declaration.
5143         * lib/pwrite.c: New file, from glibc with modifications.
5144         * m4/pwrite.m4: New file.
5145         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
5146         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
5147         REPLACE_PWRITE.
5148         * modules/pwrite: New file.
5149         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
5150         REPLACE_PWRITE.
5151         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
5152         * doc/posix-functions/pwrite.texi: Mention the new module.
5153
5154 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
5155
5156         pread: Update documentation.
5157         * doc/posix-functions/pread.texi: Mention the 'pread' module.
5158
5159 2010-05-04  Eric Blake  <eblake@redhat.com>
5160
5161         docs: update cygwin progress
5162         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
5163         this bug.
5164         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
5165         Added in cygwin 1.7.2.
5166         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
5167         Likewise.
5168         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
5169         Likewise.
5170         * doc/glibc-functions/dup3.texi (dup3): Likewise.
5171         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
5172         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5173         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
5174         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
5175         Mention nproc module.
5176         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
5177         bug in cygwin 1.7.5 addition.
5178         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
5179         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
5180         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
5181         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
5182         1.7.5.
5183         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
5184         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
5185         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
5186         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
5187         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
5188         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
5189         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
5190         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
5191         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
5192         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
5193         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
5194         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
5195         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
5196         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
5197         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
5198         Likewise.
5199         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
5200         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
5201         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
5202         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
5203         Likewise.
5204         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
5205         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
5206         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
5207         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
5208         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
5209         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
5210         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
5211         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
5212         Likewise.
5213         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
5214         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
5215         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
5216         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
5217         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
5218         Likewise.
5219         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
5220         Likewise.
5221         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
5222         Likewise.
5223         * doc/glibc-functions/xdrrec_endofrecord.texi
5224         (xdrrec_endofrecord): Likewise.
5225         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
5226         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
5227         Likewise.
5228         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
5229         Likewise.
5230
5231 2010-05-04  Jim Meyering  <meyering@redhat.com>
5232
5233         gendocs.sh: make its "-s FILE" option more useful
5234         * build-aux/gendocs.sh: When honoring the -s FILE option, update
5235         $PACKAGE to reflect the probably-different basename of "FILE".
5236
5237 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
5238
5239         bootstrap: don't ignore download_po_files failure
5240         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
5241         failure.
5242
5243 2010-05-03  Jim Meyering  <meyering@redhat.com>
5244
5245         maint.mk: allow to pass options to gendocs.sh
5246         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
5247         (gendocs_options_): New overridable variable.
5248
5249         gnu-web-doc-update: don't ignore configure or build failure
5250         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
5251
5252         announce-gen: backslash-escape '@'s in --help output
5253         * build-aux/announce-gen: Fix syntax errors.
5254
5255         maint.mk, announce-gen: allow project-specific announcement mail headers
5256         * top/maint.mk (translation_project_): Define default.
5257         (announcement_Cc_, announcement_mail_headers_): Likewise.
5258         (announcement): Invoke announce-gen with new --mail-headers option.
5259         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
5260
5261         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
5262         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
5263         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
5264         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
5265         line in the "err2" output file when running "make check" in verbose
5266         mode (i.e., with set -x enabled).
5267
5268 2010-05-03  Bruno Haible  <bruno@clisp.org>
5269
5270         wctob: Fix for weird platforms.
5271         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
5272         argument value.
5273
5274 2010-05-03  Jim Meyering  <meyering@redhat.com>
5275
5276         maint.mk: prohibit unwarranted use of <strings.h>
5277         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
5278         strings.h in a file that does not also use strcasecmp, strncasecmp,
5279         ffs or ffsll.
5280
5281         maint.mk: remove obsolete comments
5282         * top/maint.mk: Remove stale, commented-out rules.
5283
5284 2010-05-02  Bruno Haible  <bruno@clisp.org>
5285
5286         wcwidth: Declare also when it's aliased.
5287         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
5288         macro.
5289
5290 2010-05-02  Bruno Haible  <bruno@clisp.org>
5291
5292         Fix regression from 2010-04-25.
5293         * gnulib-tool (func_modules_transitive_closure): Check the status of
5294         all modules, not only of the tests that are of the form foo-tests where
5295         foo is a module.
5296
5297 2010-05-02  Bruno Haible  <bruno@clisp.org>
5298
5299         wctob: Work around nasty Cygwin 1.7.2 bug.
5300         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
5301         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
5302
5303 2010-05-01  Bruno Haible  <bruno@clisp.org>
5304
5305         fpurge: Sharper test.
5306         * tests/test-fpurge.c (main): Add one more ftell check.
5307         * modules/fpurge-tests (Depends-on): Add ftell.
5308         Suggested by Eric Blake.
5309
5310 2010-05-01  Bruno Haible  <bruno@clisp.org>
5311
5312         ftello: Another test.
5313         * tests/test-ftello3.c: New file.
5314         * modules/ftello-tests (Files): Add it.
5315         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5316         MOSTLYCLEANFILES.
5317
5318         ftell: Another test.
5319         * tests/test-ftell3.c: New file.
5320         * modules/ftell-tests (Files): Add it.
5321         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
5322         MOSTLYCLEANFILES.
5323
5324 2010-05-01  Bruno Haible  <bruno@clisp.org>
5325
5326         ftell, ftello: Work around Solaris bug.
5327         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
5328         * lib/ftello.c: Include stdio-impl.h.
5329         (ftello): On Solaris, when _IOWRT is set, compute the result without
5330         looking at _IOREAD.
5331         * modules/ftello (Files): Add lib/stdio-impl.h.
5332         * doc/posix-functions/ftell.texi: Mention Solaris bug.
5333         * doc/posix-functions/ftello.texi: Likewise.
5334         Reported by Eric Blake.
5335
5336 2010-05-01  Bruno Haible  <bruno@clisp.org>
5337
5338         freading: Adapt to special meaning of _IOREAD flag on Solaris.
5339         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
5340         the _IOWRT flag is also set.
5341
5342 2010-05-01  Bruno Haible  <bruno@clisp.org>
5343
5344         Fix doc about a HP-UX stdio bug.
5345         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
5346         * doc/posix-functions/ftello.texi: Likewise.
5347
5348 2010-05-01  Bruno Haible  <bruno@clisp.org>
5349
5350         lseek test: Fix failure on Solaris.
5351         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
5352         output.
5353
5354 2010-04-30  Jim Meyering  <meyering@redhat.com>
5355
5356         bootstrap: don't ignore failure to generate po*/Makevars
5357         * build-aux/bootstrap (with_gettext): Don't ignore failure
5358         to create po/Makevars or runtime-po/Makevars.
5359
5360 2010-04-29  Eric Blake  <eblake@redhat.com>
5361
5362         headers: relax license to LGPLv2+
5363         * modules/fcntl-h (License): Relax license.
5364         * modules/getopt-posix (License): Likewise.
5365         * modules/locale (License): Likewise.
5366         * modules/math (License): Likewise.
5367         * modules/pty (License): Likewise.
5368         * modules/sched (License): Likewise.
5369         * modules/search (License): Likewise.
5370         * modules/spawn (License): Likewise.
5371         * modules/stdarg (License): Likewise.
5372         * modules/sysexits (License): Likewise.
5373
5374 2010-04-29  Jim Meyering  <meyering@redhat.com>
5375
5376         inttypes: relax license to LGPLv2+
5377         * modules/inttypes (License): Relax license.
5378
5379 2010-04-29  Simon Josefsson  <simon@josefsson.org>
5380
5381         * top/maint.mk (indent): Run twice to produce idempotent results.
5382
5383 2010-04-28  Bruno Haible  <bruno@clisp.org>
5384
5385         getdate: Generate getdate.c in the source directory.
5386         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
5387         MOSTLYCLEANFILES.
5388         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
5389
5390 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
5391
5392         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
5393         is not declared as a const *; avoid warnings in that case.
5394
5395 2010-04-28  Eric Blake  <eblake@redhat.com>
5396
5397         canonicalize-lgpl: avoid compiler warning
5398         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
5399         declaration' / 'extraneous semicolon' warning with some compilers.
5400         Reported by Andreas Gruenbacher.
5401
5402 2010-04-28  Jim Meyering  <meyering@redhat.com>
5403
5404         init.sh: ensure a more reliable exit status when exiting via trap
5405         * tests/init.sh (setup_): Don't rely on $? in signal handler.
5406         Inspired by patches from Dmitry V. Levin.
5407         Also trap on signal 3 (SIGQUIT).
5408
5409 2010-04-27  Bruno Haible  <bruno@clisp.org>
5410
5411         Update doc about utimes().
5412         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
5413         'utimens' module.
5414         Reported by Andreas Gruenbacher <agruen@suse.de>.
5415
5416 2010-04-27  Eric Blake  <eblake@redhat.com>
5417
5418         full-read, full-write: relax license
5419         * modules/full-read (License): Drop to LGPLv2+.
5420         * modules/full-write (License): Likewise.
5421         * modules/safe-read (License): Likewise.
5422         * modules/safe-write (License): Likewise.
5423
5424         pthread: mention library for linking
5425         * modules/pthread (Link): Mention $(LIB_PTHREAD).
5426
5427 2010-04-27  Jim Meyering  <meyering@redhat.com>
5428
5429         maint.mk: fix a bug introduced in last change
5430         * top/maint.mk (gl_assured_headers_): Now that all names are on
5431         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
5432         is not anchored to end of word, it should be adequate.
5433
5434         maint.mk: avoid side-effect in latest syntax-check
5435         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
5436         to run commands via $(shell...), and hence to incur cost only when
5437         the new rule is actually run.
5438
5439         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
5440         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
5441         and use that to create a regexp used to detect all #if HAVE_..._H uses.
5442         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
5443         (gl_assured_headers_, az_, AZ_): Define.
5444         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
5445
5446 2010-04-26  Jim Meyering  <jim@meyering.net>
5447             Bruno Haible  <bruno@clisp.org>
5448
5449         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
5450         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
5451         Prompted by an exchange with Gilles Espinasse.
5452
5453 2010-04-26  Jim Meyering  <meyering@redhat.com>
5454
5455         git-version-gen: aesthetic tweak
5456         * build-aux/git-version-gen: Use "$nl" rather than a literal,
5457         so that the command remains on a single line.
5458
5459 2010-04-26  Eric Blake  <eblake@redhat.com>
5460
5461         git-version-gen: allow use on EBCDIC hosts
5462         * build-aux/git-version-gen (dirty): Use literal rather than tying
5463         ourselves to ascii.
5464         Reported by Steve Goetze.
5465
5466 2010-04-25  Bruno Haible  <bruno@clisp.org>
5467
5468         netdb: Add support for GNULIB_POSIXCHECK.
5469         * lib/netdb.in.h: Include warn-on-use.h.
5470         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
5471         functions are used when GNULIB_POSIXCHECK is defined and the
5472         getaddrinfo module is not in use.
5473         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
5474         freeaddrinfo, gai_strerror, getnameinfo are declared.
5475         * modules/netdb (Depends-on): Add warn-on-use.
5476         (Makefile.am): Include warn-on-use.h in netdb.h.
5477
5478 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
5479
5480         build: avoid "make check" failure without .git/ directory
5481         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
5482         there is no .git/ directory.
5483
5484 2010-04-25  Bruno Haible  <bruno@clisp.org>
5485
5486         ptsname: Fix misuse of ttyname_r.
5487         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
5488         of errno.
5489
5490 2010-04-25  Bruno Haible  <bruno@clisp.org>
5491
5492         ttyname_r: Make it work on Solaris 10.
5493         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
5494         if the system function has the POSIX declaration. Test whether the
5495         function fails if the buffer is less than 128 bytes large.
5496         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
5497         system's ttyname_r function. Provide a reasonably large buffer.
5498         * modules/ttyname_r (Depends-on): Add extensions.
5499         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
5500
5501 2010-04-25  Bruno Haible  <bruno@clisp.org>
5502
5503         Use the 'extensions' module for some more functions on Solaris.
5504         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
5505         module.
5506         * doc/posix-functions/ctime_r.texi: Likewise.
5507         * doc/posix-functions/getgrgid_r.texi: Likewise.
5508         * doc/posix-functions/getgrnam_r.texi: Likewise.
5509         * doc/posix-functions/getpwnam_r.texi: Likewise.
5510         * doc/posix-functions/getpwuid_r.texi: Likewise.
5511         * doc/posix-functions/readdir_r.texi: Likewise.
5512         * doc/posix-functions/sigwait.texi: Likewise.
5513         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
5514         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
5515
5516 2010-04-25  Bruno Haible  <bruno@clisp.org>
5517
5518         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
5519         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
5520         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
5521         * lib/ttyname_r.c: Include <limits.h>.
5522         (ttyname_r): Define using the system's ttyname_r function, if it exists
5523         and not on Solaris.
5524         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
5525         set.
5526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
5527         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
5528         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
5529         Reported by Simon Josefsson.
5530
5531 2010-04-25  Bruno Haible  <bruno@clisp.org>
5532
5533         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
5534         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
5535         * doc/posix-functions/ctime_r.texi: Likewise.
5536         * doc/posix-functions/getgrgid_r.texi: Likewise.
5537         * doc/posix-functions/getgrnam_r.texi: Likewise.
5538         * doc/posix-functions/getlogin_r.texi: Likewise.
5539         * doc/posix-functions/getpwnam_r.texi: Likewise.
5540         * doc/posix-functions/getpwuid_r.texi: Likewise.
5541         * doc/posix-functions/readdir_r.texi: Likewise.
5542         * doc/posix-functions/sigwait.texi: Likewise.
5543         * doc/posix-functions/ttyname_r.texi: Likewise.
5544         Reported by Simon Josefsson.
5545
5546 2010-04-25  Bruno Haible  <bruno@clisp.org>
5547
5548         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
5549         * gnulib-tool (func_usage): Document that --with-*-tests options apply
5550         also to --create-testdir.
5551         (func_acceptable): Don't consider the status of *-tests modules here.
5552         (func_modules_transitive_closure): Consider it here, before including a
5553         test module.
5554         (func_import, func_create_testdir): Set inc_all_direct_tests,
5555         inc_all_indirect_tests.
5556         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
5557         --create-testdir and --create-megatestdir.
5558
5559 2010-04-25  Bruno Haible  <bruno@clisp.org>
5560
5561         gnulib-tool: Add --without-*-tests options.
5562         * gnulib-tool (func_usage): Document the --without-*-tests options.
5563         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
5564         excl_unportable_tests): New variables.
5565         Fail if they are specified with --import or --update.
5566         (func_acceptable): Respect the excl_*_tests variables.
5567         (func_import): Set the excl_*_tests variables to empty.
5568
5569 2010-04-25  Simon Josefsson  <simon@josefsson.org>
5570             Bruno Haible  <bruno@clisp.org>
5571
5572         Work around a MacOS X 10.4 bug with openpty.
5573         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
5574         * tests/test-openpty.c (main): Close the master side explicitly.
5575
5576 2010-04-25  Bruno Haible  <bruno@clisp.org>
5577
5578         strnlen: Fix a C++ test error on MacOS X and Solaris.
5579         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
5580         the function is not declared.
5581         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
5582         Simon Josefsson.
5583
5584 2010-04-24  Bruno Haible  <bruno@clisp.org>
5585
5586         Avoid a gcc warning.
5587         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
5588         of correct type for %08lx directive.
5589         Reported by Eric Blake.
5590
5591 2010-04-24  Bruno Haible  <bruno@clisp.org>
5592
5593         vasnprintf: Correct errno value in case of out-of-memory.
5594         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
5595         or sprintf. Use the errno value from SNPRINTF or sprintf.
5596         Reported by Ian Beckwith <ianb@erislabs.net>.
5597
5598 2010-04-24  Bruno Haible  <bruno@clisp.org>
5599
5600         ansi-c++-opt: Find correct compiler when cross-compiling.
5601         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
5602         AC_CHECK_PROGS.
5603         Reported by Simon Josefsson.
5604
5605 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
5606
5607         vc-list-files: Add support for subversion
5608         * build-aux/vc-list-files: Use "svn list" to generate the list of
5609         files controlled by subversion.
5610
5611 2010-04-23  Jim Meyering  <meyering@redhat.com>
5612
5613         vc-list-files tests: convert to use init.sh
5614         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
5615         path_prepend_.
5616         Use Exit, not exit.
5617         Use skip_ rather than open coding it.
5618         Remove trap set-up and compare definitions.
5619         * tests/test-vc-list-files-git.sh: Likewise.
5620         * modules/vc-list-files-tests (Files): Add tests/init.sh.
5621
5622 2010-04-22  Simon Josefsson  <simon@josefsson.org>
5623
5624         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
5625         backup files.
5626
5627 2010-04-21  Simon Josefsson  <simon@josefsson.org>
5628
5629         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
5630
5631 2010-04-20  Eric Blake  <eblake@redhat.com>
5632
5633         tests: be robust to ignored SIGPIPE
5634         * tests/test-select-in.sh: Consume all output.
5635         * tests/test-lseek.sh: Check correct exit status, while avoiding
5636         EPIPE.
5637
5638 2010-04-20  Simon Josefsson  <simon@josefsson.org>
5639             Bruno Haible  <bruno@clisp.org>
5640
5641         visibility: Don't use -fvisibility if it leads to a warning.
5642         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
5643         yes, don't pretend that visibility works if it leads to a warning.
5644         Reported by Mike Gran <spk121@yahoo.com>.
5645
5646 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
5647
5648         * build-aux/bootstrap: Use "git -h" for testing for supported options
5649         instead of "git --help".  The short-form option only shows a summary,
5650         and doesn't layout the full man page.  Grep for the full option name
5651         in the summary, too.
5652
5653 2010-04-19  Bruno Haible  <bruno@clisp.org>
5654
5655         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
5656         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
5657         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
5658         mention of RELOCATABLE_STRIP.
5659         Reported by Sylvain Beucler <beuc@beuc.net>.
5660
5661 2010-04-19  Bruno Haible  <bruno@clisp.org>
5662
5663         * lib/diffseq.h: Fix typo in comment.
5664         Reported by Eric Blake.
5665
5666 2010-04-19  Bruno Haible  <bruno@clisp.org>
5667
5668         ioctl: Move autoconf macro to a .m4 file.
5669         * m4/ioctl.m4: New file, extracted from modules/ioctl.
5670         * modules/ioctl (Files): Add it.
5671         (configure.ac): Simply invoke gl_FUNC_IOCTL.
5672         Reported by Ian Beckwith <ianb@erislabs.net>.
5673
5674 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
5675             Bruno Haible  <bruno@clisp.org>
5676
5677         diffseq: Accommodate use-case with abstract arrays.
5678         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
5679         is not defined.
5680         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
5681         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
5682
5683 2010-04-18  Bruno Haible  <bruno@clisp.org>
5684
5685         * doc/posix-headers/stdbool.texi: More precise wording.
5686
5687 2010-04-17  Jim Meyering  <meyering@redhat.com>
5688
5689         maint.mk: use gnu-style indentation in an embedded perl script
5690         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
5691         Rename variable: s/two/last_two_bytes/
5692
5693 2010-04-16  Eric Blake  <eblake@redhat.com>
5694
5695         test-stdbool: skip test that fails with Solaris CC
5696         * tests/test-stdbool.c (f): Skip test that causes compilation
5697         error under buggy C++ compiler.
5698         * lib/stdbool.in.h: Document the limitation.
5699         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
5700
5701         setenv: allow compilation with C++
5702         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
5703         register keyword.
5704
5705         stdint: allow test to pass with C++
5706         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
5707
5708         getopt: allow compilation with C++
5709         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
5710         struct.
5711         * lib/getopt.c (_getopt_internal_r): Use correct type.
5712         Reported by Dagobert Michelson, via Joel E. Denny.
5713
5714 2010-04-16  Bruno Haible  <bruno@clisp.org>
5715
5716         Override netdb.h always.
5717         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
5718         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
5719         Reported by Ludovic Courtès <ludo@gnu.org>.
5720
5721 2010-04-15  Bruno Haible  <bruno@clisp.org>
5722
5723         openpty: Fix mistake from 2010-03-21.
5724         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
5725         Reported by Simon Josefsson.
5726
5727 2010-04-15  Eric Blake  <eblake@redhat.com>
5728
5729         test-forkpty: fix expected signature
5730         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
5731         Reported by Simon Josefsson.
5732
5733 2010-04-15  Jim Meyering  <meyering@redhat.com>
5734
5735         maint.mk: texinfo_suffix_re_: correct the default regexp
5736         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
5737
5738         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
5739         make it configurable via texinfo_suffix_re_.
5740
5741 2010-04-14  Eric Blake  <eblake@redhat.com>
5742
5743         strtok_r: relax license to LGPLv2+
5744         * modules/strtok_r (License): Relax license.
5745         Reported by Matthias Bolte.
5746
5747 2010-04-14  Simon Josefsson  <simon@josefsson.org>
5748
5749         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
5750         version 1.4.4 by default instead of requiring the libgcrypt
5751         version used during build.  This makes it possible to use the
5752         application with older but still binary compatible libgcrypt
5753         versions.
5754
5755 2010-04-13  Eric Blake  <eblake@redhat.com>
5756
5757         getopt-gnu: match recent glibc fixes and posix ruling
5758         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
5759         '+' handling, when requesting extensions.
5760         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
5761         'W;' handling.
5762         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
5763         * doc/posix-functions/getopt.texi (getopt): Document this.
5764         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5765         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5766         Likewise.
5767
5768         getopt: merge bug fixes from glibc
5769         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
5770         diagnostics.  Honor '+:' correctly.  Reject ';'.
5771
5772         getopt-posix: detect MacOS bug
5773         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
5774         optind when missing a required argument.
5775         * doc/posix-functions/getopt.texi (getopt): Document the bug.
5776         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5777         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5778         Likewise.
5779
5780         getopt-posix: avoid spurious failure on Solaris
5781         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
5782         an indicator that setting optind=1 is sufficient for reset.
5783
5784         getopt-posix: avoid spurious failure on FreeBSD
5785         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
5786         in POSIX mode, since the m4 test uses it.
5787
5788         gnulib-tool: silence warning on BSD sh
5789         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
5790
5791 2010-04-13  Jim Meyering  <meyering@redhat.com>
5792
5793         doc: users.txt: GNU patch now uses gnulib
5794         * users.txt: Add patch.
5795
5796 2010-04-12  Jim Meyering  <meyering@redhat.com>
5797
5798         maint.mk: generate more concise timing data for syntax-check rules
5799         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
5800         " done" from each line that reports a syntax-check test duration.
5801
5802 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
5803
5804         git-version-gen: use "git update-index..." rather than "git status"
5805         * build-aux/git-version-gen: Use git update-index --refresh, not
5806         "git status".  With some versions of git, "git status" would fail
5807         to update the index and result in an unwarranted "-dirty" suffix.
5808
5809 2010-04-11  Jim Meyering  <meyering@redhat.com>
5810
5811         openat: correct formatting (no semantic change)
5812         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
5813         Suggested by Bruno Haible.
5814
5815 2010-04-11  Bruno Haible  <bruno@clisp.org>
5816
5817         Stricter declaration checking in testdirs.
5818         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5819         If for_tests is true, augment AM_CPPFLAGS to define
5820         GNULIB_STRICT_CHECKING.
5821         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
5822         GNULIB_STRICT_CHECKING is defined, verify that the function is
5823         declared.
5824
5825 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
5826             Bruno Haible  <bruno@clisp.org>
5827
5828         libunistring: Improve configure output.
5829         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
5830         Don't say "consider installing GNU libunistring" when checking again
5831         with libiconv.
5832
5833 2010-04-11  Bruno Haible  <bruno@clisp.org>
5834
5835         libunistring: Correct value of $LTLIBUNISTRING.
5836         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
5837         correct the value of $LTLIBUNISTRING.
5838
5839 2010-04-11  Bruno Haible  <bruno@clisp.org>
5840
5841         havelib: Add static libraries to LIBS in the right order.
5842         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
5843         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
5844
5845 2010-04-11  Bruno Haible  <bruno@clisp.org>
5846
5847         libunistring: Detect libunistring also when it depends on libiconv.
5848         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
5849         the second AC_LIB_HAVE_LINKFLAGS invocation.
5850
5851 2010-04-11  James Youngman  <jay@gnu.org>
5852
5853         close-stream: declare local scalars to be "const"
5854         * lib/close-stream.c (close_stream): Make boolean variables const
5855         to document the fact that we set but do not change them.
5856
5857 2010-04-11  Bruno Haible  <bruno@clisp.org>
5858
5859         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
5860
5861 2010-04-11  Jim Meyering  <meyering@redhat.com>
5862
5863         maint.mk: don't include dist-check.mk
5864         * top/maint.mk: Remove bogus include directive.
5865
5866         maint.mk: improve empty-line-at-EOF check
5867         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
5868         solution, rather than tail+Perl-based one.  The latter would read
5869         a few kilobytes from the end of each file, and did not handle empty
5870         files properly.
5871
5872         maint.mk: print the elapsed time for each syntax-check rule
5873         * top/maint.mk (sc_m_rules_): Save start time in a file.
5874         (sc_z_rules_): New rules: remove temp file and print elapsed time.
5875         (local-check): Interpose the .z rules
5876
5877 2010-04-11  Jim Meyering  <meyering@redhat.com>
5878
5879         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
5880         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
5881         empty file with one that ends in an empty line.
5882
5883 2010-04-10  Bruno Haible  <bruno@clisp.org>
5884
5885         mkdir: Make it work on mingw64.
5886         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
5887         * lib/mkdir.c: Update comment.
5888         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
5889
5890 2010-04-10  Bruno Haible  <bruno@clisp.org>
5891
5892         Don't override improved macro from newer autoconf.
5893         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
5894         autoconf >= 2.62.
5895         Reported by Joel E. Denny <jdenny@clemson.edu>.
5896
5897 2010-04-10  Jim Meyering  <meyering@redhat.com>
5898
5899         maint.mk: new syntax-check rule: prohibit empty lines at end of file
5900         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
5901
5902         maint.mk: correct a diagnostic
5903         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
5904         in diagnostic; now use $prohibit.
5905
5906 2010-04-10  Bruno Haible  <address@hidden>
5907
5908         fchownat: Fix a C++ test error on Solaris 8.
5909         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
5910         the function does not exist.
5911
5912 2010-04-10  Bruno Haible  <bruno@clisp.org>
5913
5914         vasnprintf: Add more tests.
5915         * tests/test-vasnprintf-posix.c: Include <errno.h>.
5916         (test_function): Test converting an invalid wide string.
5917
5918         vasnprintf: Correct handling of unconvertible wide string arguments.
5919         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
5920         VASNPRINTF.
5921         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
5922         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
5923         smaller than the expected maximum need for the directive. Set errno to
5924         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
5925         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
5926         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
5927         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
5928         * modules/vasnprintf (Files): Add m4/printf.m4.
5929         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5930
5931 2010-04-10  Bruno Haible  <bruno@clisp.org>
5932
5933         vasnprintf: Fix crash in %ls directive.
5934         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
5935         string is passed as argument to %ls, with no precision and no width.
5936         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5937
5938 2010-04-10  Bruno Haible  <bruno@clisp.org>
5939
5940         vasnprintf: Fix multiple test failures on mingw.
5941         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
5942         _snprintf, or snwprintf, not _snwprintf.
5943
5944 2010-04-10  Bruno Haible  <bruno@clisp.org>
5945
5946         write: Fix a C++ test error on mingw.
5947         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
5948
5949 2010-04-10  Bruno Haible  <bruno@clisp.org>
5950
5951         vasnprintf test: Reduce code duplication.
5952         * tests/test-vasnprintf.c (test_function): New function, extracted from
5953         test_vasnprintf.
5954         (test_vasnprintf, test_asnprintf): Invoke it.
5955
5956 2010-04-10  Bruno Haible  <bruno@clisp.org>
5957
5958         strnlen: Fix warning in C++ mode on MacOS X.
5959         * lib/string.in.h (strnlen): Use the modern idiom.
5960         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
5961         defining strnlen as a macro already in <config.h>.
5962         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5963         REPLACE_STRNLEN.
5964         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
5965         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5966
5967 2010-04-08  James Youngman  <jay@gnu.org>
5968
5969         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
5970         the example.
5971
5972 2010-04-09  Jim Meyering  <meyering@redhat.com>
5973
5974         maint.mk: print better diagnostic when there is no $(_hv_file)
5975         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
5976         announce that when $(_hv_file) (aka help-version) does not exist.
5977
5978         init.sh: run tr in the "C" locale to avoid multibyte interpretation
5979         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
5980         not try to interpret its random input bytes.  Jarno Rajahalme reported
5981         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
5982         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
5983         (mktempd_): Likewise, just in case.
5984
5985         ftruncate: add two years to projected module removal date: 2012
5986         * m4/ftruncate.m4: Adjust comments.
5987
5988         ftruncate: mark module as obsolete; even MinGW provides it, now
5989         * modules/ftruncate (Status): Obsolete.
5990         (Notice): Say that.
5991         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
5992         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
5993
5994 2010-04-08  Bruno Haible  <bruno@clisp.org>
5995
5996         Fix side effects from tests-related modules.
5997         * modules/dprintf-posix (Comment): New section.
5998         * modules/fprintf-posix (Comment): Likewise.
5999         * modules/obstack-printf-posix (Comment): Likewise.
6000         * modules/printf-posix (Comment): Likewise.
6001         * modules/snprintf-posix (Comment): Likewise.
6002         * modules/sprintf-posix (Comment): Likewise.
6003         * modules/vasnprintf-posix (Comment): Likewise.
6004         * modules/vasprintf-posix (Comment): Likewise.
6005         * modules/vdprintf-posix (Comment): Likewise.
6006         * modules/vfprintf-posix (Comment): Likewise.
6007         * modules/vprintf-posix (Comment): Likewise.
6008         * modules/vsnprintf-posix (Comment): Likewise.
6009         * modules/vsprintf-posix (Comment): Likewise.
6010         * modules/xprintf-posix (Comment): Likewise.
6011         * modules/xvasprintf-posix (Comment): Likewise.
6012         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
6013         * modules/floorf-tests (Depends-on): Likewise.
6014         * modules/round-tests (Depends-on): Likewise.
6015         * modules/roundf-tests (Depends-on): Likewise.
6016         * modules/trunc-tests (Depends-on): Likewise.
6017         * modules/truncf-tests (Depends-on): Likewise.
6018         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
6019         'fprintf-posix' module is not present.
6020         * tests/test-floorf2.c (check): Likewise.
6021         * tests/test-trunc2.c (check): Likewise.
6022         * tests/test-truncf2.c (check): Likewise.
6023         * tests/test-round2.c (equal): Likewise.
6024         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6025
6026 2010-04-07  Karl Berry  <karl@gnu.org>
6027
6028         * config/srclist.txt,
6029         * config/srclistvars.sh,
6030         * config/srclist-update: doc fixes.
6031
6032 2010-04-07  Jim Meyering  <meyering@redhat.com>
6033
6034         maint.mk: add a PATH crosschecking syntax-check rule
6035         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
6036         Useful if you use a test like the one in help-version (coreutils,
6037         diffutils, grep, gzip) that ensures $(VERSION) matches what is
6038         printed by prog --version.
6039
6040 2010-04-06  Bruno Haible  <bruno@clisp.org>
6041
6042         Fix link error on mingw.
6043         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
6044         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
6045
6046 2010-04-06  Bruno Haible  <bruno@clisp.org>
6047
6048         Assume rmdir exists.
6049         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
6050
6051 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
6052
6053         doc: update users.txt
6054         * users.txt: Add gcal.
6055
6056 2010-04-06  Jim Meyering  <meyering@redhat.com>
6057
6058         init.sh: simply unset TMPDIR rather than risking env -i
6059         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
6060         although it probably works fine on all Unix-based systems, some
6061         systems (Cygwin?) cannot tolerate a totally cleared environment.
6062         Suggestion from Eric Blake.
6063
6064 2010-04-06  Jim Meyering  <meyering@redhat.com>
6065
6066         init.sh: portability fix: use env's POSIX-specified -i option not -u
6067         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
6068         than unportable env -u.  Solaris 5.11's env lacks support for -u.
6069
6070 2010-04-05  Bruno Haible  <bruno@clisp.org>
6071
6072         btowc: Work around Cygwin 1.7.2 bug.
6073         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
6074         does not map NUL to 0.
6075         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
6076
6077 2010-04-05  Bruno Haible  <bruno@clisp.org>
6078
6079         Make the multithread modules work on Cygwin 1.7.2.
6080         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
6081         imported symbols can be declared weak, so that it returns "no" on
6082         Cygwin 1.7.2.
6083
6084 2010-04-05  Bruno Haible  <bruno@clisp.org>
6085
6086         Use the module 'strncat'.
6087         * modules/unistr/u8-strncat (Depends-on): Add strncat.
6088
6089         Tests for module 'strncat'.
6090         * modules/strncat-tests: New file.
6091         * tests/test-strncat.c: New file.
6092
6093         New module 'strncat'.
6094         * lib/string.in.h (strncat): New declaration.
6095         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
6096         * m4/strncat.m4: New file, based on m4/memchr.m4.
6097         * modules/strncat: New file.
6098         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
6099         is declared.
6100         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
6101         REPLACE_STRNCAT.
6102         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
6103         REPLACE_STRNCAT.
6104         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
6105         module.
6106         * tests/test-string-c++.cc: Check signature of strncat.
6107
6108 2010-04-05  Jim Meyering  <meyering@redhat.com>
6109
6110         xstrtoumax-tests: convert to use init.sh
6111         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
6112         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6113         Use Exit, not exit.
6114         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6115
6116         xstrtoimax-tests: convert to use init.sh
6117         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
6118         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6119         Use Exit, not exit.
6120         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6121
6122 2010-04-05  Bruno Haible  <bruno@clisp.org>
6123
6124         sys_socket: Avoid #define replacements in C++ mode.
6125         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
6126         warning to the function if possible, rather than #defining the symbol
6127         to a dysfunctional alias.
6128
6129 2010-04-05  Bruno Haible  <bruno@clisp.org>
6130
6131         fseeko: Fix C++ test error on mingw.
6132         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
6133         gl_FUNC_FSEEKO.
6134         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
6135         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
6136         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
6137         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
6138
6139 2010-04-05  Bruno Haible  <bruno@clisp.org>
6140
6141         duplocale: Improve test output.
6142         * tests/test-duplocale.c (main): Print reason for skipped test.
6143
6144 2010-04-05  Bruno Haible  <bruno@clisp.org>
6145
6146         Assume rmdir exists.
6147         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
6148         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
6149
6150 2010-04-05  Bruno Haible  <bruno@clisp.org>
6151
6152         Fix link error on Solaris 8 with cc.
6153         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
6154
6155 2010-04-05  Bruno Haible  <bruno@clisp.org>
6156
6157         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6158         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
6159
6160 2010-04-05  Bruno Haible  <bruno@clisp.org>
6161
6162         vasprintf: Update documentation.
6163         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
6164
6165 2010-04-05  Bruno Haible  <bruno@clisp.org>
6166
6167         ptsname: Improve test.
6168         * tests/test-ptsname.c (main): Also try the various master names of BSD
6169         systems.
6170
6171 2010-04-05  Bruno Haible  <bruno@clisp.org>
6172
6173         memchr: Avoid a possible C++ test error.
6174         * lib/string.in.h (memchr): Provide declaration if function is missing.
6175         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
6176         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
6177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
6178         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
6179
6180 2010-04-05  Bruno Haible  <bruno@clisp.org>
6181
6182         strtok_r: Improve idiom.
6183         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
6184         AC_LIBOBJ is used.
6185
6186 2010-04-05  Bruno Haible  <bruno@clisp.org>
6187
6188         strdup: Improve idiom.
6189         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
6190         AC_LIBOBJ is used.
6191         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
6192         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
6193         when AC_LIBOBJ is used.
6194
6195 2010-04-05  Bruno Haible  <bruno@clisp.org>
6196
6197         mbsinit, mbrtowc, wcrtomb: Improve idioms.
6198         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
6199         don't set REPLACE_MBSINIT to 1.
6200         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
6201         don't set REPLACE_MBRTOWC to 1.
6202         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
6203         exist, don't set REPLACE_MBSRTOWCS to 1.
6204         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
6205         exist, don't set REPLACE_MBSNRTOWCS to 1.
6206         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
6207         don't set REPLACE_WCRTOMB to 1.
6208         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
6209         exist, don't set REPLACE_WCSRTOMBS to 1.
6210         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
6211         exist, don't set REPLACE_WCSNRTOMBS to 1.
6212
6213 2010-04-05  Bruno Haible  <bruno@clisp.org>
6214
6215         ldexpl: Improve idiom.
6216         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
6217         make sure to set HAVE_DECL_LDEXPL to 0.
6218
6219 2010-04-05  Jim Meyering  <meyering@redhat.com>
6220
6221         xstrtol-tests: convert to use init.sh
6222         * modules/xstrtol-tests (Files): Add tests/init.sh.
6223         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6224         Use Exit, not exit.
6225         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6226
6227         atexit-tests: convert to use init.sh
6228         * modules/atexit-tests (Files): Add tests/init.sh.
6229         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
6230         Use Exit, not exit.
6231         Remove uses of $EXEEXT and "./" to run a program in the current dir.
6232
6233         init.sh: fix typo
6234         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
6235
6236         init.sh: make it easier for a test script to write to the tty, ...
6237         when using automake's parallel-tests mode.
6238         * tests/init.sh (stderr_fileno_): Define overridable variable.
6239         (warn_): New function, to use it.
6240         (fail_, skip_, framework_failure_): Use warn_.
6241
6242 2010-04-04  Bruno Haible  <bruno@clisp.org>
6243
6244         btowc: Avoid warning.
6245         * lib/btowc.c: Include <stdlib.h>.
6246         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
6247
6248 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6249             Bruno Haible  <bruno@clisp.org>
6250
6251         wchar: Port to NetBSD 1.5.
6252         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
6253         * lib/wctype.in.h (WEOF): Likewise.
6254
6255 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
6256             Bruno Haible  <bruno@clisp.org>
6257
6258         Port extended stdio to NetBSD 1.5.
6259         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
6260         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
6261         older.
6262
6263 2010-04-04  Bruno Haible  <bruno@clisp.org>
6264
6265         string: Remove unused substitution.
6266         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
6267         HAVE_DECL_STRERROR.
6268         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
6269
6270 2010-04-04  Bruno Haible  <bruno@clisp.org>
6271
6272         strtod: Avoid a possible C++ test error.
6273         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
6274         set REPLACE_STRTOD.
6275
6276 2010-04-04  Bruno Haible  <bruno@clisp.org>
6277
6278         strerror: Update documentation.
6279         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
6280
6281 2010-04-04  Bruno Haible  <bruno@clisp.org>
6282
6283         stdio: Fix some C++ test errors on Solaris 8 with GCC.
6284         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
6285         _GL_CXXALIAS_SYS_CAST.
6286
6287 2010-04-04  Bruno Haible  <bruno@clisp.org>
6288
6289         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
6290         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
6291         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
6292         REPLACE_FREXPL to 1.
6293         * doc/posix-functions/frexpl.texi: Update documentation.
6294
6295 2010-04-04  Bruno Haible  <bruno@clisp.org>
6296
6297         math: Fix some C++ test errors on Solaris 8 and Cygwin.
6298         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
6299
6300 2010-04-04  Bruno Haible  <bruno@clisp.org>
6301
6302         Implement nanosleep for native Windows.
6303         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
6304
6305 2010-04-04  Bruno Haible  <bruno@clisp.org>
6306
6307         math: Fix some C++ test errors on Solaris 8.
6308         * lib/math.in.h (truncf, trunc): Use simpler idiom.
6309
6310 2010-04-04  Bruno Haible  <bruno@clisp.org>
6311
6312         math: Fix some C++ test errors on Cygwin.
6313         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
6314         truncl): Provide declaration if the system does not have it.
6315         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
6316         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
6317         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
6318         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
6319         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
6320         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
6321         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
6322         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
6323         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
6324         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
6325         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
6326         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
6327         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
6328         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
6329         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
6330         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
6331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
6332         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6333         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6334         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
6335         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
6336         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
6337
6338 2010-04-04  Bruno Haible  <bruno@clisp.org>
6339
6340         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
6341         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6342         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6343         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6344         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6345         * m4/isinf.m4 (gl_ISINF): Likewise.
6346         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6347
6348 2010-04-04  Bruno Haible  <bruno@clisp.org>
6349
6350         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
6351         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6352
6353 2010-04-04  Bruno Haible  <bruno@clisp.org>
6354
6355         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
6356         * modules/tmpfile (configure.ac): Update.
6357
6358         tmpfile: Fix C++ test error on mingw.
6359         * lib/stdio.in.h (tmpfile): New declaration.
6360         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
6361         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
6362         * modules/tmpfile (Depends-on): Add stdio.
6363         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
6364         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
6365         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
6366         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
6367         REPLACE_TMPFILE.
6368         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
6369
6370 2010-04-04  Bruno Haible  <bruno@clisp.org>
6371
6372         ioctl: Fix C++ test error on mingw.
6373         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
6374         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
6375         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
6376
6377 2010-04-03  Bruno Haible  <bruno@clisp.org>
6378
6379         wcwidth: Fix C++ test error on mingw.
6380         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
6381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
6382         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
6383
6384 2010-04-03  Bruno Haible  <bruno@clisp.org>
6385
6386         nanosleep: Fix C++ test error on mingw.
6387         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
6388         * lib/time.in.h (nanosleep): Use modern idiom.
6389         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
6390         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
6391         REPLACE_NANOSLEEP to 1.
6392         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
6393         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
6394
6395 2010-04-03  Bruno Haible  <bruno@clisp.org>
6396
6397         strptime: Fix C++ test error on mingw.
6398         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
6399         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
6400         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
6401         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
6402         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
6403         not REPLACE_STRPTIME.
6404         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
6405         REPLACE_STRPTIME.
6406
6407 2010-04-03  Bruno Haible  <bruno@clisp.org>
6408
6409         timegm: Fix C++ test error on mingw.
6410         * lib/time.in.h (timegm): Use modern idiom.
6411         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
6412         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
6413         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
6414         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
6415
6416 2010-04-03  Bruno Haible  <bruno@clisp.org>
6417
6418         timegm: Assume declaration if function exists.
6419         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
6420         if it exists. Don't clobber ac_cv_func_timegm.
6421
6422 2010-04-03  Bruno Haible  <bruno@clisp.org>
6423
6424         time_r: Fix C++ test error on mingw.
6425         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
6426         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
6427         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
6428         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
6429         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
6430
6431 2010-04-03  Bruno Haible  <bruno@clisp.org>
6432
6433         time_r: Minor updates.
6434         * modules/time_r (Description): Mention the provided functions.
6435         * lib/time_r.c: Don't include <string.h>.
6436         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
6437         * doc/posix-functions/localtime_r.texi: Likewise.
6438
6439 2010-04-03  Bruno Haible  <bruno@clisp.org>
6440
6441         time: Fix regression introduced on 2010-03-08.
6442         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
6443         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
6444
6445 2010-04-03  Jim Meyering  <meyering@redhat.com>
6446
6447         maint.mk: don't silently disable project-specific syntax-check rules
6448         * top/maint.mk (_prohibit_regexp): Define, to help people realize
6449         that they need to convert their project-specific syntax-check rules
6450         to use the new _sc_search_regexp.
6451
6452 2010-04-03  Bruno Haible  <bruno@clisp.org>
6453
6454         fchdir: Fix regression introduced on 2010-03-08.
6455         * lib/unistd.in.h (fchdir): Fix declaration.
6456         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
6457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
6458         REPLACE_FCHDIR.
6459         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
6460         REPLACE_FCHDIR.
6461
6462 2010-04-03  Bruno Haible  <bruno@clisp.org>
6463
6464         getpagesize: Fix C++ test error on mingw.
6465         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
6466         system does not declare the function.
6467         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
6468         declared.
6469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6470         HAVE_DECL_GETPAGESIZE.
6471         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
6472
6473 2010-04-03  Bruno Haible  <bruno@clisp.org>
6474
6475         stdio: Make C++ tests work on mingw.
6476         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
6477         does not declare the function.
6478
6479 2010-04-03  Bruno Haible  <bruno@clisp.org>
6480
6481         ftello: Fix C++ test error on mingw.
6482         * lib/stdio.in.h (ftello): Use modern idiom.
6483         * lib/ftello.c (ftello): Renamed from rpl_ftello.
6484         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
6485         is missing and that it needs to be replaced.
6486         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
6487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
6488         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
6489
6490 2010-04-03  Bruno Haible  <bruno@clisp.org>
6491
6492         fseeko: Fix C++ test error on mingw.
6493         * lib/stdio.in.h (fseeko): Use modern idiom.
6494         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
6495         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
6496         is missing and that it needs to be replaced.
6497         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
6498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
6499         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
6500
6501 2010-04-03  Bruno Haible  <bruno@clisp.org>
6502
6503         mkstemp: Fix C++ test error on mingw.
6504         * lib/stdlib.in.h (mkstemp): Use modern idiom.
6505         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
6506         function is missing and that it needs to be replaced.
6507         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
6508         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
6509
6510 2010-04-03  Bruno Haible  <bruno@clisp.org>
6511
6512         stpncpy: Fix C++ test error on mingw.
6513         * lib/string.in.h (stpncpy): Use modern idiom.
6514         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
6515         function is missing and that it needs to be replaced.
6516         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
6517         REPLACE_STPNCPY.
6518         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
6519
6520 2010-04-03  Bruno Haible  <bruno@clisp.org>
6521
6522         sys_stat: Fix C++ test error on mingw.
6523         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
6524         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
6525
6526 2010-04-03  Bruno Haible  <bruno@clisp.org>
6527
6528         pty: Update doc.
6529         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
6530
6531 2010-04-03  Bruno Haible  <bruno@clisp.org>
6532
6533         unistd: Fix C++ test error on mingw.
6534         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
6535
6536 2010-04-03  Bruno Haible  <bruno@clisp.org>
6537
6538         Update doc regarding mingw.
6539         * doc/glibc-functions/openpty.texi: Update regarding mingw.
6540         * doc/glibc-functions/login_tty.texi: Likewise.
6541         * doc/glibc-functions/forkpty.texi: Likewise.
6542
6543 2010-04-03  Bruno Haible  <bruno@clisp.org>
6544
6545         stdlib: Avoid compilation failure of c-strtold on mingw.
6546         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
6547
6548 2010-04-03  Bruno Haible  <bruno@clisp.org>
6549
6550         locale: Make C++ tests work on Cygwin and mingw.
6551         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
6552         cannot provide the function.
6553         Reported by Simon Josefsson.
6554
6555 2010-04-03  Bruno Haible  <bruno@clisp.org>
6556
6557         localename: Port to MacOS X 10.6.
6558         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
6559         memory layout of the locales in MacOS X 10.6 as well.
6560         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
6561
6562 2010-04-02  Bruno Haible  <bruno@clisp.org>
6563
6564         gnulib-tool: Ensure that long-running tests are executed last.
6565         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
6566         running tests after the one for the other tests.
6567
6568 2010-04-02  Bruno Haible  <bruno@clisp.org>
6569
6570         gnulib-tool: Ensure the tests in the main directory are executed first.
6571         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
6572         start with the current directory.
6573
6574 2010-04-02  Bruno Haible  <bruno@clisp.org>
6575
6576         Tests for module 'havelib', moved here from GNU gettext.
6577         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
6578         modifications.
6579         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
6580         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
6581         with modifications.
6582         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
6583         modifications.
6584         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
6585         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
6586         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
6587         with modifications.
6588         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
6589         with modifications.
6590         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
6591         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
6592         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
6593         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
6594         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
6595         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
6596         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
6597         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
6598         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
6599         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
6600         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
6601         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
6602         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
6603         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
6604         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
6605         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
6606         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
6607         with modifications.
6608         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
6609         with modifications.
6610         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
6611         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
6612         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
6613         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
6614         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
6615         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
6616         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
6617         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
6618         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
6619         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
6620         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
6621         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
6622         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
6623         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
6624         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
6625         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
6626         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
6627         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
6628         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
6629         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
6630         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
6631         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
6632         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
6633         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
6634         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
6635         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
6636         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
6637         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
6638         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
6639         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
6640         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
6641         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
6642         * tests/havelib/rpathx/rpathx.c: New file, from
6643         gettext/autoconf-lib-link.
6644         * tests/havelib/rpathx/Makefile.am: New file, from
6645         gettext/autoconf-lib-link.
6646         * tests/havelib/rpathx/configure.ac: New file, from
6647         gettext/autoconf-lib-link with modifications.
6648         * tests/havelib/rpathy/rpathy.c: New file, from
6649         gettext/autoconf-lib-link.
6650         * tests/havelib/rpathy/Makefile.am: New file, from
6651         gettext/autoconf-lib-link.
6652         * tests/havelib/rpathy/configure.ac: New file, from
6653         gettext/autoconf-lib-link with modifications.
6654         * tests/havelib/rpathz/rpathz.c: New file, from
6655         gettext/autoconf-lib-link.
6656         * tests/havelib/rpathz/Makefile.am: New file, from
6657         gettext/autoconf-lib-link.
6658         * tests/havelib/rpathz/configure.ac: New file, from
6659         gettext/autoconf-lib-link with modifications.
6660         * tests/havelib/rpathlx/usex.c: New file, from
6661         gettext/autoconf-lib-link.
6662         * tests/havelib/rpathlx/Makefile.am: New file, from
6663         gettext/autoconf-lib-link.
6664         * tests/havelib/rpathlx/configure.ac: New file, from
6665         gettext/autoconf-lib-link with modifications.
6666         * tests/havelib/rpathly/usey.c: New file, from
6667         gettext/autoconf-lib-link.
6668         * tests/havelib/rpathly/Makefile.am: New file, from
6669         gettext/autoconf-lib-link.
6670         * tests/havelib/rpathly/configure.ac: New file, from
6671         gettext/autoconf-lib-link with modifications.
6672         * tests/havelib/rpathlz/usez.c: New file, from
6673         gettext/autoconf-lib-link.
6674         * tests/havelib/rpathlz/Makefile.am: New file, from
6675         gettext/autoconf-lib-link.
6676         * tests/havelib/rpathlz/configure.ac: New file, from
6677         gettext/autoconf-lib-link with modifications.
6678         * tests/havelib/rpathlyx/usey.c: New file, from
6679         gettext/autoconf-lib-link.
6680         * tests/havelib/rpathlyx/Makefile.am: New file, from
6681         gettext/autoconf-lib-link.
6682         * tests/havelib/rpathlyx/configure.ac: New file, from
6683         gettext/autoconf-lib-link with modifications.
6684         * tests/havelib/rpathlzyx/usez.c: New file, from
6685         gettext/autoconf-lib-link.
6686         * tests/havelib/rpathlzyx/Makefile.am: New file, from
6687         gettext/autoconf-lib-link.
6688         * tests/havelib/rpathlzyx/configure.ac: New file, from
6689         gettext/autoconf-lib-link with modifications.
6690         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
6691         with modifications.
6692
6693 2010-04-02  Bruno Haible  <bruno@clisp.org>
6694
6695         gnulib-tool: Create distributed built sources also for the tests.
6696         * gnulib-tool (func_create_testdir): Also generate distributed built
6697         sources in the tests directory.
6698
6699 2010-04-02  Bruno Haible  <bruno@clisp.org>
6700
6701         gnulib-tool: Obey user's environment variables.
6702         * gnulib-tool (func_create_testdir): When creating built sources,
6703         respect the environment variables for autoconf, automake, etc. given by
6704         the user.
6705
6706 2010-04-02  Bruno Haible  <bruno@clisp.org>
6707
6708         gnulib-tool: Provide the value of --m4-base to modules.
6709         * gnulib-tool (func_import, func_create_testdir): Emit a definition
6710         of gl_m4_base.
6711
6712 2010-04-02  Eric Blake  <eblake@redhat.com>
6713
6714         maint.mk: fix some fallout
6715         * NEWS: Document the incompatible change, and its effect on cfg.mk.
6716         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
6717
6718 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6719
6720         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
6721         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
6722         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
6723         (sc_cast_of_x_alloc_return_value): Likewise.
6724         (sc_cast_of_alloca_return_value): Likewise.
6725         (sc_space_tab): Likewise.
6726         (sc_prohibit_atoi_atof): Likewise.
6727         (sc_prohibit_magic_number_exit): Likewise.
6728         (sc_error_exit_success): Likewise.
6729         (sc_file_system): Likewise.
6730         (sc_prohibit_have_config_h): Likewise.
6731         (sc_require_config_h): Likewise.
6732         (sc_prohibit_HAVE_MBRTOWC): Likewise.
6733         (sc_obsolete_symbols): Likewise.
6734         (sc_changelog): Likewise.
6735         (sc_program_name): Likewise.
6736         (sc_the_the): Likewise.
6737         (sc_trailing_blank): Likewise.
6738         (sc_two_space_separator_in_usage): Likewise.
6739         (sc_useless_cpp_parens): Likewise.
6740         (sc_GPL_version): Likewise.
6741         (sc_GFDL_version): Likewise.
6742         (sc_texinfo_acronym): Likewise.
6743         (sc_prohibit_cvs_keyword): Likewise.
6744         (sc_prohibit_stat_st_blocks): Likewise.
6745         (sc_prohibit_S_IS_definition): Likewise.
6746         (sc_redundant_const): Likewise.
6747         (sc_makefile_TAB_only_indentation): Likewise.
6748         (sc_m4_quote_check): Likewise.
6749         (sc_makefile_path_separator_check): Likewise.
6750         (sc_copyright_check): Likewise.
6751         (sc_Wundef_boolean): Likewise.
6752         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
6753
6754         maint.mk: match 0 or more whitespace-before-function-call '('
6755         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
6756         that have zero or two-and-more spaces between the function name
6757         and the open parenthesis.
6758         (sc_error_message_warn_fatal): Likewise.
6759         (sc_error_message_uppercase): Likewise.
6760         (sc_error_message_period): Likewise.
6761
6762 2010-03-31  Eric Blake  <eblake@redhat.com>
6763
6764         maint.mk: check for [ as well as test
6765         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
6766         Based on a libvirt report by Matthias Bolte.
6767
6768         gnumakefile: don't squelch _version output
6769         * top/GNUmakefile (_version): Create one-shot dependency rather
6770         than using $(shell) when version must be regenerated.
6771         (_autoreconf): Run verbosely, by default.
6772
6773         sys_time: avoid compiler warnings
6774         * lib/sys_time.in.h (includes): Ensure gcc pragma is
6775         unconditional, fixing regression from 2010-03-29.
6776         Reported by Simon Josefsson.
6777
6778 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6779
6780         maint.mk: s/_header_without_use/_sc_header_without_use/
6781         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
6782         (sc_prohibit_assert_without_use): Use the new name.
6783         (sc_prohibit_close_stream_without_use): Likewise.
6784         (sc_prohibit_getopt_without_use): Likewise.
6785         (sc_prohibit_quotearg_without_use): Likewise.
6786         (sc_prohibit_quote_without_use): Likewise.
6787         (sc_prohibit_long_options_without_use): Likewise.
6788         (sc_prohibit_inttostr_without_use): Likewise.
6789         (sc_prohibit_ignore_value_without_use): Likewise.
6790         (sc_prohibit_error_without_use): Likewise.
6791         (sc_prohibit_xalloc_without_use): Likewise.
6792         (sc_prohibit_hash_without_use): Likewise.
6793         (sc_prohibit_hash_pjw_without_use): Likewise.
6794         (sc_prohibit_safe_read_without_use): Likewise.
6795         (sc_prohibit_argmatch_without_use): Likewise.
6796         (sc_prohibit_canonicalize_without_use): Likewise.
6797         (sc_prohibit_root_dev_ino_without_use): Likewise.
6798         (sc_prohibit_openat_without_use): Likewise.
6799         (sc_prohibit_c_ctype_without_use): Likewise.
6800         (sc_prohibit_signal_without_use): Likewise.
6801         (sc_prohibit_intprops_without_use): Likewise.
6802
6803 2010-03-30  Eric Blake  <eblake@redhat.com>
6804
6805         maint: improve module indicators
6806         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
6807         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
6808         columns, and avoid extra macro expansion.
6809
6810         fdopendir: work around FreeBSD bug
6811         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
6812         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
6813         * modules/dirent (Makefile.am): Substitute it.
6814         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
6815         declaration.
6816         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
6817         fix.
6818         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6819
6820 2010-03-29  Bruno Haible  <bruno@clisp.org>
6821
6822         Emit #pragma system_header after the inclusion guard, not before.
6823         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
6824         guard that spans the entire file, not before. This enables an
6825         optimization in GCC's preprocessor.
6826         * lib/ctype.in.h: Likewise.
6827         * lib/dirent.in.h: Likewise.
6828         * lib/errno.in.h: Likewise.
6829         * lib/float.in.h: Likewise.
6830         * lib/getopt.in.h: Likewise.
6831         * lib/iconv.in.h: Likewise.
6832         * lib/langinfo.in.h: Likewise.
6833         * lib/locale.in.h: Likewise.
6834         * lib/math.in.h: Likewise.
6835         * lib/netdb.in.h: Likewise.
6836         * lib/netinet_in.in.h: Likewise.
6837         * lib/pty.in.h: Likewise.
6838         * lib/sched.in.h: Likewise.
6839         * lib/se-selinux.in.h: Likewise.
6840         * lib/search.in.h: Likewise.
6841         * lib/spawn.in.h: Likewise.
6842         * lib/stdarg.in.h: Likewise.
6843         * lib/stdint.in.h: Likewise.
6844         * lib/string.in.h: Likewise.
6845         * lib/strings.in.h: Likewise.
6846         * lib/sys_file.in.h: Likewise.
6847         * lib/sys_ioctl.in.h: Likewise.
6848         * lib/sys_time.in.h: Likewise.
6849         * lib/sys_times.in.h: Likewise.
6850         * lib/sys_utsname.in.h: Likewise.
6851         * lib/sys_wait.in.h: Likewise.
6852         * lib/sysexits.in.h: Likewise.
6853         * lib/wctype.in.h: Likewise.
6854
6855 2010-03-28  James Youngman  <jay@gnu.org>
6856
6857         save-cwd: don't leak a file descriptor when the caller execs.
6858         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
6859         saved file descriptor.
6860         * modules/save-cwd (Depends-on): Depend on cloexec.
6861
6862 2010-03-29  Bruno Haible  <bruno@clisp.org>
6863
6864         Remove vestiges of fts-lgpl module.
6865         * lib/fts_.h: Assume GNULIB_FTS is 1.
6866         * lib/fts.c: Likewise.
6867         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
6868
6869 2010-03-28  Bruno Haible  <bruno@clisp.org>
6870
6871         Fix definition of tests witness macro.
6872         * gnulib-tool (func_import): Fix definition of witness macro.
6873
6874 2010-03-28  Bruno Haible  <bruno@clisp.org>
6875
6876         Fix ioctl's protoype on glibc systems.
6877         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
6878         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
6879         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
6880         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
6881         signature. If not, arrange to replace the ioctl function.
6882         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
6883         REPLACE_IOCTL.
6884         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
6885         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
6886         Reported by Ludovic Courtès <ludo@gnu.org>.
6887
6888 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
6889
6890         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
6891         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
6892         made it so grep -r --include=GLOB* ... did not work.
6893
6894 2010-03-26  Jim Meyering  <meyering@redhat.com>
6895             Eric Blake  <eblake@redhat.com>
6896
6897         maint.mk: prohibit use of test's -o and -a operators
6898         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
6899
6900 2010-03-28  Bruno Haible  <bruno@clisp.org>
6901
6902         Remove unused GNULIB_XYZ macro definitions.
6903         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
6904         invocation.
6905
6906 2010-03-28  Bruno Haible  <bruno@clisp.org>
6907
6908         Mark privileged tests modules.
6909         * modules/idpriv-drop-tests (Status): New section.
6910         * modules/idpriv-droptemp-tests (Status): New section.
6911
6912 2010-03-28  Bruno Haible  <bruno@clisp.org>
6913
6914         Split C++ tests into separate tests modules.
6915         * modules/dirent-c++-tests: New file, extracted from
6916         modules/dirent-tests.
6917         * modules/dirent-tests: Depend on it.
6918         * modules/fcntl-h-c++-tests: New file, extracted from
6919         modules/fcntl-h-tests.
6920         * modules/fcntl-h-tests: Depend on it.
6921         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
6922         * modules/glob-tests: Depend on it.
6923         * modules/iconv-h-c++-tests: New file, extracted from
6924         modules/iconv-h-tests.
6925         * modules/iconv-h-tests: Depend on it.
6926         * modules/langinfo-c++-tests: New file, extracted from
6927         modules/langinfo-tests.
6928         * modules/langinfo-tests: Depend on it.
6929         * modules/locale-c++-tests: New file, extracted from
6930         modules/locale-tests.
6931         * modules/locale-tests: Depend on it.
6932         * modules/math-c++-tests: New file, extracted from modules/math-tests.
6933         * modules/math-tests: Depend on it.
6934         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
6935         * modules/pty-tests: Depend on it.
6936         * modules/search-c++-tests: New file, extracted from
6937         modules/search-tests.
6938         * modules/search-tests: Depend on it.
6939         * modules/signal-c++-tests: New file, extracted from
6940         modules/signal-tests.
6941         * modules/signal-tests: Depend on it.
6942         * modules/spawn-c++-tests: New file, extracted from
6943         modules/spawn-tests.
6944         * modules/spawn-tests: Depend on it.
6945         * modules/stdio-c++-tests: New file, extracted from
6946         modules/stdio-tests.
6947         * modules/stdio-tests: Depend on it.
6948         * modules/stdlib-c++-tests: New file, extracted from
6949         modules/stdlib-tests.
6950         * modules/stdlib-tests: Depend on it.
6951         * modules/string-c++-tests: New file, extracted from
6952         modules/string-tests.
6953         * modules/string-tests: Depend on it.
6954         * modules/sys_ioctl-c++-tests: New file, extracted from
6955         modules/sys_ioctl-tests.
6956         * modules/sys_ioctl-tests: Depend on it.
6957         * modules/sys_select-c++-tests: New file, extracted from
6958         modules/sys_select-tests.
6959         * modules/sys_select-tests: Depend on it.
6960         * modules/sys_socket-c++-tests: New file, extracted from
6961         modules/sys_socket-tests.
6962         * modules/sys_socket-tests: Depend on it.
6963         * modules/sys_stat-c++-tests: New file, extracted from
6964         modules/sys_stat-tests.
6965         * modules/sys_stat-tests: Depend on it.
6966         * modules/sys_time-c++-tests: New file, extracted from
6967         modules/sys_time-tests.
6968         * modules/sys_time-tests: Depend on it.
6969         * modules/time-c++-tests: New file, extracted from modules/time-tests.
6970         * modules/time-tests: Depend on it.
6971         * modules/unistd-c++-tests: New file, extracted from
6972         modules/unistd-tests.
6973         * modules/unistd-tests: Depend on it.
6974         * modules/wchar-c++-tests: New file, extracted from
6975         modules/wchar-tests.
6976         * modules/wchar-tests: Depend on it.
6977         * modules/wctype-c++-tests: New file, extracted from
6978         modules/wctype-tests.
6979         * modules/wctype-tests: Depend on it.
6980         Reported by Simon Josefsson.
6981
6982 2010-03-28  Bruno Haible  <bruno@clisp.org>
6983
6984         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
6985         * gnulib-tool (func_exists_module): New function, extracted from
6986         func_verify_module.
6987         (func_verify_module): Use it.
6988         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
6989         'foo' only if 'foo' exists.
6990         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
6991         module.
6992
6993 2010-03-28  Bruno Haible  <bruno@clisp.org>
6994
6995         gnulib-tool: Add support for special categories of tests.
6996         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
6997         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
6998         (func_usage): Document them.
6999         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
7000         inc_unportable_tests, inc_all_tests): New variables.
7001         (func_acceptable): Consider these variables.
7002         (func_modules_transitive_closure): Make it work when the 'Status' field
7003         consists of multiple words.
7004         (func_import): Store and restore the values of inc_cxx_tests,
7005         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
7006         inc_all_tests in gnulib-comp.m4.
7007         (func_create_testdir): Set inc_all_tests to true.
7008         * doc/gnulib.texi (Extra tests modules): New section.
7009         Suggested by Jim Meyering.
7010
7011 2010-03-28  Bruno Haible  <bruno@clisp.org>
7012
7013         ansi-c++-opt: Allow turning off the C++ build by default.
7014         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
7015         gl_CXX_CHOICE_DEFAULT_NO is defined.
7016         Requested by Eric Blake.
7017
7018 2010-03-28  Bruno Haible  <bruno@clisp.org>
7019
7020         unistd: Avoid #define replacements in C++ mode.
7021         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7022         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7023         setsockopt, shutdown, select): In C++, attach a warning to the function
7024         if possible, rather than #defining the symbol to a dysfunctional alias.
7025         Reported by John W. Eaton <jwe@gnu.org>.
7026
7027 2010-03-28  Bruno Haible  <bruno@clisp.org>
7028
7029         Fix link errors on mingw.
7030         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
7031         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
7032         $(LIBSOCKET).
7033         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
7034         $(LIBSOCKET).
7035
7036 2010-03-28  Bruno Haible  <bruno@clisp.org>
7037             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7038
7039         lib-ignore: Determine different options for different compilers.
7040         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
7041         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
7042         Add comments.
7043         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
7044         * NEWS: Mention the change.
7045
7046 2010-03-27  Bruno Haible  <bruno@clisp.org>
7047
7048         Remove unused GNULIB_XYZ macro definitions.
7049         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
7050         * modules/fseek (configure.ac): Likewise.
7051         * modules/ioctl (configure.ac): Likewise.
7052         * modules/open (configure.ac): Likewise.
7053         * modules/stdlib-safer (configure.ac): Likewise.
7054
7055 2010-03-27  Bruno Haible  <bruno@clisp.org>
7056
7057         Add a remark about certain modules.
7058         * modules/malloc (Comment): New section.
7059         * modules/realloc (Comment): Likewise.
7060         * modules/sigpipe (Comment): Likewise.
7061
7062 2010-03-27  Bruno Haible  <bruno@clisp.org>
7063
7064         Resolve conflict between the two kinds of module indicators.
7065         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
7066         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
7067         * modules/canonicalize (configure.ac): Invoke
7068         gl_MODULE_INDICATOR_FOR_TESTS.
7069         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
7070         GNULIB_XYZ.
7071         * tests/test-dirent-c++.cc: Likewise.
7072         * tests/test-dirent-safer.c: Likewise.
7073         * tests/test-dup2.c: Likewise.
7074         * tests/test-fchdir.c: Likewise.
7075         * tests/test-fcntl-h-c++.cc: Likewise.
7076         * tests/test-getopt.c: Likewise.
7077         * tests/test-getopt.h: Likewise.
7078         * tests/test-langinfo-c++.cc: Likewise.
7079         * tests/test-locale-c++.cc: Likewise.
7080         * tests/test-math-c++.cc: Likewise.
7081         * tests/test-pty-c++.cc: Likewise.
7082         * tests/test-search-c++.cc: Likewise.
7083         * tests/test-signal-c++.cc: Likewise.
7084         * tests/test-spawn-c++.cc: Likewise.
7085         * tests/test-stdio-c++.cc: Likewise.
7086         * tests/test-stdlib-c++.cc: Likewise.
7087         * tests/test-string-c++.cc: Likewise.
7088         * tests/test-sys_ioctl-c++.cc: Likewise.
7089         * tests/test-sys_select-c++.cc: Likewise.
7090         * tests/test-sys_socket-c++.cc: Likewise.
7091         * tests/test-sys_stat-c++.cc: Likewise.
7092         * tests/test-sys_time-c++.cc: Likewise.
7093         * tests/test-time-c++.cc: Likewise.
7094         * tests/test-unistd-c++.cc: Likewise.
7095         * tests/test-wchar-c++.cc: Likewise.
7096         * tests/uninorm/test-u8-nfc.c: Likewise.
7097         * tests/uninorm/test-u8-nfd.c: Likewise.
7098         * tests/uninorm/test-u8-nfkc.c: Likewise.
7099         * tests/uninorm/test-u8-nfkd.c: Likewise.
7100         * tests/uninorm/test-u16-nfc.c: Likewise.
7101         * tests/uninorm/test-u16-nfd.c: Likewise.
7102         * tests/uninorm/test-u16-nfkc.c: Likewise.
7103         * tests/uninorm/test-u16-nfkd.c: Likewise.
7104         * tests/uninorm/test-u32-nfc.c: Likewise.
7105         * tests/uninorm/test-u32-nfc-big.c: Likewise.
7106         * tests/uninorm/test-u32-nfd.c: Likewise.
7107         * tests/uninorm/test-u32-nfd-big.c: Likewise.
7108         * tests/uninorm/test-u32-nfkc.c: Likewise.
7109         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
7110         * tests/uninorm/test-u32-nfkd.c: Likewise.
7111         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
7112         * tests/uninorm/test-u32-normalize-big.c: Likewise.
7113
7114 2010-03-27  Bruno Haible  <bruno@clisp.org>
7115
7116         Distinguish two kinds of module indicators.
7117         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
7118         gl_MODULE_INDICATOR.
7119         (gl_MODULE_INDICATOR): New macro.
7120         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
7121         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
7122         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7123         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7124         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7125         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7126         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7127         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7128         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7129         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7130         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7131         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7132         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7133         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7134         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7135         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7136         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7137         * m4/sys_time_h.m4 (gl_SYS_TIME_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         * modules/cloexec (configure.ac): Likewise.
7142         * modules/getopt-gnu (configure.ac): Likewise.
7143         * modules/uninorm/u8-normalize (configure.ac): Likewise.
7144         * modules/uninorm/u16-normalize (configure.ac): Likewise.
7145         * modules/uninorm/u32-normalize (configure.ac): Likewise.
7146         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
7147
7148 2010-03-27  Bruno Haible  <bruno@clisp.org>
7149
7150         New module description field 'Comment'.
7151         * gnulib-tool: New option --extract-comment.
7152         (func_usage): Document it.
7153         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
7154         (func_get_comment): New function.
7155         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
7156
7157 2010-03-27  Bruno Haible  <bruno@clisp.org>
7158
7159         Addendum to 2010-02-07 commit.
7160         * gnulib-tool (func_usage): Document --extract-applicability option.
7161
7162 2010-03-27  Bruno Haible  <bruno@clisp.org>
7163
7164         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
7165         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
7166         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
7167         rather than link errors.
7168
7169 2010-03-27  Bruno Haible  <bruno@clisp.org>
7170
7171         Avoid side effects from tests-related modules on the compilation of lib.
7172         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
7173         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
7174         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
7175         parameter. Emit into AM_CPPFLAGS a definition of the designated C
7176         macro.
7177         (func_import): Define a witness macro. Assign it a value that depends
7178         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
7179         tests-related modules.
7180         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
7181         Reported by Jim Meyering.
7182
7183 2010-03-27  Bruno Haible  <bruno@clisp.org>
7184
7185         Factorize common .m4 code.
7186         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
7187         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
7188         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
7189         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
7190         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
7191         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
7192         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
7193         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
7194         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
7195         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
7196         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
7197         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
7198         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
7199         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
7200         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
7201         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
7202         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
7203         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
7204         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
7205         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
7206         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
7207         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
7208         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
7209         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
7210         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
7211         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
7212         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
7213         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
7214         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
7215         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
7216         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
7217         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
7218
7219 2010-03-27  Bruno Haible  <bruno@clisp.org>
7220
7221         Fix a compilation error on Cygwin with g++ >= 4.3.
7222         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
7223         if it is undefined or if we alias it to chmod.
7224         (lstat): Don't warn about the use of this function if it is undefined
7225         or if we alias it to stat.
7226         Reported by Simon Josefsson.
7227
7228 2010-03-27  Bruno Haible  <bruno@clisp.org>
7229
7230         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
7231         * modules/getlogin (configure.ac): Update.
7232
7233         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
7234         * modules/getlogin_r (configure.ac): Update.
7235
7236         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
7237         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
7238         * modules/inet_ntop (configure.ac): Update.
7239
7240         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
7241         * modules/inet_pton (configure.ac): Update.
7242
7243         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
7244         * modules/mbslen (configure.ac): Update.
7245
7246         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
7247         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
7248         * modules/forkpty (configure.ac): Update.
7249         * modules/openpty (configure.ac): Update.
7250
7251 2010-03-26  Simon Josefsson  <simon@josefsson.org>
7252
7253         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
7254         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
7255
7256 2010-03-25  Eric Blake  <eblake@redhat.com>
7257
7258         maint: use pragma consistently across replacement headers
7259         * lib/ctype.in.h (system_header): Hoist for consistent placement.
7260         * lib/dirent.in.h (system_header): Likewise.
7261         * lib/errno.in.h (system_header): Likewise.
7262         * lib/float.in.h (system_header): Likewise.
7263         * lib/getopt.in.h (system_header): Likewise.
7264         * lib/iconv.in.h (system_header): Likewise.
7265         * lib/inttypes.in.h (system_header): Likewise.
7266         * lib/langinfo.in.h (system_header): Likewise.
7267         * lib/locale.in.h (system_header): Likewise.
7268         * lib/math.in.h (system_header): Likewise.
7269         * lib/netdb.in.h (system_header): Likewise.
7270         * lib/netinet_in.in.h (system_header): Likewise.
7271         * lib/pty.in.h (system_header): Likewise.
7272         * lib/sched.in.h (system_header): Likewise.
7273         * lib/se-selinux.in.h (system_header): Likewise.
7274         * lib/search.in.h (system_header): Likewise.
7275         * lib/spawn.in.h (system_header): Likewise.
7276         * lib/stdarg.in.h (system_header): Likewise.
7277         * lib/stdint.in.h (system_header): Likewise.
7278         * lib/string.in.h (system_header): Likewise.
7279         * lib/strings.in.h (system_header): Likewise.
7280         * lib/sys_file.in.h (system_header): Likewise.
7281         * lib/sys_ioctl.in.h (system_header): Likewise.
7282         * lib/sys_socket.in.h (system_header): Likewise.
7283         * lib/sys_times.in.h (system_header): Likewise.
7284         * lib/sys_utsname.in.h (system_header): Likewise.
7285         * lib/sys_wait.in.h (system_header): Likewise.
7286         * lib/sysexits.in.h (system_header): Likewise.
7287         * lib/unistd.in.h (system_header): Likewise.
7288         * lib/wctype.in.h (system_header): Likewise.
7289
7290         arpa/inet: fix mingw compilation warning
7291         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
7292         Reported by Matthew Bolte.
7293
7294 2010-03-25  Bruno Haible  <bruno@clisp.org>
7295
7296         Avoid collision between gnulib wrapper and libintl wrapper.
7297         * lib/printf.c (printf): Don't define if a printf wrapper is already
7298         defined in intl/printf.c.
7299         Reported by Michel Boaventura <michel@michelboaventura.com>.
7300
7301 2010-03-25  Bruno Haible  <bruno@clisp.org>
7302
7303         Use ANSI C.
7304         * lib/readutmp.h (getutent): Provide ANSI C prototype.
7305
7306 2010-03-25  Bruno Haible  <bruno@clisp.org>
7307
7308         Minor formatting changes.
7309         * lib/acosl.c: Insert space before function argument list.
7310         * lib/argz.c: Likewise.
7311         * lib/asinl.c: Likewise.
7312         * lib/expl.c: Likewise.
7313         * lib/gen-uni-tables.c: Likewise.
7314         * lib/gettext.h: Likewise.
7315         * lib/glthread/lock.h: Likewise.
7316         * lib/tanl.c: Likewise.
7317         * lib/uniname/uniname.c: Likewise.
7318         * tests/test-idpriv-drop.c: Likewise.
7319         * tests/test-idpriv-droptemp.c: Likewise.
7320         * tests/test-lock.c: Likewise.
7321         * tests/test-tls.c: Likewise.
7322         * lib/argp-help.c: Insert space before function-like macro argument
7323         list.
7324         * lib/memcmp.c: Likewise.
7325         * tests/test-base64.c: Likewise.
7326         * lib/localename.c: Insert space before sizeof's argument list.
7327         * lib/safe-alloc.h: Likewise.
7328         * lib/file-set.h: Insert space before macro argument list.
7329         * tests/test-argp.c: Likewise.
7330         * lib/argp-namefrob.h: Insert space before function parameter list.
7331         * lib/getaddrinfo.c: Likewise.
7332         * lib/netdb.in.h: Likewise.
7333         * lib/parse-duration.h: Likewise.
7334         * lib/parse-duration.c: Likewise.
7335         * lib/poll.c: Likewise.
7336         * lib/select.c: Likewise.
7337         * lib/trim.h: Likewise.
7338         * tests/test-usleep.c: Likewise.
7339         * lib/ldexpl.c: Insert space before function parameter list and before
7340         function argument list.
7341         * lib/logl.c: Likewise.
7342         * lib/sqrtl.c: Likewise.
7343         * lib/trim.c: Likewise.
7344         * lib/cosl.c: Use GNU style indentation. Insert space before function
7345         argument list.
7346         * lib/sinl.c: Likewise.
7347         * lib/tsearch.c: Insert space after 'for'.
7348         Reported by Jim Meyering.
7349
7350 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
7351
7352         * maint.mk (sc_Wundef_boolean): Check for the presence of the
7353         config header before grepping, as it's not present before
7354         autoreconf/configure are run.  Reported by Simon Josefsson.
7355
7356 2010-03-23  Bruno Haible  <bruno@clisp.org>
7357
7358         pt_chown: Make it work with automake < 1.11.
7359         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
7360         Reported by Simon Josefsson.
7361
7362 2010-03-23  Bruno Haible  <bruno@clisp.org>
7363
7364         pt_chown: Don't depend on GPLed modules.
7365         * lib/pt_chown.c: Don't include idpriv.h.
7366         (main): Don't drop privileges.
7367         * modules/pt_chown (Depends-on): Remove idpriv-drop.
7368         Reported by Simon Josefsson.
7369
7370 2010-03-24  Simon Josefsson  <simon@josefsson.org>
7371
7372         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
7373         suggestions from karl@freefriends.org (Karl Berry).
7374
7375 2010-03-22  Eric Blake  <eblake@redhat.com>
7376
7377         gethostname: further tweaks
7378         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
7379         are overriding gethostname.
7380         Suggested by Bruno Haible.
7381
7382 2010-03-21  Bruno Haible  <bruno@clisp.org>
7383
7384         Fix comments.
7385         * lib/forkpty.c (rpl_forkpty): Fix comment.
7386         * lib/openpty.c (rpl_openpty): Likewise.
7387         Reported by Eric Blake.
7388
7389 2010-03-22  Eric Blake  <eblake@redhat.com>
7390
7391         gethostname: fix build on mingw
7392         * lib/unistd.in.h (includes): Work around fact that mingw
7393         <winsock2.h> re-includes <unistd.h>, by avoiding any
7394         redeclarations if we are being included by <winsock2.h>.
7395         Reported by Matthias Bolte.
7396
7397 2010-03-21  Bruno Haible  <bruno@clisp.org>
7398
7399         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7400         * lib/forkpty.c (forkpty): New replacement function, from glibc with
7401         modifications.
7402         * lib/pty.in.h (forkpty): Update declaration. Add comments.
7403         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
7404         provide the replacement.
7405         * modules/forkpty (Depends-on): Add openpty, login_tty.
7406         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
7407         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
7408         * doc/glibc-functions/forkpty.texi: More supported platforms.
7409         * config/srclist.txt: Add forkpty.c (commented).
7410
7411 2010-03-21  Bruno Haible  <bruno@clisp.org>
7412
7413         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
7414         (Makefile.am): Verify that PTY_LIB is defined.
7415
7416         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
7417
7418 2010-03-21  Bruno Haible  <bruno@clisp.org>
7419
7420         Tests for module 'login_tty'.
7421         * modules/login_tty-tests: New file.
7422         * tests/test-login_tty.c: New file.
7423
7424         New module 'login_tty'.
7425         * lib/login_tty.c: New file.
7426         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
7427         * modules/login_tty: New file.
7428         * doc/glibc-functions/login_tty.texi: Mention the new module.
7429
7430 2010-03-21  Bruno Haible  <bruno@clisp.org>
7431
7432         login_tty: Documentation.
7433         * doc/glibc-functions/login_tty.texi: New file.
7434         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
7435
7436 2010-03-21  Bruno Haible  <bruno@clisp.org>
7437
7438         pty: Consistent macro naming.
7439         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
7440         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
7441         * modules/pty (configure.ac): Update.
7442
7443 2010-03-21  Bruno Haible  <bruno@clisp.org>
7444
7445         Tests for openpty: Make stricter.
7446         * tests/test-openpty.c (main): Add test of canonical processing and
7447         erase.
7448         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
7449
7450         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
7451         * lib/openpty.c (openpty): New replacement function.
7452         * lib/pty.in.h: Include <termios.h>.
7453         (openpty): Update declaration. Add comments.
7454         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
7455         is not declared, arrange to provide the replacement. Check for _getpty
7456         and posix_openpt.
7457         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
7458         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
7459         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
7460         * modules/pty-tests (test_pty_c___LDADD): New variable.
7461         * doc/glibc-functions/openpty.texi: More supported platforms.
7462
7463 2010-03-21  Bruno Haible  <bruno@clisp.org>
7464
7465         setenv: Tweaks.
7466         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
7467         the test program.
7468         * doc/posix-functions/setenv.texi: Update platforms list.
7469
7470 2010-03-21  Bruno Haible  <bruno@clisp.org>
7471
7472         New module 'unlockpt'.
7473         * lib/unlockpt.c: New file, from glibc with modifications.
7474         * m4/unlockpt.m4: New file.
7475         * modules/unlockpt: New file.
7476         * lib/stdlib.in.h (unlockpt): New declaration.
7477         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
7478         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
7479         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
7480         HAVE_UNLOCKPT.
7481         * doc/posix-functions/unlockpt.texi: Mention the new module.
7482         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
7483         * config/srclist.txt: Add unlockpt.c (commented).
7484
7485 2010-03-21  Jim Meyering  <meyering@redhat.com>
7486
7487         maint.mk: prohibit inclusion of "intprops.h" without use
7488         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
7489
7490 2010-03-21  Bruno Haible  <bruno@clisp.org>
7491
7492         New module 'grantpt'.
7493         * lib/grantpt.c: New file, from glibc with modifications.
7494         * m4/grantpt.m4: New file.
7495         * modules/grantpt: New file.
7496         * lib/stdlib.in.h (grantpt): New declaration.
7497         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
7498         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
7499         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
7500         HAVE_GRANTPT.
7501         * doc/posix-functions/grantpt.texi: Mention the new module.
7502         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
7503         * config/srclist.txt: Add grantpt.c (commented).
7504
7505 2010-03-21  Bruno Haible  <bruno@clisp.org>
7506
7507         New module 'pt_chown'.
7508         * lib/pt_chown.c: New file, from glibc with modifications.
7509         * lib/pty-private.h: New file, from glibc with modifications.
7510         * modules/pt_chown: New file.
7511         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
7512
7513 2010-03-21  Bruno Haible  <bruno@clisp.org>
7514
7515         Tests for module 'ptsname'.
7516         * modules/ptsname-tests: New file.
7517         * tests/test-ptsname.c: New file.
7518
7519         New module 'ptsname'.
7520         * lib/ptsname.c: New file, from glibc with modifications.
7521         * m4/ptsname.m4: New file.
7522         * modules/ptsname: New file.
7523         * lib/stdlib.in.h (ptsname): New declaration.
7524         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
7525         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
7526         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
7527         HAVE_PTSNAME.
7528         * doc/posix-functions/ptsname.texi: Mention the new module.
7529         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
7530         * config/srclist.txt: Add ptsname.c (commented).
7531
7532 2010-03-21  Bruno Haible  <bruno@clisp.org>
7533
7534         Tests for module 'ttyname_r'.
7535         * modules/ttyname_r-tests: New file.
7536         * tests/test-ttyname_r.c: New file.
7537
7538         New module 'ttyname_r'.
7539         * lib/ttyname_r.c: New file.
7540         * m4/ttyname_r.m4: New file.
7541         * modules/ttyname_r: New file.
7542         * lib/unistd.in.h (ttyname_r): New declaration.
7543         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
7544         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
7545         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
7546         HAVE_TTYNAME_R.
7547         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
7548         * doc/posix-functions/ttyname_r.texi: Mention the new module.
7549
7550 2010-03-20  Bruno Haible  <bruno@clisp.org>
7551
7552         signal: Undefine macro definitions in C++ mode.
7553         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
7554         sigfillset): Undefine macro definitions from the system header in C++
7555         mode.
7556         Reported by John W. Eaton <jwe@gnu.org>.
7557
7558 2010-03-20  Bruno Haible  <bruno@clisp.org>
7559
7560         Ensure no #include statements inside extern "C" { ... }.
7561         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
7562         contain #include statements.
7563         * lib/time.in.h: Likewise.
7564
7565 2010-03-20  Bruno Haible  <bruno@clisp.org>
7566
7567         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
7568         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
7569         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
7570         Reported by John W. Eaton <jwe@gnu.org>.
7571
7572 2010-03-20  Bruno Haible  <bruno@clisp.org>
7573
7574         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
7575         Reported by Jim Meyering.
7576
7577 2010-03-20  Bruno Haible  <bruno@clisp.org>
7578
7579         pipe: Set errno upon failure.
7580         * lib/pipe.h: Specify that when -1 is returned, errno is set.
7581         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
7582         errno value in error message.
7583
7584 2010-03-20  Bruno Haible  <bruno@clisp.org>
7585             Jim Meyering  <meyering@redhat.com>
7586
7587         lchown: Avoid "unused variable" warning.
7588         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
7589
7590 2010-03-20  Bruno Haible  <bruno@clisp.org>
7591
7592         Work around unlink() bug on MacOS X 10.5.6.
7593         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
7594         attempting to unlink a parent directory.
7595         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
7596         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
7597         activate for the replacement function.
7598         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
7599
7600 2010-03-20  Bruno Haible  <bruno@clisp.org>
7601
7602         Fix link errors on Solaris 8.
7603         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
7604         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
7605
7606 2010-03-19  Jim Meyering  <meyering@redhat.com>
7607
7608         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
7609         The _LIBC implementation of build_range_exp correctly honors the
7610         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
7611         However, the non-_LIBC implementation would ignore that syntax-bit
7612         flag and return REG_ERANGE unconditionally.
7613         This change makes it honor that flag.
7614         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
7615         Make two pointer parameters "const".
7616         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
7617         (parse_bracket_exp): Update caller.
7618
7619         regex.m4: correct the reversed range endpoint ([b-a]) test
7620         * m4/regex.m4: When requiring that [b-a] evoke failure,
7621         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
7622         test pass once again for x86-based systems.
7623
7624 2010-03-19  Bruno Haible  <bruno@clisp.org>
7625
7626         scandir: Fix link error on Solaris 8.
7627         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
7628         macros.
7629
7630 2010-03-19  Bruno Haible  <bruno@clisp.org>
7631
7632         getusershell: Fix documentation.
7633         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
7634         module.
7635         * doc/glibc-functions/setusershell.texi: Likewise.
7636
7637         getusershell: Provide declaration, missing on Solaris 9.
7638         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
7639         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
7640         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
7641         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
7642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7643         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
7644         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
7645         HAVE_GETUSERSHELL.
7646         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
7647
7648 2010-03-19  Bruno Haible  <bruno@clisp.org>
7649
7650         wctype: Provide iswblank function.
7651         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
7652         exists and is fine.
7653         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
7654         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
7655         * tests/test-wctype.c (main): Re-enable the iswblank tests.
7656         * doc/posix-functions/iswblank.texi: Update.
7657
7658 2010-03-19  Bruno Haible  <bruno@clisp.org>
7659
7660         Tests of module 'pty' in C++ mode.
7661         * modules/pty-tests: New file.
7662         * tests/test-pty-c++.cc: New file.
7663         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7664
7665 2010-03-19  Eric Blake  <eblake@redhat.com>
7666
7667         logb: fix documentation
7668         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
7669         1.5 declaration bug.
7670
7671         forkpty, openpty: prefer glibc's const-safe prototype
7672         * lib/forkpty.c (rpl_forkpty): New file.
7673         * lib/openpty.c (rpl_openpty): Likewise.
7674         * modules/forkpty (Files): Distribute it.
7675         * modules/openpty (Files): Likewise.
7676         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
7677         check...
7678         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
7679         replacement for for non-const BSD signature.
7680         * modules/pty (Makefile.am): Substitute witnesses.
7681         * lib/pty.in.h (forkpty, openpty): Declare replacements.
7682         * tests/test-forkpty.c: Update signature check.
7683         * tests/test-openpty.c: Likewise.
7684         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
7685         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7686
7687         forkpty, openpty: split functions into new modules
7688         * modules/pty (Makefile.am): Substitute new witnesses.
7689         (Libraries): Move library detection...
7690         * modules/forkpty: ...into new module.
7691         * modules/openpty: Another new module.
7692         * modules/pty-tests: Rename and split...
7693         * modules/forkpty-tests: ...to this...
7694         * modules/openpty-tests: ...and this.
7695         * tests/test-pty.c: Rename and split...
7696         * tests/test-forkpty.c: ...to this...
7697         * tests/test-openpty.c: ...and this.
7698         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
7699         (gl_PTY): Split library searching...
7700         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
7701         (gl_FORKPTY, gl_OPENPTY): New macros.
7702         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
7703         * NEWS: Mention the split.
7704         * MODULES.html.sh (Misc): Document the modules.
7705         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
7706         * doc/glibc-functions/openpty.texi (openpty): Likewise.
7707
7708         pty: improve replacement header
7709         * lib/pty.in.h: New file.
7710         * modules/pty (Files): Ship it.
7711         (Makefile.am): Always build replacement.
7712         * m4/pty.m4: Rename...
7713         * m4/pty_h.m4: ...to this.
7714         (gl_PTY): Modernize setting of witness macros; update check of
7715         forkpty to take proper advantage of cache.
7716         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
7717
7718         getopt: avoid compiler warning
7719         * lib/getopt.c (attribute_hidden): Remove unused macro.
7720
7721 2010-03-18  Bruno Haible  <bruno@clisp.org>
7722
7723         Fix link errors on Solaris 8.
7724         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
7725         * modules/search-tests (test_search_c___LDADD): Likewise.
7726         * modules/signal-tests (test_signal_c___LDADD): Likewise.
7727         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
7728         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
7729         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
7730         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
7731         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
7732         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
7733
7734 2010-03-18  Bruno Haible  <bruno@clisp.org>
7735
7736         Fix bug introduced on 2010-03-14.
7737         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
7738         (gl_SPAWN_H): Require it.
7739         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
7740         Reported by Simon Josefsson.
7741
7742 2010-03-18  Bruno Haible  <bruno@clisp.org>
7743
7744         Fix typo introduced on 2009-12-31.
7745         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
7746         posix_spawn_file_actions_adddup2.
7747
7748 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
7749         and Eric Blake  <eblake@redhat.com>
7750
7751         test-vc-list-files-git: make more robust
7752         * tests/test-vc-list-files-git.sh: Unset problematic environment
7753         variables.  Chain commands together.
7754
7755 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
7756
7757         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
7758         `AC_CHECK_DECL' invocation.
7759
7760 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
7761
7762         * lib/inttostr.c (inttostr): Make sure the invocation of verify
7763         appears before executable statements. Suggested by Petr Sumbera
7764         <Petr.Sumbera@Sun.COM>.
7765
7766 2010-03-14  Bruno Haible  <bruno@clisp.org>
7767
7768         * tests/test-flock.c (test_exclusive): Comment out a test that causes
7769         portability problems. Instead use a simpler test.
7770         (main): Check that invalid arguments are rejected only on Linux.
7771
7772 2010-03-14  Bruno Haible  <bruno@clisp.org>
7773
7774         Fix bug introduced on 2009-12-31.
7775         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7776         gl_PREREQ_SYS_H_WINSOCK2 always.
7777         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
7778         SYS_SOCKET_H variable.
7779         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
7780         Update comments.
7781         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
7782         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7783         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7784         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7785         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7786
7787 2010-03-14  Bruno Haible  <bruno@clisp.org>
7788
7789         Fix values returned by sinl, cosl.
7790         * lib/trigl.h: Add specification comments.
7791         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
7792         that combines the values from the precomputed table with the values of
7793         the Chebyshev polynomials.
7794
7795 2010-03-14  Bruno Haible  <bruno@clisp.org>
7796
7797         Fix compilation error when modules 'posix_spawn[p]' are not used.
7798         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
7799         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
7800
7801 2010-03-14  Bruno Haible  <bruno@clisp.org>
7802
7803         Fix compilation error on mingw when module 'time_r' is not used.
7804         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
7805         is 1.
7806         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
7807         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
7808         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
7809         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
7810
7811 2010-03-14  Bruno Haible  <bruno@clisp.org>
7812
7813         Fix compilation error with Sun C.
7814         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
7815         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
7816         instead of GCC specific ULONG_LONG_MAX.
7817         * lib/xstrtoll.c: Likewise.
7818         * lib/xstrtoull.c: Likewise.
7819
7820 2010-03-13  Bruno Haible  <bruno@clisp.org>
7821
7822         Allow the user to disable C++ code and tests.
7823         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
7824         (gl_PROG_ANSI_CXX): Require it.
7825
7826 2010-03-13  Bruno Haible  <bruno@clisp.org>
7827
7828         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
7829         cases.
7830
7831 2010-03-13  Bruno Haible  <bruno@clisp.org>
7832
7833         Test that gnulib does not break the standard C++ headers.
7834         * tests/test-locale-c++2.cc: New file.
7835         * modules/locale-tests (Files): Add it.
7836         (Makefile.am): Compile it for test-locale-c++.
7837         * tests/test-math-c++2.cc: New file.
7838         * modules/math-tests (Files): Add it.
7839         (Makefile.am): Compile it for test-math-c++.
7840         * tests/test-signal-c++2.cc: New file.
7841         * modules/signal-tests (Files): Add it.
7842         (Makefile.am): Compile it for test-signal-c++.
7843         * tests/test-stdio-c++2.cc: New file.
7844         * modules/stdio-tests (Files): Add it.
7845         (Makefile.am): Compile it for test-stdio-c++.
7846         * tests/test-stdlib-c++2.cc: New file.
7847         * modules/stdlib-tests (Files): Add it.
7848         (Makefile.am): Compile it for test-stdlib-c++.
7849         * tests/test-string-c++2.cc: New file.
7850         * modules/string-tests (Files): Add it.
7851         (Makefile.am): Compile it for test-string-c++.
7852         * tests/test-time-c++2.cc: New file.
7853         * modules/time-tests (Files): Add it.
7854         (Makefile.am): Compile it for test-time-c++.
7855         Reported by John W. Eaton <jwe@gnu.org>.
7856
7857 2010-03-13  Bruno Haible  <bruno@clisp.org>
7858
7859         * gnulib-tool (func_usage): Clarify which options are available for
7860         --create-testdir and --create-megatestdir.
7861
7862 2010-03-13  Bruno Haible  <bruno@clisp.org>
7863
7864         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
7865         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
7866         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
7867         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7868         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
7869         when appropriate.
7870         Reported by Jim Meyering.
7871
7872 2010-03-12  Simon Josefsson  <simon@josefsson.org>
7873
7874         * gnulib-tool (func_import): Explain origin of code.
7875
7876 2010-03-12  Bruno Haible  <bruno@clisp.org>
7877
7878         Fix problem with automake's definition of CXXLINK.
7879         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
7880         Reported by Simon Josefsson and Ludovic Courtès.
7881
7882 2010-03-12  Bruno Haible  <bruno@clisp.org>
7883
7884         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
7885         stable releases.
7886
7887 2010-03-11  Bruno Haible  <bruno@clisp.org>
7888
7889         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
7890         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
7891         whether the system provides one variant or multiple variants of the
7892         function.
7893         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
7894         C++ compilers.
7895         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
7896         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
7897         Reported by Jim Meyering.
7898
7899 2010-03-09  Simon Josefsson  <simon@josefsson.org>
7900
7901         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
7902
7903 2010-03-08  Bruno Haible  <bruno@clisp.org>
7904
7905         gnulib-tool: Add support for --libtool in --create-testdir.
7906         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
7907         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
7908
7909 2010-03-08  Eric Blake  <eblake@redhat.com>
7910
7911         gnulib-tool.texi: mention possibility of git submodule
7912         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
7913         submodules.
7914         * doc/.gitignore: Ignore another generated file.
7915
7916 2010-03-08  Karl Berry  <karl@gnu.org>
7917
7918         * doc/gnulib-tool.texi (VCS Issues): Mention third option
7919         of committing gnulib files while skipping others.
7920
7921 2010-03-07  Bruno Haible  <bruno@clisp.org>
7922
7923         Tests of module 'wctype' in C++ mode.
7924         * tests/test-wctype-c++.cc: New file.
7925         * modules/wctype-tests (Files): Add it and tests/signature.h.
7926         (Depends-on): Add ansi-c++-opt.
7927         (Makefile.am): Arrange to compile and run test-wctype-c++.
7928
7929         Tests of module 'wchar' in C++ mode.
7930         * tests/test-wchar-c++.cc: New file.
7931         * modules/wchar-tests (Files): Add it and tests/signature.h.
7932         (Depends-on): Add ansi-c++-opt.
7933         (Makefile.am): Arrange to compile and run test-wchar-c++.
7934         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
7935         gl_MODULE_INDICATOR.
7936
7937         Tests of module 'unistd' in C++ mode.
7938         * tests/test-unistd-c++.cc: New file.
7939         * modules/unistd-tests (Files): Add it and tests/signature.h.
7940         (Depends-on): Add ansi-c++-opt.
7941         (Makefile.am): Arrange to compile and run test-unistd-c++.
7942         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
7943         gl_MODULE_INDICATOR.
7944
7945         Tests of module 'time' in C++ mode.
7946         * tests/test-time-c++.cc: New file.
7947         * modules/time-tests (Files): Add it and tests/signature.h.
7948         (Depends-on): Add ansi-c++-opt.
7949         (Makefile.am): Arrange to compile and run test-time-c++.
7950         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7951
7952         Tests of module 'sys_time' in C++ mode.
7953         * tests/test-sys_time-c++.cc: New file.
7954         * modules/sys_time-tests (Files): Add it and tests/signature.h.
7955         (Depends-on): Add ansi-c++-opt.
7956         (Makefile.am): Arrange to compile and run test-sys_time-c++.
7957         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
7958         gl_MODULE_INDICATOR.
7959
7960         Tests of module 'sys_stat' in C++ mode.
7961         * tests/test-sys_stat-c++.cc: New file.
7962         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
7963         (Depends-on): Add ansi-c++-opt.
7964         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
7965         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
7966         gl_MODULE_INDICATOR.
7967
7968         Tests of module 'sys_socket' in C++ mode.
7969         * tests/test-sys_socket-c++.cc: New file.
7970         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
7971         (Depends-on): Add ansi-c++-opt.
7972         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
7973         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
7974         gl_MODULE_INDICATOR.
7975
7976         Tests of module 'sys_select' in C++ mode.
7977         * tests/test-sys_select-c++.cc: New file.
7978         * modules/sys_select-tests (Files): Add it and tests/signature.h.
7979         (Depends-on): Add ansi-c++-opt.
7980         (Makefile.am): Arrange to compile and run test-sys_select-c++.
7981         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
7982         gl_MODULE_INDICATOR.
7983
7984         Tests of module 'sys_ioctl' in C++ mode.
7985         * tests/test-sys_ioctl-c++.cc: New file.
7986         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
7987         (Depends-on): Add ansi-c++-opt.
7988         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
7989         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
7990         gl_MODULE_INDICATOR.
7991
7992         Tests of module 'string' in C++ mode.
7993         * tests/test-string-c++.cc: New file.
7994         * modules/string-tests (Files): Add it and tests/signature.h.
7995         (Depends-on): Add ansi-c++-opt.
7996         (Makefile.am): Arrange to compile and run test-string-c++.
7997         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
7998         gl_MODULE_INDICATOR.
7999
8000         Tests of module 'stdlib' in C++ mode.
8001         * tests/test-stdlib-c++.cc: New file.
8002         * modules/stdlib-tests (Files): Add it and tests/signature.h.
8003         (Depends-on): Add ansi-c++-opt.
8004         (Makefile.am): Arrange to compile and run test-stdlib-c++.
8005         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
8006         gl_MODULE_INDICATOR.
8007
8008         Tests of module 'stdio' in C++ mode.
8009         * tests/test-stdio-c++.cc: New file.
8010         * modules/stdio-tests (Files): Add it and tests/signature.h.
8011         (Depends-on): Add ansi-c++-opt.
8012         (Makefile.am): Arrange to compile and run test-stdio-c++.
8013         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
8014         gl_MODULE_INDICATOR.
8015
8016         Tests of module 'spawn' in C++ mode.
8017         * tests/test-spawn-c++.cc: New file.
8018         * modules/spawn-tests (Files): Add it and tests/signature.h.
8019         (Depends-on): Add ansi-c++-opt.
8020         (Makefile.am): Arrange to compile and run test-spawn-c++.
8021         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
8022         gl_MODULE_INDICATOR.
8023
8024         Tests of module 'signal' in C++ mode.
8025         * tests/test-signal-c++.cc: New file.
8026         * modules/signal-tests (Files): Add it and tests/signature.h.
8027         (Depends-on): Add ansi-c++-opt.
8028         (Makefile.am): Arrange to compile and run test-signal-c++.
8029         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
8030         gl_MODULE_INDICATOR.
8031
8032         Tests of module 'search' in C++ mode.
8033         * tests/test-search-c++.cc: New file.
8034         * modules/search-tests (Files): Add it and tests/signature.h.
8035         (Depends-on): Add ansi-c++-opt.
8036         (Makefile.am): Arrange to compile and run test-search-c++.
8037         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
8038         gl_MODULE_INDICATOR.
8039
8040         Tests of module 'math' in C++ mode.
8041         * tests/test-math-c++.cc: New file.
8042         * modules/math-tests (Files): Add it and tests/signature.h.
8043         (Depends-on): Add ansi-c++-opt.
8044         (Makefile.am): Arrange to compile and run test-math-c++.
8045         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8046
8047         Tests of module 'locale' in C++ mode.
8048         * tests/test-locale-c++.cc: New file.
8049         * modules/locale-tests (Files): Add it and tests/signature.h.
8050         (Depends-on): Add ansi-c++-opt.
8051         (Makefile.am): Arrange to compile and run test-locale-c++.
8052         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
8053         gl_MODULE_INDICATOR.
8054
8055         Tests of module 'langinfo' in C++ mode.
8056         * tests/test-langinfo-c++.cc: New file.
8057         * modules/langinfo-tests (Files): Add it and tests/signature.h.
8058         (Depends-on): Add ansi-c++-opt.
8059         (Makefile.am): Arrange to compile and run test-langinfo-c++.
8060         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
8061         gl_MODULE_INDICATOR.
8062
8063         Tests of module 'iconv-h' in C++ mode.
8064         * tests/test-iconv-h-c++.cc: New file.
8065         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
8066         (Depends-on): Add ansi-c++-opt.
8067         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
8068
8069         Tests of module 'glob' in C++ mode.
8070         * tests/test-glob-c++.cc: New file.
8071         * modules/glob-tests (Files): Add it.
8072         (Depends-on): Add ansi-c++-opt.
8073         (Makefile.am): Arrange to compile and run test-glob-c++.
8074
8075         Tests of module 'fcntl-h' in C++ mode.
8076         * tests/test-fcntl-h-c++.cc: New file.
8077         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
8078         (Depends-on): Add ansi-c++-opt.
8079         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
8080         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
8081         gl_MODULE_INDICATOR.
8082
8083         Tests of module 'dirent' in C++ mode.
8084         * tests/test-dirent-c++.cc: New file.
8085         * modules/dirent-tests (Files): Add it and tests/signature.h.
8086         (Depends-on): Add ansi-c++-opt.
8087         (Makefile.am): Arrange to compile and run test-dirent-c++.
8088         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8089         gl_MODULE_INDICATOR.
8090
8091         New module 'ansi-c++-opt'.
8092         * modules/ansi-c++-opt: New file.
8093         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
8094
8095         Document C++ namespace mode.
8096         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
8097
8098         wctype: Avoid #define replacements in C++ mode.
8099         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
8100         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
8101         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
8102         In C++, define a namespaced alias symbol.
8103         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
8104         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
8105         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
8106         rule.
8107
8108         wchar: Avoid #define replacements in C++ mode.
8109         * lib/wchar.in.h: Include c++defs.h.
8110         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
8111         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
8112         symbol.
8113         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
8114         * modules/wchar (Depends-on): Add c++defs.
8115         (Makefile.am): Update wchar.h rule.
8116
8117         unistd: Avoid #define replacements in C++ mode.
8118         * lib/unistd.in.h: Include c++defs.h.
8119         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
8120         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
8121         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
8122         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
8123         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
8124         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
8125         symbol.
8126         (environ): Update.
8127         * modules/unistd (Depends-on): Add c++defs.
8128         (Makefile.am): Update unistd.h rule.
8129
8130         time: Avoid #define replacements in C++ mode.
8131         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
8132         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
8133         define a namespaced alias symbol.
8134         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
8135         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
8136         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
8137         * modules/time (Depends-on): Add c++defs, warn-on-use.
8138         (Makefile.am): Update time.h rule.
8139         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
8140         * modules/nanosleep (configure.ac): Likewise.
8141         * modules/strptime (configure.ac): Likewise.
8142         * modules/timegm (configure.ac): Likewise.
8143
8144         sys_time: Avoid #define replacements in C++ mode.
8145         * lib/sys_time.in.h: Include c++defs.h.
8146         (gettimeofday): In C++, define a namespaced alias symbol.
8147         * modules/sys_time (Depends-on): Add c++defs.
8148         (Makefile.am): Update sys/time.h rule.
8149
8150         sys_stat: Avoid #define replacements in C++ mode.
8151         * lib/sys_stat.in.h: Include c++defs.h.
8152         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
8153         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
8154         namespaced alias symbol.
8155         In C++, define a namespaced alias symbol.
8156         * modules/sys_stat (Depends-on): Add c++defs.
8157         (Makefile.am): Update sys/stat.h rule.
8158
8159         sys_socket: Avoid #define replacements in C++ mode.
8160         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
8161         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
8162         definitions also when the system has a <sys/socket.h>.
8163         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8164         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
8165         In C++, define a namespaced alias symbol.
8166         * modules/sys_socket (Depends-on): Add c++defs.
8167         (Makefile.am): Update sys/socket.h rule.
8168
8169         sys_select: Avoid #define replacements in C++ mode.
8170         * lib/sys_select.in.h: Include c++defs.h. Enable the function
8171         definitions also when the system has a <sys/select.h>.
8172         (select): In C++, define a namespaced alias symbol.
8173         * modules/sys_select (Depends-on): Add c++defs.
8174         (Makefile.am): Update sys/select.h rule.
8175
8176         sys_ioctl: Avoid #define replacements in C++ mode.
8177         * lib/sys_ioctl.in.h: Include c++defs.h.
8178         (ioctl): In C++, define a namespaced alias symbol.
8179         * modules/sys_ioctl (Depends-on): Add c++defs.
8180         (Makefile.am): Update sys/ioctl.h rule.
8181
8182         string: Avoid #define replacements in C++ mode.
8183         * lib/string.in.h: Include c++defs.h.
8184         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
8185         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
8186         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
8187         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
8188         strsignal, strverscmp): In C++, define a namespaced alias symbol.
8189         * modules/string (Depends-on): Add c++defs.
8190         (Makefile.am): Update string.h rule.
8191
8192         stdlib: Avoid #define replacements in C++ mode.
8193         * lib/stdlib.in.h: Include c++defs.h.
8194         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
8195         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
8196         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
8197         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
8198         symbol.
8199         * modules/stdlib (Depends-on): Add c++defs.
8200         (Makefile.am): Update stdlib.h rule.
8201
8202         stdio: Avoid #define replacements in C++ mode.
8203         * lib/stdio.in.h: Include c++defs.h.
8204         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
8205         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
8206         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
8207         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
8208         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
8209         namespaced alias symbol.
8210         * modules/stdio (Depends-on): Add c++defs.
8211         (Makefile.am): Update stdio.h rule.
8212
8213         spawn: Avoid #define replacements in C++ mode.
8214         * lib/spawn.in.h: Include c++defs.h.
8215         (posix_spawn, posix_spawnp, posix_spawnattr_init,
8216         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
8217         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
8218         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
8219         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
8220         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
8221         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
8222         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
8223         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
8224         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
8225         In C++, define a namespaced alias symbol.
8226         * modules/spawn (Depends-on): Add c++defs.
8227         (Makefile.am): Update spawn.h rule.
8228
8229         signal: Avoid #define replacements in C++ mode.
8230         * lib/signal.in.h: Include c++defs.h.
8231         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
8232         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
8233         namespaced alias symbol.
8234         * modules/signal (Depends-on): Add c++defs.
8235         (Makefile.am): Update signal.h rule.
8236
8237         search: Avoid #define replacements in C++ mode.
8238         * lib/search.in.h: Include c++defs.h.
8239         (_gl_search_compar_fn, _gl_search_action_fn): New types.
8240         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
8241         symbol.
8242         * modules/search (Depends-on): Add c++defs.
8243         (Makefile.am): Update search.h rule.
8244
8245         math: Avoid #define replacements in C++ mode.
8246         * lib/math.in.h: Include c++defs.h.
8247         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
8248         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
8249         trunc, truncl): In C++, define a namespaced alias symbol.
8250         * modules/math (Depends-on): Add c++defs.
8251         (Makefile.am): Update math.h rule.
8252
8253         locale: Avoid #define replacements in C++ mode.
8254         * lib/locale.in.h: Include c++defs.h.
8255         (duplocale): In C++, define a namespaced alias symbol.
8256         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
8257         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
8258         * modules/locale (Depends-on): Add c++defs.
8259         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
8260
8261         langinfo: Avoid #define replacements in C++ mode.
8262         * lib/langinfo.in.h: Include c++defs.h.
8263         (nl_langinfo): In C++, define a namespaced alias symbol.
8264         * modules/langinfo (Depends-on): Add c++defs.
8265         (Makefile.am): Update langinfo.h rule.
8266
8267         iconv-h: Avoid #define replacements in C++ mode.
8268         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
8269         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
8270         symbol.
8271         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
8272         whenever iconv is present.
8273         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
8274         (Makefile.am): Update iconv.h rule.
8275
8276         glob: Avoid #define replacements in C++ mode.
8277         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
8278         (_gl_glob_errfunc_fn): New type.
8279         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
8280         symbol.
8281         * modules/glob (Depends-on): Add c++defs, warn-on-use.
8282         (Makefile.am): Update glob.h rule.
8283
8284         fcntl-h: Avoid #define replacements in C++ mode.
8285         * lib/fcntl.in.h: Include c++defs.h.
8286         (fcntl, open, openat): In C++, define a namespaced alias symbol.
8287         * modules/fcntl-h (Depends-on): Add c++defs.
8288         (Makefile.am): Update fcntl.h rule.
8289
8290         dirent: Avoid #define replacements in C++ mode.
8291         * lib/dirent.in.h: Include c++defs.h.
8292         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
8293         namespaced alias symbol.
8294         (dirfd): Update declaration.
8295         * modules/dirent (Depends-on): Add c++defs.
8296         (Makefile.am): Update dirent.h rule.
8297
8298         ctype: Make it usable in C++ code.
8299         * lib/ctype.in.h: Include c++defs.h.
8300         (isblank): Declare as extern "C".
8301         * modules/ctype (Depends-on): Add c++defs.
8302         (Makefile.am): Update ctype.h rule.
8303
8304         New module 'c++defs'.
8305         * modules/c++defs: New file.
8306         * build-aux/c++defs.h: New file.
8307         Reported by John W. Eaton <jwe@gnu.org>.
8308
8309 2010-03-07  Bruno Haible  <bruno@clisp.org>
8310
8311         logb: Provide missing declaration for Cygwin.
8312         * lib/math.in.h (logb): New declaration.
8313         * m4/logb.m4: New file.
8314         * modules/logb (Files): Add m4/logb.m4.
8315         (Depends-on): Add math.
8316         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
8317         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
8318         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
8319         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
8320         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
8321
8322 2010-03-07  Bruno Haible  <bruno@clisp.org>
8323
8324         Fix test-cond link error.
8325         * tests/test-cond.c: Include <stdio.h>.
8326
8327 2010-03-07  Bruno Haible  <bruno@clisp.org>
8328
8329         Fix test-dirent-safer link error.
8330         * modules/dirent-safer-tests (Makefile.am): Define
8331         test_dirent_safer_LDADD.
8332
8333 2010-03-07  Bruno Haible  <bruno@clisp.org>
8334
8335         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
8336         among default module list.
8337
8338 2010-03-07  Bruno Haible  <bruno@clisp.org>
8339
8340         Fix link error on platforms with GNU libiconv.
8341         * modules/unistr/u8-strcoll-tests (Makefile): Define
8342         test_u8_strcoll_LDADD.
8343         * modules/unistr/u16-strcoll-tests (Makefile): Define
8344         test_u16_strcoll_LDADD.
8345         * modules/unistr/u32-strcoll-tests (Makefile): Define
8346         test_u32_strcoll_LDADD.
8347
8348 2010-03-07  Bruno Haible  <bruno@clisp.org>
8349
8350         Use POSIX declarations for socket functions.
8351         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
8352         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
8353         rpl_sendto): Change declaration to match POSIX.
8354         * lib/connect.c (rpl_connect): Likewise.
8355         * lib/accept.c (rpl_accept): Likewise.
8356         * lib/bind.c (rpl_bind): Likewise.
8357         * lib/getpeername.c (rpl_getpeername): Likewise.
8358         * lib/getsockname.c (rpl_getsockname): Likewise.
8359         * lib/recv.c (rpl_recv): Likewise.
8360         * lib/send.c (rpl_send): Likewise.
8361         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8362         * lib/sendto.c (rpl_sendto): Likewise.
8363
8364 2010-03-06  Bruno Haible  <bruno@clisp.org>
8365
8366         Clarify access, euidaccess, faccessat.
8367         * doc/posix-functions/faccessat.texi: Mention security problem under
8368         "Other problems", not "Portability problems".
8369         * doc/posix-functions/access.texi: Likewise. Mention a related security
8370         problem.
8371         * doc/glibc-functions/euidaccess.texi: Mention security problems.
8372         * lib/euidaccess.c: Add comments about platforms.
8373         * lib/unistd.in.h (access, euidaccess): Add warnings.
8374
8375 2010-03-07  Bruno Haible  <bruno@clisp.org>
8376
8377         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
8378         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
8379         (POSIX_SPAWN_SETSCHEDULER): Likewise.
8380         (POSIX_SPAWN_USEVFORK): Define in a way that works when
8381         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8382         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
8383         declare when POSIX_SPAWN_SETSCHEDULER is zero.
8384         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
8385         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
8386         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
8387         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
8388         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
8389         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
8390         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
8391         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
8392         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
8393         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
8394         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
8395         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
8396         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
8397         Likewise.
8398         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
8399         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
8400         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
8401         Likewise.
8402         * tests/test-spawn.c (main): Make it work when
8403         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
8404
8405 2010-03-07  Bruno Haible  <bruno@clisp.org>
8406
8407         Fix incorrect Makefile.am generation in German locale.
8408         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
8409         Execute sed command with character range in C locale.
8410
8411 2010-03-06  Bruno Haible  <bruno@clisp.org>
8412
8413         Tests for module 'iconv-h'.
8414         * modules/iconv-h-tests: New file.
8415         * tests/test-iconv-h.c: New file.
8416
8417         New module 'iconv-h'.
8418         * modules/iconv-h: New file.
8419         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
8420         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
8421         (configure.ac): Remove gl_ICONV_H.
8422         (Makefile.am): Remove rule for iconv.h.
8423
8424 2010-03-06  Bruno Haible  <bruno@clisp.org>
8425
8426         More consistent naming of *.m4 files.
8427         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
8428         * modules/wctype (Files): Update.
8429
8430         More consistent naming of *.m4 files.
8431         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
8432         * modules/wchar (Files): Update.
8433
8434 2010-03-06  Jim Meyering  <meyering@redhat.com>
8435
8436         euidaccess: relax license to LGPLv2+
8437         * modules/euidaccess (License): Relax to LGPLv2+.
8438
8439 2010-03-06  Bruno Haible  <bruno@clisp.org>
8440
8441         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
8442         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
8443         (Makefile.am): Augment lib_SOURCES instead.
8444
8445 2010-03-04  Jim Meyering  <meyering@redhat.com>
8446
8447         utime: remove obsolete module
8448         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
8449         unnecessary for years, and has been marked as obsolete for 10 months.
8450         * modules/utime: Remove file.
8451         * lib/utime.c: Remove file.
8452         * m4/utime.m4: Remove file.
8453         * m4/utimes-null.m4: Remove file.
8454         * doc/posix-functions/utime.texi (utime): Remove reference to
8455         the module.  Move the sole "fixed by gnulib" item into the
8456         "problems not fixed by Gnulib" list.
8457         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
8458
8459 2010-03-05  Simon Josefsson  <simon@josefsson.org>
8460
8461         * modules/exit (License): Relax license to LGPLv2+.
8462         (Status): Mark as obsolete.
8463         * NEWS: Mention deprecated 'exit' module.
8464         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
8465         of now obsolete 'exit'.
8466
8467 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8468
8469         fts-lgpl: remove unused module
8470         * modules/fts-lgpl: Remove.
8471         * MODULES.html.sh (func_all_modules): Adjust.
8472         * check-module (find_included_lib_files): Adjust.
8473         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
8474
8475 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
8476
8477         copy-acl: enhance Solaris ACL error handling
8478         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
8479         * lib/set-mode-acl.c (qset_acl): Likewise.
8480
8481 2010-03-02  Bruno Haible  <bruno@clisp.org>
8482
8483         spawn: Don't override the system defined values on FreeBSD 8.
8484         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
8485         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
8486         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
8487         if HAVE_POSIX_SPAWN is 1.
8488         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
8489
8490 2010-03-01  Bruno Haible  <bruno@clisp.org>
8491
8492         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
8493         regarding Automake.
8494
8495 2010-02-25  Bruno Haible  <bruno@clisp.org>
8496
8497         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
8498         * gnulib-tool: Define 'echo' as a function only before the ksh alias
8499         setting, not afterwards.
8500         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8501
8502 2010-02-24  Eric Blake  <eblake@redhat.com>
8503
8504         bootstrap, git-version-gen: use timestamp
8505         * build-aux/git-version-gen (scriptversion): Force UTC.
8506         * build-aux/bootstrap (scriptversion): New variable.
8507
8508         bootstrap: allow older git
8509         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
8510         older than 1.6.4.  Requested by the libvirt project.
8511
8512 2010-02-23  Eric Blake  <eblake@redhat.com>
8513
8514         warn-on-use: work with old autoconf
8515         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
8516         AS_VAR semantics of autoconf 2.60.
8517         Reported by Bruno Haible.
8518
8519         bootstrap: improve some comments
8520         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
8521         clarification comments.
8522
8523         gettimeofday: provide correct function
8524         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
8525         when replacement is declared, otherwise provide gettimeofday.
8526         Reported by Michael Goffioul.
8527
8528 2010-02-23  Jim Meyering  <meyering@redhat.com>
8529
8530         lib-ignore: relax license to "unlimited", not LGPLv2+
8531         * modules/lib-ignore (License): Relax to "unlimited".
8532
8533 2010-02-23  Jim Meyering  <meyering@redhat.com>
8534
8535         lib-ignore: relax license to LGPLv2+
8536         * modules/lib-ignore (License): Relax to LGPLv2+.
8537
8538 2010-02-22  Eric Blake  <eblake@redhat.com>
8539
8540         lseek: avoid bash 3.2 broken pipe bug
8541         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
8542         warning from bash 3.2.
8543         Reported by Ben Pfaff, with analysis from Bruno Haible.
8544
8545         bootstrap: support non-FSF copyright holder
8546         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
8547         bootstrap.conf override of COPYRIGHT_HOLDER.
8548         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
8549
8550         bootstrap: interoperate with gettext 0.14.1
8551         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
8552
8553         bootstrap: allow for alternate submodule location
8554         * build-aux/bootstrap (gnulib_path): New variable; use instead of
8555         hardcoding submodule location.
8556         (gnulib_mk): Allow direct use of Makefile.am.
8557
8558         bootstrap: use GNULIB_SRCDIR to reduce disk usage
8559         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
8560         rather than reconfiguring where the submodule points.
8561
8562         gettimeofday: restore support for platforms that lack function
8563         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
8564         replacement if function is missing.
8565         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
8566         * modules/sys_time (Makefile.am): Substitute it.
8567         * lib/sys_time.in.h (gettimeofday): Check it.
8568         Reported by Michael Goffioul.
8569
8570 2010-02-21  Bruno Haible  <bruno@clisp.org>
8571
8572         * lib/stdio.in.h (obstack_printf): Fix typo.
8573
8574 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
8575
8576         vc-list-files: use bzr ls's -R option
8577         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
8578         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
8579
8580 2010-02-21  Jim Meyering  <meyering@redhat.com>
8581
8582         init.sh: fix EXEEXT shims to work also for names like test-prog
8583         * tests/init.sh: Re-exec a better shell, when needed.
8584         If the current shell lacks support for posix $(...), an init.sh-using
8585         test will now try to find a shell that supports that.  If EXEEXT is
8586         nonempty, we also require support for hyphen-in-alias-name and shell
8587         substitutions like ${var#glob}.  Failure to find such a shell results
8588         in a skipped test.
8589
8590 2010-02-21  Bruno Haible  <bruno@clisp.org>
8591
8592         Really work around around "broken pipe" error message from bash 3.2.
8593         * gnulib-tool (func_reset_sigpipe): Remove function.
8594         (echo): In bash 3.2, define to a function that uses printf.
8595         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
8596
8597 2010-02-20  Bruno Haible  <bruno@clisp.org>
8598
8599         Restore support for automake 1.9.6 with autoconf 2.61.
8600         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
8601         Reported by James Youngman <jay@gnu.org>.
8602
8603 2010-02-20  Bruno Haible  <bruno@clisp.org>
8604
8605         Improve *printf warning condition.
8606         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
8607         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
8608         and the function is overridden due to SIGPIPE emulation.
8609
8610 2010-02-20  Bruno Haible  <bruno@clisp.org>
8611
8612         * lib/stdio.in.h: Tweak comments.
8613
8614 2010-02-19  Bruno Haible  <bruno@clisp.org>
8615
8616         Make it easier to find modules. New gnulib-tool option '--find'.
8617         * gnulib-tool: New option --find.
8618         (func_usage): Document it.
8619         (func_sanitize_modulelist): New function, extracted from
8620         func_all_modules.
8621         (func_all_modules): Invoke it.
8622         * doc/gnulib-tool.texi (Which modules?): New node.
8623
8624 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
8625
8626         * lib/sys_select.in.h: Provide select replacement even if
8627         sys/select.h exists on a system, for Interix.
8628
8629 2010-02-18  Jim Meyering  <meyering@redhat.com>
8630
8631         init.sh: don't use $(...) just yet
8632         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
8633         to accommodate e.g., Solaris' /bin/sh.
8634
8635 2010-02-17  Bruno Haible  <bruno@clisp.org>
8636
8637         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
8638         Reported by Ludovic Courtès <ludo@gnu.org>.
8639
8640 2010-02-16  Simon Josefsson  <simon@josefsson.org>
8641
8642         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
8643         linking with -lintl.
8644
8645 2010-02-17  Simon Josefsson  <simon@josefsson.org>
8646
8647         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
8648         if not provided by the system's netdb.h.  Reported by
8649         ludo@gnu.org (Ludovic Courtès).
8650
8651 2010-02-15  Jim Meyering  <meyering@redhat.com>
8652
8653         init.sh: improve portability and efficiency
8654         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
8655         "dummy" in a for loop.
8656         Use '!', not '^' to select the complement of a character set used
8657         in a "case" statement.
8658         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
8659         Suggestions from Eric Blake.
8660
8661         init.sh: automatically accommodate programs with the .exe suffix
8662         Automatically arrange for an invocation of "prog" to execute the
8663         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
8664         may use the simpler "prog", yet still work when built on a system
8665         that requires specifying the added suffix.
8666         Do this by constructing a function named "prog" that invokes
8667         "prog.exe" for each .exe file in selected directories.
8668         * tests/init.sh (find_exe_basenames_): New function.
8669         (create_exe_shim_functions_): New function.
8670         (path_prepend_): Use it.
8671
8672         maint.mk: mark syntax-check sc_*.m rules as .PHONY
8673         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
8674         "make -t syntax-check" doesn't create a ton of sc_*.m files.
8675
8676 2010-02-14  Jim Meyering  <meyering@redhat.com>
8677
8678         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
8679         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
8680         (sc_prohibit_hash_pjw_without_use): New rule.
8681
8682         maint.mk: allow the default upload destination dir to be overridden
8683         * top/maint.mk (upload_dest_dir_): Define with a default that
8684         preserves the status quo.
8685         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
8686         Reported by Peter Simons.
8687
8688         maint.mk: prohibit inclusion of "hash.h" without_use
8689         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
8690
8691 2010-02-10  Jim Meyering  <meyering@redhat.com>
8692
8693         maint.mk: prohibit inclusion of "ignore-value.h" without_use
8694         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
8695
8696 2010-02-09  Eric Blake  <ebb9@byu.net>
8697         and Bruno Haible  <bruno@clisp.org>
8698
8699         obstack-printf-posix: ensure declaration
8700         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
8701         extracted from gl_FUNC_OBSTACK_PRINTF.
8702         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
8703         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
8704         Likewise.
8705         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
8706         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
8707         0.
8708
8709 2010-02-08  Bruno Haible  <bruno@clisp.org>
8710
8711         gnulib-tool: Fix typo in 2010-02-07 commit.
8712         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
8713         Reported by Eric Blake.
8714
8715 2010-02-07  Bruno Haible  <bruno@clisp.org>
8716
8717         gnulib-tool: Fix up caching patches.
8718         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
8719         option --no-cache. Use associative arrays when supported by the shell.
8720         (sed_comments): New variable.
8721         (modcache): Renamed from do_cache.
8722         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
8723         abbreviate unnecessarily.
8724         (have_associative): New variable.
8725         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
8726         way also for ksh and zsh.
8727         (func_init_sed_convert_to_cache_statements): New function, extracted
8728         from func_cache_lookup_module. Add support for associative arrays.
8729         Don't set the c_MODULE_cached variable here. Ignore all lines before
8730         the first field header. Remove only the final newline, not all trailing
8731         newlines. Support empty fields correctly. Limit the use of 'eval' to
8732         assignments.
8733         (func_get_description, func_get_status, func_get_notice,
8734         func_get_applicability, func_get_filelist, func_get_dependencies,
8735         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
8736         func_get_automake_snippet, func_get_include_directive,
8737         func_get_link_directive, func_get_license, func_get_maintainer):
8738         Update documentation. List the unoptimized code first. Add support for
8739         associative arrays. Limit the use of 'eval' to assignments.
8740         (func_get_applicability): Undo stylistic pessimisations.
8741         (func_get_automake_snippet, func_get_include_directive): Reduce code
8742         duplication.
8743         (func_modules_transitive_closure, func_modules_add_dummy,
8744         func_modules_notice, func_modules_to_filelist, func_add_file,
8745         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
8746         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
8747         func_create_testdir, func_create_megatestdir): Update documentation.
8748
8749 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8750
8751         * gnulib-tool (func_cache_lookup_module): Store the module name
8752         belonging to the cache variable; error out if two different
8753         module names map to the same cache variable name.
8754
8755 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8756
8757         gnulib-tool: Make caching optional.
8758         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
8759         Update matching short versions of --no-changelog.
8760         (func_usage): Update.
8761         (sed_extract_cache_prog): Renamed from ...
8762         (sed_extract_prog): ... this; revert to old extraction script.
8763         (func_get_description, func_get_status)
8764         (func_get_notice, func_get_applicability, func_get_filelist)
8765         (func_get_dependencies, func_get_autoconf_early_snippet)
8766         (func_get_autoconf_snippet, func_get_automake_snippet)
8767         (func_get_include_directive, func_get_link_directive)
8768         (func_get_license, func_get_maintainer): If $do_cache is false,
8769         use old, non-caching extraction scripts.
8770         Suggestion by Bruno Haible.
8771
8772 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8773
8774         gnulib-tool: cache module metainformation.
8775         * gnulib-tool (sed_extract_prog): Match newline before each
8776         header, and rewrite header to a shell variable suffix.
8777         (func_cache_var, func_cache_lookup_module): New functions,
8778         to turn a module name into a cache variable prefix, and to
8779         look up and cache module metainformation.
8780         (func_get_description, func_get_status)
8781         (func_get_notice, func_get_applicability, func_get_filelist)
8782         (func_get_dependencies, func_get_autoconf_early_snippet)
8783         (func_get_autoconf_snippet, func_get_automake_snippet)
8784         (func_get_include_directive, func_get_link_directive)
8785         (func_get_license, func_get_maintainer): Use
8786         func_cache_lookup_module.
8787
8788 2010-02-07  Bruno Haible  <bruno@clisp.org>
8789
8790         fnctl: Fix missing dependency.
8791         * modules/fcntl (Depends-on): Add getdtablesize.
8792         Reported by John W. Eaton <jwe@gnu.org>.
8793
8794 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8795
8796         Argp: fix recognition of short alias options.
8797
8798         * lib/argp-parse.c (convert_options): Fix improper use of
8799         `|' between character values.
8800         * tests/test-argp.c (group1_option): New alias option
8801         --read (-r).
8802         (group1_parser): Special handling for 'r'.
8803         (test15): New test case.
8804         (test_fun): Add test15.
8805         * tests/test-argp-2.sh: Update expected --help and --usage
8806         outputs.
8807
8808 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8809
8810         * tests/test-argp.c: Fix indentation.
8811
8812 2010-02-04  Eric Blake  <ebb9@byu.net>
8813
8814         gettimeofday: expose type of second argument
8815         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
8816         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
8817         * tests/test-gettimeofday.c: Use it to silence warning.
8818         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
8819         the issue.
8820
8821 2010-02-03  Jim Meyering  <meyering@redhat.com>
8822
8823         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
8824         * lib/regcomp.c (TYPE_SIGNED): Define.
8825         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
8826
8827         regcomp.c: avoid a new -Wshadow warning
8828         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
8829
8830 2010-02-01  Jim Meyering  <meyering@redhat.com>
8831
8832         removing useless parentheses in cpp #define directives
8833         For motivation, see commit c0221df4, "define STREQ(a,b)
8834         consistently, removing useless parentheses"
8835         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
8836         * lib/mountlist.c (MNT_IGNORE): Likewise.
8837         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
8838
8839 2010-02-01  Eric Blake  <ebb9@byu.net>
8840
8841         sys_time: use link-warning
8842         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
8843         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
8844         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
8845         * modules/sys_time (Depends-on): Add warn-on-use.
8846         (Makefile.am): Always build replacement.
8847         (configure.ac): Update substitutions.
8848         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
8849         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
8850         bother with SYS_TIME_H.
8851         * modules/gettimeofday (configure.ac): Declare indicator.
8852         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
8853         in use.
8854
8855         closein-tests: silence compiler warning
8856         * tests/test-closein.c (main): Ignore fread result.
8857         * modules/closein-tests (Depends-on): Add ignore-value.
8858
8859         tests: silence warning about system return
8860         * tests/test-areadlink-with-size.c (main): Ignore system result.
8861         * tests/test-areadlink.c (main): Likewise.
8862         * tests/test-areadlinkat-with-size.c (main): Likewise.
8863         * tests/test-areadlinkat.c (main): Likewise.
8864         * tests/test-canonicalize-lgpl.c (main): Likewise.
8865         * tests/test-canonicalize.c (main): Likewise.
8866         * tests/test-chown.c (main): Likewise.
8867         * tests/test-fchownat.c (main): Likewise.
8868         * tests/test-fdutimensat.c (main): Likewise.
8869         * tests/test-fstatat.c (main): Likewise.
8870         * tests/test-futimens.c (main): Likewise.
8871         * tests/test-lchown.c (main): Likewise.
8872         * tests/test-link.c (main): Likewise.
8873         * tests/test-linkat.c (main): Likewise.
8874         * tests/test-lstat.c (main): Likewise.
8875         * tests/test-mkdir.c (main): Likewise.
8876         * tests/test-mkdirat.c (main): Likewise.
8877         * tests/test-mkfifo.c (main): Likewise.
8878         * tests/test-mkfifoat.c (main): Likewise.
8879         * tests/test-mknod.c (main): Likewise.
8880         * tests/test-readlink.c (main): Likewise.
8881         * tests/test-remove.c (main): Likewise.
8882         * tests/test-rename.c (main): Likewise.
8883         * tests/test-renameat.c (main): Likewise.
8884         * tests/test-rmdir.c (main): Likewise.
8885         * tests/test-symlink.c (main): Likewise.
8886         * tests/test-symlinkat.c (main): Likewise.
8887         * tests/test-unlink.c (main): Likewise.
8888         * tests/test-unlinkat.c (main): Likewise.
8889         * tests/test-utimens.c (main): Likewise.
8890         * tests/test-utimensat.c (main): Likewise.
8891         * modules/areadlink-tests (Depends-on): Add ignore-value.
8892         * modules/areadlink-with-size-tests (Depends-on): Likewise.
8893         * modules/areadlinkat-tests (Depends-on): Likewise.
8894         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
8895         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8896         * modules/canonicalize-tests (Depends-on): Likewise.
8897         * modules/chown-tests (Depends-on): Likewise.
8898         * modules/fdutimensat-tests (Depends-on): Likewise.
8899         * modules/futimens-tests (Depends-on): Likewise.
8900         * modules/lchown-tests (Depends-on): Likewise.
8901         * modules/link-tests (Depends-on): Likewise.
8902         * modules/linkat-tests (Depends-on): Likewise.
8903         * modules/lstat-tests (Depends-on): Likewise.
8904         * modules/mkdir-tests (Depends-on): Likewise.
8905         * modules/mkfifo-tests (Depends-on): Likewise.
8906         * modules/mkfifoat-tests (Depends-on): Likewise.
8907         * modules/mknod-tests (Depends-on): Likewise.
8908         * modules/openat-tests (Depends-on): Likewise.
8909         * modules/readlink-tests (Depends-on): Likewise.
8910         * modules/remove-tests (Depends-on): Likewise.
8911         * modules/rename-tests (Depends-on): Likewise.
8912         * modules/renameat-tests (Depends-on): Likewise.
8913         * modules/rmdir-tests (Depends-on): Likewise.
8914         * modules/symlink-tests (Depends-on): Likewise.
8915         * modules/symlinkat-tests (Depends-on): Likewise.
8916         * modules/unlink-tests (Depends-on): Likewise.
8917         * modules/utimens-tests (Depends-on): Likewise.
8918         * modules/utimensat-tests (Depends-on): Likewise.
8919
8920 2010-01-31  Bruno Haible  <bruno@clisp.org>
8921
8922         Perform the same test for many <math.h> functions.
8923         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
8924         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
8925         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
8926         of gl_MATHFUNC.
8927         * modules/acos (configure.ac): Likewise.
8928         * modules/asin (configure.ac): Likewise.
8929         * modules/atan (configure.ac): Likewise.
8930         * modules/atan2 (configure.ac): Likewise.
8931         * modules/cbrt (configure.ac): Likewise.
8932         * modules/copysign (configure.ac): Likewise.
8933         * modules/cos (configure.ac): Likewise.
8934         * modules/cosh (configure.ac): Likewise.
8935         * modules/erf (configure.ac): Likewise.
8936         * modules/erfc (configure.ac): Likewise.
8937         * modules/exp (configure.ac): Likewise.
8938         * modules/fmod (configure.ac): Likewise.
8939         * modules/hypot (configure.ac): Likewise.
8940         * modules/j0 (configure.ac): Likewise.
8941         * modules/j1 (configure.ac): Likewise.
8942         * modules/jn (configure.ac): Likewise.
8943         * modules/lgamma (configure.ac): Likewise.
8944         * modules/log (configure.ac): Likewise.
8945         * modules/log10 (configure.ac): Likewise.
8946         * modules/log1p (configure.ac): Likewise.
8947         * modules/pow (configure.ac): Likewise.
8948         * modules/remainder (configure.ac): Likewise.
8949         * modules/sin (configure.ac): Likewise.
8950         * modules/sinh (configure.ac): Likewise.
8951         * modules/tan (configure.ac): Likewise.
8952         * modules/tanh (configure.ac): Likewise.
8953         * modules/y0 (configure.ac): Likewise.
8954         * modules/y1 (configure.ac): Likewise.
8955         * modules/yn (configure.ac): Likewise.
8956         Suggested by Paolo Bonzini.
8957
8958 2010-01-31  Bruno Haible  <bruno@clisp.org>
8959
8960         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
8961
8962 2010-01-31  Bruno Haible  <bruno@clisp.org>
8963
8964         Work around getdelim() bug on FreeBSD 8.0.
8965         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
8966         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
8967         not work.
8968         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
8969         is 1.
8970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
8971         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
8972         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
8973         a non-zero size.
8974         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
8975
8976 2010-01-31  Bruno Haible  <bruno@clisp.org>
8977
8978         Work around getline() bug on FreeBSD 8.0.
8979         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
8980         and a non-zero size.
8981         * tests/test-getline.c (main): Likewise.
8982         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
8983         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
8984
8985 2010-01-28  Eric Blake  <ebb9@byu.net>
8986
8987         regex: fix build failure
8988         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
8989         platforms.
8990
8991 2010-01-28  Jim Meyering  <meyering@redhat.com>
8992
8993         regex: do not ignore memory allocation failure
8994         * lib/regex_internal.c (create_cd_newstate): Detect
8995         re_node_set_init_copy failure.   Extracted from glibc commit
8996         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8997
8998         regex: sync more white-space changes from libc
8999         * lib/regex_internal.c: White-space only changes.
9000         * lib/regexec.c: Likewise.
9001
9002         regex: add many uses of __attribute_warn_unused_result__
9003         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
9004         * lib/regexec.c: Likewise.
9005         Extracted from a messy glibc commit.
9006
9007         regcomp.c: spelling and merge-artifact from glibc
9008         * lib/regcomp.c: Merge remainder of glibc's
9009         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9010
9011         regcomp.c: sync white-space changes from glibc
9012         * lib/regcomp.c: Merge to accommodate white space
9013         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
9014
9015         regcomp.c: do not ignore internal return values
9016         * lib/regcomp.c: Do not ignore internal return values.
9017         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
9018         but without its white-space changes and spelling fixes.
9019
9020         regex_internal.h: define __attribute_warn_unused_result__
9021         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
9022
9023         maint: add a syntax-check rule to check for vulnerable Makefile.in
9024         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
9025
9026 2010-01-27  Jim Meyering  <meyering@redhat.com>
9027
9028         ncftpput-ftp: clean up spaces
9029         * build-aux/ncftpput-ftp: Make Copyright line consistent.
9030         Remove trailing blanks.
9031
9032 2010-01-27  Simon Josefsson  <simon@josefsson.org>
9033
9034         * build-aux/git-version-gen: Fix copyright statement.
9035         * build-aux/gnupload: Likewise.
9036         * tests/test-arcfour.c: Likewise.
9037         * tests/test-arctwo.c: Likewise.
9038         * tests/test-count-one-bits.c: Likewise.
9039         * tests/test-crc.c: Likewise.
9040         * tests/test-des.c: Likewise.
9041         * tests/test-gc-arcfour.c: Likewise.
9042         * tests/test-gc-arctwo.c: Likewise.
9043         * tests/test-gc-des.c: Likewise.
9044         * tests/test-gc-hmac-md5.c: Likewise.
9045         * tests/test-gc-hmac-sha1.c: Likewise.
9046         * tests/test-gc-md2.c: Likewise.
9047         * tests/test-gc-md4.c: Likewise.
9048         * tests/test-gc-md5.c: Likewise.
9049         * tests/test-gc-pbkdf2-sha1.c: Likewise.
9050         * tests/test-gc-rijndael.c: Likewise.
9051         * tests/test-gc-sha1.c: Likewise.
9052         * tests/test-gc.c: Likewise.
9053         * tests/test-gethostname.c: Likewise.
9054         * tests/test-gettimeofday.c: Likewise.
9055         * tests/test-hash.c: Likewise.
9056         * tests/test-hmac-md5.c: Likewise.
9057         * tests/test-hmac-sha1.c: Likewise.
9058         * tests/test-md2.c: Likewise.
9059         * tests/test-md4.c: Likewise.
9060         * tests/test-md5.c: Likewise.
9061         * tests/test-memchr.c: Likewise.
9062         * tests/test-memchr2.c: Likewise.
9063         * tests/test-memcmp.c: Likewise.
9064         * tests/test-memmem.c: Likewise.
9065         * tests/test-memrchr.c: Likewise.
9066         * tests/test-rawmemchr.c: Likewise.
9067         * tests/test-read-file.c: Likewise.
9068         * tests/test-rijndael.c: Likewise.
9069         * tests/test-sockets.c: Likewise.
9070         * tests/test-strchrnul.c: Likewise.
9071         * tests/test-strstr.c: Likewise.
9072         * tests/test-strtod.c: Likewise.
9073         * build-aux/ncftpput-ftp: Likewise.
9074
9075 2010-01-26  Eric Blake  <ebb9@byu.net>
9076
9077         ignore-value: update recommended header name
9078         * modules/ignore-value (Include): Only use <> for headers that
9079         exist in glibc.
9080
9081 2010-01-26  Jim Meyering  <meyering@redhat.com>
9082
9083         test-userspec.c: avoid compiler warnings
9084         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
9085         and "initialization discards qualifiers..." warnings.
9086         Put the first "uid" in its own scope, and make char* members "const".
9087
9088 2010-01-25  Bruno Haible  <bruno@clisp.org>
9089
9090         gnulib-tool: Make warning diagnostics consistent.
9091         * gnulib-tool (func_warning): New function.
9092         Use it everywhere where gnulib-tool produces output to stderr and it is
9093         not a fatal error.
9094
9095 2010-01-25  Bruno Haible  <bruno@clisp.org>
9096
9097         Fix test dependencies.
9098         * modules/xstrtol-tests (Depends-on): Add inttypes.
9099         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
9100
9101 2010-01-25 Pádraig Brady <P@draigBrady.com>
9102
9103         syntax-check: detect incorrect boolean macro values in config.h
9104         * modules/maintainer-makefile (configure.ac): Parameterize the location
9105         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
9106         The logic is from Eric Blake and the location indicated by Jim Meyering.
9107         Note the more natural CONFIG_HEADER name is prohibited by automake
9108         for backwards compatibility reasons.
9109         * top/maint.mk (sc_Wundef_boolean): New rule.
9110
9111 2010-01-25  Jim Meyering  <meyering@redhat.com>
9112
9113         bootstrap: detect MacOS 10.6's shasum, too
9114         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
9115         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
9116
9117 2010-01-23  Jim Meyering  <meyering@redhat.com>
9118
9119         xstrtoll: new module
9120         * modules/xstrtoll: New file.
9121         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
9122         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
9123         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
9124         ./configure fails if you use this module and lack "long long".
9125         * modules/xstrtoll-tests: New module.
9126         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
9127         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
9128         new init.sh-based test framework.
9129
9130 2010-01-24  Bruno Haible  <bruno@clisp.org>
9131
9132         Tests for module 'yn'.
9133         * modules/yn-tests: New file.
9134         * tests/test-yn.c: New file.
9135
9136         Tests for module 'y1'.
9137         * modules/y1-tests: New file.
9138         * tests/test-y1.c: New file.
9139
9140         Tests for module 'y0'.
9141         * modules/y0-tests: New file.
9142         * tests/test-y0.c: New file.
9143
9144         Tests for module 'tanh'.
9145         * modules/tanh-tests: New file.
9146         * tests/test-tanh.c: New file.
9147
9148         Tests for module 'tan'.
9149         * modules/tan-tests: New file.
9150         * tests/test-tan.c: New file.
9151
9152         Tests for module 'sqrt'.
9153         * modules/sqrt-tests: New file.
9154         * tests/test-sqrt.c: New file.
9155
9156         Tests for module 'sinh'.
9157         * modules/sinh-tests: New file.
9158         * tests/test-sinh.c: New file.
9159
9160         Tests for module 'sin'.
9161         * modules/sin-tests: New file.
9162         * tests/test-sin.c: New file.
9163
9164         Tests for module 'rint'.
9165         * modules/rint-tests: New file.
9166         * tests/test-rint.c: New file.
9167
9168         Tests for module 'remainder'.
9169         * modules/remainder-tests: New file.
9170         * tests/test-remainder.c: New file.
9171
9172         Tests for module 'pow'.
9173         * modules/pow-tests: New file.
9174         * tests/test-pow.c: New file.
9175
9176         Tests for module 'nextafter'.
9177         * modules/nextafter-tests: New file.
9178         * tests/test-nextafter.c: New file.
9179
9180         Tests for module 'modf'.
9181         * modules/modf-tests: New file.
9182         * tests/test-modf.c: New file.
9183
9184         Tests for module 'logb'.
9185         * modules/logb-tests: New file.
9186         * tests/test-logb.c: New file.
9187
9188         Tests for module 'log1p'.
9189         * modules/log1p-tests: New file.
9190         * tests/test-log1p.c: New file.
9191
9192         Tests for module 'log10'.
9193         * modules/log10-tests: New file.
9194         * tests/test-log10.c: New file.
9195
9196         Tests for module 'log'.
9197         * modules/log-tests: New file.
9198         * tests/test-log.c: New file.
9199
9200         Tests for module 'lgamma'.
9201         * modules/lgamma-tests: New file.
9202         * tests/test-lgamma.c: New file.
9203
9204         Tests for module 'ldexp'.
9205         * modules/ldexp-tests: New file.
9206         * tests/test-ldexp.c: New file.
9207
9208         Tests for module 'jn'.
9209         * modules/jn-tests: New file.
9210         * tests/test-jn.c: New file.
9211
9212         Tests for module 'j1'.
9213         * modules/j1-tests: New file.
9214         * tests/test-j1.c: New file.
9215
9216         Tests for module 'j0'.
9217         * modules/j0-tests: New file.
9218         * tests/test-j0.c: New file.
9219
9220         Tests for module 'hypot'.
9221         * modules/hypot-tests: New file.
9222         * tests/test-hypot.c: New file.
9223
9224         Tests for module 'fmod'.
9225         * modules/fmod-tests: New file.
9226         * tests/test-fmod.c: New file.
9227
9228         Tests for module 'fabs'.
9229         * modules/fabs-tests: New file.
9230         * tests/test-fabs.c: New file.
9231
9232         Tests for module 'exp'.
9233         * modules/exp-tests: New file.
9234         * tests/test-exp.c: New file.
9235
9236         Tests for module 'erfc'.
9237         * modules/erfc-tests: New file.
9238         * tests/test-erfc.c: New file.
9239
9240         Tests for module 'erf'.
9241         * modules/erf-tests: New file.
9242         * tests/test-erf.c: New file.
9243
9244         Tests for module 'cosh'.
9245         * modules/cosh-tests: New file.
9246         * tests/test-cosh.c: New file.
9247
9248         Tests for module 'cos'.
9249         * modules/cos-tests: New file.
9250         * tests/test-cos.c: New file.
9251
9252         Tests for module 'copysign'.
9253         * modules/copysign-tests: New file.
9254         * tests/test-copysign.c: New file.
9255
9256         Tests for module 'cbrt'.
9257         * modules/cbrt-tests: New file.
9258         * tests/test-cbrt.c: New file.
9259
9260         Tests for module 'atan2'.
9261         * modules/atan2-tests: New file.
9262         * tests/test-atan2.c: New file.
9263
9264         Tests for module 'atan'.
9265         * modules/atan-tests: New file.
9266         * tests/test-atan.c: New file.
9267
9268         Tests for module 'asin'.
9269         * modules/asin-tests: New file.
9270         * tests/test-asin.c: New file.
9271
9272         Tests for module 'acos'.
9273         * modules/acos-tests: New file.
9274         * tests/test-acos.c: New file.
9275
9276 2010-01-24  Bruno Haible  <bruno@clisp.org>
9277
9278         Fix tests for common <math.h> functions.
9279         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
9280         code snippet that references the function pointer, rather than merely
9281         calling the function. Substitute the FUNC_LIBM variable.
9282         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
9283         * modules/acos (configure.ac): Likewise.
9284         * modules/asin (configure.ac): Likewise.
9285         * modules/atan (configure.ac): Likewise.
9286         * modules/atan2 (configure.ac): Likewise.
9287         * modules/cbrt (configure.ac): Likewise.
9288         * modules/copysign (configure.ac): Likewise.
9289         * modules/cos (configure.ac): Likewise.
9290         * modules/cosh (configure.ac): Likewise.
9291         * modules/erf (configure.ac): Likewise.
9292         * modules/erfc (configure.ac): Likewise.
9293         * modules/exp (configure.ac): Likewise.
9294         * modules/fabs (configure.ac): Likewise.
9295         * modules/fmod (configure.ac): Likewise.
9296         * modules/hypot (configure.ac): Likewise.
9297         * modules/j0 (configure.ac): Likewise.
9298         * modules/j1 (configure.ac): Likewise.
9299         * modules/jn (configure.ac): Likewise.
9300         * modules/ldexp (configure.ac): Likewise.
9301         * modules/lgamma (configure.ac): Likewise.
9302         * modules/log (configure.ac): Likewise.
9303         * modules/log10 (configure.ac): Likewise.
9304         * modules/log1p (configure.ac): Likewise.
9305         * modules/logb (configure.ac): Likewise.
9306         * modules/modf (configure.ac): Likewise.
9307         * modules/nextafter (configure.ac): Likewise.
9308         * modules/pow (configure.ac): Likewise.
9309         * modules/remainder (configure.ac): Likewise.
9310         * modules/rint (configure.ac): Likewise.
9311         * modules/sin (configure.ac): Likewise.
9312         * modules/sinh (configure.ac): Likewise.
9313         * modules/tan (configure.ac): Likewise.
9314         * modules/tanh (configure.ac): Likewise.
9315         * modules/y0 (configure.ac): Likewise.
9316         * modules/y1 (configure.ac): Likewise.
9317         * modules/yn (configure.ac): Likewise.
9318
9319 2010-01-24  Bruno Haible  <bruno@clisp.org>
9320
9321         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
9322         * tests/test-acosl.c (x): New variable.
9323         (main): Store argument in x and fetch it from x.
9324         * tests/test-asinl.c (x): New variable.
9325         (main): Store argument in x and fetch it from x.
9326         * tests/test-atanl.c (x): New variable.
9327         (main): Store argument in x and fetch it from x.
9328         * tests/test-cosl.c (x): New variable.
9329         (main): Store argument in x and fetch it from x.
9330         * tests/test-expl.c (x): New variable.
9331         (main): Store argument in x and fetch it from x.
9332         * tests/test-logl.c (x): New variable.
9333         (main): Store argument in x and fetch it from x.
9334         * tests/test-sinl.c (x): New variable.
9335         (main): Store argument in x and fetch it from x.
9336         * tests/test-sqrtl.c (x): New variable.
9337         (main): Store argument in x and fetch it from x.
9338         * tests/test-tanl.c (x): New variable.
9339         (main): Store argument in x and fetch it from x.
9340
9341 2010-01-24  Bruno Haible  <bruno@clisp.org>
9342
9343         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
9344         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
9345         assignments to the initial TESTS_ENVIRONMENT.
9346         * doc/gnulib.texi (Unit test modules): Document it.
9347         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
9348         TESTS_ENVIRONMENT.
9349         * modules/btowc-tests (Makefile.am): Likewise.
9350         * modules/c-stack-tests (Makefile.am): Likewise.
9351         * modules/c-strcase-tests (Makefile.am): Likewise.
9352         * modules/copy-file-tests (Makefile.am): Likewise.
9353         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9354         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9355         * modules/mbrtowc-tests (Makefile.am): Likewise.
9356         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9357         * modules/mbscasestr-tests (Makefile.am): Likewise.
9358         * modules/mbschr-tests (Makefile.am): Likewise.
9359         * modules/mbscspn-tests (Makefile.am): Likewise.
9360         * modules/mbsinit-tests (Makefile.am): Likewise.
9361         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9362         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9363         * modules/mbspbrk-tests (Makefile.am): Likewise.
9364         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9365         * modules/mbsrchr-tests (Makefile.am): Likewise.
9366         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9367         * modules/mbsspn-tests (Makefile.am): Likewise.
9368         * modules/mbsstr-tests (Makefile.am): Likewise.
9369         * modules/nl_langinfo-tests (Makefile.am): Likewise.
9370         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
9371         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
9372         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
9373         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
9374         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9375         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
9376         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
9377         * modules/wcrtomb-tests (Makefile.am): Likewise.
9378         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
9379         * modules/wcsrtombs-tests (Makefile.am): Likewise.
9380         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
9381         assignments from TESTS_ENVIRONMENT.
9382         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
9383         augmentation.
9384         * modules/argp-version-etc-tests (Makefile.am): Likewise.
9385         * modules/atexit-tests (Makefile.am): Likewise.
9386         * modules/binary-io-tests (Makefile.am): Likewise.
9387         * modules/closein-tests (Makefile.am): Likewise.
9388         * modules/dprintf-posix-tests (Makefile.am): Likewise.
9389         * modules/exclude-tests (Makefile.am): Likewise.
9390         * modules/fflush-tests (Makefile.am): Likewise.
9391         * modules/fpending-tests (Makefile.am): Likewise.
9392         * modules/fprintf-posix-tests (Makefile.am): Likewise.
9393         * modules/freadahead-tests (Makefile.am): Likewise.
9394         * modules/freadptr-tests (Makefile.am): Likewise.
9395         * modules/freadseek-tests (Makefile.am): Likewise.
9396         * modules/fseek-tests (Makefile.am): Likewise.
9397         * modules/fseeko-tests (Makefile.am): Likewise.
9398         * modules/ftell-tests (Makefile.am): Likewise.
9399         * modules/ftello-tests (Makefile.am): Likewise.
9400         * modules/idpriv-drop-tests (Makefile.am): Likewise.
9401         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
9402         * modules/lseek-tests (Makefile.am): Likewise.
9403         * modules/parse-duration-tests (Makefile.am): Likewise.
9404         * modules/perror-tests (Makefile.am): Likewise.
9405         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
9406         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
9407         * modules/pipe-tests (Makefile.am): Likewise.
9408         * modules/pread-tests (Makefile.am): Likewise.
9409         * modules/printf-posix-tests (Makefile.am): Likewise.
9410         * modules/select-tests (Makefile.am): Likewise.
9411         * modules/sigpipe-tests (Makefile.am): Likewise.
9412         * modules/tsearch-tests (Makefile.am): Likewise.
9413         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
9414         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
9415         * modules/uniname/uniname-tests (Makefile.am): Likewise.
9416         * modules/uniwidth/width-tests (Makefile.am): Likewise.
9417         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
9418         * modules/version-etc-tests (Makefile.am): Likewise.
9419         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
9420         * modules/vprintf-posix-tests (Makefile.am): Likewise.
9421         * modules/xalloc-die-tests (Makefile.am): Likewise.
9422         * modules/xprintf-posix-tests (Makefile.am): Likewise.
9423         * modules/xstrtoimax-tests (Makefile.am): Likewise.
9424         * modules/xstrtol-tests (Makefile.am): Likewise.
9425         * modules/xstrtoumax-tests (Makefile.am): Likewise.
9426         * modules/yesno-tests (Makefile.am): Likewise.
9427         Suggested by Jim Meyering.
9428
9429 2010-01-24  Bruno Haible  <bruno@clisp.org>
9430
9431         More documentation.
9432         * doc/gnulib.texi (Writing modules): New chapter.
9433         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
9434         the new chapter.
9435
9436 2010-01-24  Jim Meyering  <meyering@redhat.com>
9437
9438         maint.mk: do not prepend "./" after filtering
9439         * top/maint.mk (_prepend_srcdir_prefix): New variable
9440         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
9441         "./" when $(srcdir) is ".".
9442
9443         define STREQ(a,b) consistently, removing useless parentheses
9444         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
9445         since the only risk is that "a" or "b" contains an unparenthesized
9446         comma, but if either did that, STREQ would have 3 or more arguments.
9447         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
9448         * lib/fts.c (STREQ): Remove unnecessary parentheses.
9449         * lib/hash-triple.c (STREQ): Likewise.
9450         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
9451         * lib/getugroups.c (STREQ): Likewise.
9452
9453 2010-01-23  Jim Meyering  <meyering@redhat.com>
9454
9455         maint.mk: fix syntax-check in a non-srcdir build directory
9456         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
9457         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
9458
9459 2010-01-22  Jim Meyering  <meyering@redhat.com>
9460
9461         userspec: add unit tests
9462         * tests/test-userspec.c: New file.
9463         * modules/userspec-tests: Likewise.
9464
9465 2010-01-21  Jim Meyering  <meyering@redhat.com>
9466
9467         maint.mk: handle source file names containing "." robustly
9468         * top/maint.mk (_dot_escaped_srcdir): Define.
9469         (VC_LIST): Use it in LHS of sed substitution.
9470
9471 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
9472
9473         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
9474         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
9475         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
9476         from a non-srcdir build.
9477
9478 2010-01-20  Eric Blake  <ebb9@byu.net>
9479
9480         warn-on-use: use instead of link-warning
9481         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
9482         * modules/unistd (Depends-on, Makefile.am): Likewise.
9483         * modules/arpa_inet (Depends-on): Replace link-warning with
9484         warn-on-use.
9485         (Makefile.am): Update rules accordingly.
9486         * modules/ctype (Depends-on, Makefile.am): Likewise.
9487         * modules/dirent (Depends-on, Makefile.am): Likewise.
9488         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
9489         * modules/inttypes (Depends-on, Makefile.am): Likewise.
9490         * modules/langinfo (Depends-on, Makefile.am): Likewise.
9491         * modules/locale (Depends-on, Makefile.am): Likewise.
9492         * modules/math (Depends-on, Makefile.am): Likewise.
9493         * modules/search (Depends-on, Makefile.am): Likewise.
9494         * modules/signal (Depends-on, Makefile.am): Likewise.
9495         * modules/spawn (Depends-on, Makefile.am): Likewise.
9496         * modules/stdlib (Depends-on, Makefile.am): Likewise.
9497         * modules/string (Depends-on, Makefile.am): Likewise.
9498         * modules/strings (Depends-on, Makefile.am): Likewise.
9499         * modules/sys_file (Depends-on, Makefile.am): Likewise.
9500         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
9501         * modules/sys_select (Depends-on, Makefile.am): Likewise.
9502         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
9503         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
9504         * modules/sys_times (Depends-on, Makefile.am): Likewise.
9505         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9506         * modules/wchar (Depends-on, Makefile.am): Likewise.
9507         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
9508         should be poisoned.
9509         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
9510         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
9511         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
9512         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9513         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9514         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
9515         * m4/math_h.m4 (gl_MATH_H): Likewise.
9516         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9517         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9518         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9519         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9520         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
9521         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
9522         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9523         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
9524         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9525         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9526         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9527         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9528         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9529         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9530         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9531         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
9532         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
9533         GL_LINK_WARNING.
9534         * lib/ctype.in.h: Likewise.
9535         * lib/dirent.in.h: Likewise.
9536         * lib/fcntl.in.h: Likewise.
9537         * lib/inttypes.in.h: Likewise.
9538         * lib/langinfo.in.h: Likewise.
9539         * lib/locale.in.h: Likewise.
9540         * lib/math.in.h: Likewise.
9541         * lib/search.in.h: Likewise.
9542         * lib/signal.in.h: Likewise.
9543         * lib/spawn.in.h: Likewise.
9544         * lib/stdio.in.h: Likewise.
9545         * lib/stdlib.in.h: Likewise.
9546         * lib/string.in.h: Likewise.
9547         * lib/strings.in.h: Likewise.
9548         * lib/sys_file.in.h: Likewise.
9549         * lib/sys_ioctl.in.h: Likewise.
9550         * lib/sys_select.in.h: Likewise.
9551         * lib/sys_socket.in.h: Likewise.
9552         * lib/sys_stat.in.h: Likewise.
9553         * lib/sys_times.in.h: Likewise.
9554         * lib/sys_utsname.in.h: Likewise.
9555         * lib/unistd.in.h: Likewise.
9556         * lib/wchar.in.h: Likewise.
9557
9558 2010-01-20  Bruno Haible  <bruno@clisp.org>
9559
9560         Avoid duplicate -lm.
9561         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
9562         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
9563         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
9564         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
9565         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
9566         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
9567         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
9568         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
9569         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
9570         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
9571         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
9572         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9573         Reported by Paolo Bonzini.
9574
9575 2010-01-19  Bruno Haible  <bruno@clisp.org>
9576
9577         langinfo, nl_langinfo: Relicense under LGPLv2+.
9578         * modules/langinfo (License): Change to LGPLv2+.
9579         * modules/nl_langinfo (License): Likewise.
9580         Patch by David Lutterkort <lutter@redhat.com>.
9581
9582 2010-01-19  Bruno Haible  <bruno@clisp.org>
9583
9584         Avoid compilation error with cc on OSF/1 5.1.
9585         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
9586         statement, not before.
9587         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9588
9589 2010-01-18  Bruno Haible  <bruno@clisp.org>
9590
9591         Avoid a link error due to the __printf__ symbol.
9592         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
9593         and 2.6.x.
9594         (__format__, __printf__): Remove definitions.
9595         * lib/argp-fmtstream.h: Likewise.
9596         * lib/argp.h: Likewise.
9597         * lib/error.h: Likewise.
9598         * lib/vasnprintf.h: Likewise.
9599         * lib/xprintf.h: Likewise.
9600         * lib/xvasprintf.h: Likewise.
9601         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9602
9603 2010-01-18  Bruno Haible  <bruno@clisp.org>
9604
9605         Tests for module 'tanl'.
9606         * modules/tanl-tests: New file.
9607         * tests/test-tanl.c: New file.
9608
9609         Tests for module 'sqrtl'.
9610         * modules/sqrtl-tests: New file.
9611         * tests/test-sqrtl.c: New file.
9612
9613         Tests for module 'sinl'.
9614         * modules/sinl-tests: New file.
9615         * tests/test-sinl.c: New file.
9616
9617         Tests for module 'logl'.
9618         * modules/logl-tests: New file.
9619         * tests/test-logl.c: New file.
9620
9621         Tests for module 'expl'.
9622         * modules/expl-tests: New file.
9623         * tests/test-expl.c: New file.
9624
9625         Tests for module 'cosl'.
9626         * modules/cosl-tests: New file.
9627         * tests/test-cosl.c: New file.
9628
9629         Tests for module 'atanl'.
9630         * modules/atanl-tests: New file.
9631         * tests/test-atanl.c: New file.
9632
9633         Tests for module 'asinl'.
9634         * modules/asinl-tests: New file.
9635         * tests/test-asinl.c: New file.
9636
9637         Tests for module 'acosl'.
9638         * modules/acosl-tests: New file.
9639         * tests/test-acosl.c: New file.
9640
9641         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9642         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
9643         tanl): Use the standard gnulib idiom.
9644         * lib/cosl.c: Don't include trigl.c and sincosl.c.
9645         * lib/sinl.c: Likewise.
9646         * lib/tanl.c: Don't include trigl.c.
9647         (kernel_tanl): Make static.
9648         * lib/sincosl.c: Include trigl.h first.
9649         * lib/trigl.c: Likewise.
9650         * m4/acosl.m4: New file.
9651         * m4/asinl.m4: New file.
9652         * m4/atanl.m4: New file.
9653         * m4/cosl.m4: New file.
9654         * m4/expl.m4: New file.
9655         * m4/logl.m4: New file.
9656         * m4/sinl.m4: New file.
9657         * m4/sqrtl.m4: New file.
9658         * m4/tanl.m4: New file.
9659         * m4/mathl.m4: Remove file.
9660         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
9661         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
9662         Don't initialize GNULIB_MATHL.
9663         * modules/acosl: New file.
9664         * modules/asinl: New file.
9665         * modules/atanl: New file.
9666         * modules/cosl: New file.
9667         * modules/expl: New file.
9668         * modules/logl: New file.
9669         * modules/sinl: New file.
9670         * modules/sqrtl: New file.
9671         * modules/tanl: New file.
9672         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
9673         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
9674         substitute GNULIB_MATHL.
9675         * modules/mathl: Rewritten.
9676         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
9677         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
9678         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
9679         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
9680         * doc/posix-functions/expl.texi: Mention the 'expl' module.
9681         * doc/posix-functions/logl.texi: Mention the 'logl' module.
9682         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
9683         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
9684         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
9685
9686 2010-01-18  Bruno Haible  <bruno@clisp.org>
9687
9688         sqrt: Make gl_FUNC_SQRT requirable.
9689         * m4/sqrt.m4: New file.
9690         * modules/sqrt (Files): Add it.
9691         (configure.ac): Invoke gl_FUNC_SQRT.
9692
9693 2010-01-18  Bruno Haible  <bruno@clisp.org>
9694
9695         New modules for common <math.h> functions.
9696         * m4/mathfunc.m4: New file.
9697         * modules/acos: New file.
9698         * modules/asin: New file.
9699         * modules/atan: New file.
9700         * modules/atan2: New file.
9701         * modules/cbrt: New file.
9702         * modules/copysign: New file.
9703         * modules/cos: New file.
9704         * modules/cosh: New file.
9705         * modules/erf: New file.
9706         * modules/erfc: New file.
9707         * modules/exp: New file.
9708         * modules/fabs: New file.
9709         * modules/fmod: New file.
9710         * modules/hypot: New file.
9711         * modules/j0: New file.
9712         * modules/j1: New file.
9713         * modules/jn: New file.
9714         * modules/ldexp: New file.
9715         * modules/lgamma: New file.
9716         * modules/log: New file.
9717         * modules/log10: New file.
9718         * modules/log1p: New file.
9719         * modules/logb: New file.
9720         * modules/modf: New file.
9721         * modules/nextafter: New file.
9722         * modules/pow: New file.
9723         * modules/remainder: New file.
9724         * modules/rint: New file.
9725         * modules/sin: New file.
9726         * modules/sinh: New file.
9727         * modules/sqrt: New file.
9728         * modules/tan: New file.
9729         * modules/tanh: New file.
9730         * modules/y0: New file.
9731         * modules/y1: New file.
9732         * modules/yn: New file.
9733         * doc/posix-functions/acos.texi: Mention the 'acos' module.
9734         * doc/posix-functions/asin.texi: Mention the 'asin' module.
9735         * doc/posix-functions/atan.texi: Mention the 'atan' module.
9736         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
9737         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
9738         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
9739         * doc/posix-functions/cos.texi: Mention the 'cos' module.
9740         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
9741         * doc/posix-functions/erf.texi: Mention the 'erf' module.
9742         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
9743         * doc/posix-functions/exp.texi: Mention the 'exp' module.
9744         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
9745         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
9746         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
9747         * doc/posix-functions/j0.texi: Mention the 'j0' module.
9748         * doc/posix-functions/j1.texi: Mention the 'j1' module.
9749         * doc/posix-functions/jn.texi: Mention the 'jn' module.
9750         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
9751         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
9752         * doc/posix-functions/log.texi: Mention the 'log' module.
9753         * doc/posix-functions/log10.texi: Mention the 'log10' module.
9754         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
9755         * doc/posix-functions/logb.texi: Mention the 'logb' module.
9756         * doc/posix-functions/modf.texi: Mention the 'modf' module.
9757         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
9758         * doc/posix-functions/pow.texi: Mention the 'pow' module.
9759         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
9760         * doc/posix-functions/rint.texi: Mention the 'rint' module.
9761         * doc/posix-functions/sin.texi: Mention the 'sin' module.
9762         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
9763         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
9764         * doc/posix-functions/tan.texi: Mention the 'tan' module.
9765         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
9766         * doc/posix-functions/y0.texi: Mention the 'y0' module.
9767         * doc/posix-functions/y1.texi: Mention the 'y1' module.
9768         * doc/posix-functions/yn.texi: Mention the 'yn' module.
9769
9770 2010-01-18  Jim Meyering  <meyering@redhat.com>
9771
9772         ignore-value: relax license to LGPLv2+
9773         * modules/ignore-value (License): Relax to LGPLv2+.
9774
9775         getdate: don't leak when TZ contains two or more '"'s
9776         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
9777         double quote in TZ after the first one.
9778
9779         readtokens: do not leak internal token_lengths buffer
9780         * lib/readtokens.c (readtokens): Free the local, lengths,
9781         when the supplied "token_lengths" parameter is NULL.
9782
9783 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9784
9785         Fix a couple of missing LIBTHREAD link failures on AIX.
9786         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
9787         $(LIBTHREAD).
9788         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
9789
9790         Link test-poll against INET_PTON_LIB.
9791         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
9792         for inet_pton on Solaris 10.
9793
9794 2010-01-17  Bruno Haible  <bruno@clisp.org>
9795
9796         unistdio/*-sprintf: Fix typo in module description.
9797         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
9798         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
9799         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
9800         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
9801         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
9802         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
9803         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
9804         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9805
9806 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9807
9808         gnulib-tool: fix filelist for AIX, HP-UX ksh.
9809         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
9810         variables in shell case patterns, for AIX and HP-UX ksh.
9811
9812         Split large sed scripts, for HP-UX sed.
9813         * modules/stdio: Split sed scripts around 50 sed commands,
9814         to avoid HP-UX limit of 99 commands, in the near future.
9815         * modules/string: Likewise.
9816         * modules/unistd: Likewise.
9817
9818         gnulib-tool: avoid writing in the current directory.
9819         * gnulib-tool (func_emit_lib_Makefile_am)
9820         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
9821         not in the current directory, so concurrent gnulib-tool
9822         instances do not interfere.
9823
9824 2010-01-16  Jim Meyering  <meyering@redhat.com>
9825
9826         doc: update users.txt
9827         * users.txt: Add grep.
9828         (diffutils, gzip): Update URLs.
9829
9830 2010-01-12  Bruno Haible  <bruno@clisp.org>
9831
9832         posix_spawn: Avoid test failure on Cygwin.
9833         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
9834         characters.
9835         Reported by Simon Josefsson.
9836
9837 2010-01-12  Bruno Haible  <bruno@clisp.org>
9838
9839         * tests/test-cond.c (main): When skipping the test, show the reason.
9840
9841 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9842
9843         * lib/striconv.c (str_cd_iconv): Avoid if before free.
9844
9845 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9846
9847         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
9848         VC_LIST_ALWAYS_EXCLUDE_REGEX.
9849
9850 2010-01-12  Eric Blake  <ebb9@byu.net>
9851
9852         build: guarantee AS_VAR_IF
9853         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
9854         (gl_AS_VAR_IF): Move...
9855         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
9856         Reported by Simon Josefsson.
9857
9858 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9859
9860         * lib/stdio.in.h: Fix typo.
9861
9862 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9863
9864         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
9865         libgpg-error.
9866
9867 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9868
9869         * tests/test-xalloc-die.sh: Use $EXEEXT.
9870
9871 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9872             Bruno Haible  <bruno@clisp.org>
9873
9874         getlogin, getlogin_r: Avoid test failure.
9875         * tests/test-getlogin.c: Include <stdio.h>.
9876         (main): Skip the test when the function fails because stdin is not a
9877         tty.
9878         * tests/test-getlogin_r.c: Include <stdio.h>.
9879         (main): Skip the test when the function fails because stdin is not a
9880         tty.
9881
9882 2010-01-11  Eric Blake  <ebb9@byu.net>
9883
9884         tests: avoid more large file warnings
9885         * tests/test-fflush.c: Avoid warning about ftell use.
9886         * tests/test-fseek.c: Avoid warning about fseek use.
9887
9888 2010-01-10  Bruno Haible  <bruno@clisp.org>
9889
9890         nproc: Work better on Linux when /proc and /sys are not mounted.
9891         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
9892         as lower bound when, on glibc/Linux systems,
9893         sysconf (_SC_NPROCESSORS_CONF) returns 1.
9894         Suggested by Pádraig Brady <P@draigbrady.com>.
9895         Reported by Dmitry V. Levin <ldv@altlinux.org>.
9896
9897         nproc: Refactor.
9898         * lib/nproc.c (num_processors_via_affinity_mask): New function,
9899         extracted from num_processors.
9900         (num_processors): Call it.
9901
9902 2010-01-11  Jim Meyering  <meyering@redhat.com>
9903
9904         utimecmp: avoid new warning from upcoming gcc-4.5.0
9905         * lib/utimecmp.c (BILLION): Define using #define rather than an
9906         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
9907
9908 2010-01-11  Eric Blake  <ebb9@byu.net>
9909
9910         math: add portability warnings for classification macros
9911         * modules/math (Depends-on): Add warn-on-use.
9912         (Makefile.am): Provide new substitutions.
9913         * m4/math_h.m4 (gl_MATH_H): Require inline.
9914         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
9915         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
9916         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
9917         implement warnings.
9918
9919         unistd: warn on use of environ without module
9920         * modules/unistd (Depends-on): Add warn-on-use.
9921         (Makefile.am): Provide new substitutions.
9922         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
9923         * lib/unistd.in.h (environ): Wrap with a warning helper function.
9924
9925         stdio: warn on suspicious uses
9926         * modules/stdio (Depends-on): Add warn-on-use.
9927         (Makefile.am): Provide new substitutions.
9928         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
9929         fseeko.
9930         * lib/stdio.in.h (gets): Always warn on use.
9931         (fseek, ftell): Adjust when warnings are issued, and honor
9932         _GL_NO_LARGE_FILES as a way to silence the warning.
9933         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
9934         any warning about large file offsets.
9935         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
9936         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
9937         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
9938         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
9939         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
9940         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
9941         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
9942         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
9943
9944         warn-on-use: new module
9945         * modules/warn-on-use: New file.
9946         * build-aux/warn-on-use.h: Likewise.
9947         * m4/warn-on-use.m4: Likewise.
9948         * MODULES.html.sh (Support for building): Mention it.
9949
9950 2010-01-10  Bruno Haible  <bruno@clisp.org>
9951
9952         Tests for module 'unistr/u32-strdup'.
9953         * modules/unistr/u32-strdup-tests: New file.
9954         * tests/unistr/test-u32-strdup.c: New file.
9955
9956         Tests for module 'unistr/u16-strdup'.
9957         * modules/unistr/u16-strdup-tests: New file.
9958         * tests/unistr/test-u16-strdup.c: New file.
9959
9960         Tests for module 'unistr/u8-strdup'.
9961         * modules/unistr/u8-strdup-tests: New file.
9962         * tests/unistr/test-u8-strdup.c: New file.
9963         * tests/unistr/test-strdup.h: New file.
9964
9965         Tests for module 'unistr/u32-strncmp'.
9966         * modules/unistr/u32-strncmp-tests: New file.
9967         * tests/unistr/test-u32-strncmp.c: New file.
9968
9969         Tests for module 'unistr/u16-strncmp'.
9970         * modules/unistr/u16-strncmp-tests: New file.
9971         * tests/unistr/test-u16-strncmp.c: New file.
9972
9973         Tests for module 'unistr/u8-strncmp'.
9974         * modules/unistr/u8-strncmp-tests: New file.
9975         * tests/unistr/test-u8-strncmp.c: New file.
9976         * tests/unistr/test-strncmp.h: New file.
9977
9978         Tests for module 'unistr/u32-strcoll'.
9979         * modules/unistr/u32-strcoll-tests: New file.
9980         * tests/unistr/test-u32-strcoll.c: New file.
9981
9982         Tests for module 'unistr/u16-strcoll'.
9983         * modules/unistr/u16-strcoll-tests: New file.
9984         * tests/unistr/test-u16-strcoll.c: New file.
9985
9986         Tests for module 'unistr/u8-strcoll'.
9987         * modules/unistr/u8-strcoll-tests: New file.
9988         * tests/unistr/test-u8-strcoll.c: New file.
9989
9990         Tests for module 'unistr/u32-strcmp'.
9991         * modules/unistr/u32-strcmp-tests: New file.
9992         * tests/unistr/test-u32-strcmp.c: New file.
9993         * tests/unistr/test-u32-strcmp.h: New file.
9994
9995         Tests for module 'unistr/u16-strcmp'.
9996         * modules/unistr/u16-strcmp-tests: New file.
9997         * tests/unistr/test-u16-strcmp.c: New file.
9998         * tests/unistr/test-u16-strcmp.h: New file.
9999
10000         Tests for module 'unistr/u8-strcmp'.
10001         * modules/unistr/u8-strcmp-tests: New file.
10002         * tests/unistr/test-u8-strcmp.c: New file.
10003         * tests/unistr/test-u8-strcmp.h: New file.
10004         * tests/unistr/test-strcmp.h: New file.
10005
10006         Tests for module 'unistr/u32-strncat'.
10007         * modules/unistr/u32-strncat-tests: New file.
10008         * tests/unistr/test-u32-strncat.c: New file.
10009
10010         Tests for module 'unistr/u16-strncat'.
10011         * modules/unistr/u16-strncat-tests: New file.
10012         * tests/unistr/test-u16-strncat.c: New file.
10013
10014         Tests for module 'unistr/u8-strncat'.
10015         * modules/unistr/u8-strncat-tests: New file.
10016         * tests/unistr/test-u8-strncat.c: New file.
10017         * tests/unistr/test-strncat.h: New file.
10018
10019         Tests for module 'unistr/u32-strcat'.
10020         * modules/unistr/u32-strcat-tests: New file.
10021         * tests/unistr/test-u32-strcat.c: New file.
10022
10023         Tests for module 'unistr/u16-strcat'.
10024         * modules/unistr/u16-strcat-tests: New file.
10025         * tests/unistr/test-u16-strcat.c: New file.
10026
10027         Tests for module 'unistr/u8-strcat'.
10028         * modules/unistr/u8-strcat-tests: New file.
10029         * tests/unistr/test-u8-strcat.c: New file.
10030         * tests/unistr/test-strcat.h: New file.
10031
10032         Tests for module 'unistr/u32-stpncpy'.
10033         * modules/unistr/u32-stpncpy-tests: New file.
10034         * tests/unistr/test-u32-stpncpy.c: New file.
10035
10036         Tests for module 'unistr/u16-stpncpy'.
10037         * modules/unistr/u16-stpncpy-tests: New file.
10038         * tests/unistr/test-u16-stpncpy.c: New file.
10039
10040         Tests for module 'unistr/u8-stpncpy'.
10041         * modules/unistr/u8-stpncpy-tests: New file.
10042         * tests/unistr/test-u8-stpncpy.c: New file.
10043         * tests/unistr/test-stpncpy.h: New file.
10044
10045         Tests for module 'unistr/u32-strncpy'.
10046         * modules/unistr/u32-strncpy-tests: New file.
10047         * tests/unistr/test-u32-strncpy.c: New file.
10048
10049         Tests for module 'unistr/u16-strncpy'.
10050         * modules/unistr/u16-strncpy-tests: New file.
10051         * tests/unistr/test-u16-strncpy.c: New file.
10052
10053         Tests for module 'unistr/u8-strncpy'.
10054         * modules/unistr/u8-strncpy-tests: New file.
10055         * tests/unistr/test-u8-strncpy.c: New file.
10056         * tests/unistr/test-strncpy.h: New file.
10057
10058         Tests for module 'unistr/u32-stpcpy'.
10059         * modules/unistr/u32-stpcpy-tests: New file.
10060         * tests/unistr/test-u32-stpcpy.c: New file.
10061
10062         Tests for module 'unistr/u16-stpcpy'.
10063         * modules/unistr/u16-stpcpy-tests: New file.
10064         * tests/unistr/test-u16-stpcpy.c: New file.
10065
10066         Tests for module 'unistr/u8-stpcpy'.
10067         * modules/unistr/u8-stpcpy-tests: New file.
10068         * tests/unistr/test-u8-stpcpy.c: New file.
10069         * tests/unistr/test-stpcpy.h: New file.
10070
10071         Tests for module 'unistr/u32-strcpy'.
10072         * modules/unistr/u32-strcpy-tests: New file.
10073         * tests/unistr/test-u32-strcpy.c: New file.
10074
10075         Tests for module 'unistr/u16-strcpy'.
10076         * modules/unistr/u16-strcpy-tests: New file.
10077         * tests/unistr/test-u16-strcpy.c: New file.
10078
10079         Tests for module 'unistr/u8-strcpy'.
10080         * modules/unistr/u8-strcpy-tests: New file.
10081         * tests/unistr/test-u8-strcpy.c: New file.
10082         * tests/unistr/test-strcpy.h: New file.
10083
10084         Tests for module 'unistr/u32-strnlen'.
10085         * modules/unistr/u32-strnlen-tests: New file.
10086         * tests/unistr/test-u32-strnlen.c: New file.
10087
10088         Tests for module 'unistr/u16-strnlen'.
10089         * modules/unistr/u16-strnlen-tests: New file.
10090         * tests/unistr/test-u16-strnlen.c: New file.
10091
10092         Tests for module 'unistr/u8-strnlen'.
10093         * modules/unistr/u8-strnlen-tests: New file.
10094         * tests/unistr/test-u8-strnlen.c: New file.
10095         * tests/unistr/test-strnlen.h: New file.
10096
10097         Tests for module 'unistr/u32-strlen'.
10098         * modules/unistr/u32-strlen-tests: New file.
10099         * tests/unistr/test-u32-strlen.c: New file.
10100
10101         Tests for module 'unistr/u16-strlen'.
10102         * modules/unistr/u16-strlen-tests: New file.
10103         * tests/unistr/test-u16-strlen.c: New file.
10104
10105         Tests for module 'unistr/u8-strlen'.
10106         * modules/unistr/u8-strlen-tests: New file.
10107         * tests/unistr/test-u8-strlen.c: New file.
10108
10109         Tests for module 'unistr/u32-prev'.
10110         * modules/unistr/u32-prev-tests: New file.
10111         * tests/unistr/test-u32-prev.c: New file.
10112
10113         Tests for module 'unistr/u16-prev'.
10114         * modules/unistr/u16-prev-tests: New file.
10115         * tests/unistr/test-u16-prev.c: New file.
10116
10117         Tests for module 'unistr/u8-prev'.
10118         * modules/unistr/u8-prev-tests: New file.
10119         * tests/unistr/test-u8-prev.c: New file.
10120
10121         Tests for module 'unistr/u32-next'.
10122         * modules/unistr/u32-next-tests: New file.
10123         * tests/unistr/test-u32-next.c: New file.
10124
10125         Tests for module 'unistr/u16-next'.
10126         * modules/unistr/u16-next-tests: New file.
10127         * tests/unistr/test-u16-next.c: New file.
10128
10129         Tests for module 'unistr/u8-next'.
10130         * modules/unistr/u8-next-tests: New file.
10131         * tests/unistr/test-u8-next.c: New file.
10132
10133         Tests for module 'unistr/u32-strmbtouc'.
10134         * modules/unistr/u32-strmbtouc-tests: New file.
10135         * tests/unistr/test-u32-strmbtouc.c: New file.
10136
10137         Tests for module 'unistr/u16-strmbtouc'.
10138         * modules/unistr/u16-strmbtouc-tests: New file.
10139         * tests/unistr/test-u16-strmbtouc.c: New file.
10140
10141         Tests for module 'unistr/u8-strmbtouc'.
10142         * modules/unistr/u8-strmbtouc-tests: New file.
10143         * tests/unistr/test-u8-strmbtouc.c: New file.
10144
10145         Tests for module 'unistr/u32-strmblen'.
10146         * modules/unistr/u32-strmblen-tests: New file.
10147         * tests/unistr/test-u32-strmblen.c: New file.
10148
10149         Tests for module 'unistr/u16-strmblen'.
10150         * modules/unistr/u16-strmblen-tests: New file.
10151         * tests/unistr/test-u16-strmblen.c: New file.
10152
10153         Tests for module 'unistr/u8-strmblen'.
10154         * modules/unistr/u8-strmblen-tests: New file.
10155         * tests/unistr/test-u8-strmblen.c: New file.
10156
10157         Tests for module 'unistr/u32-cpy-alloc'.
10158         * modules/unistr/u32-cpy-alloc-tests: New file.
10159         * tests/unistr/test-u32-cpy-alloc.c: New file.
10160
10161         Tests for module 'unistr/u16-cpy-alloc'.
10162         * modules/unistr/u16-cpy-alloc-tests: New file.
10163         * tests/unistr/test-u16-cpy-alloc.c: New file.
10164
10165         Tests for module 'unistr/u8-cpy-alloc'.
10166         * modules/unistr/u8-cpy-alloc-tests: New file.
10167         * tests/unistr/test-u8-cpy-alloc.c: New file.
10168         * tests/unistr/test-cpy-alloc.h: New file.
10169
10170         Tests for module 'unistr/u32-mbsnlen'.
10171         * modules/unistr/u32-mbsnlen-tests: New file.
10172         * tests/unistr/test-u32-mbsnlen.c: New file.
10173
10174         Tests for module 'unistr/u16-mbsnlen'.
10175         * modules/unistr/u16-mbsnlen-tests: New file.
10176         * tests/unistr/test-u16-mbsnlen.c: New file.
10177
10178         Tests for module 'unistr/u8-mbsnlen'.
10179         * modules/unistr/u8-mbsnlen-tests: New file.
10180         * tests/unistr/test-u8-mbsnlen.c: New file.
10181
10182         Tests for module 'unistr/u32-chr'.
10183         * modules/unistr/u32-chr-tests: New file.
10184         * tests/unistr/test-u32-chr.c: New file.
10185
10186         Tests for module 'unistr/u16-chr'.
10187         * modules/unistr/u16-chr-tests: New file.
10188         * tests/unistr/test-u16-chr.c: New file.
10189
10190         Tests for module 'unistr/u8-chr'.
10191         * modules/unistr/u8-chr-tests: New file.
10192         * tests/unistr/test-u8-chr.c: New file.
10193         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
10194
10195         Tests for module 'unistr/u32-cmp2'.
10196         * modules/unistr/u32-cmp2-tests: New file.
10197         * tests/unistr/test-u32-cmp2.c: New file.
10198
10199         Tests for module 'unistr/u16-cmp2'.
10200         * modules/unistr/u16-cmp2-tests: New file.
10201         * tests/unistr/test-u16-cmp2.c: New file.
10202
10203         Tests for module 'unistr/u8-cmp2'.
10204         * modules/unistr/u8-cmp2-tests: New file.
10205         * tests/unistr/test-u8-cmp2.c: New file.
10206         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
10207
10208         Tests for module 'unistr/u32-cmp'.
10209         * modules/unistr/u32-cmp-tests: New file.
10210         * tests/unistr/test-u32-cmp.c: New file.
10211
10212         Tests for module 'unistr/u16-cmp'.
10213         * modules/unistr/u16-cmp-tests: New file.
10214         * tests/unistr/test-u16-cmp.c: New file.
10215
10216         Tests for module 'unistr/u8-cmp'.
10217         * modules/unistr/u8-cmp-tests: New file.
10218         * tests/unistr/test-u8-cmp.c: New file.
10219         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
10220
10221         Tests for module 'unistr/u32-set'.
10222         * modules/unistr/u32-set-tests: New file.
10223         * tests/unistr/test-u32-set.c: New file.
10224
10225         Tests for module 'unistr/u16-set'.
10226         * modules/unistr/u16-set-tests: New file.
10227         * tests/unistr/test-u16-set.c: New file.
10228
10229         Tests for module 'unistr/u8-set'.
10230         * modules/unistr/u8-set-tests: New file.
10231         * tests/unistr/test-u8-set.c: New file.
10232         * tests/unistr/test-set.h: New file.
10233
10234         Tests for module 'unistr/u32-move'.
10235         * modules/unistr/u32-move-tests: New file.
10236         * tests/unistr/test-u32-move.c: New file.
10237
10238         Tests for module 'unistr/u16-move'.
10239         * modules/unistr/u16-move-tests: New file.
10240         * tests/unistr/test-u16-move.c: New file.
10241
10242         Tests for module 'unistr/u8-move'.
10243         * modules/unistr/u8-move-tests: New file.
10244         * tests/unistr/test-u8-move.c: New file.
10245         * tests/unistr/test-move.h: New file.
10246
10247         Tests for module 'unistr/u32-cpy'.
10248         * modules/unistr/u32-cpy-tests: New file.
10249         * tests/unistr/test-u32-cpy.c: New file.
10250
10251         Tests for module 'unistr/u16-cpy'.
10252         * modules/unistr/u16-cpy-tests: New file.
10253         * tests/unistr/test-u16-cpy.c: New file.
10254
10255         Tests for module 'unistr/u8-cpy'.
10256         * modules/unistr/u8-cpy-tests: New file.
10257         * tests/unistr/test-u8-cpy.c: New file.
10258         * tests/unistr/test-cpy.h: New file.
10259
10260 2010-01-09  Bruno Haible  <bruno@clisp.org>
10261
10262         Tests for module 'unistr/u32-uctomb'.
10263         * modules/unistr/u32-uctomb-tests: New file.
10264         * tests/unistr/test-u32-uctomb.c: New file.
10265
10266         Tests for module 'unistr/u16-uctomb'.
10267         * modules/unistr/u16-uctomb-tests: New file.
10268         * tests/unistr/test-u16-uctomb.c: New file.
10269
10270         Tests for module 'unistr/u8-uctomb'.
10271         * modules/unistr/u8-uctomb-tests: New file.
10272         * tests/unistr/test-u8-uctomb.c: New file.
10273
10274         Tests for module 'unistr/u32-mbtoucr'.
10275         * modules/unistr/u32-mbtoucr-tests: New file.
10276         * tests/unistr/test-u32-mbtoucr.c: New file.
10277
10278         Tests for module 'unistr/u16-mbtoucr'.
10279         * modules/unistr/u16-mbtoucr-tests: New file.
10280         * tests/unistr/test-u16-mbtoucr.c: New file.
10281
10282         Tests for module 'unistr/u8-mbtoucr'.
10283         * modules/unistr/u8-mbtoucr-tests: New file.
10284         * tests/unistr/test-u8-mbtoucr.c: New file.
10285
10286         Tests for module 'unistr/u32-mbtouc'.
10287         * modules/unistr/u32-mbtouc-tests: New file.
10288         * tests/unistr/test-u32-mbtouc.c: New file.
10289
10290         Tests for module 'unistr/u16-mbtouc'.
10291         * modules/unistr/u16-mbtouc-tests: New file.
10292         * tests/unistr/test-u16-mbtouc.c: New file.
10293
10294         Tests for module 'unistr/u8-mbtouc'.
10295         * modules/unistr/u8-mbtouc-tests: New file.
10296         * tests/unistr/test-u8-mbtouc.c: New file.
10297
10298         Tests for module 'unistr/u32-mbtouc-unsafe'.
10299         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
10300         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
10301         * tests/unistr/test-u32-mbtouc.h: New file.
10302
10303         Tests for module 'unistr/u16-mbtouc-unsafe'.
10304         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
10305         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
10306         * tests/unistr/test-u16-mbtouc.h: New file.
10307
10308         Tests for module 'unistr/u8-mbtouc-unsafe'.
10309         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
10310         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
10311         * tests/unistr/test-u8-mbtouc.h: New file.
10312
10313         Tests for module 'unistr/u32-mblen'.
10314         * modules/unistr/u32-mblen-tests: New file.
10315         * tests/unistr/test-u32-mblen.c: New file.
10316
10317         Tests for module 'unistr/u16-mblen'.
10318         * modules/unistr/u16-mblen-tests: New file.
10319         * tests/unistr/test-u16-mblen.c: New file.
10320
10321         Tests for module 'unistr/u8-mblen'.
10322         * modules/unistr/u8-mblen-tests: New file.
10323         * tests/unistr/test-u8-mblen.c: New file.
10324
10325         Tests for module 'unistr/u32-to-u16'.
10326         * modules/unistr/u32-to-u16-tests: New file.
10327         * tests/unistr/test-u32-to-u16.c: New file.
10328
10329         Tests for module 'unistr/u32-to-u8'.
10330         * modules/unistr/u32-to-u8-tests: New file.
10331         * tests/unistr/test-u32-to-u8.c: New file.
10332
10333         Tests for module 'unistr/u16-to-u32'.
10334         * modules/unistr/u16-to-u32-tests: New file.
10335         * tests/unistr/test-u16-to-u32.c: New file.
10336
10337         Tests for module 'unistr/u16-to-u8'.
10338         * modules/unistr/u16-to-u8-tests: New file.
10339         * tests/unistr/test-u16-to-u8.c: New file.
10340
10341         Tests for module 'unistr/u8-to-u32'.
10342         * modules/unistr/u8-to-u32-tests: New file.
10343         * tests/unistr/test-u8-to-u32.c: New file.
10344
10345         Tests for module 'unistr/u8-to-u16'.
10346         * modules/unistr/u8-to-u16-tests: New file.
10347         * tests/unistr/test-u8-to-u16.c: New file.
10348
10349         Tests for module 'unistr/u32-check'.
10350         * modules/unistr/u32-check-tests: New file.
10351         * tests/unistr/test-u32-check.c: New file.
10352
10353         Tests for module 'unistr/u16-check'.
10354         * modules/unistr/u16-check-tests: New file.
10355         * tests/unistr/test-u16-check.c: New file.
10356
10357         Tests for module 'unistr/u8-check'.
10358         * modules/unistr/u8-check-tests: New file.
10359         * tests/unistr/test-u8-check.c: New file.
10360
10361         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
10362         (category_equals): New function.
10363         (main): Add more tests.
10364         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
10365
10366         * tests/unictype/test-bidi_byname.c (main): Add more tests.
10367
10368 2010-01-10  Bruno Haible  <bruno@clisp.org>
10369
10370         unistr/u*-strcoll: Try harder to distinguish different strings.
10371         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
10372         compare s1 and s2 to see if they are different.
10373
10374 2010-01-10  Bruno Haible  <bruno@clisp.org>
10375
10376         unistr/u*-stpncpy: Fix the return value.
10377         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
10378         description of the return value consistent with stpncpy in glibc.
10379         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
10380         written non-NUL unit.
10381
10382 2010-01-10  Bruno Haible  <bruno@clisp.org>
10383
10384         unistr/u*-next: Add missing dependencies.
10385         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
10386         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
10387         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
10388
10389 2010-01-10  Bruno Haible  <bruno@clisp.org>
10390
10391         unistr/u8-mbsnlen: Fix return value for incomplete character.
10392         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
10393         u8_mblen.
10394         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
10395         Remove unistr/u8-mblen.
10396         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
10397         u16_mblen.
10398         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
10399         Remove unistr/u16-mblen.
10400
10401 2010-01-10  Bruno Haible  <bruno@clisp.org>
10402
10403         wchar: Fix compilation error when <wchar.h> is used from coreutils.
10404         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
10405         Reported by Brian Gough <bjg@gnu.org> and
10406         Chris Clayton <chris2553@googlemail.com> via
10407         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
10408
10409 2010-01-09  Bruno Haible  <bruno@clisp.org>
10410
10411         unistr/u16-to-u32: Reject invalid input.
10412         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
10413         u16_mbtouc.
10414         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
10415         Remove unistr/u16-mbtouc.
10416
10417         unistr/u16-to-u8: Reject invalid input.
10418         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
10419         u16_mbtouc.
10420         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
10421         Remove unistr/u16-mbtouc.
10422
10423         unistr/u8-to-u32: Reject invalid input.
10424         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
10425         u8_mbtouc.
10426         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
10427         Remove unistr/u8-mbtouc.
10428
10429         unistr/u8-to-u16: Reject invalid input.
10430         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
10431         u8_mbtouc.
10432         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
10433         Remove unistr/u8-mbtouc.
10434
10435 2010-01-09  Bruno Haible  <bruno@clisp.org>
10436
10437         Tests for module 'getlogin'.
10438         * modules/getlogin-tests: New file.
10439         * tests/test-getlogin.c: New file.
10440
10441         New module 'getlogin'.
10442         * lib/unistd.in.h (getlogin): New declaration.
10443         * lib/getlogin.c: New file.
10444         * m4/getlogin.m4: New file.
10445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
10446         HAVE_GETLOGIN.
10447         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
10448         HAVE_GETLOGIN.
10449         * modules/getlogin: New file.
10450         * doc/posix-functions/getlogin.texi: Mention the new module.
10451         Reported by John W. Eaton <jwe@gnu.org>.
10452
10453 2010-01-09  Bruno Haible  <bruno@clisp.org>
10454
10455         getlogin_r: Support for native Windows.
10456         * lib/getlogin_r.c: Include <windows.h>
10457         (getlogin_r): Implement for native Windows.
10458         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
10459         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
10460         via John W. Eaton <jwe@gnu.org>.
10461
10462 2010-01-09  Bruno Haible  <bruno@clisp.org>
10463
10464         getlogin_r: Small fixes.
10465         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
10466         succeeds.
10467         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
10468         before testing whether getlogin_r is declared. No need to set
10469         HAVE_DECL_GETLOGIN_R to 1.
10470         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
10471
10472 2010-01-09  Bruno Haible  <bruno@clisp.org>
10473
10474         * lib/unistd.in.h (getlogin_r): Add comment.
10475
10476 2010-01-09  Bruno Haible  <bruno@clisp.org>
10477
10478         Tests for module 'getlogin_r'.
10479         * modules/getlogin_r-tests: New file.
10480         * tests/test-getlogin_r.c: New file.
10481
10482 2010-01-09  Jim Meyering  <meyering@redhat.com>
10483
10484         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
10485         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
10486         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
10487
10488 2010-01-08  Simon Josefsson  <simon@josefsson.org>
10489
10490         * lib/dup2.c (rpl_dup2): Improve comment.
10491
10492 2010-01-08  Eric Blake  <ebb9@byu.net>
10493
10494         maint.mk: allow packages to add makefile @@ exceptions
10495         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
10496         (sc_makefile_check): Rename...
10497         (sc_makefile_at_at_check): ...to this, and use hook.
10498
10499         dup2: work around mingw bug
10500         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
10501         Reported by Simon Josefsson.
10502
10503 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
10504
10505         glob: Fix C++ compilation.
10506         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
10507         C++.
10508
10509 2010-01-07  Bruno Haible  <bruno@clisp.org>
10510
10511         Fix indentation of wctype.in.h, broken since 2007-01-06.
10512         * lib/wctype.in.h: Fix indentation of preprocessor directives.
10513
10514 2010-01-07  Bruno Haible  <bruno@clisp.org>
10515
10516         mbslen: Avoid collision with system function.
10517         * lib/string.in.h [MirBSD]: Include <wchar.h>.
10518         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
10519         * m4/mbslen.m4: New file.
10520         * modules/mbslen (Files): Add it.
10521         (configure.ac): Invoke gl_MBSLEN.
10522         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
10523         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
10524         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
10525         via Ian Beckwith <ianb@erislabs.net>.
10526
10527 2010-01-07  Bruno Haible  <bruno@clisp.org>
10528
10529         dirent: Document the last fix.
10530         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
10531
10532 2010-01-07  Bruno Haible  <bruno@clisp.org>
10533
10534         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
10535         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
10536         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
10537         va_list are defined.
10538         * doc/posix-headers/stdio.texi: Document the bug of missing types.
10539         Reported by Eric Blake.
10540
10541 2010-01-07  Bruno Haible  <bruno@clisp.org>
10542
10543         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
10544         * modules/xlist (Depends-on): Add 'list',
10545         * modules/xoset (Depends-on): Add 'oset'.
10546         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10547
10548 2010-01-07  Bruno Haible  <bruno@clisp.org>
10549
10550         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
10551         * doc/posix-functions/strncasecmp.texi: Likewise.
10552
10553 2010-01-07  Bruno Haible  <bruno@clisp.org>
10554
10555         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
10556
10557 2010-01-07  John W. Eaton  <jwe@octave.org>
10558
10559         wctype: allow C++ use
10560         * lib/wctype.in.h: Add extern "C" block for C++.
10561
10562 2010-01-06  Eric Blake  <ebb9@byu.net>
10563
10564         maint.mk: detect incorrect GFDL usage
10565         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
10566
10567 2010-01-06  Jim Meyering  <meyering@redhat.com>
10568         and Eric Blake  <ebb9@byu.net>
10569
10570         maint.mk: ignore multi-line copyright in NEWS
10571         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
10572
10573 2010-01-06  Eric Blake  <ebb9@byu.net>
10574
10575         select: add missing dependency
10576         * modules/select-tests (Depends-on): Move sockets dependency...
10577         * modules/select (Depends-on): ...here.
10578         Reported by Ian Beckwith.
10579
10580         doc: regenerate INSTALL
10581         * doc/INSTALL: Reflect recent autoconf update.
10582         * doc/INSTALL.ISO: Likewise.
10583         * doc/INSTALL.UTF-8: Likewise.
10584
10585         pread: fix compilation on glibc
10586         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
10587         Reported by Ralf Wildenhues.
10588
10589         dirent: fix test failure
10590         * lib/dirent.in.h (includes): Guarantee ino_t.
10591         Reported by Ralf Wildenhues.
10592
10593 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
10594
10595         linkat, renameat: avoid bad free
10596         * lib/at-func2.c (at_func2): Fix typo.
10597         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
10598
10599 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10600
10601         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
10602         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
10603         to avoid failure of symlink test later.
10604
10605 2010-01-06  Eric Blake  <ebb9@byu.net>
10606
10607         stdio, unistd: guarantee ssize_t
10608         * lib/unistd.in.h (includes): Ensure that types required by POSIX
10609         2008 are exposed when needed.
10610         * lib/stdio.in.h (includes): Likewise.
10611         Reported by Ralf Wildenhues.
10612
10613 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
10614
10615         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
10616         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
10617         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
10618
10619 2010-01-06  Jim Meyering  <meyering@redhat.com>
10620
10621         readtokens: this module *does* require xalloc.h
10622         It uses only functions that were omitted by the old syntax-check rule.
10623         * lib/readtokens.c: Include "xalloc.h" once again.
10624         * modules/readtokens (Depends-on): Add xalloc.
10625         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
10626
10627 2010-01-05  Eric Blake  <ebb9@byu.net>
10628
10629         maint: support 'make announcement' from a VPATH build
10630         * top/maint.mk (announcement): Look for correct NEWS file.
10631
10632 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
10633
10634         utimens (fdutimens): ignore a negative FD, per contract
10635         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
10636         when we have a valid file descriptor.  Otherwise, using a brand
10637         new glibc (with just-patched futimens that now fails with EBADF)
10638         would cause this function to fail with ENOSYS.
10639         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
10640         See also http://bugzilla.redhat.com/552320.
10641
10642 2010-01-05  Eric Blake  <ebb9@byu.net>
10643
10644         strcase: document what it provides
10645         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
10646         gnulib module.
10647         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
10648         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
10649
10650 2010-01-05  Jim Meyering  <meyering@redhat.com>
10651
10652         maint: remove useless inclusions of "xalloc.h"
10653         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
10654         * lib/readtokens.c: Likewise.
10655         * lib/same.c: Likewise.
10656         * modules/getloadavg (Depends-on): Remove xalloc.
10657         * modules/readtokens: Likewise.
10658         * modules/same: Likewise.
10659
10660         maint.mk: include 4 more function names in alloca.h-checking regexp
10661         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
10662         regexp.  Before, we would give a false-positive (saying alloca.h
10663         is included unnecessarily) when the only uses involved omitted symbols.
10664
10665         xalloc.h: use consistent formatting
10666         * lib/xalloc.h: Move declarations to start in the first column.
10667
10668 2010-01-05  Eric Blake  <ebb9@byu.net>
10669
10670         mkdir: avoid xalloc
10671         * lib/mkdir.c (includes): Drop unused header.
10672         Reported by John W. Eaton.
10673
10674 2010-01-04  Jim Meyering  <meyering@redhat.com>
10675
10676         nl_langinfo: avoid configure-time syntax error
10677         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
10678         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
10679         the empty string.  Don't let that provoke a shell syntax error.
10680
10681         regcomp, regexec, fnmatch: avoid array bounds read error
10682         * lib/regcomp.c (build_equiv_class): From glibc:
10683         Use only the low 24 bits of a findidx return value as an index
10684         into the weights array.  Patch by Ulrich Drepper:
10685         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
10686         * lib/regexec.c (check_node_accept_bytes): Likewise.
10687         * lib/fnmatch_loop.c (FCT): Likewise.
10688
10689         regcomp: skip collseq lookup when there are no rules
10690         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
10691         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
10692
10693         regcomp: recognize ill-formed { } expressions
10694         * lib/regcomp.c (parse_dup_op): From glibc:
10695         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
10696
10697         regcomp: fix typo in comment
10698         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
10699         s/satisfy/satisfies/.
10700
10701         regcomp: sync from glibc: remove dead store
10702         * lib/regcomp.c (duplicate_node_closure): Remove useless
10703         search_duplicated_node call and dead store.
10704
10705         regcomp: sync from glibc; always use nl_langinfo
10706         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
10707         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
10708         * modules/regex (Depends-on): Add nl_langinfo.
10709
10710 2010-01-04  Eric Blake  <ebb9@byu.net>
10711
10712         fdopendir: fix configure test
10713         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
10714
10715 2010-01-01  Bruno Haible  <bruno@clisp.org>
10716
10717         wchar: Remove unused configure check.
10718         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
10719
10720 2010-01-01  Eric Blake  <ebb9@byu.net>
10721
10722         headers: make check of system header explicit
10723         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
10724         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
10725         ourselves.
10726         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10727         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10728         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
10729         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
10730         internals.
10731         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
10732         missing.
10733         Suggested by Bruno Haible.
10734
10735 2010-01-01  Jim Meyering  <meyering@redhat.com>
10736
10737         ChangeLog: tweak to eliminate unnecessary copyright line
10738         * ChangeLog: Remove a copyright line that was mistakenly updated
10739         by today's update-copyright run.  Reported by Eric Blake.
10740
10741         test-update-copyright: don't let envvar setting cause test failure
10742         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
10743
10744 2010-01-01  Bruno Haible  <bruno@clisp.org>
10745
10746         localename: Avoid gcc warning.
10747         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
10748         function if it is not used.
10749
10750 2010-01-01  Jim Meyering  <meyering@redhat.com>
10751
10752         update nearly all FSF copyright year lists to include 2010
10753         Use the same procedure as for 2009, outlined in
10754         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
10755
10756         version-etc: set COPYRIGHT_YEAR to 2010
10757         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
10758
10759 2009-12-31  Eric Blake  <ebb9@byu.net>
10760
10761         doc: correct availability of cygwin 1.5.x getopt
10762         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
10763         variables.
10764         * doc/posix-functions/opterr.texi (opterr): Likewise.
10765         * doc/posix-functions/optind.texi (optind): Likewise.
10766         * doc/posix-functions/optopt.texi (optopt): Likewise.
10767         * doc/posix-functions/tzname.texi (tzname): Likewise.
10768
10769         openat: update maintainer
10770         * modules/openat (Maintainer): Add myself.
10771
10772         utimens: avoid shadowing warning
10773         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
10774         buffers into one, to avoid shadowing, as well as avoiding a
10775         redundant stat.
10776         Reported by Jim Meyering.
10777
10778         test-dup2: avoid compiler warning
10779         * tests/test-dup2.c (is_inheritable): Only define if used.
10780
10781 2010-01-01  Bruno Haible  <bruno@clisp.org>
10782
10783         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
10784         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
10785         defined, use wctomb instead of wcrtomb.
10786
10787 2010-01-01  Bruno Haible  <bruno@clisp.org>
10788
10789         iconv: Reject native Solaris iconv.
10790         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
10791         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
10792
10793 2009-12-31  Bruno Haible  <bruno@clisp.org>
10794
10795         * tests/test-signal.c (main): Remove test of 'SIG'.
10796
10797 2009-12-31  Bruno Haible  <bruno@clisp.org>
10798
10799         spawn: Fix incomplete fix.
10800         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10801         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10802         warnings for GNULIB_POSIXCHECK again.
10803         Reported by Eric Blake.
10804
10805 2009-12-31  Bruno Haible  <bruno@clisp.org>
10806
10807         Avoid namespace pollution on glibc systems.
10808         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
10809         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
10810         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
10811         glibc systems.
10812
10813 2009-12-31  Bruno Haible  <bruno@clisp.org>
10814
10815         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
10816         (gl_REPLACE_WCHAR_H): Turn into a no-op.
10817         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
10818         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10819         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10820         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10821         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10822
10823 2009-12-31  Bruno Haible  <bruno@clisp.org>
10824
10825         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10826         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
10827         afterwards.
10828
10829 2009-12-31  Bruno Haible  <bruno@clisp.org>
10830
10831         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
10832         SYS_UTSNAME_H.
10833
10834 2009-12-31  Bruno Haible  <bruno@clisp.org>
10835
10836         spawn: Fix misapplied patch.
10837         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10838         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10839         warnings for GNULIB_POSIXCHECK.
10840
10841 2009-12-31  Bruno Haible  <bruno@clisp.org>
10842
10843         times: Update after sys_times changed.
10844         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
10845         * modules/times (Files): Add it.
10846         (configure.ac): Invoke gl_FUNC_TIMES.
10847
10848 2009-12-31  Bruno Haible  <bruno@clisp.org>
10849
10850         Use AC_C_INLINE where necessary.
10851         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
10852         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
10853         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
10854         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10855         * m4/mbfile.m4 (gl_MBFILE): Likewise.
10856         * m4/mbiter.m4 (gl_MBITER): Likewise.
10857         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10858         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10859         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
10860         * modules/u64 (configure.ac): Likewise.
10861
10862 2009-12-31  Bruno Haible  <bruno@clisp.org>
10863
10864         Use AC_C_INLINE instead of module 'inline' where possible.
10865         * modules/inline (Description): Clarify purpose.
10866         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
10867         * modules/count-one-bits (Depends-on): Remove inline.
10868         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
10869         * modules/openat (Depends-on): Remove inline.
10870         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
10871         instead of depending on module 'inline'.
10872         * modules/filevercmp (Depends-on, configure.ac): Likewise.
10873         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
10874         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
10875         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
10876         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
10877         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
10878         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
10879         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
10880         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
10881         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
10882         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
10883         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
10884         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
10885         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
10886         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
10887         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
10888         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
10889         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
10890         Likewise.
10891         * modules/unictype/property-ascii-hex-digit (Depends-on,
10892         configure.ac): Likewise.
10893         * modules/unictype/property-bidi-arabic-digit (Depends-on,
10894         configure.ac): Likewise.
10895         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
10896         configure.ac): Likewise.
10897         * modules/unictype/property-bidi-block-separator (Depends-on,
10898         configure.ac): Likewise.
10899         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
10900         configure.ac): Likewise.
10901         * modules/unictype/property-bidi-common-separator (Depends-on,
10902         configure.ac): Likewise.
10903         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
10904         Likewise.
10905         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
10906         configure.ac): Likewise.
10907         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
10908         configure.ac): Likewise.
10909         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
10910         configure.ac): Likewise.
10911         * modules/unictype/property-bidi-european-digit (Depends-on,
10912         configure.ac): Likewise.
10913         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
10914         configure.ac): Likewise.
10915         * modules/unictype/property-bidi-left-to-right (Depends-on,
10916         configure.ac): Likewise.
10917         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
10918         configure.ac): Likewise.
10919         * modules/unictype/property-bidi-other-neutral (Depends-on,
10920         configure.ac): Likewise.
10921         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
10922         Likewise.
10923         * modules/unictype/property-bidi-segment-separator (Depends-on,
10924         configure.ac): Likewise.
10925         * modules/unictype/property-bidi-whitespace (Depends-on,
10926         configure.ac): Likewise.
10927         * modules/unictype/property-combining (Depends-on, configure.ac):
10928         Likewise.
10929         * modules/unictype/property-composite (Depends-on, configure.ac):
10930         Likewise.
10931         * modules/unictype/property-currency-symbol (Depends-on,
10932         configure.ac): Likewise.
10933         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
10934         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
10935         Likewise.
10936         * modules/unictype/property-default-ignorable-code-point (Depends-on,
10937         configure.ac): Likewise.
10938         * modules/unictype/property-deprecated (Depends-on, configure.ac):
10939         Likewise.
10940         * modules/unictype/property-diacritic (Depends-on, configure.ac):
10941         Likewise.
10942         * modules/unictype/property-extender (Depends-on, configure.ac):
10943         Likewise.
10944         * modules/unictype/property-format-control (Depends-on, configure.ac):
10945         Likewise.
10946         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
10947         Likewise.
10948         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
10949         Likewise.
10950         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
10951         Likewise.
10952         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
10953         Likewise.
10954         * modules/unictype/property-hyphen (Depends-on, configure.ac):
10955         Likewise.
10956         * modules/unictype/property-id-continue (Depends-on, configure.ac):
10957         Likewise.
10958         * modules/unictype/property-id-start (Depends-on, configure.ac):
10959         Likewise.
10960         * modules/unictype/property-ideographic (Depends-on, configure.ac):
10961         Likewise.
10962         * modules/unictype/property-ids-binary-operator (Depends-on,
10963         configure.ac): Likewise.
10964         * modules/unictype/property-ids-trinary-operator (Depends-on,
10965         configure.ac): Likewise.
10966         * modules/unictype/property-ignorable-control (Depends-on,
10967         configure.ac): Likewise.
10968         * modules/unictype/property-iso-control (Depends-on, configure.ac):
10969         Likewise.
10970         * modules/unictype/property-join-control (Depends-on, configure.ac):
10971         Likewise.
10972         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
10973         Likewise.
10974         * modules/unictype/property-line-separator (Depends-on, configure.ac):
10975         Likewise.
10976         * modules/unictype/property-logical-order-exception (Depends-on,
10977         configure.ac): Likewise.
10978         * modules/unictype/property-lowercase (Depends-on, configure.ac):
10979         Likewise.
10980         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
10981         * modules/unictype/property-non-break (Depends-on, configure.ac):
10982         Likewise.
10983         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
10984         Likewise.
10985         * modules/unictype/property-numeric (Depends-on, configure.ac):
10986         Likewise.
10987         * modules/unictype/property-other-alphabetic (Depends-on,
10988         configure.ac): Likewise.
10989         * modules/unictype/property-other-default-ignorable-code-point
10990         (Depends-on, configure.ac): Likewise.
10991         * modules/unictype/property-other-grapheme-extend (Depends-on,
10992         configure.ac): Likewise.
10993         * modules/unictype/property-other-id-continue (Depends-on,
10994         configure.ac): Likewise.
10995         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
10996         Likewise.
10997         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
10998         Likewise.
10999         * modules/unictype/property-other-math (Depends-on, configure.ac):
11000         Likewise.
11001         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
11002         Likewise.
11003         * modules/unictype/property-paired-punctuation (Depends-on,
11004         configure.ac): Likewise.
11005         * modules/unictype/property-paragraph-separator (Depends-on,
11006         configure.ac): Likewise.
11007         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
11008         Likewise.
11009         * modules/unictype/property-pattern-white-space (Depends-on,
11010         configure.ac): Likewise.
11011         * modules/unictype/property-private-use (Depends-on, configure.ac):
11012         Likewise.
11013         * modules/unictype/property-punctuation (Depends-on, configure.ac):
11014         Likewise.
11015         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
11016         Likewise.
11017         * modules/unictype/property-radical (Depends-on, configure.ac):
11018         Likewise.
11019         * modules/unictype/property-sentence-terminal (Depends-on,
11020         configure.ac): Likewise.
11021         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
11022         Likewise.
11023         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
11024         * modules/unictype/property-terminal-punctuation (Depends-on,
11025         configure.ac): Likewise.
11026         * modules/unictype/property-titlecase (Depends-on, configure.ac):
11027         Likewise.
11028         * modules/unictype/property-unassigned-code-value (Depends-on,
11029         configure.ac): Likewise.
11030         * modules/unictype/property-unified-ideograph (Depends-on,
11031         configure.ac): Likewise.
11032         * modules/unictype/property-uppercase (Depends-on, configure.ac):
11033         Likewise.
11034         * modules/unictype/property-variation-selector (Depends-on,
11035         configure.ac): Likewise.
11036         * modules/unictype/property-white-space (Depends-on, configure.ac):
11037         Likewise.
11038         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
11039         Likewise.
11040         * modules/unictype/property-xid-start (Depends-on, configure.ac):
11041         Likewise.
11042         * modules/unictype/property-zero-width (Depends-on, configure.ac):
11043         Likewise.
11044         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
11045         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
11046         Likewise.
11047
11048 2009-12-31  Bruno Haible  <bruno@clisp.org>
11049
11050         Remove unnecessary AC_C_INLINE invocation.
11051         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
11052         since 2009-08-21.
11053
11054 2009-12-31  Jim Meyering  <meyering@redhat.com>
11055
11056         maint.mk: don't require explicit gpg_key_ID in cfg.mk
11057         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
11058         With this change, we can all remove the gpg_key_ID = ... definition
11059         from our respective cfg.mk files.
11060
11061         maint.mk: create announcement template in ~/, not in /tmp
11062         * top/maint.mk (emit_upload_commands): Adjust.
11063         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
11064         Remove temporary file, .ci-msg.
11065
11066 2009-12-31  Eric Blake  <ebb9@byu.net>
11067
11068         link-warning: always build headers with link warnings
11069         * modules/arpa_inet (Makefile.am): Always build replacement
11070         header.
11071         * modules/ctype (Makefile.am): Likewise.
11072         * modules/dirent (Makefile.am): Likewise.
11073         * modules/inttypes (Makefile.am): Likewise.
11074         * modules/langinfo (Makefile.am): Likewise.
11075         * modules/locale (Makefile.am): Likewise.
11076         * modules/spawn (Makefile.am): Likewise.
11077         * modules/sys_file (Makefile.am): Likewise.
11078         * modules/sys_ioctl (Makefile.am): Likewise.
11079         * modules/sys_select (Makefile.am): Likewise.
11080         * modules/sys_socket (Makefile.am): Likewise.
11081         * modules/sys_times (Makefile.am): Likewise.
11082         * modules/sys_utsname (Makefile.am): Likewise.
11083         * modules/sys_wait (Makefile.am): Likewise.
11084         * modules/wchar (Makefile.am): Likewise.
11085         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
11086         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
11087         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
11088         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
11089         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
11090         Likewise.
11091         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
11092         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
11093         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
11094         Likewise.
11095         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
11096         Likewise.
11097         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11098         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
11099         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
11100         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11101         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11102         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11103         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11104         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
11105         (gl_WCHAR_H_DEFAULTS): Likewise.
11106
11107 2009-12-31  Eric Blake  <ebb9@byu.net>
11108
11109         signal, spawn: use link warnings
11110         * lib/signal.in.h (sigset_t): Make unconditional.
11111         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
11112         (sigpending, sigprocmask, sigaction): Add link warnings.
11113         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
11114         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
11115         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
11116         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
11117         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
11118         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
11119         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
11120         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
11121         (posix_spawn_file_actions_destroy)
11122         (posix_spawn_file_actions_addopen)
11123         (posix_spawn_file_actions_addclose)
11124         (posix_spawn_file_actions_adddup2): Likewise.
11125         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
11126         * tests/test-signal.c (main): Enhance test.
11127
11128         spawn: improve wrapper support
11129         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
11130         (gl_SPAWN_H_DEFAULTS): New defaults.
11131         * modules/spawn (Makefile.am): Substitute them.
11132         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
11133         Only declare if missing or broken.
11134
11135         sys_times, sys_utsname: use include_next
11136         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
11137         header.
11138         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
11139         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
11140         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
11141         * modules/sys_times (Depends-on): Add include_next.
11142         (Makefile.am): Substitute additional values.
11143         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
11144         * lib/sys_times.in.h (includes): Include native header, if
11145         available.
11146         * lib/sys_utsname.in.h (includes): Likewise.
11147         * tests/test-sys_times.c (main): Enhance test.
11148
11149         fdutimensat: revert prior patch
11150         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
11151         utimens.h.
11152         Reported by Bruno Haible.
11153
11154 2009-12-30  Eric Blake  <ebb9@byu.net>
11155
11156         sys_wait: drop link-warning dependency
11157         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
11158         link-warning efforts.
11159         * lib/sys_wait.in.h: Likewise.
11160
11161         fdutimensat: remove bogus dependency
11162         * modules/fdutimensat (Depends-on): Drop inline.
11163
11164         unistd: fix typo
11165         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
11166
11167 2009-12-30  Bruno Haible  <bruno@clisp.org>
11168
11169         Fix compilation error with Solaris cc.
11170         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
11171         * lib/unicase/u16-is-invariant.c: Likewise.
11172         * lib/unicase/u32-is-invariant.c: Likewise.
11173         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
11174
11175 2009-12-30  Bruno Haible  <bruno@clisp.org>
11176
11177         Fix test crash.
11178         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
11179         locales.
11180         Reported by Simon Josefsson <simon@josefsson.org>.
11181
11182 2009-12-30  Bruno Haible  <bruno@clisp.org>
11183
11184         Fix compilation error on most platforms.
11185         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
11186         Reported by Simon Josefsson <simon@josefsson.org>
11187         and Nelson H. F. Beebe <beebe@math.utah.edu>.
11188
11189 2009-12-30  Eric Blake  <ebb9@byu.net>
11190
11191         futimens, utimensat: work around ntfs-3g bug
11192         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
11193         a ctime bug is present, and expand workaround to cover ntfs-3g.
11194         * lib/utimens.c (fdutimens, lutimens): Likewise.
11195         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
11196         (validate_timespec): Adjust return value.
11197         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
11198         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11199         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
11200
11201 2009-12-29  Eric Blake  <ebb9@byu.net>
11202
11203         link-warning: make usage consistent
11204         * modules/ctype (Depends-on): Add link-warning.
11205         (Makefile.am): Update rules accordingly.
11206         * modules/langinfo (Depends-on, Makefile.am): Likewise.
11207         * modules/locale (Depends-on, Makefile.am): Likewise.
11208         * modules/sys_file (Makefile.am): Likewise.
11209         * modules/getopt-posix (Makefile.am): Delete unused link warning
11210         efforts.
11211         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
11212         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
11213         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
11214         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
11215
11216         stdio: remove unused variables
11217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
11218         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
11219         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11220
11221         tests: test more substitute headers
11222         * modules/ctype-tests: New file.
11223         * modules/dirent-tests: Likewise.
11224         * modules/spawn-tests: Likewise.
11225         * modules/sys_file-tests: Likewise.
11226         * modules/sys_ioctl-tests: Likewise.
11227         * modules/sys_wait-tests: Likewise.
11228         * tests/test-ctype.c: Likewise.
11229         * tests/test-dirent.c: Likewise.
11230         * tests/test-spawn.c: Likewise.
11231         * tests/test-sys_file.c: Likewise.
11232         * tests/test-sys_ioctl.c: Likewise.
11233         * tests/test-sys_wait.c: Likewise.
11234         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
11235         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
11236         whether or not flock is in use.
11237
11238         tests: remove License section from module
11239         * modules/arpa_inet-tests: Remove unneeded section.
11240         * modules/byteswap-tests: Likewise.
11241         * modules/ceilf-tests: Likewise.
11242         * modules/ceill-tests: Likewise.
11243         * modules/crypto/des-tests: Likewise.
11244         * modules/crypto/gc-arcfour-tests: Likewise.
11245         * modules/crypto/gc-arctwo-tests: Likewise.
11246         * modules/crypto/gc-des-tests: Likewise.
11247         * modules/crypto/gc-hmac-md5-tests: Likewise.
11248         * modules/crypto/gc-hmac-sha1-tests: Likewise.
11249         * modules/crypto/gc-md2-tests: Likewise.
11250         * modules/crypto/gc-md4-tests: Likewise.
11251         * modules/crypto/gc-md5-tests: Likewise.
11252         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
11253         * modules/crypto/gc-rijndael-tests: Likewise.
11254         * modules/crypto/gc-sha1-tests: Likewise.
11255         * modules/crypto/gc-tests: Likewise.
11256         * modules/crypto/md2-tests: Likewise.
11257         * modules/crypto/md4-tests: Likewise.
11258         * modules/fcntl-h-tests: Likewise.
11259         * modules/floorf-tests: Likewise.
11260         * modules/floorl-tests: Likewise.
11261         * modules/frexp-nolibm-tests: Likewise.
11262         * modules/frexp-tests: Likewise.
11263         * modules/frexpl-nolibm-tests: Likewise.
11264         * modules/frexpl-tests: Likewise.
11265         * modules/getaddrinfo-tests: Likewise.
11266         * modules/inttypes-tests: Likewise.
11267         * modules/isfinite-tests: Likewise.
11268         * modules/isinf-tests: Likewise.
11269         * modules/ldexpl-tests: Likewise.
11270         * modules/locale-tests: Likewise.
11271         * modules/math-tests: Likewise.
11272         * modules/netdb-tests: Likewise.
11273         * modules/netinet_in-tests: Likewise.
11274         * modules/printf-frexp-tests: Likewise.
11275         * modules/printf-frexpl-tests: Likewise.
11276         * modules/priv-set-tests: Likewise.
11277         * modules/random_r-tests: Likewise.
11278         * modules/round-tests: Likewise.
11279         * modules/roundf-tests: Likewise.
11280         * modules/roundl-tests: Likewise.
11281         * modules/search-tests: Likewise.
11282         * modules/select-tests: Likewise.
11283         * modules/signal-tests: Likewise.
11284         * modules/stdbool-tests: Likewise.
11285         * modules/stddef-tests: Likewise.
11286         * modules/stdint-tests: Likewise.
11287         * modules/stdio-tests: Likewise.
11288         * modules/stdlib-tests: Likewise.
11289         * modules/string-tests: Likewise.
11290         * modules/strings-tests: Likewise.
11291         * modules/sys_select-tests: Likewise.
11292         * modules/sys_socket-tests: Likewise.
11293         * modules/sys_stat-tests: Likewise.
11294         * modules/sys_time-tests: Likewise.
11295         * modules/sys_utsname-tests: Likewise.
11296         * modules/sysexits-tests: Likewise.
11297         * modules/time-tests: Likewise.
11298         * modules/trunc-tests: Likewise.
11299         * modules/truncf-tests: Likewise.
11300         * modules/truncl-tests: Likewise.
11301         * modules/tsearch-tests: Likewise.
11302         * modules/unistd-tests: Likewise.
11303         * modules/wchar-tests: Likewise.
11304         * modules/wctype-tests: Likewise.
11305
11306         tests: fix license on several tests
11307         * tests/test-des.c: Update to GPLv3+.
11308         * tests/test-flock.c: Likewise.
11309         * tests/test-fsync.c: Likewise.
11310         * tests/test-futimens.h: Likewise.
11311         * tests/test-gc-arcfour.c: Likewise.
11312         * tests/test-gc-arctwo.c: Likewise.
11313         * tests/test-gc-des.c: Likewise.
11314         * tests/test-gc-hmac-md5.c: Likewise.
11315         * tests/test-gc-hmac-sha1.c: Likewise.
11316         * tests/test-gc-md2.c: Likewise.
11317         * tests/test-gc-md4.c: Likewise.
11318         * tests/test-gc-md5.c: Likewise.
11319         * tests/test-gc-pbkdf2-sha1.c: Likewise.
11320         * tests/test-gc-rijndael.c: Likewise.
11321         * tests/test-gc-sha1.c: Likewise.
11322         * tests/test-gc.c: Likewise.
11323         * tests/test-getcwd.c: Likewise.
11324         * tests/test-link.c: Likewise.
11325         * tests/test-link.h: Likewise.
11326         * tests/test-lutimens.h: Likewise.
11327         * tests/test-md2.c: Likewise.
11328         * tests/test-md4.c: Likewise.
11329         * tests/test-mkdir.h: Likewise.
11330         * tests/test-rename.c: Likewise.
11331         * tests/test-rename.h: Likewise.
11332         * tests/test-safe-alloc.c: Likewise.
11333         * tests/test-utimens-common.h: Likewise.
11334         * tests/test-utimens.h: Likewise.
11335
11336         maint: sync license texts
11337         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
11338         * doc/gpl-3.0.texi: Revert copyright year update.
11339         * doc/lgpl-3.0.texi: Likewise.
11340
11341 2009-12-29  Jim Meyering  <meyering@redhat.com>
11342
11343         update nearly all FSF copyright year lists to include 2009
11344         The files named by the following are exempted:
11345             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
11346               test -f "$dst" && { echo "$dst"; continue; }
11347               test -d "$dst" || continue
11348               echo "$dst"/$(basename "$src")
11349             done > exempt
11350             git ls-files tests/unictype >> exempt
11351         In the remaining files, convert to all-interval notation if
11352         - there is already at least one year interval like 2000-2003
11353         - the file is maintained by me
11354         - the file is in lib/uni*/, where that style already prevails
11355         Otherwise, use update-copyright's default.
11356
11357 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11358         and Eric Blake  <ebb9@byu.net>
11359
11360         tests: don't require debug system() to pass
11361         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
11362         * tests/test-rmdir.h (test_rmdir_func): Likewise.
11363         * tests/test-unlink.h (test_unlink_func): Likewise.
11364         * tests/test-fstatat.c (main): ...into callers.
11365         * tests/test-lstat.c (main): Likewise.
11366         * tests/test-rmdir.c (main): Likewise.
11367         * tests/test-unlink.c (main): Likewise.
11368         * tests/test-unlinkat.c (main): Likewise.
11369         * tests/test-areadlink-with-size.c (main): Don't require a
11370         debug-only system call to pass, aiding cross-testing to mingw.
11371         * tests/test-areadlink.c (main): Likewise.
11372         * tests/test-areadlinkat-with-size.c (main): Likewise.
11373         * tests/test-areadlinkat.c (main): Likewise.
11374         * tests/test-canonicalize-lgpl.c (main): Likewise.
11375         * tests/test-canonicalize.c (main): Likewise.
11376         * tests/test-chown.c (main): Likewise.
11377         * tests/test-fchownat.c (main): Likewise.
11378         * tests/test-lchown.c (main): Likewise.
11379         * tests/test-fdutimensat.c (main): Likewise.
11380         * tests/test-futimens.c (main): Likewise.
11381         * tests/test-link.c (main): Likewise.
11382         * tests/test-linkat.c (main): Likewise.
11383         * tests/test-mkdir.c (main): Likewise.
11384         * tests/test-mkdirat.c (main): Likewise.
11385         * tests/test-mkfifo.c (main): Likewise.
11386         * tests/test-mkfifoat.c (main): Likewise.
11387         * tests/test-mknod.c (main): Likewise.
11388         * tests/test-readlink.c (main): Likewise.
11389         * tests/test-remove.c (main): Likewise.
11390         * tests/test-rename.c (main): Likewise.
11391         * tests/test-renameat.c (main): Likewise.
11392         * tests/test-symlink.c (main): Likewise.
11393         * tests/test-symlinkat.c (main): Likewise.
11394         * tests/test-utimens.c (main): Likewise.
11395         * tests/test-utimensat.c (main): Likewise.
11396
11397 2009-12-29  Simon Josefsson  <simon@josefsson.org>
11398
11399         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
11400         on $(UNUSED_PARAMETER_H) to avoid build failure.
11401
11402 2009-12-28  Jim Meyering  <meyering@redhat.com>
11403
11404         update-copyright: you may specify a max. line length other than 72
11405         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11406
11407         maint: use consistent FSF copyright line syntax
11408         * lib/posixtm.c: Add missing comma in FSF copyright line.
11409         * lib/posixtm.h: Likewise.
11410         * lib/getugroups.c: Add missing ", Inc.".
11411
11412         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
11413         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
11414         FSF copyright line.  Remove trailing blanks.
11415
11416 2009-12-28  Eric Blake  <ebb9@byu.net>
11417
11418         test-dup2: reduce dependencies
11419         * modules/cloexec (Configure.ac): Set witness.
11420         * modules/dup2-tests (Depends-on): Drop cloexec.
11421         * tests/test-dup2.c (main): Skip portion of test if cloexec module
11422         not present.
11423         Suggested by Bruno Haible.
11424
11425 2009-12-26  Bruno Haible  <bruno@clisp.org>
11426
11427         Remove an unneeded dependency.
11428         * modules/fseterr (Depends-on): Remove dup2.
11429
11430 2009-12-26  Eric Blake  <ebb9@byu.net>
11431
11432         tests: use macros.h in more places
11433         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
11434         (ASSERT_STREAM): Provide default of stderr.
11435         * tests/test-dirent-safer.c: Include macros.h, using alternate
11436         stream for assertions.
11437         * tests/test-dup-safer.c: Likewise.
11438         * tests/test-freopen-safer.c: Likewise.
11439         * tests/test-getopt.c: Likewise.
11440         * tests/test-openat-safer.c: Likewise.
11441         * tests/test-pipe.c: Likewise.
11442         * tests/test-popen-safer.c: Likewise.
11443         * modules/dirent-safer-tests (Files): Include macros.h.
11444         * modules/unistd-safer-tests (Files): Likewise.
11445         * modules/freopen-safer-tests (Files): Likewise.
11446         * modules/getopt-posix-tests (Files): Likewise.
11447         * modules/openat-safer-tests (Files): Likewise.
11448         * modules/pipe-tests (Files): Likewise.
11449
11450 2009-12-26  Bruno Haible  <bruno@clisp.org>
11451
11452         javacomp: Portability fix.
11453         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
11454         that it also works on Solaris.
11455
11456 2009-12-26  Bruno Haible  <bruno@clisp.org>
11457
11458         localename: Fix storage allocation of gl_locale_name_thread's result.
11459         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
11460         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
11461         all platforms that have 'uselocale'.
11462         (gl_locale_name_thread_unsafe): New function, extracted from
11463         gl_locale_name_thread.
11464         (gl_locale_name_thread): Call struniq on all platforms that have
11465         'uselocale'.
11466         * tests/test-localename.c (test_locale_name_thread): Check that the
11467         resulting strings are permanently allocated.
11468         * modules/localename-tests (Depends-on): Add strdup.
11469
11470 2009-12-26  Bruno Haible  <bruno@clisp.org>
11471
11472         * tests/test-localename.c (categories): Fill in the strings.
11473
11474 2009-12-26  Jim Meyering  <meyering@redhat.com>
11475
11476         isdir: complete the removal of m4/isdir.m4
11477         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
11478
11479         isdir: clean up, since at least grep still uses it
11480         * lib/isdir.c: Include "isdir.h".
11481         (S_ISDIR): Remove now-unneeded definition.
11482         * modules/isdir (Files): Add lib/isdir.h.
11483         * lib/isdir.h: New file, with declaration.
11484         * m4/isdir.m4: Remove file -- unneeded.
11485
11486 2009-12-25  Bruno Haible  <bruno@clisp.org>
11487
11488         selinux-h: Make generated .h files standalone.
11489         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
11490         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
11491         * lib/se-selinux.in.h: Likewise.
11492         * modules/selinux-h (Depends-on): Add unused-parameter.
11493         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
11494         selinux/selinux.h and selinux/context.h.
11495         Suggested by Eric Blake.
11496
11497 2009-12-25  Bruno Haible  <bruno@clisp.org>
11498
11499         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
11500         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
11501         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
11502         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
11503         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
11504
11505 2009-12-24  Bruno Haible  <bruno@clisp.org>
11506
11507         openat: Fix warning.
11508         * lib/openat-proc.c: Include <unistd.h>.
11509
11510 2009-12-24  Bruno Haible  <bruno@clisp.org>
11511
11512         New module 'unused-parameter'.
11513         * build-aux/unused-parameter.h: New file, extracted from earlier
11514         gnulib-common.m4.
11515         * modules/unused-parameter: New file.
11516         * lib/unistr.h: Include unused-parameter.h.
11517         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
11518         _GL_UNUSED.
11519         * modules/unistr/base (Depends-on): Add unused-parameter.
11520
11521 2009-12-24  Bruno Haible  <bruno@clisp.org>
11522
11523         Add missing dependencies to 'extensions' module.
11524         * m4/extensions.m4: Add comment.
11525         * modules/accept4 (Depends-on): Add extensions.
11526         * modules/dup3 (Depends-on): Likewise.
11527         * modules/fcntl (Depends-on): Likewise.
11528         * modules/futimens (Depends-on): Likewise.
11529         * modules/mknod (Depends-on): Likewise.
11530         * modules/pipe2 (Depends-on): Likewise.
11531         * modules/stat-time (Depends-on): Likewise.
11532         * modules/strcasestr-simple (Depends-on): Likewise.
11533         * modules/strsignal (Depends-on): Likewise.
11534         * modules/utimensat (Depends-on): Likewise.
11535         * modules/localcharset (Depends-on): Likewise. Needed because of
11536         gl_FCNTL_O_FLAGS.
11537         * modules/wcrtomb (Depends-on): Likewise. Needed because of
11538         AC_TYPE_MBSTATE_T.
11539         * modules/wcsnrtombs (Depends-on): Likewise.
11540         * modules/wcsrtombs (Depends-on): Likewise.
11541
11542 2009-12-24  Bruno Haible  <bruno@clisp.org>
11543
11544         binary-io: Avoid gcc warning due to SET_BINARY.
11545         * lib/binary-io.h (SET_BINARY): Cast the result to void.
11546         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
11547
11548 2009-12-24  Bruno Haible  <bruno@clisp.org>
11549
11550         Avoid future namespace pollution on glibc systems.
11551         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
11552         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
11553         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
11554         glibc systems.
11555
11556 2009-12-24  Bruno Haible  <bruno@clisp.org>
11557
11558         Refactor common macros used in tests.
11559         * tests/macros.h: New file.
11560         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
11561         and/or <stdlib.h>, if appropriate.
11562         (ASSERT, SIZEOF): Remove macros.
11563         * tests/test-areadlink-with-size.c: Likewise.
11564         * tests/test-areadlinkat.c: Likewise.
11565         * tests/test-areadlinkat-with-size.c: Likewise.
11566         * tests/test-argmatch.c: Likewise.
11567         * tests/test-argv-iter.c: Likewise.
11568         * tests/test-array-mergesort.c: Likewise.
11569         * tests/test-array_list.c: Likewise.
11570         * tests/test-array_oset.c: Likewise.
11571         * tests/test-avltree_list.c: Likewise.
11572         * tests/test-avltree_oset.c: Likewise.
11573         * tests/test-avltreehash_list.c: Likewise.
11574         * tests/test-base64.c: Likewise.
11575         * tests/test-binary-io.c: Likewise.
11576         * tests/test-bitrotate.c: Likewise.
11577         * tests/test-btowc.c: Likewise.
11578         * tests/test-byteswap.c: Likewise.
11579         * tests/test-c-ctype.c: Likewise.
11580         * tests/test-c-stack.c: Likewise.
11581         * tests/test-c-strcasecmp.c: Likewise.
11582         * tests/test-c-strcasestr.c: Likewise.
11583         * tests/test-c-strncasecmp.c: Likewise.
11584         * tests/test-c-strstr.c: Likewise.
11585         * tests/test-canonicalize-lgpl.c: Likewise.
11586         * tests/test-canonicalize.c: Likewise.
11587         * tests/test-carray_list.c: Likewise.
11588         * tests/test-ceilf1.c: Likewise.
11589         * tests/test-ceilf2.c: Likewise.
11590         * tests/test-ceill.c: Likewise.
11591         * tests/test-chown.c: Likewise.
11592         * tests/test-cloexec.c: Likewise.
11593         * tests/test-copy-acl.c: Likewise.
11594         * tests/test-copy-file.c: Likewise.
11595         * tests/test-count-one-bits.c: Likewise.
11596         * tests/test-dprintf-posix.c: Likewise.
11597         * tests/test-dup2.c: Likewise.
11598         * tests/test-dup3.c: Likewise.
11599         * tests/test-duplocale.c: Likewise.
11600         * tests/test-fbufmode.c: Likewise.
11601         * tests/test-fchdir.c: Likewise.
11602         * tests/test-fchownat.c: Likewise.
11603         * tests/test-fcntl-safer.c: Likewise.
11604         * tests/test-fcntl.c: Likewise.
11605         * tests/test-fdopendir.c: Likewise.
11606         * tests/test-fdutimensat.c: Likewise.
11607         * tests/test-fflush2.c: Likewise.
11608         * tests/test-file-has-acl.c: Likewise.
11609         * tests/test-filevercmp.c: Likewise.
11610         * tests/test-flock.c: Likewise.
11611         * tests/test-floorf1.c: Likewise.
11612         * tests/test-floorf2.c: Likewise.
11613         * tests/test-floorl.c: Likewise.
11614         * tests/test-fnmatch.c: Likewise.
11615         * tests/test-fopen.h: Likewise.
11616         * tests/test-fpending.c: Likewise.
11617         * tests/test-fprintf-posix.c: Likewise.
11618         * tests/test-fpurge.c: Likewise.
11619         * tests/test-freadable.c: Likewise.
11620         * tests/test-freadahead.c: Likewise.
11621         * tests/test-freading.c: Likewise.
11622         * tests/test-freadptr.c: Likewise.
11623         * tests/test-freadptr2.c: Likewise.
11624         * tests/test-freadseek.c: Likewise.
11625         * tests/test-freopen.c: Likewise.
11626         * tests/test-frexp.c: Likewise.
11627         * tests/test-frexpl.c: Likewise.
11628         * tests/test-fseek.c: Likewise.
11629         * tests/test-fseeko.c: Likewise.
11630         * tests/test-fstatat.c: Likewise.
11631         * tests/test-fstrcmp.c: Likewise.
11632         * tests/test-fsync.c: Likewise.
11633         * tests/test-ftell.c: Likewise.
11634         * tests/test-ftello.c: Likewise.
11635         * tests/test-func.c: Likewise.
11636         * tests/test-futimens.c: Likewise.
11637         * tests/test-fwritable.c: Likewise.
11638         * tests/test-fwriting.c: Likewise.
11639         * tests/test-getcwd.c: Likewise.
11640         * tests/test-getdate.c: Likewise.
11641         * tests/test-getdelim.c: Likewise.
11642         * tests/test-getdtablesize.c: Likewise.
11643         * tests/test-getgroups.c: Likewise.
11644         * tests/test-getline.c: Likewise.
11645         * tests/test-getndelim2.c: Likewise.
11646         * tests/test-glob.c: Likewise.
11647         * tests/test-hash.c: Likewise.
11648         * tests/test-i-ring.c: Likewise.
11649         * tests/test-iconv-utf.c: Likewise.
11650         * tests/test-iconv.c: Likewise.
11651         * tests/test-idpriv-drop.c: Likewise.
11652         * tests/test-idpriv-droptemp.c: Likewise.
11653         * tests/test-inet_ntop.c: Likewise.
11654         * tests/test-inet_pton.c: Likewise.
11655         * tests/test-isblank.c: Likewise.
11656         * tests/test-isfinite.c: Likewise.
11657         * tests/test-isinf.c: Likewise.
11658         * tests/test-isnan.c: Likewise.
11659         * tests/test-isnand.h: Likewise.
11660         * tests/test-isnanf.h: Likewise.
11661         * tests/test-isnanl.h: Likewise.
11662         * tests/test-lchown.c: Likewise.
11663         * tests/test-ldexpl.c: Likewise.
11664         * tests/test-link.c: Likewise.
11665         * tests/test-linkat.c: Likewise.
11666         * tests/test-linked_list.c: Likewise.
11667         * tests/test-linkedhash_list.c: Likewise.
11668         * tests/test-localename.c: Likewise.
11669         * tests/test-lseek.c: Likewise.
11670         * tests/test-lstat.c: Likewise.
11671         * tests/test-mbmemcasecmp.c: Likewise.
11672         * tests/test-mbmemcasecoll.c: Likewise.
11673         * tests/test-mbrtowc.c: Likewise.
11674         * tests/test-mbscasecmp.c: Likewise.
11675         * tests/test-mbscasestr1.c: Likewise.
11676         * tests/test-mbscasestr2.c: Likewise.
11677         * tests/test-mbscasestr3.c: Likewise.
11678         * tests/test-mbscasestr4.c: Likewise.
11679         * tests/test-mbschr.c: Likewise.
11680         * tests/test-mbscspn.c: Likewise.
11681         * tests/test-mbsinit.c: Likewise.
11682         * tests/test-mbsncasecmp.c: Likewise.
11683         * tests/test-mbsnrtowcs.c: Likewise.
11684         * tests/test-mbspbrk.c: Likewise.
11685         * tests/test-mbspcasecmp.c: Likewise.
11686         * tests/test-mbsrchr.c: Likewise.
11687         * tests/test-mbsrtowcs.c: Likewise.
11688         * tests/test-mbsspn.c: Likewise.
11689         * tests/test-mbsstr1.c: Likewise.
11690         * tests/test-mbsstr2.c: Likewise.
11691         * tests/test-mbsstr3.c: Likewise.
11692         * tests/test-memchr.c: Likewise.
11693         * tests/test-memchr2.c: Likewise.
11694         * tests/test-memcmp.c: Likewise.
11695         * tests/test-memmem.c: Likewise.
11696         * tests/test-memrchr.c: Likewise.
11697         * tests/test-mkdir.c: Likewise.
11698         * tests/test-mkdirat.c: Likewise.
11699         * tests/test-mkfifo.c: Likewise.
11700         * tests/test-mkfifoat.c: Likewise.
11701         * tests/test-mknod.c: Likewise.
11702         * tests/test-nanosleep.c: Likewise.
11703         * tests/test-nl_langinfo.c: Likewise.
11704         * tests/test-obstack-printf.c: Likewise.
11705         * tests/test-open.c: Likewise.
11706         * tests/test-openat.c: Likewise.
11707         * tests/test-pipe-filter-gi1.c: Likewise.
11708         * tests/test-pipe-filter-gi2-main.c: Likewise.
11709         * tests/test-pipe-filter-ii1.c: Likewise.
11710         * tests/test-pipe-filter-ii2-main.c: Likewise.
11711         * tests/test-pipe2.c: Likewise.
11712         * tests/test-popen.h: Likewise.
11713         * tests/test-posixtm.c: Likewise.
11714         * tests/test-pread.c: Likewise.
11715         * tests/test-printf-frexp.c: Likewise.
11716         * tests/test-printf-frexpl.c: Likewise.
11717         * tests/test-printf-posix.c: Likewise.
11718         * tests/test-priv-set.c: Likewise.
11719         * tests/test-quotearg.c: Likewise.
11720         * tests/test-random_r.c: Likewise.
11721         * tests/test-rawmemchr.c: Likewise.
11722         * tests/test-rbtree_list.c: Likewise.
11723         * tests/test-rbtree_oset.c: Likewise.
11724         * tests/test-rbtreehash_list.c: Likewise.
11725         * tests/test-readlink.c: Likewise.
11726         * tests/test-remove.c: Likewise.
11727         * tests/test-rename.c: Likewise.
11728         * tests/test-renameat.c: Likewise.
11729         * tests/test-rmdir.c: Likewise.
11730         * tests/test-round1.c: Likewise.
11731         * tests/test-roundf1.c: Likewise.
11732         * tests/test-roundl.c: Likewise.
11733         * tests/test-safe-alloc.c: Likewise.
11734         * tests/test-sameacls.c: Likewise.
11735         * tests/test-set-mode-acl.c: Likewise.
11736         * tests/test-setenv.c: Likewise.
11737         * tests/test-sigaction.c: Likewise.
11738         * tests/test-signbit.c: Likewise.
11739         * tests/test-sleep.c: Likewise.
11740         * tests/test-snprintf-posix.c: Likewise.
11741         * tests/test-snprintf.c: Likewise.
11742         * tests/test-sprintf-posix.c: Likewise.
11743         * tests/test-stat-time.c: Likewise.
11744         * tests/test-stat.c: Likewise.
11745         * tests/test-strcasestr.c: Likewise.
11746         * tests/test-strchrnul.c: Likewise.
11747         * tests/test-strerror.c: Likewise.
11748         * tests/test-striconv.c: Likewise.
11749         * tests/test-striconveh.c: Likewise.
11750         * tests/test-striconveha.c: Likewise.
11751         * tests/test-strsignal.c: Likewise.
11752         * tests/test-strstr.c: Likewise.
11753         * tests/test-strtod.c: Likewise.
11754         * tests/test-strverscmp.c: Likewise.
11755         * tests/test-symlink.c: Likewise.
11756         * tests/test-symlinkat.c: Likewise.
11757         * tests/test-trunc1.c: Likewise.
11758         * tests/test-trunc2.c: Likewise.
11759         * tests/test-truncf1.c: Likewise.
11760         * tests/test-truncf2.c: Likewise.
11761         * tests/test-truncl.c: Likewise.
11762         * tests/test-uname.c: Likewise.
11763         * tests/test-unlink.c: Likewise.
11764         * tests/test-unlinkat.c: Likewise.
11765         * tests/test-unsetenv.c: Likewise.
11766         * tests/test-usleep.c: Likewise.
11767         * tests/test-utimens.c: Likewise.
11768         * tests/test-utimensat.c: Likewise.
11769         * tests/test-vasnprintf-posix.c: Likewise.
11770         * tests/test-vasnprintf-posix2.c: Likewise.
11771         * tests/test-vasnprintf.c: Likewise.
11772         * tests/test-vasprintf-posix.c: Likewise.
11773         * tests/test-vasprintf.c: Likewise.
11774         * tests/test-vdprintf-posix.c: Likewise.
11775         * tests/test-vfprintf-posix.c: Likewise.
11776         * tests/test-vprintf-posix.c: Likewise.
11777         * tests/test-vsnprintf-posix.c: Likewise.
11778         * tests/test-vsnprintf.c: Likewise.
11779         * tests/test-vsprintf-posix.c: Likewise.
11780         * tests/test-wcrtomb.c: Likewise.
11781         * tests/test-wcsnrtombs.c: Likewise.
11782         * tests/test-wcsrtombs.c: Likewise.
11783         * tests/test-wctype.c: Likewise.
11784         * tests/test-wcwidth.c: Likewise.
11785         * tests/test-xfprintf-posix.c: Likewise.
11786         * tests/test-xmemdup0.c: Likewise.
11787         * tests/test-xprintf-posix.c: Likewise.
11788         * tests/test-xvasprintf.c: Likewise.
11789         * tests/unicase/test-locale-language.c: Likewise.
11790         * tests/unicase/test-mapping-part1.h: Likewise.
11791         * tests/unicase/test-predicate-part1.h: Likewise.
11792         * tests/unicase/test-u8-casecmp.c: Likewise.
11793         * tests/unicase/test-u8-casecoll.c: Likewise.
11794         * tests/unicase/test-u8-casefold.c: Likewise.
11795         * tests/unicase/test-u8-is-cased.c: Likewise.
11796         * tests/unicase/test-u8-is-casefolded.c: Likewise.
11797         * tests/unicase/test-u8-is-lowercase.c: Likewise.
11798         * tests/unicase/test-u8-is-titlecase.c: Likewise.
11799         * tests/unicase/test-u8-is-uppercase.c: Likewise.
11800         * tests/unicase/test-u8-tolower.c: Likewise.
11801         * tests/unicase/test-u8-totitle.c: Likewise.
11802         * tests/unicase/test-u8-toupper.c: Likewise.
11803         * tests/unicase/test-u16-casecmp.c: Likewise.
11804         * tests/unicase/test-u16-casecoll.c: Likewise.
11805         * tests/unicase/test-u16-casefold.c: Likewise.
11806         * tests/unicase/test-u16-is-cased.c: Likewise.
11807         * tests/unicase/test-u16-is-casefolded.c: Likewise.
11808         * tests/unicase/test-u16-is-lowercase.c: Likewise.
11809         * tests/unicase/test-u16-is-titlecase.c: Likewise.
11810         * tests/unicase/test-u16-is-uppercase.c: Likewise.
11811         * tests/unicase/test-u16-tolower.c: Likewise.
11812         * tests/unicase/test-u16-totitle.c: Likewise.
11813         * tests/unicase/test-u16-toupper.c: Likewise.
11814         * tests/unicase/test-u32-casecmp.c: Likewise.
11815         * tests/unicase/test-u32-casecoll.c: Likewise.
11816         * tests/unicase/test-u32-casefold.c: Likewise.
11817         * tests/unicase/test-u32-is-cased.c: Likewise.
11818         * tests/unicase/test-u32-is-casefolded.c: Likewise.
11819         * tests/unicase/test-u32-is-lowercase.c: Likewise.
11820         * tests/unicase/test-u32-is-titlecase.c: Likewise.
11821         * tests/unicase/test-u32-is-uppercase.c: Likewise.
11822         * tests/unicase/test-u32-tolower.c: Likewise.
11823         * tests/unicase/test-u32-totitle.c: Likewise.
11824         * tests/unicase/test-u32-toupper.c: Likewise.
11825         * tests/unicase/test-ulc-casecmp.c: Likewise.
11826         * tests/unicase/test-ulc-casecoll.c: Likewise.
11827         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11828         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11829         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11830         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11831         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11832         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11833         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11834         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11835         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11836         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11837         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11838         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11839         * tests/unictype/test-bidi_byname.c: Likewise.
11840         * tests/unictype/test-bidi_name.c: Likewise.
11841         * tests/unictype/test-bidi_of.c: Likewise.
11842         * tests/unictype/test-bidi_test.c: Likewise.
11843         * tests/unictype/test-block_list.c: Likewise.
11844         * tests/unictype/test-block_of.c: Likewise.
11845         * tests/unictype/test-block_test.c: Likewise.
11846         * tests/unictype/test-categ_and.c: Likewise.
11847         * tests/unictype/test-categ_and_not.c: Likewise.
11848         * tests/unictype/test-categ_byname.c: Likewise.
11849         * tests/unictype/test-categ_name.c: Likewise.
11850         * tests/unictype/test-categ_none.c: Likewise.
11851         * tests/unictype/test-categ_of.c: Likewise.
11852         * tests/unictype/test-categ_or.c: Likewise.
11853         * tests/unictype/test-categ_test_withtable.c: Likewise.
11854         * tests/unictype/test-combining.c: Likewise.
11855         * tests/unictype/test-decdigit.c: Likewise.
11856         * tests/unictype/test-digit.c: Likewise.
11857         * tests/unictype/test-mirror.c: Likewise.
11858         * tests/unictype/test-numeric.c: Likewise.
11859         * tests/unictype/test-pr_byname.c: Likewise.
11860         * tests/unictype/test-pr_test.c: Likewise.
11861         * tests/unictype/test-predicate-part1.h: Likewise.
11862         * tests/unictype/test-scripts.c: Likewise.
11863         * tests/unictype/test-sy_c_ident.c: Likewise.
11864         * tests/unictype/test-sy_java_ident.c: Likewise.
11865         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
11866         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
11867         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
11868         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
11869         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
11870         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
11871         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
11872         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
11873         * tests/uninorm/test-canonical-decomposition.c: Likewise.
11874         * tests/uninorm/test-compat-decomposition.c: Likewise.
11875         * tests/uninorm/test-composition.c: Likewise.
11876         * tests/uninorm/test-decomposing-form.c: Likewise.
11877         * tests/uninorm/test-decomposition.c: Likewise.
11878         * tests/uninorm/test-u8-nfc.c: Likewise.
11879         * tests/uninorm/test-u8-nfd.c: Likewise.
11880         * tests/uninorm/test-u8-nfkc.c: Likewise.
11881         * tests/uninorm/test-u8-nfkd.c: Likewise.
11882         * tests/uninorm/test-u8-normcmp.c: Likewise.
11883         * tests/uninorm/test-u8-normcoll.c: Likewise.
11884         * tests/uninorm/test-u16-nfc.c: Likewise.
11885         * tests/uninorm/test-u16-nfd.c: Likewise.
11886         * tests/uninorm/test-u16-nfkc.c: Likewise.
11887         * tests/uninorm/test-u16-nfkd.c: Likewise.
11888         * tests/uninorm/test-u16-normcmp.c: Likewise.
11889         * tests/uninorm/test-u16-normcoll.c: Likewise.
11890         * tests/uninorm/test-u32-nfc.c: Likewise.
11891         * tests/uninorm/test-u32-nfd.c: Likewise.
11892         * tests/uninorm/test-u32-nfkc.c: Likewise.
11893         * tests/uninorm/test-u32-nfkd.c: Likewise.
11894         * tests/uninorm/test-u32-normalize-big.c: Likewise.
11895         * tests/uninorm/test-u32-normcmp.c: Likewise.
11896         * tests/uninorm/test-u32-normcoll.c: Likewise.
11897         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
11898         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11899         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11900         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11901         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
11902         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
11903         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11904         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11905         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11906         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11907         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11908         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11909         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11910         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11911         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11912         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11913         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11914         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11915         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11916         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11917         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11918         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11919         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
11920         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
11921         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
11922         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
11923         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
11924         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11925         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11926         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
11927         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
11928         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
11929         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
11930         * tests/uniwidth/test-u8-strwidth.c: Likewise.
11931         * tests/uniwidth/test-u8-width.c: Likewise.
11932         * tests/uniwidth/test-u16-strwidth.c: Likewise.
11933         * tests/uniwidth/test-u16-width.c: Likewise.
11934         * tests/uniwidth/test-u32-strwidth.c: Likewise.
11935         * tests/uniwidth/test-u32-width.c: Likewise.
11936         * tests/uniwidth/test-uc_width.c: Likewise.
11937         * tests/uniwidth/test-uc_width2.c: Likewise.
11938         * modules/acl-tests (Files): Add tests/macros.h.
11939         * modules/areadlink-tests (Files): Likewise.
11940         * modules/areadlink-with-size-tests (Files): Likewise.
11941         * modules/areadlinkat-tests (Files): Likewise.
11942         * modules/areadlinkat-with-size-tests (Files): Likewise.
11943         * modules/argmatch-tests (Files): Likewise.
11944         * modules/argv-iter-tests (Files): Likewise.
11945         * modules/array-list-tests (Files): Likewise.
11946         * modules/array-mergesort-tests (Files): Likewise.
11947         * modules/array-oset-tests (Files): Likewise.
11948         * modules/avltree-list-tests (Files): Likewise.
11949         * modules/avltree-oset-tests (Files): Likewise.
11950         * modules/avltreehash-list-tests (Files): Likewise.
11951         * modules/base64-tests (Files): Likewise.
11952         * modules/binary-io-tests (Files): Likewise.
11953         * modules/bitrotate-tests (Files): Likewise.
11954         * modules/btowc-tests (Files): Likewise.
11955         * modules/byteswap-tests (Files): Likewise.
11956         * modules/c-ctype-tests (Files): Likewise.
11957         * modules/c-stack-tests (Files): Likewise.
11958         * modules/c-strcase-tests (Files): Likewise.
11959         * modules/c-strcasestr-tests (Files): Likewise.
11960         * modules/c-strstr-tests (Files): Likewise.
11961         * modules/canonicalize-lgpl-tests (Files): Likewise.
11962         * modules/canonicalize-tests (Files): Likewise.
11963         * modules/carray-list-tests (Files): Likewise.
11964         * modules/ceilf-tests (Files): Likewise.
11965         * modules/ceill-tests (Files): Likewise.
11966         * modules/chown-tests (Files): Likewise.
11967         * modules/cloexec-tests (Files): Likewise.
11968         * modules/copy-file-tests (Files): Likewise.
11969         * modules/count-one-bits-tests (Files): Likewise.
11970         * modules/dprintf-posix-tests (Files): Likewise.
11971         * modules/dup2-tests (Files): Likewise.
11972         * modules/dup3-tests (Files): Likewise.
11973         * modules/duplocale-tests (Files): Likewise.
11974         * modules/fbufmode-tests (Files): Likewise.
11975         * modules/fchdir-tests (Files): Likewise.
11976         * modules/fcntl-safer-tests (Files): Likewise.
11977         * modules/fcntl-tests (Files): Likewise.
11978         * modules/fdopendir-tests (Files): Likewise.
11979         * modules/fdutimensat-tests (Files): Likewise.
11980         * modules/fflush-tests (Files): Likewise.
11981         * modules/filevercmp-tests (Files): Likewise.
11982         * modules/flock-tests (Files): Likewise.
11983         * modules/floorf-tests (Files): Likewise.
11984         * modules/floorl-tests (Files): Likewise.
11985         * modules/fnmatch-tests (Files): Likewise.
11986         * modules/fopen-safer-tests (Files): Likewise.
11987         * modules/fopen-tests (Files): Likewise.
11988         * modules/fpending-tests (Files): Likewise.
11989         * modules/fprintf-posix-tests (Files): Likewise.
11990         * modules/fpurge-tests (Files): Likewise.
11991         * modules/freadable-tests (Files): Likewise.
11992         * modules/freadahead-tests (Files): Likewise.
11993         * modules/freading-tests (Files): Likewise.
11994         * modules/freadptr-tests (Files): Likewise.
11995         * modules/freadseek-tests (Files): Likewise.
11996         * modules/freopen-tests (Files): Likewise.
11997         * modules/frexp-nolibm-tests (Files): Likewise.
11998         * modules/frexp-tests (Files): Likewise.
11999         * modules/frexpl-nolibm-tests (Files): Likewise.
12000         * modules/frexpl-tests (Files): Likewise.
12001         * modules/fseek-tests (Files): Likewise.
12002         * modules/fseeko-tests (Files): Likewise.
12003         * modules/fstrcmp-tests (Files): Likewise.
12004         * modules/fsync-tests (Files): Likewise.
12005         * modules/ftell-tests (Files): Likewise.
12006         * modules/ftello-tests (Files): Likewise.
12007         * modules/func-tests (Files): Likewise.
12008         * modules/futimens-tests (Files): Likewise.
12009         * modules/fwritable-tests (Files): Likewise.
12010         * modules/fwriting-tests (Files): Likewise.
12011         * modules/getcwd-tests (Files): Likewise.
12012         * modules/getdate-tests (Files): Likewise.
12013         * modules/getdelim-tests (Files): Likewise.
12014         * modules/getdtablesize-tests (Files): Likewise.
12015         * modules/getgroups-tests (Files): Likewise.
12016         * modules/getline-tests (Files): Likewise.
12017         * modules/getndelim2-tests (Files): Likewise.
12018         * modules/glob-tests (Files): Likewise.
12019         * modules/hash-tests (Files): Likewise.
12020         * modules/i-ring-tests (Files): Likewise.
12021         * modules/iconv-tests (Files): Likewise.
12022         * modules/iconv_open-utf-tests (Files): Likewise.
12023         * modules/idpriv-drop-tests (Files): Likewise.
12024         * modules/idpriv-droptemp-tests (Files): Likewise.
12025         * modules/inet_ntop-tests (Files): Likewise.
12026         * modules/inet_pton-tests (Files): Likewise.
12027         * modules/isblank-tests (Files): Likewise.
12028         * modules/isfinite-tests (Files): Likewise.
12029         * modules/isinf-tests (Files): Likewise.
12030         * modules/isnan-tests (Files): Likewise.
12031         * modules/isnand-nolibm-tests (Files): Likewise.
12032         * modules/isnand-tests (Files): Likewise.
12033         * modules/isnanf-nolibm-tests (Files): Likewise.
12034         * modules/isnanf-tests (Files): Likewise.
12035         * modules/isnanl-nolibm-tests (Files): Likewise.
12036         * modules/isnanl-tests (Files): Likewise.
12037         * modules/lchown-tests (Files): Likewise.
12038         * modules/ldexpl-tests (Files): Likewise.
12039         * modules/link-tests (Files): Likewise.
12040         * modules/linkat-tests (Files): Likewise.
12041         * modules/linked-list-tests (Files): Likewise.
12042         * modules/linkedhash-list-tests (Files): Likewise.
12043         * modules/localename-tests (Files): Likewise.
12044         * modules/lseek-tests (Files): Likewise.
12045         * modules/lstat-tests (Files): Likewise.
12046         * modules/mbmemcasecmp-tests (Files): Likewise.
12047         * modules/mbmemcasecoll-tests (Files): Likewise.
12048         * modules/mbrtowc-tests (Files): Likewise.
12049         * modules/mbscasecmp-tests (Files): Likewise.
12050         * modules/mbscasestr-tests (Files): Likewise.
12051         * modules/mbschr-tests (Files): Likewise.
12052         * modules/mbscspn-tests (Files): Likewise.
12053         * modules/mbsinit-tests (Files): Likewise.
12054         * modules/mbsncasecmp-tests (Files): Likewise.
12055         * modules/mbsnrtowcs-tests (Files): Likewise.
12056         * modules/mbspbrk-tests (Files): Likewise.
12057         * modules/mbspcasecmp-tests (Files): Likewise.
12058         * modules/mbsrchr-tests (Files): Likewise.
12059         * modules/mbsrtowcs-tests (Files): Likewise.
12060         * modules/mbsspn-tests (Files): Likewise.
12061         * modules/mbsstr-tests (Files): Likewise.
12062         * modules/memchr-tests (Files): Likewise.
12063         * modules/memchr2-tests (Files): Likewise.
12064         * modules/memcmp-tests (Files): Likewise.
12065         * modules/memmem-tests (Files): Likewise.
12066         * modules/memrchr-tests (Files): Likewise.
12067         * modules/mkdir-tests (Files): Likewise.
12068         * modules/mkfifo-tests (Files): Likewise.
12069         * modules/mkfifoat-tests (Files): Likewise.
12070         * modules/mknod-tests (Files): Likewise.
12071         * modules/nanosleep-tests (Files): Likewise.
12072         * modules/nl_langinfo-tests (Files): Likewise.
12073         * modules/obstack-printf-tests (Files): Likewise.
12074         * modules/open-tests (Files): Likewise.
12075         * modules/openat-tests (Files): Likewise.
12076         * modules/pipe-filter-gi-tests (Files): Likewise.
12077         * modules/pipe-filter-ii-tests (Files): Likewise.
12078         * modules/pipe2-tests (Files): Likewise.
12079         * modules/popen-safer-tests (Files): Likewise.
12080         * modules/popen-tests (Files): Likewise.
12081         * modules/posixtm-tests (Files): Likewise.
12082         * modules/pread-tests (Files): Likewise.
12083         * modules/printf-frexp-tests (Files): Likewise.
12084         * modules/printf-frexpl-tests (Files): Likewise.
12085         * modules/printf-posix-tests (Files): Likewise.
12086         * modules/priv-set-tests (Files): Likewise.
12087         * modules/quotearg-tests (Files): Likewise.
12088         * modules/random_r-tests (Files): Likewise.
12089         * modules/rawmemchr-tests (Files): Likewise.
12090         * modules/rbtree-list-tests (Files): Likewise.
12091         * modules/rbtree-oset-tests (Files): Likewise.
12092         * modules/rbtreehash-list-tests (Files): Likewise.
12093         * modules/readlink-tests (Files): Likewise.
12094         * modules/remove-tests (Files): Likewise.
12095         * modules/rename-tests (Files): Likewise.
12096         * modules/renameat-tests (Files): Likewise.
12097         * modules/rmdir-tests (Files): Likewise.
12098         * modules/round-tests (Files): Likewise.
12099         * modules/roundf-tests (Files): Likewise.
12100         * modules/roundl-tests (Files): Likewise.
12101         * modules/safe-alloc-tests (Files): Likewise.
12102         * modules/setenv-tests (Files): Likewise.
12103         * modules/sigaction-tests (Files): Likewise.
12104         * modules/signbit-tests (Files): Likewise.
12105         * modules/sleep-tests (Files): Likewise.
12106         * modules/snprintf-posix-tests (Files): Likewise.
12107         * modules/snprintf-tests (Files): Likewise.
12108         * modules/sprintf-posix-tests (Files): Likewise.
12109         * modules/stat-tests (Files): Likewise.
12110         * modules/stat-time-tests (Files): Likewise.
12111         * modules/strcasestr-tests (Files): Likewise.
12112         * modules/strchrnul-tests (Files): Likewise.
12113         * modules/strerror-tests (Files): Likewise.
12114         * modules/striconv-tests (Files): Likewise.
12115         * modules/striconveh-tests (Files): Likewise.
12116         * modules/striconveha-tests (Files): Likewise.
12117         * modules/strsignal-tests (Files): Likewise.
12118         * modules/strstr-tests (Files): Likewise.
12119         * modules/strtod-tests (Files): Likewise.
12120         * modules/strverscmp-tests (Files): Likewise.
12121         * modules/symlink-tests (Files): Likewise.
12122         * modules/symlinkat-tests (Files): Likewise.
12123         * modules/trunc-tests (Files): Likewise.
12124         * modules/truncf-tests (Files): Likewise.
12125         * modules/truncl-tests (Files): Likewise.
12126         * modules/uname-tests (Files): Likewise.
12127         * modules/unicase/cased-tests (Files): Likewise.
12128         * modules/unicase/ignorable-tests (Files): Likewise.
12129         * modules/unicase/locale-language-tests (Files): Likewise.
12130         * modules/unicase/tolower-tests (Files): Likewise.
12131         * modules/unicase/totitle-tests (Files): Likewise.
12132         * modules/unicase/toupper-tests (Files): Likewise.
12133         * modules/unicase/u8-casecmp-tests (Files): Likewise.
12134         * modules/unicase/u8-casecoll-tests (Files): Likewise.
12135         * modules/unicase/u8-casefold-tests (Files): Likewise.
12136         * modules/unicase/u8-is-cased-tests (Files): Likewise.
12137         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
12138         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
12139         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
12140         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
12141         * modules/unicase/u8-tolower-tests (Files): Likewise.
12142         * modules/unicase/u8-totitle-tests (Files): Likewise.
12143         * modules/unicase/u8-toupper-tests (Files): Likewise.
12144         * modules/unicase/u16-casecmp-tests (Files): Likewise.
12145         * modules/unicase/u16-casecoll-tests (Files): Likewise.
12146         * modules/unicase/u16-casefold-tests (Files): Likewise.
12147         * modules/unicase/u16-is-cased-tests (Files): Likewise.
12148         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
12149         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
12150         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
12151         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
12152         * modules/unicase/u16-tolower-tests (Files): Likewise.
12153         * modules/unicase/u16-totitle-tests (Files): Likewise.
12154         * modules/unicase/u16-toupper-tests (Files): Likewise.
12155         * modules/unicase/u32-casecmp-tests (Files): Likewise.
12156         * modules/unicase/u32-casecoll-tests (Files): Likewise.
12157         * modules/unicase/u32-casefold-tests (Files): Likewise.
12158         * modules/unicase/u32-is-cased-tests (Files): Likewise.
12159         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
12160         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
12161         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
12162         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
12163         * modules/unicase/u32-tolower-tests (Files): Likewise.
12164         * modules/unicase/u32-totitle-tests (Files): Likewise.
12165         * modules/unicase/u32-toupper-tests (Files): Likewise.
12166         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
12167         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
12168         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
12169         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
12170         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
12171         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
12172         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
12173         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
12174         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
12175         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
12176         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
12177         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
12178         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
12179         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
12180         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
12181         * modules/unictype/bidicategory-name-tests (Files): Likewise.
12182         * modules/unictype/bidicategory-of-tests (Files): Likewise.
12183         * modules/unictype/bidicategory-test-tests (Files): Likewise.
12184         * modules/unictype/block-list-tests (Files): Likewise.
12185         * modules/unictype/block-of-tests (Files): Likewise.
12186         * modules/unictype/block-test-tests (Files): Likewise.
12187         * modules/unictype/category-C-tests (Files): Likewise.
12188         * modules/unictype/category-Cc-tests (Files): Likewise.
12189         * modules/unictype/category-Cf-tests (Files): Likewise.
12190         * modules/unictype/category-Cn-tests (Files): Likewise.
12191         * modules/unictype/category-Co-tests (Files): Likewise.
12192         * modules/unictype/category-Cs-tests (Files): Likewise.
12193         * modules/unictype/category-L-tests (Files): Likewise.
12194         * modules/unictype/category-Ll-tests (Files): Likewise.
12195         * modules/unictype/category-Lm-tests (Files): Likewise.
12196         * modules/unictype/category-Lo-tests (Files): Likewise.
12197         * modules/unictype/category-Lt-tests (Files): Likewise.
12198         * modules/unictype/category-Lu-tests (Files): Likewise.
12199         * modules/unictype/category-M-tests (Files): Likewise.
12200         * modules/unictype/category-Mc-tests (Files): Likewise.
12201         * modules/unictype/category-Me-tests (Files): Likewise.
12202         * modules/unictype/category-Mn-tests (Files): Likewise.
12203         * modules/unictype/category-N-tests (Files): Likewise.
12204         * modules/unictype/category-Nd-tests (Files): Likewise.
12205         * modules/unictype/category-Nl-tests (Files): Likewise.
12206         * modules/unictype/category-No-tests (Files): Likewise.
12207         * modules/unictype/category-P-tests (Files): Likewise.
12208         * modules/unictype/category-Pc-tests (Files): Likewise.
12209         * modules/unictype/category-Pd-tests (Files): Likewise.
12210         * modules/unictype/category-Pe-tests (Files): Likewise.
12211         * modules/unictype/category-Pf-tests (Files): Likewise.
12212         * modules/unictype/category-Pi-tests (Files): Likewise.
12213         * modules/unictype/category-Po-tests (Files): Likewise.
12214         * modules/unictype/category-Ps-tests (Files): Likewise.
12215         * modules/unictype/category-S-tests (Files): Likewise.
12216         * modules/unictype/category-Sc-tests (Files): Likewise.
12217         * modules/unictype/category-Sk-tests (Files): Likewise.
12218         * modules/unictype/category-Sm-tests (Files): Likewise.
12219         * modules/unictype/category-So-tests (Files): Likewise.
12220         * modules/unictype/category-Z-tests (Files): Likewise.
12221         * modules/unictype/category-Zl-tests (Files): Likewise.
12222         * modules/unictype/category-Zp-tests (Files): Likewise.
12223         * modules/unictype/category-Zs-tests (Files): Likewise.
12224         * modules/unictype/category-and-not-tests (Files): Likewise.
12225         * modules/unictype/category-and-tests (Files): Likewise.
12226         * modules/unictype/category-byname-tests (Files): Likewise.
12227         * modules/unictype/category-name-tests (Files): Likewise.
12228         * modules/unictype/category-none-tests (Files): Likewise.
12229         * modules/unictype/category-of-tests (Files): Likewise.
12230         * modules/unictype/category-or-tests (Files): Likewise.
12231         * modules/unictype/category-test-withtable-tests (Files): Likewise.
12232         * modules/unictype/combining-class-tests (Files): Likewise.
12233         * modules/unictype/ctype-alnum-tests (Files): Likewise.
12234         * modules/unictype/ctype-alpha-tests (Files): Likewise.
12235         * modules/unictype/ctype-blank-tests (Files): Likewise.
12236         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
12237         * modules/unictype/ctype-digit-tests (Files): Likewise.
12238         * modules/unictype/ctype-graph-tests (Files): Likewise.
12239         * modules/unictype/ctype-lower-tests (Files): Likewise.
12240         * modules/unictype/ctype-print-tests (Files): Likewise.
12241         * modules/unictype/ctype-punct-tests (Files): Likewise.
12242         * modules/unictype/ctype-space-tests (Files): Likewise.
12243         * modules/unictype/ctype-upper-tests (Files): Likewise.
12244         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
12245         * modules/unictype/decimal-digit-tests (Files): Likewise.
12246         * modules/unictype/digit-tests (Files): Likewise.
12247         * modules/unictype/mirror-tests (Files): Likewise.
12248         * modules/unictype/numeric-tests (Files): Likewise.
12249         * modules/unictype/property-alphabetic-tests (Files): Likewise.
12250         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
12251         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
12252         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
12253         Likewise.
12254         * modules/unictype/property-bidi-block-separator-tests (Files):
12255         Likewise.
12256         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
12257         Likewise.
12258         * modules/unictype/property-bidi-common-separator-tests (Files):
12259         Likewise.
12260         * modules/unictype/property-bidi-control-tests (Files): Likewise.
12261         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
12262         Likewise.
12263         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
12264         Likewise.
12265         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
12266         Likewise.
12267         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
12268         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
12269         Likewise.
12270         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
12271         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
12272         Likewise.
12273         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
12274         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
12275         * modules/unictype/property-bidi-segment-separator-tests (Files):
12276         Likewise.
12277         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
12278         * modules/unictype/property-byname-tests (Files): Likewise.
12279         * modules/unictype/property-combining-tests (Files): Likewise.
12280         * modules/unictype/property-composite-tests (Files): Likewise.
12281         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
12282         * modules/unictype/property-dash-tests (Files): Likewise.
12283         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
12284         * modules/unictype/property-default-ignorable-code-point-tests (Files):
12285         Likewise.
12286         * modules/unictype/property-deprecated-tests (Files): Likewise.
12287         * modules/unictype/property-diacritic-tests (Files): Likewise.
12288         * modules/unictype/property-extender-tests (Files): Likewise.
12289         * modules/unictype/property-format-control-tests (Files): Likewise.
12290         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
12291         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
12292         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
12293         * modules/unictype/property-hex-digit-tests (Files): Likewise.
12294         * modules/unictype/property-hyphen-tests (Files): Likewise.
12295         * modules/unictype/property-id-continue-tests (Files): Likewise.
12296         * modules/unictype/property-id-start-tests (Files): Likewise.
12297         * modules/unictype/property-ideographic-tests (Files): Likewise.
12298         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
12299         * modules/unictype/property-ids-trinary-operator-tests (Files):
12300         Likewise.
12301         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
12302         * modules/unictype/property-iso-control-tests (Files): Likewise.
12303         * modules/unictype/property-join-control-tests (Files): Likewise.
12304         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
12305         * modules/unictype/property-line-separator-tests (Files): Likewise.
12306         * modules/unictype/property-logical-order-exception-tests (Files):
12307         Likewise.
12308         * modules/unictype/property-lowercase-tests (Files): Likewise.
12309         * modules/unictype/property-math-tests (Files): Likewise.
12310         * modules/unictype/property-non-break-tests (Files): Likewise.
12311         * modules/unictype/property-not-a-character-tests (Files): Likewise.
12312         * modules/unictype/property-numeric-tests (Files): Likewise.
12313         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
12314         * modules/unictype/property-other-default-ignorable-code-point-tests
12315         (Files): Likewise.
12316         * modules/unictype/property-other-grapheme-extend-tests (Files):
12317         Likewise.
12318         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
12319         * modules/unictype/property-other-id-start-tests (Files): Likewise.
12320         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
12321         * modules/unictype/property-other-math-tests (Files): Likewise.
12322         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
12323         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
12324         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
12325         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
12326         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
12327         * modules/unictype/property-private-use-tests (Files): Likewise.
12328         * modules/unictype/property-punctuation-tests (Files): Likewise.
12329         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
12330         * modules/unictype/property-radical-tests (Files): Likewise.
12331         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
12332         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
12333         * modules/unictype/property-space-tests (Files): Likewise.
12334         * modules/unictype/property-terminal-punctuation-tests (Files):
12335         Likewise.
12336         * modules/unictype/property-test-tests (Files): Likewise.
12337         * modules/unictype/property-titlecase-tests (Files): Likewise.
12338         * modules/unictype/property-unassigned-code-value-tests (Files):
12339         Likewise.
12340         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
12341         * modules/unictype/property-uppercase-tests (Files): Likewise.
12342         * modules/unictype/property-variation-selector-tests (Files): Likewise.
12343         * modules/unictype/property-white-space-tests (Files): Likewise.
12344         * modules/unictype/property-xid-continue-tests (Files): Likewise.
12345         * modules/unictype/property-xid-start-tests (Files): Likewise.
12346         * modules/unictype/property-zero-width-tests (Files): Likewise.
12347         * modules/unictype/scripts-tests (Files): Likewise.
12348         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
12349         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
12350         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
12351         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
12352         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
12353         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
12354         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
12355         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
12356         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
12357         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
12358         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
12359         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
12360         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
12361         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
12362         * modules/uninorm/composition-tests (Files): Likewise.
12363         * modules/uninorm/decomposing-form-tests (Files): Likewise.
12364         * modules/uninorm/decomposition-tests (Files): Likewise.
12365         * modules/uninorm/filter-tests (Files): Likewise.
12366         * modules/uninorm/nfc-tests (Files): Likewise.
12367         * modules/uninorm/nfd-tests (Files): Likewise.
12368         * modules/uninorm/nfkc-tests (Files): Likewise.
12369         * modules/uninorm/nfkd-tests (Files): Likewise.
12370         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
12371         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
12372         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
12373         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
12374         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
12375         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
12376         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
12377         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
12378         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
12379         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
12380         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
12381         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
12382         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
12383         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
12384         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
12385         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
12386         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
12387         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
12388         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
12389         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
12390         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
12391         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
12392         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
12393         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
12394         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
12395         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
12396         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
12397         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
12398         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
12399         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
12400         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
12401         * modules/uniwidth/u8-width-tests (Files): Likewise.
12402         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
12403         * modules/uniwidth/u16-width-tests (Files): Likewise.
12404         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
12405         * modules/uniwidth/u32-width-tests (Files): Likewise.
12406         * modules/uniwidth/width-tests (Files): Likewise.
12407         * modules/unlink-tests (Files): Likewise.
12408         * modules/unsetenv-tests (Files): Likewise.
12409         * modules/usleep-tests (Files): Likewise.
12410         * modules/utimens-tests (Files): Likewise.
12411         * modules/utimensat-tests (Files): Likewise.
12412         * modules/vasnprintf-posix-tests (Files): Likewise.
12413         * modules/vasnprintf-tests (Files): Likewise.
12414         * modules/vasprintf-posix-tests (Files): Likewise.
12415         * modules/vasprintf-tests (Files): Likewise.
12416         * modules/vdprintf-posix-tests (Files): Likewise.
12417         * modules/vfprintf-posix-tests (Files): Likewise.
12418         * modules/vprintf-posix-tests (Files): Likewise.
12419         * modules/vsnprintf-posix-tests (Files): Likewise.
12420         * modules/vsnprintf-tests (Files): Likewise.
12421         * modules/vsprintf-posix-tests (Files): Likewise.
12422         * modules/wcrtomb-tests (Files): Likewise.
12423         * modules/wcsnrtombs-tests (Files): Likewise.
12424         * modules/wcsrtombs-tests (Files): Likewise.
12425         * modules/wctype-tests (Files): Likewise.
12426         * modules/wcwidth-tests (Files): Likewise.
12427         * modules/xmemdup0-tests (Files): Likewise.
12428         * modules/xprintf-posix-tests (Files): Likewise.
12429         * modules/xvasprintf-tests (Files): Likewise.
12430
12431 2009-12-24  Eric Blake  <ebb9@byu.net>
12432
12433         test-nanosleep: fix typo
12434         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
12435         patch.
12436         Reported by Bruno Haible.
12437
12438 2009-12-24  Bruno Haible  <bruno@clisp.org>
12439
12440         Reduce namespace pollution on glibc systems.
12441         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
12442         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
12443         systems.
12444         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
12445         <getopt.h> on glibc systems.
12446         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
12447         systems.
12448         * lib/fcntl.c: Include <unistd.h> here instead.
12449
12450 2009-12-24  Bruno Haible  <bruno@clisp.org>
12451
12452         * lib/stdlib.in.h (includes): Fix typo in today's commit.
12453
12454 2009-12-24  Eric Blake  <ebb9@byu.net>
12455
12456         tests: add signature checks
12457         * tests/signature.h (SIGNATURE_CHECK): New file.
12458         * modules/atexit-tests (Files): Use it.
12459         * modules/btowc-tests (Files): Likewise.
12460         * modules/canonicalize-lgpl-tests (Files): Likewise.
12461         * modules/ceilf-tests (Files): Likewise.
12462         * modules/ceill-tests (Files): Likewise.
12463         * modules/chown-tests (Files): Likewise.
12464         * modules/dprintf-posix-tests (Files): Likewise.
12465         * modules/dup2-tests (Files): Likewise.
12466         * modules/dup3-tests (Files): Likewise.
12467         * modules/duplocale-tests (Files): Likewise.
12468         * modules/fchdir-tests (Files): Likewise.
12469         * modules/fcntl-tests (Files): Likewise.
12470         * modules/fdopendir-tests (Files): Likewise.
12471         * modules/fflush-tests (Files): Likewise.
12472         * modules/flock-tests (Files): Likewise.
12473         * modules/floorf-tests (Files): Likewise.
12474         * modules/floorl-tests (Files): Likewise.
12475         * modules/fnmatch-tests (Files): Likewise.
12476         * modules/fopen-tests (Files): Likewise.
12477         * modules/fprintf-posix-tests (Files): Likewise.
12478         * modules/freopen-tests (Files): Likewise.
12479         * modules/frexp-nolibm-tests (Files): Likewise.
12480         * modules/frexp-tests (Files): Likewise.
12481         * modules/frexpl-nolibm-tests (Files): Likewise.
12482         * modules/frexpl-tests (Files): Likewise.
12483         * modules/fseek-tests (Files): Likewise.
12484         * modules/fseeko-tests (Files): Likewise.
12485         * modules/fsync-tests (Files): Likewise.
12486         * modules/ftell-tests (Files): Likewise.
12487         * modules/ftello-tests (Files): Likewise.
12488         * modules/futimens-tests (Files): Likewise.
12489         * modules/getaddrinfo-tests (Files): Likewise.
12490         * modules/getcwd-tests (Files): Likewise.
12491         * modules/getdelim-tests (Files): Likewise.
12492         * modules/getdtablesize-tests (Files): Likewise.
12493         * modules/getgroups-tests (Files): Likewise.
12494         * modules/gethostname-tests (Files): Likewise.
12495         * modules/getline-tests (Files): Likewise.
12496         * modules/getopt-posix-tests (Files): Likewise.
12497         * modules/gettimeofday-tests (Files): Likewise.
12498         * modules/glob-tests (Files): Likewise.
12499         * modules/iconv-tests (Files): Likewise.
12500         * modules/inet_ntop-tests (Files): Likewise.
12501         * modules/inet_pton-tests (Files): Likewise.
12502         * modules/isblank-tests (Files): Likewise.
12503         * modules/lchown-tests (Files): Likewise.
12504         * modules/ldexpl-tests (Files): Likewise.
12505         * modules/link-tests (Files): Likewise.
12506         * modules/linkat-tests (Files): Likewise.
12507         * modules/lseek-tests (Files): Likewise.
12508         * modules/lstat-tests (Files): Likewise.
12509         * modules/mbrtowc-tests (Files): Likewise.
12510         * modules/mbsinit-tests (Files): Likewise.
12511         * modules/mbsnrtowcs-tests (Files): Likewise.
12512         * modules/mbsrtowcs-tests (Files): Likewise.
12513         * modules/memchr-tests (Files): Likewise.
12514         * modules/memcmp-tests (Files): Likewise.
12515         * modules/memmem-tests (Files): Likewise.
12516         * modules/memrchr-tests (Files): Likewise.
12517         * modules/mkdir-tests (Files): Likewise.
12518         * modules/mkfifo-tests (Files): Likewise.
12519         * modules/mkfifoat-tests (Files): Likewise.
12520         * modules/mknod-tests (Files): Likewise.
12521         * modules/nanosleep-tests (Files): Likewise.
12522         * modules/nl_langinfo-tests (Files): Likewise.
12523         * modules/obstack-printf-tests (Files): Likewise.
12524         * modules/open-tests (Files): Likewise.
12525         * modules/openat-tests (Files): Likewise.
12526         * modules/perror-tests (Files): Likewise.
12527         * modules/pipe2-tests (Files): Likewise.
12528         * modules/poll-tests (Files): Likewise.
12529         * modules/popen-tests (Files): Likewise.
12530         * modules/posix_spawn-tests (Files): Likewise.
12531         * modules/posix_spawnp-tests (Files): Likewise.
12532         * modules/pread-tests (Files): Likewise.
12533         * modules/printf-posix-tests (Files): Likewise.
12534         * modules/pty-tests (Files): Likewise.
12535         * modules/random_r-tests (Files): Likewise.
12536         * modules/rawmemchr-tests (Files): Likewise.
12537         * modules/readlink-tests (Files): Likewise.
12538         * modules/remove-tests (Files): Likewise.
12539         * modules/rename-tests (Files): Likewise.
12540         * modules/renameat-tests (Files): Likewise.
12541         * modules/rmdir-tests (Files): Likewise.
12542         * modules/round-tests (Files): Likewise.
12543         * modules/roundf-tests (Files): Likewise.
12544         * modules/roundl-tests (Files): Likewise.
12545         * modules/select-tests (Files): Likewise.
12546         * modules/setenv-tests (Files): Likewise.
12547         * modules/sigaction-tests (Files): Likewise.
12548         * modules/sleep-tests (Files): Likewise.
12549         * modules/snprintf-posix-tests (Files): Likewise.
12550         * modules/snprintf-tests (Files): Likewise.
12551         * modules/sprintf-posix-tests (Files): Likewise.
12552         * modules/stat-tests (Files): Likewise.
12553         * modules/strcasestr-tests (Files): Likewise.
12554         * modules/strchrnul-tests (Files): Likewise.
12555         * modules/strerror-tests (Files): Likewise.
12556         * modules/strsignal-tests (Files): Likewise.
12557         * modules/strstr-tests (Files): Likewise.
12558         * modules/strtod-tests (Files): Likewise.
12559         * modules/strverscmp-tests (Files): Likewise.
12560         * modules/symlink-tests (Files): Likewise.
12561         * modules/symlinkat-tests (Files): Likewise.
12562         * modules/times-tests (Files): Likewise.
12563         * modules/trunc-tests (Files): Likewise.
12564         * modules/truncf-tests (Files): Likewise.
12565         * modules/truncl-tests (Files): Likewise.
12566         * modules/tsearch-tests (Files): Likewise.
12567         * modules/uname-tests (Files): Likewise.
12568         * modules/unlink-tests (Files): Likewise.
12569         * modules/unsetenv-tests (Files): Likewise.
12570         * modules/usleep-tests (Files): Likewise.
12571         * modules/utimensat-tests (Files): Likewise.
12572         * modules/vasprintf-tests (Files): Likewise.
12573         * modules/vdprintf-posix-tests (Files): Likewise.
12574         * modules/vfprintf-posix-tests (Files): Likewise.
12575         * modules/vprintf-posix-tests (Files): Likewise.
12576         * modules/vsnprintf-posix-tests (Files): Likewise.
12577         * modules/vsnprintf-tests (Files): Likewise.
12578         * modules/vsprintf-posix-tests (Files): Likewise.
12579         * modules/wcrtomb-tests (Files): Likewise.
12580         * modules/wcsnrtombs-tests (Files): Likewise.
12581         * modules/wcsrtombs-tests (Files): Likewise.
12582         * modules/wcwidth-tests (Files): Likewise.
12583         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
12584         * tests/test-isinf.c (isinf): Likewise.
12585         * tests/test-isnan.c (isnan): Likewise.
12586         * tests/test-signbit.c (signbit): Likewise.
12587         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
12588         declaration, either as macro or with correct signature.
12589         (select): Ensure function under test is declared with correct
12590         signature in correct header.
12591         * tests/test-atexit.c (atexit): Likewise.
12592         * tests/test-btowc.c (btowc): Likewise.
12593         * tests/test-canonicalize-lgpl.c (realpath)
12594         (canonicalize_file_name): Likewise.
12595         * tests/test-ceilf1.c (ceilf): Likewise.
12596         * tests/test-ceill.c (ceill): Likewise.
12597         * tests/test-chown.c (chown): Likewise.
12598         * tests/test-dprintf-posix.c (dprintf): Likewise.
12599         * tests/test-dup2.c (dup2): Likewise.
12600         * tests/test-dup3.c (dup3): Likewise.
12601         * tests/test-duplocale.c (duplocale): Likewise.
12602         * tests/test-fchdir.c (fchdir): Likewise.
12603         * tests/test-fchownat.c (fchownat): Likewise.
12604         * tests/test-fcntl.c (fcntl): Likewise.
12605         * tests/test-fdopendir.c (fdopendir): Likewise.
12606         * tests/test-fflush.c (fflush): Likewise.
12607         * tests/test-flock.c (flock): Likewise.
12608         * tests/test-floorf1.c (floorf): Likewise.
12609         * tests/test-floorl.c (floorl): Likewise.
12610         * tests/test-fnmatch.c (fnmatch): Likewise.
12611         * tests/test-fopen.c (fopen): Likewise.
12612         * tests/test-fprintf-posix.c (fprintf): Likewise.
12613         * tests/test-freopen.c (freopen): Likewise.
12614         * tests/test-frexp.c (frexp): Likewise.
12615         * tests/test-frexpl.c (frexpl): Likewise.
12616         * tests/test-fseek.c (fseek): Likewise.
12617         * tests/test-fseeko.c (fseeko): Likewise.
12618         * tests/test-fstatat.c (fstatat): Likewise.
12619         * tests/test-fsync.c (fsync): Likewise.
12620         * tests/test-ftell.c (ftell): Likewise.
12621         * tests/test-ftello.c (ftello): Likewise.
12622         * tests/test-futimens.c (futimens): Likewise.
12623         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
12624         (gai_strerror): Likewise.
12625         * tests/test-getcwd.c (getcwd): Likewise.
12626         * tests/test-getdelim.c (getdelim): Likewise.
12627         * tests/test-getdtablesize.c (getdtablesize): Likewise.
12628         * tests/test-getgroups.c (getgroups): Likewise.
12629         * tests/test-gethostname.c (gethostname): Likewise.
12630         * tests/test-getline.c (getline): Likewise.
12631         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
12632         Likewise.
12633         * tests/test-gettimeofday.c (gettimeofday): Likewise.
12634         * tests/test-glob.c (glob, globfree): Likewise.
12635         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
12636         * tests/test-inet_ntop.c (inet_ntop): Likewise.
12637         * tests/test-inet_pton.c (inet_pton): Likewise.
12638         * tests/test-isblank.c (isblank): Likewise.
12639         * tests/test-lchown.c (lchown): Likewise.
12640         * tests/test-ldexpl.c (ldexpl): Likewise.
12641         * tests/test-link.c (link): Likewise.
12642         * tests/test-linkat.c (linkat): Likewise.
12643         * tests/test-lseek.c (lseek): Likewise.
12644         * tests/test-lstat.c (lstat): Likewise.
12645         * tests/test-mbrtowc.c (mbrtowc): Likewise.
12646         * tests/test-mbsinit.c (mbsinit): Likewise.
12647         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
12648         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
12649         * tests/test-memchr.c (memchr): Likewise.
12650         * tests/test-memcmp.c (memcmp): Likewise.
12651         * tests/test-memmem.c (memmem): Likewise.
12652         * tests/test-memrchr.c (memrchr): Likewise.
12653         * tests/test-mkdir.c (mkdir): Likewise.
12654         * tests/test-mkdirat.c (mkdirat): Likewise.
12655         * tests/test-mkfifo.c (mkfifo): Likewise.
12656         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
12657         * tests/test-mknod.c (mknod): Likewise.
12658         * tests/test-nanosleep.c (nanosleep): Likewise.
12659         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
12660         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
12661         Likewise.
12662         * tests/test-open.c (open): Likewise.
12663         * tests/test-openat.c (openat): Likewise.
12664         * tests/test-perror.c (perror): Likewise.
12665         * tests/test-pipe2.c (pipe2): Likewise.
12666         * tests/test-poll.c (poll): Likewise.
12667         * tests/test-popen.c (popen, pclose): Likewise.
12668         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
12669         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
12670         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
12671         (posix_spawn_file_actions_destroy)
12672         (posix_spawn_file_actions_addclose)
12673         (posix_spawn_file_actions_addopen)
12674         (posix_spawn_file_actions_adddup2): Likewise.
12675         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
12676         * tests/test-pread.c (pread): Likewise.
12677         * tests/test-printf-posix.c (printf): Likewise.
12678         * tests/test-pty.c (openpty, forkpty): Likewise.
12679         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
12680         (random_r): Likewise.
12681         * tests/test-rawmemchr.c (rawmemchr): Likewise.
12682         * tests/test-readlink.c (readlink): Likewise.
12683         * tests/test-remove.c (remove): Likewise.
12684         * tests/test-rename.c (rename): Likewise.
12685         * tests/test-renameat.c (renameat): Likewise.
12686         * tests/test-rmdir.c (rmdir): Likewise.
12687         * tests/test-round1.c (round): Likewise.
12688         * tests/test-roundf1.c (roundf): Likewise.
12689         * tests/test-roundl.c (roundl): Likewise.
12690         * tests/test-setenv.c (setenv): Likewise.
12691         * tests/test-sigaction.c (sigaction): Likewise.
12692         * tests/test-sleep.c (sleep): Likewise.
12693         * tests/test-snprintf.c (snprintf): Likewise.
12694         * tests/test-sprintf-posix.c (sprintf): Likewise.
12695         * tests/test-stat.c (stat): Likewise.
12696         * tests/test-stpncpy.c (stpncpy): Likewise.
12697         * tests/test-strcasestr.c (strcasestr): Likewise.
12698         * tests/test-strchrnul.c (strchrnul): Likewise.
12699         * tests/test-strerror.c (strerror): Likewise.
12700         * tests/test-strsignal.c (strsignal): Likewise.
12701         * tests/test-strstr.c (strstr): Likewise.
12702         * tests/test-strtod.c (strtod): Likewise.
12703         * tests/test-strverscmp.c (strverscmp): Likewise.
12704         * tests/test-symlink.c (symlink): Likewise.
12705         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
12706         * tests/test-times.c (times): Likewise.
12707         * tests/test-trunc1.c (trunc): Likewise.
12708         * tests/test-truncf1.c (truncf): Likewise.
12709         * tests/test-truncl.c (truncl): Likewise.
12710         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
12711         Likewise.
12712         * tests/test-uname.c (uname): Likewise.
12713         * tests/test-unlink.c (unlink): Likewise.
12714         * tests/test-unlinkat.c (unlinkat): Likewise.
12715         * tests/test-unsetenv.c (unsetenv): Likewise.
12716         * tests/test-usleep.c (usleep): Likewise.
12717         * tests/test-utimensat.c (utimensat): Likewise.
12718         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
12719         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
12720         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
12721         * tests/test-vprintf-posix.c (vprintf): Likewise.
12722         * tests/test-vsnprintf.c (vsnprintf): Likewise.
12723         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
12724         * tests/test-wcrtomb.c (wcrtomb): Likewise.
12725         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
12726         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
12727         * tests/test-wcwidth.c (wcwidth): Likewise.
12728
12729         build: pull in conditional headers during GNULIB_POSIXCHECK
12730         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
12731         definitions from any conditionally-included headers.
12732         * lib/stdlib.in.h (includes): Likewise.
12733         * lib/unistd.in.h (includes): Likewise.
12734
12735 2009-12-24  Bruno Haible  <bruno@clisp.org>
12736
12737         * tests/test-argv-iter.c: Include header file being tested immediately
12738         after config.h.
12739         * tests/test-base64.c: Likewise.
12740         * tests/test-flock.c: Likewise.
12741         * tests/test-fsync.c: Likewise.
12742         * tests/test-getdate.c: Likewise.
12743         * tests/test-getndelim2.c: Likewise.
12744         * tests/test-isfinite.c: Likewise.
12745         * tests/test-isinf.c: Likewise.
12746         * tests/test-strerror.c: Likewise.
12747         * tests/test-strsignal.c: Likewise.
12748
12749 2009-12-23  Eric Blake  <ebb9@byu.net>
12750
12751         unistd: work around cygwin bug
12752         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
12753         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
12754         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12755
12756 2009-12-23  Bruno Haible  <bruno@clisp.org>
12757
12758         localename: More tests.
12759         * tests/test-localename.c (SIZEOF): New macro.
12760         (categories): New variable.
12761         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
12762         test_locale_name_default): Add test w.r.t. thread locale.
12763         (test_locale_name_thread): New function.
12764         (main): Invoke it.
12765
12766         localename: Make aware of thread locale.
12767         * lib/localename.h (gl_locale_name_thread): New declaration.
12768         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
12769         behaviour with respect to thread locale.
12770         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
12771         <langinfo.h>, glthread/lock.h.
12772         (SIZE_BITS): New macro.
12773         (string_hash): New function.
12774         (struct hash_node): New type.
12775         (HASH_TABLE_SIZE): New macro.
12776         (struniq_hash_table, struniq_lock): New variables.
12777         (struniq): New function.
12778         (gl_locale_name_thread): New function.
12779         (gl_locale_name): Invoke it.
12780         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
12781         * modules/localename (Depends-on): Add lock.
12782         Reported by Mike Gran <spk121@yahoo.com>.
12783
12784 2009-12-23  Eric Blake  <ebb9@byu.net>
12785
12786         va-args: new module
12787         * modules/va-args: New file.
12788         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
12789         * MODULES.html.sh (Core language properties): Mention it.
12790
12791         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
12792         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
12793         named alias for __attribute__((__unused__)).
12794         * lib/chown.c: Update client.
12795         * lib/fchmodat.c: Likewise.
12796         * lib/fts.c: Likewise.
12797         * lib/getdate.y: Likewise.
12798         * lib/getgroups.c: Likewise.
12799         * lib/getopt.c: Likewise.
12800         * lib/getugroups.c: Likewise.
12801         * lib/mkdir.c: Likewise.
12802         * lib/mkfifo.c: Likewise.
12803         * lib/mkfifoat.c: Likewise.
12804         * lib/mknod.c: Likewise.
12805         * lib/mknodat.c: Likewise.
12806         * lib/readlink.c: Likewise.
12807         * lib/se-context.in.h: Likewise.
12808         * lib/se-selinux.in.h: Likewise.
12809         * lib/sockets.c: Likewise.
12810         * lib/symlink.c: Likewise.
12811         * lib/symlinkat.c: Likewise.
12812         * lib/unicodeio.c: Likewise.
12813         * lib/unistr.h: Likewise.
12814         * tests/test-areadlink.c: Likewise.
12815         * tests/test-areadlinkat.c: Likewise.
12816         * tests/test-filenamecat.c: Likewise.
12817         * tests/test-fseeko.c: Likewise.
12818         * tests/test-ftello.c: Likewise.
12819         * tests/test-getdate.c: Likewise.
12820         * tests/test-getgroups.c: Likewise.
12821         * tests/test-gethostname.c: Likewise.
12822         * tests/test-quotearg.c: Likewise.
12823         * tests/test-version-etc.c: Likewise.
12824         * tests/test-xalloc-die.c: Likewise.
12825         * tests/test-xfprintf-posix.c: Likewise.
12826         * tests/test-xprintf-posix.c: Likewise.
12827         * tests/test-xvasprintf.c: Likewise.
12828
12829         tests: avoid compiler warnings
12830         * tests/test-fcntl.c (main): Delete unused parameters.
12831         * tests/test-freopen-safer.c (main): Likewise.
12832         * tests/test-xalloc-die.c (main): Mark unused parameters.
12833         * tests/test-fseeko.c (main): Likewise.
12834         * tests/test-ftello.c (main): Likewise.
12835         * tests/test-nanosleep.c (main): Avoid declaration warning.
12836         * tests/test-sleep.c (main): Likewise.
12837         * tests/test-unsetenv.c (main): Silence warning about string
12838         literal.
12839         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12840
12841 2009-12-23  Bruno Haible  <bruno@clisp.org>
12842
12843         * tests/test-localename.c (test_locale_name): New function, extracted
12844         from main. Also test mixed situations.
12845         (test_locale_name_posix, test_locale_name_environ,
12846         test_locale_name_default): New functions.
12847         (main): Invoke them all.
12848         * modules/localename-tests (configure.ac): Test for newlocale.
12849
12850 2009-12-23  Bruno Haible  <bruno@clisp.org>
12851
12852         unistd: Ensure getcwd gets declared before being overridden.
12853         * lib/unistd.in.h: Conditionally include <io.h>.
12854
12855 2009-12-22  Bruno Haible  <bruno@clisp.org>
12856
12857         wchar: Diagnose broken combination of glibc and gcc versions and flags.
12858         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
12859         (gl_WCHAR_H): Invoke it.
12860         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
12861         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
12862         Reported by Karl Berry <karl@freefriends.org>.
12863
12864 2009-12-22  Eric Blake  <ebb9@byu.net>
12865
12866         math, unistd: avoid redundant includes
12867         * lib/math.in.h (isnan): No need to re-include <math.h>.
12868         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
12869
12870         getsubopt: work around cygwin bug
12871         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
12872         avoid conflicting with system getsubopt.
12873         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
12874         bug.
12875
12876         getopt: synchronize from glibc
12877         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
12878         parameter order.  Adjust all callers.
12879         (_getopt_internal_r, main): Adjust quoting in error messages.
12880         Drop considerations for outdated POSIX 1003.2 error message.
12881         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
12882         callers.
12883         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
12884
12885         test-getopt: test stderr behavior
12886         * modules/getopt-posix-tests (Depends-on): Add dup2.
12887         * tests/test-getopt.c (ASSERT): Avoid stderr.
12888         (main): Move stderr to a temporary file.
12889         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
12890         Instead, add parameter to inform caller if output occurred.
12891         (test_getopt): Adjust all existing tests to expect silence, and
12892         add new tests of leading ":".
12893         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12894         glibc shortcomings with leading "-:" or "+:" in optstring.
12895         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12896         Likewise.
12897         * doc/posix-functions/getopt.texi (getopt): Likewise.
12898
12899         test-getopt: enhance test
12900         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
12901         supports optind=0.
12902         * tests/test-getopt.c (OPTIND_MIN): Move...
12903         * tests/test-getopt.h (OPTIND_MIN): ...here.
12904         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
12905         Require that optind=0 works, since modern BSD supports it in
12906         addition to optreset, and since coreutils expects it.
12907         (test_getopt_long_only): New test.
12908         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12909         glibc shortcomings with 'W;', and enforcement of optind=0.
12910         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12911         Likewise.
12912
12913 2009-12-21  Bruno Haible  <bruno@clisp.org>
12914
12915         localename: Improvements for MacOS X and Cygwin.
12916         * lib/localename.h (gl_locale_name_environ): New declaration.
12917         * lib/localename.c (gl_locale_name_environ): New function, extracted from
12918         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
12919         (gl_locale_name_posix): Invoke it.
12920         (gl_locale_name_default): Add comments. Use Windows native API also on
12921         Cygwin.
12922
12923 2009-12-21  Bruno Haible  <bruno@clisp.org>
12924
12925         Update list of Win32 locale ids.
12926         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
12927         (LANG_SAMI): Renamed from LANG_SAAMI.
12928         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
12929         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
12930         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
12931         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
12932         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
12933         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
12934         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
12935         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
12936         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
12937         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
12938         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
12939         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
12940         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
12941         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
12942         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
12943         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
12944         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
12945         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
12946         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
12947         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
12948         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
12949         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
12950         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
12951         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
12952         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
12953         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
12954         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
12955         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
12956         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
12957         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
12958         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
12959         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
12960         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
12961         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
12962         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
12963         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
12964         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
12965         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
12966         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
12967         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
12968         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
12969         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
12970         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
12971         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
12972         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
12973         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
12974         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
12975         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
12976         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
12977         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
12978         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
12979         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
12980         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
12981         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
12982         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
12983         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
12984         Add more languages and countries for Sami, Sorbian. Add more countries
12985         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
12986         for Pashto. Change country for Syriac, Tswana.
12987
12988 2009-12-21  Eric Blake  <ebb9@byu.net>
12989
12990         test-utimens: avoid spurious failure
12991         * tests/test-chown.h (nap): Factor...
12992         * tests/nap.h: ...into new file.
12993         * tests/test-lchown.h (nap): Avoid duplication.
12994         * tests/test-utimens-common.h (nap): Use shared implementation,
12995         necessary on file systems with 1-second resolution.
12996         * modules/chown-tests (Files): Include new file.
12997         * modules/fdutimensat-tests (Files): Likewise.
12998         * modules/futimens-tests (Files): Likewise.
12999         * modules/lchown-tests (Files): Likewise.
13000         * modules/openat-tests (Files): Likewise.
13001         * modules/utimens-tests (Files): Likewise.
13002         * modules/utimensat-tests (Files): Likewise.
13003
13004 2009-12-19  Eric Blake  <ebb9@byu.net>
13005
13006         futimens, utimensat: work around Linux bug
13007         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
13008         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13009         * lib/utimensat.c (rpl_utimensat): Work around it.
13010         * lib/futimens.c (rpl_futimens): Adjust comment.
13011
13012         utimens: work around Linux ctime bug
13013         * lib/utimens.c (detect_ctime_bug): New helper function.
13014         (update_timespec): Differentiate between workaround needed for
13015         this bug vs. what is needed for systems that lack utimensat.
13016         (fdutimens, lutimens): Work around bug.
13017
13018         utimens: check for ctime update
13019         * tests/test-utimens-common.h (check_ctime): Define.
13020         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
13021         * tests/test-futimens.h (test_futimens): Likewise.
13022         * tests/test-lutimens.h (test_lutimens): Likewise.
13023         * doc/posix-functions/futimens.texi (futimens): Document the bug.
13024         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
13025
13026 2009-12-19  Bruno Haible  <bruno@clisp.org>
13027
13028         dprintf-posix: Check against memory leak fixed on 2009-12-15.
13029         * tests/test-dprintf-posix2.sh: New file.
13030         * tests/test-dprintf-posix2.c: New file.
13031         * modules/dprintf-posix-tests (Files): Add them.
13032         (configure.ac): Check for getrlimit and setrlimit.
13033         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
13034
13035 2009-12-19  Bruno Haible  <bruno@clisp.org>
13036
13037         fprintf-posix: Check against memory leak fixed on 2009-12-15.
13038         * tests/test-fprintf-posix3.sh: New file.
13039         * tests/test-fprintf-posix3.c: New file.
13040         * modules/fprintf-posix-tests (Files): Add them.
13041         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
13042
13043 2009-12-19  Eric Blake  <ebb9@byu.net>
13044
13045         dirfd: fix prototype
13046         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
13047         * lib/dirfd.c (dirfd): Likewise.
13048
13049         canonicalize: reduce memory usage
13050         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
13051         allocation to size.
13052         Reported by Solar Designer <solar@openwall.com>.
13053
13054 2009-12-19  Bruno Haible  <bruno@clisp.org>
13055
13056         New module attribute 'Applicability'.
13057         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
13058         * gnulib-tool: New option --extract-applicability.
13059         (func_usage): Document it.
13060         (sed_extract_prog): Recognize it.
13061         (func_get_applicability): New function.
13062         (func_import): Generalize handling of 'link-warning' module.
13063         * modules/link-warning (Applicability): New section.
13064         * modules/arg-nonnull (Applicability): New section.
13065         Repoted by Simon Josefsson <simon@josefsson.org>.
13066
13067 2009-12-19  Bruno Haible  <bruno@clisp.org>
13068
13069         fflush: tweak
13070         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
13071         * lib/fseeko.c (rpl_fseeko): Likewise.
13072
13073 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
13074
13075         * lib/gl_list.h: Fix typo in comment.
13076
13077 2009-12-16  Eric Blake  <ebb9@byu.net>
13078
13079         fcntl: use to simplify other modules
13080         * modules/cloexec (Depends-on): Add fcntl.
13081         * modules/fchdir (Depends-on): Likewise.
13082         * modules/fd-safer-flag (Depends-on): Likewise.
13083         * modules/unistd-safer (Depends-on): Likewise.
13084         * modules/dup3 (configure.ac): Set module indicator.
13085         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
13086         missing.
13087         * lib/fchdir.c (_gl_register_dup): Fix comment.
13088         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
13089         * lib/dup-safer.c (dup_safer): Likewise.
13090         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
13091         * lib/dup3.c (dup3): Likewise.
13092         * tests/test-fchdir.c (main): Enhance test.
13093         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
13094
13095         fcntl: port portions of fcntl to mingw
13096         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
13097         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
13098         replacement for mingw.
13099         * modules/fcntl (Description): Update.
13100         (Depends-on): Add dup2.
13101         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
13102         * modules/fcntl-h (Makefile.am): Substitute it.
13103         * lib/fcntl.in.h (fcntl): Update declaration.
13104         (F_DUPFD, F_GETFD): New macros, when needed.
13105         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
13106         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
13107         * tests/test-fcntl.c (check_flags, main): Enhance test for items
13108         we now guarantee.
13109
13110         fcntl: work around cygwin bug in F_DUPFD
13111         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
13112         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
13113         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
13114         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
13115         * doc/posix-functions/fcntl.texi (fcntl): Document it.
13116
13117         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
13118         * modules/fcntl (Files): List new files.
13119         (configure.ac): Run a test.
13120         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
13121         * lib/fcntl.c (rpl_fcntl): Likewise.
13122         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
13123         (gl_FCNTL_H): Always replace fcntl.h.
13124         * modules/fcntl-h (Makefile.am): Substitute witnesses.
13125         * lib/fcntl.in.h (fcntl): Declare replacement.
13126         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
13127         needed, plus a witness.
13128         * doc/posix-functions/fcntl.texi (fcntl): Document this.
13129         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
13130         * tests/test-fcntl.c: New file.
13131         * modules/fcntl-tests: Likewise.
13132
13133         binary-io: avoid potential compilation warning
13134         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
13135         directives.
13136
13137         fflush: avoid compilation error on NetBSD
13138         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
13139         between off_t and fpos_t, since the latter is sometimes a struct.
13140         * lib/fseeko.c (rpl_fseeko): Likewise.
13141         Reported by Alexander Nasonov <alnsn@yandex.ru>.
13142
13143 2009-12-15  Eric Blake  <ebb9@byu.net>
13144
13145         fcntl-h, stdio, sys_ioctl: fix declarations
13146         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
13147         function must not take arguments.
13148         * lib/sys_ioctl.in.h (ioctl): Likewise.
13149         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
13150         (open): Add a link warning.
13151
13152 2009-12-15  Jim Meyering  <meyering@redhat.com>
13153
13154         areadlink, areadlink-with-size: relax license to LGPLv2+
13155         * modules/areadlink (License): Relax to LGPLv2+.
13156         * modules/areadlink-with-size (License): Likewise.
13157
13158 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
13159             Bruno Haible  <bruno@clisp.org>
13160
13161         *printf: Fix memory leak.
13162         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
13163         * lib/vfprintf.c (vfprintf): Likewise.
13164         * lib/dprintf.c (dprintf): Likewise.
13165         * lib/vdprintf.c (vdprintf): Likewise.
13166
13167 2009-12-14  Eric Blake  <ebb9@byu.net>
13168
13169         accept4: adjust module dependencies
13170         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
13171
13172         utimens: one more try at avoiding compiler warning
13173         * lib/utimens.c (lutimens): Lower scope of result.
13174
13175 2009-12-13  Bruno Haible  <bruno@clisp.org>
13176
13177         Move the malloc checking from module 'list' to new module 'xlist'.
13178         * modules/xlist: New file.
13179         * lib/gl_xlist.h: New file.
13180         * lib/gl_xlist.c: New file.
13181         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
13182         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
13183         gl_list_add_last, gl_list_add_before, gl_list_add_after,
13184         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
13185         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
13186         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
13187         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
13188         gl_sortedlist_nx_add): New declarations.
13189         (struct gl_list_implementation): Rename and change methods accordingly.
13190         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
13191         (gl_list_nx_create): Renamed from gl_list_create.
13192         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13193         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13194         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13195         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13196         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13197         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13198         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13199         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13200         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
13201         gl_list_create_empty.
13202         (gl_list_nx_create): Renamed from gl_list_create.
13203         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
13204         (gl_list_nx_set_at): Renamed from gl_list_set_at.
13205         (gl_list_nx_add_first): Renamed from gl_list_add_first.
13206         (gl_list_nx_add_last): Renamed from gl_list_add_last.
13207         (gl_list_nx_add_before): Renamed from gl_list_add_before.
13208         (gl_list_nx_add_after): Renamed from gl_list_add_after.
13209         (gl_list_nx_add_at): Renamed from gl_list_add_at.
13210         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
13211         * lib/gl_array_list.c: Don't include xalloc.h.
13212         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
13213         NULL upon out-of-memory.
13214         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
13215         out-of-memory.
13216         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
13217         Change return type to 'int'.
13218         (gl_array_nx_set_at): Renamed from gl_array_set_at.
13219         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13220         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
13221         upon out-of-memory.
13222         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
13223         upon out-of-memory.
13224         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
13225         upon out-of-memory.
13226         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
13227         upon out-of-memory.
13228         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
13229         out-of-memory.
13230         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
13231         Update.
13232         (gl_array_list_implementation): Update.
13233         * lib/gl_carray_list.c: Don't include xalloc.h.
13234         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
13235         Return NULL upon out-of-memory.
13236         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
13237         out-of-memory.
13238         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
13239         Change return type to 'int'.
13240         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
13241         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
13242         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
13243         upon out-of-memory.
13244         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
13245         upon out-of-memory.
13246         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
13247         out-of-memory.
13248         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
13249         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
13250         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
13251         Update.
13252         (gl_carray_list_implementation): Update.
13253         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
13254         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
13255         gl_linked_create_empty. Return NULL upon out-of-memory.
13256         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
13257         out-of-memory.
13258         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
13259         Change return type to 'int'. Return -1 upon out-of-memory.
13260         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
13261         out-of-memory.
13262         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
13263         upon out-of-memory.
13264         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
13265         upon out-of-memory.
13266         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
13267         NULL upon out-of-memory.
13268         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
13269         upon out-of-memory.
13270         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
13271         out-of-memory.
13272         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
13273         Update.
13274         * lib/gl_linked_list.c: Don't include xalloc.h.
13275         (gl_linked_list_implementation): Update.
13276         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
13277         (add_to_bucket): Change return type to 'int'.
13278         (gl_linkedhash_list_implementation): Update.
13279         * lib/gl_anytree_list1.h (free_subtree): New function.
13280         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
13281         gl_tree_create_empty. Return NULL upon out-of-memory.
13282         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
13283         Change return type to 'int'. Return -1 upon out-of-memory.
13284         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
13285         out-of-memory.
13286         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
13287         (gl_tree_remove_node): New function, moved here from
13288         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
13289         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
13290         Update.
13291         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
13292         malloc, not xmalloc. Return NULL upon out-of-memory.
13293         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13294         out-of-memory.
13295         (gl_tree_remove_node_from_tree): New function, extracted from
13296         gl_tree_remove_node.
13297         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13298         upon out-of-memory.
13299         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13300         out-of-memory.
13301         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13302         upon out-of-memory.
13303         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13304         upon out-of-memory.
13305         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13306         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
13307         not xmalloc. Return NULL upon out-of-memory.
13308         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
13309         out-of-memory.
13310         (gl_tree_remove_node_from_tree): New function, extracted from
13311         gl_tree_remove_node.
13312         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
13313         upon out-of-memory.
13314         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
13315         out-of-memory.
13316         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
13317         upon out-of-memory.
13318         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
13319         upon out-of-memory.
13320         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
13321         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
13322         gl_anytree_list1.h before gl_anyavltree_list2.h.
13323         (gl_avltree_list_implementation): Update.
13324         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
13325         gl_anytree_list1.h before gl_anyavltree_list2.h.
13326         (gl_rbtree_list_implementation): Update.
13327         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
13328         Change return type to 'int'. Return -1 upon out-of-memory. Use
13329         __builtin_expect.
13330         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
13331         (gl_avltreehash_list_implementation): Update.
13332         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
13333         (gl_rbtreehash_list_implementation): Update.
13334         * modules/array-list (Depends-on): Remove xalloc.
13335         * modules/carray-list (Depends-on): Likewise.
13336         * modules/linked-list (Depends-on): Likewise.
13337         * modules/linkedhash-list (Depends-on): Likewise.
13338         * modules/avltree-list (Depends-on): Likewise.
13339         * modules/rbtree-list (Depends-on): Likewise.
13340         * modules/avltreehash-list (Depends-on): Likewise.
13341         * modules/rbtreehash-list (Depends-on): Likewise.
13342
13343         * modules/xsublist: New file.
13344         * lib/gl_xsublist.h: New file.
13345         * lib/gl_xsublist.c: New file.
13346         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
13347         (gl_sublist_nx_create): New declaration.
13348         * lib/gl_sublist.c: Don't include xalloc.h.
13349         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
13350         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
13351         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
13352         Change return type to 'int'. Return -1 upon out-of-memory.
13353         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
13354         upon out-of-memory.
13355         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
13356         NULL upon out-of-memory.
13357         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
13358         upon out-of-memory.
13359         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
13360         NULL upon out-of-memory.
13361         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
13362         NULL upon out-of-memory.
13363         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
13364         upon out-of-memory.
13365         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
13366         (gl_sublist_list_implementation): Update.
13367         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
13368         upon out-of-memory.
13369         * modules/sublist (Depends-on): Remove xalloc.
13370
13371         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
13372         * tests/test-carray_list.c: Likewise.
13373         * tests/test-linked_list.c: Likewise.
13374         * tests/test-linkedhash_list.c: Likewise.
13375         * tests/test-avltree_list.c: Likewise.
13376         * tests/test-rbtree_list.c: Likewise.
13377         * tests/test-avltreehash_list.c: Likewise.
13378         * tests/test-rbtreehash_list.c: Likewise.
13379         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
13380         * modules/carray-list-tests (Makefile.am): Likewise.
13381         * modules/linked-list-tests (Makefile.am): Likewise.
13382         * modules/linkedhash-list-tests (Makefile.am): Likewise.
13383         * modules/avltree-list-tests (Makefile.am): Likewise.
13384         * modules/rbtree-list-tests (Makefile.am): Likewise.
13385         * modules/avltreehash-list-tests (Makefile.am): Likewise.
13386         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
13387
13388         * NEWS: Mention the changes.
13389
13390         * lib/clean-temp.c: Include gl_xlist.h.
13391         * modules/clean-temp (Depends-on): Add xlist.
13392
13393         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
13394         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
13395
13396         * tests/test-array_oset.c: Include gl_xlist.h.
13397         * modules/array-oset-tests (Depends-on): Add xlist.
13398
13399         Reported by José E. Marchesi <jemarch@gnu.org>.
13400
13401 2009-12-13  Bruno Haible  <bruno@clisp.org>
13402
13403         Move the malloc checking from module 'oset' to new module 'xoset'.
13404         * modules/xoset: New file.
13405         * lib/gl_xoset.h: New file.
13406         * lib/gl_xoset.c: New file.
13407         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
13408         declarations.
13409         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
13410         (struct gl_oset_implementation): Rename and change methods accordingly.
13411         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
13412         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13413         'int'. Mark as __warn_unused_result__.
13414         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
13415         gl_oset_create_empty.
13416         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
13417         'int'.
13418         * lib/gl_array_oset.c: Don't include xalloc.h.
13419         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
13420         malloc, not xmalloc.
13421         (grow): Change return type to 'int'. Don't call xalloc_die.
13422         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
13423         to 'int'.
13424         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
13425         'int'.
13426         (gl_array_oset_implementation): Update.
13427         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
13428         gl_tree_create_empty.
13429         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
13430         'int'.
13431         * lib/gl_avltree_oset.c: Don't include xalloc.h.
13432         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13433         xmalloc.
13434         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13435         not xmalloc.
13436         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13437         xmalloc.
13438         (gl_avltree_oset_implementation): Update.
13439         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
13440         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
13441         xmalloc.
13442         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
13443         not xmalloc.
13444         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
13445         xmalloc.
13446         (gl_rbtree_oset_implementation): Update.
13447         * modules/array-oset (Depends-on): Remove xalloc.
13448         * modules/avltree-oset (Depends-on): Likewise.
13449         * modules/rbtree-oset (Depends-on): Likewise.
13450         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
13451         * tests/test-avltree_oset.c: Likewise.
13452         * tests/test-rbtree_oset.c: Likewise.
13453         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
13454         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
13455         * modules/rbtree-oset-tests (Makefile.am): Likewise.
13456         * NEWS: Mention the change.
13457
13458 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
13459
13460         maint.mk: allow a project to override release-prep commands
13461         * top/maint.mk (alpha, beta, stable): Move release-preparatory
13462         commands into a new rule.
13463         (release-prep): New rule.
13464         (release-prep-hook): New overridable variable.
13465
13466 2009-12-13  Bruno Haible  <bruno@clisp.org>
13467
13468         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
13469
13470 2009-12-13  Jim Meyering  <meyering@redhat.com>
13471
13472         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
13473         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
13474
13475 2009-12-12  Bruno Haible  <bruno@clisp.org>
13476
13477         duplocale: Tweak.
13478         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
13479
13480 2009-12-12  Karl Berry  <karl@gnu.org>
13481
13482         * config/srclist.txt (strtoll.c): tab changes, no more sync.
13483
13484 2009-12-12  Bruno Haible  <bruno@clisp.org>
13485
13486         * m4/po.m4: Undo incorrect untabification.
13487
13488 2009-12-12  Bruno Haible  <bruno@clisp.org>
13489
13490         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
13491         * modules/c-strtod (Depends-on): Add locale.
13492         * modules/c-strtold (Depends-on): Likewise.
13493
13494 2009-12-12  Bruno Haible  <bruno@clisp.org>
13495
13496         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
13497
13498 2009-12-11  Eric Blake  <ebb9@byu.net>
13499
13500         setenv: relax requirement in light of POSIX ruling
13501         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
13502         not NULL.
13503         * tests/test-setenv.c (main): Relax test.
13504         * tests/test-unsetenv.c (main): Likewise.
13505         * doc/posix-functions/setenv.texi (setenv): Document this.
13506         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13507
13508 2009-12-11  Bruno Haible  <bruno@clisp.org>
13509
13510         New module 'fd-safer-flag'.
13511         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
13512         * lib/dup-safer.c (dup_safer_flag): Remove function.
13513         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
13514         * lib/fd-safer.c (fd_safer_flag): Remove function.
13515         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
13516         * modules/cloexec (configure.ac): Drop indicator macro.
13517         * modules/fd-safer-flag: New file.
13518         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
13519         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
13520         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
13521
13522 2009-12-11  Bruno Haible  <bruno@clisp.org>
13523
13524         Tests for module 'nl_langinfo'.
13525         * modules/nl_langinfo-tests: New file.
13526         * tests/test-nl_langinfo.sh: New file.
13527         * tests/test-nl_langinfo.c: New file.
13528
13529         New module 'nl_langinfo'.
13530         * lib/nl_langinfo.c: New file.
13531         * m4/nl_langinfo.m4: New file.
13532         * modules/nl_langinfo: New file.
13533         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
13534
13535 2009-12-11  Bruno Haible  <bruno@clisp.org>
13536
13537         Tests for module 'langinfo'.
13538         * modules/langinfo-tests: New file.
13539         * tests/test-langinfo.c: New file.
13540
13541         New module 'langinfo'.
13542         * lib/langinfo.in.h: New file.
13543         * m4/langinfo_h.m4: New file.
13544         * modules/langinfo: New file.
13545         * doc/posix-headers/langinfo.texi: Mention the new module.
13546
13547 2009-12-11  Bruno Haible  <bruno@clisp.org>
13548
13549         * lib/config.charset: Untabify.
13550
13551 2009-12-11  Bruno Haible  <bruno@clisp.org>
13552
13553         * modules/unistd-safer (configure.ac): Drop indicator macro.
13554
13555 2009-12-11  Bruno Haible  <bruno@clisp.org>
13556
13557         Move pipe2-safer code to its own file.
13558         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
13559         * lib/pipe-safer.c (pipe2_safer): Remove function.
13560         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
13561         (Makefile.am): Add it to lib_SOURCES.
13562
13563 2009-12-10  Bruno Haible  <bruno@clisp.org>
13564
13565         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
13566
13567 2009-12-10  Bruno Haible  <bruno@clisp.org>
13568
13569         Declare which arguments expect non-NULL values, for GCC and clang.
13570         * build-aux/arg-nonnull.h: New file.
13571         * modules/arg-nonnull: New file.
13572         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
13573         (inet_ntop, inet_pton): Use it.
13574         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
13575         (closedir, dirfd, opendir, scandir, alphasort): Use it.
13576         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
13577         (open, openat): Use it.
13578         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
13579         (fnmatch): Use it.
13580         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
13581         (getopt, getopt_long, getopt_long_only): Use it.
13582         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
13583         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
13584         Use it.
13585         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
13586         (iconv_open): Use it.
13587         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
13588         (strtoimax, strtoumax): Use it.
13589         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
13590         (duplocale): Use it.
13591         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
13592         (frexp, frexpl): Use it.
13593         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
13594         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
13595         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
13596         (tsearch, tfind, tdelete, twalk): Use it.
13597         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
13598         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
13599         sigpending): Use it.
13600         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
13601         (posix_spawn, posix_spawnp, posix_spawnattr_init,
13602         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
13603         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
13604         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
13605         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
13606         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
13607         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
13608         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
13609         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
13610         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
13611         Use it.
13612         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
13613         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
13614         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
13615         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
13616         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
13617         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
13618         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
13619         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
13620         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
13621         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
13622         strtoull, unsetenv): Use it.
13623         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
13624         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
13625         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
13626         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
13627         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
13628         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
13629         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
13630         (strcasecmp, strncasecmp): Use it.
13631         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
13632         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
13633         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
13634         rpl_setsockopt): Use it.
13635         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
13636         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
13637         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
13638         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
13639         (gettimeofday): Use it.
13640         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
13641         (times): Use it.
13642         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
13643         (uname): Use it.
13644         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
13645         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
13646         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
13647         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
13648         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
13649         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
13650         unlinkat, write): Use it.
13651         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
13652         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
13653         * lib/argv-iter.h: Include arg-nonnull.h.
13654         (_ATTRIBUTE_NONNULL_): Remove macro.
13655         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
13656         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
13657         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
13658         optimization.
13659         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
13660         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
13661         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
13662         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
13663         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
13664         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
13665         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
13666         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
13667         * modules/arpa_inet (Depends-on): Add arg-nonnull.
13668         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
13669         * modules/dirent (Depends-on): Add arg-nonnull.
13670         (Makefile.am): Insert arg-nonnull.h into dirent.h.
13671         * modules/fcntl-h (Depends-on): Add arg-nonnull.
13672         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
13673         * modules/fnmatch (Depends-on): Add arg-nonnull.
13674         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
13675         * modules/getopt-posix (Depends-on): Add arg-nonnull.
13676         (Makefile.am): Insert arg-nonnull.h into getopt.h.
13677         * modules/glob (Depends-on): Add arg-nonnull.
13678         (Makefile.am): Insert arg-nonnull.h into glob.h.
13679         * modules/iconv_open (Depends-on): Add arg-nonnull.
13680         (Makefile.am): Insert arg-nonnull.h into iconv.h.
13681         * modules/inttypes (Depends-on): Add arg-nonnull.
13682         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
13683         * modules/locale (Depends-on): Add arg-nonnull.
13684         (Makefile.am): Insert arg-nonnull.h into locale.h.
13685         * modules/math (Depends-on): Add arg-nonnull.
13686         (Makefile.am): Insert arg-nonnull.h into math.h.
13687         * modules/netdb (Depends-on): Add arg-nonnull.
13688         (Makefile.am): Insert arg-nonnull.h into netdb.h.
13689         * modules/search (Depends-on): Add arg-nonnull.
13690         (Makefile.am): Insert arg-nonnull.h into search.h.
13691         * modules/signal (Depends-on): Add arg-nonnull.
13692         (Makefile.am): Insert arg-nonnull.h into signal.h.
13693         * modules/spawn (Depends-on): Add arg-nonnull.
13694         (Makefile.am): Insert arg-nonnull.h into spawn.h.
13695         * modules/stdio (Depends-on): Add arg-nonnull.
13696         (Makefile.am): Insert arg-nonnull.h into stdio.h.
13697         * modules/stdlib (Depends-on): Add arg-nonnull.
13698         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
13699         * modules/string (Depends-on): Add arg-nonnull.
13700         (Makefile.am): Insert arg-nonnull.h into string.h.
13701         * modules/strings (Depends-on): Add arg-nonnull.
13702         (Makefile.am): Insert arg-nonnull.h into strings.h.
13703         * modules/sys_socket (Depends-on): Add arg-nonnull.
13704         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
13705         * modules/sys_stat (Depends-on): Add arg-nonnull.
13706         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
13707         * modules/sys_time (Depends-on): Add arg-nonnull.
13708         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
13709         * modules/sys_times (Depends-on): Add arg-nonnull.
13710         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
13711         * modules/sys_utsname (Depends-on): Add arg-nonnull.
13712         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
13713         * modules/time (Depends-on): Add arg-nonnull.
13714         (Makefile.am): Insert arg-nonnull.h into time.h.
13715         * modules/unistd (Depends-on): Add arg-nonnull.
13716         (Makefile.am): Insert arg-nonnull.h into unistd.h.
13717         * modules/wchar (Depends-on): Add arg-nonnull.
13718         (Makefile.am): Insert arg-nonnull.h into wchar.h.
13719         * modules/argv-iter (Depends-on): Add arg-nonnull.
13720         * tests/test-canonicalize.c (null_ptr): New function.
13721         (main): Use it.
13722         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
13723         (main): Use it.
13724         * tests/test-memmem.c (null_ptr): New function.
13725         (main): Use it.
13726         Reported by Jim Meyering.
13727
13728 2009-12-10  Bruno Haible  <bruno@clisp.org>
13729
13730         Use spaces for indentation, not tabs.
13731         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13732         * m4/*.m4: Untabify.
13733         * build-aux/*.h: Untabify.
13734         * tests/**/*.[hc]: Untabify.
13735         * README: New section "Indent with spaces, not TABs", based on
13736         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
13737         * NEWS: Mention the change.
13738
13739 2009-12-10  Bruno Haible  <bruno@clisp.org>
13740
13741         pty test: Fix link error.
13742         * modules/pty-tests (Makefile.am): Add the default LDADD value to
13743         test_pty_LDADD.
13744
13745 2009-12-07  Simon Josefsson  <simon@josefsson.org>
13746
13747         * modules/pty: New file.
13748         * modules/pty-tests: New file.
13749         * m4/pty.m4: New file.
13750         * tests/test-pty.c: New file.
13751         * doc/glibc-headers/pty.texi: Modified.
13752         * doc/glibc-functions/forkpty.texi: Modified.
13753         * doc/glibc-functions/openpty.texi: Modified.
13754
13755 2009-12-10  Bruno Haible  <bruno@clisp.org>
13756
13757         Avoid syntax error in C++ mode.
13758         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
13759
13760 2009-12-10  Bruno Haible  <bruno@clisp.org>
13761
13762         Use sed with option -e.
13763         * gnulib-tool (func_version, func_emit_copyright_notice,
13764         func_emit_initmacro_end, func_import, func_create_testdir): Pass
13765         option -e to sed.
13766         * modules/link-warning (Makefile.am): Likewise.
13767
13768 2009-12-10  Jim Meyering  <meyering@redhat.com>
13769
13770         mgetgroups: do not write bytes beyond end of malloc'd buffer
13771         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
13772         username, we call getgroups with a one-element-shorter buffer,
13773         but still told it the length was original, max_n_groups.
13774
13775 2009-12-09  Eric Blake  <ebb9@byu.net>
13776
13777         cloexec: relax license
13778         * modules/cloexec (Maintainer): Add myself.
13779         (License): Use LGPL, not GPL.
13780
13781         link-warning: optimize generation
13782         * modules/link-warning (Makefile.am): Reduce process usage.
13783
13784 2009-12-09  Bruno Haible  <bruno@clisp.org>
13785
13786         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
13787         workaround was added on 2009-11-17.
13788
13789 2009-12-09  Jim Meyering  <meyering@redhat.com>
13790             Bruno Haible  <bruno@clisp.org>
13791
13792         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
13793         * modules/link-warning (Makefile.am): Make the comment-removing sed
13794         command more robust in the face of bootstrap-prepended comment lines.
13795
13796 2009-12-09  Bruno Haible  <bruno@clisp.org>
13797
13798         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
13799         most one group.
13800
13801 2009-12-09  Simon Josefsson <simon@josefsson.org>
13802             Bruno Haible  <bruno@clisp.org>
13803
13804         * build-aux/link-warning.h: Add copyright notice.
13805         * modules/link-warning (Makefile.am): Generate link-warning.h from
13806         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
13807         * NEWS: Mention change in link-warning module.
13808         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
13809         * modules/dirent (Makefile.am): Add dependency to dirent.h.
13810         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
13811         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
13812         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
13813         * modules/math (Makefile.am): Add dependency to math.h.
13814         * modules/search (Makefile.am): Add dependency to search.h.
13815         * modules/signal (Makefile.am): Add dependency to signal.h.
13816         * modules/spawn (Makefile.am): Add dependency to spawn.h.
13817         * modules/stdio (Makefile.am): Add dependency to stdio.h.
13818         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
13819         * modules/string (Makefile.am): Add dependency to string.h.
13820         * modules/strings (Makefile.am): Add dependency to strings.h.
13821         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
13822         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
13823         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
13824         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
13825         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
13826         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
13827         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
13828         * modules/unistd (Makefile.am): Add dependency to unistd.h.
13829         * modules/wchar (Makefile.am): Add dependency to wchar.h.
13830
13831 2009-12-09  Bruno Haible  <bruno@clisp.org>
13832
13833         fchdir: Optimize away rpl_fstat when possible.
13834         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
13835         REPLACE_OPEN_DIRECTORY.
13836         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
13837
13838 2009-12-09  Bruno Haible  <bruno@clisp.org>
13839
13840         * lib/fchdir.c: Update comment.
13841
13842 2009-12-09  Bruno Haible  <bruno@clisp.org>
13843
13844         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
13845
13846 2009-12-08  Eric Blake  <ebb9@byu.net>
13847
13848         fchdir: avoid memory leak on re-registration.
13849         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
13850
13851 2009-12-08  Jim Meyering  <meyering@redhat.com>
13852
13853         init.sh: avoid Solaris 10 /bin/sh portability problem
13854         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
13855         sourced script:
13856           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
13857           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
13858           bar
13859         tests/init.sh relied on that, accepting a --set-path=DIR argument,
13860         and two tests used that idiom.
13861         * tests/init.sh: Update suggested usage comments.
13862         (path_prepend_): New function, to be used in place
13863         of the --src-path=DIR option.
13864         (setup_): Move PATH-prepending code into path_prepend_.
13865         * tests/test-pread.sh: Adapt to new usage.
13866         * tests/test-xalloc-die.sh: Likewise.
13867
13868 2009-12-08  Simon Josefsson  <simon@josefsson.org>
13869
13870         * doc/gnulib.texi (Glibc pty.h): Add.
13871         * doc/glibc-functions/forkpty.texi: Add.
13872         * doc/glibc-functions/openpty.texi: Add.
13873         Suggested by Bruno Haible.
13874
13875 2009-12-08  Eric Blake  <ebb9@byu.net>
13876
13877         fchdir: fix logic bugs
13878         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
13879         * tests/test-fchdir.c (main): Enhance test.
13880         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
13881         is in use.
13882
13883         dup2: fix logic bugs
13884         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
13885         REPLACE_DUP2 to decide when rpl_dup2 is needed.
13886         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
13887         exists.
13888         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
13889
13890 2009-12-07  Eric Blake  <ebb9@byu.net>
13891
13892         unlink: fix m4 detection
13893         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
13894
13895         unistd-safer: add unit test
13896         * modules/unistd-safer-tests: New file.
13897         * tests/test-dup-safer.c: Likewise.
13898         * tests/test-cloexec.c (setmode): Avoid compiler warning.
13899         * tests/test-dup2.c (setmode): Likewise.
13900         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
13901
13902         cloexec: preserve text vs. binary across dup_cloexec
13903         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
13904         mode.
13905         * modules/dup2-tests (Depends-on): Add binary-io.
13906         * modules/cloexec-tests (Depends-on): Likewise.
13907         * tests/test-dup2.c (setmode, is_mode): New helpers.
13908         (main): Add tests that translation mode is preserved.
13909         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
13910         Reported by Bruno Haible.
13911
13912         mgetgroups: reduce duplicate listings
13913         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
13914         resulting array.
13915         * tests/test-chown.h (test_chown): Simplify client.
13916         * tests/test-lchown.h (test_lchown): Likewise.
13917
13918 2009-12-06  Bruno Haible  <bruno@clisp.org>
13919
13920         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
13921         value.
13922
13923 2009-12-06  Bruno Haible  <bruno@clisp.org>
13924
13925         * lib/progname.c: Include stdio.h, stdlib.h.
13926         (set_program_name): Reject a NULL argument.
13927
13928 2009-12-05  Eric Blake  <ebb9@byu.net>
13929
13930         pipe2-safer: new module
13931         * modules/pipe2-safer: New file.
13932         * lib/unistd-safer.h (pipe2_safer): New prototype.
13933         * lib/unistd--.h (pipe2): New wrapper.
13934         * lib/pipe-safer.c (pipe2_safer): New function.
13935         * modules/pipe (Depends-on): Add pipe2-safer.
13936         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
13937
13938         stdlib-safer: preserve cloexec flag for mkostemp[s]
13939         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
13940         fd_safer_flag.
13941
13942         unistd-safer: allow preservation of cloexec status via flag
13943         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
13944         prototypes.
13945         * lib/dup-safer.c (dup_safer_flag): New function.
13946         * lib/fd-safer.c (fd_safer_flag): Likewise.
13947         * modules/cloexec (configure.ac): Set witness.
13948
13949         test-dup2: enhance test
13950         * modules/dup2-tests (Depends-on): Add cloexec.
13951         * tests/test-dup2.c (main): Enhance test.
13952
13953         cloexec: add dup_cloexec
13954         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
13955         header and comments.
13956         * lib/cloexec.c (set_cloexec_flag): Add comments.
13957         (dup_cloexec): New function, with mingw implementation borrowed
13958         from...
13959         * lib/w32spawn.h (dup_noinherit): ...here.
13960         * modules/execute (Depends-on): Add cloexec.
13961         * modules/pipe (Depends-on): Likewise.
13962         * modules/cloexec (Depends-on): Add dup2.
13963         * modules/cloexec-tests (Files): New file.
13964         * tests/test-cloexec.c: Likewise.
13965
13966         test-xalloc-die: fix test for mingw
13967         * modules/xalloc-die-tests (Files): Add tests/init.sh.
13968         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
13969         directory and .exe suffix off argv[0] output.
13970
13971         test-fseeko: fix test for mingw
13972         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
13973         than undefining fseek, so test will pass on mingw.
13974
13975 2009-12-05  Bruno Haible  <bruno@clisp.org>
13976
13977         * lib/progname.h (set_program_name): Clarify specification.
13978         * lib/progname.c (set_program_name): Likewise.
13979         Reported by Jim Meyering.
13980
13981 2009-12-05  Jim Meyering  <meyering@redhat.com>
13982
13983         maint.mk: backslash-escape parens in default regexp
13984         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
13985         backslash-escape the literal parentheses.
13986
13987         maint.mk: news-date-check: use grep -E
13988         * top/maint.mk (today): Define a Make variable, not a...
13989         (news-date-check): ...shell variable.
13990         (news-date-regexp): Use the Make variable.
13991         Use grep's -E option.  Change the failing diagnostic to mention
13992         the variable, $(news-date-regexp).
13993
13994 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
13995
13996         maintainer-makefile: allow customization of NEWS entry format
13997         * top/maint.mk (news-date-regexp): New overridable variable.
13998         (news-date-check): Use it.
13999
14000 2009-12-04  Eric Blake  <ebb9@byu.net>
14001
14002         mgetgroups: add xgetgroups, and avoid ENOSYS failures
14003         * lib/mgetgroups.h (xgetgroups): New prototype.
14004         * lib/mgetgroups.c (xgetgroups): New wrapper.
14005         (mgetgroups): Handle ENOSYS.
14006         * modules/mgetgroups (Depends-on): Add realloc.
14007         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
14008
14009         mgetgroups: avoid argument promotion issues with -1
14010         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
14011         for invalid gid_t.
14012         * tests/test-chown.h (getegid, test_chown): Likewise.
14013         * tests/test-lchown.h (getegid, test_lchown): Likewise.
14014
14015 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
14016
14017         exclude: Fix header file problems.
14018         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
14019
14020 2009-12-01  Jim Meyering  <meyering@redhat.com>
14021
14022         fts: fts_open: do not let an empty string cause immediate failure
14023         This is required in support of GNU rm, for which the command
14024         "rm A '' B" must process and remove both A and B, in spite of
14025         the empty string argument.
14026         * lib/fts.c (fts_open): Do not let the presence of an empty string
14027         cause fts_open to fail immediately.  Most fts-using tools must be
14028         able to process all arguments, in order, and can be expected to
14029         diagnose such arguments themselves.
14030
14031 2009-11-30  Eric Blake  <ebb9@byu.net>
14032
14033         utimens: fix compilation error
14034         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
14035         Declare variable at right scope.
14036
14037 2009-11-29  Jim Meyering  <meyering@redhat.com>
14038
14039         bootstrap: handle perl-5.11's changed --version output
14040         * build-aux/bootstrap (get_version): Handle perl separately,
14041         since perl-5.11's --version output is different.
14042
14043 2009-11-28  Jim Meyering  <meyering@redhat.com>
14044
14045         userspec: depend on the inttostr module, too
14046         * modules/userspec (Depends-on): Add inttostr.
14047
14048         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
14049         * lib/userspec.c (parse_with_separator): Do not accept a user ID
14050         number of MAXUID when it evaluates to (uid_t) -1.
14051         Likewise for group ID.  Reported by Matt McCutchen in
14052         <http://savannah.gnu.org/bugs/?28113>
14053
14054         userspec: reformat to use spaces, not TABs
14055         * lib/userspec.c: Expand TABs to spaces.
14056         Add Emacs' "indent-tabs-mode: nil" hint.
14057
14058 2009-11-27  Eric Blake  <ebb9@byu.net>
14059
14060         getopt-gnu: flush out another BSD bug
14061         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
14062         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
14063         flush out BSD bug.
14064         * tests/test-getopt.h (test_getopt): End lists with NULL.
14065         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14066         (test_getopt_long_posix): Enhance test.
14067         * modules/getopt-posix-tests (Depends-on): Add stdbool.
14068         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
14069         getopt-gnu.
14070         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14071         Likewise.
14072
14073 2009-11-27  Simon Josefsson  <simon@josefsson.org>
14074
14075         * modules/idpriv-droptemp-tests (Notice): Fix text.
14076
14077 2009-11-27  Jim Meyering  <meyering@redhat.com>
14078
14079         test-xalloc-die: avoid spurious failure due to libtool argv difference
14080         In a libtool-enabled project, this test would fail due to a difference
14081         in the emitted program name, e.g.,
14082         -test-xalloc-die: memory exhausted
14083         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
14084         Use program to avoid that.
14085         * modules/xalloc-die-tests (Depends-on): Add progname.
14086         * tests/test-xalloc-die.c: Include progname.h".
14087         (program_name): Remove decl.
14088         (main): Call set_program_name.
14089         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
14090
14091 2009-11-26  Richard Jones  <rjones@redhat.com>
14092
14093         w32sock: leave win32 error in place.
14094         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
14095
14096 2009-11-26  Eric Blake  <ebb9@byu.net>
14097
14098         init.sh: suggest to use skip_ and fail_ functions in comments
14099         * tests/init.sh: Add a sentence.
14100
14101 2009-11-25  Bruno Haible  <bruno@clisp.org>
14102
14103         init.sh: add documentation in comments
14104         * tests/init.sh: Add some developer and user documentation.
14105
14106 2009-11-26  Jim Meyering  <meyering@redhat.com>
14107
14108         init.sh: accommodate even those who specify bogus srcdir manually
14109         * tests/init.sh: Normally, srcdir is guaranteed by automake and
14110         configure-time tests to be sanitized, so that there is no need to
14111         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
14112         (with no double quotes) suffices.  However, since tests may be
14113         invoked manually, and since you may explicitly set srcdir to the
14114         name of a directory containing spaces, do quote its uses here.
14115         * tests/test-pread.sh: Likewise.
14116         Suggested by Bruno Haible.
14117
14118         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
14119         * tests/test-pread.sh: Write no data into the pipe, because
14120         test-pread actually reads none.  This avoids a diagnostic,
14121         "bash: echo: write error: Broken pipe", that arises in the unusual
14122         event something is ignoring SIGPIPE, and might be interpreted
14123         as some sort of failure.  Reported by Bruno Haible.
14124
14125 2009-11-25  Jim Meyering  <meyering@redhat.com>
14126
14127         test-pread: cover failure with ESPIPE and EINVAL
14128         * tests/test-pread.c (main): Test for failure, too.
14129         * tests/test-pread.sh: Invoke with stdin on a pipe.
14130         Suggested by Eric Blake.
14131
14132         pread: improvement and fix
14133         * modules/pread (Depends-on): Depend on lseek, for portability to
14134         e.g., mingw.  Suggested by Eric Blake.
14135         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
14136
14137         unistd.in.h: correct declaration of pread
14138         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
14139         Reported by Richard W.M. Jones.
14140
14141         test-pread.sh: distribute the test script
14142         * modules/pread-tests (Files): Include test-pread.sh.
14143
14144         test-pread.sh: clean up
14145         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
14146         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
14147         That is unnecessary, since it's always ".".
14148         Suggestion from Eric Blake.
14149
14150         test-pread.sh: make executable
14151         * tests/test-pread.sh: Set executable bit.
14152         Reported by Eric Blake.
14153
14154         correct typo in test-pread.sh
14155         * tests/test-pread.sh: Add #! line.
14156
14157         test pread
14158         * tests/test-pread.c: New file.
14159         * tests/test-pread.sh: Likewise.
14160         * modules/pread-tests: Likewise.
14161
14162         pread: new module
14163         * modules/pread: New file.
14164         * lib/unistd.in.h (pread): Define/declare.
14165         * lib/pread.c (pread): New file.
14166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
14167         * modules/unistd (Makefile.am): Substitute witnesses.
14168         * doc/posix-functions/pread.texi (pread): Update.
14169         * MODULES.html.sh: Add pread.
14170
14171 2009-11-25  Jim Meyering  <meyering@redhat.com>
14172
14173         tests/init.sh: new file to be used via most *.sh tests
14174         * tests/init.sh: New file.
14175
14176 2009-11-25  Eric Blake  <ebb9@byu.net>
14177
14178         utimens: work around older Linux failure with symlinks
14179         * lib/utimens.c (lutimensat_works_really): New variable.
14180         (fdutimens, lutimens): Use it to manage kernels that support
14181         nanosecond times on files, but not on symlinks.
14182         Reported by OndÅ™ej Vašík.
14183
14184         utimes: fix configure grammar
14185         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
14186
14187 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
14188
14189         regex: Fix fastmap for multibyte character ranges.
14190         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
14191         characters when a multibyte character range is included.
14192
14193 2009-11-22  Andy Wingo  <wingo@pobox.com>
14194
14195         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
14196         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
14197
14198 2009-11-24  Bruno Haible  <bruno@clisp.org>
14199
14200         doc: Most *_l functions exist in MacOS X 10.5.
14201         * doc/posix-functions/duplocale.texi: Update platforms list.
14202         * doc/posix-functions/freelocale.texi: Likewise.
14203         * doc/posix-functions/newlocale.texi: Likewise.
14204         * doc/posix-functions/uselocale.texi: Likewise.
14205         * doc/posix-functions/isalnum_l.texi: Likewise.
14206         * doc/posix-functions/isalpha_l.texi: Likewise.
14207         * doc/posix-functions/isblank_l.texi: Likewise.
14208         * doc/posix-functions/iscntrl_l.texi: Likewise.
14209         * doc/posix-functions/isdigit_l.texi: Likewise.
14210         * doc/posix-functions/isgraph_l.texi: Likewise.
14211         * doc/posix-functions/islower_l.texi: Likewise.
14212         * doc/posix-functions/isprint_l.texi: Likewise.
14213         * doc/posix-functions/ispunct_l.texi: Likewise.
14214         * doc/posix-functions/isspace_l.texi: Likewise.
14215         * doc/posix-functions/isupper_l.texi: Likewise.
14216         * doc/posix-functions/iswalnum_l.texi: Likewise.
14217         * doc/posix-functions/iswalpha_l.texi: Likewise.
14218         * doc/posix-functions/iswblank_l.texi: Likewise.
14219         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14220         * doc/posix-functions/iswctype_l.texi: Likewise.
14221         * doc/posix-functions/iswdigit_l.texi: Likewise.
14222         * doc/posix-functions/iswgraph_l.texi: Likewise.
14223         * doc/posix-functions/iswlower_l.texi: Likewise.
14224         * doc/posix-functions/iswprint_l.texi: Likewise.
14225         * doc/posix-functions/iswpunct_l.texi: Likewise.
14226         * doc/posix-functions/iswspace_l.texi: Likewise.
14227         * doc/posix-functions/iswupper_l.texi: Likewise.
14228         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14229         * doc/posix-functions/isxdigit_l.texi: Likewise.
14230         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
14231         * doc/posix-functions/strcasecmp_l.texi: Likewise.
14232         * doc/posix-functions/strcoll_l.texi: Likewise.
14233         * doc/posix-functions/strfmon_l.texi: Likewise.
14234         * doc/posix-functions/strftime_l.texi: Likewise.
14235         * doc/posix-functions/strncasecmp_l.texi: Likewise.
14236         * doc/posix-functions/strxfrm_l.texi: Likewise.
14237         * doc/posix-functions/tolower_l.texi: Likewise.
14238         * doc/posix-functions/toupper_l.texi: Likewise.
14239         * doc/posix-functions/towctrans_l.texi: Likewise.
14240         * doc/posix-functions/towlower_l.texi: Likewise.
14241         * doc/posix-functions/towupper_l.texi: Likewise.
14242         * doc/posix-functions/wcscoll_l.texi: Likewise.
14243         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14244         * doc/posix-functions/wctrans_l.texi: Likewise.
14245         * doc/posix-functions/wctype_l.texi: Likewise.
14246         * doc/glibc-functions/strptime_l.texi: Likewise.
14247         * doc/glibc-functions/strtod_l.texi: Likewise.
14248         * doc/glibc-functions/strtof_l.texi: Likewise.
14249         * doc/glibc-functions/strtol_l.texi: Likewise.
14250         * doc/glibc-functions/strtold_l.texi: Likewise.
14251         * doc/glibc-functions/strtoll_l.texi: Likewise.
14252         * doc/glibc-functions/strtoul_l.texi: Likewise.
14253         * doc/glibc-functions/strtoull_l.texi: Likewise.
14254         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14255         * doc/glibc-functions/wcstod_l.texi: Likewise.
14256         * doc/glibc-functions/wcstof_l.texi: Likewise.
14257         * doc/glibc-functions/wcstol_l.texi: Likewise.
14258         * doc/glibc-functions/wcstold_l.texi: Likewise.
14259         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14260         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14261         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14262
14263 2009-11-24  Bruno Haible  <bruno@clisp.org>
14264
14265         duplocale: Fix logic bug.
14266         * lib/duplocale.c: Don't include <langinfo.h>.
14267         (_NL_LOCALE_NAME): Remove macro.
14268         (rpl_duplocale): Use setlocale instead of nl_langinfo.
14269         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
14270
14271 2009-11-23  Jim Meyering  <meyering@redhat.com>
14272
14273         test-update-copyright: don't hard-code /usr/bin/perl
14274         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
14275         perl to print the current year.  Gilles Espinasse reported that
14276         the replaced use of perl was hard-coded as /usr/bin/perl.
14277
14278 2009-11-23  Bruno Haible  <bruno@clisp.org>
14279
14280         duplocale: Add support for glibc 2.3.x.
14281         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
14282
14283 2009-11-22  Bruno Haible  <bruno@clisp.org>
14284
14285         vasnprintf: Tiny optimization.
14286         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
14287         MacOS X.
14288
14289 2009-11-22  Bruno Haible  <bruno@clisp.org>
14290
14291         Tests for module 'duplocale'.
14292         * modules/duplocale-tests: New file.
14293         * tests/test-duplocale.c: New file.
14294
14295         New module 'duplocale'.
14296         * m4/duplocale.m4: New file.
14297         * lib/locale.in.h (duplocale): New declaration.
14298         * lib/duplocale.c: New file.
14299         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
14300         gl_LOCALE_H_DEFAULTS): New macros.
14301         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
14302         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
14303         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
14304         REPLACE_DUPLOCALE.
14305         * modules/duplocale: New file.
14306         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
14307
14308 2009-11-22  Bruno Haible  <bruno@clisp.org>
14309
14310         * modules/locale-tests (configure.ac): Test for newlocale function.
14311         * tests/test-locale.c: When the system has extended locale functions,
14312         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
14313
14314         locale: Make locale_t available when possible.
14315         * lib/locale.in.h: Include <xlocale.h> when it exists.
14316         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
14317         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
14318         * modules/locale (Depends-on): Add extensions.
14319         (Makefile.am): Also substitute HAVE_XLOCALE_H.
14320         * doc/posix-headers/locale.texi: Document the problem with locale_t.
14321
14322 2009-11-22  Bruno Haible  <bruno@clisp.org>
14323
14324         Add comments.
14325         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
14326         invocation.
14327         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14328         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
14329         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14330
14331 2009-11-22  Bruno Haible  <bruno@clisp.org>
14332
14333         error: account for the possibility of freopen (stdout).
14334         * lib/error.c: Include <unistd.h>.
14335         (flush_stdout): New function, extracted from error and error_at_line.
14336         Determine stdout's fd dynamically.
14337         (error, error_at_line): Invoke flush_stdout.
14338         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
14339         * modules/error (Depends-on): Add unistd.
14340
14341 2009-11-22  Bruno Haible  <bruno@clisp.org>
14342
14343         diffseq: Add comment.
14344         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
14345
14346 2009-11-22  Jim Meyering  <meyering@redhat.com>
14347
14348         c-stack: avoid defining an unused static function
14349         * lib/c-stack.c (find_stack_direction): Do not define this function
14350         when it will not be used.
14351
14352         diffseq: avoid spurious gcc warnings
14353         * lib/diffseq.h (IF_LINT2): Define.
14354         (compareseq): Use it to initialize two members of "part".
14355         This avoids two used-uninitialized warnings.
14356
14357 2009-11-21  Jim Meyering  <meyering@redhat.com>
14358
14359         c-stack: avoid "ignoring return value of `write'" warning
14360         * lib/c-stack.c: Include "ignore-value.h".
14361         (die): Explicitly ignore each write return value.
14362         * modules/c-stack (Depends-on): Add ignore-value.
14363
14364 2009-11-21  Bruno Haible  <bruno@clisp.org>
14365
14366         diffseq: reduce scope of variable 'best'.
14367         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
14368         variable, earlier used for two different purposes.
14369
14370 2009-11-21  Jim Meyering  <meyering@redhat.com>
14371
14372         diffseq: remove useless assignment to "best"
14373         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
14374         assignment.  At that point "best" is already guaranteed to be zero.
14375
14376 2009-11-20  Eric Blake  <ebb9@byu.net>
14377
14378         build: mention ftp redirector in release announcements
14379         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
14380         values that used to come from cfg.mk; mention FTP redirect URL.
14381         * build-aux/announce-gen: Mention the mirror list.
14382         Suggested by Karl Berry.
14383
14384         nanosleep: improve port to mingw
14385         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
14386         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
14387         LIB_NANOSLEEP, but only when needed.
14388         * modules/select (Link): Document LIBSOCKET.
14389         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
14390         enough.
14391
14392         nanosleep: work around cygwin bug
14393         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
14394         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
14395         bug.
14396         (getnow): Delete, not needed.
14397         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
14398         LIB_CLOCK_GETTIME.
14399         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
14400         clock-time, gettime.
14401         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
14402         bug.
14403         * modules/nanosleep-tests: New test.
14404         * tests/test-nanosleep.c: New file.
14405
14406         sleep: work around cygwin bug
14407         * lib/sleep.c (rpl_sleep): Work around the bug.
14408         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
14409         (gl_PREREQ_SLEEP): Delete unused macro.
14410         * modules/sleep (Depends-on): Add verify.
14411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14412         * modules/unistd (Makefile.am): Substitute witness.
14413         * lib/unistd.in.h (sleep): Update prototype.
14414         * doc/posix-functions/sleep.texi (sleep): Document the bug.
14415         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
14416         * modules/sleep-tests (Depends-on): Check for alarm.
14417
14418 2009-11-20  Jim Meyering  <meyering@redhat.com>
14419
14420         maint.mk: improve sc_prohibit_magic_number_exit
14421         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
14422         so it does not match uses like System.exit(1).
14423         Add comments showing how to correct all offenders.
14424
14425 2009-11-19  Eric Blake  <ebb9@byu.net>
14426
14427         xalloc-die-tests: add missing library
14428         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
14429
14430         test-xvasprintf: silence compiler warnings
14431         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
14432         empty string from gcc.
14433
14434 2009-11-19  Jim Meyering  <meyering@redhat.com>
14435
14436         xfreopen: new module, from coreutils
14437         * modules/xfreopen: New module.
14438         * lib/xfreopen.c: New file.
14439         * lib/xfreopen.h: New file.
14440         * MODULES.html.sh (File stream based Input/Output"): Add it.
14441
14442 2009-11-19  Eric Blake  <ebb9@byu.net>
14443
14444         manywarnings: depend on warnings
14445         * modules/manywarnings (Depends-on): Add warnings.
14446
14447         build: avoid compiler warnings
14448         * lib/select.c (rpl_select): Delete unused variable.
14449         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
14450
14451 2009-11-18  Eric Blake  <ebb9@byu.net>
14452
14453         tests: avoid false negative with --with-packager
14454         * tests/test-version-etc.sh: Discard packager information.
14455         * tests/test-argp-version-etc-1.sh: Likewise.
14456         Reported by Mike Frysinger.
14457
14458         utimens: fix regression on Solaris
14459         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
14460         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
14461         can only change fd timestamps via futimesat.  Instead, use an
14462         additional witness macro to avoid BSD bug.
14463         Reported by Jim Meyering.
14464
14465 2009-11-17  Eric Blake  <ebb9@byu.net>
14466
14467         usleep: use it to simplify tests
14468         * modules/stat-time-tests (Depends-on): Add usleep.
14469         (configure.ac): Drop usleep check.
14470         * modules/chown-tests (Depends-on, configure.ac): Likewise.
14471         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
14472         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
14473         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
14474         * modules/openat-tests (Depends-on, configure.ac): Likewise.
14475         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
14476         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
14477         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
14478         Likewise.
14479         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
14480         * tests/test-lchown.h (nap): Likewise.
14481         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
14482         * tests/test-stat-time.c (nap): Likewise.
14483         * tests/test-utimens-common.h (nap): Update comments.
14484
14485         usleep: new module
14486         * modules/usleep: New file.
14487         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
14488         * lib/usleep.c (usleep): Likewise.
14489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
14490         * modules/unistd (Makefile.am): Substitute witnesses.
14491         * lib/unistd.in.h (usleep): Add declaration.
14492         * doc/pastposix-functions/usleep.texi (usleep): Document this.
14493         * MODULES.html.sh (Date and time): Likewise.
14494         * modules/usleep-tests (Depends-on): New test.
14495         * tests/test-usleep.c: New file.
14496
14497         chown: work around OpenBSD bug
14498         * lib/chown.c (rpl_chown): Work around the bug.
14499         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
14500         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
14501         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
14502         * modules/chown (Depends-on): Add stdbool.
14503         * modules/lchown (Depends-on): Likewise.
14504         * doc/posix-functions/chown.texi (chown): Document the bug.
14505         * doc/posix-functions/lchown.texi (lchown): Likewise.
14506         * tests/test-lchown.h (test_chown): Relax test.
14507
14508         mkstemp: avoid conflict with C++ keyword template
14509         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
14510         * lib/mkostemp.c (mkostemp): Likewise.
14511         * lib/mkostemps.c (mkostemps): Likewise.
14512         * lib/mkstemp.c (mkstemp): Likewise.
14513         * lib/mkstemps.c (mkstemps): Likewise.
14514
14515         xalloc-die-tests: optimize
14516         * tests/test-xalloc-die.sh: Reduce number of processes.
14517
14518 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14519
14520         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
14521         patch from ludo@gnu.org (Ludovic Courtès).
14522
14523 2009-11-17  Jim Meyering  <meyering@redhat.com>
14524
14525         version-etc: use proper license string
14526         * modules/version-etc (License): Use LGPL, not LGPLv3+.
14527         * modules/version-etc-fsf: Likewise.
14528
14529 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14530
14531         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
14532         printed to stdout.  Deal with EOL differences.
14533
14534 2009-11-17  Eric Blake  <ebb9@byu.net>
14535
14536         unsetenv: work around Solaris bug
14537         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
14538         * lib/unsetenv.c (rpl_unsetenv): Work around it.
14539         Reported by Jim Meyering.
14540
14541         vasnprintf: avoid compiler warnings
14542         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
14543         variables.
14544         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
14545
14546 2009-11-17  Simon Josefsson  <simon@josefsson.org>
14547
14548         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
14549         settings since xalloc-die is no longer the self test,
14550         xalloc-die.sh is.
14551
14552 2009-11-17  Jim Meyering  <meyering@redhat.com>
14553
14554         test-xalloc-die.sh: make the code agree with the commit log
14555         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
14556         at the end, just in case you happen to have a test-xalloc-die
14557         program in some other PATH directory.
14558
14559         test-xalloc-die.sh: fix a portability bug
14560         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
14561         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
14562         Otherwise, argv[0] (as often seen in diagnostics) would be too
14563         system-dependent, sometimes with, and sometimes without the leading "./".
14564
14565         version-etc-fsf: relax license to LGPLv3+
14566         * modules/version-etc-fsf (License): Relax license.
14567
14568 2009-11-16  Eric Blake  <ebb9@byu.net>
14569
14570         xalloc-die-tests: avoid printing null pointer
14571         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
14572         shell script.
14573         * tests/test-xalloc-die.c (program_name): Declare.
14574         * tests/test-xalloc-die.sh (tmpfiles): New file.
14575
14576         setenv, unsetenv: work around various bugs
14577         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
14578         (setenv) [HAVE_SETENV]: Work around bugs.
14579         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
14580         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
14581         for bugs.
14582         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
14583         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
14584         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
14585         * modules/stdlib (Makefile.am): Update substitutions.
14586         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
14587         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
14588         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14589         * modules/setenv-tests: New test.
14590         * modules/unsetenv-tests: Likewise.
14591         * tests/test-setenv.c: New file.
14592         * tests/test-unsetenv.c: Likewise.
14593
14594 2009-11-16  Jim Meyering  <meyering@redhat.com>
14595
14596         version-etc: relax license to LGPLv3+
14597         * modules/version-etc (License): Relax license.
14598
14599         better AC_REQUIRE expanded-before-required-warning avoidance
14600         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
14601         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
14602         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
14603         which is no longer needed.
14604
14605 2009-11-16  Eric Blake  <ebb9@byu.net>
14606
14607         test-freading: clean up temporary file
14608         * tests/test-freading.c (main): Remove file on success, and use
14609         ASSERT more liberally.
14610         Reported by Jim Meyering.
14611
14612 2009-11-16  Jim Meyering  <meyering@redhat.com>
14613
14614         avoid new AC_REQUIRE expanded-before-required warnings
14615         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
14616         merely using it.
14617         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
14618         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
14619
14620 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14621
14622         * tests/test-xalloc-die.c: New file.
14623         * modules/xalloc-die-tests: New file.
14624         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
14625         XFAIL_TESTS so it can be appended by modules.
14626
14627 2009-11-15  Simon Josefsson  <simon@josefsson.org>
14628
14629         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
14630         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
14631
14632 2009-11-14  Eric Blake  <ebb9@byu.net>
14633
14634         fnmatch: avoid compiler warning
14635         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
14636         to silence compiler warning about mismatch signedness in ?:.
14637         Reported by Robert Millan.
14638
14639         intprops: add double-inclusion guard
14640         * lib/intprops.h: Allow idempotent includes.
14641         Suggested by Bruce Korb.
14642
14643         openat: detect Solaris fchownat bug
14644         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
14645         penalizing glibc chownat when only lchownat is broken.
14646         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
14647         trailing slash bugs.
14648         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
14649         * modules/openat-tests (Files): Include more files.
14650         (Depends-on): Add mgetgroups, sleep, stat-time.
14651         (configure.ac): Add additional checks.
14652         (Makefile.am): Build new test.
14653         * tests/test-fchownat.c: New file.
14654
14655         lchown: detect Solaris and FreeBSD bug
14656         * lib/lchown.c (rpl_lchown): Work around bug.
14657         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
14658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14659         * modules/unistd (Makefile.am): Populate it.
14660         * lib/unistd.in.h (lchown): Update declaration.
14661         * doc/posix-functions/lchown.texi (lchown): Document the bug.
14662         * modules/lchown-tests: New file.
14663         * tests/test-lchown.h (test_lchown): Likewise.
14664         * tests/test-lchown.c (main): Likewise.
14665
14666         chown: detect Solaris and FreeBSD bug
14667         * lib/chown.c (rpl_chown): Work around bug.
14668         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
14669         (gl_PREREQ_CHOWN): Delete.
14670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
14671         * modules/unistd (Makefile.am): Populate it.
14672         * lib/unistd.in.h (chown): Update declaration.
14673         * lib/lchown.c (chown): Update client.
14674         * modules/lchown (Depends-on): Add lstat.
14675         * doc/posix-functions/chown.texi (chown): Document the bug.
14676         * doc/posix-functions/getgroups.texi (getgroups): Document
14677         getgroups pitfall.
14678         * modules/chown-tests: New file.
14679         * tests/test-chown.h (test_chown): Likewise.
14680         * tests/test-chown.c (main): Likewise.
14681
14682 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
14683
14684         gnulib-tool: correctly detect absence of m4 directories
14685         * gnulib-tool: Avoid extra newline on data passed to wc -l.
14686
14687 2009-11-14  Jim Meyering  <meyering@redhat.com>
14688
14689         maint.mk: Prohibit inclusion of "xalloc.h" without use.
14690         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14691
14692 2009-11-14  John W. Eaton  <jwe@gnu.org>
14693
14694         strftime.h: wrap funtion declaration in extern "C" block
14695         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
14696
14697 2009-11-13  Eric Blake  <ebb9@byu.net>
14698
14699         getgroups: avoid compiler warning
14700         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
14701
14702         getgroups: work around FreeBSD bug
14703         * lib/getgroups.c (rpl_getgroups): Work around the bug.
14704         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
14705         * doc/posix-functions/getgroups.texi (getgroups): Document it.
14706         * tests/test-getgroups.c (main): Fix buffer overrun.
14707
14708         getgroups: avoid compilation failure
14709         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
14710         * modules/getgroups (Depends-on): Add stdint.
14711
14712 2009-11-13  Jim Meyering  <meyering@redhat.com>
14713
14714         test-getgroups: avoid compilation failure
14715         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
14716
14717 2009-11-13  Eric Blake  <ebb9@byu.net>
14718
14719         mgetgroups: new module, taken from coreutils
14720         * modules/mgetgroups: New file.
14721         * lib/mgetgroups.h: Likewise.
14722         * lib/mgetgroups.c (mgetgroups): Likewise.
14723         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
14724         * MODULES.html.sh (Users and groups): Mention it.
14725
14726         getgroups: don't expose GETGROUPS_T to user
14727         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
14728         an element at a time if GETGROUPS_T is wrong size.
14729         * lib/getugroups.h (getugroups): Change signature.
14730         * lib/unistd.in.h (getgroups): Likewise.
14731         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
14732         signature needs fixing.
14733         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
14734         AC_TYPE_GETGROUPS.
14735         * modules/group-member (Depends-on): Add getgroups.
14736         * lib/group-member.c (group_info, get_group_info): Use gid_t.
14737         (group_member): Rely on getgroups replacement.
14738         * lib/getugroups.c (getugroups): Use gid_t.
14739         * tests/test-getgroups.c (main): Likewise.
14740         * NEWS: Mention the signature change.
14741         * doc/posix-functions/getgroups.texi (getgroups): Mention the
14742         problem with signature.
14743         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
14744         GETGROUPS_T is still useful for setgroups.
14745
14746         getgroups, getugroups: provide stubs for mingw
14747         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
14748         * lib/getugroups.c (getugroups): Likewise.
14749         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
14750         function.  Modernize replacement scheme.
14751         (gl_PREREQ_GETGROUPS): Delete.
14752         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
14753         * modules/getgroups (configure.ac): Declare witness.
14754         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14755         * modules/unistd (Depends-on): Substitute witness.
14756         * lib/unistd.in.h (getgroups): Declare replacement.
14757
14758         getgroups: avoid calling exit
14759         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
14760         drop xalloc.
14761         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
14762         dependencies.
14763         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
14764         exiting, in the rare case of malloc failure.
14765
14766         getgroups: fix logic error
14767         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
14768         has more than 20 groups.
14769         * modules/getgroups-tests: New test.
14770         * tests/test-getgroups.c: New file.
14771
14772 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14773
14774         * tests/test-base64.c: Improve.
14775
14776 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14777
14778         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
14779         Blake <ebb9@byu.net>.
14780
14781 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14782
14783         * tests/test-xvasprintf.c: Add %s%s related checks.
14784
14785 2009-11-12  Eric Blake  <ebb9@byu.net>
14786
14787         version-etc: match standards.texi style
14788         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
14789         and use <> only for URLs.
14790
14791 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
14792
14793         fts: do not fail on a submount during traversal
14794         * lib/fts.c (fts_build): Read the stat info again after opening
14795         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
14796         Original report at http://bugzilla.redhat.com/501848.
14797
14798 2009-11-12  Jim Meyering  <meyering@redhat.com>
14799
14800         bootstrap: sync from coreutils
14801         * build-aux/bootstrap (bootstrap_epilogue): New function.
14802         Use git_modules_config in one more place.  This make bootstrap's
14803         --gnulib-srcdir option more useful for testing.
14804
14805         bootstrap: generalize autoheader check
14806         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
14807         AC_CONFIG_HEADERS.
14808
14809 2009-11-11  Eric Blake  <ebb9@byu.net>
14810
14811         mkfifoat: use new modules for Solaris and BSD bugs
14812         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
14813         * lib/mkfifoat.c (mknodat): Split...
14814         * lib/mknodat.c (mknodat): ...into new file.
14815         * modules/mkfifoat (Files): Ship new file.
14816         (Depends-on): Add mkfifo, mknod.
14817         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
14818         (Depends-on): Add symlink.
14819         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
14820         redundant with test_mkfifo.h.
14821         (do_mkfifoat, do_mknodat): New helpers.
14822
14823         mknod: new module
14824         * modules/mknod: New file.
14825         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
14826         * lib/mknod.c (mknod): Likewise.
14827         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14828         defaults.
14829         * modules/sys_stat (Makefile.am): Substitute them.
14830         * lib/sys_stat.in.h (mknod): Declare replacement.
14831         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14832         Document it.
14833         * doc/posix-functions/mknod.texi (mknod): Likewise.
14834         * modules/mknod-tests: New test.
14835         * tests/test-mknod.c: Likewise.
14836
14837         mkfifo: new module
14838         * modules/mkfifo: New file.
14839         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14840         * lib/mkfifo.c (mkfifo): Likewise.
14841         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14842         defaults.
14843         * modules/sys_stat (Makefile.am): Substitute them.
14844         * lib/sys_stat.in.h (mkfifo): Declare replacement.
14845         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14846         Document it.
14847         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
14848         * modules/mkfifo-tests: New test.
14849         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
14850         from test-mkfifoat.c.
14851         * tests/test-mkfifo.c: New file.
14852
14853         readlink: detect FreeBSD bug
14854         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
14855         slash on symlink.
14856         * doc/posix-functions/readlink.texi (readlink): Document the bug.
14857         * tests/test-readlink.h (test_readlink): Enhance test.
14858
14859         symlink: detect FreeBSD bug
14860         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
14861         slash on symlink.
14862         * doc/posix-functions/symlink.texi (symlink): Document the bug.
14863         * tests/test-symlink.h (test_symlink): Enhance test.
14864
14865 2009-11-10  Eric Blake  <ebb9@byu.net>
14866
14867         link: detect FreeBSD bug
14868         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
14869         symlink.
14870         * doc/posix-functions/link.texi (link): Document the bug.
14871         * tests/test-link.h (test_link): Enhance test.
14872         * tests/test-linkat.c (main): Update caller.
14873
14874         unlink, remove: detect FreeBSD bug
14875         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
14876         slash on symlink.
14877         * doc/posix-functions/unlink.texi (unlink): Document the bug.
14878         * doc/posix-functions/remove.texi (remove): Likewise.
14879         * tests/test-unlink.h (test_unlink): Enhance test.
14880         * tests/test-remove.c (main): Likewise.
14881
14882 2009-11-09  Eric Blake  <ebb9@byu.net>
14883
14884         rename: detect FreeBSD bug
14885         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
14886         slash on symlink.
14887         * modules/renameat-tests (Depends-on): Add filenamecat.
14888         * tests/test-rename.h (test_rename): Allow one more errno.
14889         * tests/test-renameat.c (main): Likewise.
14890         * doc/posix-functions/rename.texi (rename): Document the bug.
14891
14892         open: detect FreeBSD bug
14893         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
14894         symlink.
14895         * doc/posix-functions/open.texi (open): Document the bug.
14896         * doc/posix-functions/utimes.texi (utimes): Likewise.
14897         * tests/test-open.h (test_open): Add parameters, and test symlink
14898         handling.
14899         * tests/test-open.c (main): Adjust caller.
14900         * tests/test-fcntl-safer.c (main): Likewise.
14901         * modules/open-tests (Depends-on): Add stdbool, symlink.
14902         * modules/fcntl-safer-tests (Depends-on): Likewise.
14903         * tests/test-openat.c (main): Add test-open tests.
14904
14905         stat: detect FreeBSD bug
14906         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
14907         symlink.
14908         * doc/posix-functions/stat.texi (stat): Document the bug.
14909         * tests/test-stat.h (test_stat_func): Add argument.
14910         * tests/test-stat.c (main): Adjust caller.
14911         * tests/test-fstatat.c (main): Likewise.
14912         * modules/stat-tests (Depends-on): Add stdbool, symlink.
14913         Reported by Jim Meyering.
14914
14915 2009-11-09  James Youngman  <jay@gnu.org>
14916
14917         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
14918         * lib/strftime.c: Correct placement of #include "ignore-value.h".
14919
14920 2009-11-08  Jim Meyering  <meyering@redhat.com>
14921
14922         utimens: remove invalid futimesat call
14923         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
14924         It used the file descriptor of the target file as the DIR_FD
14925         parameter and NULL as the file name.  That caused failure with
14926         errno == EFAULT on FreeBSD-8.0-rc2
14927
14928 2009-11-07  Eric Blake  <ebb9@byu.net>
14929
14930         fflush, freadseek: use fseeko, not fseek
14931         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
14932         (clear_ungetc_buffer): Avoid potential problems on large files.
14933         * lib/freadseek.c (freadseek): Likewise.
14934         * modules/freadseek (Depends-on): Add fseeko.
14935         * modules/fseek (configure.ac): Set a witness.
14936         * tests/test-fflush.c (main): Use fseeko.
14937         * tests/test-fpurge.c (fseek): Disable link warning.
14938         * tests/test-freadable.c (fseek): Likewise.
14939         * tests/test-freading.c (fseek): Likewise.
14940         * tests/test-fseeko.c (fseek): Likewise.
14941         * tests/test-ftell.c (fseek): Likewise.
14942         * tests/test-ftello.c (fseek): Likewise.
14943         * tests/test-fwritable.c (fseek): Likewise.
14944         * tests/test-fwriting.c (fseek): Likewise.
14945
14946 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14947
14948         * modules/memchr (Depends-on): Drop getpagesize dependency.
14949
14950 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14951
14952         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
14953         Reported by Ludovic Courtès.
14954         * build-aux/pmccabe2html: Improve example usage.
14955         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
14956
14957 2009-11-06  Jim Meyering  <meyering@redhat.com>
14958
14959         do-release-commit-and-tag: New module.
14960         Automate the release-commit and tag process.
14961         * build-aux/do-release-commit-and-tag: New script, from coreutils.
14962         * modules/do-release-commit-and-tag: New file.
14963         * MODULES.html.sh (Support for maintaining and releasing): Add it.
14964
14965 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14966
14967         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
14968         because test-select.c uses inet_pton.
14969
14970 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14971
14972         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
14973         GETADDRINFO_LIB.  Bump serial number.
14974         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
14975         Suggested by Eric Blake <ebb9@byu.net>.
14976
14977 2009-11-05  Eric Blake  <ebb9@byu.net>
14978
14979         strtod: detect darwin bug
14980         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
14981         Reported by Leo Davis.
14982
14983         freopen-safer: new module
14984         * modules/freopen-safer: New module.
14985         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
14986         * lib/freopen-safer.c (freopen_safer): New file.
14987         * lib/stdio-safer.h (freopen_safer): New declaration.
14988         * lib/stdio--.h (freopen): New override.
14989         * MODULES.html.sh (File stream based Input/Output): Mention it.
14990         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
14991         freopen-safer module.
14992         * doc/posix-functions/stderr.texi (stderr): Likewise.
14993         * doc/posix-functions/stdin.texi (stdin): Likewise.
14994         * doc/posix-functions/stdout.texi (stdout): Likewise.
14995         * modules/freopen-safer-tests: New test.
14996         * tests/test-reopen-safer.c: New file.
14997
14998 2009-11-05  Jim Meyering  <meyering@redhat.com>
14999
15000         maint.mk: Prohibit inclusion of "close-stream.h" without use.
15001         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15002
15003 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15004
15005         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
15006
15007 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15008
15009         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
15010
15011 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15012
15013         Fix link error.
15014         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
15015         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15016
15017 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15018
15019         * tests/test-func.c: Also test value of __func__.
15020
15021 2009-11-05  Simon Josefsson  <simon@josefsson.org>
15022
15023         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
15024         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
15025
15026 2009-11-05  Bruno Haible  <bruno@clisp.org>
15027
15028         Fix link error.
15029         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
15030         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15031         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
15032
15033 2009-11-05  Bruno Haible  <bruno@clisp.org>
15034
15035         Tests for module 'inet_pton'.
15036         * modules/inet_pton-tests: New file.
15037         * tests/test-inet_pton.c: New file.
15038
15039 2009-11-05  Bruno Haible  <bruno@clisp.org>
15040
15041         Tests for module 'inet_ntop'.
15042         * modules/inet_ntop-tests: New file.
15043         * tests/test-inet_ntop.c: New file.
15044
15045 2009-11-04  Eric Blake  <ebb9@byu.net>
15046
15047         stdlib-safer: wrap all mkstemp variants
15048         * modules/mkostemp (configure.ac): Set witness.
15049         * modules/mkostemps (configure.ac): Likewise.
15050         * modules/mkstemps (configure.ac): Likewise.
15051         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
15052         (mkstemps_safer): Wrap more functions.
15053         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
15054         wrapping.
15055         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
15056         (mkstemps_safer): Implement the wrappers.
15057
15058         mkstemps, mkostemps: new modules
15059         * modules/mkostemps: New module.
15060         * modules/mkstemps: Likewise.
15061         * lib/mkostemps.c (mkostemps): New file.
15062         * lib/mkstemps.c (mkstemps): Likewise.
15063         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
15064         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
15065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
15066         * modules/stdlib (Makefile.am): Substitute them.
15067         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
15068         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
15069         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15070         * doc/gnulib.texi (Glibc stdlib.h): Include them.
15071         * MODULES.html.sh (File system functions): Mention them.
15072
15073         tempname: resync from glibc
15074         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
15075         same values for __GT_FILE as glibc.  Abort even when assertions
15076         are disabled.
15077         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
15078         match its value otherwise.  Allow idempotent inclusion.
15079         * lib/mkdtemp.c (mkdtemp): Adjust caller.
15080         * lib/mkostemp.c (mkostemp): Likewise.
15081         * lib/mkstemp.c (mkstemp): Likewise.
15082         * lib/tmpfile.c (tmpfile): Likewise.
15083         * NEWS: Document this.
15084
15085         utimens: fix use of futimens on older Linux
15086         * lib/utimens.c (fdutimens): Use updated, rather than original,
15087         timespec to avoid bug in older Linux kernel.
15088         Reported by Simon Josefsson.
15089
15090 2009-11-04  Bruno Haible  <bruno@clisp.org>
15091
15092         Make num_processors more flexible and consistent.
15093         * lib/nproc.h (enum nproc_query): New type.
15094         (num_processors): Add a 'query' argument.
15095         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
15096         (num_processors): Add a 'query' argument. Test the value of the
15097         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
15098         mingw, count the number of CPUs available for the current process.
15099         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
15100         Check for sched_getaffinity and sched_getaffinity_np.
15101         * modules/nproc (Depends-on): Add c-ctype, extensions.
15102         * NEWS: Mention the change.
15103
15104 2009-11-03  Bruno Haible  <bruno@clisp.org>
15105
15106         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
15107
15108 2009-11-03  Jim Meyering  <meyering@redhat.com>
15109
15110         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
15111         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
15112         if it is defined.
15113
15114 2009-11-02  Eric Blake  <ebb9@byu.net>
15115
15116         mktime, timegm: share common declaration
15117         * lib/mktime-internal.h: New file.
15118         * lib/mktime.c: Use it rather than open-coding a declaration.
15119         * lib/timegm.c: Likewise.
15120         * modules/mktime (Files): Ship it.
15121         * modules/timegm (Files): Likewise.
15122         Suggested by Bruno Haible.
15123
15124         test-update-copyright: update test to match script changes
15125         * tests/test-update-copyright.sh: Avoid hard-coding perl
15126         location.  Don't update *.bak created by earlier runs.
15127
15128 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
15129             Simon Josefsson  <simon@josefsson.org>
15130             Bruno Haible  <bruno@clisp.org>
15131
15132         Fix link error on Solaris 8.
15133         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
15134         also in libnsl. Define also INET_PTON_LIB.
15135         * modules/inet_pton (Link): New section.
15136
15137 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15138             Bruno Haible  <bruno@clisp.org>
15139
15140         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
15141         * modules/inet_ntop (Link): New section.
15142         Reported by Boyan Kasarov <bkasarov@gmail.com>.
15143
15144 2009-11-02  Eric Blake  <ebb9@byu.net>
15145
15146         maint: avoid compiler warnings in m4 macros
15147         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
15148         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
15149
15150 2009-11-02  Simon Josefsson  <simon@josefsson.org>
15151
15152         * m4/pmccabe2html.m4: Remove file.
15153         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
15154         function.  Change maintainer.
15155         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
15156         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
15157         Courtès).
15158
15159 2009-10-31  Eric Blake  <ebb9@byu.net>
15160
15161         fseeko: fix m4 regression
15162         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
15163         regression from 2009-10-27.
15164         Reported by Ralf Wildenhues.
15165
15166 2009-10-31  Jim Meyering  <meyering@redhat.com>
15167
15168         inttostr: aesthetics and improved (compile-time) safety
15169         Define inttype_is_signed rather than inttype_is_unsigned,
15170         since the sole use is via "#if inttype_is_signed".
15171         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
15172         inttype_is_unsigned.
15173         * lib/offtostr.c (inttype_is_signed): Likewise.
15174         * lib/uinttostr.c (inttype_is_signed): Likewise.
15175         * lib/umaxtostr.c (inttype_is_signed): Likewise.
15176         * lib/inttostr.c (inttostr): Use verify to cross-check the
15177         inttype_is_signed value and the signedness of the actual type.
15178         * modules/inttostr (Depends-on): Add verify.
15179
15180 2009-10-30  Eric Blake  <ebb9@byu.net>
15181
15182         build: avoid compiler warnings
15183         * lib/fchmodat.c (lchmod): Mark unused variables.
15184         * lib/getopt.c (_getopt_initialize): Likewise.
15185         * lib/mktime.c (__mktime_internal): Provide prototype.
15186         * lib/inttostr.c (inttostr): Avoid compiler warning even with
15187         older gcc that do not understand #pragma GCC diagnostic.
15188         * lib/uinttostr.c (inttype_is_unsigned): Define.
15189         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
15190
15191 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
15192
15193         stat: fix compilation on AIX
15194         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
15195         only see struct stat64.
15196
15197 2009-10-30  Eric Blake  <ebb9@byu.net>
15198
15199         exclude: make more robust
15200         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
15201         rather than masking a coding bug.
15202         Suggested by Bruno Haible.
15203
15204 2009-10-30  Jim Meyering  <meyering@redhat.com>
15205
15206         perl scripts: remove #!/usr/bin/perl in favor of more portable...
15207         Rather than putting #!/usr/bin/perl on the first line,
15208         start with a variant of what's recommended by "man perlrun" that
15209         invokes the first "perl" program from your shell's search path.
15210         * build-aux/gitlog-to-changelog: Replace #!... as above.
15211         Add a "Local Variables" perl mode setting.
15212         Prompted by a patch from Ludovic Courtès.
15213         Improved by Eric Blake.
15214         * build-aux/useless-if-before-free: Likewise.
15215         * build-aux/announce-gen: Likewise.
15216         * build-aux/update-copyright: Likewise.
15217
15218 2009-10-29  Eric Blake  <ebb9@byu.net>
15219
15220         filenamecat-lgpl: adjust clients
15221         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
15222         filenamecat.
15223         * modules/renameat (Depends-on): Likewise.
15224
15225         filenamecat: split into filenamecat-lgpl
15226         * modules/filenamecat-lgpl: New module.
15227         * modules/filenamecat (Files): Move library-safe files into
15228         filenamecat-lgpl.
15229         (Depends-on): Add filenamecat-lgpl.
15230         (configure.ac): Declare witness.
15231         * lib/filenamecat.h (file_name_concat): Only declare when using
15232         GPL module.
15233         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
15234         Move...
15235         * lib/filenamecat-lgpl.c: ...into new file.
15236         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
15237         (gl_FILE_NAME_CONCAT): Use it.
15238         * MODULES.html.sh (File system functions): Mention new module.
15239
15240         argp: avoid memory leak
15241         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
15242         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
15243         base_name, since the latter malloc()s and can call exit().
15244         Leak introduced 2006-07-03.
15245
15246         dirname-lgpl: adjust clients that don't need full dirname
15247         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
15248         * modules/filenamecat (Depends-on): Likewise.
15249         * modules/linkat (Depends-on): Likewise.
15250         * modules/mkancesdirs (Depends-on): Likewise.
15251         * modules/mkdir (Depends-on): Likewise.
15252         * modules/openat (Depends-on): Likewise.
15253         * modules/savewd (Depends-on): Likewise.
15254         * modules/rename (Depends-on): Likewise.
15255         (License): Relax license.
15256         * modules/mkdir-tests (Depends-on): Drop progname.
15257         (Makefile.am): Delete unneeded LDADD.
15258         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
15259
15260         dirname: split into dirname-lgpl
15261         * modules/dirname-lgpl: New module.
15262         * modules/dirname (Files): Move library-safe files into
15263         dirname-lgpl.
15264         (Depends-on): Add dirname-lgpl.
15265         (configure.ac): Declare witness.
15266         * modules/double-slash-root (License): Relax license.
15267         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
15268         module.
15269         * lib/dirname.c (dir_len, mdir_name): Move...
15270         * lib/dirname-lgpl.c: ...into new file.
15271         * lib/basename.c (last_component, base_len): Move...
15272         * lib/basename-lgpl.c: ...into new file.
15273         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
15274         (gl_DIRNAME): Use it.
15275         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
15276         Mention new module.
15277         * modules/dirname-tests (Depends-on): Add progname.
15278         * tests/test-dirname.c (program_name): Delete.
15279
15280         mkdir: make safe for libraries
15281         * modules/mkdir (Depends-on): Drop xalloc.
15282         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
15283         exit.
15284
15285         tests: avoid some compiler warnings
15286         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
15287         literals.
15288         * tests/test-memchr.c (main): Avoid type mismatch.
15289         * tests/test-arpa_inet.c (main): Avoid unused parameters.
15290         * tests/test-base64.c (main): Likewise.
15291         * tests/test-getdelim.c (main): Likewise.
15292         * tests/test-gethostname.c (main): Likewise.
15293         * tests/test-getline.c (main): Likewise.
15294         * tests/test-netinet_in.c (main): Likewise.
15295         * tests/test-select.c (open_server_socket, main): Likewise.
15296         * tests/test-select-stdin.c (main): Likewise.
15297         * tests/test-sockets.c (main): Likewise.
15298         * tests/test-strsignal.c (main): Likewise.
15299         * tests/test-sys_select.c (main): Likewise.
15300         * tests/test-sys_socket.c (main): Likewise.
15301         * tests/test-u64.c (main): Likewise.
15302         * tests/test-xfprintf-posix.c (main): Likewise.
15303         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
15304
15305         sockets: avoid compiler warning
15306         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
15307
15308         maint: detect usage(1) and other suspicious exits
15309         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
15310
15311 2009-10-29  Jim Meyering  <meyering@redhat.com>
15312
15313         timespec: long-to-int truncation could make timespec_cmp malfunction
15314         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
15315         a multiple of 2^32 nanoseconds as no difference.
15316
15317 2009-10-28  Jim Meyering  <meyering@redhat.com>
15318
15319         fprintftime: wrap macro code argument in "do {...} while(0)"
15320         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
15321         cpy macro must be a statement that can be followed by a semicolon.
15322         Now that the else clause contains a comment and is hence longer
15323         than one line, I require curly braces.  That in turn requires
15324         that we wrap this code block in the standard do...while(0).
15325
15326         fprintftime: remove stray semicolon from previous change
15327         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
15328
15329         fprintftime: avoid a warning about ignored fwrite return value
15330         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
15331         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
15332         that is unsafe.
15333         * modules/fprintftime (Depends-on): Add ignore-value.
15334
15335         exclude: avoid an unwarranted warning
15336         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
15337
15338 2009-10-27  Eric Blake  <ebb9@byu.net>
15339
15340         fseek: avoid compilation failure when fflush is replaced
15341         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
15342         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
15343         module is in use.
15344         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
15345         module is not in use; since REPLACE_FSEEK worked otherwise.
15346         (GNULIB_FTELLO): Likewise for ftell.
15347         Reported by Ian Beckwith and others.
15348
15349 2009-10-27  Bruno Haible  <bruno@clisp.org>
15350
15351         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
15352         Reported by Jim Meyering.
15353
15354 2009-10-27  Jim Meyering  <jim@meyering.net>
15355             Bruno Haible  <bruno@clisp.org>
15356
15357         Avoid warning despite dropping the return value of fwrite.
15358         * lib/unicodeio.c: Include ignore-value.h.
15359         (fwrite_success_callback): Explicitly ignore fwrite's return value.
15360         * modules/unicodeio (Depends-on): Add ignore-value.
15361
15362 2009-10-26  Eric Blake  <ebb9@byu.net>
15363
15364         areadlinkat: fix fallback path
15365         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
15366         pointer and zero.
15367
15368 2009-10-22  Pádraig Brady  <P@draigBrady.com>
15369
15370         Use a better IO block size for modern systems
15371         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
15372         * lib/md2.c: Likewise.
15373         * lib/md4.c: Likewise.
15374         * lib/md5.c: Likewise.
15375         * lib/sha1.c: Likewise.
15376         * lib/sha256.c: Likewise.
15377         * lib/sha512.c: Likewise.
15378
15379 2009-10-22  Eric Blake  <ebb9@byu.net>
15380
15381         tests: avoid several compiler warnings
15382         * tests/test-getcwd.c (main): Avoid buffer underflow.
15383         * tests/test-getdate.c (main): String literals are not safe with
15384         putenv, so use setenv.  Declare unused argument.
15385         * modules/getdate-tests (Depends-on): Add setenv.
15386         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
15387         problems with string literals in char *.
15388         * tests/test-hash.c (main): Avoid shadowing declaration.
15389         (insert_new): Treat string literals as char const *.
15390         * tests/test-getopt.h (test_getopt): Likewise.
15391         (getopt_loop): Alter types to minimize casting elsewhere.
15392         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
15393         (test_getopt_long_posix): Likewise.
15394         (do_getopt_long): Add wrapper to minimize casting.
15395         * tests/test-atexit.c (clear_temp_file): Use void.
15396         * tests/test-areadlink-with-size.c (main): Declare unused
15397         arguments.
15398         * tests/test-areadlink.c (main): Likewise.
15399         * tests/test-areadlinkat-with-size.c (main): Likewise.
15400         * tests/test-areadlinkat.c (main): Likewise.
15401         * tests/test-canonicalize-lgpl.c (main): Likewise.
15402         * tests/test-canonicalize.c (main): Likewise.
15403         * tests/test-dirent-safer.c (main): Likewise.
15404         * tests/test-dirname.c (main): Likewise.
15405         * tests/test-dup2.c (main): Likewise.
15406         * tests/test-fchdir.c (main): Likewise.
15407         * tests/test-fcntl-h.c (main): Likewise.
15408         * tests/test-fcntl-safer.c (main): Likewise.
15409         * tests/test-fdopendir.c (main): Likewise.
15410         * tests/test-fdutimensat.c (main): Likewise.
15411         * tests/test-fflush.c (main): Likewise.
15412         * tests/test-filenamecat.c (main): Likewise.
15413         * tests/test-filevercmp.c (main): Likewise.
15414         * tests/test-fopen-safer.c (main): Likewise.
15415         * tests/test-fopen.c (main): Likewise.
15416         * tests/test-fpending.c (main): Likewise.
15417         * tests/test-fpurge.c (main): Likewise.
15418         * tests/test-freading.c (main): Likewise.
15419         * tests/test-fstatat.c (main): Likewise.
15420         * tests/test-fsync.c (main): Likewise.
15421         * tests/test-futimens.c (main): Likewise.
15422         * tests/test-getndelim2.c (main): Likewise.
15423         * tests/test-gettimeofday.c (main): Likewise.
15424         * tests/test-getopt.c (main): Likewise.
15425         * tests/test-i-ring.c (main): Likewise.
15426         * tests/test-inttypes.c (main): Likewise.
15427         * tests/test-link.c (main): Likewise.
15428         * tests/test-lstat.c (main): Likewise.
15429         * tests/test-math.c (main): Likewise.
15430         * tests/test-md5.c (main): Likewise.
15431         * tests/test-memchr2.c (main): Likewise.
15432         * tests/test-memrchr.c (main): Likewise.
15433         * tests/test-mkdir.c (main): Likewise.
15434         * tests/test-mkdirat.c (main): Likewise.
15435         * tests/test-mkfifoat.c (main): Likewise.
15436         * tests/test-open.c (main): Likewise.
15437         * tests/test-openat-safer.c (main): Likewise.
15438         * tests/test-openat.c (main): Likewise.
15439         * tests/test-quotearg.c (main): Likewise.
15440         * tests/test-rawmemchr.c (main): Likewise.
15441         * tests/test-readlink.c (main): Likewise.
15442         * tests/test-remove.c (main): Likewise.
15443         * tests/test-rename.c (main): Likewise.
15444         * tests/test-renameat.c (main): Likewise.
15445         * tests/test-rmdir.c (main): Likewise.
15446         * tests/test-sha1.c (main): Likewise.
15447         * tests/test-signal.c (main): Likewise.
15448         * tests/test-sigaction.c (main): Likewise.
15449         * tests/test-stat.c (main): Likewise.
15450         * tests/test-stat-time.c (main): Likewise.
15451         * tests/test-stddef.c (main): Likewise.
15452         * tests/test-stdint.c (main): Likewise.
15453         * tests/test-stdio.c (main): Likewise.
15454         * tests/test-stdlib.c (main): Likewise.
15455         * tests/test-strchrnul.c (main): Likewise.
15456         * tests/test-strerror.c (main): Likewise.
15457         * tests/test-string.c (main): Likewise.
15458         * tests/test-strtod.c (main): Likewise.
15459         * tests/test-strverscmp.c (main): Likewise.
15460         * tests/test-symlink.c (main): Likewise.
15461         * tests/test-symlinkat.c (main): Likewise.
15462         * tests/test-sys_stat.c (main): Likewise.
15463         * tests/test-sys_time.c (main): Likewise.
15464         * tests/test-time.c (main): Likewise.
15465         * tests/test-unistd.c (main): Likewise.
15466         * tests/test-unlink.c (main): Likewise.
15467         * tests/test-unlinkat.c (main): Likewise.
15468         * tests/test-utimens.c (main): Likewise.
15469         * tests/test-utimensat.c (main): Likewise.
15470         * tests/test-version-etc.c (main): Likewise.
15471         * tests/test-wchar.c (main): Likewise.
15472         * tests/test-wctype.c (main): Likewise.
15473         * tests/test-xprintf-posix.c (main): Likewise.
15474         * tests/test-posixtm.c (main): Likewise.
15475         (STREQ): Delete unused macro.
15476         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
15477         shadowed variables.
15478         * tests/test-memchr.c (main): Likewise.
15479
15480 2009-10-21  Eric Blake  <ebb9@byu.net>
15481
15482         areadlinkat: avoid failure on older glibc
15483         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
15484         rather than mis-comparing 0 against FUNC_RESULT of char*.
15485
15486 2009-10-21  Bruno Haible  <bruno@clisp.org>
15487
15488         * modules/stpncpy (License): Relicense under LGPLv2+.
15489         Reported by David Lutterkort <lutter@redhat.com>.
15490
15491 2009-10-20  Eric Blake  <ebb9@byu.net>
15492
15493         utimensat: work around Solaris 9 bug
15494         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
15495         has trailing slash bugs.
15496         * tests/test-lutimens.h (test_lutimens): Enhance test.
15497         * tests/test-utimens.h (test_utimens): Likewise.
15498         * doc/posix-functions/utime.texi (utime): Enhance documentation.
15499         * doc/posix-functions/utimes.texi (utimes): Likewise.
15500         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15501         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
15502         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
15503         * doc/posix-functions/futimens.texi (futimens): Likewise.
15504
15505         fdutimensat: new module
15506         * modules/fdutimensat: New file.
15507         * lib/fdutimensat.c (fdutimensat): Likewise.
15508         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
15509         * MODULES.html.sh (File system functions): Mention module.
15510         * modules/fdutimensat-tests: New test.
15511         * tests/test-fdutimensat.c: Likewise.
15512
15513         doc: regenerate INSTALL
15514         * doc/INSTALL: Reflect recent autoconf update.
15515         * doc/INSTALL.ISO: Likewise.
15516         * doc/INSTALL.UTF-8: Likewise.
15517
15518 2009-10-20  Pádraig Brady  <P@draigBrady.com>
15519
15520         acl: warn if ACL support is not detected
15521         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
15522
15523 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
15524
15525         * lib/nproc.h: Add extern "C" block for C++.
15526
15527 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
15528             Bruno Haible  <bruno@clisp.org>
15529
15530         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
15531         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
15532         * doc/posix-functions/isalpha.texi: Likewise.
15533         * doc/posix-functions/isblank.texi: Likewise.
15534         * doc/posix-functions/iscntrl.texi: Likewise.
15535         * doc/posix-functions/isdigit.texi: Likewise.
15536         * doc/posix-functions/isgraph.texi: Likewise.
15537         * doc/posix-functions/islower.texi: Likewise.
15538         * doc/posix-functions/isprint.texi: Likewise.
15539         * doc/posix-functions/ispunct.texi: Likewise.
15540         * doc/posix-functions/isspace.texi: Likewise.
15541         * doc/posix-functions/isupper.texi: Likewise.
15542         * doc/posix-functions/isxdigit.texi: Likewise.
15543
15544 2009-10-18  Bruno Haible  <bruno@clisp.org>
15545
15546         Tests for module 'isblank'.
15547         * modules/isblank-tests: New file.
15548         * tests/test-isblank.c: New file.
15549
15550         New module 'isblank'.
15551         * lib/isblank.c: New file.
15552         * m4/isblank.m4: New file.
15553         * modules/isblank: New file.
15554         * doc/posix-functions/isblank.texi: Mention the new module.
15555
15556 2009-10-18  Bruno Haible  <bruno@clisp.org>
15557
15558         New module 'ctype'.
15559         * lib/ctype.in.h: New file.
15560         * m4/ctype.m4: New file.
15561         * modules/ctype: New file.
15562         * doc/posix-headers/ctype.texi: Mention the new module.
15563
15564 2009-10-18  Jim Meyering  <meyering@redhat.com>
15565
15566         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
15567         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
15568         right after its initialization, rather than farther down.
15569         Keeping these in close proximity makes it easier to ensure
15570         that each such variable is initialized.  E.g.,
15571
15572             LIB_CLOCK_GETTIME=
15573             AC_SUBST([LIB_CLOCK_GETTIME])
15574
15575         This change also increments these serial numbers.
15576         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
15577         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15578         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15579
15580 2009-10-18  Bruno Haible  <bruno@clisp.org>
15581
15582         Don't let environment variables perturb build.
15583         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
15584         (gl_PREREQ_GETHRXTIME): ... not here.
15585
15586 2009-10-18  Bruno Haible  <bruno@clisp.org>
15587
15588         Avoid symlink attack in localcharset module.
15589         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
15590         (O_NOFOLLOW): Define fallback.
15591         (get_charset_aliases): Don't open the file if it is a symbolic link.
15592         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
15593         gl_FCNTL_H.
15594         (gl_FCNTL_H): Require it.
15595         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
15596         * modules/localcharset (Files): Add m4/fcntl_h.m4.
15597         Reported by Fergal Glynn <fglynn@veracode.com>.
15598
15599 2009-10-18  Bruno Haible  <bruno@clisp.org>
15600
15601         Implement nproc for mingw.
15602         * lib/nproc.c: Include <windows.h>
15603         (num_processors): On native Windows platforms, try GetSystemInfo.
15604
15605 2009-10-18  Bruno Haible  <bruno@clisp.org>
15606
15607         Implement nproc for IRIX.
15608         * lib/nproc.c: Include <sys/sysmp.h>.
15609         (num_processors): On IRIX systems, try sysmp.
15610         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
15611
15612 2009-10-18  Bruno Haible  <bruno@clisp.org>
15613
15614         Implement nproc for HP-UX.
15615         * lib/nproc.c: Include <sys/pstat.h>
15616         (num_processors): On HP-UX systems, try pstat_getdynamic.
15617         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
15618         pstat_getdynamic.
15619
15620 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
15621             Bruno Haible  <bruno@clisp.org>
15622
15623         Implement nproc for NetBSD, OpenBSD.
15624         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
15625         (ARRAY_SIZE): New macro.
15626         (num_processors): On BSD systems, try sysctl of HW_NCPU.
15627         * m4/nproc.m4: New file.
15628         * modules/nproc (Files): Add m4/nproc.m4.
15629         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
15630         (Makefile.am): Instead, augment lib_SOURCES.
15631
15632 2009-10-18  Bruno Haible  <bruno@clisp.org>
15633
15634         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
15635         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
15636         sys/param.h.
15637
15638 2009-10-16  Eric Blake  <ebb9@byu.net>
15639
15640         utimensat: new module
15641         * modules/utimensat: New file.
15642         * lib/utimensat.c (utimensat): Likewise.
15643         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
15644         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
15645         so we can work around Linux bugs.
15646         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15647         * modules/sys_stat (Makefile.am): Substitute them.
15648         * lib/sys_stat.in.h (utimensat): Declare it.
15649         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15650         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15651         * modules/utimensat-tests: New test.
15652         * tests/test-utimensat.c: Likewise.
15653
15654         utimens: let lutimens work on non-symlinks
15655         * lib/utimens.c (lutimens): Fall back to utimens rather than
15656         failing with ENOSYS, when file is not a symlink.
15657         (utimens): Reduce redirection.
15658         * tests/test-lutimens.h (test_lutimens): Update test to cover
15659         non-symlinks.
15660         * tests/test-utimens.h (test_utimens): Update test to cover
15661         symlinks.
15662         * tests/test-utimens.c (main): Update caller.
15663
15664         utimens: cache whether utimensat syscall works
15665         * lib/utimens.c (utimensat_works_really): New cache variable.
15666         (fdutimens, lutimens): Use it to avoid failing syscall.
15667
15668         test-stat-time, test-utimens: improve portability
15669         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
15670         ext4 on alpha, and for cygwin.
15671         * tests/test-utimens-common.h: New file.
15672         (nap): Factor delays into single function.
15673         * tests/test-lutimens.h (test_lutimens): Use new header.
15674         * tests/test-futimens.h (test_futimens): Likewise.
15675         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
15676         timestamps to occur from same machine, as was done previously for
15677         test_utimens.
15678         * modules/utimens-tests (Files): Ship new file.
15679         * modules/futimens-tests (Files): Likewise.
15680         Reported in part by Jim Meyering.
15681
15682         sys_stat: sort replacement declarations
15683         * lib/sys_stat.in.h: Sort declarations.
15684         * lib/futimens.c (futimens): Fix typo.
15685
15686 2009-10-15  Jim Meyering  <meyering@redhat.com>
15687
15688         don't let environment settings perturb build
15689         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
15690         could cause a configure-time and/or build-time malfunction.
15691         Typically, a configure-time function-in-library test is performed
15692         via code like this:
15693
15694           LIB_VAR=
15695           AC_SUBST([LIB_VAR])
15696           prefix_saved_LIBS=$LIBS
15697             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
15698                        [test "$ac_cv_search_FUNC" = "none required" ||
15699                         LIB_VAR=$ac_cv_search_FUNC])
15700           LIBS=$prefix_saved_LIBS
15701
15702         However, in each of the files affected by this change, the LIB_VAR=
15703         initialization was omitted.  Thus, when set in the environment, its
15704         value would propagate into generated Makefiles when FUNC is not found
15705         in LIB_NAME.
15706         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
15707         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
15708         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15709
15710 2009-10-14  Eric Blake  <ebb9@byu.net>
15711
15712         fchdir: avoid infinite recursion in mingw
15713         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
15714         recursing.
15715
15716         test-stat-time: port to mingw
15717         * tests/test-stat-time.c (force_unlink): Return a value.
15718         (test_ctime) [W32]: Fix compilation error.
15719         (nap): Don't call usleep with too large an argument.  Use
15720         force_unlink.
15721         * doc/pastposix-functions/usleep.texi (usleep): Document the
15722         portability issue.
15723
15724 2009-10-13  Jim Meyering  <meyering@redhat.com>
15725
15726         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
15727         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
15728         * modules/pipe-filter-ii: Likewise.
15729         * modules/sys_socket-tests: Likewise.
15730         * modules/tsearch-tests: Likewise.
15731         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
15732         (check): Depend on it.
15733
15734 2009-10-12  Eric Blake  <ebb9@byu.net>
15735
15736         utimens-tests: port to NFS file systems
15737         * tests/test-utimens.h (test_utimens): Refactor utimecmp
15738         comparisons to avoid spurious failures from timestamp drift
15739         between NFS machines.
15740
15741 2009-10-12  Eric Blake  <ebb9@byu.net>
15742
15743         stat-time-tests: minor cleanups
15744         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
15745         * tests/test-stat-time.c (nap): Separate assignment from call.
15746         Suggested by Paolo Bonzini and Bruno Haible.
15747
15748         sys_stat: guarantee struct timespec
15749         * lib/sys_stat.in.h (includes): Always include <time.h>
15750         * modules/sys_stat (Depends-on): Add time.
15751         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
15752         mode_t permission values.
15753         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
15754         get at subsecond timestamps.
15755
15756 2009-10-10  Eric Blake  <ebb9@byu.net>
15757
15758         futimens: new module
15759         * modules/futimens: New file.
15760         * lib/futimens.c (futimens): Likewise.
15761         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
15762         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
15763         we can work around Linux bugs.
15764         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15765         * modules/sys_stat (Makefile.am): Substitute them.
15766         * lib/sys_stat.in.h (futimens): Declare it.
15767         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15768         * doc/posix-functions/futimens.texi (futimens): Likewise.
15769         * modules/futimens-tests: New test.
15770         * tests/test-futimens.c: Likewise.
15771
15772         utimens: introduce fdutimens
15773         * lib/utimens.h (fdutimens): New prototype.
15774         * lib/utimens.c (gl_futimens): Move guts...
15775         (fdutimens): ...to new interface.
15776         * tests/test-utimens.c (do_fdutimens): Use it.
15777
15778         utimens: add UTIME_NOW and UTIME_OMIT support
15779         * lib/utimens.c (validate_timespec, update_timespec): New helper
15780         functions.
15781         (gl_futimens, lutimens): Use them.
15782         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
15783         stdbool, sys_stat.
15784         (Link): Mention resulting library dependency.
15785         * modules/utimecmp (Link): Likewise.
15786         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
15787         (Makefile.am): Pick up library dependency.
15788         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
15789         definition.
15790         * tests/test-sys_stat.c: Test the definitions.
15791         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
15792         * NEWS: Document library dependency.
15793
15794         utimecmp: support symlink timestamps
15795         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
15796         hashing when possible.  Use pathconf when available.
15797         (SYSCALL_RESOLUTION): Recognize tighter resolution.
15798         * modules/utimecmp (Depends-on): Add lstat.
15799
15800         utimens: add lutimens interface
15801         * lib/utimens.c (lutimens): New function.
15802         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
15803         * lib/utimens.h (lutimens): Declare new interface.
15804         * tests/test-utimens.c (main): Enhance test.
15805         * tests/test-lutimens.h (test_lutimens): New file.
15806         * modules/utimens-tests (Files): Distribute it.
15807         (Depends-on): Add symlink.
15808         (configure.ac): Check for usleep.
15809
15810         utimens: validate futimens usage
15811         * lib/utimens.c (gl_futimens): Require valid fd up front, using
15812         fewer syscalls on failure later on.  Avoid compiler warning on
15813         mingw.
15814         * modules/utimens (Depends-on): Add dup2.
15815
15816         utimens: add test
15817         * modules/utimens-tests: New test.
15818         * tests/test-utimens.h: New file.
15819         * tests/test-futimens.h: Likewise.
15820         * tests/test-utimens.c: Likewise.
15821
15822         doc: mention timestamp portability issues
15823         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
15824         instead.
15825         * doc/posix-functions/utime.texi (utime): Likewise.
15826         * doc/posix-functions/utimes.texi (utimes): Likewise.
15827         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
15828         instead.
15829         * doc/posix-functions/futimens.texi (futimens): Mention utimens
15830         module.
15831         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15832         Mention weakness with symlink timestamps.
15833         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
15834         to utimensat/futimens instead.
15835         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
15836
15837         test-dup2: enhance test
15838         * tests/test-dup2.c (main): Also check AT_FDCWD.
15839
15840         test-stat-time: avoid more spurious failures
15841         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
15842         xfs; and avoid race if the two timestamps cross quantization edge.
15843
15844         relocatable: prefer 'file system' over 'filesystem'
15845         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
15846         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
15847         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
15848         * doc/relocatable.texi (Enabling Relocatability): Likewise.
15849         * lib/relocatable.c (compute_curr_prefix): Likewise.
15850
15851 2009-10-10  Jim Meyering  <meyering@redhat.com>
15852
15853         stat-time-tests: check for the usleep function
15854         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
15855
15856 2009-10-10  Bruno Haible  <bruno@clisp.org>
15857
15858         * modules/xnanosleep: Put the Link section after the Include section.
15859
15860 2009-10-09  Eric Blake  <ebb9@byu.net>
15861
15862         dup2: work around FreeBSD 6.1 bug
15863         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
15864         * doc/posix-functions/dup2.texi (dup2): Document it.
15865         Reported by Nelson H. F. Beebe and Jim Meyering.
15866
15867         test-stat-time: port to buggy NFS clients
15868         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
15869         (test_ctime): Also skip test if mtime and ctime are skewed.
15870
15871         maint: prefer 'file system' over 'filesystem'
15872         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15873         * doc/posix-functions/lstat.texi (lstat): Likewise.
15874         * lib/file-has-acl.c (file_has_acl): Likewise.
15875         * lib/fwriteerror.c [TEST]: Likewise.
15876         * tests/test-areadlink.h (test_areadlink): Likewise.
15877         * tests/test-areadlinkat-with-size.c (main): Likewise.
15878         * tests/test-areadlinkat.c (main): Likewise.
15879         * tests/test-canonicalize-lgpl.c (main): Likewise.
15880         * tests/test-canonicalize.c (main): Likewise.
15881         * tests/test-fstatat.c (main): Likewise.
15882         * tests/test-linkat.c (main): Likewise.
15883         * tests/test-lstat.h (test_lstat_func): Likewise.
15884         * tests/test-mkdir.h (test_mkdir): Likewise.
15885         * tests/test-readlink.h (test_readlink): Likewise.
15886         * tests/test-remove.c (main): Likewise.
15887         * tests/test-rename.h (test_rename): Likewise.
15888         * tests/test-renameat.c (main): Likewise.
15889         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15890         * tests/test-symlink.h (test_symlink): Likewise.
15891         * tests/test-symlinkat.c (main): Likewise.
15892         * tests/test-unlink.h (test_unlink_func): Likewise.
15893         * tests/test-unlinkat.c (main): Likewise.
15894
15895         maint: make realtime library usage explicit
15896         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
15897         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
15898         * modules/settime (Link): Likewise.
15899         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
15900
15901         test-stat-time: speed up execution
15902         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
15903         warning on mingw.
15904         (nap): New helper function.
15905         (prepare_test): Use it to reduce sleep time.
15906         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
15907         execution.
15908         * modules/stat-time-tests (configure.ac): Check for usleep.
15909
15910 2009-10-09  Jim Meyering  <meyering@redhat.com>
15911
15912         selinux-h: always use getfilecon wrappers
15913         * lib/getfilecon.c: New file.
15914         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
15915         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
15916         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
15917         (fgetfilecon): Provide a stub.
15918         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
15919         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
15920         file unconditionally.
15921         When <selinux/selinux.h> is found, arrange to use wrappers.
15922         * modules/selinux-h (Files): Add getfilecon.c.
15923         (Makefile.am): Substitute include-next-related bits
15924         into the now-always-generated selinux/selinux.h file.
15925         * doc/glibc-functions/lgetfilecon.texi: New file.
15926         * doc/glibc-functions/fgetfilecon.texi: New file.
15927         * doc/glibc-functions/getfilecon.texi: New file.
15928         * doc/glibc-functions/getfilecon-desc.texi: New file.
15929         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
15930         which to pull in the new files.
15931         * MODULES.html.sh (Misc): Add selinux-h.
15932
15933 2009-10-08  Jim Meyering  <meyering@redhat.com>
15934
15935         unistd: fix comment typo
15936         * lib/unistd.in.h (euidaccess): Fix a comment typo.
15937
15938 2009-10-08  Eric Blake  <ebb9@byu.net>
15939
15940         areadlink: use SIZE_MAX consistently
15941         * modules/areadlink (Depends-on): Add stdint.
15942         * modules/areadlink-with-size (Depends-on): Likewise.
15943         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
15944         gives NULL; drop sys/types, since unistd gives size_t; and add
15945         stdint for SIZE_MAX.
15946         (SIZE_MAX): Rely on headers.
15947         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
15948         and add stdint.
15949         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
15950         (SIZE_MAX): Likewise.
15951         (INITIAL_BUF_SIZE): Turn into enum.
15952         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
15953
15954 2009-10-08  Jim Meyering  <meyering@redhat.com>
15955
15956         areadlinkat: avoid compilation failure
15957         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
15958         Fix typo in comment.
15959
15960 2009-10-07  Eric Blake  <ebb9@byu.net>
15961
15962         areadlinkat-with-size: new module
15963         * modules/areadlinkat-with-size: New module.
15964         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
15965         * lib/areadlink.h (areadlinkat): Declare it.
15966         * MODULES.html.sh (File system functions): Mention it.
15967         * modules/areadlinkat-with-size-tests: New test.
15968         * tests/test-areadlinkat-with-size.c: New file.
15969
15970         xreadlinkat: new module
15971         * modules/xreadlinkat: New module.
15972         * lib/xreadlinkat.c (xreadlinkat): New file.
15973         * lib/xreadlink.h (xreadlinkat): Declare it.
15974         * MODULES.html.sh (File system functions): Mention it.
15975
15976         areadlinkat: new module
15977         * lib/at-func.c (FUNC_FAIL): New define.
15978         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
15979         * modules/areadlinkat: New module.
15980         * lib/linkat.c (areadlinkat): Move...
15981         * lib/areadlinkat.c (areadlinkat): ...to new file.
15982         * lib/areadlink.h (areadlinkat): Declare it.
15983         * modules/linkat (Depends-on): Add areadlinkat.
15984         * MODULES.html.sh (File system functions): Mention it.
15985         * modules/areadlinkat-tests: New test.
15986         * tests/test-areadlinkat.c: New file.
15987
15988         areadlink, areadlink-with-size: add tests
15989         * modules/areadlink-tests: New test.
15990         * modules/areadlink-with-size-tests: Likewise.
15991         * tests/test-areadlink.h: New file.
15992         * tests/test-areadlink.c: Likewise.
15993         * tests/test-areadlink-with-size.c: Likewise.
15994
15995         maint: minor cleanups
15996         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
15997         _UNUSED_PARAMETER_ instead.
15998         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
15999         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
16000         * modules/linkat-tests (Files): Distribute test-link.h.
16001
16002         openat, utimens: whitespace cleanup
16003         * lib/openat.c: Prefer space throughout, rather than mix of 8
16004         spaces vs. tabs.
16005         * lib/at-func.c: Likewise.
16006         * lib/utimens.c: Likewise.
16007
16008         openat: avoid using wrong fd
16009         * lib/openat.c (openat_permissive): Reject user's fd if saving the
16010         working directory chooses same fd.
16011         * lib/at-func.c (AT_FUNC_NAME): Likewise.
16012
16013         mkdir, mkdirat: fix cygwin 1.5.x bug
16014         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
16015         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
16016         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
16017         bug.
16018         (gl_PREREQ_MKDIR): Delete unused macro.
16019         * modules/mkdir (Files): Track file rename.
16020         (configure.ac): Update macro name.
16021         * modules/openat (Depends-on): Add mkdir.
16022         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
16023
16024         mkdir, mkdirat: add tests
16025         * modules/mkdir-tests: New test.
16026         * tests/test-mkdir.h: New file.
16027         * tests/test-mkdir.c: Likewise.
16028         * tests/test-mkdirat.c: Likewise.
16029         * modules/openat-tests (Files): Add new files.
16030         (Makefile.am): Run new test.
16031
16032 2009-10-06  Eric Blake  <ebb9@byu.net>
16033
16034         doc: tweak *at function documentation
16035         * doc/posix-functions/faccessat.texi (faccessat): Mention
16036         known issue with replacement.
16037         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
16038         * doc/posix-functions/linkat.texi (linkat): Likewise.
16039         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
16040         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
16041         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16042         * doc/posix-functions/renameat.texi (renameat): Likewise.
16043         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16044
16045         openat: fix GNU/Hurd bug in unlinkat
16046         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
16047         broken.
16048         * doc/posix-functions/unlink.texi (unlink): Document this.
16049         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
16050
16051         fdopendir: fix GNU/Hurd bug
16052         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
16053         allowing non-directory fds.
16054         * lib/fdopendir.c (rpl_fdopendir): Work around it.
16055         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16056         * modules/dirent (Makefile.am): Substitute it.
16057         * lib/dirent.in.h (fdopendir): Declare replacement.
16058         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
16059         * tests/test-fdopendir.c (main): Test something other than
16060         /dev/null, since on Hurd that behaves like a directory.
16061
16062         test-symlink: port to GNU/Hurd
16063         * tests/test-symlink.h (test_symlink): Relax expected errno.
16064
16065         doc: tweak more cygwin information
16066         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
16067         now compatible with glibc.
16068         * doc/posix-functions/getopt.texi (getopt): Likewise.
16069
16070         getopt-gnu: add another test
16071         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
16072         guarantee behavior relied on by m4.
16073         * tests/test-getopt.c (main): Use it.
16074         * modules/getopt-posix-tests (Depends-on): Add setenv.
16075         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
16076
16077         getopt: fix compilation on darwin
16078         * lib/getopt.in.h (includes): Leave breadcrumbs during system
16079         include.
16080         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
16081         Reported by Ludovic Courtès.
16082
16083 2009-10-06  Bruno Haible  <bruno@clisp.org>
16084
16085         * modules/size_max (Description): Discourage its use.
16086         Reported by Simon Josefsson.
16087
16088 2009-10-06  Jim Meyering  <meyering@redhat.com>
16089
16090         linkat: avoid compilation failure
16091         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
16092
16093 2009-10-05  Eric Blake  <ebb9@byu.net>
16094
16095         linkat: support Linux 2.6.17
16096         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
16097         linkat on Linux, but allow cache variable override.
16098         * lib/linkat.c (rpl_linkat): Define override.
16099         * modules/linkat (Depends-on): Add symlinkat.
16100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
16101         * modules/unistd (Makefile.am): Substitute it.
16102         * lib/unistd.in.h (linkat): Declare replacement.
16103         Reported by Pádraig Brady.
16104
16105         quotearg: port test to systems with C.UTF-8 locale
16106         * tests/test-quotearg.c (struct result_strings): Add another
16107         member, differentiating between C.ASCII and C.UTF-8 handling.
16108         (compare_strings): Add parameter.
16109         (main): Adjust all callers.
16110
16111         getopt: avoid clash with FreeBSD _getopt_internal
16112         * lib/getopt.in.h (_getopt_internal): Override the name.
16113         * lib/getopt_int.h (includes): Pick up any overrides.
16114         Reported by Reuben Thomas.
16115
16116         hash: allow C89 compilation
16117         * lib/hash.c (check_tuning): Move declaration before statement.
16118         Reported by Reuben Thomas.
16119
16120 2009-10-05  Karl Berry  <karl@gnu.org>
16121
16122         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
16123
16124 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
16125             Bruno Haible  <bruno@clisp.org>
16126
16127         * lib/uname.c (uname): Use a table-driven algorithm to compute
16128         Windows NT versions.
16129
16130 2009-10-04  Bruno Haible  <bruno@clisp.org>
16131
16132         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
16133         program_invocation_short_name.
16134         * modules/progname (configure.ac): Test for presence of
16135         program_invocation_short_name.
16136         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
16137
16138 2009-10-04  Bruno Haible  <bruno@clisp.org>
16139
16140         * lib/progname.c (set_program_name): Fix comment.
16141         Reported by Jim Meyering.
16142
16143 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16144             Bruno Haible  <bruno@clisp.org>
16145
16146         * lib/uname.c: Include <string.h>.
16147         (uname): Do only one call to GetVersionEx in the common case.
16148
16149 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
16150             Bruno Haible  <bruno@clisp.org>
16151
16152         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
16153         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
16154         (uname): Add support for Windows CE and various non-x86 CPU types.
16155
16156 2009-10-03  Bruno Haible  <bruno@clisp.org>
16157
16158         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
16159         invocation to tests/configure.ac.
16160         Reported by Ian Beckwith <ianb@erislabs.net>.
16161
16162 2009-10-02  Eric Blake  <ebb9@byu.net>
16163
16164         fchdir: avoid compiler warning
16165         * lib/fchdir.c (canonicalize_file_name)
16166         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
16167
16168         test-open: support mingw errno values
16169         * tests/test-open.h (test_open): Relax test.
16170         * tests/test-fopen.h (test_fopen): Likewise.
16171         * tests/test-openat-safer.c (main): Likewise.
16172
16173         open: fix opening directory on mingw
16174         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
16175
16176         test-open: on GNU/Hurd, /dev/null is a directory
16177         * tests/test-fopen.h (main): Rename...
16178         (test_fopen): ...to this.  Use a guaranteed non-directory when
16179         confirming open behavior on trailing slash.
16180         * tests/test-openat-safer.c (main): Likewise.
16181         * tests/test-open.h (main): Likewise....
16182         (test_open): ...to this.
16183         * tests/test-fopen.c (main): Adjust caller.
16184         * tests/test-fopen-safer.c (main): Likewise.
16185         * tests/test-open.c (main): Likewise.
16186         * tests/test-fcntl-safer.c (main): Likewise.
16187         Reported by Samuel Thibault.
16188
16189         rename, fchdir: don't ignore chdir failure
16190         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
16191         * lib/rename.c (rpl_rename) [W32]: Likewise.
16192         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
16193         an empty destination directory if source cannot be renamed,
16194         although there is still possibility for failure.
16195         * doc/posix-functions/rename.texi (rename): Document the race.
16196         Reported by Jim Meyering.
16197
16198         maint: cleanup whitespace in recent commits
16199         * lib/rename.c (rpl_rename): Remove tabs.
16200         * tests/test-link.h (test_link): Likewise.
16201         * lib/fchdir.c (get_name): Likewise.
16202         Reported by Jim Meyering.
16203
16204 2009-10-02  Ben Pfaff  <blp@gnu.org>
16205
16206         relocatable-prog-wrapper: Add missing dependency on
16207         double-slash-root.
16208         * modules/relocatable-prog-wrapper: Add dependency.
16209         Reported by Ian Beckwith <ianb@erislabs.net>.
16210
16211 2009-10-02  Eric Blake  <ebb9@byu.net>
16212
16213         renameat: fix Solaris bugs
16214         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
16215         needed fixing.
16216         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
16217         * modules/stdio (Makefile.am): Substitute it.
16218         * lib/stdio.in.h (renameat): Declare replacement.
16219         * lib/renameat.c (rpl_renameat): Implement fix.
16220
16221         renameat: new module
16222         * modules/renameat: New file.
16223         * lib/renameat.c (renameat): Likewise.
16224         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
16225         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16226         * modules/stdio (Makefile.am): Substitute them.
16227         * lib/stdio.in.h (renameat): Declare it.
16228         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16229         * doc/posix-functions/renameat.texi (renameat): Likewise.
16230         * modules/renameat-tests: New test.
16231         * tests/test-renameat.c: Likewise.
16232
16233         rename: fix mingw bugs
16234         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
16235         directory overwrite bugs.
16236
16237         rename: fix another cygwin 1.5 bug
16238         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
16239         checks.
16240         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
16241         unnecessary cygwin workarounds.  Also work around bug with moving
16242         full directory onto an empty one.
16243         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
16244
16245         rename-dest-slash: merge into rename module
16246         * modules/rename-dest-slash (Status): Mark obsolete.
16247         (Depends-on): Add rename.
16248         (Files): Let rename do it all.
16249         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
16250         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
16251         * m4/rename-dest-slash.m4: ...so this file can be deleted.
16252         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
16253         * lib/rename.c (rpl_rename): Update comments.
16254
16255         rename: fix cygwin 1.5.x bugs
16256         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
16257         * lib/rename.c (rpl_rename): Work around them.
16258         * modules/rename (Depends-on): Add same-inode.
16259
16260         rename: fix Solaris 10 bug
16261         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16262         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
16263         was the only bug.
16264
16265         rename: fix Solaris 9 bug
16266         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
16267         on non-directory.  Avoid calling exit.
16268         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
16269         strdup.
16270         * modules/rename-tests (Depends-on): Drop lstat.
16271         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
16272         (gl_PREREQ_RENAME): Delete unused macro.
16273
16274         rename-dest-slash: fix NetBSD bug
16275         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
16276         links.
16277         * modules/rename-dest-slash (Depends-on): Add same-inode.
16278
16279         rename-tests: new test, exposes several platform bugs
16280         * modules/rename-tests: New file.
16281         * tests/test-rename.h: Likewise.
16282         * tests/test-rename.c: Likewise.
16283         * doc/posix-functions/rename.texi (rename): Improve documentation,
16284         including bugs that will eventually be fixed in gnulib.
16285
16286 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
16287
16288         * lib/uname.c: Include <stdlib.h>
16289         (uname): Assume version info is available.
16290
16291 2009-10-02  Jim Meyering  <meyering@redhat.com>
16292
16293         gnu-web-doc-update: correct --help output
16294         * build-aux/gnu-web-doc-update: Make --help output relevant.
16295
16296         gnu-web-doc-update: add standard options
16297         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
16298
16299         gnu-web-doc-update: New module.
16300         Use this script to automatically update the on-line web documentation
16301         for your GNU project at http://www.gnu.org/software/$pkg/manual/
16302         * modules/gnu-web-doc-update: New file, from coreutils.
16303         * build-aux/gnu-web-doc-update: New script.
16304
16305 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
16306
16307         link: LoadLibrary is not needed.
16308         * lib/link.c: Use GetModuleHandle.
16309
16310 2009-10-01  Eric Blake  <ebb9@byu.net>
16311
16312         getopt: bump serial number
16313         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
16314         change.
16315
16316         tests: tighten link, rmdir, and remove tests
16317         * tests/test-link.h (includes): No need to use <config.h> here.
16318         Clean up if directory hard link was created, otherwise test for
16319         trailing '.'.
16320         * tests/test-linkat.c (main): Simplify.
16321         * tests/test-remove.c (main): Enhance test for trailing '.'.
16322         * tests/test-rmdir.h (test_rmdir_func): Likewise.
16323
16324 2009-10-01  Jim Meyering  <meyering@redhat.com>
16325
16326         maint.mk: requiring "make major" was annoying, for a "minor" release.
16327         What is intended is "stable", to contrast with alpha and beta,
16328         so require "make stable", not "make major".
16329         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
16330         (get_tool_versions): Likewise.
16331         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
16332
16333 2009-09-30  Ben Pfaff  <blp@gnu.org>
16334
16335         Fix broken build of replacement for Windows tmpfile().
16336         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
16337         flags argument added along with the 'mkostemp' module.
16338
16339 2009-09-28  Bruno Haible  <bruno@clisp.org>
16340
16341         Avoid identifier clash with POSIX function 'remove' defined as a macro.
16342         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
16343         to 'remove_elt'.
16344         (gl_list_remove): Update.
16345         * lib/gl_list.c (gl_list_remove): Update.
16346         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
16347         to 'remove_elt'.
16348         (gl_oset_remove): Update.
16349         * lib/gl_list.c (gl_oset_remove): Update.
16350         Reported by Eric Blake.
16351
16352 2009-09-28  Eric Blake  <ebb9@byu.net>
16353
16354         doc: mention yet more cygwin 1.7 status
16355         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
16356         cygwin.
16357         * doc/glibc-functions/execvpe.texi (execvpe): New file.
16358         * doc/gnulib.texi (Glibc unistd.h): Mention it.
16359
16360         argp: fix test failure
16361         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
16362         that are not upper-case.  Pass correct range to tolower.
16363
16364 2009-09-27  Jim Meyering  <meyering@redhat.com>
16365
16366         test-yesno: work around sparc-dash here-document infelicity
16367         Without this change, the literal \177 byte in a here document
16368         would make dash 0.5.5.1-3 access uninitialized memory.
16369         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
16370         Instead, use a marker, "@", and filter through tr to create the desired
16371         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
16372
16373 2009-09-27  Bruno Haible  <bruno@clisp.org>
16374
16375         Disable untested support for new flavours of ACLs on AIX.
16376         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
16377         progress.
16378         * lib/set-mode-acl.c (qset_acl): Likewise.
16379
16380 2008-12-07  Bruno Haible  <bruno@clisp.org>
16381
16382         Add support for new flavours of ACLs on AIX. (Untested.)
16383         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
16384         (file_has_acl): Add support for newer AIX.
16385         * lib/set-mode-acl.c (qset_acl): Likewise.
16386         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
16387         Rainer Tammer <tammer@tammer.net>.
16388
16389 2009-09-26  Eric Blake  <ebb9@byu.net>
16390
16391         argp: fix compilation of getopt
16392         * lib/getopt.in.h (includes): Use different guard than glibc.
16393         Reported by Sergey Poznyakoff.
16394
16395         doc: mention more cygwin 1.7 status
16396         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
16397         bug.
16398         * doc/posix-functions/execl.texi (execl): Likewise.
16399         * doc/posix-functions/execle.texi (execle): Likewise.
16400         * doc/posix-functions/execlp.texi (execlp): Likewise.
16401         * doc/posix-functions/execv.texi (execv): Likewise.
16402         * doc/posix-functions/execve.texi (execve): Likewise.
16403         * doc/posix-functions/execvp.texi (execvp): Likewise.
16404         * doc/glibc-functions/canonicalize_file_name.texi
16405         (canonicalize_file_name): Cygwin 1.7 now provides this.
16406         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
16407         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
16408         on AT_SYMLINK_NOFOLLOW.
16409
16410 2009-09-24  Eric Blake  <ebb9@byu.net>
16411
16412         test-linkat: make test more robust
16413         * tests/test-linkat.c (main): Avoid collision with EEXIST.
16414
16415         getopt: fix inclusion guards for cygwin
16416         * modules/getopt-posix (Depends-on): Add include-next.
16417         (Makefile.am): Substitute more items in replacement header.
16418         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
16419         <getopt.h>.
16420         * lib/getopt.in.h (includes): Use split inclusion guard, and
16421         prefer <getopt.h> over include <unistd.h> when one is present.
16422         (option): Also override name of 'struct option'.
16423
16424         same-inode: revert prior change; it is not yet ready
16425         * NEWS: Undo mention of this change.
16426         * lib/same-inode.h (same-inode.h): Undo tri-state change.
16427         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16428         * lib/cycle-check.c (cycle_check): Likewise.
16429         * lib/same.c (same_name): Likewise.
16430         * lib/at-func2.c (at_func2): Likewise.
16431
16432 2009-09-23  Eric Blake  <ebb9@byu.net>
16433
16434         linkat: new module
16435         * modules/linkat: New file.
16436         * lib/at-func2.c (at_func2): Likewise.
16437         * lib/linkat.c (linkat): Likewise.
16438         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
16439         * lib/openat-priv.h (at_func2): Add declaration.
16440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16441         * modules/unistd (Makefile.am): Substitute them.
16442         * lib/unistd.in.h (linkat): Declare it.
16443         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16444         * doc/posix-functions/linkat.texi (linkat): Likewise.
16445         * doc/posix-functions/link.texi (link): Tweak wording.
16446         * tests/test-link.c (main): Move guts...
16447         * tests/test-link.h (test_link): ...into new file.
16448         * modules/linkat-tests: New test.
16449         * tests/test-linkat.c: Likewise.
16450         * modules/link-tests (Files): Ship new file.
16451         (Depends-on): Add stdbool.
16452
16453         dirname: add library-safe mdir_name
16454         * lib/dirname.h (mdir_name): New prototype.
16455         * lib/dirname.c (dir_name): Move guts...
16456         (mdir_name): ...to new function that avoids xalloc_die.
16457
16458         fchdir: another mingw fix
16459         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
16460         * lib/fchdir.c (get_name): New helper method; skips canonicalize
16461         on mingw (where it has not yet been ported), and make it optional
16462         elsewhere.
16463         (_gl_register_fd): Use it.
16464
16465         same-inode: make SAME_INODE tri-state, to port to mingw
16466         * NEWS: Mention this change.
16467         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
16468         st_ino always being 0.
16469         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
16470         * lib/cycle-check.c (cycle_check): Likewise.
16471         * lib/same.c (same_name): Likewise.
16472
16473         lstat: avoid mingw compilation error
16474         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
16475         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
16476         lstat ourselves.
16477         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
16478         was adequate.
16479         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
16480         the checks for lstat.
16481         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
16482
16483         link: fix test failure on Solaris 9
16484         * lib/link.c (rpl_link): Don't assume link will catch bogus
16485         trailing slash on source.
16486
16487         test-symlinkat: enhance test
16488         * tests/test-readlink.c (main): Move guts...
16489         * tests/test-readlink.h (test_readlink): ...into new file.
16490         * tests/test-symlink.c (main): Move guts...
16491         * tests/test-symlink.h (test_symlink): ...into new file.
16492         * tests/test-symlinkat.c (main): Use new files for further
16493         coverage.
16494         (do_symlink, do_readlink): New helper functions.
16495         * modules/symlink-tests (Files): Ship new file.
16496         (Depends-on): Add stdbool.
16497         * modules/readlink-tests (Files): Ship new file.
16498         (Depends-on): Add stdbool.
16499         * modules/symlinkat-tests (Files): Use new files.
16500
16501 2009-09-23  Eric Blake  <ebb9@byu.net>
16502
16503         readlink: document portability issue with symlink length
16504         * doc/posix-functions/lstat.texi (lstat): Mention that some file
16505         systems have bogus st_size on symlinks, and mention the
16506         areadlink-with-size module.
16507         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
16508         * doc/posix-functions/readlink.texi (readlink): Mention the
16509         areadlink module, and ERANGE failure.
16510         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16511         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
16512
16513         readlink: fix Solaris 9 bug with trailing slash
16514         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
16515         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
16516         * doc/posix-functions/readlink.texi (readlink): Document this.
16517         * modules/readlink-tests: New test.
16518         * tests/test-readlink.c: Likewise.
16519
16520         readlink: fix cygwin 1.5.x bug with return type
16521         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
16522         * lib/unistd.in.h (readlink): Use ssize_t.
16523         * lib/readlink.c (readlink): Likewise.
16524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16525         * modules/unistd (Makefile.am): Substitute it.
16526         * lib/unistd.in.h (readlink): Declare replacement.
16527         * doc/posix-functions/readlink.texi (readlink): Document this.
16528
16529         symlink: use throughout gnulib
16530         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
16531         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
16532         symlink is not used.
16533         * modules/symlinkat (Depends-on): Add symlink.
16534         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16535         * modules/canonicalize-tests (Depends-on): Likewise.
16536         * modules/lstat-tests (Depends-on): Likewise.
16537         * modules/openat-tests (Depends-on): Likewise.
16538         * modules/remove-tests (Depends-on): Likewise.
16539         * modules/rmdir-tests (Depends-on): Likewise.
16540         * modules/unlink-tests (Depends-on): Likewise.
16541         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
16542         * tests/test-canonicalize.c (symlink): Likewise.
16543         * tests/test-fstatat.c (symlink): Likewise.
16544         * tests/test-lstat.c (symlink): Likewise.
16545         * tests/test-remove.c (symlink): Likewise.
16546         * tests/test-rmdir.c (symlink): Likewise.
16547         * tests/test-unlink.c (symlink): Likewise.
16548         * tests/test-unlinkat.c (symlink): Likewise.
16549
16550         symlink: new module, for Solaris 9 bug
16551         * modules/symlink: New file.
16552         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
16553         * lib/symlink.c: Likewise.
16554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
16555         * modules/unistd (Makefile.am): Substitute them.
16556         * lib/unistd.in.h (symlink): Declare replacement.
16557         * MODULES.html.sh (File system functions): Mention it.
16558         * doc/posix-functions/symlink.texi (symlink): Likewise.
16559         * modules/symlink-tests: New test.
16560         * tests/test-symlink.c: Likewise.
16561
16562 2009-09-23  Bruno Haible  <bruno@clisp.org>
16563
16564         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
16565         when needed.
16566         Test case: gnulib-tool --import --with-tests atexit inttypes.
16567         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
16568
16569 2009-09-23  Bruno Haible  <bruno@clisp.org>
16570
16571         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
16572         subcommand, not in a subshell.
16573
16574 2009-09-22  Eric Blake  <ebb9@byu.net>
16575
16576         unistd: sort replacement declarations
16577         * lib/unistd.in.h: Sort declarations.
16578
16579         open, openat: minor optimization
16580         * lib/open.c (open): If open succeeded, len is non-zero.
16581         * lib/openat.c (rpl_openat): Likewise.
16582
16583         link-follow: ensure correct result
16584         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
16585         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
16586         distinguish between possible failures.
16587
16588 2009-09-21  Eric Blake  <ebb9@byu.net>
16589
16590         fts: avoid compiler warning
16591         * lib/fts.c (dirent_inode_sort_may_be_useful)
16592         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
16593
16594 2009-09-19  Bruno Haible  <bruno@clisp.org>
16595
16596         * lib/progreloc.c (canonicalize_file_name): New declaration.
16597
16598 2009-09-19  Eric Blake  <ebb9@byu.net>
16599
16600         link: fix quoting
16601         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
16602
16603         openat: fix openat bugs on Solaris 9
16604         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
16605         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
16606         * modules/openat (Depends-on): Add open.
16607         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
16608         * modules/fcntl-h (Makefile.am): Substitute it.
16609         * lib/fcntl.in.h (openat): Declare replacement.
16610         * doc/posix-functions/openat.texi (openat): Document this.
16611
16612         openat: move fstatat and unlinkat into correct files
16613         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
16614         compiled.
16615         * lib/openat.c (fstatat, unlinkat): Move...
16616         * lib/fstatat.c (fstatat): ...into correct files.
16617         * lib/unlinkat.c (unlinkat): Likewise.
16618
16619         openat: fix unlinkat bugs on Solaris 9
16620         * lib/unlinkat.c (unlinkat): New file.
16621         * modules/openat (Depends-on): Add unlink.
16622         (Files): Distribute it.
16623         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
16624         trailing slash behavior is broken.
16625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16626         * modules/unistd (Makefile.am): Substitute it.
16627         * lib/unistd.in.h (unlinkat): Declare replacement.
16628         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
16629
16630         openat: fix fstatat bugs on Solaris 9
16631         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
16632         stat.
16633         * doc/posix-functions/fstatat.texi (fstatat): Document this.
16634
16635         test-unlinkat: enhance test, to expose Solaris 9 bug
16636         * tests/test-unlink.c (main): Factor guts...
16637         * tests/test-unlink.h (test_rmdir_func): ...into new file.
16638         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
16639         * tests/test-rmdir.c (main): Adjust caller.
16640         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
16641         (unlinker): New helper function.
16642         (rmdirat): Enhance check.
16643         * modules/rmdir-tests (Depends-on): Add stdbool.
16644         * modules/unlink-tests (Depends-on): Likewise.
16645         (Files): Add test-unlink.h.
16646         * modules/openat-tests (Files): Likewise.
16647         (Depends-on): Add unlinkdir.
16648
16649         test-fstatat: new test, to expose Solaris 9 bugs
16650         * tests/test-stat.c (main): Factor guts...
16651         * tests/test-stat.h (test_stat_func): ...into new file.
16652         * tests/test-lstat.c (main): Factor guts...
16653         * tests/test-lstat.h (test_lstat_func): ...into new file.
16654         * tests/test-fstatat.c: New file.
16655         * modules/stat-tests (Files): Add test-stat.h.
16656         * modules/lstat-tests (Files): Add test-lstat.h.
16657         (Depends-on): Add stdbool.
16658         * modules/openat-tests (Depends-on): Add pathmax.
16659         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
16660         (Makefile.am): Run new test.
16661
16662         remove: new module, for mingw and Solaris 9 bugs
16663         * modules/remove: New file.
16664         * lib/remove.c: Likewise.
16665         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
16666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
16667         * modules/stdio (Makefile.am): Use them.
16668         * lib/stdio.in.h (remove): Declare replacement.
16669         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16670         * doc/posix-functions/remove.texi (remove): Likewise.
16671         * modules/remove-tests: New test.
16672         * tests/test-remove.c: Likewise.
16673
16674         unlink: new module, for Solaris 9 bug
16675         * modules/unlink: New file.
16676         * lib/unlink.c: Likewise.
16677         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
16678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16679         * modules/unistd (Makefile.am): Use them.
16680         * lib/unistd.in.h (stat): Declare replacement.
16681         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16682         * doc/posix-functions/unlink.texi (unlink): Likewise.
16683         * modules/unlink-tests: New test.
16684         * tests/test-unlink.c: Likewise.
16685
16686         lstat: fix Solaris 9 bug
16687         * lib/lstat.c (lstat): Also check for trailing slash on
16688         non-symlink, non-directories.  Use stat module to simplify logic.
16689         * doc/posix-functions/lstat.texi (lstat): Document it.
16690         * modules/lstat-tests (Depends-on): Add errno, same-inode.
16691         (configure.ac): Check for symlink.
16692         * tests/test-lstat.c (main): Add more tests.
16693
16694         stat: add as dependency to other modules
16695         * modules/chown (Depends-on): Add stat.
16696         * modules/euidaccess (Depends-on): Likewise.
16697         * modules/fchdir (Depends-on): Likewise.
16698         * modules/isdir (Depends-on): Likewise.
16699         * modules/link (Depends-on): Likewise.
16700         * modules/lstat (Depends-on): Likewise.
16701         * modules/mkdir-p (Depends-on): Likewise.
16702         * modules/modechange (Depends-on): Likewise.
16703         * modules/open (Depends-on): Likewise.
16704         * modules/readlink (Depends-on): Likewise.
16705         * modules/same (Depends-on): Likewise.
16706
16707         stat: fix Solaris 9 bug
16708         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
16709         slash.
16710         * lib/stat.c (rpl_stat): Work around it.
16711         * doc/posix-functions/stat.texi (stat): Update documentation.
16712
16713         stat: new module, for mingw bug
16714         * modules/stat: New file.
16715         * lib/stat.c: Likewise.
16716         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16717         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16718         * modules/sys_stat (Makefile.am): Use them.
16719         * lib/sys_stat.in.h (stat): Declare replacement.
16720         * lib/openat.c (fstatat): Deal with lstat and stat being function
16721         macros.
16722         * modules/openat (Depends-on): Add inline.
16723         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16724         * doc/posix-functions/stat.texi (stat): Likewise.
16725         * modules/stat-tests: New test.
16726         * tests/test-stat.c: Likewise.
16727
16728 2009-09-19  Jim Meyering  <meyering@redhat.com>
16729
16730         syntax-check: detect unnecessary inclusion of canonicalize.h
16731         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
16732
16733 2009-09-19  Eric Blake  <ebb9@byu.net>
16734
16735         canonicalize-lgpl: adjust clients to use correct header
16736         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16737         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
16738         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
16739         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
16740         * lib/progreloc.c (includes): Likewise.
16741
16742 2009-09-19  Jim Meyering  <meyering@redhat.com>
16743
16744         test-posixtm.c: correct a comment
16745         * tests/test-posixtm.c: Correct first-line comment.
16746         Spotted by Eric Blake.
16747
16748 2009-09-16  Jim Meyering  <meyering@redhat.com>
16749
16750         posixtm-tests: make T const-correct; add a test case
16751         * tests/test-posixtm.c (T): Declare const.
16752         Add a test for -(2^31+1).
16753         Remove useless can-succeed-only-in-2002 test.
16754
16755         posixtm-tests: adjust the sole failing test
16756         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
16757         expected output matches what mktime now produces.  Cross-checked via
16758         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
16759
16760         posixtm: move #ifdef'd tests into a new module
16761         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
16762         * tests/test-posixtm.c: ... this new file.
16763         * modules/posixtm-tests: New module.
16764
16765 2009-09-19  Eric Blake  <ebb9@byu.net>
16766
16767         openat: simplify use of at-func.c
16768         * lib/at-func.c (includes): Include prerequisites here, to
16769         simplify requirements on client files.
16770         * lib/openat-priv.h: Add double-inclusion guard.
16771         * lib/faccessat.c (includes): Simplify.
16772         * lib/fchmodat.c (includes): Likewise.
16773         * lib/fchownat.c (includes): Likewise.
16774         * lib/mkdirat.c (includes): Likewise.
16775         * lib/mkfifoat.c (includes): Likewise.
16776         * lib/symlinkat.c (includes): Likewise.
16777
16778         openat: allow return of fd 0
16779         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
16780         * modules/save-cwd (Depends-on): Replace fcntl-safer with
16781         unistd-safer.
16782         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
16783         <fcntl.h>; this module does not leak fds.
16784         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
16785         must be allowed to return 0, leaving openat_safer to add the
16786         safety.
16787         (openat_permissive): Avoid writing to just-opened fd 2 if
16788         restoring the current directory fails.
16789         * lib/openat-die.c (openat_restore_fail): Add comment.
16790         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
16791         (save_cwd): Guarantee safe fd, but without use of open_safer.
16792         * tests/test-openat.c: New test.
16793         * modules/openat-tests (Files, Makefile.am): Distribute and build
16794         new file.
16795
16796         relocatable-prog-wrapper: fix build
16797         * modules/relocatable-prog-wrapper (Files): Update name of
16798         canonicalize m4 file, broken on 2009-09-17.
16799         Reported by emad hajjar <aleppos@hotmail.com>.
16800
16801 2009-09-19  Bruno Haible  <bruno@clisp.org>
16802
16803         * lib/safe-alloc.h: Use the standard header with GPL copyright.
16804         * lib/safe-alloc.c: Likewise.
16805         Reported by Ian Beckwith <ianb@erislabs.net>.
16806
16807 2009-09-18  Bruno Haible  <bruno@clisp.org>
16808
16809         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
16810         Reported by <erobles@sensacd.com.mx>.
16811
16812 2009-09-17  Eric Blake  <ebb9@byu.net>
16813
16814         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
16815         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
16816         slashes when checking if last component is missing.
16817         * tests/test-canonicalize.c (main): Test this.
16818
16819         canonicalize, canonicalize-lgpl: honor // if distinct from /
16820         * modules/canonicalize (Files): Add double-slash-root.m4.
16821         * modules/canonicalize-lgpl (Files): Likewise.
16822         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16823         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
16824         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
16825         fallback definition.
16826         (canonicalize_filename_mode): Use it to protect //.
16827         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
16828         (__realpath): Likewise.
16829         * tests/test-canonicalize.c (main): Test this.
16830         * tests/test-canonicalize-lgpl.c (main): Likewise.
16831         * modules/canonicalize-tests (Depends-on): Add same-inode.
16832         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16833
16834         canonicalize-lgpl: fix glibc bug with trailing slash
16835         * m4/canonicalize-lgpl.m4: Move contents...
16836         * m4/canonicalize.m4: ...here.
16837         (gl_CANONICALIZE_LGPL): Factor realpath check...
16838         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
16839         glibc 2.3.5 bug, fixed 2005-04-27.
16840         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
16841         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
16842         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
16843         * modules/canonicalize-lgpl (Files): Manage file rename.
16844         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16845         * modules/stdlib (Makefile.am): Substitute witness.
16846         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
16847         is needed.
16848         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
16849         replacement is required.
16850         * lib/canonicalize.c (canonicalize_file_name): Likewise.
16851         * doc/glibc-functions/canonicalize_file_name.texi
16852         (canonicalize_file_name): Document this.
16853         * doc/posix-functions/realpath.texi (realpath): Likewise.
16854
16855         canonicalize-lgpl: reject non-directory with trailing slash
16856         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
16857         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
16858         catches failures in glibc 2.3.5.
16859         * tests/test-canonicalize.c (main): Likewise.
16860
16861         canonicalize-lgpl: use native realpath if it works
16862         * lib/canonicalize-lgpl.c (realpath): Guard with
16863         FUNC_REALPATH_WORKS.
16864         * lib/stdlib.in.h (realpath): Make declaration optional based on
16865         HAVE_REALPATH.
16866         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
16867         native realpath works.
16868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16869         * modules/stdlib (Makefile.am): Substitute witness.
16870
16871         canonicalize, canonicalize-lgpl: use <stdlib.h>
16872         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
16873         (Include): Mention <stdlib.h>.
16874         (configure.ac): Mention functions we provide.
16875         * modules/canonicalize (configure.ac): Likewise.
16876         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
16877         realpath if canonicalize_file_name is missing.
16878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
16879         * modules/stdlib (Makefile.am): Substitute witnesses.
16880         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
16881         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
16882         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
16883         * NEWS: Document this.
16884         * doc/glibc-functions/canonicalize_file_name.texi
16885         (canonicalize_file_name): Likewise.
16886         * doc/posix-functions/realpath.texi (realpath): Likewise.
16887         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
16888
16889         test-canonicalize: consolidate into single C program
16890         * tests/test-canonicalize.sh: Delete; move setup into...
16891         * tests/test-canonicalize.c (main): ...the program, making it
16892         easier to run in debugger.  Add some tests.
16893         * modules/canonicalize-tests (Files): Remove unused file.
16894         (Depends-on): Add progname.
16895         (configure.ac, Makefile.am): Simplify.
16896
16897         test-canonicalize-lgpl: consolidate into single C program
16898         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
16899         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
16900         easier to run in debugger.  Add some tests.
16901         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
16902         (configure.ac, Makefile.am): Simplify.
16903
16904         canonicalize: avoid resolvepath
16905         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
16906         unnecessary checks.
16907         * lib/canonicalize.c (includes): Simplify.
16908         (canonicalize_file_name): Drop resolvepath implementation.
16909         * modules/canonicalize (Depends-on): Drop filenamecat.
16910
16911         canonicalize: don't lose errno
16912         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
16913         over calls to free.
16914
16915         canonicalize: simplify errno handling
16916         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
16917         assignment.
16918
16919         canonicalize, canonicalize-lgpl: update module dependencies
16920         * modules/canonicalize (Depends-on): Add extensions, lstat,
16921         pathmax, stdlib.
16922         (Files): Drop pathmax.h.
16923         (configure.ac): Adjust macro name.
16924         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
16925         lstat, stdlib, sys_stat.
16926         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
16927         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
16928         extensions.
16929         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
16930         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
16931         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
16932         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
16933         declaration, if available.
16934         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
16935         we can rely on the readlink module.
16936         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
16937         (includes): Use <unistd.h> unconditionally.
16938
16939 2009-09-17  Eric Blake  <ebb9@byu.net>
16940
16941         maint: make Include sections of modules consistent
16942         * modules/alloca: Use only header name; no need to list #include.
16943         * modules/alloca-opt: Likewise.
16944         * modules/arpa_inet: Likewise.
16945         * modules/canon-host: Likewise.
16946         * modules/configmake: Likewise.
16947         * modules/dirent: Likewise.
16948         * modules/eealloc: Likewise.
16949         * modules/environ: Likewise.
16950         * modules/fchdir: Likewise.
16951         * modules/fcntl: Likewise.
16952         * modules/fcntl-h: Likewise.
16953         * modules/gethrxtime: Likewise.
16954         * modules/gettime: Likewise.
16955         * modules/ignore-value: Likewise.
16956         * modules/inet_ntop: Likewise.
16957         * modules/inet_pton: Likewise.
16958         * modules/inttypes: Likewise.
16959         * modules/isnand-nolibm: Likewise.
16960         * modules/isnanf-nolibm: Likewise.
16961         * modules/mbchar: Likewise.
16962         * modules/mbfile: Likewise.
16963         * modules/mbiter: Likewise.
16964         * modules/mbuiter: Likewise.
16965         * modules/netdb: Likewise.
16966         * modules/netinet_in: Likewise.
16967         * modules/nproc: Likewise.
16968         * modules/pagealign_alloc: Likewise.
16969         * modules/poll: Likewise.
16970         * modules/printf-frexp: Likewise.
16971         * modules/pthread: Likewise.
16972         * modules/putenv: Likewise.
16973         * modules/random_r: Likewise.
16974         * modules/relocatable-prog: Likewise.
16975         * modules/search: Likewise.
16976         * modules/select: Likewise.
16977         * modules/selinux-h: Likewise.
16978         * modules/settime: Likewise.
16979         * modules/signal: Likewise.
16980         * modules/size_max: Likewise.
16981         * modules/socklen: Likewise.
16982         * modules/ssize_t: Likewise.
16983         * modules/stdarg: Likewise.
16984         * modules/stdbool: Likewise.
16985         * modules/stddef: Likewise.
16986         * modules/stdint: Likewise.
16987         * modules/stdio: Likewise.
16988         * modules/stdlib: Likewise.
16989         * modules/string: Likewise.
16990         * modules/strings: Likewise.
16991         * modules/sys_file: Likewise.
16992         * modules/sys_ioctl: Likewise.
16993         * modules/sys_select: Likewise.
16994         * modules/sys_socket: Likewise.
16995         * modules/sys_stat: Likewise.
16996         * modules/sys_time: Likewise.
16997         * modules/sys_times: Likewise.
16998         * modules/sys_utsname: Likewise.
16999         * modules/sys_wait: Likewise.
17000         * modules/sysexits: Likewise.
17001         * modules/time: Likewise.
17002         * modules/times: Likewise.
17003         * modules/tmpfile: Likewise.
17004         * modules/trim: Likewise.
17005         * modules/unistd: Likewise.
17006         * modules/wchar: Likewise.
17007         * modules/wctype: Likewise.
17008
17009 2009-09-17  Bruno Haible  <bruno@clisp.org>
17010
17011         Make getdate.y compile on QNX and NetBSD 5 / i386.
17012         * m4/getdate.m4 (gl_GETDATE): Conditionally define
17013         TIME_T_FITS_IN_LONG_INT.
17014         * lib/getdate.y (long_time_t): New type.
17015         (relative_time): Change type of 'seconds' field to long_time_t.
17016         (get_date): Update types of local variables. Check against overflow
17017         during conversion from long_time_t to time_t.
17018         Reported by Matt Kraai <kraai@ftbfs.org>
17019         and Hasso Tepper <hasso@netbsd.org>.
17020
17021 2009-09-17  Bruno Haible  <bruno@clisp.org>
17022
17023         * modules/COPYING: Update copyright years.
17024         * modules/README: Likeiwse.
17025         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
17026         Reported by Ian Beckwith <ianb@erislabs.net>.
17027
17028 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
17029
17030         * users.txt: Update references for gnuit package.
17031
17032 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
17033
17034         * m4/getdelim.m4: Fix typo in copyright line.
17035
17036 2009-09-17  Bruno Haible  <bruno@clisp.org>
17037
17038         * lib/atoll.c: Use the standard header with GPL copyright.
17039         * lib/argz.in.h: Likewise.
17040         * lib/glob.c: Likewise.
17041         * lib/glob-libc.h: Likewise.
17042         * lib/random_r.c: Likewise.
17043         * lib/siglist.h: Likewise.
17044         * lib/strsignal.c: Likewise.
17045         Reported by Ian Beckwith <ianb@erislabs.net>.
17046
17047 2009-09-17  Eric Blake  <ebb9@byu.net>
17048
17049         rmdir: ensure correct dependency order
17050         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
17051
17052 2009-09-17  Bruno Haible  <bruno@clisp.org>
17053
17054         Disable assertion that fails on NetBSD 5 / i386.
17055         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
17056         Reported by Sam Steingold <sds@gnu.org>
17057         and Hasso Tepper <hasso@netbsd.org>.
17058
17059 2009-09-16  Eric Blake  <ebb9@byu.net>
17060
17061         unlinkdir: port to mingw
17062         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
17063         on which no one can unlink a directory.
17064
17065         stdlib: sort witness names
17066         * modules/stdlib (Makefile.am): Sort replacements.
17067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
17068         * lib/stdlib.in.h: Likewise.
17069
17070         parse-duration-tests: avoid link failure
17071         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
17072         LIBINTL.
17073         Reported by Tom G. Christensen.
17074
17075         openat-tests: ensure unlinkat behaves like rmdir
17076         * tests/test-rmdir.c (main): Factor guts...
17077         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
17078         * modules/rmdir-tests (Files): Ship new file.
17079         * modules/openat-tests: New test.
17080         * tests/test-unlinkat.c: Likewise.
17081
17082         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
17083         * modules/rmdir-errno (Status, Notice): Now obsolete.
17084
17085         rmdir: work around cygwin 1.5.x and mingw bugs
17086         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
17087         * lib/rmdir.c (rmdir): Work around it.
17088         * modules/rmdir (Status, Notice): No longer obsolete.
17089         (Files): Add dos.m4.
17090         (Depends-on): Add unistd.
17091         (configure.ac): Set witnesses.
17092         (License): Relax to LGPLv2+.
17093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
17094         * modules/unistd (Makefile.am): Substitute witnesses.
17095         * lib/unistd.in.h (rmdir): Declare replacement.
17096         * doc/posix-functions/rmdir.texi (rmdir): Document this.
17097         * modules/rmdir-tests: New tests.
17098         * tests/test-rmdir.c: Likewise.
17099
17100 2009-09-15  Eric Blake  <ebb9@byu.net>
17101
17102         fchdir: improve use of replacement functions
17103         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
17104         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
17105         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
17106         REPLACE_CLOSEDIR.
17107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
17108         * modules/sys_stat (Makefile.am): Substitute correct witness.
17109         * modules/dirent (Makefile.am): Likewise.
17110         * modules/unistd (Makefile.am): Likewise.
17111         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
17112         * lib/unistd.in.h (dup): Likewise.
17113         * lib/sys_stat.in.h (fstat): Likewise.
17114
17115         maint: ignore gnulib-tool temp files
17116         * .gitignore: Ignore files created during gnulib-tool --test.
17117
17118 2009-09-13  Jim Meyering  <meyering@redhat.com>
17119
17120         posixtm: don't reject a time that specify "60" as the number of seconds
17121         * lib/posixtm.c (posixtime): The code to reject invalid dates
17122         would also reject a time specified with the .60 suffix.
17123         But POSIX allows that, in order to accommodate leap seconds.
17124         So don't reject it.
17125         (main): Adjust tests accordingly.
17126         * modules/posixtm (Depends-on): Add stpcpy.
17127
17128 2009-09-11  Jim Meyering  <meyering@redhat.com>
17129
17130         announce-gen: include [$release_type] in emitted Subject:
17131         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
17132         e.g., [stable] in the emitted Subject: line.
17133
17134 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17135
17136         Remove obsolete macros from several modules.
17137         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
17138         obsolete Autoconf macros with their modern counterparts.
17139         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
17140         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
17141         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
17142         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
17143         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
17144         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
17145         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
17146         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
17147         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
17148         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
17149         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17150         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17151         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
17152         * m4/sockets.m4 (gl_SOCKETS): Likewise.
17153         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
17154         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
17155         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
17156         * m4/time_r.m4 (gl_TIME_R): Likewise.
17157         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
17158         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
17159         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
17160
17161         Fix copyright header in build-aux scripts.
17162         * build-aux/git-version-gen: Fix copyright header to match GPLv3
17163         recommendation.
17164         * build-aux/ncftpput-ftp: Likewise.
17165         * build-aux/update-copyright: Likewise.
17166
17167 2009-09-09  Eric Blake  <ebb9@byu.net>
17168
17169         test-link: allow Linux choice of errno
17170         * tests/test-link.c (main): Relax test for alternate error.
17171
17172         strndup: fix improper m4 caching
17173         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
17174         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
17175         (gl_PREREQ_STRNDUP): Delete.
17176         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
17177         * modules/string (Makefile.am): Substitute it.
17178         * lib/string.in.h (strndup): Modernize prototype.
17179
17180         getcwd: port to mingw
17181         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
17182         different from the POSIX assumptions made throughout the getcwd
17183         module; fortunately, the mingw getcwd does not need replacement.
17184         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
17185         * modules/getcwd-tests: New test.
17186         * tests/test-getcwd.c: Likewise.
17187
17188         link: fix platform bugs
17189         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
17190         * lib/link.c (link): Work around them.  Fix related mingw bug.
17191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
17192         * modules/unistd (Makefile.am): Substitute it.
17193         * lib/unistd.in.h (link): Declare replacement.
17194         * doc/posix-functions/link.texi (link): Document this.
17195         * modules/link (Depends-on): Add strdup-posix, sys_stat.
17196
17197         test-link: consolidate into single C program, test more cases
17198         * tests/test-link.sh: Delete.
17199         * tests/test-link.c: Test more error conditions.  Exposes bugs on
17200         at least Cygwin and Solaris.
17201         * modules/link-tests (Files): Remove unused file.
17202         (Depends-on): Add errno, sys_stat.
17203         (Makefile.am): Simplify.
17204
17205 2009-09-08  Bruno Haible  <bruno@clisp.org>
17206
17207         Work around towlower, towupper bug on mingw.
17208         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
17209         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
17210         * doc/posix-functions/towlower.texi: Mention the mingw bug.
17211         * doc/posix-functions/towupper.texi: Likewise.
17212         Reported by Eric Blake.
17213
17214 2009-09-08  Jim Meyering  <meyering@redhat.com>
17215
17216         build: don't try to run autoheader if we don't use it
17217         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
17218         is not used in configure.ac.
17219
17220 2009-09-08  Eric Blake  <ebb9@byu.net>
17221
17222         euidaccess: fix compilation error
17223         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
17224
17225         rawmemchr: relax license
17226         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
17227         okay.
17228         Reported by Jim Meyering.
17229
17230         mkfifoat: new module
17231         * modules/mkfifoat: New file.
17232         * lib/mkfifoat.c: Likewise.
17233         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
17234         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17235         * modules/sys_stat (Makefile.am): Use them.
17236         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
17237         * MODULES.html.sh (File system functions): Mention module.
17238         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17239         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17240         * modules/mkfifoat-tests: New test.
17241         * tests/test-mkfifoat.c: Likewise.
17242
17243         strchrnul: relax license
17244         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
17245         okay.
17246         Reported by Jim Meyering.
17247
17248 2009-09-08  Eric Blake  <ebb9@byu.net>
17249
17250         fstatat: fix compilation on Solaris
17251         * lib/fstatat.c (includes): Add fcntl.h.
17252         Reported by Pádraig Brady.
17253
17254 2009-09-07  Eric Blake  <ebb9@byu.net>
17255
17256         rename: modernize replacement
17257         * modules/rename (Depends-on): Add stdio.
17258         (configure.ac): Declare witness.
17259         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
17260         stdio take care of replacement.
17261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
17262         * modules/stdio (Makefile.am): Substitute them.
17263         * lib/stdio.in.h (rename): Declare replacement.
17264         * lib/rename.c (includes): Allow cross-compilation to non-windows
17265         machines.
17266         * doc/posix-functions/rename.texi (rename): Improve
17267         documentation.
17268
17269         stdio: sort witness names
17270         * modules/stdio (Makefile.am): Sort replacements.
17271         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17272         * lib/stdio.in.h: Likewise.
17273
17274         getcwd: minor cleanups
17275         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
17276         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
17277
17278         openat: provide more convenience names
17279         * modules/faccessat (configure.ac): Add C witness.
17280         * lib/unistd.in.h (readlinkat): Fix typo.
17281         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
17282         convenience wrappers.
17283         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
17284         wrappers in syntax checks.
17285
17286 2009-09-06  Eric Blake  <ebb9@byu.net>
17287
17288         doc: fix comments in recent patches
17289         * lib/faccessat.c: Mention correct function.
17290         * lib/fchmodat.c: Likewise.
17291         * lib/fchownat.c: Likewise.
17292         * lib/symlinkat.c: Likewise.
17293         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
17294         constants.
17295
17296         faccessat, symlinkat: continue cleanup of previous patch
17297         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
17298         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17299         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
17300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
17301         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
17302         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
17303         set.
17304
17305 2009-09-06  Bruno Haible  <bruno@clisp.org>
17306
17307         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
17308         (fstatat): Declare if GNULIB_FSTATAT is set.
17309         (mkdirat): Declare if GNULIB_MKDIRAT is set.
17310         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
17311         (unlinkat): Declare if GNULIB_UNLINKAT is set.
17312         * modules/fcntl-h (Files): Remove m4/openat.m4.
17313         * modules/sys_stat (Files): Remove m4/openat.m4.
17314         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
17315         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
17316         * modules/unistd (Files): Remove m4/openat.m4.
17317         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
17318         GNULIB_OPENAT.
17319         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
17320         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
17321         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
17322         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
17323         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
17324         gl_OPENAT_DEFAULTS.
17325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
17326         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
17327         Don't require gl_OPENAT_DEFAULTS.
17328         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
17329         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
17330         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
17331         (gl_OPENAT_DEFAULTS): Remove macro.
17332
17333 2009-09-06  Bruno Haible  <bruno@clisp.org>
17334
17335         * modules/openat (configure.ac): Remove unneeded witness.
17336
17337 2009-09-06  Bruno Haible  <bruno@clisp.org>
17338
17339         Set errno to ENOSYS when a function is entirely unsupported.
17340         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
17341         EOPNOTSUPP.
17342         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17343         * modules/chown (Depends-on): Remove errno.
17344
17345 2009-09-06  Bruno Haible  <bruno@clisp.org>
17346
17347         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
17348
17349 2009-09-06  Bruno Haible  <bruno@clisp.org>
17350
17351         * lib/sys_stat.in.h: Fix preprocessor command indentation.
17352
17353 2009-09-06  Ben Pfaff  <blp@gnu.org>
17354             Bruno Haible  <bruno@clisp.org>
17355
17356         Work around a glibc bug in strtok_r.
17357         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
17358         Undefine if UNDEFINE_STRTOK_R is set.
17359         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
17360         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17361         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
17362         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
17363         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
17364         UNDEFINE_STRTOK_R.
17365         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
17366
17367 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
17368
17369         exclude: minor fix
17370         * lib/exclude.c: Include wctype.h
17371
17372 2009-09-06  Akim Demaille  <demaille@gostai.com>
17373
17374         bootstrap: improve error message
17375         * build-aux/bootstrap (find_tool): Upon failure, report the list
17376         of candidates.
17377         Honor the initial value of the envvar.
17378
17379 2009-09-05  Eric Blake  <ebb9@byu.net>
17380
17381         symlinkat: new module
17382         * modules/symlinkat: New file.
17383         * lib/symlinkat.c: Likewise.
17384         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
17385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17386         * modules/unistd (Makefile.am): Use them.
17387         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
17388         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
17389         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
17390         * MODULES.html.sh (File system functions): Mention module.
17391         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17392         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17393         * modules/symlinkat-tests: New test.
17394         * tests/test-symlinkat.c: Likewise.
17395
17396         test-openat-safer: add more checks
17397         * tests/test-openat-safer.c (main): Check more code paths.
17398
17399 2009-09-05  Jim Meyering  <meyering@redhat.com>
17400
17401         syntax-check: detect unnecessary inclusion of openat.h
17402         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
17403
17404 2009-09-05  Bruno Haible  <bruno@clisp.org>
17405
17406         Support towlower, towupper.
17407         * doc/posix-functions/towlower.texi: Mention module wctype.
17408         * doc/posix-functions/towupper.texi: Likewise.
17409         * lib/wctype.in.h (towlower, towupper): New functions.
17410         * tests/test-wctype.c: Include stdio.h, stdlib.h.
17411         (ASSERT): New macro.
17412         (e): New variable.
17413         (main): Test also towlower, towupper. Test WEOF argument.
17414         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
17415
17416 2009-09-05  Bruno Haible  <bruno@clisp.org>
17417
17418         Fix conversion behaviour when the input is invalid.
17419         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
17420         mark occurring in first pass of indirect conversion.
17421         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
17422         input.
17423         Found by clang's static analyzer.
17424
17425 2009-09-05  Bruno Haible  <bruno@clisp.org>
17426
17427         * tests/test-striconveh.c (main): Test indirect conversion on platforms
17428         where direct conversion is possible.
17429
17430 2009-09-04  Eric Blake  <ebb9@byu.net>
17431
17432         openat: fail with ENOENT on empty name
17433         * lib/openat-proc.c (openat_proc_name): Special-case the empty
17434         buffer.
17435
17436         link-follow: fix logic bug in prior patch
17437         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
17438         reversed sense of yes and no in prior patch.  Avoid confusing
17439         compilation failure with desired semantics.
17440
17441         link-follow: accomodate mingw and cross-compilation
17442         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
17443         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
17444         cross-compilation results to -1, to make linkat easier to
17445         implement when cross-compiling.  Trivially support mingw.
17446         * modules/link-follow (configure.ac): Call new name.
17447         * NEWS: Mention this.
17448
17449 2009-09-03  Eric Blake  <ebb9@byu.net>
17450
17451         faccessat: compile replacement
17452         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
17453         needed.
17454
17455         fts: fix compilation error
17456         * lib/fts.c (includes): Re-add "openat.h", for
17457         openat_needs_fchdir.
17458
17459         faccessat: new module
17460         * modules/faccessat: New file.
17461         * lib/faccessat.c: Likewise.
17462         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
17463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17464         * modules/unistd (Makefile.am): Use it.
17465         * lib/unistd.in.h (faccessat): Declare it.
17466         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
17467         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
17468         * MODULES.html.sh (File system functions): Mention it.
17469         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
17470         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
17471
17472         euidaccess: prefer POSIX over non-standard implementation
17473         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
17474         * lib/euidaccess.c (euidaccess): Use it if available.
17475
17476         openat: make template easier to use
17477         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
17478         AT_FUNC_F2 to be undefined.
17479         (VALIDATE_FLAG): New macro; use it to reject bad flags.
17480         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
17481         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
17482         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
17483         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
17484         Likewise.
17485         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
17486         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
17487         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
17488         Likewise.
17489
17490         openat: declare in POSIX headers
17491         * NEWS: Mention this.
17492         * modules/openat (configure.ac): Declare witnesses.
17493         (Depends-on): Add fcntl-h, sys_stat, unistd.
17494         (Include): Mention correct headers.
17495         * modules/fcntl-h (Depends-on): Add link-warning.
17496         (Files): Add openat.m4.
17497         (Makefile.am): Substitute witnesses.
17498         * modules/sys_stat (Files, Makefile.am): Likewise.
17499         * modules/unistd (Files, Makefile.am): Likewise.
17500         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
17501         (gl_OPENAT_DEFAULTS): New macro.
17502         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
17503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
17504         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
17505         (SYS_STAT_H): Remove unused variable.
17506         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
17507         * lib/fcntl--.h (includes): Remove unneeded header.
17508         * lib/openat-safer.c (includes): Likewise.
17509         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
17510         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
17511         appropriate headers.
17512         (__OPENAT_PREFIX): Delete.
17513         * lib/fcntl.in.h (openat): Provide declaration.
17514         (AT_FDCWD): Fix Solaris bug.
17515         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
17516         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
17517         * lib/fchmodat.c (includes):  Adjust to find declaration.
17518         * lib/fchownat.c (includes): Likewise.
17519         * lib/mkdirat.c (includes): Likewise.
17520         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
17521         still visible.
17522
17523 2009-09-02  Eric Blake  <ebb9@byu.net>
17524
17525         errno: use consistently
17526         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
17527         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
17528         * lib/canonicalize.c (ELOOP): Likewise.
17529         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
17530         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
17531         * lib/lchown.c (EOPNOTSUPP): Likewise.
17532         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
17533         * lib/savewd.c (ESTALE): Likewise.
17534         * lib/settime.c (ENOSYS): Likewise.
17535         * lib/utimens.c (ENOSYS): Likewise.
17536         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
17537         * lib/chdir-safer.c (ELOOP): Likewise.
17538         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
17539         * modules/c-stack (Depends-on): Add errno.
17540         * modules/canonicalize (Depends-on): Likewise.
17541         * modules/chdir-safer (Depends-on): Likewise.
17542         * modules/fdopendir (Depends-on): Likewise.
17543         * modules/inet_ntop (Depends-on): Likewise.
17544         * modules/inet_pton (Depends-on): Likewise.
17545         * modules/lchown (Depends-on): Likewise.
17546         * modules/openat (Depends-on): Likewise.
17547         * modules/savewd (Depends-on): Likewise.
17548         * modules/settime (Depends-on): Likewise.
17549         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
17550
17551         fts: avoid leaking fds
17552         * modules/fts (Depends-on): Add cloexec.
17553         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
17554         flag.
17555
17556         fts: make directory fds more robust
17557         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
17558         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
17559
17560         backupfile, chdir-long, fts, savedir: make safer
17561         * lib/backupfile.c (includes): Use "dirent--.h", since
17562         numbered_backup can write to stderr during readdir.
17563         * lib/savedir.c (includes): Likewise.
17564         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
17565         emulation can write to stderr on failure.
17566         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
17567         * lib/getcwd.c: Document why opendir_safer is unused.
17568         * lib/glob.c: Likewise.
17569         * lib/scandir.c: Likewise.
17570         * lib/openat-proc.c: Likewise, for open_safer.
17571         * modules/backupfile (Depends-on): Add dirent-safer.
17572         * modules/savedir (Depends-on): Likewise.
17573         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
17574         * modules/chdir-long (Depends-on): Add openat-safer.
17575
17576         openat-safer: new module
17577         * modules/openat-safer: New file.
17578         * lib/openat-safer.c: Likewise.
17579         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
17580         * lib/fcntl-safer.h (openat_safer): Declare.
17581         * lib/fcntl--.h (openat): Override.
17582         * MODULES.html.sh (File descriptor based I/O): Mention it.
17583         * lib/openat.h: Add double-inclusion guards.
17584         * lib/openat.c (includes): Only include "fcntl-safer.h", not
17585         "fcntl--.h", so we can implement openat.
17586         * modules/openat-safer-tests: New test.
17587         * tests/test-openat-safer.c: New file.
17588
17589         dirent-safer: new module
17590         * modules/dirent-safer: New file.
17591         * lib/dirent--.h: Likewise.
17592         * lib/dirent-safer.h: Likewise.
17593         * lib/opendir-safer.c: Likewise.
17594         * m4/dirent-safer.m4: Likewise.
17595         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
17596         * modules/dirent-safer-tests: New test.
17597         * tests/test-dirent-safer.c: New file.
17598         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
17599
17600         fdopendir: optimize on mingw
17601         * lib/unistd.in.h (_gl_directory_name): New prototype.
17602         * lib/fchdir.c (_gl_directory_name): Implement it.
17603         (fchdir): Use it to simplify implementation.
17604         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
17605         fchdir, when available, to avoid calling [f]chdir().
17606
17607         fdopendir: split into its own module
17608         * lib/openat.c (fdopendir): Move...
17609         * lib/fdopendir.c: ...into new file.
17610         * modules/fdopendir: New module.
17611         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
17612         * modules/openat (Depends-on): Add fdopendir.
17613         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
17614         fdopendir here.
17615         * modules/savedir (Depends-on): Only need fdopendir, not full
17616         openat.
17617         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
17618         * lib/openat.h (fdopendir): Drop prototype.
17619         * lib/dirent.in.h (fdopendir): Provide prototype.
17620         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
17621         * modules/dirent (Makefile.am): Substitute them.
17622         * MODULES.html.sh (File system functions): Mention it.
17623         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
17624         * modules/fdopendir-tests: New file.
17625         * tests/test-fdopendir.c: Likewise.
17626
17627         fchdir: use more consistent macro convention
17628         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
17629         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
17630         REPLACE_FCHDIR, rather than relying on config.h macros.
17631         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
17632         inside a single make-time REPLACE_FCHDIR block, rather than using
17633         the config.h FCHDIR_REPLACEMENT.
17634         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
17635         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
17636         Manage fstat replacement.
17637         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
17638         REPLACE_FCHDIR.
17639         * modules/sys_stat (Files): Add m4/unistd_h.m4.
17640         (Makefile.am): Substitute REPLACE_FCHDIR.
17641         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
17642         FCHDIR_REPLACEMENT.
17643         * lib/dup-safer.c (dup_safer): Likewise.
17644         * lib/dup2.c (rpl_dup2): Likewise.
17645         * lib/dup3.c (rpl_dup3): Likewise.
17646         * lib/open.c (rpl_open): Likewise.
17647
17648         fchdir: simplify error handling, and support dup3
17649         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
17650         stdbool, malloc-posix, realloc-posix.
17651         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
17652         (ensure_dirs_slot): Return false on allocation failure.
17653         (rpl_dup2): Delete.
17654         (_gl_register_dup): New function.
17655         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
17656         (_gl_register_fd): Close fd on allocation failure.
17657         * lib/fcntl.in.h (_gl_register_fd): Update signature.
17658         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
17659         prototype.
17660         (rpl_dup2_fchdir): Delete prototype.
17661         * lib/open.c (open): Update caller.
17662         * lib/dup2.c (dup2): Track fchdir metadata.
17663         * lib/dup3.c (dup3): Likewise.
17664         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
17665         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
17666
17667 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17668
17669         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
17670         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
17671         don't pass arguments to AC_OUTPUT.
17672
17673 2009-09-02  Bruno Haible  <bruno@clisp.org>
17674
17675         * modules/mkdtemp (License): Relicense under LGPLv2+.
17676         Reported by Paolo Bonzini.
17677
17678 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17679
17680         Replace uses of obsolete autoconf macros in Jim's modules.
17681         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
17682         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
17683         can evoke a warning from autoconf when run with -Wobsolete
17684         enabled.  They were declared obsolete for good reasons (see
17685         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
17686         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
17687         should not continue using the deprecated macros.
17688         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
17689         obsolete Autoconf macros with modern counterparts.
17690         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
17691         * m4/dos.m4 (gl_AC_DOS): Likewise.
17692         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
17693         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
17694         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
17695         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
17696         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
17697         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
17698         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
17699         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
17700         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
17701         Likewise.
17702         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
17703         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
17704         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
17705         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
17706         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
17707         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
17708
17709 2009-09-01  Eric Blake  <ebb9@byu.net>
17710
17711         fchdir: fix off-by-one bug in previous patch
17712         * lib/fchdir.c (rpl_fstat): Use correct bounds.
17713         (_gl_unregister_fd): Delete useless if.
17714
17715 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
17716
17717         maint.mk: sort the list of syntax-check rules
17718         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
17719         easier to get a sense of progress when the rules are run sequentially
17720         and take a long time.
17721
17722 2009-09-01  Simon Josefsson  <simon@josefsson.org>
17723
17724         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
17725         * modules/netinet_in: Likewise.
17726         * modules/sys_file: Likewise.
17727         * modules/sys_ioctl: Likewise.
17728         * modules/sys_select: Likewise.
17729         * modules/sys_socket: Likewise.
17730         * modules/sys_stat: Likewise.
17731         * modules/sys_time: Likewise.
17732         * modules/sys_times: Likewise.
17733         * modules/sys_utsname: Likewise.
17734         * modules/sys_wait: Likewise.
17735
17736 2009-09-01  Jim Meyering  <meyering@redhat.com>
17737
17738         fts: help ensure that return values are not ignored
17739         * lib/fts_.h (__GNUC_PREREQ): Define.
17740         (__attribute_warn_unused_result__): Define.
17741         (fts_children, fts_close, fts_open, fts_read): Declare with
17742         __attribute_warn_unused_result__.
17743
17744         fts: fts_close now fails also when closing a dir file descriptor fails
17745         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
17746         and propagate to caller, along with errno.
17747
17748         announce-gen: correct formatting in --help output
17749         * build-aux/announce-gen (usage): Move the one-line description in
17750         --help output "up", to where it belongs, just after Usage:.
17751
17752 2009-08-31  Eric Blake  <ebb9@byu.net>
17753
17754         fchdir: port to mingw
17755         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
17756         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
17757         opened, then use a substitute.
17758         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
17759         replacement.
17760         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
17761         (_gl_register_fd): No need to check stat if open already filters
17762         all directories.
17763         (fchdir): Fix error condition to match POSIX.
17764         * modules/fchdir (Depends-on): Add sys_stat.
17765         * doc/posix-functions/open.texi (open): Document the limitation.
17766         * modules/fchdir-tests: New file.
17767         * tests/test-fchdir.c: Likewise.
17768
17769         canonicalize: allow cross-testing from cygwin to mingw
17770         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
17771         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
17772         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
17773         Likewise.
17774         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
17775         target does not support symlinks.
17776         * tests/test-canonicalize-lgpl.sh: Likewise.
17777
17778         chown: avoid compilation warning on mingw
17779         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
17780         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
17781         mingw.
17782         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17783         * modules/chown (Depends-on): Add errno.
17784
17785 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17786
17787         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
17788         command.
17789
17790 2009-08-31  Jim Meyering  <meyering@redhat.com>
17791
17792         canonicalize: remove useless initialization
17793         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
17794         initialization of local, "end".
17795
17796 2009-08-30  Bruno Haible  <bruno@clisp.org>
17797
17798         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
17799         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
17800         ENOSYS.
17801
17802 2009-08-30  Bruno Haible  <bruno@clisp.org>
17803
17804         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
17805         /usr/xpg4/bin/tr when it exists.
17806         * tests/test-pipe-filter-gi1.sh: Likewise.
17807
17808 2009-08-30  Bruno Haible  <bruno@clisp.org>
17809
17810         Work around deficient /usr/bin/id program on Solaris.
17811         * tests/test-file-has-acl.sh (ID): New variable.
17812         * tests/test-set-mode-acl.sh (ID): Likewise.
17813         * tests/test-copy-acl.sh (ID): Likewise.
17814         * tests/test-copy-file.sh (ID): Likewise.
17815
17816 2009-08-30  Bruno Haible  <bruno@clisp.org>
17817
17818         New module 'xstriconveh'.
17819         * lib/xstriconveh.h: New file.
17820         * lib/xstriconveh.c: New file.
17821         * modules/xstriconveh: New file.
17822
17823 2009-08-30  Bruno Haible  <bruno@clisp.org>
17824
17825         Make it easier to use mem_cd_iconveh.
17826         * lib/striconveh.h (iconveh_t): New type.
17827         (iconveh_open, iconveh_close): New declarations.
17828         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17829         with a single 'const iconveh_t *' argument.
17830         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
17831         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17832         with a single 'const iconveh_t *' argument.
17833         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
17834         * tests/test-striconveh.c (main): Update.
17835         * NEWS: Mention the change.
17836
17837 2009-08-30  Bruno Haible  <bruno@clisp.org>
17838
17839         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
17840         problem.
17841
17842 2009-08-30  Bruno Haible  <bruno@clisp.org>
17843
17844         Work around iconv_open problem on Solaris.
17845         * lib/iconv_open-solaris.gperf: New file.
17846         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
17847         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
17848         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
17849         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
17850         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
17851         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
17852
17853 2009-08-29  Jim Meyering  <meyering@redhat.com>
17854
17855         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
17856         * top/maint.mk (cvs-check): Remove target; it was just an alias
17857         to the better-named vc-diff-check.
17858         (maintainer-distcheck): Remove rule.  It was used only from
17859         the (alpha/beta/major) target, and all of its commands but one
17860         were coreutils-specific.
17861         (vc-dist): Remove rule.
17862         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
17863         Run vc-diff-check, not vc-dist.
17864         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
17865
17866 2009-08-27  Bruno Haible  <bruno@clisp.org>
17867
17868         * tests/test-bitrotate.c (main): Remove test that uses a shift count
17869         of 0.
17870
17871 2009-08-27  Bruno Haible  <bruno@clisp.org>
17872
17873         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
17874         compilers.
17875         * doc/func.texi: Document the SunPRO C bug.
17876
17877 2009-08-27  Bruno Haible  <bruno@clisp.org>
17878
17879         Fix link error on Solaris.
17880         * tests/test-parse-duration.c (xstrdup): Remove function.
17881
17882 2009-08-26  Pádraig Brady  <P@draigbrady.com>
17883
17884         ignore-value: handle pointer types, too
17885         * lib/ignore-value.h (__attribute__): Remove definition.
17886         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
17887         of a more concise and more-often effective "(void) i" statement.
17888         (ignore_ptr): New function to suppress warnings from functions that
17889         return pointers, and to make it explicit that one function doesn't
17890         handle all cases.
17891
17892 2009-08-25  Bruno Haible  <bruno@clisp.org>
17893
17894         dup2: work around a Linux bug.
17895         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
17896         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
17897         * doc/posix-functions/dup2.texi: Mention the Linux bug.
17898         Reported by Simon Josefsson.
17899
17900 2009-08-25  Jim Meyering  <meyering@redhat.com>
17901
17902         libguestfs uses gnulib
17903         * users.txt: Add libguestfs.
17904
17905 2009-08-24  Eric Blake  <ebb9@byu.net>
17906
17907         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
17908         * lib/pipe2.c (includes): Add binary-io.h.
17909         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
17910
17911 2009-08-24  Bruno Haible  <bruno@clisp.org>
17912
17913         Tolerate declared but missing accept4 syscall.
17914         * lib/accept4.c (accept4): Invoke original accept4 function first, if
17915         available.
17916         * lib/sys_socket.in.h (accept4): If the function is already present,
17917         override it.
17918         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
17919         * modules/accept4 (Makefile.am): Compile accept4.c always.
17920         Reported by Paolo Bonzini and Eric Blake.
17921
17922 2009-08-23  Bruno Haible  <bruno@clisp.org>
17923
17924         New module 'accept4'.
17925         * lib/sys_socket.in.h (accept4): New declaration.
17926         * lib/accept4.c: New file.
17927         * m4/accept4.m4: New file.
17928         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17929         GNULIB_ACCEPT4, HAVE_ACCEPT4.
17930         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
17931         HAVE_ACCEPT4.
17932         * modules/accept4: New file.
17933         * doc/glibc-functions/accept4.texi: Mention the new module.
17934
17935 2009-08-24  Jim Meyering  <meyering@redhat.com>
17936
17937         progname: also set global program_invocation_name, when possible
17938         Before this change, a libtool-enabled program that calls glibc's
17939         error function would report the program name as
17940         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
17941         * modules/progname (configure.ac): Check for a declaration of
17942         program_invocation_name.
17943         * lib/progname.c:  Include <errno.h>.
17944         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
17945         Set program_invocation_name.
17946
17947 2009-08-23  Bruno Haible  <bruno@clisp.org>
17948
17949         * lib/dup3.c: Include <string.h>.
17950
17951 2009-08-23  Bruno Haible  <bruno@clisp.org>
17952
17953         * lib/dup3.c (dup3): Test only once whether the system actually exists.
17954         * lib/pipe2.c (pipe2): Likewise.
17955         Suggested by Eric Blake.
17956
17957 2009-08-23  Bruno Haible  <bruno@clisp.org>
17958
17959         Tolerate declared but missing dup3 syscall.
17960         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
17961         * lib/unistd.in.h (dup3): If the function is already present,
17962         override it.
17963         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
17964         * modules/dup3 (Makefile.am): Compile dup3.c always.
17965         Reported by Paolo Bonzini.
17966
17967 2009-08-23  Bruno Haible  <bruno@clisp.org>
17968
17969         Tolerate declared but missing pipe2 syscall.
17970         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
17971         available.
17972         * lib/unistd.in.h (pipe2): If the function is already present,
17973         override it.
17974         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
17975         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
17976         Reported by Paolo Bonzini.
17977
17978 2009-08-23  Bruno Haible  <bruno@clisp.org>
17979
17980         * lib/pipe2.c (pipe2): Move #ifs inside function.
17981
17982 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17983
17984         quotearg: document limitations of quote_these_too
17985         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
17986         those limitations are created.
17987         * lib/quotearg.h (set_char_quoting): Document that digits and
17988         letters that are special after backslash are not permitted.
17989         (quotearg_char): Cross-reference set_char_quoting documentation.
17990
17991 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
17992
17993         quotearg: implement custom_quoting_style
17994         * lib/quotearg.c: (struct quoting_options): Add left_quote and
17995         right_quote fields.
17996         (set_custom_quoting): New public function.
17997         (quotearg_buffer_restyled): Add left_quote and right_quote
17998         arguments, handle them very much like locale quoting, and update
17999         all uses.
18000         (quotearg_n_custom): New public function.
18001         (quotearg_n_custom_mem): New public function.
18002         (quotearg_custom): New public function.
18003         (quotearg_custom_mem): New public function.
18004         * lib/quotearg.h: Prototype and document new public functions.
18005         (enum quoting_style): For escape_quoting_style and
18006         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
18007         ignored even though they're otherwise like c_quoting_style.
18008         Add custom_quoting_style member and document with comparison to
18009         clocale_quoting_style.
18010         * tests/test-quotearg.c (custom_quotes): New array.
18011         (custom_results): New array.
18012         (main): Extend to test custom quoting.
18013
18014 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18015
18016         quotearg: fix right quote escaping when it's in quote_these_too
18017         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
18018         quote, be sure to prepend only one backslash.
18019         * tests/test-quotearg.c (use_quote_double_quotes): New function.
18020         (main): Test it.
18021
18022 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
18023
18024         quotearg-tests: test escaping of embedded locale quotes
18025         * tests/test-quotearg.c (struct result_strings): Add member for
18026         new input.
18027         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
18028         (inputs): Add new input.
18029         (results_g): Add expected results.
18030         (flag_results): Likewise.
18031         (locale_results): Likewise.
18032         (compare_strings): Check those.
18033
18034 2009-08-23  Bruno Haible  <bruno@clisp.org>
18035
18036         Tests for module 'dup3'.
18037         * modules/dup3-tests: New file.
18038         * tests/test-dup3.c: New file.
18039
18040         New module 'dup3'.
18041         * lib/unistd.in.h (dup3): New declaration.
18042         * lib/dup3.c: New file.
18043         * m4/dup3.m4: New file.
18044         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
18045         HAVE_DUP3.
18046         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
18047         * modules/dup3: New file.
18048         * doc/glibc-functions/dup3.texi: Mention the new module.
18049
18050 2009-08-23  Bruno Haible  <bruno@clisp.org>
18051
18052         Tweak the dup2 test.
18053         * tests/test-dup2.c (main): Create the test file empty. Verify that an
18054         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
18055         the test file is still empty. Fix argument order of lseek.
18056
18057 2009-08-23  Bruno Haible  <bruno@clisp.org>
18058
18059         Avoid test link errors when the modules getopt-gnu, gettext are used.
18060         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
18061         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18062
18063 2009-08-23  Bruno Haible  <bruno@clisp.org>
18064
18065         Fix getdtablesize() on mingw.
18066         * lib/getdtablesize.c (getdtablesize): Implement differently.
18067         * lib/unistd.in.h (getdtablesize): Improve comment.
18068
18069 2009-08-23  Bruno Haible  <bruno@clisp.org>
18070
18071         New module 'mkostemp'.
18072         Based on Ulrich Drepper's 2007-08-10 change in glibc.
18073         * lib/stdlib.in.h (mksotemp): New declaration.
18074         * lib/mkostemp.c: New file, from glibc with modifications.
18075         * lib/tempname.h (GT_FILE): Remove outdated comment.
18076         (gen_tempname): Add flags argument.
18077         * lib/tempname.c (__GT_BIGFILE): Remove macro.
18078         (__GT_FILE): Map to 1.
18079         (small_open, large_open): Remove macros.
18080         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
18081         * lib/mkstemp.c (mkstemp): Update.
18082         * lib/mkdtemp.c (mkdtemp): Likewise.
18083         * m4/mkostemp.m4: New file.
18084         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
18085         HAVE_MKOSTEMP.
18086         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
18087         HAVE_MKOSTEMP.
18088         * modules/mkostemp: New file, based on modules/mkstemp.
18089         * doc/glibc-functions/mkostemp.texi: Mention the new module.
18090         * NEWS: Mention the change.
18091
18092 2009-08-23  Bruno Haible  <bruno@clisp.org>
18093
18094         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
18095         Reported by Eric Blake.
18096
18097 2009-08-23  Bruno Haible  <bruno@clisp.org>
18098
18099         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
18100         Reported by Eric Blake.
18101
18102 2009-08-23  Bruno Haible  <bruno@clisp.org>
18103
18104         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
18105         * modules/pipe2 (Depends-on): Likewise.
18106
18107 2009-08-23  Eric Blake  <ebb9@byu.net>
18108
18109         fcntl-h: add O_TTY_INIT support
18110         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
18111         * tests/test-fcntl-h.c (o): Test it.
18112         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18113
18114         fcntl-h: rename from fcntl, in preparation for fcntl(2)
18115         * modules/fcntl: Move <fcntl.h> header replacement...
18116         * modules/fcntl-h: ...to new name, so as not to collide with
18117         like-named function.
18118         * tests/test-fcntl.c: Rename...
18119         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
18120         * modules/fcntl-tests: Rename...
18121         * modules/fcntl-h-tests: ...to this.  Update test file name.
18122         * modules/chdir-long (Depends-on): Update clients.
18123         * modules/chdir-safer (Depends-on): Likewise.
18124         * modules/fcntl-safer (Depends-on): Likewise.
18125         * modules/fts (Depends-on): Likewise.
18126         * modules/mkancesdirs (Depends-on): Likewise.
18127         * modules/mkdir-p (Depends-on): Likewise.
18128         * modules/open (Depends-on): Likewise.
18129         * modules/savewd (Depends-on): Likewise.
18130         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
18131         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
18132
18133 2009-08-22  Bruno Haible  <bruno@clisp.org>
18134
18135         * modules/binary-io (License): Relicense under LGPL.
18136         * modules/pipe2 (License): Likewise.
18137
18138 2009-08-22  Bruno Haible  <bruno@clisp.org>
18139
18140         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
18141         return value.
18142         * lib/pipe-filter-gi.c (filter_init): Likewise.
18143         Reported by Eric Blake.
18144
18145 2009-08-22  Bruno Haible  <bruno@clisp.org>
18146
18147         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
18148         * modules/pipe (Depends-on): Add pipe2.
18149
18150 2009-08-22  Bruno Haible  <bruno@clisp.org>
18151
18152         Tests for module 'pipe2'.
18153         * modules/pipe2-tests: New file.
18154         * tests/test-pipe2.c: New file.
18155
18156         New module 'pipe2'.
18157         * lib/unistd.in.h (pipe2): New declaration.
18158         * lib/pipe2.c: New file.
18159         * m4/pipe2.m4: New file.
18160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
18161         HAVE_PIPE2.
18162         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
18163         * modules/pipe2: New file.
18164         * doc/glibc-functions/pipe2.texi: Mention the new module.
18165
18166 2009-08-22  Bruno Haible  <bruno@clisp.org>
18167
18168         Reference some new glibc functions.
18169         * doc/glibc-functions/accept4.texi: New file.
18170         * doc/glibc-functions/dup3.texi: New file.
18171         * doc/glibc-functions/mkostemp.texi: New file.
18172         * doc/glibc-functions/pipe2.texi: New file.
18173         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
18174         (Glibc sys/socket.h): Refer to accept4.
18175         (Glibc unistd.h): Refer to dup3, pipe2.
18176         Reported by Eric Blake.
18177
18178 2009-08-22  Jim Meyering  <meyering@redhat.com>
18179             Bruno Haible  <bruno@clisp.org>
18180
18181         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
18182         This makes it so packages using automake-1.11's silent-rules option
18183         can print e.g., a single "GEN    configmake.h" line, rather than
18184         the 30+ statements that perform the job.  If you want to see the
18185         actual commands, you can still run "make V=1".
18186         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
18187         so that make output is abbreviated when those variables are defined
18188         appropriately.
18189         * modules/argz: Likewise.
18190         * modules/arpa_inet: Likewise.
18191         * modules/byteswap: Likewise.
18192         * modules/configmake: Likewise.
18193         * modules/dirent: Likewise.
18194         * modules/errno: Likewise.
18195         * modules/fcntl: Likewise.
18196         * modules/float: Likewise.
18197         * modules/fnmatch: Likewise.
18198         * modules/getopt-posix: Likewise.
18199         * modules/glob: Likewise.
18200         * modules/iconv_open: Likewise.
18201         * modules/inttypes: Likewise.
18202         * modules/localcharset: Likewise.
18203         * modules/locale: Likewise.
18204         * modules/math: Likewise.
18205         * modules/netdb: Likewise.
18206         * modules/netinet_in: Likewise.
18207         * modules/poll: Likewise.
18208         * modules/posix_spawnp-tests: Likewise.
18209         * modules/sched: Likewise.
18210         * modules/search: Likewise.
18211         * modules/selinux-h: Likewise.
18212         * modules/signal: Likewise.
18213         * modules/spawn: Likewise.
18214         * modules/stdarg: Likewise.
18215         * modules/stdbool: Likewise.
18216         * modules/stddef: Likewise.
18217         * modules/stdint: Likewise.
18218         * modules/stdio: Likewise.
18219         * modules/stdlib: Likewise.
18220         * modules/string: Likewise.
18221         * modules/strings: Likewise.
18222         * modules/sys_file: Likewise.
18223         * modules/sys_ioctl: Likewise.
18224         * modules/sys_select: Likewise.
18225         * modules/sys_socket: Likewise.
18226         * modules/sys_stat: Likewise.
18227         * modules/sys_time: Likewise.
18228         * modules/sys_times: Likewise.
18229         * modules/sys_utsname: Likewise.
18230         * modules/sys_wait: Likewise.
18231         * modules/sysexits: Likewise.
18232         * modules/time: Likewise.
18233         * modules/unistd: Likewise.
18234         * modules/wchar: Likewise.
18235         * modules/wctype: Likewise.
18236
18237 2009-08-22  Jim Meyering  <meyering@redhat.com>
18238
18239         announce-gen: detect write failure
18240         * build-aux/announce-gen: Add Coda at end.
18241         Remove equivalent-but-more-verbose block at top.
18242
18243 2009-08-19  Akim Demaille  <demaille@gostai.com>
18244
18245         bootstrap: --help to stdout.
18246         * bootstrap (usage): Don't send --help to stderr.
18247         Use a here doc instead of a long string.
18248
18249 2009-08-21  Eric Blake  <ebb9@byu.net>
18250
18251         test-popen-safer: split from test-popen
18252         * tests/test-popen.c (main): Move...
18253         * tests/test-popen.h: ...into new file.
18254         * tests/test-popen-safer2.c: New file.
18255         * modules/popen-tests (Files): Add test-popen.h.
18256         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
18257         Suggested by Bruno Haible.
18258
18259         test-fcntl-safer: split from test-open
18260         * tests/test-open.c (main): Move...
18261         * tests/test-open.h: ...into new file.
18262         * tests/test-fcntl-safer.c: New file.
18263         * modules/open-tests (Files): Add test-open.h.
18264         * modules/fcntl-safer-tests: New file.
18265         Suggested by Bruno Haible.
18266
18267         test-fopen-safer: split from test-fopen
18268         * tests/test-fopen.c (main): Move...
18269         * tests/test-fopen.h: ...into new file.
18270         * tests/test-fopen-safer.c: New file.
18271         * modules/fopen-tests (Files): Add test-fopen.h.
18272         * modules/fopen-safer-tests: New file.
18273         Suggested by Bruno Haible.
18274
18275 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18276
18277         popen-safer: test O_CLOEXEC at run-time.
18278         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
18279
18280 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
18281
18282         fcntl: move more flags to the header
18283         * lib/cloexec.c: Do not define FD_CLOEXEC here.
18284         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
18285         * lib/fcntl.in.h: Do both things here.
18286
18287 2009-08-21  Jim Meyering  <meyering@redhat.com>
18288
18289         consistently remove $@-t before redirecting to it
18290         * modules/argz: Remove $@-t and $@ before redirecting to the former.
18291         * modules/alloca-opt: Likewise.
18292         * modules/byteswap: Likewise.
18293         * modules/fnmatch: Likewise.
18294         * modules/getopt-posix: Likewise.
18295         * modules/glob: Likewise.
18296         * modules/poll: Likewise.
18297         * modules/posix_spawnp-tests: Likewise.
18298         * modules/sys_socket: Likewise.
18299         * modules/sysexits: Likewise.
18300
18301 2009-08-21  Eric Blake  <ebb9@byu.net>
18302
18303         popen: simplify access to original popen
18304         * lib/popen.c (rpl_popen): No need to worry about popen being a
18305         macro.
18306         Reported by Bruno Haible.
18307
18308 2009-08-20  Eric Blake  <ebb9@byu.net>
18309
18310         build: avoid some compiler warnings
18311         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
18312         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
18313         type.
18314         (new_exclude_segment, excluded_file_pattern_p)
18315         (excluded_file_name_p): Reduce scope.
18316         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
18317         old-style declaration.
18318
18319 2009-08-20  Simon Josefsson  <simon@josefsson.org>
18320
18321         * tests/test-exclude1.sh: Handle Windows EOL.
18322         * tests/test-exclude2.sh: Likewise.
18323         * tests/test-exclude3.sh: Likewise.
18324         * tests/test-exclude4.sh: Likewise.
18325         * tests/test-exclude5.sh: Likewise.
18326         * tests/test-exclude6.sh: Likewise.
18327         * tests/test-exclude7.sh: Likewise.
18328
18329 2009-08-19  Akim Demaille  <demaille@gostai.com>
18330
18331         bootstrap: find sha1sum when named gsha1sum.
18332         * bootstrap (find_tool): New.
18333         ($SHA1SUM): New.
18334         Use it.
18335
18336 2009-08-20  Jim Meyering  <meyering@redhat.com>
18337
18338         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
18339         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
18340         expression that converts "." in a file name to "\." in the resulting
18341         regexp.  Start with a dummy statement, so that prior shell variable
18342         definitions are expanded portably.  Reported by Simon Josefsson.
18343
18344 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
18345
18346         Fix polling for writeability of a screen buffer.
18347         * lib/poll.c: Distinguish input and screen buffers for the
18348         Win32 implementation.
18349         * lib/select.c: Likewise.
18350
18351 2009-08-19  Eric Blake  <ebb9@byu.net>
18352
18353         popen-safer: prevent popen from clobbering std descriptors
18354         * modules/popen-safer: New file.
18355         * lib/popen-safer.c: Likewise.
18356         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
18357         * lib/stdio--.h (popen): Provide override.
18358         * lib/stdio-safer.h (popen_safer): Provide declaration.
18359         * tests/test-popen.c (includes): Partially test this.
18360         * modules/popen-safer-tests: New file, for more tests.
18361         * tests/test-popen-safer.c: Likewise.
18362         * MODULES.html.sh (file stream based Input/Output): Mention it.
18363
18364         tests: test some of the *-safer modules
18365         * modules/fopen-safer (Depends-on): Add fopen.
18366         * modules/fcntl-safer (Depends-on): Add fcntl.
18367         * modules/stdlib-safer (Depends-on): Add stdlib.
18368         (configure.ac): Set indicator.
18369         * modules/unistd-safer (configure.ac): Likewise.
18370         * modules/tmpfile-safer (configure.ac): Likewise.
18371         (Depends-on): Add tmpfile.
18372         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
18373         active.
18374         * tests/test-fopen.c (includes): Test safer versions when they are
18375         in use.
18376         * tests/test-open.c (includes): Likewise.
18377
18378         popen: fix cygwin 1.5 bug when stdin closed
18379         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
18380         * modules/popen: New file.
18381         * modules/popen-tests: Likewise.
18382         * tests/test-popen.c: Likewise.
18383         * m4/popen.m4: Likewise.
18384         * lib/popen.c: Likewise.
18385         * lib/stdio.in.h (popen): New declaration.
18386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
18387         * modules/stdio (Makefile.am): Likewise.
18388         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
18389
18390 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
18391
18392         maint.mk: give full control over update-copyright exclusions
18393         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
18394         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
18395         (update-copyright): Don't force inclusion of top-level
18396         ChangeLog.  Don't force exclusion of all COPYING files, but make
18397         them the default exclusion instead.
18398
18399 2009-08-16  Bruno Haible  <bruno@clisp.org>
18400
18401         Fix test failures on Solaris 10.
18402         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
18403         tests when Solaris iconv() is used.
18404         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
18405         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
18406         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
18407         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
18408         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
18409
18410 2009-08-16  Bruno Haible  <bruno@clisp.org>
18411
18412         Fix test failures on Solaris 10.
18413         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
18414         'tr' program and pass it as first argument.
18415         * tests/test-pipe-filter-gi1.sh: Likewise.
18416         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
18417         program as first argument.
18418         * tests/test-pipe-filter-gi1.c (main): Likewise.
18419
18420 2009-08-16  Eric Blake  <ebb9@byu.net>
18421
18422         fpurge: fix previous commits
18423         * modules/fpurge (Makefile.am): Make replacement conditional,
18424         partially reverting 2007-04-29 change; missed in previous
18425         attempt.
18426         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
18427         is missing.
18428
18429 2009-08-16  Bruno Haible  <bruno@clisp.org>
18430
18431         Clarify fpurge's effect on the file position.
18432         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
18433         * tests/test-fpurge.c (main): Make a second pass for checking the file
18434         position.
18435
18436 2009-08-16  Bruno Haible  <bruno@clisp.org>
18437
18438         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
18439         declaration of fpurge is missing.
18440         * tests/test-fpurge.c (main): Check that the file has not more contents
18441         than expected. Close the file before removing it.
18442
18443 2009-08-15  Eric Blake  <ebb9@byu.net>
18444
18445         fpurge: don't wrap working cygwin implementation
18446         * lib/fpurge.c (fpurge): Fix comment typo.
18447         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
18448         1.7 to avoid replacement.
18449         * tests/test-fpurge.c (main): Enhance test.
18450
18451 2009-08-15  Eric Blake  <ebb9@byu.net>
18452         and Jim Meyering  <meyering@redhat.com>
18453
18454         test-update-copyright: skip if perl is insufficient
18455         * tests/test-update-copyright.sh: Failure to run maintainer tool
18456         should not cause testsuite failure on cygwin 1.5.
18457
18458 2009-08-14  Eric Blake  <ebb9@byu.net>
18459
18460         doc: mention more functions added in cygwin 1.7.0
18461         * doc/posix-headers/limits.texi (limits.h): Update for recent
18462         cygwin additions.
18463         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
18464         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18465         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
18466         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
18467         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
18468
18469 2009-08-14  Eric Blake  <ebb9@byu.net>
18470
18471         maint.mk: simplify update-copyright rule
18472         * top/maint.mk (update-copyright-local): Delete, and document how
18473         to do it in cfg.mk instead.
18474         (update-copyright-exclude-regexp): Delete, and document how to do
18475         it in .x-update-copyright instead.
18476         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
18477         exclude ChangeLog.
18478
18479 2009-08-14  Bruno Haible  <bruno@clisp.org>
18480
18481         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
18482
18483 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18484
18485         maint.mk: support update-copyright-env
18486         * top/maint.mk (update-copyright-env): Define place-holder.
18487         (update-copyright): Expand $(update-copyright-env) before
18488         invoking update-copyright.
18489
18490 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18491
18492         update-copyright: implement forced reformatting
18493         * build-aux/update-copyright: Implement and document
18494         UPDATE_COPYRIGHT_FORCE.
18495         * tests/test-update-copyright.sh: Test it.
18496
18497 2009-08-14  Eric Blake  <ebb9@byu.net>
18498         and Bruno Haible  <bruno@clisp.org>
18499
18500         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
18501         * tests/test-locale.c: Revert previous patch related to NULL.
18502         * tests/test-stdio.c: Likewise.
18503         * tests/test-stdlib.c: Likewise.
18504         * tests/test-string.c: Likewise.
18505         * tests/test-unistd.c: Likewise.
18506         * modules/time-tests (Depends-on): Add verify.
18507         * modules/wchar-tests (Depends-on): Likewise.
18508         * tests/test-time.c: Test for NULL compliance.
18509         * tests/test-wchar.c: Likewise.
18510         * modules/locale (Depends-on): Add stddef.
18511         * modules/stdio (Depends-on): Likewise.
18512         * modules/stdlib (Depends-on): Likewise.
18513         * modules/string (Depends-on): Likewise.
18514         * modules/time (Depends-on): Likewise.
18515         * modules/unistd (Depends-on): Likewise.
18516         * modules/wchar (Depends-on): Likewise.
18517         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
18518         * lib/stdlib.in.h (includes): Likewise.
18519         * lib/string.in.h (includes): Likewise.
18520         * lib/time.in.h (includes): Likewise.
18521         * lib/unistd.in.h (includes): Likewise.
18522         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
18523         replaced.
18524         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18525         * m4/stddef_h.m4: New file.
18526         * modules/stddef: Likewise.
18527         * lib/stddef.in.h: Likewise.
18528         * modules/stddef-tests: Likewise.
18529         * tests/test-stddef.c: Likewise.
18530         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
18531         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
18532         * doc/posix-headers/locale.texi (locale.h): Likewise.
18533         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
18534         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
18535         * doc/posix-headers/string.texi (string.h): Likewise.
18536         * doc/posix-headers/time.texi (time.h): Likewise.
18537         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
18538         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
18539
18540 2009-08-14  Eric Blake  <ebb9@byu.net>
18541
18542         doc: improve git diff of texinfo files
18543         * .gitattributes: Add rule for *.texi files, with hint on how to
18544         use it.
18545         Copied from m4, and based on a report by Bruno Haible.
18546
18547 2009-08-14  Bruno Haible  <bruno@clisp.org>
18548
18549         Disable multithread support by default on Cygwin 1.5.x for real.
18550         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
18551
18552 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
18553
18554         update-copyright: much ado about intervals
18555         * build-aux/update-copyright: Implement and document
18556         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
18557         of copyright year intervals.
18558         Also, document UPDATE_COPYRIGHT_YEAR.
18559         * tests/test-update-copyright.sh: Test it.
18560
18561         update-copyright: convert 2-digit to 4-digit years
18562         * build-aux/update-copyright: Implement and document.
18563         * tests/test-update-copyright.sh: Update.
18564
18565 2009-08-14  Jim Meyering  <meyering@redhat.com>
18566
18567         test-exclude: avoid coreutils "make check" failure
18568         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
18569         just as in test-argmatch.c.
18570
18571 2009-08-13  Eric Blake  <ebb9@byu.net>
18572
18573         test-dup2: fix bad assumption
18574         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
18575         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
18576
18577         test-version-etc: fix CRLF portability issue
18578         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
18579         recognize \r.
18580         * tests/test-argp-version-etc-1.sh: Likewise.
18581
18582         getopt: update client modules
18583         * modules/argp (Depends-on): Use getopt-gnu.
18584         * modules/git-merge-changelog (Depends-on): Likewise.
18585         * modules/long-options (Depends-on): Likewise.
18586         * modules/xstrtol (Depends-on): Likewise.
18587
18588 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18589
18590         * tests/test-version-etc.sh: Don't fail on different
18591         project/version.  Don't fail on CRLF differences.  Rewrite to use
18592         multiple -e instead of multiple sed forks, suggested by Eric Blake
18593         <ebb9@byu.net>.
18594         * tests/test-argp-version-etc-1.sh: Likewise.
18595
18596 2009-08-13  Simon Josefsson  <simon@josefsson.org>
18597
18598         * tests/test-version-etc.sh: Don't fail on different
18599         project/version.
18600
18601 2009-08-12  Bruno Haible  <bruno@clisp.org>
18602
18603         Tests for modules 'getopt-posix', 'getopt-gnu'.
18604         * modules/getopt-posix-tests: New file.
18605         * tests/test-getopt.c: New file.
18606         * tests/test-getopt.h: New file.
18607         * tests/test-getopt_long.h: New file.
18608
18609         New modules 'getopt-posix', 'getopt-gnu'.
18610         * modules/getopt-gnu: New file, renamed from modules/getopt.
18611         * modules/getopt-posix: New file.
18612         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
18613         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
18614         (gl_GETOPT): Remove macro.
18615         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
18616         Disable the test against BSD systems that declare optreset. Test
18617         against mingw bug. Test against lack of support of optional arguments
18618         on many platforms.
18619         * doc/glibc-headers/getopt.texi: Update module name and list of
18620         relevant platforms.
18621         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
18622         'getopt-gnu' and more portability problems.
18623         * NEWS: Mention the changes.
18624
18625 2009-08-12  Bruno Haible  <bruno@clisp.org>
18626
18627         Ensure that optarg etc. get declared by <unistd.h>.
18628         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
18629         AC_USE_SYSTEM_EXTENSIONS.
18630         * modules/getopt (Depends-on): Add 'extensions'.
18631
18632 2009-08-12  Bruno Haible  <bruno@clisp.org>
18633
18634         Avoid test link errors.
18635         * modules/pipe-filter-ii-tests (Makefile.am): Define
18636         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
18637         * modules/pipe-filter-gi-tests (Makefile.am): Define
18638         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
18639         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18640
18641 2009-08-12  Bruno Haible  <bruno@clisp.org>
18642
18643         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
18644         gl_GETOPT_SUBSTITUTE before.
18645         (gl_GETOPT): Use it.
18646         * m4/argp.m4 (gl_ARGP): Update.
18647         Reported by Sergey Poznyakoff.
18648
18649         * m4/getopt.m4: Reorder macros.
18650         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
18651         (gl_GETOPT_SUBSTITUTE): Remove macro.
18652
18653 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18654
18655         Minor improvement in gitlog-to-changelog
18656
18657         * build-aux/gitlog-to-changelog: New option `--format' makes
18658         output format string configurable.
18659
18660 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
18661
18662         Optimize exclude: use hash tables for non-wildcard patterns.
18663
18664         * lib/exclude.c: Include hash.h and mbuiter.h
18665         (struct exclude_pattern, exclude_segment): New data types.
18666         (struct exclude): Rewrite.
18667         (fnmatch_pattern_has_wildcards): New function.
18668         (new_exclude_segment, free_exclude_segment): New functions.
18669         (excluded_file_pattern_p, excluded_file_name_p): New functions.
18670         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
18671         * lib/exclude.h (is_fnmatch_pattern): New prototype.
18672         * modules/exclude: Depend on hash and mbuiter.
18673
18674         * modules/exclude-tests: New file.
18675         * tests/test-exclude.c: New file.
18676         * tests/test-exclude1.sh: New file.
18677         * tests/test-exclude2.sh: New file.
18678         * tests/test-exclude3.sh: New file.
18679         * tests/test-exclude4.sh: New file.
18680         * tests/test-exclude5.sh: New file.
18681         * tests/test-exclude6.sh: New file.
18682         * tests/test-exclude7.sh: New file.
18683
18684 2009-08-12  Bruno Haible  <bruno@clisp.org>
18685
18686         Ensure that getopt() gets declared by <unistd.h>.
18687         * lib/unistd.in.h: Conditionally include getopt.h.
18688         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
18689         Set GNULIB_UNISTD_H_GETOPT.
18690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18691         GNULIB_UNISTD_H_GETOPT.
18692         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
18693
18694 2009-08-12  Bruno Haible  <bruno@clisp.org>
18695
18696         Clarify logic.
18697         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
18698         gl_replace_getopt instead of GETOPT_H.
18699
18700 2009-08-12  Bruno Haible  <bruno@clisp.org>
18701
18702         * m4/getopt.m4: Add comments.
18703
18704 2009-08-12  Bruno Haible  <bruno@clisp.org>
18705
18706         Disable multithread support by default on Cygwin 1.5.x.
18707         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
18708         set gl_use_threads=no if not specified otherwise.
18709
18710 2009-08-11  Bruno Haible  <bruno@clisp.org>
18711
18712         Avoid compilation error on NetBSD 5.0.
18713         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
18714         * tests/test-stdio.c: Likewise.
18715         * tests/test-stdlib.c: Likewise.
18716         * tests/test-string.c: Likewise.
18717         * tests/test-unistd.c: Likewise.
18718         Reported by Greg Troxel <gdt@ir.bbn.com>
18719         at <https://savannah.gnu.org/support/?106973>.
18720
18721 2009-08-11  Bruno Haible  <bruno@clisp.org>
18722
18723         * modules/dup2-tests (Depends-on): Remove close.
18724
18725         Undo 2009-07-19 commit.
18726         * modules/acl-tests (Depends-on): Remove close.
18727         * modules/binary-io-tests (Depends-on): Likewise.
18728         * modules/closein-tests (Depends-on): Likewise.
18729         * modules/flock-tests (Depends-on): Likewise.
18730         * modules/fsync-tests (Depends-on): Likewise.
18731         * modules/lseek-tests (Depends-on): Likewise.
18732         * modules/pipe-tests (Depends-on): Likewise.
18733         * modules/posix_spawn-tests (Depends-on): Likewise.
18734         * modules/posix_spawnp-tests (Depends-on): Likewise.
18735         * modules/stat-time-tests (Depends-on): Likewise.
18736         * modules/yesno-tests (Depends-on): Likewise.
18737
18738 2009-08-10  Bruno Haible  <bruno@clisp.org>
18739
18740         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
18741
18742 2009-08-10  Bruno Haible  <bruno@clisp.org>
18743
18744         Fix a gcc warning.
18745         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
18746
18747 2009-08-10  Bruno Haible  <bruno@clisp.org>
18748
18749         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
18750         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
18751         not only the first time.
18752         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
18753         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
18754         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
18755         is 1, not only the the first time.
18756
18757 2009-08-10  Bruno Haible  <bruno@clisp.org>
18758
18759         Make it possible to use module 'gethostname' without module 'close'.
18760         * lib/unistd.in.h (close): Evoke a link error only if
18761         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18763         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18764         * modules/unistd (Makefile.am): Substitute
18765         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18766         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
18767         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18768         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18769         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18770         * modules/sys_ioctl (Makefile.am): Substitute
18771         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18772         * modules/socket (configure.ac): On native Windows, set
18773         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
18774         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18775         Reported by Sam Steingold <sds@gnu.org>.
18776
18777 2009-08-10  Bruno Haible  <bruno@clisp.org>
18778
18779         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
18780         * modules/ioctl (configure.ac): Likewise.
18781
18782 2009-08-10  Bruno Haible  <bruno@clisp.org>
18783
18784         Avoid collision between gnulib wrapper and libintl wrapper.
18785         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
18786         already defined in intl/printf.c.
18787         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
18788         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
18789
18790 2009-08-09  Bruno Haible  <bruno@clisp.org>
18791
18792         Make <sys/select.h> really self-contained, also on Solaris 10.
18793         * lib/sys_select.in.h: Include <string.h>.
18794         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
18795         Solaris 10 problem.
18796         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
18797         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
18798         Reported by Jim Meyering.
18799
18800 2009-08-09  Bruno Haible  <bruno@clisp.org>
18801
18802         Avoid warnings from 'aclocal' that are due to a use of macro name
18803         AM_XGETTEXT_OPTION that is not defined in automake.
18804         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
18805         automake.
18806         * modules/error (configure.ac): Likewise.
18807         * modules/propername (configure.ac): Likewise.
18808         * modules/vasprintf (configure.ac): Likewise.
18809         * modules/verror (configure.ac): Likewise.
18810         * modules/xprintf (configure.ac): Likewise.
18811         * modules/xvasprintf (configure.ac): Likewise.
18812
18813 2009-08-08  Bruno Haible  <bruno@clisp.org>
18814
18815         Avoid compilation error in C++ mode.
18816         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
18817         Reported by Sam Steingold <sds@gnu.org>.
18818
18819 2009-08-08  Bruno Haible  <bruno@clisp.org>
18820
18821         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
18822         for the various Unix platforms.
18823         * doc/posix-headers/limits.texi: Update platforms list regarding
18824         HOST_NAME_MAX.
18825         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18826
18827 2009-08-07  Jim Meyering  <meyering@redhat.com>
18828
18829         selinux-at: fix typo in a comment
18830         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
18831         Spotted by Paolo Bonzini.
18832
18833         selinux-at: remove redundant m4 code, add documentation
18834         * modules/selinux-at (configure.ac): Remove redundant code.
18835         LIB_SELINUX is already set via the dependent module, selinux-h.
18836         (Include): Add quotes around selinux-at.h.
18837         * lib/selinux-at.h: Add documentation.
18838         Reported by Bruno Haible in
18839         http://marc.info/?l=gnulib-bug&m=124958988300749
18840
18841 2009-08-07  Bruno Haible  <bruno@clisp.org>
18842
18843         Avoid link error on MacOS X 10.3 and 10.4.
18844         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
18845         on non-ELF systems.
18846         * lib/argp-pv.c (argp_program_version): Likewise.
18847         Reported by Simon Josefsson.
18848
18849 2009-08-07  Simon Josefsson  <simon@josefsson.org>
18850
18851         * tests/test-version-etc.sh: Use $EXEEXT.
18852
18853 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
18854
18855         update-copyright: update documentation to point to maint.mk
18856         * build-aux/update-copyright: Here.
18857
18858 2009-08-06  Jim Meyering  <meyering@redhat.com>
18859
18860         maint.mk: support update-copyright-local
18861         * top/maint.mk (update-copyright-local): Define place-holder.
18862         (update-copyright): Depend on $(update-copyright-local).
18863
18864 2009-08-06  Jim Meyering  <meyering@redhat.com>
18865
18866         selinux-at: new module
18867         Initially written for coreutils, this module will soon be
18868         used by findutils, too.
18869         * MODULES.html.sh [Misc]: Add selinux-at.
18870         * lib/selinux-at.h: New file, from coreutils.
18871         * lib/selinux-at.c: Likewise.
18872         * modules/selinux-at: Likewise.
18873         (License): Change from LGPL to GPL, since it depends
18874         on the GPL'd openat module.
18875
18876         doc: update README
18877         * README: Remove references to cogito.
18878         Remove cvs-repo-updating instructions from 2007.
18879         Don't imply that CVS is better if you have limited disk space.
18880
18881 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18882
18883         update-copyright: support C-style comments
18884         * build-aux/update-copyright: Implement and document.
18885         * tests/test-update-copyright.sh: Test.
18886
18887 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18888
18889         update-copyright: support omitted "(C)"
18890         * build-aux/update-copyright: Implement and document.  Also,
18891         allow variable whitespace before "(C)".
18892         * tests/test-update-copyright.sh: Test.
18893
18894 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18895
18896         update-copyright: don't trip on non-FSF copyright statements
18897         * build-aux/update-copyright: Fix so that the first correctly
18898         formatted FSF copyright statement is recognized no matter what
18899         appears before it.  Update documentation.
18900         * tests/test-update-copyright.sh: Test that.
18901
18902 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18903
18904         update-copyright: clean up code a little
18905         * build-aux/update-copyright: Append "_re" to the name of any
18906         variable holding a regular expression.
18907         Replace "old" and "new" with "stmt" in variable names.
18908         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
18909         handled correctly.
18910         Format code more consistently.
18911
18912 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18913
18914         update-copyright-tests: improve portability
18915         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
18916         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
18917
18918 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
18919
18920         update-copyright: support @copyright{} and &copy;
18921         * build-aux/update-copyright: Implement and document.
18922         * tests/test-update-copyright.sh: Test.
18923
18924 2009-08-04  Jim Meyering  <meyering@redhat.com>
18925
18926         update-copyright-tests: correctly test EOL=\r\n handling
18927         * tests/test-update-copyright.sh: Put \r at the end of some lines
18928         for the dos-eol tests.  Based on a patch by Joel E. Denny.
18929
18930         maint.mk: make update-copyright exclusion list more configurable
18931         * top/maint.mk (update-copyright): Default to excluding COPYING,
18932         but allow an override, in case someone does want to update that file.
18933
18934         maint.mk: don't update copyright date in COPYING
18935         * top/maint.mk (update-copyright): Exclude COPYING.
18936
18937         maint.mk: add a copyright-updating rule
18938         * top/maint.mk (update-copyright): New rule.
18939         Derived from coreutils/Makefile.am.
18940
18941         update-copyright: rename some variables
18942         * build-aux/update-copyright: Rename a few variables for clarity.
18943         Tweak syntax.  List Joel E. Denny as coauthor.
18944
18945 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
18946
18947         update-copyright: fix bug for 2-digit last year and add tests
18948         * build-aux/update-copyright: Fix bug.
18949         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
18950         specified.
18951         * modules/update-copyright-tests: New
18952         * tests/test-update-copyright.sh: New.
18953
18954 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18955
18956         update-copyright: handle leading tabs in line prefix
18957         * build-aux/update-copyright: Count leading tabs as 8 spaces
18958         when computing margin.  This helps with the formatting of
18959         ChangeLogs, for example.
18960         Fix documentation a little.
18961
18962 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18963
18964         update-copyright: support EOL=\r\n
18965         * build-aux/update-copyright: Implement that.
18966
18967 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18968
18969         update-copyright: automatically format copyright statements
18970         * build-aux/update-copyright: Implement that.
18971         Also, be a little more predictable and safer by always failing
18972         when the full copyright format is not perfectly recognized as an
18973         unbroken whole.  Discussed at
18974         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
18975         Rewrite documentation.
18976
18977 2009-08-03  Bruno Haible  <bruno@clisp.org>
18978
18979         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
18980
18981 2009-08-02  Bruno Haible  <bruno@clisp.org>
18982
18983         Tests for module 'uname'.
18984         * modules/uname-tests: New file.
18985         * tests/test-uname.c: New file.
18986
18987         New module 'uname'.
18988         * lib/uname.c: New file.
18989         * m4/uname.m4: New file.
18990         * modules/uname: New file.
18991         * doc/posix-functions/uname.texi: Mention the new module.
18992
18993 2009-08-02  Bruno Haible  <bruno@clisp.org>
18994
18995         Tests for module 'sys_utsname'.
18996         * modules/sys_utsname-tests: New file.
18997         * tests/test-sys_utsname.c: New file.
18998
18999         New module 'sys_utsname'.
19000         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
19001         * m4/sys_utsname_h.m4: New file.
19002         * modules/sys_utsname: New file.
19003         * doc/posix-headers/sys_utsname.texi: Mention the new module.
19004
19005 2009-08-02  Bruno Haible  <bruno@clisp.org>
19006
19007         Implicitly initialize the sockets library.
19008         * lib/gethostname.c: Include sockets.h.
19009         (rpl_gethostname): Invoke gl_sockets_startup.
19010         * lib/socket.c: Include sockets.h.
19011         (rpl_socket): Invoke gl_sockets_startup.
19012         * modules/gethostname (Depends-on): Add sockets.
19013         * modules/socket (Depends-on): Likewise.
19014         * tests/test-poll.c: Don't include sockets.h.
19015         (main): Don't invoke gl_sockets_startup.
19016         * tests/test-select.c: Don't include sockets.h.
19017         (main): Don't invoke gl_sockets_startup.
19018
19019 2009-08-02  Bruno Haible  <bruno@clisp.org>
19020
19021         Allow multiple calls to gl_sockets_startup.
19022         * lib/sockets.c (initialized_sockets_version): New variable.
19023         (gl_sockets_startup): Do nothing if already called for this or a higher
19024         version.
19025         (gl_sockets_cleanup): Reset initialized_sockets_version.
19026
19027 2009-08-03  Simon Josefsson  <simon@josefsson.org>
19028
19029         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
19030         different project/version.
19031
19032 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
19033             Bruno Haible  <bruno@clisp.org>
19034
19035         Tests for module 'pipe-filter-gi'.
19036         * modules/pipe-filter-gi-tests: New file.
19037         * tests/test-pipe-filter-gi1.sh: New file.
19038         * tests/test-pipe-filter-gi1.c: New file.
19039         * tests/test-pipe-filter-gi2.sh: New file.
19040         * tests/test-pipe-filter-gi2-main.c: New file.
19041         * tests/test-pipe-filter-gi2-child.c: New file.
19042
19043         New module 'pipe-filter-gi'.
19044         * lib/pipe-filter-gi.c: New file.
19045         * modules/pipe-filter-gi: New file.
19046
19047 2009-08-02  Bruno Haible  <bruno@clisp.org>
19048             Paolo Bonzini  <bonzini@gnu.org>
19049
19050         Tests for module 'pipe-filter-ii'.
19051         * modules/pipe-filter-ii-tests: New file.
19052         * tests/test-pipe-filter-ii1.sh: New file.
19053         * tests/test-pipe-filter-ii1.c: New file.
19054         * tests/test-pipe-filter-ii2.sh: New file.
19055         * tests/test-pipe-filter-ii2-main.c: New file.
19056         * tests/test-pipe-filter-ii2-child.c: New file.
19057
19058         New module 'pipe-filter-ii'.
19059         * lib/pipe-filter.h: New file.
19060         * lib/pipe-filter-ii.c: New file.
19061         * lib/pipe-filter-aux.h: New file.
19062         * modules/pipe-filter-ii: New file.
19063
19064 2009-08-02  Simon Josefsson  <simon@josefsson.org>
19065
19066         * lib/gc-libgcrypt.c: Change copyright to FSF.
19067         * lib/gc-gnulib.c: Likewise.
19068
19069 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
19070
19071         * lib/gethostname.c: Include limits.h.
19072
19073 2009-08-02  Simon Josefsson  <simon@josefsson.org>
19074             Bruno Haible  <bruno@clisp.org>
19075
19076         Ensure HOST_NAME_MAX as part of the gethostname module.
19077         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
19078         define also HOST_NAME_MAX.
19079         * tests/test-gethostname.c: Include <limits.h>.
19080         (main): Check also HOST_NAME_MAX.
19081         * doc/posix-headers/limits.texi: Document the mingw problem.
19082
19083 2009-08-02  Bruno Haible  <bruno@clisp.org>
19084
19085         * lib/gethostname.c (gethostname): Fix handling of large len argument.
19086         Add comments.
19087
19088 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19089
19090         * lib/gethostname.c: Add Windows wrapper.
19091         * m4/gethostname.m4: Look for gethostname in -lws2_32.
19092         * modules/gethostname: Depend on sys_socket & errno, for also
19093         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
19094         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
19095
19096 2009-07-31  Jim Meyering  <meyering@redhat.com>
19097
19098         getloadavg: fix symbol name in comment
19099         * lib/getloadavg.c: Correct a typo I introduced when adding
19100         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
19101         Matt Kraai spotted the problem.
19102
19103 2009-07-29  Matt Kraai  <mkraai@beckman.com>
19104
19105         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
19106         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
19107         code also if ! defined N_NAME_POINTER.
19108         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
19109         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
19110         but the n_name member is a 12-byte array.
19111
19112 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
19113
19114         update-copyright: generalize comment handling
19115         * build-aux/update-copyright: Handle copyright statements
19116         within more comment styles.
19117         Document usage.
19118         Report any file with an external copyright holder or parse failure.
19119
19120 2009-07-29  Jim Meyering  <meyering@redhat.com>
19121
19122         mktime: correct setting of REPLACE_MKTIME
19123         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
19124
19125         update-copyright: new module
19126         * modules/update-copyright: New file.
19127         * build-aux/update-copyright: New file.
19128         * MODULES.html.sh (maint+release support): Add update-copyright.
19129
19130 2009-07-27  Bruno Haible  <bruno@clisp.org>
19131
19132         Fix compilation error when <ctime> is used and mktime is replaced.
19133         * lib/time.in.h (mktime): New declaration.
19134         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
19135         REPLACE_MKTIME instead of defining mktime in config.h.
19136         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
19137         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
19138         Reported by Ross McFarland <rwmcfa1@neces.com>.
19139
19140 2009-07-27  Bruno Haible  <bruno@clisp.org>
19141
19142         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
19143         Reported by Matt Kraai <mkraai@beckman.com>.
19144
19145 2009-07-25  Jim Meyering  <meyering@redhat.com>
19146
19147         maint.mk: avoid warnings about missing files
19148         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
19149         diagnostic when .prev-version does not exist.
19150         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
19151         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
19152         nonexistent cfg.mk.
19153         Suggestions from Simon Josefsson.
19154
19155 2009-07-25  Bruno Haible  <bruno@clisp.org>
19156
19157         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
19158         defined as macros. Needed on QNX 6.4.1.
19159         Reported by Matt Kraai <mkraai@beckman.com>.
19160
19161 2009-07-23  Jim Meyering  <meyering@redhat.com>
19162
19163         maint.mk: invoke "make dist" with a working value of XZ_OPT
19164         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
19165
19166 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
19167
19168         Make fseeko.c compile on QNX.
19169         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
19170
19171 2009-07-22  Peter Simons  <simons@cryp.to>
19172
19173         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
19174         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
19175         * lib/md4.h: Likewise.
19176         * lib/md5.h: Likewise.
19177         * lib/sha1.h: Likewise.
19178         * lib/sha256.h: Likewise.
19179         * lib/sha512.h: Likewise.
19180
19181         tests-sha1: don't assign literal string to 'char *' variable
19182         * tests/test-sha1.c (main): Declare locals with "const" to match
19183         attributes of the right hand side.
19184
19185 2009-07-21  Eric Blake  <ebb9@byu.net>
19186
19187         dup2: fix more mingw problems
19188         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
19189         fd to itself.
19190         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19191         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
19192         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
19193         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
19194         care of mingw bugs.
19195
19196 2009-07-21  Jim Meyering  <meyering@redhat.com>
19197
19198         vc-list-files: avoid failure when /bin/sh is dash
19199         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
19200         On some Debian based systems, /bin/sh is a symlink to dash, and running
19201         this command would omit the "/" following each 'tests' prefix:
19202           dash -x build-aux/vc-list-files -C . tests
19203         That is because bash and dash work differently:
19204           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
19205           bash ok
19206           dash odd
19207
19208 2009-07-21  Eric Blake  <ebb9@byu.net>
19209
19210         dup2-tests: test previous patch
19211         * modules/dup2-tests: New file.
19212         * tests/test-dup2.c: Likewise.
19213         * tests/test-open.c (main): Avoid unspecified behavior.
19214         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
19215         test.
19216
19217         dup2: work around mingw and cygwin 1.5 bug
19218         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
19219         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
19220         * modules/unistd (Makefile.am): Substitute it.
19221         * lib/unistd.in.h (dup2): Declare the replacement.
19222         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
19223         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
19224         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
19225         * modules/execute (Depends-on): Add dup2.
19226         * modules/fseterr (Depends-on): Likewise.
19227         * modules/pipe (Depends-on): Likewise.
19228         * modules/posix_spawn-internal (Depends-on): Likewise.
19229
19230 2009-07-21  Bruno Haible  <bruno@clisp.org>
19231
19232         * modules/.gitattributes: New file.
19233
19234 2009-07-20  Bruno Haible  <bruno@clisp.org>
19235
19236         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
19237         (main): Use it.
19238
19239 2009-07-20  Eric Blake  <ebb9@byu.net>
19240
19241         test-pipe: make a bit more robust.
19242         * tests/test-pipe.c (myerr): Allow error messages regardless of
19243         what we do to stderr.
19244         (test_pipe): Rearrange to avoid deadlock.
19245         (child_main): Try a larger read, to ensure we avoided deadlock.
19246         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
19247         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
19248         if misused.
19249
19250 2009-07-19  Jim Meyering  <meyering@redhat.com>
19251
19252         fts: avoid false-positive cycle-detection
19253         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
19254         for each new command line argument.
19255
19256 2009-07-19  Bruno Haible  <bruno@clisp.org>
19257
19258         Fix build error on mingw with the modules sys_select and unistd.
19259         * modules/acl-tests (Depends-on): Add close.
19260         * modules/binary-io-tests (Depends-on): Likewise.
19261         * modules/closein-tests (Depends-on): Likewise.
19262         * modules/flock-tests (Depends-on): Likewise.
19263         * modules/fsync-tests (Depends-on): Likewise.
19264         * modules/lseek-tests (Depends-on): Likewise.
19265         * modules/pipe-tests (Depends-on): Likewise.
19266         * modules/posix_spawn-tests (Depends-on): Likewise.
19267         * modules/posix_spawnp-tests (Depends-on): Likewise.
19268         * modules/stat-time-tests (Depends-on): Likewise.
19269         * modules/yesno-tests (Depends-on): Likewise.
19270
19271 2009-07-19  Bruno Haible  <bruno@clisp.org>
19272
19273         Unify conditionals.
19274         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
19275         macros, not at the compiler macros.
19276         * lib/pipe.c: Likewise.
19277         * lib/execute.c: Likewise.
19278         * lib/spawni.c: Likewise.
19279
19280 2009-07-19  Bruno Haible  <bruno@clisp.org>
19281
19282         Fix handling of closed stdin/stdout/stderr on mingw.
19283         * lib/w32spawn.h: Include unistd.h.
19284         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
19285         file descriptor with O_NOINHERIT flag.
19286         (fd_safer_noinherit): New function, based on fd-safer.c.
19287         (dup_safer_noinherit): New function, based on dup-safer.c.
19288         (undup_safer_noinherit): New function.
19289         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
19290         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
19291         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
19292         instead of fd_safer.
19293         * tests/test-pipe.c: Include <windows.h>.
19294         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
19295
19296         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
19297         from main.
19298         (test_pipe): Pass an extra argument for disambiguation.
19299         (main): Invoke parent_main or child_main.
19300
19301         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
19302         consistently.
19303
19304 2009-07-18  Eric Blake  <ebb9@byu.net>
19305
19306         test-pipe: fix mingw build
19307         * tests/test-pipe.c (main): Avoid fcntl on mingw.
19308
19309 2009-07-18  Bruno Haible  <bruno@clisp.org>
19310
19311         * modules/pipe-tests (Makefile.am): Fix typo.
19312
19313 2009-07-18  Eric Blake  <ebb9@byu.net>
19314
19315         error: fix mingw build
19316         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
19317         Reported by Bruno Haible.
19318
19319         error: avoid undefined use of stdout
19320         * lib/error.c (error, error_at_line): Check that fd 1 is open
19321         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
19322         is handling faults and the close_stdout module wants to report the
19323         detection of closed stdout as an error.
19324
19325 2009-07-17  Eric Blake  <ebb9@byu.net>
19326
19327         pipe: be robust in face of closed fds
19328         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
19329         should cause child to misbehave.
19330         * modules/pipe-tests: New module.
19331         * tests/test-pipe.c: New file.
19332         * tests/test-pipe.sh: New file.
19333         Reported by Akim Demaille.
19334
19335 2009-07-14  Bruno Haible  <bruno@clisp.org>
19336
19337         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
19338         Reported by anonymous kc.
19339
19340 2009-07-07  Jim Meyering  <meyering@redhat.com>
19341
19342         maint.mk: don't look for translatable strings in *.m4 or *.mk
19343         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
19344         when searching for translatable strings.
19345
19346 2009-07-05  Jim Meyering  <meyering@redhat.com>
19347
19348         remove superfluous parentheses in STREQ definition
19349         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
19350         * lib/getugroups.c (STREQ): Likewise.
19351         * lib/fnmatch.c (STREQ): Likewise.
19352         Spotted by Bruno Haible.
19353
19354 2009-07-04  Jim Meyering  <meyering@redhat.com>
19355
19356         argv-iter: new module
19357         * MODULES.html.sh: Add argv-iter.
19358         * lib/argv-iter.c, lib/argv-iter.h: New files.
19359         * modules/argv-iter: New file.
19360         * modules/argv-iter-tests: New file.
19361         * tests/test-argv-iter.c: Test it.
19362
19363 2009-07-04  Bruno Haible  <bruno@clisp.org>
19364
19365         Fix assertion.
19366         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
19367         contains more exact copies of a given entry than file2, leave the extra
19368         copies unpaired rather than aborting.
19369         Reported by Eric Blake.
19370
19371 2009-07-02  Bruno Haible  <bruno@clisp.org>
19372
19373         Speedup git-merge-changelog for git cherry-pick.
19374         * lib/git-merge-changelog.c (struct entries_mapping): New type.
19375         (entries_mapping_get): New function, extracted from compute_mapping.
19376         (entries_mapping_reverse_get): New function.
19377         (compute_mapping): Add a 'full' argument. Return the result in a
19378         'struct entries_mapping'.
19379         (main): Update. Access the mappings through entries_mapping_get.
19380         Reported by Eric Blake.
19381
19382 2009-07-02  Bruno Haible  <bruno@clisp.org>
19383
19384         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
19385         best_i.
19386
19387 2009-07-02  Bruno Haible  <bruno@clisp.org>
19388
19389         Speed up approximate search for matching ChangeLog entries.
19390         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
19391         argument. Call fstrcmp_bounded instead of fstrcmp.
19392         (compute_mapping, try_split_merged_entry, main): Update callers.
19393
19394 2009-07-02  Bruno Haible  <bruno@clisp.org>
19395
19396         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
19397
19398 2009-06-30  Bruno Haible  <bruno@clisp.org>
19399
19400         Reduce the number of uc_is_cased calls.
19401         * lib/unicase.h (casing_suffix_context_t): Add
19402         'first_char_except_ignorable' field.
19403         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
19404         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
19405         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
19406         Update initializer.
19407         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
19408         case-ignorable characters.
19409         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
19410         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
19411         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
19412         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
19413         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
19414
19415 2009-06-30  Bruno Haible  <bruno@clisp.org>
19416
19417         Tests for module 'unicase/ignorable'.
19418         * modules/unicase/ignorable-tests: New file.
19419         * tests/unicase/test-ignorable.c: New file, generated by
19420         gen-uni-tables.
19421
19422         Tests for module 'unicase/cased'.
19423         * modules/unicase/cased-tests: New file.
19424         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
19425         * tests/unicase/test-predicate-part1.h: New file, derived from
19426         tests/unictype/test-predicate-part1.h.
19427         * tests/unicase/test-predicate-part2.h: New file, same as
19428         tests/unictype/test-predicate-part2.h.
19429
19430         Fix evaluation of "Before C" condition of FINAL_SIGMA.
19431         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
19432         (output_casing_properties): New function.
19433         (main): Call it.
19434         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
19435         * lib/unicase/cased.c: Include unictype/bitmap.h.
19436         (uc_is_cased): Define through a bitmap lookup.
19437         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
19438         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
19439         (uc_is_case_ignorable): Define through a bitmap lookup.
19440         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
19441         lib/unictype/bitmap.h.
19442         (Depends-on): Add inline. Clean up.
19443         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
19444         lib/unictype/bitmap.h.
19445         (Depends-on): Add inline. Clean up.
19446         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
19447         recognition.
19448         * tests/unicase/test-u16-tolower.c (main): Likewise.
19449         * tests/unicase/test-u32-tolower.c (main): Likewise.
19450
19451 2009-06-30  Bruno Haible  <bruno@clisp.org>
19452
19453         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
19454         * lib/unicase/u16-casemap.c: Likewise.
19455         * lib/unicase/u32-casemap.c: Likewise.
19456
19457 2009-06-29  Bruno Haible  <bruno@clisp.org>
19458
19459         Define u32_casefold as a wrapper around u32_ct_casefold.
19460         * lib/unicase/u32-casefold.c: Update.
19461         * modules/unicase/u32-casefold (Depends-on): Add
19462         unicase/u32-ct-casefold, unicase/empty-prefix-context,
19463         unicase/empty-suffix-context. Clean up.
19464
19465         Define u16_casefold as a wrapper around u16_ct_casefold.
19466         * lib/unicase/u16-casefold.c: Update.
19467         * modules/unicase/u16-casefold (Depends-on): Add
19468         unicase/u16-ct-casefold, unicase/empty-prefix-context,
19469         unicase/empty-suffix-context. Clean up.
19470
19471         Define u8_casefold as a wrapper around u8_ct_casefold.
19472         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
19473         * lib/unicase/u8-casefold.c: Update.
19474         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
19475         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19476
19477         Define u32_totitle as a wrapper around u32_ct_totitle.
19478         * lib/unicase/u32-totitle.c: Update.
19479         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
19480         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19481
19482         Define u16_totitle as a wrapper around u16_ct_totitle.
19483         * lib/unicase/u16-totitle.c: Update.
19484         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
19485         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19486
19487         Define u8_totitle as a wrapper around u8_ct_totitle.
19488         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
19489         functions.
19490         (FUNC): Delegate to U_CT_TOTITLE.
19491         * lib/unicase/u8-totitle.c: Update.
19492         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
19493         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
19494
19495         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
19496         invocation.
19497         * modules/unicase/u32-tolower (Depends-on): Add
19498         unicase/empty-prefix-context, unicase/empty-suffix-context.
19499
19500         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
19501         invocation.
19502         * modules/unicase/u16-tolower (Depends-on): Add
19503         unicase/empty-prefix-context, unicase/empty-suffix-context.
19504
19505         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
19506         * modules/unicase/u8-tolower (Depends-on): Add
19507         unicase/empty-prefix-context, unicase/empty-suffix-context.
19508
19509         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
19510         invocation.
19511         * modules/unicase/u32-toupper (Depends-on): Add
19512         unicase/empty-prefix-context, unicase/empty-suffix-context.
19513
19514         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
19515         invocation.
19516         * modules/unicase/u16-toupper (Depends-on): Add
19517         unicase/empty-prefix-context, unicase/empty-suffix-context.
19518
19519         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
19520         * modules/unicase/u8-toupper (Depends-on): Add
19521         unicase/empty-prefix-context, unicase/empty-suffix-context.
19522
19523         New module 'unicase/u32-ct-casefold'.
19524         * lib/unicase/u32-ct-casefold.c: New file.
19525         * modules/unicase/u32-ct-casefold: New file.
19526
19527         New module 'unicase/u16-ct-casefold'.
19528         * lib/unicase/u16-ct-casefold.c: New file.
19529         * modules/unicase/u16-ct-casefold: New file.
19530
19531         New module 'unicase/u8-ct-casefold'.
19532         * lib/unicase/u8-ct-casefold.c: New file.
19533         * lib/unicase/u-ct-casefold.h: New file, derived from
19534         lib/unicase/u-casefold.h.
19535         * modules/unicase/u8-ct-casefold: New file.
19536
19537         New module 'unicase/u32-ct-totitle'.
19538         * lib/unicase/u32-ct-totitle.c: New file.
19539         * modules/unicase/u32-ct-totitle: New file.
19540
19541         New module 'unicase/u16-ct-totitle'.
19542         * lib/unicase/u16-ct-totitle.c: New file.
19543         * modules/unicase/u16-ct-totitle: New file.
19544
19545         New module 'unicase/u8-ct-totitle'.
19546         * lib/unicase/u8-ct-totitle.c: New file.
19547         * lib/unicase/u-ct-totitle.h: New file, derived from
19548         lib/unicase/u-totitle.h.
19549         * modules/unicase/u8-ct-totitle: New file.
19550
19551         New module 'unicase/u32-ct-tolower'.
19552         * lib/unicase/u32-ct-tolower.c: New file.
19553         * modules/unicase/u32-ct-tolower: New file.
19554
19555         New module 'unicase/u16-ct-tolower'.
19556         * lib/unicase/u16-ct-tolower.c: New file.
19557         * modules/unicase/u16-ct-tolower: New file.
19558
19559         New module 'unicase/u8-ct-tolower'.
19560         * lib/unicase/u8-ct-tolower.c: New file.
19561         * modules/unicase/u8-ct-tolower: New file.
19562
19563         New module 'unicase/u32-ct-toupper'.
19564         * lib/unicase/u32-ct-toupper.c: New file.
19565         * modules/unicase/u32-ct-toupper: New file.
19566
19567         New module 'unicase/u16-ct-toupper'.
19568         * lib/unicase/u16-ct-toupper.c: New file.
19569         * modules/unicase/u16-ct-toupper: New file.
19570
19571         New module 'unicase/u8-ct-toupper'.
19572         * lib/unicase/u8-ct-toupper.c: New file.
19573         * modules/unicase/u8-ct-toupper: New file.
19574
19575         Add context arguments to u*_casemap functions.
19576         * lib/unicase/unicasemap.h: Include unicase.h.
19577         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
19578         suffix_context arguments.
19579         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
19580         functions.
19581         (FUNC): Add prefix_context and suffix_context arguments. Use
19582         uc_is_cased and uc_is_case_ignorable.
19583         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
19584         * lib/unicase/u16-casemap.c: Likewise.
19585         * lib/unicase/u32-casemap.c: Likewise.
19586         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
19587         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19588         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
19589         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19590         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
19591         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
19592
19593         New module 'unicase/u32-suffix-context'.
19594         * lib/unicase/u32-suffix-context.c: New file.
19595         * modules/unicase/u32-suffix-context: New file.
19596
19597         New module 'unicase/u16-suffix-context'.
19598         * lib/unicase/u16-suffix-context.c: New file.
19599         * modules/unicase/u16-suffix-context: New file.
19600
19601         New module 'unicase/u8-suffix-context'.
19602         * lib/unicase/u8-suffix-context.c: New file.
19603         * lib/unicase/u-suffix-context.h: New file.
19604         * modules/unicase/u8-suffix-context: New file.
19605
19606         New module 'unicase/empty-suffix-context'.
19607         * lib/unicase/empty-suffix-context.c: New file.
19608         * modules/unicase/empty-suffix-context: New file.
19609
19610         New module 'unicase/u32-prefix-context'.
19611         * lib/unicase/u32-prefix-context.c: New file.
19612         * modules/unicase/u32-prefix-context: New file.
19613
19614         New module 'unicase/u16-prefix-context'.
19615         * lib/unicase/u16-prefix-context.c: New file.
19616         * modules/unicase/u16-prefix-context: New file.
19617
19618         New module 'unicase/u8-prefix-context'.
19619         * lib/unicase/u8-prefix-context.c: New file.
19620         * lib/unicase/u-prefix-context.h: New file.
19621         * lib/unicase/context.h: New file.
19622         * modules/unicase/u8-prefix-context: New file.
19623
19624         New module 'unicase/empty-prefix-context'.
19625         * lib/unicase/empty-prefix-context.c: New file.
19626         * modules/unicase/empty-prefix-context: New file.
19627
19628         New module 'unicase/ignorable'.
19629         * lib/unicase/ignorable.c: New file.
19630         * modules/unicase/ignorable: New file.
19631
19632         New module 'unicase/cased'.
19633         * lib/unicase/caseprop.h: New file.
19634         * lib/unicase/cased.c: New file.
19635         * modules/unicase/cased: New file.
19636
19637         New functions for case mapping of substrings.
19638         * lib/unicase.h (casing_prefix_context_t): New type.
19639         (unicase_empty_prefix_context): New variable.
19640         (u8_casing_prefix_context, u16_casing_prefix_context,
19641         u32_casing_prefix_context, u8_casing_prefixes_context,
19642         u16_casing_prefixes_context, u32_casing_prefixes_context): New
19643         declarations.
19644         (casing_suffix_context_t): New type.
19645         (unicase_empty_suffix_context): New variable.
19646         (u8_casing_suffix_context, u16_casing_suffix_context,
19647         u32_casing_suffix_context, u8_casing_suffixes_context,
19648         u16_casing_suffixes_context, u32_casing_suffixes_context,
19649         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
19650         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
19651         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
19652         declarations.
19653
19654 2009-06-28  Jim Meyering  <meyering@redhat.com>
19655
19656         boostrap: indent only with spaces
19657         * build-aux/bootstrap: Indent only with spaces, never TABs.
19658
19659         bootstrap: split long lines
19660         * build-aux/bootstrap: Keep line length < 80.
19661
19662         bootstrap: sync from coreutils
19663         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
19664         just as autoreconf does.  Verify a list of prerequisite
19665         package-name,version-number pairs if defined in bootstrap.conf.
19666         Refer to README-prereq, if prerequisites are not satisfied.
19667
19668 2009-06-27  Eric Blake  <ebb9@byu.net>
19669
19670         tests: add test for bogus NULL definition
19671         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
19672         * tests/test-stdlib.c: Likewise.
19673         * tests/test-string.c: Likewise.
19674         * tests/test-locale.c: Likewise.
19675         * tests/test-unistd.c: Likewise.
19676         * modules/stdio-tests (Depends-on): Add verify.
19677         * modules/stdlib-tests (Depends-on): Likewise.
19678         * modules/string-tests (Depends-on): Likewise.
19679         * modules/locale-tests (Depends-on): Likewise.
19680         * modules/unistd-tests (Depends-on): Likewise.
19681
19682 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
19683
19684         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
19685         self-explaining comment.
19686         * m4/selinux-selinux-h: Update serial.
19687         (gl_LIBSELINUX): New macro, adding a warning for missing development
19688         packages to code extracted from...
19689         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
19690         Add warning for missing development packages here, too.
19691
19692 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
19693
19694         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
19695
19696 2009-06-25  Eric Blake  <ebb9@byu.net>
19697
19698         version-etc: fix regression
19699         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
19700         gcc.
19701         (version_etc): Use it, to catch bugs with trailing NULL.
19702         * lib/version-etc.c (version_etc_arn): Delete unused argument.
19703         (version_etc_va): Fix logic bug.
19704         * modules/version-etc-tests: Add test.
19705         * tests/test-version-etc.c: New file.
19706         * tests/test-version-etc.sh: Likewise.
19707
19708 2009-06-25  Sam Steingold  <sds@gnu.org>
19709
19710         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
19711         mbtowc declaration.
19712
19713 2009-06-25  Eric Blake  <ebb9@byu.net>
19714
19715         fpurge: migrate into <stdio.h>
19716         * lib/fpurge.h: Delete...
19717         * lib/stdio.in.h (fpurge): ...and declare here, instead.
19718         * lib/fpurge.c (fpurge): Change declaring header.
19719         * modules/fpurge (Files): Drop deleted file.
19720         (Depends-on): Add stdio.
19721         (configure.ac): Set witness.
19722         * modules/stdio (Makefile.am): Support fpurge macros.
19723         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19724         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
19725         * lib/fflush.c: Update client.
19726         * tests/test-fpurge.c: Likewise.
19727         * NEWS: Mention the change.
19728
19729 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19730
19731         * lib/argp-version-etc.c (program_authors): Add const
19732         qualifier.
19733         * lib/version-etc.c: Fix typos in the comments.
19734         * modules/argp-version-etc: Depends on version-etc.
19735
19736 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19737
19738         argp-version-etc: new module.
19739
19740         * lib/argp-version-etc.c: New file.
19741         * lib/argp-version-etc.h: New file.
19742         * modules/argp-version-etc: New file.
19743         * modules/argp-version-etc-tests: New file.
19744         * tests/test-argp-version-etc.c: New test.
19745         * tests/test-argp-version-etc-1.sh: New test.
19746
19747 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19748
19749         Provide additional interfaces and documentation for version-etc
19750         module.
19751
19752         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
19753         interfaces.
19754         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
19755         prototypes.
19756
19757 2009-06-24  Bruno Haible  <bruno@clisp.org>
19758
19759         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
19760         HAVE_LIB${NAME} macro.
19761         Reported by Sam Steingold <sds@gnu.org>.
19762
19763 2009-06-23  Simon Josefsson  <simon@josefsson.org>
19764
19765         * modules/hash-tests (test_hash_LDADD): Link to libintl when
19766         needed.
19767
19768 2009-06-21  Bruno Haible  <bruno@clisp.org>
19769
19770         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
19771         work.
19772         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
19773         together with LIB${NAME}, LTLIB${NAME}.
19774         Reported by Sam Steingold <sds@gnu.org>.
19775
19776 2009-06-20  Jim Meyering  <meyering@redhat.com>
19777
19778         tests: make sc_require_test_exit_idiom more generic
19779         * top/maint.mk (Exit_witness_file): New overridable variable.
19780         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
19781         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
19782
19783 2009-06-19  Jim Meyering  <meyering@redhat.com>
19784
19785         hash: reverse order of src/dst parameters in an internal interface
19786         * lib/hash.c (transfer_entries): Reverse order of parameters to
19787         put DST before SRC.  Adjust callers.
19788
19789         tests: test-hash: avoid wholesale duplication
19790         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
19791         Instead, use a loop and add a single conditional.
19792
19793         tests: test-hash: allow seed selection via a command line argument
19794         * tests/test-hash.c (get_seed): New function.
19795         (main): Use it.
19796
19797 2009-06-19  Eric Blake  <ebb9@byu.net>
19798
19799         hash: avoid memory leak on allocation failure
19800         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
19801         failure.  Factor repeated algorithm...
19802         (transfer_entries): ...into new helper routine.
19803         (hash_delete): React to hash_rehash return value.
19804
19805         hash: reduce memory pressure in hash_rehash no-op case
19806         * lib/hash.c (next_prime): Avoid overflow.
19807         (hash_initialize): Factor bucket size computation...
19808         (compute_bucket_size): ...into new helper function.
19809         (hash_rehash): Use new function and open coding to reduce memory
19810         pressure, and avoid a memory leak in USE_OBSTACK code.
19811         Reported by Jim Meyering.
19812
19813 2009-06-18  Eric Blake  <ebb9@byu.net>
19814
19815         hash: make rotation more obvious
19816         * modules/hash (Depends-on): Add bitrotate and stdint.
19817         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
19818         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
19819         (SIZE_MAX): Rely on headers for definition.
19820         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
19821         (raw_hasher): Use rotr_sz.
19822         Suggested by Jim Meyering.
19823
19824         hash: fix memory leak in last patch
19825         * lib/hash.c (hash_rehash): Avoid memory leak.
19826
19827         hash: avoid no-op rehashing
19828         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
19829
19830         hash: provide default callback functions
19831         * lib/hash.c (raw_hasher, raw_comparator): New functions.
19832         (hash_initialize): Use them as defaults.
19833         * tests/test-hash.c (main): Test this.
19834
19835         hash: minor optimization
19836         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
19837         when possible.
19838         (hash_initialize): Document this promise.
19839         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
19840         * tests/test-hash.c (hash_compare_strings): Test this.
19841
19842 2009-06-18  Bruno Haible  <bruno@clisp.org>
19843
19844         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
19845         going to be replaced anyway.
19846
19847 2009-06-18  Bruno Haible  <bruno@clisp.org>
19848
19849         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
19850         in one place.
19851         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
19852         be replaced anyway.
19853
19854 2009-06-18  Eric Blake  <ebb9@byu.net>
19855
19856         hash: check for resize before insertion
19857         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
19858         threshold before insertion, so that a pathological hash_rehash
19859         that fills every bucket can still trigger another rehash.
19860
19861 2009-06-18  Jim Meyering  <meyering@redhat.com>
19862
19863         hash-tests: add a loop around the small tests
19864         * tests/test-hash.c (main): Repeat small tests with selected
19865         small initial table sizes.
19866
19867 2009-06-17  Eric Blake  <ebb9@byu.net>
19868
19869         hash: minor cleanups
19870         * lib/hash.h (hash_entry): Make opaque, by moving...
19871         * lib/hash.c (hash_entry): ...here.
19872         (hash_insert): Clarify restrictions on what can be inserted.
19873         (hash_get_next): Clarify when it is safe to remove an element
19874         during traversal.
19875         (check_tuning): Skip verification when tuning is known safe.
19876         (hash_initialize): Clarify restrictions on tuning.
19877
19878 2009-06-17  Jim Meyering  <jim@meyering.net>
19879         and Eric Blake  <ebb9@byu.net>
19880
19881         hash-tests: new module
19882         * modules/hash-tests: New file.
19883         * tests/test-hash.c: New file.
19884
19885 2009-06-17  Eric Blake  <ebb9@byu.net>
19886
19887         strstr-simple: document new module
19888         * MODULES.html.sh: Document new module.
19889
19890         strstr, strcasestr: replace on platforms with broken memchr
19891         * modules/strstr: Split into...
19892         * modules/strstr-simple: ...new module that does not care about
19893         performance, but does care about glibc bug.
19894         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
19895         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
19896         if platform memchr is broken, per Debian bug 521737.
19897         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
19898         memchr.
19899         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
19900         * doc/posix-functions/strstr.texi (strstr): Document the fix.
19901         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19902         * modules/mountlist (Depends-on): Add strstr-simple.
19903         * modules/gen-uni-tables (Depends-on): Likewise.
19904         * modules/argz (Depends-on): Add strstr.
19905
19906 2009-06-17  Bruno Haible  <bruno@clisp.org>
19907
19908         * modules/posix_spawn-internal (Depends-on): Add errno.
19909
19910 2009-06-17  Bruno Haible  <bruno@clisp.org>
19911
19912         Define missing ESTALE on Interix 3.5.
19913         * lib/errno.in.h (ESTALE): Assign a value if missing.
19914         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
19915         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
19916         missing.
19917         * doc/posix-headers/errno.texi: Mention the Interix bug.
19918         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
19919
19920 2009-06-15  Eric Blake  <ebb9@byu.net>
19921
19922         memchr, memchr2: add valgrind exception
19923         * lib/memchr.valgrind: New file.
19924         * lib/memchr2.valgrind: New file.
19925         * modules/memchr (Files): Distribute valgrind file.
19926         * modules/memchr2 (Files): Likewise.
19927
19928         docs: memchr is no longer obsolete
19929         * MODULES.html.sh: Move memchr from obsolete to string.h section.
19930         * lib/string.in.h (memchr): Simplify logic.
19931
19932 2009-06-14  Jim Meyering  <meyering@redhat.com>
19933
19934         link-follow: fix the "checking..." message to not mention trailing slash
19935         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
19936         never considered trailing slashes.
19937
19938 2009-06-14  Bruno Haible  <bruno@clisp.org>
19939
19940         * m4/memchr.m4: Mention also the bug on IA-64.
19941         * doc/posix-functions/memchr.texi: Likewise.
19942
19943 2009-06-12  Eric Blake  <ebb9@byu.net>
19944
19945         memchr: detect broken x86_64 and alpha implementations
19946         * modules/memchr-tests (Depends-on): Move mmap detection...
19947         * modules/memchr (Depends-on): ...here.
19948         (configure.ac): Set indicator.
19949         * lib/string.in.h (memchr): Declare replacement.
19950         * modules/string (Makefile.am): Trigger replacement.
19951         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
19952         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
19953         bugs.
19954         * doc/posix-functions/memchr.texi (memchr): Document the bug.
19955         * modules/getpagesize (License): Relax license.
19956
19957 2009-06-11  Bruno Haible  <bruno@clisp.org>
19958
19959         * lib/idpriv.h: Add more references.
19960
19961 2009-06-08  Bruno Haible  <bruno@clisp.org>
19962
19963         Tests for module 'idpriv-droptemp'.
19964         * modules/idpriv-droptemp-tests: New file.
19965         * tests/test-idpriv-droptemp.sh: New file.
19966         * tests/test-idpriv-droptemp.su.sh: New file.
19967         * tests/test-idpriv-droptemp.c: New file.
19968
19969         New module 'idpriv-droptemp'.
19970         * lib/idpriv-droptemp.c: New file.
19971         * modules/idpriv-droptemp: New file.
19972
19973 2009-06-08  Bruno Haible  <bruno@clisp.org>
19974
19975         Tests for module 'idpriv-drop'.
19976         * modules/idpriv-drop-tests: New file.
19977         * tests/test-idpriv-drop.sh: New file.
19978         * tests/test-idpriv-drop.su.sh: New file.
19979         * tests/test-idpriv-drop.c: New file.
19980
19981         New module 'idpriv-drop'.
19982         * lib/idpriv.h: New file.
19983         * lib-idpriv-drop.c: New file.
19984         * m4/idpriv.m4: New file.
19985         * modules/idpriv-drop: New file.
19986
19987 2009-06-08  Bruno Haible  <bruno@clisp.org>
19988
19989         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
19990         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19991         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19992         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19993         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19994         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19995         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19996
19997 2009-06-08  Eric Blake  <ebb9@byu.net>
19998
19999         test-strstr: use memory fence, when possible
20000         * tests/test-strstr.c (main): Use memory fence, in order to be
20001         more likely to trigger Debian bug 521737.
20002         * modules/strstr-tests (Files): Pull in additional files.
20003
20004         memchr: no longer obsolete, for wider field testing
20005         * modules/memchr (Status, Notice): Delete, this module is no
20006         longer obsolete.
20007         * modules/vasnprintf (Depends-on): Add memchr.
20008
20009 2009-06-07  Jim Meyering  <meyering@redhat.com>
20010
20011         hash: declare some functions with the warn_unused_result attribute
20012         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
20013
20014 2009-06-07  Bruno Haible  <bruno@clisp.org>
20015
20016         * tests/test-alignof.c: Don't test int64_t if it does not exist.
20017         Reported by Eric Blake.
20018
20019 2009-06-06  Eric Blake  <ebb9@byu.net>
20020
20021         test-alignof: fix typo with long double
20022         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
20023         compiler error.
20024
20025 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
20026
20027         Escape non-texinfo { and }s.
20028         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
20029         markup error.
20030
20031 2009-06-04  Jim Meyering  <meyering@redhat.com>
20032
20033         gitlog-to-changelog: don't infloop on an empty commit log
20034         * build-aux/gitlog-to-changelog: Warn about an empty log message.
20035         Reported by Boris Petersen <transacid@centerim.org>.
20036
20037 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
20038
20039         version-etc: extend for packagers
20040         Add three new configure options, intended for packagers:
20041           --with-packager="packager name"
20042           --with-packager-version="packager-specific version"
20043           --with-packager-bug-reports="packager bug reporting"
20044         An example with coreutils:
20045           $ ./configure \
20046             --with-packager=Gentoo \
20047             --with-packager-bug-report=http://bugs.gentoo.org/ \
20048             --with-packager-version="patchset 1.6"
20049           $ ./src/ls --version | head -n2
20050           ls (GNU coreutils) 7.1-dirty
20051           Packaged by Gentoo (patchset 1.6)
20052         Note that the bug reporting info via --help doesn't show up because
20053         coreutils uses its own custom emit_bug_reporting_address() implementation
20054         in src/system.h.  If it didn't, it'd look like:
20055           $ ./src/ls --help | tail -n4
20056           Report bugs to <bug-coreutils@gnu.org>.
20057           Report Gentoo bugs to <http://bugs.gentoo.org/>.
20058           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
20059           General help using GNU software: <http://www.gnu.org/gethelp/>.
20060         * lib/version-etc.c: Print new information, if provided.
20061         * m4/version-etc.m4: New file.
20062         * modules/version-etc (Files): Add m4/version-etc.m4.
20063         (configure.ac): Add gl_VERSION_ETC.
20064
20065 2009-05-31  Bruno Haible  <bruno@clisp.org>
20066
20067         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
20068         and 'int64_t'.
20069         * modules/alignof-tests (Dependencies): Add stdint.
20070         Reported by Eric Blake.
20071
20072 2009-05-31  Bruno Haible  <bruno@clisp.org>
20073
20074         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
20075         restriction due to compiler bugs.
20076         Reported by Eric Blake.
20077
20078 2009-05-31  Simon Josefsson  <simon@josefsson.org>
20079             Bruno Haible  <bruno@clisp.org>
20080
20081         Fix test-alignof failure.
20082         * lib/alignof.h (alignof_slot): New macro.
20083         (alignof_type): New macro, with the same semantics as the previous
20084         'alignof'.
20085         (alignof): Alias to alignof_slot.
20086         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
20087         check that the results are usable as constant expressions.
20088
20089 2009-05-31  Bruno Haible  <bruno@clisp.org>
20090
20091         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
20092         * tests/test-memchr.c (main): Check that memchr does not read past the
20093         first occurrence of the byte.
20094         * tests/test-strstr.c (main): Update comment.
20095         Suggested by Eric Blake.
20096
20097 2009-05-30  Bruno Haible  <bruno@clisp.org>
20098
20099         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
20100         detail how to use dumpbin.
20101         Reported by David Byron <dbyron@dbyron.com>.
20102
20103 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20104
20105         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
20106
20107 2009-06-02  Simon Josefsson  <simon@josefsson.org>
20108
20109         * m4/manywarnings.m4: Add GCC 4.4 warnings.
20110
20111 2009-05-28  Bruno Haible  <bruno@clisp.org>
20112
20113         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
20114         build-aux/ files.
20115
20116 2009-05-28  Simon Josefsson  <simon@josefsson.org>
20117
20118         * gnulib-tool (func_import): Transform license on build-aux/ files too.
20119
20120 2009-05-27  Simon Josefsson  <simon@josefsson.org>
20121
20122         * gnulib-tool (sed_transform_main_lib_file)
20123         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
20124         regexps.
20125
20126 2009-05-26  Simon Josefsson  <simon@josefsson.org>
20127
20128         * tests/test-strstr.c: Add another self-test.
20129         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
20130         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
20131
20132 2009-05-23  Bruno Haible  <bruno@clisp.org>
20133
20134         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
20135         change.
20136
20137 2009-05-21  Bruno Haible  <bruno@clisp.org>
20138
20139         Simplify use of mode_t varargs.
20140         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
20141         uses 'mode_t' or 'int'.
20142         * lib/openat.c (openat): Likewise.
20143         * lib/open-safer.c (open_safer): Likewise.
20144         * m4/mode_t.m4: New file.
20145         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
20146         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
20147         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
20148         * modules/open (Files): Add m4/mode_t.m4.
20149         * modules/openat (Files): Likewise.
20150         * modules/fcntl-safer (Files): Likewise.
20151         Suggested by Eric Blake.
20152
20153 2009-05-21  Pádraig Brady  <P@draigbrady.com>
20154
20155         * doc/glibc-functions/fallocate.texi: New file.
20156         * doc/gnulib.texi: Include it.
20157
20158 2009-05-21  Eric Blake  <ebb9@byu.net>
20159             Bruno Haible  <bruno@clisp.org>
20160
20161         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
20162         invocations.
20163         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20164
20165 2009-05-21  Eric Blake  <ebb9@byu.net>
20166             Bruno Haible  <bruno@clisp.org>
20167
20168         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
20169         include_next. Fix of 2008-11-20 commit.
20170         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
20171         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
20172         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
20173         NEXT_MATH_H.
20174         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
20175         instead of NEXT_MATH_H.
20176
20177 2009-05-21  Bruno Haible  <bruno@clisp.org>
20178
20179         Avoid redefinition warnings for SIZE_MAX.
20180         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
20181         Reported by Simon Josefsson.
20182
20183 2009-05-21  Bruno Haible  <bruno@clisp.org>
20184
20185         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
20186         AC_CACHE_VAL.
20187
20188 2009-05-20  Bruno Haible  <bruno@clisp.org>
20189
20190         Make zeroptr.h work on mingw.
20191         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
20192         mprotect.
20193         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
20194         * modules/memchr2-tests (configure.ac): Likewise.
20195         * modules/memcmp-tests (configure.ac): Likewise.
20196         * modules/memmem-tests (configure.ac): Likewise.
20197         * modules/memrchr-tests (configure.ac): Likewise.
20198         Reported by Simon Josefsson.
20199
20200 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20201
20202         * tests/test-glob.c: Include string.h for strcmp prototype.
20203
20204 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20205
20206         * modules/getdelim (Depends-on): Add explicit stdint, although it
20207         was implicitly already pulled in via realloc-posix.
20208         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
20209
20210 2009-05-20  Simon Josefsson  <simon@josefsson.org>
20211
20212         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
20213         G. Christensen" <tgc@jupiterrise.com>.
20214         * m4/sys_socket_h.m4: Check for sa_family_t.
20215         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
20216         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
20217         * tests/test-sys_socket.c: Check that sa_family_t works.
20218
20219 2009-05-18  Eric Blake  <ebb9@byu.net>
20220
20221         maint.mk: allow gnulib_dir in VPATH build
20222         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
20223
20224 2009-05-15  Jim Meyering  <meyering@redhat.com>
20225
20226         maint.mk: Give gnulib_dir a default definition.
20227         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
20228         Thus, most packages no longer need to specify this variable in cfg.mk
20229
20230 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
20231
20232         rename.m4: fix typos that would make non-mingw cross-configure fail
20233         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
20234
20235 2009-05-13  Eric Blake  <ebb9@byu.net>
20236
20237         mmap-anon: avoid out-of-order autoconf expansion
20238         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
20239         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
20240         * modules/memchr-tests (Depends-on): Add extensions.
20241         * modules/memchr2-tests (Depends-on): Add extensions.
20242         * modules/memcmp-tests (Depends-on): Add extensions.
20243         * modules/memmem-tests (Depends-on): Add extensions.
20244         * modules/memrchr-tests (Depends-on): Add extensions.
20245
20246 2009-05-13  Bruno Haible  <bruno@clisp.org>
20247
20248         Make some tests ISO C 99 compliant.
20249         * tests/zerosize-ptr.h: New file.
20250         * tests/test-memchr.c: Include zerosize-ptr.h.
20251         (main): Use a zero-size object pointer instead of NULL.
20252         * tests/test-memchr2.c: Include zerosize-ptr.h.
20253         (main): Use a zero-size object pointer instead of NULL.
20254         * tests/test-memcmp.c: Include zerosize-ptr.h.
20255         (main): Use a zero-size object pointer instead of NULL.
20256         * tests/test-memmem.c: Include zerosize-ptr.h.
20257         (main): Use a zero-size object pointer instead of NULL.
20258         * tests/test-memrchr.c: Include zerosize-ptr.h.
20259         (main): Use a zero-size object pointer instead of NULL.
20260         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
20261         m4/mmap-anon.m4.
20262         (Depends-on): Add getpagesize.
20263         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20264         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
20265         m4/mmap-anon.m4.
20266         (Depends-on): Add getpagesize.
20267         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20268         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
20269         m4/mmap-anon.m4.
20270         (Depends-on): Add getpagesize.
20271         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20272         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
20273         m4/mmap-anon.m4.
20274         (Depends-on): Add getpagesize.
20275         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20276         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
20277         m4/mmap-anon.m4.
20278         (Depends-on): Add getpagesize.
20279         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
20280
20281 2009-05-12  Bruno Haible  <bruno@clisp.org>
20282
20283         Tests for module 'alignof'.
20284         * modules/alignof-tests: New file.
20285         * tests/test-alignof.c: New file.
20286
20287 2009-05-12  Bruno Haible  <bruno@clisp.org>
20288
20289         Fix alignof macro.
20290         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
20291         vendor compilers that are always correct.
20292
20293 2009-05-12  Bruno Haible  <bruno@clisp.org>
20294
20295         Make the MAP_ANONYMOUS detection work on HP-UX 11.
20296         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
20297         not whether its fully works.
20298
20299 2009-05-12  Bruno Haible  <bruno@clisp.org>
20300
20301         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
20302
20303 2009-05-12  Jim Meyering  <meyering@redhat.com>
20304
20305         * top/maint.mk: Adjust backslash alignment.
20306
20307 2009-05-11  Simon Josefsson  <simon@josefsson.org>
20308
20309         * top/maint.mk: Make $(srcdir)/build-aux configurable.
20310
20311 2009-05-11  Eric Blake  <ebb9@byu.net>
20312
20313         argp: avoid undefined behavior
20314         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
20315         macros.
20316
20317 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20318
20319         * tests/test-vc-list-files-git.sh: Do git config of user.email and
20320         user.name to prevent git commit from complaining.
20321
20322 2009-05-10  Bruno Haible  <bruno@clisp.org>
20323
20324         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
20325         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
20326         it rewrites every file name only once.
20327         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
20328
20329 2009-05-08  Bruno Haible  <bruno@clisp.org>
20330
20331         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
20332         instead of 'max'.
20333
20334 2009-05-08  Simon Josefsson  <simon@josefsson.org>
20335
20336         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
20337         sockaddr_storage test.
20338
20339 2009-05-07  Simon Josefsson  <simon@josefsson.org>
20340
20341         * modules/sys_socket (Makefile.am): Substitute
20342         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
20343         * m4/sys_socket_h.m4: Check for sockaddr_storage.
20344         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
20345         * tests/test-sys_socket.c: Check sockaddr_storage.
20346
20347 2009-05-08  Bruno Haible  <bruno@clisp.org>
20348
20349         New module 'alignof'.
20350         * lib/alignof.h: New file.
20351         * modules/alignof: New file.
20352
20353 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20354             Bruno Haible  <bruno@clisp.org>
20355
20356         Fix test-file-has-acl on FreeBSD.
20357         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
20358         mask is implicitly added.
20359         * tests/test-file-has-acl.c: Include <signal.h>.
20360         (main): Terminate the test after 5 seconds.
20361         * modules/acl-tests (configure.ac): Check for alarm function.
20362
20363 2009-05-04  Bruno Haible  <bruno@clisp.org>
20364
20365         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
20366         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
20367         * modules/errno (configure.ac): Drop AC_REQUIRE.
20368         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
20369         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
20370
20371 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20372
20373         * modules/glob-tests: New module.
20374         * tests/test-glob.c: Add.
20375
20376 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20377
20378         * modules/fnmatch-tests: New module.
20379         * tests/test-fnmatch.c: Add.
20380
20381 2009-05-04  Eric Blake  <ebb9@byu.net>
20382
20383         maint: make the new no-submodule-changes rule VPATH-safe
20384         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
20385
20386 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20387             Bruno Haible  <bruno@clisp.org>
20388
20389         acl: Fix infinite loop on FreeBSD.
20390         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
20391         of return value from acl_get_entry.
20392         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
20393         Likewise.
20394
20395 2009-05-03  Bruno Haible  <bruno@clisp.org>
20396
20397         * lib/acl-internal.h (acl_entries): Clarify return value.
20398         * lib/acl_entries.c (acl_entries): Likewise.
20399
20400 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20401
20402         Bug fix in acl module.
20403         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
20404
20405 2009-05-03  Bruno Haible  <bruno@clisp.org>
20406
20407         Create gperf-generated file in the source dir, not in the build dir.
20408         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
20409         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
20410         * modules/unicase/locale-language (unicase/locale-languages.h):
20411         Likewise.
20412         * modules/unicase/special-casing (unicase/special-casing-table.h):
20413         Likewise.
20414         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
20415         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
20416         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
20417         Reported by Ralf Wildenhues.
20418
20419 2009-05-03  Bruno Haible  <bruno@clisp.org>
20420
20421         * modules/fnmatch (Description, configure.ac): Taken from
20422         fnmatch-posix.
20423         * modules/fnmatch-posix: Turn into a symbolic reference to the
20424         'fnmatch' module, and deprecate.
20425         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
20426
20427 2009-05-03  Bruno Haible  <bruno@clisp.org>
20428
20429         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
20430         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
20431         Reported by Ralf Wildenhues.
20432
20433 2009-05-04  Simon Josefsson  <simon@josefsson.org>
20434
20435         * m4/fnmatch.m4: Fix fnmatch re-define.
20436
20437 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
20438
20439         priv-set: new module and tests; adapt write-any-file
20440         * lib/priv-set.c: New file.
20441         * lib/priv-set.h: New file.
20442         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
20443         * lib/write-any-file.c: Simplify by using priv-set module.
20444         * m4/priv-set.m4: New file.
20445         * modules/priv-set: New file.
20446         * modules/unlinkdir: Add dependency on priv-set module.
20447         * modules/write-any-file: Likewise.
20448
20449         Tests for module 'priv-set'.
20450         * modules/priv-set-tests: New file.
20451         * tests/test-priv-set.c: New file.
20452
20453 2009-05-03  Jim Meyering  <meyering@redhat.com>
20454             Bruno Haible  <bruno@clisp.org>
20455
20456         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
20457         use the converted UTF-8 variant of the name instead.
20458
20459 2009-05-03  Jim Meyering  <meyering@redhat.com>
20460
20461         tests: tighten some getdate tests
20462         * tests/test-getdate.c (main): Tighten tests: require equality,
20463         not just greater than.  Set TZ envvar to UTC0.
20464
20465 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20466
20467         getdate: correctly interpret "next monday" when run on a Monday
20468         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
20469         that e.g., "next tues" (when run on a tuesday) results in a date
20470         that is one week in the future, and not today's date.
20471         I.e., add a week when the wday is the same as the current one.
20472         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
20473         and earlier by Martin Bernreuther and Jan Minář.
20474         * tests/test-getdate.c (main): Check that "next DAY" is always in
20475         the future and that "last DAY" is always in the past.
20476
20477 2009-05-02  Jim Meyering  <meyering@redhat.com>
20478
20479         build: ensure that a release build fails when a submodule is unclean
20480         * top/maint.mk (no-submodule-changes): New rule.
20481         (alpha beta major): Depend on it.
20482
20483 2009-05-02  Bruno Haible  <bruno@clisp.org>
20484
20485         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
20486         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
20487         shell variable gl_fnmatch_required to detect which variant is
20488         requested.
20489         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
20490         gl_FUNC_FNMATCH_POSIX.
20491         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
20492         exclude fnmatch-posix.
20493
20494 2009-05-02  Bruno Haible  <bruno@clisp.org>
20495
20496         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
20497         * modules/mbsrtowcs (License): Change to LGPLv2+.
20498         * modules/strnlen1 (License): Likewise.
20499         Reported by Simon Josefsson.
20500
20501 2009-05-02  Bruno Haible  <bruno@clisp.org>
20502
20503         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
20504         "cross".
20505         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
20506         gnulib-tool was called with option --source-base=lib.
20507
20508 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20509
20510         Use automake *-local hooks without commands, for extensibility.
20511         * modules/localcharset (Makefile.am): Rename install-exec-local
20512         rule to install-exec-localcharset, and make it a prerequisite of
20513         install-exec-local.  Likewise, rename the uninstall-local rule to
20514         uninstall-localcharset, and make it a prerequisite of the former.
20515
20516 2009-05-01  Bruno Haible  <bruno@clisp.org>
20517
20518         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
20519         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20520         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
20521         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
20522         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
20523         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20524         m4/locale-zh.m4, m4/codeset.m4.
20525
20526         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
20527         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
20528         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
20529         m4/locale-zh.m4.
20530
20531         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
20532         REPLACE_WCRTOMB if mbstate_t must be replaced.
20533         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
20534         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
20535
20536 2009-05-01  Bruno Haible  <bruno@clisp.org>
20537
20538         Avoid compiler warnings when redefining macros defined by <libintl.h>.
20539         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
20540         dngettext, dcngettext, textdomain, bindtextdomain,
20541         bind_textdomain_codeset): Undefine before redefining.
20542
20543 2009-04-30  Bruno Haible  <bruno@clisp.org>
20544
20545         Fix bug introduced on 2009-04-25.
20546         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
20547         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
20548         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
20549         is defined.
20550         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
20551         is defined.
20552         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
20553         is defined.
20554         Reported by Elbert_Pol <elbert.pol@gmail.com>.
20555
20556 2009-04-28  Bruno Haible  <bruno@clisp.org>
20557
20558         Comment tweaks.
20559         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
20560         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
20561         * lib/unicase.h (u*_casexfrm): Likewise.
20562         Reported by Paolo Bonzini.
20563
20564 2009-04-28  Bruno Haible  <bruno@clisp.org>
20565
20566         Fix a compilation error.
20567         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
20568         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
20569         Reported by Jim Meyering.
20570
20571 2009-04-27  Bruno Haible  <bruno@clisp.org>
20572
20573         New module 'libunistring'.
20574         * modules/libunistring: New file.
20575         * m4/libunistring.m4: New file.
20576         * MODULES.html.sh (Unicode string functions): Add it.
20577
20578 2009-04-27  Eric Blake  <ebb9@byu.net>
20579
20580         maint.mk: allow package-specific header to provide <config.h>
20581         * top/maint.mk (sc_require_config_h): New variable.
20582         (sc_require_config_h, sc_require_config_h_first): Use it.
20583
20584 2009-04-27  Simon Josefsson  <simon@josefsson.org>
20585
20586         * top/maint.mk (sc_avoid_if_before_free): Except
20587         useless-if-before-free script.
20588
20589 2009-04-27  Eric Blake  <ebb9@byu.net>
20590
20591         maintainer-makefile: depend on all required helper scripts
20592         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
20593         useless-if-before-free.
20594         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
20595         version, rather than assuming gnulib checkout is available.
20596         Reported by Simen Josefsson.
20597
20598 2009-04-26  Bruno Haible  <bruno@clisp.org>
20599
20600         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
20601         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
20602         "../" or "..".
20603
20604 2009-04-26  Bruno Haible  <bruno@clisp.org>
20605
20606         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
20607         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
20608         AC_LIB_HAVE_LINKFLAGS.
20609
20610 2009-04-26  Bruno Haible  <bruno@clisp.org>
20611
20612         Simplify calling convention of u*_conv_from_encoding.
20613         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
20614         u32_conv_from_encoding): Expect a resultbuf argument and return the
20615         result directly as a pointer.
20616         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
20617         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
20618         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
20619         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
20620         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
20621         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20622         Update.
20623         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
20624         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
20625         * lib/vasnprintf.c (VASNPRINTF): Update.
20626         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
20627         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
20628         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
20629         * NEWS: Mention the change.
20630
20631 2009-04-26  Bruno Haible  <bruno@clisp.org>
20632
20633         Simplify calling convention of u*_conv_to_encoding.
20634         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
20635         u32_conv_to_encoding): Expect a resultbuf argument and return the
20636         result directly as a pointer.
20637         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20638         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
20639         freeing scaled_offsets if mem_iconveha failed.
20640         * lib/unicase/u-casexfrm.h (FUNC): Update.
20641         * lib/uninorm/u-normxfrm.h (FUNC): Update.
20642         * lib/vasnprintf.c (VASNPRINTF): Update.
20643         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
20644         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
20645         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
20646         * NEWS: Mention the change.
20647
20648 2009-04-26  Bruno Haible  <bruno@clisp.org>
20649
20650         Avoid test failures on AIX and OSF/1.
20651         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
20652         malloc(0).
20653         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
20654         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
20655         Likewise.
20656         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
20657         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
20658         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
20659         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
20660         * doc/posix-functions/malloc.texi: Document the portability problem
20661         related to malloc(0).
20662
20663 2009-04-26  Bruno Haible  <bruno@clisp.org>
20664
20665         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
20666         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
20667         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
20668
20669 2009-04-25  Bruno Haible  <bruno@clisp.org>
20670
20671         Avoid link error when creating a namespace clean library.
20672         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
20673         as macro with arguments if already defined as an alias.
20674         * lib/signbitf.c (gl_signbitf): Don't undefine.
20675         * lib/signbitd.c (gl_signbitd): Don't undefine.
20676         * lib/signbitl.c (gl_signbitl): Don't undefine.
20677
20678 2009-04-25  Jim Meyering  <meyering@redhat.com>
20679
20680         vc-list-files: fix another quoting bug
20681         * build-aux/vc-list-files: Avoid sed backslash expansion
20682         of pathological directory names.
20683
20684 2009-04-25  Eric Blake  <ebb9@byu.net>
20685
20686         vc-list-files: fix shell quoting error
20687         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
20688         timestamp.
20689
20690 2009-04-25  Jim Meyering  <meyering@redhat.com>
20691
20692         vc-list-files: restore lost functionality with subdir argument
20693         * build-aux/vc-list-files: When given a non-"." sub-directory
20694         argument, substitute the $dir/ prefix back onto each resulting name.
20695         Otherwise, coreutils' root_tests check would fail.
20696
20697 2009-04-24  Eric Blake  <ebb9@byu.net>
20698
20699         vc-list-files: ignore git symlinks
20700         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
20701         than ls-files, to ignore git symlinks.
20702
20703         maint.mk: import improvements from m4
20704         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
20705         (move_if_change): Delete unused macro.
20706         (news-date-check, vc-diff-check): Support VPATH builds.
20707         (announcement): Likewise.  Split --bootstrap-tools list...
20708         (boostrap-tools): ...into separate list, which can be overridden
20709         in cfg.mk.
20710         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
20711         requiring dependency on useless-if-before-free module.
20712         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
20713         Support VPATH builds.
20714
20715 2009-04-24  Jim Meyering  <meyering@redhat.com>
20716
20717         maint.mk: remove coreutils-specific rules and variables
20718         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
20719         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
20720         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
20721
20722         maint.mk: remove obsolete rule
20723         * top/maint.mk (rel-check): Remove rule.
20724         (WGET, WGETFLAGS): Remove now-unused variables.
20725
20726 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20727
20728         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
20729         consistency.
20730
20731         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
20732         '$(PATH_SEPARATOR)' instead of ':'.
20733
20734 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20735
20736         * lib/getopt1.c (main): Use 'const' for static array.
20737
20738 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20739
20740         * top/maint.mk: Sync with coreutils.
20741         * NEWS: Explain incompatibilities.
20742
20743 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20744             Bruno Haible  <bruno@clisp.org>
20745
20746         Fix cross-compilation results.
20747         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
20748         statement, as third argument of AC_TRY_RUN.
20749         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20750         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20751         Likewise.
20752         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20753         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20754         Likewise.
20755         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20756         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
20757         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
20758
20759 2009-04-20  Bruno Haible  <bruno@clisp.org>
20760
20761         Avoid test failure on mingw.
20762         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
20763
20764 2009-04-20  Bruno Haible  <bruno@clisp.org>
20765
20766         Avoid compilation error on mingw.
20767         * modules/localename-tests (Depends-on): Add locale.
20768
20769 2009-04-19  Bruno Haible  <bruno@clisp.org>
20770
20771         Support for building a shared library on Windows platforms.
20772         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
20773         (main): Test the presence of UNINORM_NFC here.
20774         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
20775         (main): Test the presence of UNINORM_NFD here.
20776         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
20777         (main): Test the presence of UNINORM_NFKC here.
20778         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
20779         (main): Test the presence of UNINORM_NFKD here.
20780
20781 2009-04-19  Bruno Haible  <bruno@clisp.org>
20782
20783         Avoid a compiler warning.
20784         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
20785         Change type of variable 'sequence'.
20786
20787 2009-04-19  Bruno Haible  <bruno@clisp.org>
20788
20789         * modules/configmake (Makefile.am): When the contents of configmake.h
20790         does not change, arrange to preserve its modification time.
20791
20792 2009-04-17  Simon Josefsson  <simon@josefsson.org>
20793
20794         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
20795         gettext domain.
20796
20797 2009-04-16  Jim Meyering  <meyering@redhat.com>
20798
20799         useless-if-before-free: improve conversion code
20800         * build-aux/useless-if-before-free: Adjust code-in-comment to match
20801         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
20802
20803 2009-04-14  Bruno Haible  <bruno@clisp.org>
20804
20805         * modules/fcntl (Depends-on): Add extensions.
20806         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
20807
20808 2009-04-12  Ben Pfaff  <blp@gnu.org>
20809
20810         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
20811         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
20812
20813 2009-03-20  Ben Pfaff  <blp@gnu.org>
20814
20815         Make rename replace existing destinations on Windows.
20816         * m4/rename.m4: Add test for Mingw.
20817         * lib/rename.c: Add rename replacement that uses MoveFileEx with
20818         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
20819         * doc/posix-functions/rename.texi: Document.
20820
20821 2009-04-10  Bruno Haible  <bruno@clisp.org>
20822
20823         New include file "iconveh.h".
20824         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
20825         * lib/striconveh.h: Include it.
20826         (enum iconv_ilseq_handler): Remove definition.
20827         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
20828         striconveh.h.
20829         * lib/striconveha.c: Include striconveh.h.
20830         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
20831         * modules/striconveh (Files): Add lib/iconveh.h.
20832         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
20833         lib/striconveh.h.
20834
20835 2009-04-10  Bruno Haible  <bruno@clisp.org>
20836
20837         * lib/uniconv.h: Update comment.
20838
20839 2009-04-10  Bruno Haible  <bruno@clisp.org>
20840
20841         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
20842         always.
20843         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
20844         * lib/unistr/u16-mbtouc-aux.c: Likewise.
20845         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
20846         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
20847         "unistring-notinline.h", so that the function gets defined always.
20848         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
20849         * lib/unistr/u8-uctomb.c: Likewise.
20850         * lib/unistr/u16-mbtouc.c: Likewise.
20851         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
20852         * lib/unistr/u16-uctomb.c: Likewise.
20853         * lib/unistr/u32-mbtouc.c: Likewise.
20854         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
20855         * lib/unistr/u32-uctomb.c: Likewise.
20856
20857 2009-04-10  Bruno Haible  <bruno@clisp.org>
20858
20859         Mark 'utime' obsolete.
20860         * modules/utime (Status, Notice): New sections.
20861         Suggested by Jim Meyering.
20862
20863         Fix cross-compile guess for utime test.
20864         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
20865         autoconf.
20866         * doc/posix-functions/utime.texi: Give more precisions.
20867         Reported by Jan <ipif@ymail.com>.
20868
20869 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
20870
20871         filevercmp: correct today's change
20872         * lib/filevercmp.c: Also handle coreutils' test inputs.
20873         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
20874
20875         Fix regression in 'filevercmp' module. Thanks Sven Joachim
20876         for reporting it.
20877         * lib/filevercmp.c: Special handle for "", "." and "..".
20878         * tests/test-filevercmp.c: Enlarge the set suite.
20879
20880 2009-04-07  Jim Meyering  <meyering@redhat.com>
20881
20882         useless-if-before-free: show how to remove braced useless free, too
20883         * build-aux/useless-if-before-free: still only in a comment, though.
20884
20885 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
20886
20887         maint.mk: import changes to syntax-check macros from coreutils
20888         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
20889         Use them in the relevant macros.
20890
20891 2009-04-06  Bruno Haible  <bruno@clisp.org>
20892
20893         Fix unportable use of bit-fields.
20894         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
20895         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
20896         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
20897
20898 2009-04-06  Bruno Haible  <bruno@clisp.org>
20899
20900         Avoid test failures on AIX and OSF/1.
20901         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
20902         that malloc(0) = NULL.
20903         * tests/unicase/test-u8-tolower.c (check): Likewise.
20904         * tests/unicase/test-u8-totitle.c (check): Likewise.
20905         * tests/unicase/test-u8-toupper.c (check): Likewise.
20906         * tests/unicase/test-u16-casefold.c (check): Likewise.
20907         * tests/unicase/test-u16-tolower.c (check): Likewise.
20908         * tests/unicase/test-u16-totitle.c (check): Likewise.
20909         * tests/unicase/test-u16-toupper.c (check): Likewise.
20910         * tests/unicase/test-u32-casefold.c (check): Likewise.
20911         * tests/unicase/test-u32-tolower.c (check): Likewise.
20912         * tests/unicase/test-u32-totitle.c (check): Likewise.
20913         * tests/unicase/test-u32-toupper.c (check): Likewise.
20914         * tests/uninorm/test-u8-nfc.c (check): Likewise.
20915         * tests/uninorm/test-u8-nfd.c (check): Likewise.
20916         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
20917         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
20918         * tests/uninorm/test-u16-nfc.c (check): Likewise.
20919         * tests/uninorm/test-u16-nfd.c (check): Likewise.
20920         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
20921         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
20922         * tests/uninorm/test-u32-nfc.c (check): Likewise.
20923         * tests/uninorm/test-u32-nfd.c (check): Likewise.
20924         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
20925         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
20926
20927 2009-04-05  Bruno Haible  <bruno@clisp.org>
20928
20929         Work around an autoconf limitation.
20930         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
20931         comment line if it would be longer than 3 KB.
20932
20933 2009-04-05  Bruno Haible  <bruno@clisp.org>
20934
20935         Avoid test failure with libiconv-1.13.
20936         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
20937         of the expected test results.
20938
20939 2009-04-05  Bruno Haible  <bruno@clisp.org>
20940
20941         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
20942         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
20943         that it should be installed.
20944
20945 2009-04-05  Bruno Haible  <bruno@clisp.org>
20946
20947         * gnulib-tool: New option --copy-file.
20948         (func_usage): Document it.
20949         (func_dest_tmpfilename): Moved out of func_import.
20950         (func_add_file, func_update_file): New functions, extracted from
20951         func_import.
20952         (func_import): Update.
20953
20954 2009-04-05  Karl Berry  <karl@gnu.org>
20955
20956         * README: prominently mention gnulib-tool.
20957         Rearrange sections so getting the code is near the top.
20958
20959 2009-04-05  Bruno Haible  <bruno@clisp.org>
20960
20961         * lib/unicase.h: Mention u*_cmp2.
20962         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
20963         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
20964         * lib/unicase/ulc-casecmp.c: Likewise.
20965         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
20966         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
20967         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
20968         unistr/u8-cmp.
20969         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
20970         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
20971         unistr/u16-cmp.
20972         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
20973         unistr/u32-cmp.
20974
20975         * lib/uninorm.h: Mention u*_cmp2.
20976         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
20977         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
20978         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
20979         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
20980         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
20981         unistr/u8-cmp.
20982         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
20983         unistr/u16-cmp.
20984         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
20985         unistr/u32-cmp.
20986
20987         New module 'unistr/u32-cmp2'.
20988         * lib/unistr/u32-cmp2.c: New file.
20989         * modules/unistr/u32-cmp2: New file.
20990
20991         New module 'unistr/u16-cmp2'.
20992         * lib/unistr/u16-cmp2.c: New file.
20993         * modules/unistr/u16-cmp2: New file.
20994
20995         New module 'unistr/u8-cmp2'.
20996         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
20997         * lib/unistr/u8-cmp2.c: New file.
20998         * lib/unistr/u-cmp2.h: New file.
20999         * modules/unistr/u8-cmp2: New file.
21000
21001 2009-04-05  Bruno Haible  <bruno@clisp.org>
21002
21003         * lib/unictype.h (uc_property_is_valid): New macro.
21004         * tests/unictype/test-pr_byname.c (main): Use it.
21005
21006         * lib/unistr.h: Doc fixes.
21007         * lib/uniconv.h: Doc fixes.
21008         * lib/unictype.h: Doc fixes.
21009
21010 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
21011
21012         Port coreutils 7.2 to Solaris 8.
21013
21014         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
21015         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
21016         for Solaris 8.  This is a bit of a hack, as it means it's the
21017         caller's responsibility to add -lnsl if needed, but most likely it
21018         won't be needed since only getaddrinfo uses this and getaddrinfo
21019         isn't needed on Solaris 8.
21020
21021         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
21022         problem to Solaris 8 encountered with coreutils 7.2, which
21023         resulted in a message "fnmatch.c:292: warning: passing argument 4
21024         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
21025         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
21026
21027 2009-04-03  Simon Josefsson  <simon@josefsson.org>
21028
21029         * m4/ld-version-script.m4: Add FIXME comment.
21030
21031 2009-04-02  Simon Josefsson  <simon@josefsson.org>
21032
21033         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
21034         SOVERSION variable.
21035
21036 2009-04-02  Bruno Haible  <bruno@clisp.org>
21037
21038         * Makefile (info, html, dvi, pdf): Combine the rules.
21039         Suggested by Jim Meyering.
21040
21041 2009-04-01  Bruno Haible  <bruno@clisp.org>
21042
21043         * Makefile (info, html, dvi, pdf): New targets.
21044         Reported by Reuben Thomas <rrt@sc3d.org>.
21045
21046 2009-04-01  Bruno Haible  <bruno@clisp.org>
21047
21048         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
21049         can be put into PATH.
21050         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
21051
21052 2009-04-01  Bruno Haible  <bruno@clisp.org>
21053
21054         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
21055
21056 2009-04-01  Bruno Haible  <bruno@clisp.org>
21057
21058         Rename module 'visibility'.
21059         * modules/lib-symbol-visibility: Renamed from modules/visibility.
21060         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
21061         * doc/gnulib.texi: Update.
21062         * MODULES.html.sh (Misc): Update.
21063         * NEWS: Mention the change.
21064
21065 2009-04-01  Simon Josefsson  <simon@josefsson.org>
21066
21067         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
21068         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
21069         Eric Blake <ebb9@byu.net> for review.
21070         * MODULES.html.sh: Add lib-msvc-compat.
21071         * doc/gnulib.texi: Link to new section.
21072         * m4/ld-output-def.m4: New file.
21073         * doc/ld-output-def.texi: New file.
21074
21075 2009-04-01  Simon Josefsson  <simon@josefsson.org>
21076
21077         Rename ld-version-script to lib-symbol-versions.  Suggested by
21078         Bruno Haible <bruno@clisp.org>.
21079         * modules/ld-version-script: Renamed to lib-symbol-versions.
21080         * doc/ld-version-script.texi: Fix module name.
21081         * MODULES.html.sh: Add lib-symbol-versions.
21082
21083 2009-03-31  Simon Josefsson  <simon@josefsson.org>
21084
21085         * modules/u64-tests: New file.
21086         * tests/test-u64.c: New file.
21087
21088 2009-03-04  Simon Josefsson  <simon@josefsson.org>
21089
21090         * MODULES.html.sh: Mention u64.
21091         * modules/u64: New module.
21092         * modules/crypto/sha512: Depend on u64 module instead of providing
21093         u64.h.
21094
21095 2009-03-27  Eric Blake  <ebb9@byu.net>
21096
21097         test-strerror: make debugging EAI_SYSTEM easier
21098         * modules/getaddrinfo-tests (Depends-on): Add strerror.
21099         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
21100         failure was EAI_SYSTEM.
21101
21102 2009-03-25  Bruno Haible  <bruno@clisp.org>
21103
21104         Fix a problem with --enable-relocatable on Solaris 7.
21105         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
21106         since 2008-02-24.
21107
21108 2009-03-25  Eric Blake  <ebb9@byu.net>
21109
21110         test-sockets: avoid gcc warning
21111         * tests/test-sockets.c (main): Silence compiler warning.
21112
21113 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
21114
21115         New modules nproc, pthread, contributed by Glen Lenker.
21116
21117         * MODULES.html.sh: Add pthread, nproc.
21118         * lib/nproc.c: New file.
21119         * lib/nproc.h: New file.
21120         * lib/pthread.in.h: New file.
21121         * m4/pthread.m4: New file.
21122         * modules/nproc: New file.
21123         * modules/pthread: New file.
21124
21125 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21126
21127         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
21128         New variable.
21129
21130 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
21131
21132         filevercmp: handle simple~ and numbered.~3~ backup suffixes
21133         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
21134         * tests/test-filevercmp.c: Add tests for backup suffixes.
21135
21136 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21137
21138         * modules/stdlib (Depends-on): Add stdint, needed when defining
21139         struct random_data on, for example, HP-UX 10.20.  Reported by
21140         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21141
21142 2009-03-24  Simon Josefsson  <simon@josefsson.org>
21143
21144         * lib/readline.c (readline): Call fflush on stdout after printing
21145         prompt.
21146
21147 2009-03-20  Bruno Haible  <bruno@clisp.org>
21148
21149         Remove dependency from 'close' module to -lws2_32 on native Windows.
21150         * lib/close-hook.h: New file.
21151         * lib/close-hook.c: New file.
21152         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
21153         w32sock.h.
21154         (_gl_close_fd_maybe_socket): Remove function.
21155         (rpl_close): Invoke execute_all_close_hooks instead of
21156         _gl_close_fd_maybe_socket.
21157         * lib/sockets.c: Include close-hook.h, w32sock.h.
21158         (close_fd_maybe_socket): New function, essentially from lib/close.c.
21159         (close_sockets_hook): New variable.
21160         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
21161         (gl_sockets_cleanup): Unregister it.
21162         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
21163         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
21164         * modules/close-hook: New file.
21165         * modules/close (Files): Remove lib/w32sock.h.
21166         (Depends-on): Add close-hook.
21167         (Link): Remove section.
21168         * modules/sockets (Files): Add lib/w32sock.h.
21169         (Depends-on): Add close-hook.
21170         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
21171         invocation.
21172         * NEWS: Mention that LIB_CLOSE is gone.
21173
21174 2009-03-23  Eric Blake  <ebb9@byu.net>
21175
21176         signal-tests: test previous patch
21177         * tests/test-signal.c: New file.
21178         * modules/signal-tests: Likewise.
21179
21180         signal.h: always support 'volatile sig_atomic_t'
21181         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
21182         (gl_SIGNAL_H_DEFAULTS): Add a default.
21183         * modules/signal (Makefile.am): Substitute if needed.
21184         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
21185         users can blindly add volatile.
21186         * doc/posix-headers/signal.texi (signal.h): Document it.
21187         Reported by Matthew Woehlke.
21188
21189 2009-03-23  Jim Meyering  <meyering@redhat.com>
21190
21191         pathmax: PATH_MAX: use pathconf only when available
21192         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
21193         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
21194         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
21195         This avoids a link failure in a PSP cross-compilation environment
21196         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
21197
21198         * lib/vasnprintf.c (divide): Fix typo in comment.
21199
21200 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21201
21202         * gnulib-tool (func_filter_filelist): Fix comment.
21203
21204 2009-03-20  Bruno Haible  <bruno@clisp.org>
21205
21206         Make sockets.h self-contained.
21207         * lib/sockets.c: Include sockets.h first.
21208         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
21209
21210 2009-03-19  Eric Blake  <ebb9@byu.net>
21211
21212         doc: mention more functions added in cygwin 1.7.0
21213         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
21214         addition.
21215         * doc/posix-functions/log2f.texi: Likewise.
21216
21217 2009-03-19  Jim Meyering  <meyering@redhat.com>
21218
21219         fsusage: avoid syntax error due to statement-before-declaration
21220         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
21221         after all declarations.  Reported by Matthew Woehlke in
21222         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
21223
21224 2009-03-18  Eric Blake  <ebb9@byu.net>
21225
21226         build-aux/compile: sync from automake
21227         * build-aux/compile: New file, from automake.
21228         * config/srclist.txt: Mention build-aux/compile.
21229
21230 2009-03-17  Bruno Haible  <bruno@clisp.org>
21231
21232         * lib/git-merge-changelog.c: Fix typo in comment.
21233         Reported by Reuben Thomas <rrt@sc3d.org>.
21234
21235 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
21236
21237         * m4/regex.m4: update and improve help for
21238         --without-included-regex.
21239
21240 2009-03-17  Simon Josefsson  <simon@josefsson.org>
21241
21242         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
21243         failure on missing include files.
21244
21245 2009-03-17  Eric Blake  <ebb9@byu.net>
21246
21247         doc: mention more functions added in cygwin 1.7.0
21248         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
21249         addition.
21250         * doc/posix-functions/fwscanf.texi: Likewise.
21251         * doc/posix-functions/swprintf.texi: Likewise.
21252         * doc/posix-functions/swscanf.texi: Likewise.
21253         * doc/posix-functions/vfwprintf.texi: Likewise.
21254         * doc/posix-functions/vfwscanf.texi: Likewise.
21255         * doc/posix-functions/vswprintf.texi: Likewise.
21256         * doc/posix-functions/vswscanf.texi: Likewise.
21257         * doc/posix-functions/vwprintf.texi: Likewise.
21258         * doc/posix-functions/vwscanf.texi: Likewise.
21259         * doc/posix-functions/wcscasecmp.texi: Likewise.
21260         * doc/posix-functions/wcsdup.texi: Likewise.
21261         * doc/posix-functions/wcsftime.texi: Likewise.
21262         * doc/posix-functions/wcsncasecmp.texi: Likewise.
21263         * doc/posix-functions/wprintf.texi: Likewise.
21264         * doc/posix-functions/wscanf.texi: Likewise.
21265         * doc/glibc-functions/gethostbyname2.texi: Likewise.
21266
21267 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21268
21269         maint.mk: really add $(AM_MAKEFLAGS)
21270         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
21271         was inadvertently omitted in the last commit.
21272         Spotted by Bruno Haible.
21273
21274         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
21275         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
21276         $(AM_MAKEFLAGS)' rather than plain `make'.
21277
21278         gnulib-tool: execute $MAKE not make
21279         * gnulib-tool: Default $MAKE to 'make'.
21280         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
21281         than make.  Initialize $MAKE in the do-autobuild script.
21282
21283         gnulib-tool: use $MAKE not make in generated files
21284         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
21285         make, in generated files.  Initialize $MAKE in the do-autobuild
21286         script.
21287
21288         * top/GNUmakefile (_have-git-version-gen): Fix typo.
21289
21290         GNUmakefile: disable parallelism only for multiple, recursive targets
21291         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
21292         additions in the Makefile.
21293         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
21294         by Automake.
21295         (.NOTPARALLEL): Only disable parallel builds if multiple targets
21296         are listed on the command line and at least one of them is
21297         listed in $(ALL_RECURSIVE_TARGETS).
21298
21299 2009-03-14  Bruno Haible  <bruno@clisp.org>
21300
21301         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
21302         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
21303         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
21304         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
21305         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
21306         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
21307         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
21308         unistr/u8-uctomb.
21309         * modules/unistr/u8-strchr (Depends-on): Likewise.
21310         * modules/unistr/u8-strrchr (Depends-on): Likewise.
21311         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
21312         unistr/u16-uctomb.
21313         * modules/unistr/u16-strchr (Depends-on): Likewise.
21314         * modules/unistr/u16-strrchr (Depends-on): Likewise.
21315
21316 2009-03-12  Bruno Haible  <bruno@clisp.org>
21317
21318         Work around select() bug on Interix 3.5.
21319         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
21320         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
21321         * m4/select.m4: New file.
21322         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
21323         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
21324         * modules/select (Files): Add m4/select.m4.
21325         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
21326         * modules/nanosleep (Depends-on): Add select.
21327         * modules/poll (Depends-on): Likewise.
21328         * doc/posix-functions/select.texi: Mention the Interix bug.
21329         Reported by Markus Duft <mduft@gentoo.org>.
21330
21331         * lib/select.c: Renamed from lib/winsock-select.c.
21332         * modules/select (Files): Add lib/select.c, remove
21333         lib/winsock-select.c.
21334         (configure.ac): Update.
21335
21336 2009-03-12  Jim Meyering  <meyering@redhat.com>
21337
21338         avoid gcc warnings about unused macro definitions
21339         * lib/readtokens.c (STREQ): Remove unused definition.
21340         * lib/xmalloc.c (SIZE_MAX): Likewise.
21341         * lib/openat-die.c (N_): Likewise.
21342         * lib/mountlist.c (SIZE_MAX): Remove definition.
21343         Instead, include <stdint.h>.
21344         * lib/readutmp.c: Likewise.
21345         * modules/readutmp (Depends-on): Add stdint.
21346         * modules/mountlist (Depends-on): Add stdint.
21347         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
21348
21349 2009-03-10  Bruno Haible  <bruno@clisp.org>
21350
21351         Tests for module 'mbmemcasecoll'.
21352         * modules/mbmemcasecoll-tests: New file.
21353         * tests/test-mbmemcasecoll1.sh: New file.
21354         * tests/test-mbmemcasecoll2.sh: New file.
21355         * tests/test-mbmemcasecoll3.sh: New file.
21356         * tests/test-mbmemcasecoll.c: New file.
21357
21358         New module 'mbmemcasecoll'.
21359         * lib/mbmemcasecoll.h: New file.
21360         * lib/mbmemcasecoll.c: New file.
21361         * modules/mbmemcasecoll: New file.
21362
21363         * tests/test-mbmemcasecmp.h: New file, extracted from
21364         tests/test-mbmemcasecmp.c.
21365         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
21366         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
21367         (main): Update.
21368         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
21369
21370 2009-03-09  Bruno Haible  <bruno@clisp.org>
21371
21372         Tests for module 'mbmemcasecmp'.
21373         * modules/mbmemcasecmp-tests: New file.
21374         * tests/test-mbmemcasecmp1.sh: New file.
21375         * tests/test-mbmemcasecmp2.sh: New file.
21376         * tests/test-mbmemcasecmp3.sh: New file.
21377         * tests/test-mbmemcasecmp.c: New file.
21378
21379         New module 'mbmemcasecmp'.
21380         * lib/mbmemcasecmp.h: New file.
21381         * lib/mbmemcasecmp.c: New file.
21382         * modules/mbmemcasecmp: New file.
21383
21384 2009-03-09  Bruno Haible  <bruno@clisp.org>
21385
21386         Tests for module 'unicase/ulc-casecoll'.
21387         * modules/unicase/ulc-casecoll-tests: New file.
21388         * tests/unicase/test-ulc-casecoll1.sh: New file.
21389         * tests/unicase/test-ulc-casecoll2.sh: New file.
21390         * tests/unicase/test-ulc-casecoll.c: New file.
21391
21392         New module 'unicase/ulc-casecoll'.
21393         * lib/unicase.h (ulc_casecoll): New declaration.
21394         * lib/unicase/ulc-casecoll.c: New file.
21395         * modules/unicase/ulc-casecoll: New file.
21396
21397         New module 'unicase/ulc-casexfrm'.
21398         * lib/unicase.h (ulc_casexfrm): New declaration.
21399         * lib/unicase/ulc-casexfrm.c: New file.
21400         * modules/unicase/ulc-casexfrm: New file.
21401
21402 2009-03-09  Bruno Haible  <bruno@clisp.org>
21403
21404         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
21405         invocations.
21406
21407         * m4/mbscasecmp.m4: Remove file.
21408         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
21409         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
21410
21411         * m4/mbscasestr.m4: Remove file.
21412         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
21413         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
21414
21415         * m4/mbschr.m4: Remove file.
21416         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
21417         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
21418
21419         * m4/mbscspn.m4: Remove file.
21420         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
21421         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
21422
21423         * m4/mbslen.m4: Remove file.
21424         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
21425         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
21426
21427         * m4/mbsncasecmp.m4: Remove file.
21428         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
21429         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
21430
21431         * m4/mbsnlen.m4: Remove file.
21432         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
21433         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
21434
21435         * m4/mbspbrk.m4: Remove file.
21436         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
21437         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
21438
21439         * m4/mbspcasecmp.m4: Remove file.
21440         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
21441         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
21442
21443         * m4/mbsrchr.m4: Remove file.
21444         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
21445         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
21446
21447         * m4/mbssep.m4: Remove file.
21448         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
21449         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
21450
21451         * m4/mbsspn.m4: Remove file.
21452         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
21453         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
21454
21455         * m4/mbsstr.m4: Remove file.
21456         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
21457         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
21458
21459         * m4/mbstok_r.m4: Remove file.
21460         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
21461         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
21462
21463         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
21464
21465         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
21466         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
21467
21468         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
21469
21470 2009-03-08  Bruno Haible  <bruno@clisp.org>
21471
21472         Tests for module 'unicase/ulc-casecmp'.
21473         * modules/unicase/ulc-casecmp-tests: New file.
21474         * tests/unicase/test-ulc-casecmp1.sh: New file.
21475         * tests/unicase/test-ulc-casecmp2.sh: New file.
21476         * tests/unicase/test-ulc-casecmp.c: New file.
21477
21478         New module 'unicase/ulc-casecmp'.
21479         * lib/unicase.h (ulc_casecmp): New declaration.
21480         * lib/unicase/ulc-casecmp.c: New file.
21481         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
21482         'const SRC_UNIT *'.
21483         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
21484         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
21485         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
21486         * modules/unicase/ulc-casecmp: New file.
21487
21488         Tests for module 'unicase/u32-is-cased'.
21489         * modules/unicase/u32-is-cased-tests: New file.
21490         * tests/unicase/test-u32-is-cased.c: New file.
21491
21492         Tests for module 'unicase/u16-is-cased'.
21493         * modules/unicase/u16-is-cased-tests: New file.
21494         * tests/unicase/test-u16-is-cased.c: New file.
21495
21496         Tests for module 'unicase/u8-is-cased'.
21497         * modules/unicase/u8-is-cased-tests: New file.
21498         * tests/unicase/test-u8-is-cased.c: New file.
21499         * tests/unicase/test-is-cased.h: New file.
21500
21501         New module 'unicase/u32-is-cased'.
21502         * lib/unicase/u32-is-cased.c: New file.
21503         * modules/unicase/u32-is-cased: New file.
21504
21505         New module 'unicase/u16-is-cased'.
21506         * lib/unicase/u16-is-cased.c: New file.
21507         * modules/unicase/u16-is-cased: New file.
21508
21509         New module 'unicase/u8-is-cased'.
21510         * lib/unicase/u8-is-cased.c: New file.
21511         * lib/unicase/u-is-cased.h: New file.
21512         * modules/unicase/u8-is-cased: New file.
21513
21514         Tests for module 'unicase/u32-is-casefolded'.
21515         * modules/unicase/u32-is-casefolded-tests: New file.
21516         * tests/unicase/test-u32-is-casefolded.c: New file.
21517
21518         Tests for module 'unicase/u16-is-casefolded'.
21519         * modules/unicase/u16-is-casefolded-tests: New file.
21520         * tests/unicase/test-u16-is-casefolded.c: New file.
21521
21522         Tests for module 'unicase/u8-is-casefolded'.
21523         * modules/unicase/u8-is-casefolded-tests: New file.
21524         * tests/unicase/test-u8-is-casefolded.c: New file.
21525         * tests/unicase/test-is-casefolded.h: New file.
21526
21527         New module 'unicase/u32-is-casefolded'.
21528         * lib/unicase/u32-is-casefolded.c: New file.
21529         * modules/unicase/u32-is-casefolded: New file.
21530
21531         New module 'unicase/u16-is-casefolded'.
21532         * lib/unicase/u16-is-casefolded.c: New file.
21533         * modules/unicase/u16-is-casefolded: New file.
21534
21535         New module 'unicase/u8-is-casefolded'.
21536         * lib/unicase/u8-is-casefolded.c: New file.
21537         * modules/unicase/u8-is-casefolded: New file.
21538
21539         Tests for module 'unicase/u32-is-titlecase'.
21540         * modules/unicase/u32-is-titlecase-tests: New file.
21541         * tests/unicase/test-u32-is-titlecase.c: New file.
21542
21543         Tests for module 'unicase/u16-is-titlecase'.
21544         * modules/unicase/u16-is-titlecase-tests: New file.
21545         * tests/unicase/test-u16-is-titlecase.c: New file.
21546
21547         Tests for module 'unicase/u8-is-titlecase'.
21548         * modules/unicase/u8-is-titlecase-tests: New file.
21549         * tests/unicase/test-u8-is-titlecase.c: New file.
21550         * tests/unicase/test-is-titlecase.h: New file.
21551
21552         New module 'unicase/u32-is-titlecase'.
21553         * lib/unicase/u32-is-titlecase.c: New file.
21554         * modules/unicase/u32-is-titlecase: New file.
21555
21556         New module 'unicase/u16-is-titlecase'.
21557         * lib/unicase/u16-is-titlecase.c: New file.
21558         * modules/unicase/u16-is-titlecase: New file.
21559
21560         New module 'unicase/u8-is-titlecase'.
21561         * lib/unicase/u8-is-titlecase.c: New file.
21562         * modules/unicase/u8-is-titlecase: New file.
21563
21564         Tests for module 'unicase/u32-is-lowercase'.
21565         * modules/unicase/u32-is-lowercase-tests: New file.
21566         * tests/unicase/test-u32-is-lowercase.c: New file.
21567
21568         Tests for module 'unicase/u16-is-lowercase'.
21569         * modules/unicase/u16-is-lowercase-tests: New file.
21570         * tests/unicase/test-u16-is-lowercase.c: New file.
21571
21572         Tests for module 'unicase/u8-is-lowercase'.
21573         * modules/unicase/u8-is-lowercase-tests: New file.
21574         * tests/unicase/test-u8-is-lowercase.c: New file.
21575         * tests/unicase/test-is-lowercase.h: New file.
21576
21577         New module 'unicase/u32-is-lowercase'.
21578         * lib/unicase/u32-is-lowercase.c: New file.
21579         * modules/unicase/u32-is-lowercase: New file.
21580
21581         New module 'unicase/u16-is-lowercase'.
21582         * lib/unicase/u16-is-lowercase.c: New file.
21583         * modules/unicase/u16-is-lowercase: New file.
21584
21585         New module 'unicase/u8-is-lowercase'.
21586         * lib/unicase/u8-is-lowercase.c: New file.
21587         * modules/unicase/u8-is-lowercase: New file.
21588
21589         Tests for module 'unicase/u32-is-uppercase'.
21590         * modules/unicase/u32-is-uppercase-tests: New file.
21591         * tests/unicase/test-u32-is-uppercase.c: New file.
21592
21593         Tests for module 'unicase/u16-is-uppercase'.
21594         * modules/unicase/u16-is-uppercase-tests: New file.
21595         * tests/unicase/test-u16-is-uppercase.c: New file.
21596
21597         Tests for module 'unicase/u8-is-uppercase'.
21598         * modules/unicase/u8-is-uppercase-tests: New file.
21599         * tests/unicase/test-u8-is-uppercase.c: New file.
21600         * tests/unicase/test-is-uppercase.h: New file.
21601
21602         New module 'unicase/u32-is-uppercase'.
21603         * lib/unicase/u32-is-uppercase.c: New file.
21604         * modules/unicase/u32-is-uppercase: New file.
21605
21606         New module 'unicase/u16-is-uppercase'.
21607         * lib/unicase/u16-is-uppercase.c: New file.
21608         * modules/unicase/u16-is-uppercase: New file.
21609
21610         New module 'unicase/u8-is-uppercase'.
21611         * lib/unicase/u8-is-uppercase.c: New file.
21612         * modules/unicase/u8-is-uppercase: New file.
21613
21614         New module 'unicase/u32-is-invariant'.
21615         * lib/unicase/u32-is-invariant.c: New file.
21616         * modules/unicase/u32-is-invariant: New file.
21617
21618         New module 'unicase/u16-is-invariant'.
21619         * lib/unicase/u16-is-invariant.c: New file.
21620         * modules/unicase/u16-is-invariant: New file.
21621
21622         New module 'unicase/u8-is-invariant'.
21623         * lib/unicase/u8-is-invariant.c: New file.
21624         * lib/unicase/invariant.h: New file.
21625         * lib/unicase/u-is-invariant.h: New file.
21626         * modules/unicase/u8-is-invariant: New file.
21627
21628         Tests for module 'unicase/u32-casecoll'.
21629         * modules/unicase/u32-casecoll-tests: New file.
21630         * tests/unicase/test-u32-casecoll.c: New file.
21631
21632         Tests for module 'unicase/u16-casecoll'.
21633         * modules/unicase/u16-casecoll-tests: New file.
21634         * tests/unicase/test-u16-casecoll.c: New file.
21635
21636         Tests for module 'unicase/u8-casecoll'.
21637         * modules/unicase/u8-casecoll-tests: New file.
21638         * tests/unicase/test-u8-casecoll.c: New file.
21639
21640         New module 'unicase/u32-casecoll'.
21641         * lib/unicase/u32-casecoll.c: New file.
21642         * modules/unicase/u32-casecoll: New file.
21643
21644         New module 'unicase/u16-casecoll'.
21645         * lib/unicase/u16-casecoll.c: New file.
21646         * modules/unicase/u16-casecoll: New file.
21647
21648         New module 'unicase/u8-casecoll'.
21649         * lib/unicase/u8-casecoll.c: New file.
21650         * lib/unicase/u-casecoll.h: New file.
21651         * modules/unicase/u8-casecoll: New file.
21652
21653         New module 'unicase/u32-casexfrm'.
21654         * lib/unicase/u32-casexfrm.c: New file.
21655         * modules/unicase/u32-casexfrm: New file.
21656
21657         New module 'unicase/u16-casexfrm'.
21658         * lib/unicase/u16-casexfrm.c: New file.
21659         * modules/unicase/u16-casexfrm: New file.
21660
21661         New module 'unicase/u8-casexfrm'.
21662         * lib/unicase/u8-casexfrm.c: New file.
21663         * lib/unicase/u-casexfrm.h: New file.
21664         * modules/unicase/u8-casexfrm: New file.
21665
21666         Tests for module 'unicase/u32-casecmp'.
21667         * modules/unicase/u32-casecmp-tests: New file.
21668         * tests/unicase/test-u32-casecmp.c: New file.
21669
21670         Tests for module 'unicase/u16-casecmp'.
21671         * modules/unicase/u16-casecmp-tests: New file.
21672         * tests/unicase/test-u16-casecmp.c: New file.
21673
21674         Tests for module 'unicase/u8-casecmp'.
21675         * modules/unicase/u8-casecmp-tests: New file.
21676         * tests/unicase/test-u8-casecmp.c: New file.
21677         * tests/unicase/test-casecmp.h: New file.
21678
21679         New module 'unicase/u32-casecmp'.
21680         * lib/unicase/u32-casecmp.c: New file.
21681         * modules/unicase/u32-casecmp: New file.
21682
21683         New module 'unicase/u16-casecmp'.
21684         * lib/unicase/u16-casecmp.c: New file.
21685         * modules/unicase/u16-casecmp: New file.
21686
21687         New module 'unicase/u8-casecmp'.
21688         * lib/unicase/u8-casecmp.c: New file.
21689         * lib/unicase/u-casecmp.h: New file.
21690         * modules/unicase/u8-casecmp: New file.
21691
21692         Tests for module 'unicase/u32-casefold'.
21693         * modules/unicase/u32-casefold-tests: New file.
21694         * tests/unicase/test-u32-casefold.c: New file.
21695
21696         Tests for module 'unicase/u16-casefold'.
21697         * modules/unicase/u16-casefold-tests: New file.
21698         * tests/unicase/test-u16-casefold.c: New file.
21699
21700         Tests for module 'unicase/u8-casefold'.
21701         * modules/unicase/u8-casefold-tests: New file.
21702         * tests/unicase/test-u8-casefold.c: New file.
21703
21704         New module 'unicase/u32-casefold'.
21705         * lib/unicase/u32-casefold.c: New file.
21706         * modules/unicase/u32-casefold: New file.
21707
21708         New module 'unicase/u16-casefold'.
21709         * lib/unicase/u16-casefold.c: New file.
21710         * modules/unicase/u16-casefold: New file.
21711
21712         New module 'unicase/u8-casefold'.
21713         * lib/unicase/u8-casefold.c: New file.
21714         * lib/unicase/u-casefold.h: New file.
21715         * modules/unicase/u8-casefold: New file.
21716
21717         New module 'unicase/tocasefold'.
21718         * lib/unicase/casefold.h: New file.
21719         * lib/unicase/tocasefold.c: New file.
21720         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
21721         * modules/unicase/tocasefold: New file.
21722
21723         Tests for module 'unicase/u32-totitle'.
21724         * modules/unicase/u32-totitle-tests: New file.
21725         * tests/unicase/test-u32-totitle.c: New file.
21726
21727         Tests for module 'unicase/u16-totitle'.
21728         * modules/unicase/u16-totitle-tests: New file.
21729         * tests/unicase/test-u16-totitle.c: New file.
21730
21731         Tests for module 'unicase/u8-totitle'.
21732         * modules/unicase/u8-totitle-tests: New file.
21733         * tests/unicase/test-u8-totitle.c: New file.
21734
21735         New module 'unicase/u32-totitle'.
21736         * lib/unicase/u32-totitle.c: New file.
21737         * modules/unicase/u32-totitle: New file.
21738
21739         New module 'unicase/u16-totitle'.
21740         * lib/unicase/u16-totitle.c: New file.
21741         * modules/unicase/u16-totitle: New file.
21742
21743         New module 'unicase/u8-totitle'.
21744         * lib/unicase/u8-totitle.c: New file.
21745         * lib/unicase/u-totitle.h: New file.
21746         * modules/unicase/u8-totitle: New file.
21747
21748         Tests for module 'unicase/u32-tolower'.
21749         * modules/unicase/u32-tolower-tests: New file.
21750         * tests/unicase/test-u32-tolower.c: New file.
21751
21752         Tests for module 'unicase/u16-tolower'.
21753         * modules/unicase/u16-tolower-tests: New file.
21754         * tests/unicase/test-u16-tolower.c: New file.
21755
21756         Tests for module 'unicase/u8-tolower'.
21757         * modules/unicase/u8-tolower-tests: New file.
21758         * tests/unicase/test-u8-tolower.c: New file.
21759
21760         New module 'unicase/u32-tolower'.
21761         * lib/unicase/u32-tolower.c: New file.
21762         * modules/unicase/u32-tolower: New file.
21763
21764         New module 'unicase/u16-tolower'.
21765         * lib/unicase/u16-tolower.c: New file.
21766         * modules/unicase/u16-tolower: New file.
21767
21768         New module 'unicase/u8-tolower'.
21769         * lib/unicase/u8-tolower.c: New file.
21770         * modules/unicase/u8-tolower: New file.
21771
21772         Tests for module 'unicase/u32-toupper'.
21773         * modules/unicase/u32-toupper-tests: New file.
21774         * tests/unicase/test-u32-toupper.c: New file.
21775
21776         Tests for module 'unicase/u16-toupper'.
21777         * modules/unicase/u16-toupper-tests: New file.
21778         * tests/unicase/test-u16-toupper.c: New file.
21779
21780         Tests for module 'unicase/u8-toupper'.
21781         * modules/unicase/u8-toupper-tests: New file.
21782         * tests/unicase/test-u8-toupper.c: New file.
21783
21784         New module 'unicase/u32-toupper'.
21785         * lib/unicase/u32-toupper.c: New file.
21786         * modules/unicase/u32-toupper: New file.
21787
21788         New module 'unicase/u16-toupper'.
21789         * lib/unicase/u16-toupper.c: New file.
21790         * modules/unicase/u16-toupper: New file.
21791
21792         New module 'unicase/u8-toupper'.
21793         * lib/unicase/u8-toupper.c: New file.
21794         * modules/unicase/u8-toupper: New file.
21795
21796         New module 'unicase/u32-casemap'.
21797         * lib/unicase/u32-casemap.c: New file.
21798         * modules/unicase/u32-casemap: New file.
21799
21800         New module 'unicase/u16-casemap'.
21801         * lib/unicase/u16-casemap.c: New file.
21802         * modules/unicase/u16-casemap: New file.
21803
21804         New module 'unicase/u8-casemap'.
21805         * lib/unicase/unicasemap.h: New file.
21806         * lib/unicase/u8-casemap.c: New file.
21807         * lib/unicase/u-casemap.h: New file.
21808         * modules/unicase/u8-casemap: New file.
21809
21810         New module 'unicase/special-casing'.
21811         * lib/unicase/special-casing.h: New file.
21812         * lib/unicase/special-casing.c: New file.
21813         * lib/unicase/special-casing-table.gperf: New file, generated by
21814         gen-uni-tables.c.
21815         * modules/unicase/special-casing: New file.
21816
21817         Tests for module 'unicase/locale-language'.
21818         * modules/unicase/locale-language-tests: New file.
21819         * tests/unicase/test-locale-language.sh: New file.
21820         * tests/unicase/test-locale-language.c: New file.
21821
21822         New module 'unicase/locale-language'.
21823         * lib/unicase/locale-language.c: New file.
21824         * lib/unicase/locale-languages.gperf: New file.
21825         * modules/unicase/locale-language: New file.
21826
21827         Generate more tables for case conversion and case folding.
21828         * lib/gen-uni-tables.c (SCC_*): New enum items.
21829         (struct special_casing_rule): New type.
21830         (casing_rules, num_casing_rules, allocated_casing_rules): New
21831         variables.
21832         (add_casing_rule, fill_casing_rules): New functions.
21833         (struct casefold_rule): New type.
21834         (casefolding_rules, num_casefolding_rules,
21835         allocated_casefolding_rules): New variables.
21836         (fill_casefolding_rules): New function.
21837         (unicode_casefold): New variable.
21838         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
21839         sort_casing_rules, output_casing_rules): New functions.
21840         (main): Accept to more arguments: SpecialCasing.txt and
21841         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
21842         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
21843         Output mapping for casefolding.
21844
21845         * lib/unicase.h: Include stdbool.h, uninorm.h.
21846         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
21847         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
21848         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
21849         arguments.
21850         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
21851         resultp arguments.
21852         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
21853         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
21854         resultp arguments.
21855         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
21856         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
21857         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
21858         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
21859         declarations.
21860         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
21861
21862 2009-03-08  Bruno Haible  <bruno@clisp.org>
21863
21864         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21865         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
21866         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
21867         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21868
21869 2009-03-07  Bruno Haible  <bruno@clisp.org>
21870
21871         Adjust u*_normcmp, u*_normcoll API.
21872         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21873         u16_normcoll, u32_normcoll): Change failure conventions.
21874         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
21875         errno and return -1.
21876         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21877
21878 2009-03-07  Bruno Haible  <bruno@clisp.org>
21879
21880         Tests for module 'uninorm/u32-normcoll'.
21881         * modules/uninorm/u32-normcoll-tests: New file.
21882         * tests/uninorm/test-u32-normcoll.c: New file.
21883
21884         Tests for module 'uninorm/u16-normcoll'.
21885         * modules/uninorm/u16-normcoll-tests: New file.
21886         * tests/uninorm/test-u16-normcoll.c: New file.
21887
21888         Tests for module 'uninorm/u8-normcoll'.
21889         * modules/uninorm/u8-normcoll-tests: New file.
21890         * tests/uninorm/test-u8-normcoll.c: New file.
21891
21892 2009-03-07  Bruno Haible  <bruno@clisp.org>
21893
21894         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
21895         tests/uninorm/test-u32-normcmp.c.
21896         * tests/uninorm/test-u32-normcmp.c: Include it.
21897         (test_nonascii): New function, extracted from main. Add some more
21898         tests.
21899         (main): Invoke test_ascii and test_nonascii.
21900         * modules/uninorm/u32-normcmp-tests (Files): Add
21901         tests/uninorm/test-u32-normcmp.h.
21902         (Depends-on): Remove uninorm/u32-normcmp.
21903
21904         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
21905         tests/uninorm/test-u16-normcmp.c.
21906         * tests/uninorm/test-u16-normcmp.c: Include it.
21907         (test_nonascii): New function, extracted from main. Add some more
21908         tests.
21909         (main): Invoke test_ascii and test_nonascii.
21910         * modules/uninorm/u16-normcmp-tests (Files): Add
21911         tests/uninorm/test-u16-normcmp.h.
21912         (Depends-on): Remove uninorm/u16-normcmp.
21913
21914         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
21915         tests/uninorm/test-u8-normcmp.c.
21916         * tests/uninorm/test-u8-normcmp.c: Include it.
21917         (test_nonascii): New function, extracted from main. Add some more
21918         tests.
21919         (main): Invoke test_ascii and test_nonascii.
21920         * modules/uninorm/u8-normcmp-tests (Files): Add
21921         tests/uninorm/test-u8-normcmp.h.
21922         (Depends-on): Remove uninorm/u8-normcmp.
21923
21924 2009-03-07  Bruno Haible  <bruno@clisp.org>
21925
21926         New module 'uninorm/u32-normcoll'.
21927         * lib/uninorm/u32-normcoll.c: New file.
21928         * modules/uninorm/u32-normcoll: New file.
21929
21930         New module 'uninorm/u16-normcoll'.
21931         * lib/uninorm/u16-normcoll.c: New file.
21932         * modules/uninorm/u16-normcoll: New file.
21933
21934         New module 'uninorm/u8-normcoll'.
21935         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
21936         declarations.
21937         * lib/uninorm/u8-normcoll.c: New file.
21938         * lib/uninorm/u-normcoll.h: New file.
21939         * modules/uninorm/u8-normcoll: New file.
21940
21941         New module 'uninorm/u32-normxfrm'.
21942         * lib/uninorm/u32-normxfrm.c: New file.
21943         * modules/uninorm/u32-normxfrm: New file.
21944
21945         New module 'uninorm/u16-normxfrm'.
21946         * lib/uninorm/u16-normxfrm.c: New file.
21947         * modules/uninorm/u16-normxfrm: New file.
21948
21949         New module 'uninorm/u8-normxfrm'.
21950         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
21951         declarations.
21952         * lib/uninorm/u8-normxfrm.c: New file.
21953         * lib/uninorm/u-normxfrm.h: New file.
21954         * modules/uninorm/u8-normxfrm: New file.
21955
21956 2009-03-07  Bruno Haible  <bruno@clisp.org>
21957
21958         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
21959         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
21960         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
21961
21962 2009-03-07  Bruno Haible  <bruno@clisp.org>
21963
21964         New module 'memxfrm'.
21965         * lib/memxfrm.h: New file.
21966         * lib/memxfrm.c: New file.
21967         * modules/memxfrm: New file.
21968
21969 2009-03-07  Bruno Haible  <bruno@clisp.org>
21970
21971         New module 'memcmp2'.
21972         * lib/memcmp2.h: New file.
21973         * lib/memcmp2.c: New file.
21974         * modules/memcmp2: New file.
21975
21976 2009-03-07  Bruno Haible  <bruno@clisp.org>
21977
21978         Tests for module 'uninorm/decomposing-form'.
21979         * modules/uninorm/decomposing-form-tests: New file.
21980         * tests/uninorm/test-decomposing-form.c: New file.
21981
21982         New module 'uninorm/decomposing-form'.
21983         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
21984         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
21985         Add 'decomposing_variant' field.
21986         * lib/uninorm/decomposing-form.c: New file.
21987         * lib/uninorm/nfc.c (uninorm_nfc): Update.
21988         * lib/uninorm/nfd.c (uninorm_nfd): Update.
21989         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
21990         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
21991         * modules/uninorm/decomposing-form: New file.
21992         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
21993         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
21994
21995 2009-03-07  Bruno Haible  <bruno@clisp.org>
21996
21997         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
21998         strings.
21999
22000 2009-03-06  Bruno Haible  <bruno@clisp.org>
22001
22002         Tests for module 'uninorm/u32-normcmp'.
22003         * tests/uninorm/test-u32-normcmp.c: New file.
22004         * modules/uninorm/u32-normcmp-tests: New file.
22005
22006         Tests for module 'uninorm/u16-normcmp'.
22007         * tests/uninorm/test-u16-normcmp.c: New file.
22008         * modules/uninorm/u16-normcmp-tests: New file.
22009
22010         Tests for module 'uninorm/u8-normcmp'.
22011         * tests/uninorm/test-u8-normcmp.c: New file.
22012         * modules/uninorm/u8-normcmp-tests: New file.
22013
22014         New module 'uninorm/u32-normcmp'.
22015         * lib/uninorm/u32-normcmp.c: New file.
22016         * modules/uninorm/u32-normcmp: New file.
22017
22018         New module 'uninorm/u16-normcmp'.
22019         * lib/uninorm/u16-normcmp.c: New file.
22020         * modules/uninorm/u16-normcmp: New file.
22021
22022         New module 'uninorm/u8-normcmp'.
22023         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
22024         declarations.
22025         * lib/uninorm/u8-normcmp.c: New file.
22026         * lib/uninorm/u-normcmp.h: New file.
22027         * modules/uninorm/u8-normcmp: New file.
22028
22029 2009-03-06  Bruno Haible  <bruno@clisp.org>
22030
22031         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
22032         Reported by Eric Blake.
22033
22034 2009-03-06  Eric Blake  <ebb9@byu.net>
22035             Bruno Haible  <bruno@clisp.org>
22036
22037         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
22038         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
22039         condition.
22040         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
22041         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
22042         condition.
22043         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
22044
22045 2009-03-06  Eric Blake  <ebb9@byu.net>
22046
22047         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
22048         to avoid compiler warnings.
22049         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
22050
22051 2009-03-05  Bruno Haible  <bruno@clisp.org>
22052
22053         * tests/test-ftell.c (main): Disable test beyond end of file on
22054         FreeMiNT.
22055         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22056
22057 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
22058
22059         * lib/filevercmp.c: Move hidden files up in ordering.
22060         * tests/test-filevercmp.c: Add tests for hidden files.
22061
22062 2009-03-04  Bruno Haible  <bruno@clisp.org>
22063
22064         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
22065         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
22066         AM_CFLAGS.
22067         Reported by Simon Josefsson.
22068
22069 2009-03-03  Bruno Haible  <bruno@clisp.org>
22070
22071         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
22072         Reported by Simon Josefsson.
22073
22074         * doc/ld-version-script.texi: Update node reference.
22075
22076 2009-03-03  Bruno Haible  <bruno@clisp.org>
22077
22078         * modules/visibility (License): Change to 'unlimited'.
22079         Suggested by Simon Josefsson.
22080
22081 2009-03-03  Jim Meyering  <meyering@redhat.com>
22082
22083         unlinkdir: cannot_unlink_dir may modify process state
22084         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
22085         it's neither thread-safe nor appropriate for use in a library.
22086
22087 2009-03-03  Eric Blake  <ebb9@byu.net>
22088
22089         test-closein: silence test under Darwin
22090         * tests/test-closein.sh: Ignore stderr from cat, since we don't
22091         care if it dies from EPIPE or EBADF.
22092
22093 2009-03-03  Bruno Haible  <bruno@clisp.org>
22094
22095         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
22096         earlier.
22097         * doc/visibility.texi: Fix @node and @section.
22098
22099 2009-03-03  Simon Josefsson  <simon@josefsson.org>
22100
22101         * doc/gnulib.texi: Link to sections for ld version script and
22102         visibility.
22103         * doc/visibility.texi: Add @node and @section.
22104         * modules/ld-version-script: New module.
22105         * m4/ld-version-script.m4: New file.
22106         * doc/ld-version-script.texi: New file.
22107
22108 2009-03-02  David Lutterkort  <lutter@redhat.com>
22109
22110         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
22111         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22112
22113 2009-03-02  Bruno Haible  <bruno@clisp.org>
22114
22115         * doc/visibility.texi: Mention libtool's -export-symbols option.
22116
22117 2009-03-02  Jim Meyering  <meyering@redhat.com>
22118
22119         announce-gen: new option: --no-print-checksums
22120         * build-aux/announce-gen (usage): Describe it.
22121         (print_checksums): Print a newline here, not in the [*] footnote.
22122         (main): Honor it.
22123
22124 2009-03-01  Bruno Haible  <bruno@clisp.org>
22125
22126         Use socklen_t in the native Windows replacements prototypes.
22127         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
22128         instead of 'int'.
22129         * lib/getsockopt.c (rpl_getsockopt): Likewise.
22130         * lib/setsockopt.c (rpl_setsockopt): Likewise.
22131         * modules/getsockopt (Depends-on): Add socklen.
22132         * modules/setsockopt (Depends-on): Add socklen.
22133
22134 2009-03-01  Bruno Haible  <bruno@clisp.org>
22135
22136         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
22137         least 4.2.
22138
22139 2009-03-01  Eric Blake  <ebb9@byu.net>
22140             Bruno Haible  <bruno@clisp.org>
22141
22142         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
22143         error messages.
22144         * lib/wait-process.c (wait_subprocess): Omit error message about
22145         deadly signal sent to the child of termsigp != NULL.
22146
22147 2009-03-01  Eric Blake  <ebb9@byu.net>
22148
22149         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
22150
22151 2009-03-01  Bruno Haible  <bruno@clisp.org>
22152
22153         Avoid a gcc warning.
22154         * tests/test-sched.c (b): Make global.
22155         Reported by Eric Blake.
22156
22157 2009-01-19  Martin Lambers  <marlam@marlam.de>
22158
22159         Provide POSIX semantics for socket timeout options on W32.
22160         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
22161         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
22162         * modules/setsockopt: Depend on sys_time module for struct timeval.
22163         * modules/getsockopt: Depend on sys_time module for struct timeval.
22164
22165 2009-03-01  Simon Josefsson  <simon@josefsson.org>
22166
22167         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
22168         __USE_GNU, for consistency with netdb.in.h.
22169         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22170
22171 2009-03-01  Bruno Haible  <bruno@clisp.org>
22172
22173         More support for FreeMiNT.
22174         * lib/fseeko.c (rpl_fseeko): Complete last commit.
22175         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22176
22177 2009-03-01  Bruno Haible  <bruno@clisp.org>
22178
22179         More support for FreeMiNT.
22180         * lib/fpurge.c (fpurge): Correct last commit.
22181         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22182
22183 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22184
22185         Fix unportable awk script in vc-list-files.
22186         * build-aux/vc-list-files: In the replacement awk script, use
22187         substr with a second argument of 1, not zero.
22188         Report by Simon Josefsson.
22189
22190 2009-02-28  Bruno Haible  <bruno@clisp.org>
22191
22192         More support for FreeMiNT.
22193         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
22194         to FreeMiNT today.
22195         * lib/fwriting.c (fwriting): Likewise.
22196         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
22197
22198 2009-02-28  Bruno Haible  <bruno@clisp.org>
22199
22200         * tests/test-freadseek.c (main): Disable test beyond end of file on
22201         FreeMiNT.
22202         * tests/test-ftello.c (main): Likewise.
22203         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
22204
22205 2009-02-28  Bruno Haible  <bruno@clisp.org>
22206
22207         Add tentative support for FreeMiNT.
22208         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
22209         * lib/fpurge.c (fpurge): Likewise.
22210         * lib/freadable.c (freadable): Likewise.
22211         * lib/freading.c (freading): Likewise.
22212         * lib/freadptr.c (freadptr): Likewise.
22213         * lib/freadseek.c (freadptrinc): Likewise.
22214         * lib/fseeko.c (rpl_fseeko): Likewise.
22215         * lib/fseterr.c (fseterr): Likewise.
22216         * lib/fwritable.c (fwritable): Likewise.
22217         * lib/fwriting.c (fwriting): Likewise.
22218         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
22219         Hourihane.
22220         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
22221
22222 2009-02-28  Bruno Haible  <bruno@clisp.org>
22223
22224         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
22225         SIGCHLD.
22226         Reported by Jim Meyering.
22227
22228 2009-02-28  Bruno Haible  <bruno@clisp.org>
22229
22230         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
22231         Mention the results of these tests on various platforms.
22232         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
22233         order.
22234         * doc/posix-functions/printf.texi: Likewise.
22235         * doc/posix-functions/snprintf.texi: Likewise.
22236         * doc/posix-functions/sprintf.texi: Likewise.
22237         * doc/posix-functions/vfprintf.texi: Likewise.
22238         * doc/posix-functions/vprintf.texi: Likewise.
22239         * doc/posix-functions/vsnprintf.texi: Likewise.
22240         * doc/posix-functions/vsprintf.texi: Likewise.
22241         * doc/glibc-functions/obstack_printf.texi: Likewise.
22242         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22243
22244 2009-02-28  Bruno Haible  <bruno@clisp.org>
22245
22246         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
22247         Reported by Loïc Minier <lool@dooz.org>.
22248
22249 2009-02-27  Bruno Haible  <bruno@clisp.org>
22250
22251         * gnulib-tool (func_import): Make the sed expression used to create the
22252         sed script for updating the .gitignore file POSIX compliant.
22253         Reported by Eric Blake.
22254
22255 2009-02-27  Bruno Haible  <bruno@clisp.org>
22256
22257         * gnulib-tool (sed): Don't alias as "sed --posix".
22258         Reported by Eric Blake.
22259
22260 2009-02-27  Bruno Haible  <bruno@clisp.org>
22261
22262         Avoid test link errors.
22263         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
22264         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
22265         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
22266         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
22267         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22268
22269 2009-02-27  Bruno Haible  <bruno@clisp.org>
22270
22271         Avoid spurious "(cached)" in configure output.
22272         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
22273         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
22274         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22275         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22276         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22277         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22278         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22279         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22280         Reported by Eric Blake.
22281
22282 2009-02-27  Eric Blake  <ebb9@byu.net>
22283
22284         printf: fix regression in previous patch
22285         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
22286
22287 2009-02-27  Bruno Haible  <bruno@clisp.org>
22288
22289         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
22290         value.
22291         * lib/stdint.in.h: Likewise.
22292         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
22293
22294 2009-02-27  Eric Blake  <ebb9@byu.net>
22295
22296         doc: mention more functions added in cygwin 1.7.0
22297         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
22298         addition.
22299         * doc/posix-functions/open_wmemstream.texi: Likewise.
22300         * doc/posix-functions/wcsnlen.texi: Likewise.
22301         * doc/posix-functions/wcsnrtombs.texi: Likewise.
22302         * doc/posix-functions/wcstod.texi: Likewise.
22303         * doc/posix-functions/wcstof.texi: Likewise.
22304         * doc/posix-functions/wcstoimax.texi: Likewise.
22305         * doc/posix-functions/wcstok.texi: Likewise.
22306         * doc/posix-functions/wcstoumax.texi: Likewise.
22307
22308         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
22309         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
22310         * doc/posix-functions/fprintf.texi: Update.
22311         * doc/posix-functions/printf.texi: Update.
22312         * doc/posix-functions/snprintf.texi: Update.
22313         * doc/posix-functions/sprintf.texi: Update.
22314         * doc/posix-functions/vfprintf.texi: Update.
22315         * doc/posix-functions/vprintf.texi: Update.
22316         * doc/posix-functions/vsnprintf.texi: Update.
22317         * doc/posix-functions/vsprintf.texi: Update.
22318         * doc/glibc-functions/obstack_printf.texi: Update.
22319         * doc/glibc-functions/obstack_vprintf.texi: Update.
22320
22321 2009-02-26  Eric Blake  <ebb9@byu.net>
22322
22323         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
22324         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
22325         compilation bug by using runtime conversion.
22326         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
22327         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
22328         * modules/ceill-tests (Files): Use nan.h.
22329         * modules/floorl-tests (Files): Likewise.
22330         * modules/frexpl-tests (Files): Likewise.
22331         * modules/isnanl-tests (Files): Likewise.
22332         * modules/ldexpl-tests (Files): Likewise.
22333         * modules/roundl-tests (Files): Likewise.
22334         * modules/truncl-tests (Files): Likewise.
22335         * tests/test-ceill.c (main): Use a working NaN.
22336         * tests/test-floorl.c (main): Likewise.
22337         * tests/test-frexpl.c (main): Likewise.
22338         * tests/test-isnan.c (test_long_double): Likewise.
22339         * tests/test-isnanl.h (main): Likewise.
22340         * tests/test-ldexpl.h (main): Likewise.
22341         * tests/test-roundl.h (main): Likewise.
22342         * tests/test-truncl.h (main): Likewise.
22343         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
22344
22345 2009-02-26  Eric Blake  <ebb9@byu.net>
22346             Bruno Haible  <bruno@clisp.org>
22347
22348         Work around a *printf bug with %ls on Solaris.
22349         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
22350         precision is specified, sprintf stops converting the wide string
22351         argument when the number of bytes that have been produced by this
22352         conversion equals or exceeds the precision.
22353         * doc/posix-functions/fprintf.texi: Update.
22354         * doc/posix-functions/printf.texi: Update.
22355         * doc/posix-functions/snprintf.texi: Update.
22356         * doc/posix-functions/sprintf.texi: Update.
22357         * doc/posix-functions/vfprintf.texi: Update.
22358         * doc/posix-functions/vprintf.texi: Update.
22359         * doc/posix-functions/vsnprintf.texi: Update.
22360         * doc/posix-functions/vsprintf.texi: Update.
22361         * doc/glibc-functions/obstack_printf.texi: Update.
22362         * doc/glibc-functions/obstack_vprintf.texi: Update.
22363
22364 2009-02-26  Eric Blake  <ebb9@byu.net>
22365
22366         stdlib: favor compiler check of random.h
22367         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
22368         to avoid an ObjC random.h installed by Swarm.
22369
22370 2009-02-26  Bruno Haible  <bruno@clisp.org>
22371
22372         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
22373         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
22374         Reported by Gary V. Vaughan <gary@gnu.org>.
22375
22376 2009-02-26  Bruno Haible  <bruno@clisp.org>
22377
22378         Fix *printf behaviour regarding the %ls directive.
22379         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
22380         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
22381         NEED_PRINTF_DIRECTIVE_LS.
22382         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
22383         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
22384         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22385         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
22386         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
22387         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
22388         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22389         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22390         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22391         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22392         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22393         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
22394         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22395         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22396         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22397         * doc/posix-functions/fprintf.texi: Update.
22398         * doc/posix-functions/printf.texi: Update.
22399         * doc/posix-functions/snprintf.texi: Update.
22400         * doc/posix-functions/sprintf.texi: Update.
22401         * doc/posix-functions/vfprintf.texi: Update.
22402         * doc/posix-functions/vprintf.texi: Update.
22403         * doc/posix-functions/vsnprintf.texi: Update.
22404         * doc/posix-functions/vsprintf.texi: Update.
22405         * doc/glibc-functions/obstack_printf.texi: Update.
22406         * doc/glibc-functions/obstack_vprintf.texi: Update.
22407         Reported by Eric Blake.
22408
22409 2009-02-25  Bruno Haible  <bruno@clisp.org>
22410
22411         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
22412         with known value.
22413         Reported by Gary V. Vaughan <gary@gnu.org>.
22414
22415 2009-02-25  Bruno Haible  <bruno@clisp.org>
22416
22417         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
22418         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
22419         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
22420         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
22421         Reported by Gary V. Vaughan <gary@gnu.org>.
22422
22423 2009-02-25  Bruno Haible  <bruno@clisp.org>
22424
22425         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
22426         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
22427         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
22428         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
22429         Reported by Gary V. Vaughan <gary@gnu.org>.
22430
22431 2009-02-25  Eric Blake  <ebb9@byu.net>
22432
22433         tests: skip fseek/ftell tests if ungetc is broken
22434         * m4/ungetc.m4: New file.
22435         * modules/fseek-tests: Split test, so ungetc dependency is
22436         separate from rest of test.
22437         * modules/fseeko-tests: Likewise.
22438         * modules/ftell-tests: Likewise.
22439         * modules/ftello-tests: Likewise.
22440         * tests/test-fseek.c (main): Isolate ungetc dependency.
22441         * tests/test-fseeko.c (main): Likewise.
22442         * tests/test-ftell.c (main): Likewise.
22443         * tests/test-ftello.c (main): Likewise.
22444         * tests/test-fseek2.sh: New file.
22445         * tests/test-fseeko2.sh: Likewise.
22446         * tests/test-ftell2.sh: Likewise.
22447         * tests/test-ftello2.sh: Likewise.
22448
22449 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
22450
22451         test-getaddrinfo: fix usage of skip return code 77
22452         * tests/test-gettaddrinfo.c: Return skip code 77 only
22453         for first occurance of skip (4x77 is not 77)
22454
22455 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
22456
22457         strtod: avoid C99 decl-after-statement
22458         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
22459
22460 2009-02-24  Eric Blake  <ebb9@byu.net>
22461
22462         strtod: detect HP-UX 11.31 bug
22463         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
22464         Reported by Gary V. Vaughan.
22465
22466 2009-02-23  Bruno Haible  <bruno@clisp.org>
22467
22468         Fix invalid read past end of memory block.
22469         * lib/vasnprintf.c (DCHAR_SET): Define.
22470         (local_wcslen): Define only when needed.
22471         (local_strnlen, local_wcsnlen): New functions.
22472         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
22473         directives that involve a conversion ourselves.
22474         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
22475         wcsnlen, mbrtowc, wcrtomb.
22476         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
22477         * tests/test-vasprintf-posix.c (test_function): Likewise.
22478         * tests/test-snprintf-posix.h (test_function): Likewise.
22479         * tests/test-sprintf-posix.h (test_function): Likewise.
22480         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22481
22482 2009-02-22  Bruno Haible  <bruno@clisp.org>
22483
22484         Implement new clarified decomposition of Hangul syllables.
22485         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
22486         of type LTV, return only a pairwise decomposition.
22487         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
22488         Likewise.
22489         * tests/uninorm/test-decomposition.c (main): Updated expected result.
22490         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
22491         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
22492
22493 2009-02-22  Bruno Haible  <bruno@clisp.org>
22494
22495         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
22496         zero-length results and shrink excess allocated memory.
22497         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
22498         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
22499         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
22500         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
22501         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
22502         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
22503         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
22504         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
22505         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
22506         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
22507         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
22508         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
22509
22510 2009-02-21  Bruno Haible  <bruno@clisp.org>
22511
22512         * doc/gnulib.texi: Include safe-alloc.texi earlier.
22513         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
22514         spaces after a period. Put a space between a macro name and its
22515         argument list. Trivial rewordings.
22516         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
22517         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
22518         (main): Return 0 explicitly.
22519
22520 2009-02-21  Bruno Haible  <bruno@clisp.org>
22521
22522         Tests for module 'uninorm/filter'.
22523         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
22524         * modules/uninorm/filter-tests: New file.
22525
22526         New module 'uninorm/filter'.
22527         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
22528         uninorm_filter_flush, uninorm_filter_free): New declarations.
22529         * lib/uninorm/uninorm-filter.c: New file.
22530         * modules/uninorm/filter: New file.
22531
22532 2009-02-21  Bruno Haible  <bruno@clisp.org>
22533
22534         Tests for module 'uninorm/nfkc'.
22535         * tests/uninorm/test-nfkc.c: New file.
22536         * tests/uninorm/test-u8-nfkc.c: New file.
22537         * tests/uninorm/test-u16-nfkc.c: New file.
22538         * tests/uninorm/test-u32-nfkc.c: New file.
22539         * tests/uninorm/test-u32-nfkc-big.sh: New file.
22540         * tests/uninorm/test-u32-nfkc-big.c: New file.
22541         * modules/uninorm/nfkc-tests: New file.
22542
22543         New module 'uninorm/nfkc'.
22544         * lib/uninorm/nfkc.c: New file.
22545         * modules/uninorm/nfkc: New file.
22546
22547         Tests for module 'uninorm/nfkd'.
22548         * tests/uninorm/test-nfkd.c: New file.
22549         * tests/uninorm/test-u8-nfkd.c: New file.
22550         * tests/uninorm/test-u16-nfkd.c: New file.
22551         * tests/uninorm/test-u32-nfkd.c: New file.
22552         * tests/uninorm/test-u32-nfkd-big.sh: New file.
22553         * tests/uninorm/test-u32-nfkd-big.c: New file.
22554         * modules/uninorm/nfkd-tests: New file.
22555
22556         New module 'uninorm/nfkd'.
22557         * lib/uninorm/nfkd.c: New file.
22558         * modules/uninorm/nfkd: New file.
22559
22560         Tests for module 'uninorm/nfc'.
22561         * tests/uninorm/test-nfc.c: New file.
22562         * tests/uninorm/test-u8-nfc.c: New file.
22563         * tests/uninorm/test-u16-nfc.c: New file.
22564         * tests/uninorm/test-u32-nfc.c: New file.
22565         * tests/uninorm/test-u32-nfc-big.sh: New file.
22566         * tests/uninorm/test-u32-nfc-big.c: New file.
22567         * modules/uninorm/nfc-tests: New file.
22568
22569         New module 'uninorm/nfc'.
22570         * lib/uninorm/nfc.c: New file.
22571         * modules/uninorm/nfc: New file.
22572
22573         Tests for module 'uninorm/nfd'.
22574         * tests/uninorm/test-nfd.c: New file.
22575         * tests/uninorm/test-u8-nfd.c: New file.
22576         * tests/uninorm/test-u16-nfd.c: New file.
22577         * tests/uninorm/test-u32-nfd.c: New file.
22578         * tests/uninorm/test-u32-nfd-big.sh: New file.
22579         * tests/uninorm/test-u32-nfd-big.c: New file.
22580         * tests/uninorm/test-u32-normalize-big.h: New file.
22581         * tests/uninorm/test-u32-normalize-big.c: New file.
22582         * tests/uninorm/NormalizationTest.txt: New file, created from
22583         Unicode 5.1.0 NormalizationTest.txt.
22584         * modules/uninorm/nfd-tests: New file.
22585
22586         New module 'uninorm/nfd'.
22587         * lib/uninorm/nfd.c: New file.
22588         * modules/uninorm/nfd: New file.
22589
22590         New module 'uninorm/u32-normalize'.
22591         * lib/uninorm/u32-normalize.c: New file.
22592         * modules/uninorm/u32-normalize: New file.
22593
22594         New module 'uninorm/u16-normalize'.
22595         * lib/uninorm/u16-normalize.c: New file.
22596         * modules/uninorm/u16-normalize: New file.
22597
22598         New module 'uninorm/u8-normalize'.
22599         * lib/uninorm/u8-normalize.c: New file.
22600         * lib/uninorm/normalize-internal.h: New file.
22601         * lib/uninorm/u-normalize-internal.h: New file.
22602         * modules/uninorm/u8-normalize: New file.
22603
22604         New module 'uninorm/decompose-internal'.
22605         * lib/uninorm/decompose-internal.c: New file.
22606         * modules/uninorm/decompose-internal: New file.
22607
22608         Tests for module 'uninorm/composition'.
22609         * tests/uninorm/test-composition.c: New file.
22610         * modules/uninorm/composition-tests: New file.
22611
22612         New module 'uninorm/composition'.
22613         * lib/uninorm/composition.c: New file.
22614         * lib/uninorm/composition-table.gperf: New file, generated by
22615         gen-uni-tables.
22616         * modules/uninorm/composition: New file.
22617
22618         Tests for module 'uninorm/compat-decomposition'.
22619         * tests/uninorm/test-compat-decomposition.c: New file.
22620         * modules/uninorm/compat-decomposition-tests: New file.
22621
22622         New module 'uninorm/compat-decomposition'.
22623         * lib/uninorm/decompose-internal.h: New file.
22624         * lib/uninorm/compat-decomposition.c: New file.
22625         * modules/uninorm/compat-decomposition: New file.
22626
22627         Tests for module 'uninorm/canonical-decomposition'.
22628         * tests/uninorm/test-canonical-decomposition.c: New file.
22629         * modules/uninorm/canonical-decomposition-tests: New file.
22630
22631         New module 'uninorm/canonical-decomposition'.
22632         * lib/uninorm/canonical-decomposition.c: New file.
22633         * modules/uninorm/canonical-decomposition: New file.
22634
22635         Tests for module 'uninorm/decomposition'.
22636         * tests/uninorm/test-decomposition.c: New file.
22637         * modules/uninorm/decomposition-tests: New file.
22638
22639         New module 'uninorm/decomposition'.
22640         * lib/uninorm/decomposition.c: New file.
22641         * modules/uninorm/decomposition: New file.
22642
22643         New module 'uninorm/decomposition-table'.
22644         * lib/uninorm/decomposition-table.h: New file.
22645         * lib/uninorm/decomposition-table.c: New file.
22646         * lib/uninorm/decomposition-table1.h: New file, generated by
22647         gen-uni-tables.
22648         * lib/uninorm/decomposition-table2.h: New file, generated by
22649         gen-uni-tables.
22650         * modules/uninorm/decomposition-table: New file.
22651
22652         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
22653         (UC_DECOMP_*): New enumeration items.
22654         (get_decomposition): New function.
22655         (struct decomp_table): New type.
22656         (output_decomposition, output_decomposition_tables): New functions.
22657         (unicode_composition_exclusions): New variable.
22658         (fill_composition_exclusions, debug_output_composition_tables): New
22659         functions.
22660         (main): Accept one more argument. Invoke fill_composition_exclusions.
22661         Output decomposition and composition tables.
22662
22663         New module 'uninorm/base'.
22664         * lib/uninorm.h: New file.
22665         * lib/unictype.h: Update comment.
22666         * modules/uninorm/base: New file.
22667
22668 2009-02-21  David Lutterkort  <lutter@redhat.com>
22669
22670         Tests for module 'safe-alloc'.
22671         * tests/test-safe-alloc.c: New file.
22672         * modules/safe-alloc-tests: New file.
22673
22674         New module 'safe-alloc'.
22675         * lib/safe-alloc.h: New file.
22676         * lib/safe-alloc.c: New file.
22677         * m4/safe-alloc.m4: New file.
22678         * modules/safe-alloc: New file.
22679         * doc/safe-alloc.texi: New file.
22680         * doc/gnulib.texi: Include it.
22681         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22682         safe-alloc.
22683
22684 2009-02-18  Bruno Haible  <bruno@clisp.org>
22685
22686         Fix link error on non-glibc systems.
22687         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
22688         variable.
22689         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22690
22691 2009-02-18  Jim Meyering  <meyering@redhat.com>
22692
22693         fts: avoid used-uninitialized error due to recent change
22694         * lib/fts.c (fts_read): Guard uses of the new member,
22695         parent->fts_n_dirs_remaining, since it's not relevant for
22696         the parent of a directory specified on the command-line.
22697
22698 2009-02-17  James Youngman  <jay@gnu.org>
22699             Bruno Haible  <bruno@clisp.org>
22700
22701         * m4/include_next.m4: Reformulate comment.
22702
22703 2009-02-16  Jim Meyering  <meyering@redhat.com>
22704
22705         fts: add #if guards so that the fts_lgpl module still builds
22706         * lib/fts.c: Guard just-added hash-table-using parts with
22707         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
22708         Reported by Simon Josefsson.
22709
22710 2009-02-15  Bruno Haible  <bruno@clisp.org>
22711
22712         * modules/array-mergesort-tests: New file.
22713         * tests/test-array-mergesort.c: New file.
22714
22715         New module 'array-mergesort'.
22716         * modules/array-mergesort: New file.
22717         * lib/array-mergesort.h: New file.
22718
22719 2009-02-15  Bruno Haible  <bruno@clisp.org>
22720
22721         Fix 2009-02-07 commit.
22722         * lib/gen-uni-tables.c (output_predicate, output_category,
22723         output_combclass, output_bidi_category, output_decimal_digit,
22724         output_digit, output_numeric, output_mirror, output_scripts,
22725         output_ident_category, output_simple_mapping): Fix format directives.
22726         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
22727
22728 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
22729
22730         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
22731         fixes are available from IBM.
22732
22733 2009-02-13  Jim Meyering  <meyering@redhat.com>
22734
22735         fts: arrange not to stat non-directories in more cases
22736         This makes GNU find (when it doesn't need to stat each file)
22737         *much* more efficient at traversing reiserfs file systems.
22738         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
22739         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
22740         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
22741         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
22742         (leaf_optimization_applies): New function.
22743         (LCO_hash, LCO_compare): New helper functions.
22744         (link_count_optimize_ok): New function.
22745         (fts_stat): Initialize new member (if dir).
22746         (fts_read): Decrement parent's fts_n_dirs_remaining count if
22747         we've just stat'ed a directory.  Skip the stat call when possible.
22748         ---
22749         Note this AFS-related exchange:
22750         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
22751         and note find's pioctl call in find/fstype.c.
22752         But that is necessary only if you want to enable the
22753         optimization for AFS, and for now, I don't.
22754
22755         fts: move a function definition "up" (no semantic change)
22756         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
22757         "up" to precede upcoming use of a related function.
22758
22759 2009-02-11  Jim Meyering  <meyering@redhat.com>
22760
22761         fts: correct internal computation of nlinks (optimization-related)
22762         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
22763         whether the current entry is a directory, so don't test it.
22764
22765 2009-02-10  Bruno Haible  <bruno@clisp.org>
22766
22767         Tests for module 'uniwbrk/ulc-wordbreaks'.
22768         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
22769         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
22770         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
22771
22772         Tests for module 'uniwbrk/u32-wordbreaks'.
22773         * modules/uniwbrk/u32-wordbreaks-tests: New file.
22774         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
22775
22776         Tests for module 'uniwbrk/u16-wordbreaks'.
22777         * modules/uniwbrk/u16-wordbreaks-tests: New file.
22778         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
22779
22780         Tests for module 'uniwbrk/u8-wordbreaks'.
22781         * modules/uniwbrk/u8-wordbreaks-tests: New file.
22782         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
22783
22784 2009-02-10  Bruno Haible  <bruno@clisp.org>
22785
22786         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
22787         property.
22788         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
22789         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
22790         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
22791
22792 2009-02-10  Simon Josefsson  <simon@josefsson.org>
22793
22794         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
22795         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
22796
22797 2009-02-10  Bruno Haible  <bruno@clisp.org>
22798
22799         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
22800         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
22801         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
22802         * lib/unilbrk/u8-possible-linebreaks.c: Update.
22803         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
22804         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
22805
22806 2009-02-09  Simon Josefsson  <simon@josefsson.org>
22807
22808         * lib/sockets.h (gl_fd_to_handle): New function.
22809
22810         * tests/test-sockets.c: Call gl_fd_to_handle.
22811
22812 2009-02-09  Bruno Haible  <bruno@clisp.org>
22813
22814         * doc/havelib.texi: Document the conventions on bi-arch systems.
22815
22816 2009-02-08  Bruno Haible  <bruno@clisp.org>
22817
22818         Document the AC_LIB_LINKFLAGS macro.
22819         * doc/havelib.texi: New file, mostly written on 2005-05-24.
22820         * doc/gnulib.texi: Include it.
22821
22822 2009-02-08  Bruno Haible  <bruno@clisp.org>
22823
22824         Fix wrong order of sections, compared to TOC.
22825         * doc/gnulib.texi: Include relocatable-maint.texi after the
22826         "Regular expressions" node, not before.
22827
22828 2009-02-08  Bruno Haible  <bruno@clisp.org>
22829
22830         Tests for module 'unicase/totitle'.
22831         * modules/unicase/totitle-tests: New file.
22832
22833         Tests for module 'unicase/tolower'.
22834         * modules/unicase/tolower-tests: New file.
22835
22836         Tests for module 'unicase/toupper'.
22837         * modules/unicase/toupper-tests: New file.
22838         * tests/unicase/test-mapping-part1.h: New file.
22839         * tests/unicase/test-mapping-part2.h: New file.
22840
22841         New module 'unicase/totitle'.
22842         * modules/unicase/totitle: New file.
22843         * lib/unicase/totitle.c: New file.
22844
22845         New module 'unicase/tolower'.
22846         * modules/unicase/tolower: New file.
22847         * lib/unicase/tolower.c: New file.
22848
22849         New module 'unicase/toupper'.
22850         * modules/unicase/toupper: New file.
22851         * lib/unicase/toupper.c: New file.
22852         * lib/unicase/simple-mapping.h: New file.
22853
22854         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
22855         (mapping_table): New structure.
22856         (output_simple_mapping): New function.
22857         (main): Invoke output_simple_mapping_test and output_simple_mapping.
22858         * modules/gen-uni-tables (Description): Update.
22859         * lib/unicase/toupper.h: New file, automatically generated by
22860         gen-uni-tables.
22861         * lib/unicase/tolower.h: New file, automatically generated by
22862         gen-uni-tables.
22863         * lib/unicase/totitle.h: New file, automatically generated by
22864         gen-uni-tables.
22865         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
22866         gen-uni-tables.
22867         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
22868         gen-uni-tables.
22869         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
22870         gen-uni-tables.
22871
22872         New module 'unicase/base'.
22873         * modules/unicase/base: New file.
22874         * lib/unicase.h: New file.
22875
22876 2009-02-08  Bruno Haible  <bruno@clisp.org>
22877
22878         New module 'uniwbrk/ulc-wordbreaks'.
22879         * modules/uniwbrk/ulc-wordbreaks: New file.
22880         * lib/uniwbrk/ulc-wordbreaks.c: New file.
22881
22882         New module 'uniwbrk/u32-wordbreaks'.
22883         * modules/uniwbrk/u32-wordbreaks: New file.
22884         * lib/uniwbrk/u32-wordbreaks.c: New file.
22885
22886         New module 'uniwbrk/u16-wordbreaks'.
22887         * modules/uniwbrk/u16-wordbreaks: New file.
22888         * lib/uniwbrk/u16-wordbreaks.c: New file.
22889
22890         New module 'uniwbrk/u8-wordbreaks'.
22891         * modules/uniwbrk/u8-wordbreaks: New file.
22892         * lib/uniwbrk/u8-wordbreaks.c: New file.
22893         * lib/uniwbrk/u-wordbreaks.h: New file.
22894
22895         New module 'uniwbrk/table'.
22896         * modules/uniwbrk/table: New file.
22897         * lib/uniwbrk/wbrktable.h: New file.
22898         * lib/uniwbrk/wbrktable.c: New file.
22899
22900         New module 'uniwbrk/wordbreak-property'.
22901         * modules/uniwbrk/wordbreak-property: New file.
22902         * lib/uniwbrk/wordbreak-property.c: New file.
22903
22904         * lib/gen-uni-tables.c (WBP_*): New enum items.
22905         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
22906         (unicode_org_wbp): New variable.
22907         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
22908         New functions.
22909         (wbp_table): New structure.
22910         (output_wbp, output_wbrk_tables): New functions.
22911         (main): Accept additional argument. Invoke fill_org_wbp,
22912         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
22913         output_wbrk_tables.
22914         * modules/gen-uni-tables (Description): Update.
22915         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
22916         gen-uni-tables.
22917
22918         New module 'uniwbrk/base'.
22919         * modules/uniwbrk/base: New file.
22920         * lib/uniwbrk.h: New file.
22921
22922 2009-02-08  Bruno Haible  <bruno@clisp.org>
22923
22924         Update to Unicode 5.1.0.
22925         * lib/gen-uni-tables.c (is_property_alphabetic): Include
22926         U+2185..U+2188.
22927         (is_property_default_ignorable_code_point): Don't include characters
22928         of category Cc or Cs and not-a-characters.
22929         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
22930         U+0D79, U+109E, U+109F, U+A60C.
22931         * lib/unictype/bidi_of.h: Regenerated.
22932         * lib/unictype/blocks.h: Regenerated.
22933         * lib/unictype/categ_C.h: Regenerated.
22934         * lib/unictype/categ_Cf.h: Regenerated.
22935         * lib/unictype/categ_Cn.h: Regenerated.
22936         * lib/unictype/categ_L.h: Regenerated.
22937         * lib/unictype/categ_Ll.h: Regenerated.
22938         * lib/unictype/categ_Lm.h: Regenerated.
22939         * lib/unictype/categ_Lo.h: Regenerated.
22940         * lib/unictype/categ_Lu.h: Regenerated.
22941         * lib/unictype/categ_M.h: Regenerated.
22942         * lib/unictype/categ_Mc.h: Regenerated.
22943         * lib/unictype/categ_Me.h: Regenerated.
22944         * lib/unictype/categ_Mn.h: Regenerated.
22945         * lib/unictype/categ_N.h: Regenerated.
22946         * lib/unictype/categ_Nd.h: Regenerated.
22947         * lib/unictype/categ_Nl.h: Regenerated.
22948         * lib/unictype/categ_No.h: Regenerated.
22949         * lib/unictype/categ_P.h: Regenerated.
22950         * lib/unictype/categ_Pd.h: Regenerated.
22951         * lib/unictype/categ_Pe.h: Regenerated.
22952         * lib/unictype/categ_Pf.h: Regenerated.
22953         * lib/unictype/categ_Pi.h: Regenerated.
22954         * lib/unictype/categ_Po.h: Regenerated.
22955         * lib/unictype/categ_Ps.h: Regenerated.
22956         * lib/unictype/categ_S.h: Regenerated.
22957         * lib/unictype/categ_Sk.h: Regenerated.
22958         * lib/unictype/categ_Sm.h: Regenerated.
22959         * lib/unictype/categ_So.h: Regenerated.
22960         * lib/unictype/categ_of.h: Regenerated.
22961         * lib/unictype/combining.h: Regenerated.
22962         * lib/unictype/ctype_alnum.h: Regenerated.
22963         * lib/unictype/ctype_alpha.h: Regenerated.
22964         * lib/unictype/ctype_graph.h: Regenerated.
22965         * lib/unictype/ctype_lower.h: Regenerated.
22966         * lib/unictype/ctype_print.h: Regenerated.
22967         * lib/unictype/ctype_punct.h: Regenerated.
22968         * lib/unictype/ctype_upper.h: Regenerated.
22969         * lib/unictype/decdigit.h: Regenerated.
22970         * lib/unictype/digit.h: Regenerated.
22971         * lib/unictype/mirror.h: Regenerated.
22972         * lib/unictype/numeric.h: Regenerated.
22973         * lib/unictype/pr_alphabetic.h: Regenerated.
22974         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
22975         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
22976         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
22977         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
22978         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
22979         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
22980         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
22981         * lib/unictype/pr_combining.h: Regenerated.
22982         * lib/unictype/pr_dash.h: Regenerated.
22983         * lib/unictype/pr_decimal_digit.h: Regenerated.
22984         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
22985         * lib/unictype/pr_deprecated.h: Regenerated.
22986         * lib/unictype/pr_diacritic.h: Regenerated.
22987         * lib/unictype/pr_extender.h: Regenerated.
22988         * lib/unictype/pr_format_control.h: Regenerated.
22989         * lib/unictype/pr_grapheme_base.h: Regenerated.
22990         * lib/unictype/pr_grapheme_extend.h: Regenerated.
22991         * lib/unictype/pr_grapheme_link.h: Regenerated.
22992         * lib/unictype/pr_id_continue.h: Regenerated.
22993         * lib/unictype/pr_id_start.h: Regenerated.
22994         * lib/unictype/pr_ideographic.h: Regenerated.
22995         * lib/unictype/pr_ignorable_control.h: Regenerated.
22996         * lib/unictype/pr_lowercase.h: Regenerated.
22997         * lib/unictype/pr_math.h: Regenerated.
22998         * lib/unictype/pr_numeric.h: Regenerated.
22999         * lib/unictype/pr_other_alphabetic.h: Regenerated.
23000         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
23001         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
23002         * lib/unictype/pr_other_id_continue.h: Regenerated.
23003         * lib/unictype/pr_other_lowercase.h: Regenerated.
23004         * lib/unictype/pr_other_math.h: Regenerated.
23005         * lib/unictype/pr_punctuation.h: Regenerated.
23006         * lib/unictype/pr_sentence_terminal.h: Regenerated.
23007         * lib/unictype/pr_soft_dotted.h: Regenerated.
23008         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
23009         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
23010         * lib/unictype/pr_unified_ideograph.h: Regenerated.
23011         * lib/unictype/pr_uppercase.h: Regenerated.
23012         * lib/unictype/pr_xid_continue.h: Regenerated.
23013         * lib/unictype/pr_xid_start.h: Regenerated.
23014         * lib/unictype/pr_zero_width.h: Regenerated.
23015         * lib/unictype/scripts.h: Regenerated.
23016         * lib/unictype/scripts_byname.gperf: Regenerated.
23017         * lib/unictype/sy_java_ident.h: Regenerated.
23018         * lib/unilbrk/lbrkprop1.h: Regenerated.
23019         * lib/unilbrk/lbrkprop2.h: Regenerated.
23020         * tests/unictype/test-categ_C.c: Regenerated.
23021         * tests/unictype/test-categ_Cf.c: Regenerated.
23022         * tests/unictype/test-categ_Cn.c: Regenerated.
23023         * tests/unictype/test-categ_L.c: Regenerated.
23024         * tests/unictype/test-categ_Ll.c: Regenerated.
23025         * tests/unictype/test-categ_Lm.c: Regenerated.
23026         * tests/unictype/test-categ_Lo.c: Regenerated.
23027         * tests/unictype/test-categ_Lu.c: Regenerated.
23028         * tests/unictype/test-categ_M.c: Regenerated.
23029         * tests/unictype/test-categ_Mc.c: Regenerated.
23030         * tests/unictype/test-categ_Me.c: Regenerated.
23031         * tests/unictype/test-categ_Mn.c: Regenerated.
23032         * tests/unictype/test-categ_N.c: Regenerated.
23033         * tests/unictype/test-categ_Nd.c: Regenerated.
23034         * tests/unictype/test-categ_Nl.c: Regenerated.
23035         * tests/unictype/test-categ_No.c: Regenerated.
23036         * tests/unictype/test-categ_P.c: Regenerated.
23037         * tests/unictype/test-categ_Pd.c: Regenerated.
23038         * tests/unictype/test-categ_Pe.c: Regenerated.
23039         * tests/unictype/test-categ_Pf.c: Regenerated.
23040         * tests/unictype/test-categ_Pi.c: Regenerated.
23041         * tests/unictype/test-categ_Po.c: Regenerated.
23042         * tests/unictype/test-categ_Ps.c: Regenerated.
23043         * tests/unictype/test-categ_S.c: Regenerated.
23044         * tests/unictype/test-categ_Sk.c: Regenerated.
23045         * tests/unictype/test-categ_Sm.c: Regenerated.
23046         * tests/unictype/test-categ_So.c: Regenerated.
23047         * tests/unictype/test-ctype_alnum.c: Regenerated.
23048         * tests/unictype/test-ctype_alpha.c: Regenerated.
23049         * tests/unictype/test-ctype_graph.c: Regenerated.
23050         * tests/unictype/test-ctype_lower.c: Regenerated.
23051         * tests/unictype/test-ctype_print.c: Regenerated.
23052         * tests/unictype/test-ctype_punct.c: Regenerated.
23053         * tests/unictype/test-ctype_upper.c: Regenerated.
23054         * tests/unictype/test-decdigit.h: Regenerated.
23055         * tests/unictype/test-digit.h: Regenerated.
23056         * tests/unictype/test-numeric.h: Regenerated.
23057         * tests/unictype/test-pr_alphabetic.c: Regenerated.
23058         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
23059         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
23060         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
23061         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
23062         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
23063         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
23064         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
23065         * tests/unictype/test-pr_combining.c: Regenerated.
23066         * tests/unictype/test-pr_dash.c: Regenerated.
23067         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
23068         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
23069         * tests/unictype/test-pr_deprecated.c: Regenerated.
23070         * tests/unictype/test-pr_diacritic.c: Regenerated.
23071         * tests/unictype/test-pr_extender.c: Regenerated.
23072         * tests/unictype/test-pr_format_control.c: Regenerated.
23073         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
23074         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
23075         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
23076         * tests/unictype/test-pr_id_continue.c: Regenerated.
23077         * tests/unictype/test-pr_id_start.c: Regenerated.
23078         * tests/unictype/test-pr_ideographic.c: Regenerated.
23079         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
23080         * tests/unictype/test-pr_lowercase.c: Regenerated.
23081         * tests/unictype/test-pr_math.c: Regenerated.
23082         * tests/unictype/test-pr_numeric.c: Regenerated.
23083         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
23084         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
23085         Regenerated.
23086         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
23087         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
23088         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
23089         * tests/unictype/test-pr_other_math.c: Regenerated.
23090         * tests/unictype/test-pr_punctuation.c: Regenerated.
23091         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
23092         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
23093         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
23094         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
23095         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
23096         * tests/unictype/test-pr_uppercase.c: Regenerated.
23097         * tests/unictype/test-pr_xid_continue.c: Regenerated.
23098         * tests/unictype/test-pr_xid_start.c: Regenerated.
23099         * tests/unictype/test-pr_zero_width.c: Regenerated.
23100
23101         Update to Unicode 5.1.0.
23102         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
23103         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
23104         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
23105         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
23106         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
23107         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
23108         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
23109         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
23110         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
23111         (nonspacing_table_ind): Update.
23112         * tests/uniwidth/test-uc_width2.sh: Update expected result.
23113
23114         Update to Unicode 5.1.0.
23115         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
23116         code transform.
23117         * lib/uniname/uniname.c (unicode_character_name,
23118         unicode_name_character): Add the range 0x1Fxxx to the code transform.
23119         * lib/uniname/uninames.h: Regenerated.
23120         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
23121
23122 2009-02-07  Bruno Haible  <bruno@clisp.org>
23123
23124         Merge gen-ctype and gen-lbrk into a single program.
23125         * lib/gen-uni-tables.c: New file, incorporating
23126         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
23127         Add directory prefixes to the names of the generated files.
23128         * lib/unictype/gen-ctype.c: Remove file.
23129         * lib/unilbrk/gen-lbrk.c: Remove file.
23130         * modules/gen-uni-tables: New file.
23131         * modules/unictype/gen-ctype: Remove file.
23132         * modules/unilbrk/gen-lbrk: Remove file.
23133
23134 2009-02-07  Bruno Haible  <bruno@clisp.org>
23135
23136         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
23137
23138         New module 'unistr/u32-strcoll'.
23139         * modules/unistr/u32-strcoll: New file.
23140         * lib/unistr/u32-strcoll.c: New file.
23141
23142         New module 'unistr/u16-strcoll'.
23143         * modules/unistr/u16-strcoll: New file.
23144         * lib/unistr/u16-strcoll.c: New file.
23145
23146         New module 'unistr/u8-strcoll'.
23147         * modules/unistr/u8-strcoll: New file.
23148         * lib/unistr/u8-strcoll.c: New file.
23149         * lib/unistr/u-strcoll.h: New file.
23150
23151 2009-02-07  Bruno Haible  <bruno@clisp.org>
23152
23153         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
23154         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23155         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
23156         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
23157         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
23158         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
23159
23160 2009-02-07  Bruno Haible  <bruno@clisp.org>
23161
23162         Make 64-bit clean.
23163         * lib/unictype/gen-ctype.c (output_predicate, output_category,
23164         output_combclass, output_bidi_category, output_decimal_digit,
23165         output_digit, output_numeric, output_mirror, output_scripts,
23166         output_ident_category): Use proper width specifier in format strings.
23167
23168 2009-02-07  Bruno Haible  <bruno@clisp.org>
23169
23170         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
23171         failure behaviour.
23172
23173 2009-02-07  Jim Meyering  <meyering@redhat.com>
23174
23175         regex: avoid compilation failure with upcoming gcc-4.4
23176         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
23177         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
23178         "... error: integer overflow in preprocessor expression".
23179
23180 2009-02-05  Ben Pfaff  <blp@gnu.org>
23181
23182         Fix link errors on Windows when close module is used.
23183         * modules/close: Add $(LIB_CLOSE) to Link section.
23184         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
23185         $(LIB_CLOSE) on Windows.
23186
23187 2009-02-05  Jim Meyering  <meyering@redhat.com>
23188
23189         still avoid unused-parameter warnings, but do it cleanly
23190         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
23191         (get_fs_usage): Cast to void instead.
23192         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
23193         (dev_from_mount_options, read_file_system_list): Cast to void.
23194         Prompted by Bruno Haible.
23195
23196 2009-02-04  Jim Meyering  <meyering@redhat.com>
23197
23198         fsusage.c: correct copyright year
23199         * lib/fsusage.c: Reflect year in which the change is pushed into
23200
23201         avoid misc. warnings
23202         * lib/fsusage.c (UNUSED_PARAM): Define.
23203         (get_fs_usage): Mark parameter "disk" as unused.
23204         * lib/getugroups.c (getgrent): Use "void" in prototype.
23205         * lib/mountlist.c: Mark unused parameters.
23206         (read_file_system_list): Declare a local with "const".
23207         * lib/nanosleep.c (getnow): Declare static.
23208         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
23209
23210         dirfd: set errno upon failure
23211         * lib/dirfd.c: Include <errno.h>.
23212         Set errno to ENOTSUP when returning -1.
23213         * modules/dirfd (Depends-on): Add errno.
23214         Suggested by John Kodis <kodis@comcast.net>.
23215
23216 2009-02-01  Bruno Haible  <bruno@clisp.org>
23217
23218         Don't assume sizeof (long) >= sizeof (void *).
23219         * lib/memcmp.c: Include stdint.h.
23220         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
23221         srcp2 to 'const byte *'.
23222         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
23223         types to uintptr_t.
23224         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
23225         * modules/memcmp (Depends-on): Add stdint.
23226         Reported by Ozkan Sezer <sezeroz@gmail.com>.
23227
23228 2009-01-30  Eric Blake  <ebb9@byu.net>
23229
23230         fix more require-before-expand issues
23231         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
23232         expand, AC_PROG_AWK.
23233         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
23234
23235 2009-01-28  Eric Blake  <ebb9@byu.net>
23236
23237         version-etc: use consistent URL formatting
23238         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
23239         Improve formatting.  Use fputs for string without %.
23240
23241 2009-01-28  Jim Meyering  <meyering@redhat.com>
23242
23243         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
23244         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
23245         "underquoted definition of NAME" from autoconf-2.59.
23246
23247 2009-01-28  Bruno Haible  <bruno@clisp.org>
23248
23249         * doc/gnulib.texi: Add "Obsolete modules" to index.
23250
23251 2009-01-28  Jim Meyering  <meyering@redhat.com>
23252
23253         useless-if-before-free: recognize more variants
23254         * build-aux/useless-if-before-free: Also recognize e.g.,
23255         if (NULL != p) free (p);
23256
23257 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
23258
23259         test-getaddrinfo: skip (don't fail) this test when there's no network
23260         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
23261         on the presumption that it means you lack network access.
23262
23263 2009-01-26  Jim Meyering  <meyering@redhat.com>
23264
23265         fflush: avoid warnings on modern systems
23266         * lib/fflush.c (rpl_fflush): Move declarations of locals,
23267         pos and result, into scopes where they're used.
23268
23269 2009-01-26  Eric Blake  <ebb9@byu.net>
23270
23271         Silence warning reintroduced by recent extensions patch.
23272         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
23273         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
23274         autoconf.
23275
23276         Backport improved autoconf semantics of AC_DEFUN_ONCE.
23277         * m4/00gnulib.m4: New file.
23278         * gnulib-tool (func_get_filelist): Always use it.
23279         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
23280         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
23281
23282 2009-01-25  Bruno Haible  <bruno@clisp.org>
23283
23284         Make test-quotearg work on MacOS X and AIX.
23285         * tests/test-quotearg.sh: New file.
23286         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
23287         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
23288         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
23289         include <libintl.h>.
23290         (fake_locale): Remove variable.
23291         (gettext, dgettext, dcgettext): Remove functions.
23292         (main): Instead of setting a fake locale, set a real locale. Call
23293         textdomain and bindtextdomain.
23294         * modules/quotearg-tests (Files): Add the new files.
23295         (Depends-on): Add gettext, setenv, unsetenv.
23296         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
23297         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
23298         Augment TESTS_ENVIRONMENT.
23299
23300 2009-01-25  Bruno Haible  <bruno@clisp.org>
23301
23302         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
23303         fr_FR.ISO8859-1 locale on MacOS X.
23304         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
23305         ja_JP.eucJP locale on MacOS X.
23306         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
23307         zh_CN.GB18030 locale on MacOS X.
23308
23309 2009-01-25  Bruno Haible  <bruno@clisp.org>
23310
23311         Avoid link errors on MacOS X 10.3.
23312         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
23313         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
23314
23315 2009-01-25  Bruno Haible  <bruno@clisp.org>
23316
23317         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23318         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
23319         * modules/pipe (Files): Remove m4/posix_spawn.m4.
23320         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23321         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
23322         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23323         posix_spawnattr_init, posix_spawnattr_setsigmask,
23324         posix_spawnattr_setflags, posix_spawnattr_destroy.
23325
23326         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
23327         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
23328         * modules/execute (Files): Remove m4/posix_spawn.m4.
23329         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
23330         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
23331         posix_spawnattr_init, posix_spawnattr_setsigmask,
23332         posix_spawnattr_setflags, posix_spawnattr_destroy.
23333
23334 2009-01-25  Bruno Haible  <bruno@clisp.org>
23335
23336         * lib/glthread/threadlib.c: Include <stdlib.h>.
23337
23338 2009-01-25  Bruno Haible  <bruno@clisp.org>
23339
23340         * lib/glthread/threadlib.c (dummy): New declaration.
23341
23342 2009-01-25  Bruno Haible  <bruno@clisp.org>
23343
23344         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
23345         multibyte characters also for the GB18030 encoding. Don't crash when
23346         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
23347
23348 2009-01-25  Bruno Haible  <bruno@clisp.org>
23349
23350         Avoid redefining 'struct random_data' on OSF/1 5.1.
23351         * lib/stdlib.in.h: Include <random.h> if it exists.
23352         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
23353         HAVE_RANDOM_H. Include <random.h> when testing whether
23354         'struct random_data' exists.
23355         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
23356
23357 2009-01-25  Bruno Haible  <bruno@clisp.org>
23358
23359         Don't install charset.alias on MacOS X >= 10.3.
23360         * lib/localcharset.c (DARWIN7): New macro.
23361         (get_charset_aliases): Hardcode the result for Darwin7.
23362         * modules/localcharset (install-exec-local): Don't install
23363         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
23364
23365 2009-01-25  Bruno Haible  <bruno@clisp.org>
23366
23367         Don't install charset.alias on mingw and Cygwin.
23368         * modules/localcharset (install-exec-local): Don't install
23369         charset.alias on mingw and Cygwin, if the file does not yet exist.
23370         The result for these platforms is hardcoded in localcharset.c.
23371
23372 2009-01-25  Bruno Haible  <bruno@clisp.org>
23373
23374         Make it possible again to use AC_GNU_SOURCE together with gnulib.
23375         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
23376         before requiring AC_USE_SYSTEM_EXTENSIONS.
23377
23378 2009-01-25  Jim Meyering  <meyering@redhat.com>
23379
23380         c-strtod: avoid warnings
23381         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
23382         "assignment discards qualifiers from pointer target type" warnings.
23383
23384 2009-01-24  Bruno Haible  <bruno@clisp.org>
23385
23386         Add support for non-UTF-8 locales on MacOS X.
23387         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
23388         canonical encodings. For Darwin 7 and newer, don't map traditional
23389         encodings to UTF-8.
23390         Reported by Vincent Lefevre <vincent@vinc17.org>
23391         at <http://savannah.gnu.org/bugs/?25235>.
23392
23393 2009-01-24  Bruno Haible  <bruno@clisp.org>
23394
23395         * doc/gnulib.texi (Obsolete modules): New section.
23396         Reported by Mike Frysinger <vapier@gentoo.org>.
23397
23398 2009-01-24  Bruno Haible  <bruno@clisp.org>
23399
23400         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
23401         (%.dvi): New rule.
23402
23403 2009-01-24  Bruno Haible  <bruno@clisp.org>
23404
23405         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
23406         Reported by Eric Blake.
23407
23408 2009-01-24  Bruno Haible  <bruno@clisp.org>
23409
23410         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
23411         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
23412         Reported by Gary V. Vaughan <gary@gnu.org>.
23413
23414 2009-01-24  Bruno Haible  <bruno@clisp.org>
23415
23416         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
23417
23418 2009-01-23  Bruno Haible  <bruno@clisp.org>
23419
23420         Make c-strtod, c-strtold usable in libraries.
23421         * lib/c-strtod.c: Include string.h instead of xalloc.h.
23422         (C_STRTOD): Call strdup instead of xstrdup.
23423         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
23424         * modules/c-strtold (Depends-on): Likewise.
23425         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
23426         * NEWS: Mention the change.
23427         Reported by Michael Gold <mgold@ncf.ca>.
23428
23429 2009-01-23  Jim Meyering  <meyering@redhat.com>
23430
23431         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
23432         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
23433         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
23434
23435 2009-01-23  Simon Josefsson  <simon@josefsson.org>
23436
23437         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
23438         GNU CoreUtils.
23439         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
23440         * modules/version-etc (Description): Update.
23441
23442 2009-01-22  Bruno Haible  <bruno@clisp.org>
23443
23444         Cache the C locale object.
23445         * lib/c-strtod.c (c_locale_cache): New variable.
23446         (c_locale): New function.
23447         (C_STRTOD): Use it, and don't call freelocale.
23448         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
23449         Suggested by Paolo Bonzini.
23450
23451 2009-01-21  Bruno Haible  <bruno@clisp.org>
23452
23453         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
23454         conditions other than overflow.
23455
23456 2009-01-21  Bruno Haible  <bruno@clisp.org>
23457
23458         * lib/c-strtod.c: Include errno.h.
23459         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
23460         value from STRTOD_L and STRTOD.
23461
23462 2009-01-21  Bruno Haible  <bruno@clisp.org>
23463         and Jim Meyering  <meyering@redhat.com>
23464
23465         nanosleep: skip configure test (fail it) for apple universal builds
23466         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
23467         universal builds, assume that nanosleep does not work.
23468         * modules/nanosleep (Depends-on): Add multiarch.
23469
23470         mktime: skip configure test (fail it) for apple universal builds
23471         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
23472         universal builds, assume that mktime does not work.
23473         * modules/mktime (Depends-on): Add multiarch.
23474
23475 2009-01-21  Eric Blake  <ebb9@byu.net>
23476
23477         multiarch: avoid expand-before-require warning
23478         * modules/multiarch (configure.ac): Require, rather than expand,
23479         gl_MULTIARCH.
23480         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
23481         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
23482         enforce that all clients require it.  Partial reversion of
23483         2008-12-29 patch.
23484
23485         error: avoid expand-before-require warning
23486         * modules/errno (configure.ac): Require, rather than expand,
23487         gl_HEADER_ERRNO_H.
23488         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
23489         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
23490         enforce that all clients require it.
23491
23492         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
23493         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
23494         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
23495         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
23496
23497 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
23498
23499         Revert:
23500         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23501
23502         regex: do not depend on obsolete modules.
23503         * modules/regex: Remove memcmp and memmove.
23504
23505 2009-01-20  Bruno Haible  <bruno@clisp.org>
23506
23507         Make the 'link' module link on Windows NT 4.
23508         * lib/link.c (_WIN32_WINNT): Don't define.
23509         (CreateHardLinkFuncType): New type.
23510         (CreateHardLinkFunc, initialized): New variables.
23511         (initialize): New function.
23512         (link): Invoke CreateHardLink indirectly through the function pointer.
23513
23514 2009-01-20  Bruno Haible  <bruno@clisp.org>
23515
23516         Fix compilation failure on mingw.
23517         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
23518
23519 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
23520
23521         * doc/c-strtod.texi: Mention a couple of restrictions.
23522
23523 2009-01-20  Jim Meyering  <meyering@redhat.com>
23524
23525         gettimeofday: move more declarations out of functions
23526         * lib/gettimeofday.c: Move extern declarations of tzset and
23527         gmtime out of containing functions.  Prompted by Bruno Haible.
23528
23529 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
23530
23531         regex: do not depend on obsolete modules.
23532         * modules/regex: Remove memcmp and memmove.
23533
23534 2009-01-19  Bruno Haible  <bruno@clisp.org>
23535
23536         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23537         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
23538         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23539         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
23540         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
23541
23542 2009-01-19  Bruno Haible  <bruno@clisp.org>
23543
23544         * tests/test-link.c: Include <errno.h>.
23545         (main): Exit with code 77 when a hard link cannot be created due to
23546         the file system.
23547         * tests/test-link.sh: Skip test when a hard link cannot be created due
23548         to the file system.
23549         Suggested by Eric Blake.
23550
23551 2009-01-19  Martin Lambers  <marlam@marlam.de>
23552
23553         * modules/link-tests: New file.
23554         * tests/test-link.sh: New file.
23555         * tests/test-link.c: New file.
23556
23557 2009-01-19  Eric Blake  <ebb9@byu.net>
23558
23559         doc: mention another function added in cygwin 1.7.0
23560         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
23561         Another new function in cygwin 1.7.
23562
23563 2009-01-19  Bruno Haible  <bruno@clisp.org>
23564
23565         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
23566         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
23567         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
23568         gl_BIGENDIAN, not AC_C_BIGENDIAN.
23569         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23570         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
23571         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23572         * m4/md4.m4 (gl_MD4): Likewise.
23573         * m4/md5.m4 (gl_MD5): Likewise.
23574         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
23575         * m4/sha1.m4 (gl_SHA1): Likewise.
23576         * m4/sha256.m4 (gl_SHA256): Likewise.
23577         * m4/sha512.m4 (gl_SHA512): Likewise.
23578
23579 2009-01-19  Bruno Haible  <bruno@clisp.org>
23580
23581         * modules/uniname/uniname-tests (Depends-on): Add progname.
23582         * tests/uniname/test-uninames.c: Include progname.h.
23583         (main): Call set_program_name.
23584
23585         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
23586         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
23587         (main): Call set_program_name.
23588
23589         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
23590         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
23591         (main): Call set_program_name.
23592
23593         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
23594         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
23595         (main): Call set_program_name.
23596
23597         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
23598         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
23599         (main): Call set_program_name.
23600
23601         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
23602         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
23603         (main): Call set_program_name.
23604
23605         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
23606         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
23607         (main): Call set_program_name.
23608
23609         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
23610         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
23611         (main): Call set_program_name.
23612
23613         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
23614         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
23615         (main): Call set_program_name.
23616
23617 2009-01-19  Eric Blake  <ebb9@byu.net>
23618
23619         test-unistd: test previous patch
23620         * tests/test-unistd.c: Test *_FILENO macros.
23621
23622         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
23623         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23624         Guarantee a definition.
23625         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
23626         * modules/unistd-safer (Depends-on): Add dependency on unistd.
23627         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
23628         * lib/dup-safer.c (STDERR_FILENO): Likewise.
23629         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23630         Likewise.
23631         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
23632         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
23633         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
23634         Likewise.
23635         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
23636         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
23637         (STDERR_FILENO): Likewise.
23638         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
23639         (STDERR_FILENO): Likewise.
23640         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
23641         (STDERR_FILENO): Likewise.
23642         Reported by Elbert Pol.
23643
23644 2009-01-19  Eric Blake  <ebb9@byu.net>
23645
23646         doc: mention more functions added in cygwin 1.7.0
23647         * doc/posix-functions/abort.texi (abort): Update wording related
23648         to cygwin.
23649         * doc/posix-functions/daylight.texi (daylight): Likewise.
23650         * doc/posix-functions/optarg.texi (optarg): Likewise.
23651         * doc/posix-functions/optarg.texi (opterr): Likewise.
23652         * doc/posix-functions/optarg.texi (optind): Likewise.
23653         * doc/posix-functions/optarg.texi (optopt): Likewise.
23654         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
23655         worked in 1.5.x, and was withdrawn in 1.7.
23656         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
23657         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
23658         cygwin versions.
23659         * doc/posix-functions/perror.texi (perror): Likewise.
23660         * doc/posix-functions/printf.texi (printf): Likewise.
23661         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
23662         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
23663         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
23664         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
23665         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23666         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
23667         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
23668         Likewise.
23669         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
23670         Likewise.
23671         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
23672         this function.
23673         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
23674         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
23675         Likewise.
23676         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
23677         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
23678         * doc/posix-functions/confstr.texi (confstr): Likewise.
23679         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
23680         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
23681         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
23682         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
23683         * doc/posix-functions/fputws.texi (fputws): Likewise.
23684         * doc/posix-functions/fwide.texi (fwide): Likewise.
23685         * doc/posix-functions/getwc.texi (getwc): Likewise.
23686         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
23687         * doc/posix-functions/putwc.texi (putwc): Likewise.
23688         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
23689         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
23690         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
23691         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
23692         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
23693         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
23694         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
23695         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
23696         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
23697         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
23698         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
23699
23700 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23701
23702         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
23703         * lib/ioctl.c: Include <sys/ioctl.h>.
23704
23705 2009-01-19  Simon Josefsson  <simon@josefsson.org>
23706
23707         * modules/getdate-tests (Depends-on): Add progname.
23708         * tests/test-getdate.c: Use progname module, to avoid link errors
23709         on non-glibc systems.
23710
23711 2009-01-18  Simon Josefsson  <simon@josefsson.org>
23712
23713         * modules/filenamecat-tests (Depends-on): Add progname.
23714         * modules/fstrcmp-tests (Depends-on): Likewise.
23715
23716         * tests/test-filenamecat.c: Use progname module, to avoid link
23717         errors on non-glibc systems.
23718         * tests/test-fstrcmp.c: Likewise.
23719
23720 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23721
23722         gettimeofday: avoid warning: nested extern declaration of 'localtime'
23723         * lib/gettimeofday.c: Move extern declaration out of function.
23724
23725 2009-01-18  Bruno Haible  <bruno@clisp.org>
23726
23727         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
23728         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
23729         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
23730
23731 2009-01-18  Bruno Haible  <bruno@clisp.org>
23732
23733         * lib/strftime.c (MEMPCPY): Remove unused macro.
23734         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
23735
23736 2009-01-18  Martin Lambers  <marlam@marlam.de>
23737
23738         New module 'link'.
23739         * lib/unistd.in.h (link): New declaration.
23740         * lib/link.c: New file.
23741         * m4/link.m4: New file.
23742         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
23743         HAVE_LINK.
23744         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
23745         * modules/link: New file.
23746         * doc/posix-functions/link.texi: Mention the new module.
23747
23748 2009-01-18  Bruno Haible  <bruno@clisp.org>
23749
23750         * tests/test-avltree_list.c (main): Call set_program_name.
23751         * tests/test-avltree_oset.c (main): Likewise.
23752         * tests/test-obstack-printf.c: Include progname.h.
23753         (main): Call set_program_name.
23754         * tests/test-quotearg.c: Include progname.h.
23755         (main): Call set_program_name.
23756         * tests/test-xmemdup0.c: Include progname.h.
23757         (main): Call set_program_name.
23758
23759 2009-01-18  Bruno Haible  <bruno@clisp.org>
23760
23761         New module 'alphasort'.
23762         * lib/dirent.in.h (alphasort): New declaration.
23763         * lib/alphasort.c: New file, from glibc with modifications.
23764         * m4/alphasort.m4: New file.
23765         * modules/alphasort: New file.
23766         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
23767         HAVE_ALPHASORT.
23768         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
23769         HAVE_ALPHASORT.
23770         * doc/posix-functions/alphasort.texi: Mention the new module and the
23771         portability problems.
23772
23773 2009-01-18  Bruno Haible  <bruno@clisp.org>
23774
23775         New module 'scandir'.
23776         * lib/dirent.in.h (scandir): New declaration.
23777         * lib/scandir.c: New file, from glibc with modifications.
23778         * m4/scandir.m4: New file.
23779         * modules/scandir: New file.
23780         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
23781         HAVE_SCANDIR.
23782         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
23783         HAVE_SCANDIR.
23784         * doc/posix-functions/scandir.texi: Mention the new module and the
23785         portability problems.
23786
23787 2009-01-17  Bruno Haible  <bruno@clisp.org>
23788
23789         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
23790         Update documentation.
23791         (func_remove_suffix): Escape all dots in the suffix. Update
23792         documentation.
23793         (func_filter_filelist): Update documentation.
23794         Reported by Ralf Wildenhues.
23795
23796 2009-01-17  Bruno Haible  <bruno@clisp.org>
23797
23798         * modules/dprintf-posix-tests: New file.
23799         * tests/test-dprintf-posix.sh: New file.
23800         * tests/test-dprintf-posix.c: New file.
23801
23802         New modules 'dprintf', 'dprintf-posix'.
23803         * lib/stdio.in.h (dprintf): New declaration.
23804         * lib/dprintf.c: New file.
23805         * m4/dprintf.m4: New file.
23806         * m4/dprintf-posix.m4: New file.
23807         * modules/dprintf: New file.
23808         * modules/dprintf-posix: New file.
23809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
23810         HAVE_DPRINTF, REPLACE_DPRINTF.
23811         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
23812         HAVE_DPRINTF, REPLACE_DPRINTF.
23813         * doc/posix-functions/dprintf.texi: Mention the new modules.
23814
23815 2009-01-17  Bruno Haible  <bruno@clisp.org>
23816
23817         * modules/vdprintf-posix-tests: New file.
23818         * tests/test-vdprintf-posix.sh: New file.
23819         * tests/test-vdprintf-posix.c: New file.
23820
23821         New modules 'vdprintf', 'vdprintf-posix'.
23822         * lib/stdio.in.h (vdprintf): New declaration.
23823         * lib/vdprintf.c: New file.
23824         * m4/vdprintf.m4: New file.
23825         * m4/vdprintf-posix.m4: New file.
23826         * modules/vdprintf: New file.
23827         * modules/vdprintf-posix: New file.
23828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
23829         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23830         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
23831         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23832         * doc/posix-functions/vdprintf.texi: Mention the new modules.
23833
23834 2009-01-17  Bruno Haible  <bruno@clisp.org>
23835
23836         Fix replacement of fopen on mingw.
23837         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
23838         mingw.
23839
23840 2009-01-17  Bruno Haible  <bruno@clisp.org>
23841
23842         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
23843         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
23844
23845 2009-01-17  Bruno Haible  <bruno@clisp.org>
23846
23847         Avoid test-fflush2.sh failure on mingw.
23848         * tests/test-fflush2.c: Include binary-io.h.
23849         (main): Put standard input into binary mode.
23850         * modules/fflush-tests (Depends-on): Add binary-io.
23851
23852 2009-01-17  Bruno Haible  <bruno@clisp.org>
23853
23854         * lib/wchar.in.h: In another particular situation, include only the
23855         system's <wchar.h> file.
23856         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
23857         Reported by Albert Chin-A-Young <china@thewrittenword.com>
23858         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
23859
23860 2009-01-17  Bruno Haible  <bruno@clisp.org>
23861
23862         Support for stripping executables in --enable-relocatable.
23863         * build-aux/install-reloc: Expect one more argument, or an environment
23864         variable RELOC_STRIP_PROG. If set, strip the destination program and
23865         its wrapper.
23866         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
23867         RELOC_STRIP_PROG.
23868         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
23869         to set RELOCATABLE_STRIP.
23870         * NEWS: Mention the new Makefile requirement.
23871
23872 2009-01-17  Bruno Haible  <bruno@clisp.org>
23873
23874         * build-aux/install-reloc: Remove debugging information left over by
23875         C compiler on MacOS X.
23876
23877 2009-01-17  Bruno Haible  <bruno@clisp.org>
23878
23879         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
23880         * lib/progreloc.c (find_executable): Fix type of pointer passed to
23881         _NSGetExecutablePath.
23882
23883 2009-01-16  Jim Meyering  <meyering@redhat.com>
23884
23885         strerror: avoid warnings about discarding "const"
23886         * lib/strerror.c (rpl_strerror): Instead of returning a const
23887         string from each and every "case", use a variable, and add a single
23888         cast after the switch.
23889
23890 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
23891
23892         * lib/arpa_inet.in.h: Add extern "C" block for C++.
23893
23894 2009-01-16  Bruno Haible  <bruno@clisp.org>
23895
23896         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
23897         array initializer syntax that also works in C++ mode.
23898         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23899
23900 2009-01-16  Jim Meyering  <meyering@redhat.com>
23901
23902         poll: suppress a warning
23903         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
23904         to ignore "...unsigned expression < 0 is always false" warnings.
23905
23906 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
23907
23908         poll: remove declarations of unused variables
23909         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
23910         sockbuf and optlen.
23911
23912 2009-01-15  Bruno Haible  <bruno@clisp.org>
23913
23914         Make fflush-after-ungetc POSIX compliant on BSD systems.
23915         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
23916         (clear_ungetc_buffer): Implement also for other systems.
23917         (rpl_fflush): On glibc systems, invoke
23918         clear_ungetc_buffer_preserving_position. Otherwise, invoke
23919         clear_ungetc_buffer after fetching the stream's position, not before.
23920
23921 2009-01-15  Bruno Haible  <bruno@clisp.org>
23922
23923         Make fflush-after-ungetc POSIX compliant on glibc systems.
23924         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
23925         after ungetc.
23926         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
23927         (rpl_fflush): On glibc systems, simply call the system's fflush
23928         function after clearing the ungetc buffer.
23929         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
23930         Instead, lseek only to the end of file, then use the system's fseeko
23931         for the rest. On glibc systems, reset the EOF indicator bit.
23932
23933 2009-01-15  Jim Meyering  <meyering@redhat.com>
23934
23935         openmp.m4: revert quote-adding change, for portability to older autoconf
23936         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
23937         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
23938         Simon Josefsson noticed the problem when using autoconf-2.61.
23939
23940 2009-01-15  Bruno Haible  <bruno@clisp.org>
23941
23942         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
23943         * tests/test-fflush2.c (ASSERT): Always fail.
23944         (main): Add two tests for fflush() after ungetc(), taking into account
23945         the Austin Group's clarification.
23946         Suggested by Eric Blake.
23947
23948 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
23949
23950         mktime.m4: remove K&R-style function prototypes
23951         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
23952         for the Sun C++ compiler.
23953
23954 2009-01-14  Bruno Haible  <bruno@clisp.org>
23955
23956         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
23957         while including <wchar.h>.
23958         * lib/wchar.in.h: In two particular situations on HP-UX, include only
23959         the system's <wchar.h> file.
23960         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23961
23962 2009-01-14  Bruno Haible  <bruno@clisp.org>
23963
23964         * m4/csharp.m4: Don't mention gettext on the serial number line.
23965         * m4/csharpexec.m4: Likewise.
23966         * m4/eaccess.m4: Likewise.
23967         * m4/javaexec.m4: Likewise.
23968         * m4/sig_atomic_t.m4: Likewise.
23969         * m4/tmpdir.m4: Likewise.
23970         * m4/intldir.m4: Bump gettext version.
23971         * m4/lib-ld.m4: Likewise.
23972
23973 2009-01-14  Bruno Haible  <bruno@clisp.org>
23974
23975         * lib/progname.c (set_program_name): Add more comments.
23976         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23977
23978 2009-01-14  Simon Josefsson  <simon@josefsson.org>
23979
23980         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
23981         were sys/stat.h does not define it.
23982
23983 2009-01-14  Jim Meyering  <meyering@redhat.com>
23984
23985         many *.m4 files: improve m4 quoting
23986         99% of this change was performed by running the following commands:
23987         git ls-files | grep '\.m4$' | xargs perl -pi \
23988           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
23989           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
23990           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
23991           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
23992         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
23993         The remainder were to add Copyright dates, increment serial numbers,
23994         undo some changes in comments, exclude m4/intl.m4, and add quotes
23995         around the "1" in ",1" where the unusual spacing prohibited the
23996         above regexps from doing the job.  For more details, see
23997         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
23998         * m4/acl.m4: Modified.
23999         * m4/afs.m4: Likewise.
24000         * m4/alloca.m4: Likewise.
24001         * m4/argp.m4: Likewise.
24002         * m4/argz.m4: Likewise.
24003         * m4/atexit.m4: Likewise.
24004         * m4/bison-i18n.m4: Likewise.
24005         * m4/bison.m4: Likewise.
24006         * m4/byteswap.m4: Likewise.
24007         * m4/c-stack.m4: Likewise.
24008         * m4/c-strtod.m4: Likewise.
24009         * m4/calloc.m4: Likewise.
24010         * m4/canonicalize-lgpl.m4: Likewise.
24011         * m4/chown.m4: Likewise.
24012         * m4/clock_time.m4: Likewise.
24013         * m4/codeset.m4: Likewise.
24014         * m4/copy-file.m4: Likewise.
24015         * m4/csharp.m4: Likewise.
24016         * m4/csharpcomp.m4: Likewise.
24017         * m4/csharpexec.m4: Likewise.
24018         * m4/d-ino.m4: Likewise.
24019         * m4/d-type.m4: Likewise.
24020         * m4/dirfd.m4: Likewise.
24021         * m4/double-slash-root.m4: Likewise.
24022         * m4/eaccess.m4: Likewise.
24023         * m4/eealloc.m4: Likewise.
24024         * m4/environ.m4: Likewise.
24025         * m4/errno_h.m4: Likewise.
24026         * m4/euidaccess.m4: Likewise.
24027         * m4/execute.m4: Likewise.
24028         * m4/fatal-signal.m4: Likewise.
24029         * m4/fchdir.m4: Likewise.
24030         * m4/fcntl_h.m4: Likewise.
24031         * m4/fileblocks.m4: Likewise.
24032         * m4/filenamecat.m4: Likewise.
24033         * m4/findprog.m4: Likewise.
24034         * m4/flexmember.m4: Likewise.
24035         * m4/fnmatch.m4: Likewise.
24036         * m4/fopen.m4: Likewise.
24037         * m4/fpending.m4: Likewise.
24038         * m4/fprintf-posix.m4: Likewise.
24039         * m4/free.m4: Likewise.
24040         * m4/frexp.m4: Likewise.
24041         * m4/frexpl.m4: Likewise.
24042         * m4/fsusage.m4: Likewise.
24043         * m4/ftruncate.m4: Likewise.
24044         * m4/gc-camellia.m4: Likewise.
24045         * m4/gc-random.m4: Likewise.
24046         * m4/gc.m4: Likewise.
24047         * m4/getaddrinfo.m4: Likewise.
24048         * m4/getcwd-abort-bug.m4: Likewise.
24049         * m4/getcwd-path-max.m4: Likewise.
24050         * m4/getdate.m4: Likewise.
24051         * m4/getdomainname.m4: Likewise.
24052         * m4/getgroups.m4: Likewise.
24053         * m4/gethostname.m4: Likewise.
24054         * m4/gethrxtime.m4: Likewise.
24055         * m4/getline.m4: Likewise.
24056         * m4/getloadavg.m4: Likewise.
24057         * m4/getndelim2.m4: Likewise.
24058         * m4/getpass.m4: Likewise.
24059         * m4/gettext.m4: Likewise.
24060         * m4/gettime.m4: Likewise.
24061         * m4/gettimeofday.m4: Likewise.
24062         * m4/gnulib-common.m4: Likewise.
24063         * m4/group-member.m4: Likewise.
24064         * m4/host-os.m4: Likewise.
24065         * m4/iconv.m4: Likewise.
24066         * m4/iconv_open.m4: Likewise.
24067         * m4/inet_ntop.m4: Likewise.
24068         * m4/inet_pton.m4: Likewise.
24069         * m4/inline.m4: Likewise.
24070         * m4/intldir.m4: Likewise.
24071         * m4/intlmacosx.m4: Likewise.
24072         * m4/intmax.m4: Likewise.
24073         * m4/intmax_t.m4: Likewise.
24074         * m4/inttypes.m4: Likewise.
24075         * m4/inttypes_h.m4: Likewise.
24076         * m4/inttypes-pri.m4: Likewise.
24077         * m4/isapipe.m4: Likewise.
24078         * m4/isnand.m4: Likewise.
24079         * m4/isnanf.m4: Likewise.
24080         * m4/isnanl.m4: Likewise.
24081         * m4/javacomp.m4: Likewise.
24082         * m4/javaexec.m4: Likewise.
24083         * m4/jm-winsz1.m4: Likewise.
24084         * m4/jm-winsz2.m4: Likewise.
24085         * m4/lchown.m4: Likewise.
24086         * m4/lcmessage.m4: Likewise.
24087         * m4/ldexpl.m4: Likewise.
24088         * m4/lib-ld.m4: Likewise.
24089         * m4/lib-link.m4: Likewise.
24090         * m4/libsigsegv.m4: Likewise.
24091         * m4/link-follow.m4: Likewise.
24092         * m4/localcharset.m4: Likewise.
24093         * m4/locale-fr.m4: Likewise.
24094         * m4/locale-ja.m4: Likewise.
24095         * m4/locale-tr.m4: Likewise.
24096         * m4/locale-zh.m4: Likewise.
24097         * m4/lock.m4: Likewise.
24098         * m4/longlong.m4: Likewise.
24099         * m4/ls-mntd-fs.m4: Likewise.
24100         * m4/lstat.m4: Likewise.
24101         * m4/malloc.m4: Likewise.
24102         * m4/mathl.m4: Likewise.
24103         * m4/mbrtowc.m4: Likewise.
24104         * m4/mbstate_t.m4: Likewise.
24105         * m4/mbswidth.m4: Likewise.
24106         * m4/memchr.m4: Likewise.
24107         * m4/memcmp.m4: Likewise.
24108         * m4/memcpy.m4: Likewise.
24109         * m4/memmem.m4: Likewise.
24110         * m4/memmove.m4: Likewise.
24111         * m4/mempcpy.m4: Likewise.
24112         * m4/memrchr.m4: Likewise.
24113         * m4/memset.m4: Likewise.
24114         * m4/minmax.m4: Likewise.
24115         * m4/mkdir-slash.m4: Likewise.
24116         * m4/mkdtemp.m4: Likewise.
24117         * m4/mktime.m4: Likewise.
24118         * m4/mmap-anon.m4: Likewise.
24119         * m4/mountlist.m4: Likewise.
24120         * m4/nanosleep.m4: Likewise.
24121         * m4/nls.m4: Likewise.
24122         * m4/nocrash.m4: Likewise.
24123         * m4/open.m4: Likewise.
24124         * m4/openat.m4: Likewise.
24125         * m4/openmp.m4: Likewise.
24126         * m4/pathmax.m4: Likewise.
24127         * m4/perl.m4: Likewise.
24128         * m4/physmem.m4: Likewise.
24129         * m4/pipe.m4: Likewise.
24130         * m4/po.m4: Likewise.
24131         * m4/poll.m4: Likewise.
24132         * m4/posixtm.m4: Likewise.
24133         * m4/posixver.m4: Likewise.
24134         * m4/printf-frexp.m4: Likewise.
24135         * m4/printf-frexpl.m4: Likewise.
24136         * m4/printf-posix.m4: Likewise.
24137         * m4/printf-posix-rpl.m4: Likewise.
24138         * m4/printf.m4: Likewise.
24139         * m4/progtest.m4: Likewise.
24140         * m4/putenv.m4: Likewise.
24141         * m4/readline.m4: Likewise.
24142         * m4/readlink.m4: Likewise.
24143         * m4/readutmp.m4: Likewise.
24144         * m4/realloc.m4: Likewise.
24145         * m4/regex.m4: Likewise.
24146         * m4/relocatable.m4: Likewise.
24147         * m4/relocatable-lib.m4: Likewise.
24148         * m4/rename-dest-slash.m4: Likewise.
24149         * m4/rename.m4: Likewise.
24150         * m4/rmdir-errno.m4: Likewise.
24151         * m4/rmdir.m4: Likewise.
24152         * m4/roundf.m4: Likewise.
24153         * m4/roundl.m4: Likewise.
24154         * m4/rpmatch.m4: Likewise.
24155         * m4/save-cwd.m4: Likewise.
24156         * m4/selinux-selinux-h.m4: Likewise.
24157         * m4/setenv.m4: Likewise.
24158         * m4/settime.m4: Likewise.
24159         * m4/sig2str.m4: Likewise.
24160         * m4/sig_atomic_t.m4: Likewise.
24161         * m4/signalblocking.m4: Likewise.
24162         * m4/signbit.m4: Likewise.
24163         * m4/sigpipe.m4: Likewise.
24164         * m4/sockets.m4: Likewise.
24165         * m4/sockpfaf.m4: Likewise.
24166         * m4/st_dm_mode.m4: Likewise.
24167         * m4/stat-time.m4: Likewise.
24168         * m4/stdbool.m4: Likewise.
24169         * m4/stdint.m4: Likewise.
24170         * m4/stdint_h.m4: Likewise.
24171         * m4/stpcpy.m4: Likewise.
24172         * m4/stpncpy.m4: Likewise.
24173         * m4/strcase.m4: Likewise.
24174         * m4/strchrnul.m4: Likewise.
24175         * m4/strcspn.m4: Likewise.
24176         * m4/strdup.m4: Likewise.
24177         * m4/strftime.m4: Likewise.
24178         * m4/strndup.m4: Likewise.
24179         * m4/strnlen.m4: Likewise.
24180         * m4/strpbrk.m4: Likewise.
24181         * m4/strptime.m4: Likewise.
24182         * m4/strsep.m4: Likewise.
24183         * m4/strtod.m4: Likewise.
24184         * m4/strtoimax.m4: Likewise.
24185         * m4/strtok_r.m4: Likewise.
24186         * m4/strtol.m4: Likewise.
24187         * m4/strtoll.m4: Likewise.
24188         * m4/strtoul.m4: Likewise.
24189         * m4/strtoull.m4: Likewise.
24190         * m4/strtoumax.m4: Likewise.
24191         * m4/strverscmp.m4: Likewise.
24192         * m4/threadlib.m4: Likewise.
24193         * m4/timegm.m4: Likewise.
24194         * m4/tm_gmtoff.m4: Likewise.
24195         * m4/tmpdir.m4: Likewise.
24196         * m4/tmpfile.m4: Likewise.
24197         * m4/tzset.m4: Likewise.
24198         * m4/uintmax_t.m4: Likewise.
24199         * m4/unlinkdir.m4: Likewise.
24200         * m4/unlocked-io.m4: Likewise.
24201         * m4/uptime.m4: Likewise.
24202         * m4/userspec.m4: Likewise.
24203         * m4/utimbuf.m4: Likewise.
24204         * m4/utime.m4: Likewise.
24205         * m4/utimes-null.m4: Likewise.
24206         * m4/utimes.m4: Likewise.
24207         * m4/vararrays.m4: Likewise.
24208         * m4/vasnprintf.m4: Likewise.
24209         * m4/vfprintf-posix.m4: Likewise.
24210         * m4/vprintf-posix.m4: Likewise.
24211         * m4/wait-process.m4: Likewise.
24212         * m4/wchar_t.m4: Likewise.
24213         * m4/wint_t.m4: Likewise.
24214         * m4/write-any-file.m4: Likewise.
24215         * m4/yield.m4: Likewise.
24216
24217 2009-01-13  Bruno Haible  <bruno@clisp.org>
24218
24219         Avoid test-copy-file.sh failures when ACL support insufficient.
24220         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
24221         TESTS_ENVIRONMENT.
24222         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
24223         Reported by Jim Meyering.
24224
24225 2009-01-13  Bruno Haible  <bruno@clisp.org>
24226
24227         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
24228         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
24229         * modules/unistdio/u8-printf-parse (Files): Likewise.
24230         * modules/unistdio/u32-printf-parse (Files): Likewise.
24231         * modules/unistdio/ulc-printf-parse (Files): Likewise.
24232
24233 2009-01-13  Simon Josefsson  <simon@josefsson.org>
24234
24235         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
24236         and m4/inttypes_h.m4 too.
24237
24238 2009-01-12  Eric Blake  <ebb9@byu.net>
24239
24240         tests: IRIX 6.2 cc can't compile -0.0 into .data
24241         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
24242         rather than at compile-time.
24243         * tests/test-floorl.c (minus_zero): Likewise.
24244         * tests/test-frexpl.c (minus_zero): Likewise.
24245         * tests/test-isnan.c (minus_zerol): Likewise.
24246         * tests/test-isnanl.h (minus_zero): Likewise.
24247         * tests/test-ldexpl.c (minus_zero): Likewise.
24248         * tests/test-roundl.c (minus_zero): Likewise.
24249         * tests/test-signbit.c (minus_zerol): Likewise.
24250         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
24251         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
24252         * tests/test-truncl.c (minus_zero): Likewise.
24253         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
24254         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
24255         Reported by Tom G. Christensen and Nelson H. F. Beebe.
24256
24257 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24258
24259         regex: fix glibc bug 9697
24260         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
24261         handling.
24262
24263 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24264
24265         regex: fix glibc bug 697
24266         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
24267         being NULL also if there are no backreferences.
24268
24269 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
24270
24271         regex: merge glibc changes
24272         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
24273         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
24274         re_string_skip_chars, re_string_reconstruct): Likewise.
24275         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
24276
24277 2009-01-07  Jim Meyering  <meyering@redhat.com>
24278
24279         poll: filter through cppi
24280         * lib/poll.c: Indent cpp directives to reflect nesting.
24281
24282 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
24283
24284         poll: don't return uninitialized
24285         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
24286
24287 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
24288
24289         avoid compile failure on AIX 6.1
24290         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
24291         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
24292
24293 2009-01-04  Jim Meyering  <meyering@redhat.com>
24294
24295         remove duplicate inclusion of <stdio.h>
24296         * tests/test-fprintf-posix.c: Likewise.
24297         * tests/test-printf-posix.c: Likewise.
24298         * tests/test-snprintf-posix.c: Likewise.
24299         * tests/test-sprintf-posix.c: Likewise.
24300         * tests/test-vasprintf-posix.c: Likewise.
24301         * tests/test-vfprintf-posix.c: Likewise.
24302         * tests/test-vprintf-posix.c: Likewise.
24303         * tests/test-vsnprintf-posix.c: Likewise.
24304         * tests/test-vsprintf-posix.c: Likewise.
24305
24306 2009-01-03  Jim Meyering  <meyering@redhat.com>
24307
24308         gnulib-tool: fix sed-based filtering
24309         * gnulib-tool (func_filter_filelist): Remove extra backslash
24310         in sed_fff_filter definition.
24311
24312 2009-01-02  Jim Meyering  <meyering@redhat.com>
24313
24314         strftime: avoid compilation failure on Solaris 2.6
24315         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
24316         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
24317         Don't #define mbrlen or mbsinit, since now they're guaranteed to
24318         be available.  Reported by Tom G. Christensen.  Details in
24319         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
24320
24321 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24322             Bruno Haible  <bruno@clisp.org>
24323
24324         Speed up gnulib-tool by doing more string processing through shell
24325         built-ins.
24326         * gnulib-tool (fast_func_append): New variable.
24327         (func_remove_prefix, func_remove_suffix): New functions.
24328         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
24329         (func_filter_filelist): New function.
24330         (func_get_dependencies): Use func_remove_suffix instead of sed.
24331         (func_get_automake_snippet): Use func_filter_filelist instead of a
24332         subshell and sed invocation.
24333
24334 2009-01-01  Bruno Haible  <bruno@clisp.org>
24335
24336         Fix a security bug.
24337         * gnulib-tool (func_import, import, update): Don't allow the characters
24338         '"', '$', '`', '\' in macro arguments that become part of commands that
24339         are evaluated.
24340
24341 2009-01-01  Bruno Haible  <bruno@clisp.org>
24342
24343         * gnulib-tool (func_reset_sigpipe): Add more comments.
24344
24345 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24346
24347         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
24348         func_emit_tests_Makefile_am, func_import): Abort loops early if we
24349         already know the answer.
24350
24351 2009-01-01  Jim Meyering  <meyering@redhat.com>
24352
24353         * lib/version-etc.c (version_etc_va): Update copyright year.
24354
24355 2008-12-30  Bruno Haible  <bruno@clisp.org>
24356
24357         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
24358         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
24359         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
24360
24361 2008-12-29  Eric Blake  <ebb9@byu.net>
24362
24363         multiarch: avoid autoconf AC_REQUIRE bug
24364         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
24365         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
24366         2.63 and older.
24367         Reported by Bruno Haible, and analyzed in
24368         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
24369
24370 2008-12-29  Bruno Haible  <bruno@clisp.org>
24371
24372         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
24373         files in subdirectories correctly.
24374         Reported by Ralf Wildenhues.
24375
24376 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24377
24378         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
24379         rather than 'join FILE -', for Solaris join.
24380
24381 2008-12-29  Bruno Haible  <bruno@clisp.org>
24382
24383         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
24384         quoting.
24385         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
24386         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24387         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24388         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
24389         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24390         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
24391         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
24392         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
24393         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24394         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
24395         * m4/nls.m4 (AM_NLS): Likewise.
24396         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
24397         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
24398         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24399         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
24400         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
24401         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
24402         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
24403         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
24404         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
24405         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
24406         * m4/xsize.m4 (gl_XSIZE): Likewise.
24407         Suggested by Jim Meyering.
24408
24409 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24410
24411         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
24412         * lib/parse-duration.c: use a switch instead of cascading if's.
24413
24414 2008-12-29  Eric Blake  <ebb9@byu.net>
24415
24416         wchar.h: supply WEOF on Irix 5.3
24417         * lib/wchar.in.h (wint_t): Also supply WEOF.
24418         * lib/wctype.in.h (wint_t): Likewise.
24419         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
24420         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
24421         Reported by Tom G. Christensen.
24422
24423 2008-12-26  Bruno Haible  <bruno@clisp.org>
24424
24425         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
24426         i486, i586, i686.
24427
24428 2008-12-26  Bruno Haible  <bruno@clisp.org>
24429
24430         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
24431
24432 2008-12-26  Bruno Haible  <bruno@clisp.org>
24433
24434         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
24435         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
24436         not __STDC_CONSTANT_MACROS.
24437         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
24438
24439 2008-12-25  Bruno Haible  <bruno@clisp.org>
24440
24441         Add support for universal builds to vasnprintf.
24442         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
24443         universal builds, guess no.
24444         * modules/vasnprintf-posix (Depends-on): Add multiarch.
24445         * modules/vasprintf-posix (Depends-on): Likewise.
24446         * modules/fprintf-posix (Depends-on): Likewise.
24447         * modules/vfprintf-posix (Depends-on): Likewise.
24448         * modules/snprintf-posix (Depends-on): Likewise.
24449         * modules/vsnprintf-posix (Depends-on): Likewise.
24450         * modules/sprintf-posix (Depends-on): Likewise.
24451         * modules/vsprintf-posix (Depends-on): Likewise.
24452         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24453         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24454         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24455         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24456         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24457         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24458         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24459
24460         Add support for universal builds to <inttypes.h>.
24461         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
24462         _SCNu64_PREFIX): In Apple
24463         universal builds, define directly, using _LP64.
24464         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
24465         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
24466         * modules/inttypes (Depends-on): Add multiarch.
24467         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24468
24469         Add support for universal builds to <stdint.h>.
24470         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
24471         universal builds, define directly, using _LP64.
24472         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
24473         Apple universal builds, don't test for the size and suffix of ptrdiff_t
24474         and size_t.
24475         * modules/stdint (Depends-on): Add multiarch.
24476         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
24477
24478         New module 'multiarch'.
24479         * modules/multiarch: New file.
24480         * m4/multiarch.m4: New file.
24481
24482 2008-12-25  Bruno Haible  <bruno@clisp.org>
24483
24484         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
24485
24486 2008-12-25  Bruno Haible  <bruno@clisp.org>
24487
24488         * modules/btowc (License): Relicense under LGPLv2+.
24489         * modules/mbsinit (License): Likewise.
24490         * modules/mbrtowc (License): Likewise.
24491         * modules/wcrtomb (License): Likewise.
24492         * modules/streq (License): Likewise.
24493         Reported by David Lutterkort <lutter@redhat.com>.
24494
24495 2008-12-23  Bruno Haible  <bruno@clisp.org>
24496
24497         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
24498
24499 2008-12-23  Bruno Haible  <bruno@clisp.org>
24500
24501         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
24502         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
24503         GETADDRINFO_LIB, not in LIBS.
24504         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
24505         * modules/canon-host (Link): Likewise.
24506         * NEWS: Mention the change.
24507         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
24508         GETADDRINFO_LIB.
24509
24510 2008-12-22  Bruno Haible  <bruno@clisp.org>
24511
24512         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
24513         * doc/posix-functions/iswalpha_l.texi: Likewise.
24514         * doc/posix-functions/iswblank_l.texi: Likewise.
24515         * doc/posix-functions/iswcntrl_l.texi: Likewise.
24516         * doc/posix-functions/iswctype_l.texi: Likewise.
24517         * doc/posix-functions/iswdigit_l.texi: Likewise.
24518         * doc/posix-functions/iswgraph_l.texi: Likewise.
24519         * doc/posix-functions/iswlower_l.texi: Likewise.
24520         * doc/posix-functions/iswprint_l.texi: Likewise.
24521         * doc/posix-functions/iswpunct_l.texi: Likewise.
24522         * doc/posix-functions/iswspace_l.texi: Likewise.
24523         * doc/posix-functions/iswupper_l.texi: Likewise.
24524         * doc/posix-functions/iswxdigit_l.texi: Likewise.
24525         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
24526         * doc/posix-functions/open_wmemstream.texi: Likewise.
24527         * doc/posix-functions/swscanf.texi: Likewise.
24528         * doc/posix-functions/towctrans_l.texi: Likewise.
24529         * doc/posix-functions/towlower.texi: Likewise.
24530         * doc/posix-functions/towlower_l.texi: Likewise.
24531         * doc/posix-functions/towupper.texi: Likewise.
24532         * doc/posix-functions/towupper_l.texi: Likewise.
24533         * doc/posix-functions/vfwprintf.texi: Likewise.
24534         * doc/posix-functions/vfwscanf.texi: Likewise.
24535         * doc/posix-functions/vswscanf.texi: Likewise.
24536         * doc/posix-functions/vwprintf.texi: Likewise.
24537         * doc/posix-functions/vwscanf.texi: Likewise.
24538         * doc/posix-functions/wcpcpy.texi: Likewise.
24539         * doc/posix-functions/wcpncpy.texi: Likewise.
24540         * doc/posix-functions/wcscasecmp.texi: Likewise.
24541         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
24542         * doc/posix-functions/wcscoll_l.texi: Likewise.
24543         * doc/posix-functions/wcsdup.texi: Likewise.
24544         * doc/posix-functions/wcsncasecmp.texi: Likewise.
24545         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
24546         * doc/posix-functions/wcsnlen.texi: Likewise.
24547         * doc/posix-functions/wcsnrtombs.texi: Likewise.
24548         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
24549         * doc/posix-functions/wctrans_l.texi: Likewise.
24550         * doc/posix-functions/wctype_l.texi: Likewise.
24551         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
24552         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
24553         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
24554         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
24555         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
24556         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
24557         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
24558         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
24559         * doc/glibc-functions/wcschrnul.texi: Likewise.
24560         * doc/glibc-functions/wcsftime_l.texi: Likewise.
24561         * doc/glibc-functions/wcstod_l.texi: Likewise.
24562         * doc/glibc-functions/wcstof_l.texi: Likewise.
24563         * doc/glibc-functions/wcstol_l.texi: Likewise.
24564         * doc/glibc-functions/wcstold_l.texi: Likewise.
24565         * doc/glibc-functions/wcstoll_l.texi: Likewise.
24566         * doc/glibc-functions/wcstoq.texi: Likewise.
24567         * doc/glibc-functions/wcstoul_l.texi: Likewise.
24568         * doc/glibc-functions/wcstoull_l.texi: Likewise.
24569         * doc/glibc-functions/wcstouq.texi: Likewise.
24570         * doc/glibc-functions/wmempcpy.texi: Likewise.
24571
24572 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
24573             Eric Blake  <ebb9@byu.net>
24574             Paolo Bonzini  <bonzini@gnu.org>
24575             Bruno Haible  <bruno@clisp.org>
24576
24577         Make c-stack work on Haiku.
24578         * lib/c-stack.c (SA_ONSTACK): Define fallback.
24579         (c_stack_action): Use SA_ONSTACK flag.
24580
24581 2008-12-22  Bruno Haible  <bruno@clisp.org>
24582
24583         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
24584
24585 2008-12-22  Bruno Haible  <bruno@clisp.org>
24586
24587         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
24588         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
24589         being overridden.
24590         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
24591         New macros.
24592         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
24593         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
24594         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
24595         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
24596
24597 2008-12-22  Bruno Haible  <bruno@clisp.org>
24598
24599         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
24600         from test code.
24601
24602 2008-12-22  Eric Blake  <ebb9@byu.net>
24603
24604         Avoid gcc warnings on cygwin.
24605         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
24606         Avoid unused variable.
24607         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
24608         Likewise.
24609
24610 2008-12-22  Bruno Haible  <bruno@clisp.org>
24611
24612         Remove HAVE_MBRTOWC conditionals.
24613         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
24614         (mbscasecmp): Assume mbrtowc function.
24615         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
24616         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
24617         * lib/mbschr.c: Include mbuiter.h unconditionally.
24618         (mbschr): Assume mbrtowc function.
24619         * lib/mbscspn.c: Include mbuiter.h unconditionally.
24620         (mbscspn): Assume mbrtowc function.
24621         * lib/mbslen.c: Include mbuiter.h unconditionally.
24622         (mbslen): Assume mbrtowc function.
24623         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
24624         (mbsncasecmp): Assume mbrtowc function.
24625         * lib/mbsnlen.c: Include mbiter.h unconditionally.
24626         (mbsnlen): Assume mbrtowc function.
24627         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
24628         (mbspbrk): Assume mbrtowc function.
24629         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
24630         (mbspcasecmp): Assume mbrtowc function.
24631         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
24632         (mbsrchr): Assume mbrtowc function.
24633         * lib/mbssep.c: Include mbuiter.h unconditionally.
24634         (mbssep): Assume mbrtowc function.
24635         * lib/mbsspn.c: Include mbuiter.h unconditionally.
24636         (mbsspn): Assume mbrtowc function.
24637         * lib/mbsstr.c: Include mbuiter.h unconditionally.
24638         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
24639         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
24640         (mbstok_r): Assume mbrtowc function.
24641         * lib/propername.c: Include mbuiter.h unconditionally.
24642         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
24643         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
24644         (trim2): Assume mbrtowc function.
24645         * lib/mbswidth.c (mbsinit): Remove fallback definition.
24646         (mbsnwidth): Assume mbrtowc function.
24647         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
24648         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
24649         fallback definitions.
24650         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
24651
24652 2008-12-22  Bruno Haible  <bruno@clisp.org>
24653
24654         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
24655
24656 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
24657
24658         * modules/regex: Request emulations for the mb*/wc* functions we need.
24659         * m4/regex.m4: Don't look for those functions here.
24660         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
24661
24662 2008-12-22  Bruno Haible  <bruno@clisp.org>
24663
24664         * modules/fnmatch (Depends-on): Remove duplicated dependency.
24665
24666 2008-12-21  Bruno Haible  <bruno@clisp.org>
24667
24668         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
24669         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
24670         (Include): Remove conditionalization.
24671         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
24672         (Include): Remove conditionalization.
24673         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
24674         (Include): Remove conditionalization.
24675         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
24676         * m4/mbfile.m4 (gl_MBFILE): Likewise.
24677         * NEWS: Mention the change.
24678         Reported by Alan Hourihane <alanh@fairlite.co.uk>
24679         via Sergey Poznyakoff <gray@gnu.org.ua>.
24680
24681 2008-12-21  Bruno Haible  <bruno@clisp.org>
24682
24683         * MODULES.html.sh (Extended multibyte and wide character utilities
24684         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
24685         wcrtomb, wcsrtombs.
24686         (Support for systems lacking POSIX:2008): Add accept, bind, close,
24687         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
24688         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
24689         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
24690
24691 2008-12-21  Bruno Haible  <bruno@clisp.org>
24692
24693         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
24694
24695 2008-12-21  Bruno Haible  <bruno@clisp.org>
24696
24697         * modules/wcsnrtombs-tests: New file.
24698         * tests/test-wcsnrtombs1.sh: New file.
24699         * tests/test-wcsnrtombs2.sh: New file.
24700         * tests/test-wcsnrtombs3.sh: New file.
24701         * tests/test-wcsnrtombs4.sh: New file.
24702         * tests/test-wcsnrtombs.c: New file.
24703
24704         New module 'wcsnrtombs'.
24705         * lib/wchar.in.h (wcsnrtombs): New declaration.
24706         * lib/wcsnrtombs.c: New file.
24707         * lib/wcsrtombs-state.c: New file.
24708         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
24709         (internal_state): Remove variable.
24710         * m4/wcsnrtombs.m4: New file.
24711         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
24712         compilation units.
24713         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
24714         HAVE_WCSNRTOMBS.
24715         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
24716         HAVE_WCSNRTOMBS.
24717         * modules/wcsnrtombs: New file.
24718         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
24719         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
24720
24721 2008-12-21  Bruno Haible  <bruno@clisp.org>
24722
24723         * modules/wcsrtombs-tests: New file.
24724         * tests/test-wcsrtombs1.sh: New file.
24725         * tests/test-wcsrtombs2.sh: New file.
24726         * tests/test-wcsrtombs3.sh: New file.
24727         * tests/test-wcsrtombs4.sh: New file.
24728         * tests/test-wcsrtombs.c: New file.
24729
24730         New module 'wcsrtombs'.
24731         * lib/wchar.in.h (wcsrtombs): New declaration.
24732         * lib/wcsrtombs.c: New file.
24733         * m4/wcsrtombs.m4: New file.
24734         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
24735         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24736         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
24737         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24738         * modules/wcsrtombs: New file.
24739         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
24740         bugs.
24741
24742 2008-12-21  Bruno Haible  <bruno@clisp.org>
24743
24744         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
24745         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
24746         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
24747         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
24748         if not correct.
24749         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
24750         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
24751         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24752         m4/locale-zh.m4, m4/codeset.m4.
24753         * doc/posix-functions/wcrtomb.texi: Document the bug.
24754
24755 2008-12-21  Bruno Haible  <bruno@clisp.org>
24756
24757         Work around a btowc() bug on IRIX 6.5.
24758         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
24759         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
24760         REPLACE_WTOBC if not.
24761         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
24762         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
24763         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
24764
24765 2008-12-21  Bruno Haible  <bruno@clisp.org>
24766
24767         * modules/wcrtomb-tests: New file.
24768         * tests/test-wcrtomb.sh: New file.
24769         * tests/test-wcrtomb.c: New file.
24770
24771         New module 'wcrtomb'.
24772         * lib/wchar.in.h (wcrtomb): New declaration.
24773         * lib/wcrtomb.c: New file.
24774         * m4/wcrtomb.m4: New file.
24775         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
24776         HAVE_WCRTOMB.
24777         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
24778         HAVE_WCRTOMB.
24779         * modules/wcrtomb: New file.
24780         * doc/posix-functions/wcrtomb.texi: Mention the new module.
24781
24782 2008-12-21  Bruno Haible  <bruno@clisp.org>
24783
24784         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
24785         * modules/mbsrtowcs (Files): Likewise.
24786         * modules/wctob (Files): Likewise.
24787         * modules/c-strcase-tests (Files): Likewise.
24788         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24789         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24790         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24791         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24792         * modules/vasnprintf-posix-tests (Files): Likewise.
24793
24794 2008-12-21  William Pursell  <bill.pursell@gmail.com>
24795
24796         gitlog-to-changelog: pass all command-line arguments to git-log
24797         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
24798         it is sometimes convenient to filter the commits in various ways.
24799         gitlog-to-changelog only allows --since to specify a start date,
24800         but git-log itself supports many other filtering mechanisms.
24801         At the moment, I want to filter by branch name.  Rather than
24802         adding a --branch option to gitlog-to-changelog, it seems more
24803         flexible to simply pass all options directly to git-log and let
24804         git do the work.  Notice that this effectively makes --since a
24805         redundant option for gitlog-to-changelog, but removing it would
24806         require current usage to change since calls would then require
24807         an additional '--'.
24808
24809 2008-12-21  Bruno Haible  <bruno@clisp.org>
24810
24811         * modules/mbsnrtowcs-tests: New file.
24812         * tests/test-mbsnrtowcs1.sh: New file.
24813         * tests/test-mbsnrtowcs2.sh: New file.
24814         * tests/test-mbsnrtowcs3.sh: New file.
24815         * tests/test-mbsnrtowcs4.sh: New file.
24816         * tests/test-mbsnrtowcs.c: New file.
24817
24818         New module 'mbsnrtowcs'.
24819         * lib/wchar.in.h (mbsnrtowcs): New declaration.
24820         * lib/mbsnrtowcs.c: New file.
24821         * lib/mbsrtowcs-state.c: New file.
24822         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
24823         (internal_state): Remove variable.
24824         * m4/mbsnrtowcs.m4: New file.
24825         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
24826         compilation units.
24827         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
24828         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24829         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
24830         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24831         * modules/mbsnrtowcs: New file.
24832         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
24833         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
24834         portability problem.
24835
24836 2008-12-21  Bruno Haible  <bruno@clisp.org>
24837
24838         Work around mbsrtowcs bug.
24839         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
24840         (gl_FUNC_MBSRTOWCS): Invoke it.
24841         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24842         m4/locale-zh.m4.
24843         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
24844
24845 2008-12-21  Bruno Haible  <bruno@clisp.org>
24846
24847         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
24848
24849 2008-12-21  Bruno Haible  <bruno@clisp.org>
24850
24851         Update doc for AIX.
24852         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
24853         16-bit wchar_t type.
24854         * doc/posix-functions/btowc.texi: Likewise.
24855         * doc/posix-functions/fgetwc.texi: Likewise.
24856         * doc/posix-functions/fgetws.texi: Likewise.
24857         * doc/posix-functions/fputwc.texi: Likewise.
24858         * doc/posix-functions/fputws.texi: Likewise.
24859         * doc/posix-functions/fwide.texi: Likewise.
24860         * doc/posix-functions/fwprintf.texi: Likewise.
24861         * doc/posix-functions/fwscanf.texi: Likewise.
24862         * doc/posix-functions/getwchar.texi: Likewise.
24863         * doc/posix-functions/getwc.texi: Likewise.
24864         * doc/posix-functions/iswalnum.texi: Likewise.
24865         * doc/posix-functions/iswalpha.texi: Likewise.
24866         * doc/posix-functions/iswblank.texi: Likewise.
24867         * doc/posix-functions/iswcntrl.texi: Likewise.
24868         * doc/posix-functions/iswctype.texi: Likewise.
24869         * doc/posix-functions/iswdigit.texi: Likewise.
24870         * doc/posix-functions/iswgraph.texi: Likewise.
24871         * doc/posix-functions/iswlower.texi: Likewise.
24872         * doc/posix-functions/iswprint.texi: Likewise.
24873         * doc/posix-functions/iswpunct.texi: Likewise.
24874         * doc/posix-functions/iswspace.texi: Likewise.
24875         * doc/posix-functions/iswupper.texi: Likewise.
24876         * doc/posix-functions/iswxdigit.texi: Likewise.
24877         * doc/posix-functions/mbrtowc.texi: Likewise.
24878         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24879         * doc/posix-functions/mbstowcs.texi: Likewise.
24880         * doc/posix-functions/mbtowc.texi: Likewise.
24881         * doc/posix-functions/putwchar.texi: Likewise.
24882         * doc/posix-functions/putwc.texi: Likewise.
24883         * doc/posix-functions/swprintf.texi: Likewise.
24884         * doc/posix-functions/tolower.texi: Likewise.
24885         * doc/posix-functions/toupper.texi: Likewise.
24886         * doc/posix-functions/towctrans.texi: Likewise.
24887         * doc/posix-functions/ungetwc.texi: Likewise.
24888         * doc/posix-functions/vswprintf.texi: Likewise.
24889         * doc/posix-functions/wcrtomb.texi: Likewise.
24890         * doc/posix-functions/wcscat.texi: Likewise.
24891         * doc/posix-functions/wcschr.texi: Likewise.
24892         * doc/posix-functions/wcscmp.texi: Likewise.
24893         * doc/posix-functions/wcscoll.texi: Likewise.
24894         * doc/posix-functions/wcscpy.texi: Likewise.
24895         * doc/posix-functions/wcscspn.texi: Likewise.
24896         * doc/posix-functions/wcsftime.texi: Likewise.
24897         * doc/posix-functions/wcslen.texi: Likewise.
24898         * doc/posix-functions/wcsncat.texi: Likewise.
24899         * doc/posix-functions/wcsncmp.texi: Likewise.
24900         * doc/posix-functions/wcsncpy.texi: Likewise.
24901         * doc/posix-functions/wcspbrk.texi: Likewise.
24902         * doc/posix-functions/wcsrchr.texi: Likewise.
24903         * doc/posix-functions/wcsrtombs.texi: Likewise.
24904         * doc/posix-functions/wcsspn.texi: Likewise.
24905         * doc/posix-functions/wcsstr.texi: Likewise.
24906         * doc/posix-functions/wcstod.texi: Likewise.
24907         * doc/posix-functions/wcstof.texi: Likewise.
24908         * doc/posix-functions/wcstoimax.texi: Likewise.
24909         * doc/posix-functions/wcstok.texi: Likewise.
24910         * doc/posix-functions/wcstold.texi: Likewise.
24911         * doc/posix-functions/wcstoll.texi: Likewise.
24912         * doc/posix-functions/wcstol.texi: Likewise.
24913         * doc/posix-functions/wcstombs.texi: Likewise.
24914         * doc/posix-functions/wcstoull.texi: Likewise.
24915         * doc/posix-functions/wcstoul.texi: Likewise.
24916         * doc/posix-functions/wcstoumax.texi: Likewise.
24917         * doc/posix-functions/wcswidth.texi: Likewise.
24918         * doc/posix-functions/wcsxfrm.texi: Likewise.
24919         * doc/posix-functions/wctob.texi: Likewise.
24920         * doc/posix-functions/wctomb.texi: Likewise.
24921         * doc/posix-functions/wctrans.texi: Likewise.
24922         * doc/posix-functions/wctype.texi: Likewise.
24923         * doc/posix-functions/wcwidth.texi: Likewise.
24924         * doc/posix-functions/wmemchr.texi: Likewise.
24925         * doc/posix-functions/wmemcmp.texi: Likewise.
24926         * doc/posix-functions/wmemcpy.texi: Likewise.
24927         * doc/posix-functions/wmemmove.texi: Likewise.
24928         * doc/posix-functions/wmemset.texi: Likewise.
24929         * doc/posix-functions/wprintf.texi: Likewise.
24930         * doc/posix-functions/wscanf.texi: Likewise.
24931
24932 2008-12-21  Bruno Haible  <bruno@clisp.org>
24933
24934         Update doc for HP-UX 11.11.
24935         * doc/posix-functions/btowc.texi: Clarify that the function is missing
24936         in HP-UX version 11.00, not in all versions of HP-UX 11.
24937         * doc/posix-functions/fwide.texi: Likewise.
24938         * doc/posix-functions/fwprintf.texi: Likewise.
24939         * doc/posix-functions/fwscanf.texi: Likewise.
24940         * doc/posix-functions/inet_ntop.texi: Likewise.
24941         * doc/posix-functions/inet_pton.texi: Likewise.
24942         * doc/posix-functions/mbrlen.texi: Likewise.
24943         * doc/posix-functions/mbrtowc.texi: Likewise.
24944         * doc/posix-functions/mbsinit.texi: Likewise.
24945         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24946         * doc/posix-functions/swprintf.texi: Likewise.
24947         * doc/posix-functions/swscanf.texi: Likewise.
24948         * doc/posix-functions/towctrans.texi: Likewise.
24949         * doc/posix-functions/vfwprintf.texi: Likewise.
24950         * doc/posix-functions/vswprintf.texi: Likewise.
24951         * doc/posix-functions/vwprintf.texi: Likewise.
24952         * doc/posix-functions/wcrtomb.texi: Likewise.
24953         * doc/posix-functions/wcsrtombs.texi: Likewise.
24954         * doc/posix-functions/wcsstr.texi: Likewise.
24955         * doc/posix-functions/wctob.texi: Likewise.
24956         * doc/posix-functions/wctrans.texi: Likewise.
24957         * doc/posix-functions/wmemchr.texi: Likewise.
24958         * doc/posix-functions/wmemcmp.texi: Likewise.
24959         * doc/posix-functions/wmemcpy.texi: Likewise.
24960         * doc/posix-functions/wmemmove.texi: Likewise.
24961         * doc/posix-functions/wmemset.texi: Likewise.
24962         * doc/posix-functions/wprintf.texi: Likewise.
24963         * doc/posix-functions/wscanf.texi: Likewise.
24964
24965 2008-12-21  Bruno Haible  <bruno@clisp.org>
24966
24967         Work around a portability problem.
24968         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
24969         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
24970
24971 2008-12-20  Bruno Haible  <bruno@clisp.org>
24972
24973         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
24974         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
24975         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
24976         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
24977         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
24978
24979         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
24980         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
24981         set.
24982         (GNULIB_defined_mbstate_t): New macro.
24983         (mbsinit): Redefine if REPLACE_MBSINIT is set.
24984         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
24985         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
24986         reuses the system's mbrtowc function but works around the bugs.
24987         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
24988         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
24989         macros.
24990         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
24991         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
24992         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
24993         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
24994         REPLACE_MBSINIT if mbsinit needs to be overridden.
24995         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
24996         REPLACE_MBSINIT, REPLACE_MBRTOWC.
24997         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
24998         REPLACE_MBSINIT, REPLACE_MBRTOWC.
24999         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25000         m4/locale-zh.m4.
25001         (Depends): Add mbsinit.
25002         * modules/mbsinit (Depends): Add mbrtowc.
25003         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
25004
25005 2008-12-20  Bruno Haible  <bruno@clisp.org>
25006
25007         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
25008         so that there are no conversion errors on AIX.
25009         * tests/test-mbsrtowcs.c (main): LIkewise.
25010
25011 2008-12-20  Bruno Haible  <bruno@clisp.org>
25012
25013         Work around wctob bug on Solaris <= 9.
25014         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
25015         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
25016         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
25017         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
25018         * modules/wctob (Files): Add m4/locale-fr.m4.
25019         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
25020
25021 2008-12-20  Bruno Haible  <bruno@clisp.org>
25022
25023         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
25024         /dev/null.
25025         * tests/test-select-in.sh: Likewise.
25026         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25027
25028 2008-12-20  Bruno Haible  <bruno@clisp.org>
25029
25030         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
25031         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
25032         Cygwin 1.5.x.
25033
25034 2008-12-20  Bruno Haible  <bruno@clisp.org>
25035
25036         Ensure mbstate_t is defined on HP-UX 11.11.
25037         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
25038         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
25039         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
25040         AC_USE_SYSTEM_EXTENSIONS.
25041         * modules/fnmatch (Depends-on): Add extensions.
25042         * modules/mbrlen (Depends-on): Likewise.
25043         * modules/mbrtowc (Depends-on): Likewise.
25044         * modules/mbsinit (Depends-on): Likewise.
25045         * modules/mbsrtowcs (Depends-on): Likewise.
25046         * modules/mbswidth (Depends-on): Likewise.
25047         * modules/quotearg (Depends-on): Likewise.
25048         * modules/strftime (Depends-on): Likewise.
25049
25050 2008-12-20  Bruno Haible  <bruno@clisp.org>
25051
25052         Ensure wctob is declared on IRIX 6.5.
25053         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
25054         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
25055         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
25056         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
25057         of HAVE_WCTOB.
25058         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
25059         HAVE_WCTOB.
25060         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
25061
25062 2008-12-19  Bruno Haible  <bruno@clisp.org>
25063
25064         * modules/mbsrtowcs-tests: New file.
25065         * tests/test-mbsrtowcs1.sh: New file.
25066         * tests/test-mbsrtowcs2.sh: New file.
25067         * tests/test-mbsrtowcs3.sh: New file.
25068         * tests/test-mbsrtowcs4.sh: New file.
25069         * tests/test-mbsrtowcs.c: New file.
25070
25071         New module 'mbsrtowcs'.
25072         * lib/wchar.in.h (mbsrtowcs): New declaration.
25073         * lib/mbsrtowcs.c: New file.
25074         * m4/mbsrtowcs.m4: New file.
25075         * modules/mbsrtowcs: New file.
25076         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
25077         HAVE_MBSRTOWCS.
25078         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
25079         HAVE_MBSRTOWCS.
25080         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
25081
25082 2008-12-19  Bruno Haible  <bruno@clisp.org>
25083
25084         New module 'mbrlen'.
25085         * lib/wchar.in.h (mbrlen): New declaration.
25086         * lib/mbrlen.c: New file.
25087         * m4/mbrlen.m4: New file.
25088         * modules/mbrlen: New file.
25089         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
25090         HAVE_MBRLEN.
25091         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
25092         HAVE_MBRLEN.
25093         * doc/posix-functions/mbrlen.texi: Document the new module.
25094
25095 2008-12-19  Bruno Haible  <bruno@clisp.org>
25096
25097         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
25098         * modules/mbrtowc (Depends-on): Add verify.
25099         Suggested by Paul Eggert.
25100
25101 2008-12-18  Bruno Haible  <bruno@clisp.org>
25102
25103         * modules/mbsinit-tests: New file.
25104         * tests/test-mbsinit.sh: New file.
25105         * tests/test-mbsinit.c: New file.
25106
25107 2008-12-18  Bruno Haible  <bruno@clisp.org>
25108
25109         * modules/mbrtowc-tests: New file.
25110         * tests/test-mbrtowc1.sh: New file.
25111         * tests/test-mbrtowc2.sh: New file.
25112         * tests/test-mbrtowc3.sh: New file.
25113         * tests/test-mbrtowc4.sh: New file.
25114         * tests/test-mbrtowc.c: New file.
25115
25116         New module 'mbrtowc'.
25117         * lib/wchar.in.h (mbstate_t): Override when the system does not have
25118         mbsinit and mbrtowc.
25119         (mbrtowc): New declaration.
25120         * lib/mbrtowc.c: New file.
25121         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
25122         * modules/mbrtowc: New file.
25123         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
25124         HAVE_MBRTOWC.
25125         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
25126         HAVE_MBRTOWC.
25127         * doc/posix-functions/mbrtowc.texi: Document the new module.
25128
25129 2008-12-18  Bruno Haible  <bruno@clisp.org>
25130
25131         New module 'wctob'.
25132         * lib/wchar.in.h (wctob): New declaration.
25133         * lib/wctob.c: New file.
25134         * m4/wctob.m4: New file.
25135         * modules/wctob: New file.
25136         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
25137         HAVE_WCTOB.
25138         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
25139         * doc/posix-functions/wctob.texi: Document the new module.
25140
25141 2008-12-18  Bruno Haible  <bruno@clisp.org>
25142
25143         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
25144         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
25145
25146 2008-12-18  Simon Josefsson  <simon@josefsson.org>
25147
25148         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
25149         G. Christensen" <tgc@jupiterrise.com>.
25150
25151         * lib/flock.c: Need to include errno.h.  Reported by "Tom
25152         G. Christensen" <tgc@jupiterrise.com>.
25153
25154         * lib/flock.c: Need to include string.h.  Reported by "Tom
25155         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
25156         <ebb9@byu.net>.
25157
25158 2008-12-18  Bruno Haible  <bruno@clisp.org>
25159
25160         * m4/locale-ja.m4: New file, from GNU gettext.
25161
25162 2008-12-17  Bruno Haible  <bruno@clisp.org>
25163
25164         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
25165         Suggested by Eric Blake.
25166
25167 2008-12-17  Bruno Haible  <bruno@clisp.org>
25168
25169         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
25170
25171 2008-12-17  Bruno Haible  <bruno@clisp.org>
25172
25173         * lib/mbsinit.c: Include verify.h. Verify an assumption.
25174         * modules/mbsinit (Depends-on): Add verify.
25175         Suggested by Paul Eggert.
25176
25177 2008-12-17  Bruno Haible  <bruno@clisp.org>
25178
25179         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
25180         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
25181         gl_FUNC_MBRTOWC.
25182         * m4/mbiter.m4 (gl_MBITER): LIkewise.
25183         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
25184         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
25185         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
25186         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
25187         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
25188         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
25189         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
25190         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
25191         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
25192         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
25193         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
25194         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
25195         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
25196         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
25197         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25198         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
25199         * modules/trim (configure.ac): Likewise.
25200
25201 2008-12-17  Bruno Haible  <bruno@clisp.org>
25202
25203         * modules/btowc-tests: New file.
25204         * tests/test-btowc1.sh: New file.
25205         * tests/test-btowc2.sh: New file.
25206         * tests/test-btowc.c: New file.
25207
25208         New module 'btowc'.
25209         * lib/wchar.in.h (btowc): New declaration.
25210         * lib/btowc.c: New file.
25211         * m4/btowc.m4: New file.
25212         * modules/btowc: New file.
25213         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
25214         HAVE_BTOWC.
25215         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
25216         * doc/posix-functions/btowc.texi: Document the new module.
25217
25218 2008-12-17  Bruno Haible  <bruno@clisp.org>
25219
25220         New module 'mbsinit'.
25221         * lib/wchar.in.h (mbsinit): New declaration.
25222         * lib/mbsinit.c: New file.
25223         * m4/mbsinit.m4: New file.
25224         * modules/mbsinit: New file.
25225         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
25226         HAVE_MBSINIT.
25227         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
25228         HAVE_MBSINIT.
25229         * doc/posix-functions/mbsinit.texi: Document the new module.
25230
25231 2008-12-16  Bruno Haible  <bruno@clisp.org>
25232
25233         * lib/unistd.in.h: Add comment.
25234         * tests/test-environ.c: Don't include <stdlib.h>.
25235
25236 2008-12-16  Bruno Haible  <bruno@clisp.org>
25237
25238         * lib/parse-duration.h (parse_duration): Document return value
25239         convention.
25240         * lib/parse-duration.c: Include specification header first. Add
25241         comments.
25242         (_): Remove macro.
25243         (parse_year_month_day, parse_hour_minute_second): Move side effects
25244         outside of strchr call.
25245         (parse_non_iso8601): Move side effects outside of isspace call.
25246         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
25247         call.
25248
25249 2008-12-16  Bruno Haible  <bruno@clisp.org>
25250
25251         * tests/test-parse-duration.sh: Produce no output when the test
25252         succeeds.
25253
25254 2008-12-16  Bruno Haible  <bruno@clisp.org>
25255
25256         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
25257         expressions.
25258
25259 2008-12-15  Bruno Haible  <bruno@clisp.org>
25260
25261         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
25262         * doc/glibc-functions/flistxattr.texi: Likewise.
25263         * doc/glibc-functions/fopencookie.texi: Likewise.
25264         * doc/glibc-functions/fremovexattr.texi: Likewise.
25265         * doc/glibc-functions/fsetxattr.texi: Likewise.
25266         * doc/glibc-functions/getxattr.texi: Likewise.
25267         * doc/glibc-functions/lgetxattr.texi: Likewise.
25268         * doc/glibc-functions/listxattr.texi: Likewise.
25269         * doc/glibc-functions/llistxattr.texi: Likewise.
25270         * doc/glibc-functions/lremovexattr.texi: Likewise.
25271         * doc/glibc-functions/lsetxattr.texi: Likewise.
25272         * doc/glibc-functions/removexattr.texi: Likewise.
25273         * doc/glibc-functions/setxattr.texi: Likewise.
25274         * doc/posix-functions/open_memstream.texi: Likewise.
25275
25276 2008-12-15  Eric Blake  <ebb9@byu.net>
25277
25278         Update doc for cygwin 1.7.
25279         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
25280         functions.
25281         * doc/posix-functions/fchmodat.texi: Likewise.
25282         * doc/posix-functions/fchownat.texi: Likewise.
25283         * doc/posix-functions/fdopendir.texi: Likewise.
25284         * doc/posix-functions/fmemopen.texi: Likewise.
25285         * doc/posix-functions/freeaddrinfo.texi: Likewise.
25286         * doc/posix-functions/fstatat.texi: Likewise.
25287         * doc/posix-functions/futimens.texi: Likewise.
25288         * doc/posix-functions/gai_strerror.texi: Likewise.
25289         * doc/posix-functions/getaddrinfo.texi: Likewise.
25290         * doc/posix-functions/getnameinfo.texi: Likewise.
25291         * doc/posix-functions/if_freenameindex.texi: Likewise.
25292         * doc/posix-functions/if_indextoname.texi: Likewise.
25293         * doc/posix-functions/if_nameindex.texi: Likewise.
25294         * doc/posix-functions/if_nametoindex.texi: Likewise.
25295         * doc/posix-functions/insque.texi: Likewise.
25296         * doc/posix-functions/linkat.texi: Likewise.
25297         * doc/posix-functions/llrint.texi: Likewise.
25298         * doc/posix-functions/llrintf.texi: Likewise.
25299         * doc/posix-functions/llrintl.texi: Likewise.
25300         * doc/posix-functions/lockf.texi: Likewise.
25301         * doc/posix-functions/lrintl.texi: Likewise.
25302         * doc/posix-functions/mkdirat.texi: Likewise.
25303         * doc/posix-functions/mkfifoat.texi: Likewise.
25304         * doc/posix-functions/mknodat.texi: Likewise.
25305         * doc/posix-functions/mq_close.texi: Likewise.
25306         * doc/posix-functions/mq_getattr.texi: Likewise.
25307         * doc/posix-functions/mq_notify.texi: Likewise.
25308         * doc/posix-functions/mq_open.texi: Likewise.
25309         * doc/posix-functions/mq_receive.texi: Likewise.
25310         * doc/posix-functions/mq_send.texi: Likewise.
25311         * doc/posix-functions/mq_setattr.texi: Likewise.
25312         * doc/posix-functions/mq_timedreceive.texi: Likewise.
25313         * doc/posix-functions/mq_timedsend.texi: Likewise.
25314         * doc/posix-functions/mq_unlink.texi: Likewise.
25315         * doc/posix-functions/open_memstream.texi: Likewise.
25316         * doc/posix-functions/openat.texi: Likewise.
25317         * doc/posix-functions/posix_fadvise.texi: Likewise.
25318         * doc/posix-functions/posix_fallocate.texi: Likewise.
25319         * doc/posix-functions/posix_madvise.texi: Likewise.
25320         * doc/posix-functions/posix_memalign.texi: Likewise.
25321         * doc/posix-functions/posix_openpt.texi: Likewise.
25322         * doc/posix-functions/readlinkat.texi: Likewise.
25323         * doc/posix-functions/remque.texi: Likewise.
25324         * doc/posix-functions/renameat.texi: Likewise.
25325         * doc/posix-functions/rintl.texi: Likewise.
25326         * doc/posix-functions/sem_unlink.texi: Likewise.
25327         * doc/posix-functions/shm_open.texi: Likewise.
25328         * doc/posix-functions/shm_unlink.texi: Likewise.
25329         * doc/posix-functions/signgam.texi: Likewise.
25330         * doc/posix-functions/sigset.texi: Likewise.
25331         * doc/posix-functions/stpcpy.texi: Likewise.
25332         * doc/posix-functions/stpncpy.texi: Likewise.
25333         * doc/posix-functions/strerror.texi: Likewise.
25334         * doc/posix-functions/strtod.texi: Likewise.
25335         * doc/posix-functions/symlinkat.texi: Likewise.
25336         * doc/posix-functions/unlinkat.texi: Likewise.
25337         * doc/posix-functions/utimensat.texi: Likewise.
25338         * doc/glibc-functions/bindresvport.texi: Likewise.
25339         * doc/glibc-functions/dn_expand.texi: Likewise.
25340         * doc/glibc-functions/exp10.texi: Likewise.
25341         * doc/glibc-functions/exp10f.texi: Likewise.
25342         * doc/glibc-functions/fgetxattr.texi: Likewise.
25343         * doc/glibc-functions/flistxattr.texi: Likewise.
25344         * doc/glibc-functions/fopencookie.texi: Likewise.
25345         * doc/glibc-functions/freeifaddrs.texi: Likewise.
25346         * doc/glibc-functions/fremovexattr.texi: Likewise.
25347         * doc/glibc-functions/fsetxattr.texi: Likewise.
25348         * doc/glibc-functions/getifaddrs.texi: Likewise.
25349         * doc/glibc-functions/getxattr.texi: Likewise.
25350         * doc/glibc-functions/lgetxattr.texi: Likewise.
25351         * doc/glibc-functions/listxattr.texi: Likewise.
25352         * doc/glibc-functions/llistxattr.texi: Likewise.
25353         * doc/glibc-functions/lremovexattr.texi: Likewise.
25354         * doc/glibc-functions/lsetxattr.texi: Likewise.
25355         * doc/glibc-functions/pow10.texi: Likewise.
25356         * doc/glibc-functions/pow10f.texi: Likewise.
25357         * doc/glibc-functions/rcmd_af.texi: Likewise.
25358         * doc/glibc-functions/removexattr.texi: Likewise.
25359         * doc/glibc-functions/res_init.texi: Likewise.
25360         * doc/glibc-functions/res_mkquery.texi: Likewise.
25361         * doc/glibc-functions/res_query.texi: Likewise.
25362         * doc/glibc-functions/res_querydomain.texi: Likewise.
25363         * doc/glibc-functions/res_send.texi: Likewise.
25364         * doc/glibc-functions/rresvport_af.texi: Likewise.
25365         * doc/glibc-functions/setxattr.texi: Likewise.
25366         * doc/glibc-functions/strcasestr.texi: Likewise.
25367
25368 2008-12-15  Bruno Haible  <bruno@clisp.org>
25369
25370         Fix compilation error on OSF/1 4.0.
25371         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
25372         <sys/time.h>, simply delegate to the system header.
25373         Reported by Daniel Richard G. <oss@teragram.com>.
25374
25375 2008-12-15  Bruno Haible  <bruno@clisp.org>
25376
25377         * doc/posix-functions/openat.texi: Mention the 'openat' module.
25378         * doc/posix-functions/fchmodat.texi: Likewise.
25379         * doc/posix-functions/fchownat.texi: Likewise.
25380         * doc/posix-functions/fdopendir.texi: Likewise.
25381         * doc/posix-functions/fstatat.texi: Likewise.
25382         * doc/posix-functions/mkdirat.texi: Likewise.
25383         * doc/posix-functions/unlinkat.texi: Likewise.
25384
25385 2008-12-14  Bruno Haible  <bruno@clisp.org>
25386
25387         Update doc for POSIX:2008.
25388         * doc/posix-functions/faccessat.texi: New file.
25389         * doc/posix-functions/fchmodat.texi: New file.
25390         * doc/posix-functions/fchownat.texi: New file.
25391         * doc/posix-functions/fdopendir.texi: New file.
25392         * doc/posix-functions/fstatat.texi: New file.
25393         * doc/posix-functions/futimens.texi: New file.
25394         * doc/posix-functions/linkat.texi: New file.
25395         * doc/posix-functions/mkdirat.texi: New file.
25396         * doc/posix-functions/mkfifoat.texi: New file.
25397         * doc/posix-functions/mknodat.texi: New file.
25398         * doc/posix-functions/open_wmemstream.texi: New file.
25399         * doc/posix-functions/openat.texi: New file.
25400         * doc/posix-functions/psiginfo.texi: New file.
25401         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
25402         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
25403         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
25404         * doc/posix-functions/readlinkat.texi: New file.
25405         * doc/posix-functions/renameat.texi: New file.
25406         * doc/posix-functions/strerror_l.texi: New file.
25407         * doc/posix-functions/symlinkat.texi: New file.
25408         * doc/posix-functions/unlinkat.texi: New file.
25409         * doc/posix-functions/utimensat.texi: New file.
25410         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25411
25412 2008-12-14  Bruno Haible  <bruno@clisp.org>
25413
25414         Update doc for POSIX:2008.
25415         * doc/posix-functions/alphasort.texi: Renamed from
25416         doc/glibc-functions/alphasort.texi.
25417         * doc/posix-functions/dirfd.texi: Renamed from
25418         doc/glibc-functions/dirfd.texi.
25419         * doc/posix-functions/dprintf.texi: Renamed from
25420         doc/glibc-functions/dprintf.texi.
25421         * doc/posix-functions/duplocale.texi: Renamed from
25422         doc/glibc-functions/duplocale.texi.
25423         * doc/posix-functions/fexecve.texi: Renamed from
25424         doc/glibc-functions/fexecve.texi.
25425         * doc/posix-functions/fmemopen.texi: Renamed from
25426         doc/glibc-functions/fmemopen.texi.
25427         * doc/posix-functions/freelocale.texi: Renamed from
25428         doc/glibc-functions/freelocale.texi.
25429         * doc/posix-functions/getdate_err.texi: Renamed from
25430         doc/glibc-functions/getdate_err.texi.
25431         * doc/posix-functions/isalnum_l.texi: Renamed from
25432         doc/glibc-functions/isalnum_l.texi.
25433         * doc/posix-functions/isalpha_l.texi: Renamed from
25434         doc/glibc-functions/isalpha_l.texi.
25435         * doc/posix-functions/isblank_l.texi: Renamed from
25436         doc/glibc-functions/isblank_l.texi.
25437         * doc/posix-functions/iscntrl_l.texi: Renamed from
25438         doc/glibc-functions/iscntrl_l.texi.
25439         * doc/posix-functions/isdigit_l.texi: Renamed from
25440         doc/glibc-functions/isdigit_l.texi.
25441         * doc/posix-functions/isgraph_l.texi: Renamed from
25442         doc/glibc-functions/isgraph_l.texi.
25443         * doc/posix-functions/islower_l.texi: Renamed from
25444         doc/glibc-functions/islower_l.texi.
25445         * doc/posix-functions/isprint_l.texi: Renamed from
25446         doc/glibc-functions/isprint_l.texi.
25447         * doc/posix-functions/ispunct_l.texi: Renamed from
25448         doc/glibc-functions/ispunct_l.texi.
25449         * doc/posix-functions/isspace_l.texi: Renamed from
25450         doc/glibc-functions/isspace_l.texi.
25451         * doc/posix-functions/isupper_l.texi: Renamed from
25452         doc/glibc-functions/isupper_l.texi.
25453         * doc/posix-functions/iswalnum_l.texi: Renamed from
25454         doc/glibc-functions/iswalnum_l.texi.
25455         * doc/posix-functions/iswalpha_l.texi: Renamed from
25456         doc/glibc-functions/iswalpha_l.texi.
25457         * doc/posix-functions/iswblank_l.texi: Renamed from
25458         doc/glibc-functions/iswblank_l.texi.
25459         * doc/posix-functions/iswcntrl_l.texi: Renamed from
25460         doc/glibc-functions/iswcntrl_l.texi.
25461         * doc/posix-functions/iswctype_l.texi: Renamed from
25462         doc/glibc-functions/iswctype_l.texi.
25463         * doc/posix-functions/iswdigit_l.texi: Renamed from
25464         doc/glibc-functions/iswdigit_l.texi.
25465         * doc/posix-functions/iswgraph_l.texi: Renamed from
25466         doc/glibc-functions/iswgraph_l.texi.
25467         * doc/posix-functions/iswlower_l.texi: Renamed from
25468         doc/glibc-functions/iswlower_l.texi.
25469         * doc/posix-functions/iswprint_l.texi: Renamed from
25470         doc/glibc-functions/iswprint_l.texi.
25471         * doc/posix-functions/iswpunct_l.texi: Renamed from
25472         doc/glibc-functions/iswpunct_l.texi.
25473         * doc/posix-functions/iswspace_l.texi: Renamed from
25474         doc/glibc-functions/iswspace_l.texi.
25475         * doc/posix-functions/iswupper_l.texi: Renamed from
25476         doc/glibc-functions/iswupper_l.texi.
25477         * doc/posix-functions/iswxdigit_l.texi: Renamed from
25478         doc/glibc-functions/iswxdigit_l.texi.
25479         * doc/posix-functions/isxdigit_l.texi: Renamed from
25480         doc/glibc-functions/isxdigit_l.texi.
25481         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
25482         doc/glibc-functions/mbsnrtowcs.texi.
25483         * doc/posix-functions/mkdtemp.texi: Renamed from
25484         doc/glibc-functions/mkdtemp.texi.
25485         * doc/posix-functions/newlocale.texi: Renamed from
25486         doc/glibc-functions/newlocale.texi.
25487         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
25488         doc/glibc-functions/nl_langinfo_l.texi.
25489         * doc/posix-functions/open_memstream.texi: Renamed from
25490         doc/glibc-functions/open_memstream.texi.
25491         * doc/posix-functions/opterr.texi: Renamed from
25492         doc/glibc-functions/opterr.texi.
25493         * doc/posix-functions/optind.texi: Renamed from
25494         doc/glibc-functions/optind.texi.
25495         * doc/posix-functions/optopt.texi: Renamed from
25496         doc/glibc-functions/optopt.texi.
25497         * doc/posix-functions/psignal.texi: Renamed from
25498         doc/glibc-functions/psignal.texi.
25499         * doc/posix-functions/scandir.texi: Renamed from
25500         doc/glibc-functions/scandir.texi.
25501         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
25502         doc/glibc-functions/sched_get_priority_min.texi.
25503         * doc/posix-functions/signgam.texi: Renamed from
25504         doc/glibc-functions/signgam.texi.
25505         * doc/posix-functions/stpcpy.texi: Renamed from
25506         doc/glibc-functions/stpcpy.texi.
25507         * doc/posix-functions/stpncpy.texi: Renamed from
25508         doc/glibc-functions/stpncpy.texi.
25509         * doc/posix-functions/strcasecmp_l.texi: Renamed from
25510         doc/glibc-functions/strcasecmp_l.texi.
25511         * doc/posix-functions/strcoll_l.texi: Renamed from
25512         doc/glibc-functions/strcoll_l.texi.
25513         * doc/posix-functions/strfmon_l.texi: Renamed from
25514         doc/glibc-functions/strfmon_l.texi.
25515         * doc/posix-functions/strftime_l.texi: Renamed from
25516         doc/glibc-functions/strftime_l.texi.
25517         * doc/posix-functions/strncasecmp_l.texi: Renamed from
25518         doc/glibc-functions/strncasecmp_l.texi.
25519         * doc/posix-functions/strndup.texi: Renamed from
25520         doc/glibc-functions/strndup.texi.
25521         * doc/posix-functions/strnlen.texi: Renamed from
25522         doc/glibc-functions/strnlen.texi.
25523         * doc/posix-functions/strsignal.texi: Renamed from
25524         doc/glibc-functions/strsignal.texi.
25525         * doc/posix-functions/strxfrm_l.texi: Renamed from
25526         doc/glibc-functions/strxfrm_l.texi.
25527         * doc/posix-functions/timer_gettime.texi: Renamed from
25528         doc/glibc-functions/timer_gettime.texi.
25529         * doc/posix-functions/tolower_l.texi: Renamed from
25530         doc/glibc-functions/tolower_l.texi.
25531         * doc/posix-functions/toupper_l.texi: Renamed from
25532         doc/glibc-functions/toupper_l.texi.
25533         * doc/posix-functions/towctrans_l.texi: Renamed from
25534         doc/glibc-functions/towctrans_l.texi.
25535         * doc/posix-functions/towlower_l.texi: Renamed from
25536         doc/glibc-functions/towlower_l.texi.
25537         * doc/posix-functions/towupper_l.texi: Renamed from
25538         doc/glibc-functions/towupper_l.texi.
25539         * doc/posix-functions/uselocale.texi: Renamed from
25540         doc/glibc-functions/uselocale.texi.
25541         * doc/posix-functions/vdprintf.texi: Renamed from
25542         doc/glibc-functions/vdprintf.texi.
25543         * doc/posix-functions/wcpcpy.texi:
25544         Renamed from doc/glibc-functions/wcpcpy.texi.
25545         * doc/posix-functions/wcpncpy.texi: Renamed from
25546         doc/glibc-functions/wcpncpy.texi.
25547         * doc/posix-functions/wcscasecmp.texi: Renamed from
25548         doc/glibc-functions/wcscasecmp.texi.
25549         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
25550         doc/glibc-functions/wcscasecmp_l.texi.
25551         * doc/posix-functions/wcscoll_l.texi: Renamed from
25552         doc/glibc-functions/wcscoll_l.texi.
25553         * doc/posix-functions/wcsdup.texi: Renamed from
25554         doc/glibc-functions/wcsdup.texi.
25555         * doc/posix-functions/wcsncasecmp.texi: Renamed from
25556         doc/glibc-functions/wcsncasecmp.texi.
25557         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
25558         doc/glibc-functions/wcsncasecmp_l.texi.
25559         * doc/posix-functions/wcsnlen.texi: Renamed from
25560         doc/glibc-functions/wcsnlen.texi.
25561         * doc/posix-functions/wcsnrtombs.texi: Renamed from
25562         doc/glibc-functions/wcsnrtombs.texi.
25563         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
25564         doc/glibc-functions/wcsxfrm_l.texi.
25565         * doc/posix-functions/wctrans_l.texi: Renamed from
25566         doc/glibc-functions/wctrans_l.texi.
25567         * doc/posix-functions/wctype_l.texi: Renamed from
25568         doc/glibc-functions/wctype_l.texi.
25569         * doc/gnulib.texi (Function Substitutes): Add these subsections.
25570         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
25571         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
25572         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
25573         these subsections.
25574         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
25575         Remove sections.
25576
25577 2008-12-14  Bruno Haible  <bruno@clisp.org>
25578
25579         Update doc for POSIX:2008.
25580         * doc/posix-functions/*.texi: Update URL of POSIX specification.
25581
25582 2008-12-14  Bruno Haible  <bruno@clisp.org>
25583
25584         Update doc for POSIX:2008.
25585         * doc/pastposix-functions/bcmp.texi: Renamed from
25586         doc/posix-functions/bcmp.texi.
25587         * doc/pastposix-functions/bcopy.texi: Renamed from
25588         doc/posix-functions/bcopy.texi.
25589         * doc/pastposix-functions/bsd_signal.texi: Renamed from
25590         doc/posix-functions/bsd_signal.texi.
25591         * doc/pastposix-functions/bzero.texi: Renamed from
25592         doc/posix-functions/bzero.texi.
25593         * doc/pastposix-functions/ecvt.texi: Renamed from
25594         doc/posix-functions/ecvt.texi.
25595         * doc/pastposix-functions/fcvt.texi: Renamed from
25596         doc/posix-functions/fcvt.texi.
25597         * doc/pastposix-functions/ftime.texi: Renamed from
25598         doc/posix-functions/ftime.texi.
25599         * doc/pastposix-functions/gcvt.texi: Renamed from
25600         doc/posix-functions/gcvt.texi.
25601         * doc/pastposix-functions/getcontext.texi: Renamed from
25602         doc/posix-functions/getcontext.texi.
25603         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
25604         doc/posix-functions/gethostbyaddr.texi.
25605         * doc/pastposix-functions/gethostbyname.texi: Renamed from
25606         doc/posix-functions/gethostbyname.texi.
25607         * doc/pastposix-functions/getwd.texi: Renamed from
25608         doc/posix-functions/getwd.texi.
25609         * doc/pastposix-functions/h_errno.texi: Renamed from
25610         doc/posix-functions/h_errno.texi.
25611         * doc/pastposix-functions/index.texi: Renamed from
25612         doc/posix-functions/index.texi.
25613         * doc/pastposix-functions/makecontext.texi: Renamed from
25614         doc/posix-functions/makecontext.texi.
25615         * doc/pastposix-functions/mktemp.texi: Renamed from
25616         doc/posix-functions/mktemp.texi.
25617         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
25618         doc/posix-functions/pthread_attr_getstackaddr.texi.
25619         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
25620         doc/posix-functions/pthread_attr_setstackaddr.texi.
25621         * doc/pastposix-functions/rindex.texi: Renamed from
25622         doc/posix-functions/rindex.texi.
25623         * doc/pastposix-functions/scalb.texi: Renamed from
25624         doc/posix-functions/scalb.texi.
25625         * doc/pastposix-functions/setcontext.texi: Renamed from
25626         doc/posix-functions/setcontext.texi.
25627         * doc/pastposix-functions/swapcontext.texi: Renamed from
25628         doc/posix-functions/swapcontext.texi.
25629         * doc/pastposix-functions/ualarm.texi: Renamed from
25630         doc/posix-functions/ualarm.texi.
25631         * doc/pastposix-functions/usleep.texi: Renamed from
25632         doc/posix-functions/usleep.texi.
25633         * doc/pastposix-functions/vfork.texi: Renamed from
25634         doc/posix-functions/vfork.texi.
25635         * doc/pastposix-functions/wcswcs.texi: Renamed from
25636         doc/posix-functions/wcswcs.texi.
25637         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
25638         (Function Substitutes): Update.
25639
25640 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25641
25642         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
25643         m4/strerror.m4.
25644
25645 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25646             Bruno Haible  <bruno@clisp.org>
25647
25648         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
25649
25650 2008-12-13  Bruno Haible  <bruno@clisp.org>
25651
25652         * modules/strtoull (Depends-on): Remove unistd.
25653
25654 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25655
25656         * modules/strtoull (Depends-on): Add stdlib.
25657
25658 2008-12-11  Simon Josefsson  <simon@josefsson.org>
25659
25660         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
25661
25662 2008-12-10  Jim Meyering  <meyering@redhat.com>
25663
25664         gl_ASSERT: don't say assertions are disabled when they're not
25665         * m4/assert.m4 (gl_ASSERT): Do not make configure report
25666         "checking whether to enable assertions... no", when they are in
25667         fact enabled.  This is solely a bug in the output of configure.
25668         In spite of saying "no", NDEBUG was not defined in that case.
25669         Also, as noted by Eric Blake, leave assertions enabled upon
25670         --enable-assert=INVALID.
25671
25672 2008-12-10  Bruno Haible  <bruno@clisp.org>
25673
25674         Change MODULES.html to refer to POSIX:2008 where possible.
25675         * MODULES.html.sh (POSIX2008_URL): New variable.
25676         (posix_headers): Remove sys/timeb, ucontext.
25677         (posix2001_headers): New variable.
25678         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
25679         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
25680         index, makecontext, mktemp, pthread_attr_getstackaddr,
25681         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
25682         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
25683         (posix2001_functions): New variable.
25684         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
25685         otherwise.
25686
25687 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25688
25689         add missing include to parse-duration.c
25690         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
25691         * modules/parse-duration (Depends-on): Add xalloc.
25692
25693         fix sed script reading maint.mk
25694         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
25695         (syntax-check-rules): Use it.
25696
25697 2008-12-09  Bruno Haible  <bruno@clisp.org>
25698
25699         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
25700         MacOS X 10.4/PowerPC.
25701         Reported by Simon Josefsson.
25702
25703 2008-12-08  Jim Meyering  <meyering@redhat.com>
25704
25705         work around mingw's lack of some S_IF definitions
25706         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
25707         Reported by Simon Josefsson.
25708
25709 2008-12-08  Bruno Haible  <bruno@clisp.org>
25710
25711         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
25712         applied to variables. Needed on MacOS X 10.4/PowerPC.
25713         Reported by Simon Josefsson.
25714
25715 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
25716         and Eric Blake  <ebb9@byu.net>
25717
25718         assert: honor --enable-assert
25719         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
25720         order to honor --enable-assert, rather than treating it as a
25721         synonym for --disable-assert.
25722
25723 2008-12-08  Jim Meyering  <meyering@redhat.com>
25724
25725         * lib/posixtm.c: Remove now-useless declaration of mktime.
25726
25727         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
25728
25729 2008-12-07  Bruno Haible  <bruno@clisp.org>
25730
25731         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
25732         test_once): Mark functions as static.
25733         * tests/test-tls.c (test_tls): Likewise.
25734
25735 2008-12-07  Bruno Haible  <bruno@clisp.org>
25736
25737         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
25738         iconv_register_autodetect.
25739
25740 2008-12-07  Jim Meyering  <meyering@redhat.com>
25741
25742         posixtm.c: avoid a warning
25743         * lib/posixtm.c (posixtime): Don't initialize tm0.
25744         It's no longer needed to placate gcc4's -Wuninitialized,
25745         and the attempt to placate would elicit a new warning.
25746
25747         unicodeio.c: mark unused parameters
25748         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25749         (fallback_failure_callback): Likewise.
25750
25751 2008-12-07  Bruno Haible  <bruno@clisp.org>
25752
25753         * gnulib-tool (func_create_testdir): When building the tests
25754         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
25755         Reported by Simon Josefsson.
25756
25757 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25758
25759         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
25760
25761 2008-12-06  Bruno Haible  <bruno@clisp.org>
25762
25763         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
25764         Suggested by Eric Blake.
25765
25766 2008-12-06  Bruno Haible  <bruno@clisp.org>
25767
25768         Fix a c-stack test failure on MacOS X.
25769         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
25770         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
25771         handler for SIGBUS as well.
25772         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
25773         install a signal handler for SIGBUS as well.
25774         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
25775
25776 2008-12-06  Bruno Haible  <bruno@clisp.org>
25777
25778         Advocacy documentation.
25779         * doc/gnulib-intro.texi (Benefits): New section.
25780         * doc/gnulib.texi: Update.
25781
25782 2008-12-06  Bruno Haible  <bruno@clisp.org>
25783
25784         Document the 'manywarnings' module.
25785         * doc/manywarnings.texi: New file.
25786         * doc/gnulib.texi: Include it.
25787
25788 2008-12-05  Eric Blake  <ebb9@byu.net>
25789
25790         tests: silence some gcc warnings
25791         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
25792         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
25793         type mismatches.
25794
25795 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25796             Bruno Haible  <bruno@clisp.org>
25797
25798         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
25799
25800 2008-11-29  Jim Meyering  <meyering@redhat.com>
25801
25802         unicodeio.c: mark unused parameters
25803         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25804         (fallback_failure_callback): Likewise.
25805
25806         fts: fix a thinko
25807         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
25808         (set_stat_type): Return S_IF*-valued "type" directly.
25809         Prompted by James Youngman's spotting a related bug.
25810         Confirmed by further testing through find.
25811
25812         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
25813         * lib/fts.c (D_TYPE): Define.
25814         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
25815         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
25816         (s_ifmt_shift_bits): New function.
25817         (set_stat_type): New function.
25818         (fts_build): When not calling fts_stat, call set_stat_type
25819         to propagate dirent.d_type info to fts_read caller.
25820         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
25821         fts_statp->st_mode type information may be valid.
25822
25823 2008-11-28  Simon Josefsson  <simon@josefsson.org>
25824
25825         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
25826         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
25827         <sds@gnu.org>.
25828
25829 2008-11-20  Bruno Haible  <bruno@clisp.org>
25830
25831         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
25832         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
25833         INCLUDE_NEXT.
25834         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
25835         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
25836         * modules/math (Makefile.am): Substitute
25837         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
25838         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25839
25840 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
25841             Bruno Haible  <bruno@clisp.org>
25842
25843         * lib/stdint.in.h: Define all type macros so that their expansion is
25844         a single typedef'ed token. Fixes a compilation failure in Boost which
25845         does "using ::int8_t;".
25846
25847 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25848
25849         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
25850         gl_MANYWARN_ALL_GCC.
25851         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
25852         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
25853         * modules/manywarnings: New file.
25854         * MODULES.html.sh: Mention manywarnings module.
25855
25856 2008-11-18  Bruno Haible  <bruno@clisp.org>
25857
25858         * doc/gnulib-tool.texi (Unit tests): New section.
25859
25860 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25861
25862         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
25863         paths like 'lib/po/foo.po'.
25864
25865 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25866
25867         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
25868         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
25869
25870 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25871
25872         * m4/warnings.m4: Use CPPFLAGS to really check whether the
25873         parameter works.
25874
25875 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25876
25877         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
25878
25879 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25880
25881         * modules/parse-duration-tests: New file.
25882         * tests/test-parse-duration.sh: New file.
25883         * tests/test-parse-duration.c: New file.
25884
25885         New module 'parse-duration'.
25886         * lib/parse-duration.h: New file.
25887         * lib/parse-duration.c: New file.
25888         * modules/parse-duration: New file.
25889
25890 2008-11-17  Bruno Haible  <bruno@clisp.org>
25891
25892         * tests/test-select-out.sh: Comment out the first pipe test.
25893         Reported by Simon Josefsson.
25894
25895 2008-11-17  Bruno Haible  <bruno@clisp.org>
25896
25897         * modules/getaddrinfo (Depends-on): Add servent, hostent.
25898         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
25899         gl_HOSTENT.
25900
25901 2008-11-17  Bruno Haible  <bruno@clisp.org>
25902
25903         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
25904         -lnetwork and -lnet. Needed for Haiku and BeOS.
25905
25906 2008-11-16  Bruno Haible  <bruno@clisp.org>
25907
25908         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
25909
25910 2008-11-16  Bruno Haible  <bruno@clisp.org>
25911
25912         Avoid test failure on Haiku.
25913         * tests/test-fsync.c: Include <errno.h>.
25914         (main): Don't require that fsync (0) fails.
25915
25916 2008-11-15  Bruno Haible  <bruno@clisp.org>
25917
25918         New module 'hostent'.
25919         * modules/hostent: New file.
25920         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
25921
25922 2008-11-15  Bruno Haible  <bruno@clisp.org>
25923
25924         New module 'servent'.
25925         * modules/servent: New file.
25926         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
25927
25928 2008-11-15  Bruno Haible  <bruno@clisp.org>
25929
25930         Avoid generating same test program with two different rules.
25931         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
25932         test-frexp to test-frexp-nolibm.
25933         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
25934         test-frexpl to test-frexpl-nolibm.
25935
25936 2008-11-15  Bruno Haible  <bruno@clisp.org>
25937
25938         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
25939         $(FREXPL_LIBM).
25940
25941 2008-11-15  Bruno Haible  <bruno@clisp.org>
25942
25943         * lib/netdb.in.h: Activate the definitions also when the system's
25944         <netdb.h> has 'struct addrinfo'.
25945         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
25946         EAI_OVERFLOW or AI_NUMERICSERV.
25947         * doc/posix-headers/netdb.texi: Document the problem.
25948
25949 2008-11-15  Bruno Haible  <bruno@clisp.org>
25950
25951         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
25952
25953         Make the 'sched' module work on platforms where <sched.h> exists but
25954         is incomplete (such as Haiku).
25955         * lib/sched.in.h; Include the system's <sched.h> if it exists.
25956         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
25957         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
25958         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
25959         HAVE_STRUCT_SCHED_PARAM.
25960         * modules/sched (Depends-on): Add include_next.
25961         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
25962         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
25963         * doc/posix-headers/sched.texi: Document the issue.
25964
25965 2008-11-13  Jim Meyering  <meyering@redhat.com>
25966
25967         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
25968         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
25969         test would fail due to the difference in the Report bugs to ...
25970         line.  The expected address is empty, "<>", while the actual
25971         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
25972
25973 2008-11-12  Bruno Haible  <bruno@clisp.org>
25974
25975         lstat: don't compile lstat.c on systems lacking lstat
25976         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
25977         which don't have lstat; this is handled by lib/sys_stat.in.h already.
25978         Reported by Daniel P. Berrange via Jim Meyering.
25979
25980 2008-11-12  Jim Meyering  <meyering@redhat.com>
25981
25982         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
25983
25984 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25985
25986         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
25987         instead.
25988
25989 2008-11-12  Bruno Haible  <bruno@clisp.org>
25990
25991         * lib/unicodeio.c: Include unistr.h.
25992         (utf8_wctomb): Remove function.
25993         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
25994
25995 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25996
25997         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
25998         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
25999         <bruno@clisp.org>.
26000         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
26001
26002 2008-11-12  Simon Josefsson  <simon@josefsson.org>
26003
26004         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
26005         * doc/gnulib.texi: Add section for warnings.
26006
26007 2008-11-11  Bruno Haible  <bruno@clisp.org>
26008
26009         * lib/sockets.h: Add a comment.
26010
26011 2008-11-11  Karl Berry  <karl@gnu.org>
26012
26013         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
26014
26015 2008-11-11  Eric Blake  <ebb9@byu.net>
26016
26017         fdl.texi: avoid git symlinks
26018         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
26019
26020 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26021
26022         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
26023
26024 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26025
26026         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
26027         (gl_WARN_ADD): Substitute $2 if literal.
26028
26029 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26030
26031         * m4/warning.m4: Remove.
26032
26033 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
26034
26035         * m4/warnings.m4: Almost complete rewrite. :-)
26036
26037 2008-11-10  Simon Josefsson  <simon@josefsson.org>
26038
26039         * modules/warnings: New module.
26040         * m4/warnings.m4: New file.
26041         * MODULES.html.sh: Mention warnings module.
26042         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
26043         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26044
26045 2008-11-10  Eric Blake  <ebb9@byu.net>
26046
26047         fdl.texi: make a symlink to the latest version
26048         * doc/standards.texi: Revert today's earlier change.
26049         * doc/fdl-1.2.texi: Rename from old fdl.texi...
26050         * doc/fdl.texi: ...and replace this with a symlink to the newer
26051         fdl-1.3.texi.
26052
26053 2008-11-10  Bruno Haible  <bruno@clisp.org>
26054
26055         * tests/test-select-fd.c (main): Accept the result file name as fourth
26056         argument.
26057         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
26058         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
26059
26060 2008-11-10  Bruno Haible  <bruno@clisp.org>
26061
26062         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
26063         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
26064         as autoconf-substituted macros.
26065         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
26066         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
26067         gl_NETDB_H_DEFAULTS. Set these variables.
26068         * modules/netdb (Makefile.am): Substitute these variables.
26069
26070 2008-11-10  Eric Blake  <ebb9@byu.net>
26071
26072         standards.texi: include correct file for FDL 1.3
26073         * doc/standards.texi (GNU Free Documentation License): Change
26074         include file to pull in FDL 1.3, not 1.2.
26075
26076         fdl.texi: revert accidental change to license
26077         * doc/fdl.texi: This is FDL 1.2, not 1.3.
26078
26079 2008-11-10  Bruno Haible  <bruno@clisp.org>
26080
26081         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
26082         cross-compiling guesses also when the native compile gives no result.
26083
26084 2008-11-10  Bruno Haible  <bruno@clisp.org>
26085
26086         * lib/spawni.c (__spawni): Force variable into the stack.
26087
26088 2008-11-10  Bruno Haible  <bruno@clisp.org>
26089
26090         Add support for Haiku.
26091         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
26092         glibc and BeOS, but also on Haiku.
26093         * lib/fpurge.c (fpurge): Likewise.
26094         * lib/freadable.c (freadable): Likewise.
26095         * lib/freadahead.c (freadahead): Likewise.
26096         * lib/freading.c (freading): Likewise.
26097         * lib/freadptr.c (freadptr): Likewise.
26098         * lib/freadseek.c (freadptrinc): Likewise.
26099         * lib/fseeko.c (rpl_fseeko): Likewise.
26100         * lib/fseterr.c (fseterr): Likewise.
26101         * lib/fwritable.c (fwritable): Likewise.
26102         * lib/fwriting.c (fwriting): Likewise.
26103         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
26104
26105 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26106
26107         * lib/config.charset: Treat Haiku like BeOS.
26108
26109 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
26110
26111         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
26112         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
26113
26114 2008-11-08  Bruno Haible  <bruno@clisp.org>
26115
26116         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
26117         AC_CACHE_CHECK.
26118
26119 2008-11-08  Bruno Haible  <bruno@clisp.org>
26120
26121         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
26122
26123 2008-11-08  Bruno Haible  <bruno@clisp.org>
26124
26125         * tests/test-select-fd.c: New file.
26126         * tests/test-select-in.sh: New file.
26127         * tests/test-select-out.sh: New file.
26128         * tests/test-select-stdin.c: New file.
26129         * modules/select-tests (Files): Add the new files.
26130         (Depends-on): Add gettimeofday.
26131         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
26132         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
26133         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
26134
26135 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
26136             Bruno Haible  <bruno@clisp.org>
26137
26138         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
26139
26140 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
26141
26142         * build-aux/pmccabe2html: Added support for C++ source files.
26143
26144 2008-11-05  Ben Pfaff  <blp@gnu.org>
26145
26146         Fix lib/close.c build on Windows.
26147         * modules/close (Files): Add lib/w32sock.h.
26148
26149 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
26150
26151         Accept Bison's NEWS format.
26152         * build-aux/announce-gen (print_news_deltas): Tweak
26153         $re_prefix.
26154
26155 2008-11-04  Bruno Haible  <bruno@clisp.org>
26156
26157         * modules/random_r (Maintainer): Add glibc.
26158
26159 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26160
26161         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
26162         by karl@freefriends.org (Karl Berry).
26163         * doc/alloca.texi: Likewise.
26164         * doc/c-ctype.texi: Likewise.
26165         * doc/c-strcase.texi: Likewise.
26166         * doc/c-strcaseeq.texi: Likewise.
26167         * doc/c-strcasestr.texi: Likewise.
26168         * doc/c-strstr.texi: Likewise.
26169         * doc/c-strtod.texi: Likewise.
26170         * doc/c-strtold.texi: Likewise.
26171         * doc/ctime.texi: Likewise.
26172         * doc/error.texi: Likewise.
26173         * doc/fdl.texi: Likewise.
26174         * doc/gcd.texi: Likewise.
26175         * doc/getdate.texi: Likewise.
26176         * doc/gnulib-intro.texi: Likewise.
26177         * doc/gnulib-tool.texi: Likewise.
26178         * doc/gnulib.texi: Likewise.
26179         * doc/inet_ntoa.texi: Likewise.
26180         * doc/maintain.texi: Likewise.
26181         * doc/make-stds.texi: Likewise.
26182         * doc/quote.texi: Likewise.
26183         * doc/regexprops-generic.texi: Likewise.
26184         * doc/standards.texi: Likewise.
26185         * doc/verify.texi: Likewise.
26186         * doc/visibility.texi: Likewise.
26187         * doc/gnulib.texi (GNU Free Documentation License): Include
26188         fdl-1.3.texi instead of fdl.texi.
26189
26190 2008-11-04  Simon Josefsson  <simon@josefsson.org>
26191
26192         * doc/fdl-1.3.texi: New file, from
26193         <http://www.gnu.org/licenses/fdl-1.3.texi>.
26194         * modules/fdl-1.3: Add.
26195         * MODULES.html.sh: Add fdl-1.3.
26196
26197 2008-11-03  Bruno Haible  <bruno@clisp.org>
26198
26199         Make determination of absolute name of header file work with AIX xlc.
26200         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
26201         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
26202         preprocessing.
26203         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
26204         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
26205
26206 2008-11-03  Simon Josefsson  <simon@josefsson.org>
26207
26208         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
26209         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
26210         <ludo@gnu.org>.
26211
26212 2008-11-02  Bruno Haible  <bruno@clisp.org>
26213
26214         Mark 'strpbrk' obsolete.
26215         * modules/strpbrk (Status, Notice): New sections.
26216         * modules/strtok_r (Depends-on): Add strpbrk.
26217
26218 2008-11-02  Bruno Haible  <bruno@clisp.org>
26219
26220         Mark 'strdup' obsolete.
26221         * modules/strdup (Status, Notice): New sections.
26222         * modules/findprog (Depends-on): Add strdup.
26223         * modules/getaddrinfo (Depends-on): Likewise.
26224         * modules/localename (Depends-on): Likewise.
26225         * modules/relocatable-lib (Depends-on): Likewise.
26226         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
26227         * modules/relocatable-prog (Depends-on): Likewise.
26228         * modules/trim (Depends-on): Likewise.
26229         * modules/unictype/gen-ctype (Depends-on): Likewise.
26230         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26231
26232 2008-11-02  Bruno Haible  <bruno@clisp.org>
26233
26234         Mark 'strcspn' obsolete.
26235         * modules/strcspn (Status, Notice): New sections.
26236
26237 2008-11-02  Bruno Haible  <bruno@clisp.org>
26238
26239         Mark 'rmdir' obsolete.
26240         * modules/rmdir (Status, Notice): New sections.
26241         * modules/clean-temp (Depends-on): Add rmdir.
26242         * modules/openat (Depends-on): Likewise.
26243
26244 2008-11-02  Bruno Haible  <bruno@clisp.org>
26245
26246         Mark 'raise' obsolete.
26247         * modules/raise (Status, Notice): New sections.
26248         (Include): Specify <signal.h>.
26249         * modules/stdio (Depends-on): Add raise.
26250         * modules/write (Depends-on): Likewise.
26251
26252 2008-11-02  Bruno Haible  <bruno@clisp.org>
26253
26254         Mark 'memset' obsolete.
26255         * modules/memset (Status, Notice): New sections.
26256
26257 2008-11-02  Bruno Haible  <bruno@clisp.org>
26258
26259         Mark 'memmove' obsolete.
26260         * modules/memmove (Status, Notice): New sections.
26261         * modules/argp (Depends-on): Add memmove.
26262         * modules/argz (Depends-on): Likewise.
26263         * modules/canonicalize (Depends-on): Likewise.
26264         * modules/canonicalize-lgpl (Depends-on): Likewise.
26265         * modules/fts (Depends-on): Likewise.
26266         * modules/getcwd (Depends-on): Likewise.
26267         * modules/human (Depends-on): Likewise.
26268         * modules/regex (Depends-on): Likewise.
26269         * modules/striconveh (Depends-on): Likewise.
26270         * modules/trim (Depends-on): Likewise.
26271         * modules/unistr/u8-move (Depends-on): Likewise.
26272         * modules/unistr/u16-move (Depends-on): Likewise.
26273         * modules/unistr/u32-move (Depends-on): Likewise.
26274
26275 2008-11-02  Bruno Haible  <bruno@clisp.org>
26276
26277         Mark 'memcpy' obsolete.
26278         * modules/memcpy (Status, Notice): New sections.
26279
26280 2008-11-02  Bruno Haible  <bruno@clisp.org>
26281
26282         Mark 'memcmp' obsolete.
26283         * modules/memcmp (Status, Notice): New sections.
26284         * modules/argmatch (Depends-on): Add memchr.
26285         * modules/backupfile (Depends-on): Likewise.
26286         * modules/c-strcasestr (Depends-on): Likewise.
26287         * modules/crypto/des (Depends-on): Likewise.
26288         * modules/csharpcomp (Depends-on): Likewise.
26289         * modules/fnmatch (Depends-on): Likewise.
26290         * modules/git-merge-changelog (Depends-on): Likewise.
26291         * modules/isnand (Depends-on): Likewise.
26292         * modules/isnand-nolibm (Depends-on): Likewise.
26293         * modules/isnanf (Depends-on): Likewise.
26294         * modules/isnanf-nolibm (Depends-on): Likewise.
26295         * modules/isnanl (Depends-on): Likewise.
26296         * modules/isnanl-nolibm (Depends-on): Likewise.
26297         * modules/mbchar (Depends-on): Likewise.
26298         * modules/memcoll (Depends-on): Likewise.
26299         * modules/quotearg (Depends-on): Likewise.
26300         * modules/regex (Depends-on): Likewise.
26301         * modules/relocatable-prog (Depends-on): Likewise.
26302         * modules/same (Depends-on): Likewise.
26303         * modules/signbit (Depends-on): Likewise.
26304         * modules/strcasestr-simple (Depends-on): Likewise.
26305         * modules/unictype/gen-ctype (Depends-on): Likewise.
26306         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
26307         * modules/uniname/uniname (Depends-on): Likewise.
26308         * modules/unistr/u8-cmp (Depends-on): Likewise.
26309
26310 2008-11-02  Bruno Haible  <bruno@clisp.org>
26311
26312         Mark 'memchr' obsolete.
26313         * modules/memchr (Status, Notice): New sections.
26314         * modules/argp (Depends-on): Add memchr.
26315         * modules/base64 (Depends-on): Likewise.
26316         * modules/c-strcasestr (Depends-on): Likewise.
26317         * modules/chdir-long (Depends-on): Likewise.
26318         * modules/fnmatch (Depends-on): Likewise.
26319         * modules/getsubopt (Depends-on): Likewise.
26320         * modules/git-merge-changelog (Depends-on): Likewise.
26321         * modules/glob (Depends-on): Likewise.
26322         * modules/strcasestr-simple (Depends-on): Likewise.
26323         * modules/strnlen (Depends-on): Likewise.
26324
26325 2008-11-02  Bruno Haible  <bruno@clisp.org>
26326
26327         Mark 'atexit' obsolete.
26328         * modules/atexit (Status, Notice): New sections.
26329         * modules/chdir-long (Depends-on): Add atexit.
26330         * modules/wait-process (Depends-on): Likewise.
26331
26332 2008-11-02  Bruno Haible  <bruno@clisp.org>
26333
26334         * gnulib-tool: New option --with-obsolete.
26335         (func_usage): Document it.
26336         (func_modules_transitive_closure): Drop obsolete dependencies if
26337         incobsolete is not true.
26338         (func_import): Read and save the incobsolete variable to the cache.
26339
26340 2008-11-02  Bruno Haible  <bruno@clisp.org>
26341
26342         * modules/TEMPLATE-EXTENDED: New field 'Status'.
26343         * gnulib-tool: New option --extract-status.
26344         (func_usage): Document it.
26345         (sed_extract_prog): Recognize it.
26346         (func_get_status): New function.
26347
26348 2008-10-30  Simon Josefsson  <simon@josefsson.org>
26349
26350         * modules/sockets (License): Change from LGPL to LGPLv2+.
26351
26352 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26353
26354         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
26355
26356 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26357
26358         * MODULES.html.sh (Support for systems lacking POSIX:2001):
26359         Mention times and sys_times.
26360         * modules/sys_times, modules/sys_times-tests: New modules.
26361         * modules/times, modules/times-tests: Likewise
26362         * m4/sys_times_h.m4: New file.
26363         * lib/sys_times.in.h: Likewise
26364         * lib/times.c: Likewise.
26365         * tests/test-sys_times.c: Likewise.
26366         * tests/test-times.c: Likewise.
26367         * doc/posix-headers/sys_times.texi: Update.
26368         * doc/posix-functions/times.texi: Update.
26369
26370 2008-10-28  Jim Meyering  <meyering@redhat.com>
26371
26372         * modules/tempname (Depends-on): Add lstat.
26373
26374         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
26375
26376 2008-10-28  Simon Josefsson  <simon@josefsson.org>
26377
26378         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
26379         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
26380         using idiom used elsewhere in gnulib.
26381
26382 2008-10-27  Jim Meyering  <meyering@redhat.com>
26383
26384         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
26385
26386 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26387
26388         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
26389         TESTS_ENVIRONMENT, for shell scripts that needs to call built
26390         programs.
26391         * tests/test-argp-2.sh: Use $EXEEXT when needed.
26392
26393 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26394
26395         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
26396
26397 2008-10-27  Bruno Haible  <bruno@clisp.org>
26398
26399         * tests/test-lstat.c: Include <stdio.h>.
26400
26401 2008-10-27  Simon Josefsson  <simon@josefsson.org>
26402
26403         * modules/lstat-tests: New module.
26404         * tests/test-lstat.c: New file.
26405
26406 2008-10-26  Jim Meyering  <meyering@redhat.com>
26407
26408         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
26409
26410 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26411             Bruno Haible  <bruno@clisp.org>
26412
26413         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
26414         * modules/configmake (Include): Add a note that the include must come
26415         after all system headers.
26416         * lib/javaversion.c: Include configmake.h after all other includes.
26417
26418 2008-10-26  Bruno Haible  <bruno@clisp.org>
26419
26420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
26421         HAVE_STRUCT_RANDOM_DATA to 1.
26422         (gl_STDLIB_H): Simplify.
26423
26424 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26425
26426         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
26427         substitute HAVE_STRUCT_RANDOM_DATA.
26428         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
26429         random_data.
26430         * modules/stdlib (Makefile.am): Substitute
26431         HAVE_STRUCT_RANDOM_DATA.
26432
26433 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26434
26435         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
26436         * doc/gnulib-intro.texi (Copyright): Likewise.
26437
26438 2008-10-26  Simon Josefsson  <simon@josefsson.org>
26439
26440         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
26441         findings.
26442
26443 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
26444             Bruno Haible  <bruno@clisp.org>
26445
26446         * lib/unistd.in.h: Include <winsock2.h>.
26447         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
26448         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
26449         Provide dummy declarations.
26450         (gethostname): Override.
26451         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
26452         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
26453         gl_PREREQ_SYS_H_WINSOCK2.
26454         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
26455         * doc/posix-functions/gethostname.texi: More details.
26456
26457 2008-10-25  Bruno Haible  <bruno@clisp.org>
26458
26459         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
26460         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
26461         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
26462
26463         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
26464         here ...
26465         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
26466         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
26467         gl_UNISTD_H_DEFAULTS.
26468
26469 2008-10-25  Eric Blake  <ebb9@byu.net>
26470
26471         signbit: avoid spurious compiler failure
26472         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
26473         declarations inside function.
26474
26475 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26476             Bruno Haible  <bruno@clisp.org>
26477
26478         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
26479         * modules/random_r (Depends-on): Add stdint.
26480
26481 2008-10-24  Bruno Haible  <bruno@clisp.org>
26482
26483         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
26484         Eggert.
26485         * modules/strerror (License): Likewise.
26486
26487 2008-10-24  Jim Meyering  <meyering@redhat.com>
26488
26489         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
26490         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
26491
26492 2008-10-24  Eric Blake  <ebb9@byu.net>
26493
26494         getgroups: fix compilation when getgroups is available
26495         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
26496         but with <config.h> override of getgroups disabled.
26497
26498 2008-10-24  Simon Josefsson  <simon@josefsson.org>
26499
26500         * doc/gnulib.texi (Header files): Add note about C++ problems.
26501         Explained by Bruno Haible <bruno@clisp.org>.
26502
26503 2008-10-23  Bruno Haible  <bruno@clisp.org>
26504
26505         Define a dummy SA_NODEFER macro on Interix.
26506         * lib/signal.in.h (SA_NODEFER): Define fallback.
26507         Reported by Aleksey Cheusov <cheusov@tut.by> via
26508         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
26509
26510 2008-10-23  Bruno Haible  <bruno@clisp.org>
26511
26512         * modules/freadahead (License): Change to LGPLv2+.
26513         Suggested by Simon Josefsson.
26514
26515 2008-10-23  Jim Meyering  <meyering@redhat.com>
26516
26517         random_r: new module
26518         * modules/random_r: New file.
26519         * m4/random_r.m4: New file.
26520         * lib/random_r.c: New file, from glibc.
26521         * modules/random_r-tests: New file.
26522         * tests/test-random_r.c: New file.
26523         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
26524          Declare.
26525         (RAND_MAX): Define.
26526         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
26527         * modules/stdlib: Substitute them, too.
26528         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
26529         * doc/glibc-functions/initstate_r.texi: Mention the new module.
26530         * doc/glibc-functions/random_r.texi: Likewise.
26531         * doc/glibc-functions/setstate_r.texi: Likewise.
26532         * doc/glibc-functions/srandom_r.texi: Likewise.
26533         * config/srclist.txt: Mention it.
26534
26535 2008-10-23  David Lutterkort  <lutter@redhat.com>
26536
26537         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
26538         link requirement
26539
26540 2008-10-23  Jim Meyering  <meyering@redhat.com>
26541
26542         selinux-h: mark parameters of stub functions as intentionally unused
26543         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
26544         * lib/se-context.in.h: Likewise.
26545
26546 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26547
26548         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
26549
26550 2008-10-22  Simon Josefsson  <simon@josefsson.org>
26551
26552         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
26553
26554 2008-10-22  Eric Blake  <ebb9@byu.net>
26555
26556         glthread/thread: avoid compiler warning
26557         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
26558         Add unreachable abort to silence compiler.
26559
26560 2008-10-22  Eric Blake  <ebb9@byu.net>
26561
26562         netdb: also supply struct addrinfo for cygwin 1.5.x
26563         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
26564         older cygwin.
26565         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
26566         cygwin.
26567         * doc/posix-headers/netdb.texi (netdb.h): Document this.
26568
26569 2008-10-22  Bruno Haible  <bruno@clisp.org>
26570
26571         * users.txt: Update entry about pspp.
26572
26573 2008-10-21  Bruno Haible  <bruno@clisp.org>
26574
26575         Simplification.
26576         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
26577         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
26578
26579         Simplification.
26580         * lib/ioctl.c (ioctl): Don't undefine.
26581         * lib/socket.c (socket): Don't undefine.
26582
26583         Remove unused module indicator macros.
26584         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
26585         GNULIB_$1 as a C macro.
26586
26587         * doc/posix-functions/close.texi: Undo last change.
26588         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
26589         Windows platforms.
26590
26591 2008-10-21  Bruno Haible  <bruno@clisp.org>
26592
26593         Add gethostname() declaration to <unistd.h>.
26594         * lib/unistd.in.h (gethostname): New declaration.
26595         * lib/gethostname.c: Include <unistd.h>.
26596         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
26597         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
26598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
26599         and HAVE_GETHOSTNAME.
26600         * modules/gethostname (Depends-on): Add unistd.
26601         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26602         (Include): Specify <unistd.h>.
26603         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
26604         HAVE_GETHOSTNAME.
26605         * tests/test-gethostname.c: Include <unistd.h> first.
26606
26607 2008-10-21  Bruno Haible  <bruno@clisp.org>
26608
26609         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
26610         * modules/select-tests (Depends-on): Likewise.
26611         Reported by Simon Josefsson.
26612
26613 2008-10-21  Simon Josefsson  <simon@josefsson.org>
26614
26615         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
26616         * lib/accept.c: New file, based on winsock.c.
26617         * lib/bind.c: New file, based on winsock.c.
26618         * lib/connect.c: New file, based on winsock.c.
26619         * lib/getpeername.c: New file, based on winsock.c.
26620         * lib/getsockname.c: New file, based on winsock.c.
26621         * lib/getsockopt.c: New file, based on winsock.c.
26622         * lib/ioctl.c: New file, based on winsock.c.
26623         * lib/listen.c: New file, based on winsock.c.
26624         * lib/recv.c: New file, based on winsock.c.
26625         * lib/recvfrom.c: New file, based on winsock.c.
26626         * lib/send.c: New file, based on winsock.c.
26627         * lib/sendto.c: New file, based on winsock.c.
26628         * lib/setsockopt.c: New file, based on winsock.c.
26629         * lib/shutdown.c: New file, based on winsock.c.
26630         * lib/socket.c: New file, based on winsock.c.
26631         * lib/w32sock.h: New file, based on winsock.c.
26632         * lib/winsock.c: Remove file.
26633         * modules/accept: Likewise.
26634         * modules/bind: Likewise.
26635         * modules/connect: Likewise.
26636         * modules/getpeername: Likewise.
26637         * modules/getsockname: Likewise.
26638         * modules/getsockopt: Likewise.
26639         * modules/ioctl: Likewise.
26640         * modules/listen: Likewise.
26641         * modules/recv: Likewise.
26642         * modules/recvfrom: Likewise.
26643         * modules/send: Likewise.
26644         * modules/sendto: Likewise.
26645         * modules/setsockopt: Likewise.
26646         * modules/shutdown: Likewise.
26647         * modules/socket: Use socket.c instead of winsock.c.
26648         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
26649         * doc/posix-functions/accept.texi: Doc fix.
26650         * doc/posix-functions/bind.texi: Doc fix.
26651         * doc/posix-functions/close.texi: Doc fix.
26652         * doc/posix-functions/connect.texi: Doc fix.
26653         * doc/posix-functions/getpeername.texi: Doc fix.
26654         * doc/posix-functions/getsockname.texi: Doc fix.
26655         * doc/posix-functions/getsockopt.texi: Doc fix.
26656         * doc/posix-functions/ioctl.texi: Doc fix.
26657         * doc/posix-functions/listen.texi: Doc fix.
26658         * doc/posix-functions/recv.texi: Doc fix.
26659         * doc/posix-functions/recvfrom.texi: Doc fix.
26660         * doc/posix-functions/send.texi: Doc fix.
26661         * doc/posix-functions/sendto.texi: Doc fix.
26662         * doc/posix-functions/setsockopt.texi: Doc fix.
26663         * doc/posix-functions/shutdown.texi: Doc fix.
26664         * doc/posix-functions/socket.texi: Doc fix.
26665
26666 2008-10-20  Bruno Haible  <bruno@clisp.org>
26667
26668         Take into account the role of SIGABRT_COMPAT on Windows 2008.
26669         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
26670         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
26671         as an alias for SIGABRT.
26672         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
26673         (sigaction): Map it to SIGABRT.
26674         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
26675
26676 2008-10-20  Bruno Haible  <bruno@clisp.org>
26677
26678         * lib/fts.c: Don't include lstat.h.
26679         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
26680
26681         Move the lstat() declaration to <sys/stat.h>.
26682         * lib/lstat.h: Remove file.
26683         * lib/sys_stat.in.h: Add special invocation convention.
26684         (lstat): New declaration.
26685         * lib/lstat.c (orig_lstat): New function.
26686         (rpl_lstat): Use orig_lstat instead of lstat.
26687         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
26688         AC_C_INLINE. Set REPLACE_LSTAT.
26689         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
26690         and REPLACE_LSTAT.
26691         * modules/lstat (Files): Remove lib/lstat.h.
26692         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26693         (Include): Specify <sys/stat.h> instead of lstat.h.
26694         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
26695         REPLACE_LSTAT.
26696         * NEWS: Mention the change.
26697
26698 2008-10-20  Bruno Haible  <bruno@clisp.org>
26699
26700         * modules/posix_spawn-tests: New file.
26701         * tests/test-posix_spawn3.c: New file.
26702
26703 2008-10-20  Bruno Haible  <bruno@clisp.org>
26704
26705         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
26706         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26707         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
26708         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
26709         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
26710
26711 2008-10-20  Bruno Haible  <bruno@clisp.org>
26712
26713         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
26714         of posix_spawn on AIX 5.3.
26715
26716 2008-10-20  Bruno Haible  <bruno@clisp.org>
26717
26718         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
26719
26720 2008-10-20  Bruno Haible  <bruno@clisp.org>
26721
26722         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
26723         of AC_LANG_PROGRAM.
26724
26725 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26726
26727         * lib/netdb.in.h: Don't define GNU specific constants until they
26728         are supported or needed.  Reported by Bruno Haible
26729         <bruno@clisp.org>.
26730
26731 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26732
26733         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
26734
26735 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26736
26737         * lib/getaddrinfo.h: Remove file.
26738         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
26739         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
26740         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
26741         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
26742         * modules/netdb: Substitute GNULIB_GETADDRINFO.
26743         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
26744         * tests/test-getaddrinfo.c: Likewise.
26745         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
26746         * NEWS: Mention change.
26747
26748 2008-10-19  Bruno Haible  <bruno@clisp.org>
26749
26750         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
26751
26752 2008-10-19  Bruno Haible  <bruno@clisp.org>
26753
26754         * lib/wait-process.c: Include simply <sys/wait.h>.
26755         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
26756         WIFSTOPPED): Remove fallback definitions.
26757         * modules/wait-process (Depends-on): Add sys_wait.
26758
26759         New module 'sys_wait'.
26760         * modules/sys_wait: New file.
26761         * lib/sys_wait.in.h: New file, partially copied from
26762         lib/wait-process.c.
26763         * m4/sys_wait_h.m4: New file.
26764         * doc/posix-headers/sys_wait.texi: Mention the new module.
26765
26766 2008-10-19  Bruno Haible  <bruno@clisp.org>
26767
26768         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
26769
26770 2008-10-19  Bruno Haible  <bruno@clisp.org>
26771
26772         Assume that waitpid() fills an 'int' status, not a 'union wait'.
26773         * lib/wait-process.c (WAIT_T): Remove type.
26774         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
26775         (wait_subprocess): Update.
26776
26777 2008-10-19  Bruno Haible  <bruno@clisp.org>
26778
26779         New module 'atoll'.
26780         * modules/atoll: New file.
26781         * lib/stdlib.in.h (atoll): New declaration.
26782         * lib/atoll.c: New file, from glibc with modifications.
26783         * m4/atoll.m4: New file.
26784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
26785         HAVE_ATOLL.
26786         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
26787         * doc/posix-functions/atoll.texi: Mention the new module.
26788
26789 2008-10-19  Bruno Haible  <bruno@clisp.org>
26790
26791         Add strtoull() declaration to <stdlib.h>.
26792         * lib/stdlib.in.h (strtoull): New declaration.
26793         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26794         Set HAVE_STRTOULL.
26795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
26796         HAVE_STRTOULL.
26797         * modules/strtoull (Depends-on): Add stdlib.
26798         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26799         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
26800         HAVE_STRTOULL.
26801
26802 2008-10-19  Bruno Haible  <bruno@clisp.org>
26803
26804         Add strtoll() declaration to <stdlib.h>.
26805         * lib/stdlib.in.h (strtoll): New declaration.
26806         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26807         Set HAVE_STRTOLL.
26808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
26809         HAVE_STRTOLL.
26810         * modules/strtoll (Depends-on): Add stdlib.
26811         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26812         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
26813
26814 2008-10-19  Bruno Haible  <bruno@clisp.org>
26815
26816         * modules/bcopy (Depends-on): Add strings.
26817         (Include): Specify <strings.h>.
26818
26819 2008-10-19  Bruno Haible  <bruno@clisp.org>
26820
26821         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
26822
26823 2008-10-19  Bruno Haible  <bruno@clisp.org>
26824
26825         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
26826         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
26827         mingw.
26828
26829 2008-10-19  Bruno Haible  <bruno@clisp.org>
26830
26831         * lib/atanl.c: Don't include isnanl.h.
26832         * lib/cosl.c: Likewise.
26833         * lib/ldexpl.c: Likewise.
26834         * lib/logl.c: Likewise.
26835         * lib/sinl.c: Likewise.
26836         * lib/sqrtl.c: Likewise.
26837         * lib/tanl.c: Likewise.
26838
26839         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
26840         * lib/isnanf.h: Remove file.
26841         * lib/isnand.h: Remove file.
26842         * lib/isnanl.h: Remove file.
26843         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
26844         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
26845         macros.
26846         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
26847         HAVE_ISNANF, don't define it as a C macro.
26848         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
26849         HAVE_ISNAND, don't define it as a C macro.
26850         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
26851         HAVE_ISNANL, don't define it as a C macro.
26852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
26853         HAVE_ISNAN[FDL].
26854         * modules/isnanf (Files): Remove lib/isnanf.h.
26855         (Depends-on): Add math.
26856         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26857         (Include): Specify <math.h> instead of isnanf.h.
26858         * modules/isnand (Files): Remove lib/isnand.h.
26859         (Depends-on): Add math.
26860         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26861         (Include): Specify <math.h> instead of isnand.h.
26862         * modules/isnanl (Files): Remove lib/isnanl.h.
26863         (Depends-on): Add math.
26864         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26865         (Include): Specify <math.h> instead of isnanl.h.
26866         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
26867         HAVE_ISNAN[FDL].
26868         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
26869         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
26870         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
26871         * NEWS: Mention the change.
26872
26873 2008-10-18  Bruno Haible  <bruno@clisp.org>
26874
26875         Add getusershell(), setusershell(), endusershell() declarations to
26876         <unistd.h>.
26877         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
26878         declarations.
26879         * lib/getusershell.c: Include unistd.h.
26880         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
26881         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26882         HAVE_GETUSERSHELL.
26883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
26884         and HAVE_GETUSERSHELL.
26885         * modules/getusershell (Depends-on): Add unistd, extensions.
26886         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26887         (Include): Specify <unistd.h>.
26888         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
26889         HAVE_GETUSERSHELL.
26890
26891 2008-10-18  Bruno Haible  <bruno@clisp.org>
26892
26893         Add a getloadavg() declaration to <stdlib.h>.
26894         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
26895         getloadavg declaration.
26896         (getloadavg): New declaration.
26897         * lib/getloadavg.c: Include <stdlib.h> first.
26898         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
26899         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
26900         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
26901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
26902         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
26903         * modules/getloadavg (Depends-on): Add stdlib, extensions.
26904         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26905         (Include): Specify <stdlib.h>.
26906         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
26907         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
26908
26909 2008-10-18  Bruno Haible  <bruno@clisp.org>
26910
26911         * lib/dirchownmod.c: Don't include lchmod.h.
26912
26913         Move the lchmod() declaration to <sys/stat.h>.
26914         * lib/lchmod.h: Remove file.
26915         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
26916         (lchmod): New declaration, moved here from lib/lchown.h.
26917         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
26918         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
26919         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
26920         and HAVE_LCHMOD.
26921         * modules/lchmod (Files): Remove lib/lchmod.h.
26922         (Depends-on): Add sys_stat, extensions.
26923         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26924         (Include): Specify <sys/stat.h> instead of lchmod.h.
26925         * modules/sys_stat (Depends-on): Add link-warning.
26926         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
26927         definition of GL_LINK_WARNING.
26928         * NEWS: Mention the change.
26929
26930 2008-10-18  Bruno Haible  <bruno@clisp.org>
26931
26932         * lib/fchdir.c: Don't include dirfd.h.
26933         * lib/fts.c: Likewise.
26934         * lib/getcwd.c: Likewise.
26935         * lib/glob.c: Likewise.
26936
26937         Move the dirfd() declaration to <dirent.h>.
26938         * lib/dirfd.h: Remove file.
26939         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
26940         (dirfd): New declaration.
26941         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
26942         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
26943         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
26944         HAVE_DECL_DIRFD.
26945         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
26946         HAVE_DECL_DIRFD.
26947         * modules/dirfd (Files): Remove lib/dirfd.h.
26948         (Depends-on): Add dirent, extensions.
26949         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
26950         (Include): Specify <dirent.h> instead of dirfd.h.
26951         * modules/dirent (Depends-on): Add link-warning.
26952         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
26953         definition of GL_LINK_WARNING.
26954         * NEWS: Mention the change.
26955
26956 2008-10-18  Bruno Haible  <bruno@clisp.org>
26957
26958         Move the euidaccess() declaration to <unistd.h>.
26959         * lib/euidaccess.h: Remove file.
26960         * lib/unistd.in.h (euidaccess): New declaration.
26961         * lib/euidaccess.c: Don't include euidaccess.h.
26962         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
26963         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
26964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
26965         and HAVE_EUIDACCESS.
26966         * modules/euidaccess (Files): Remove lib/euidaccess.h.
26967         (Depends-on): Add unistd.
26968         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26969         (Include): Specify <unistd.h> instead of euidaccess.h.
26970         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
26971         HAVE_EUIDACCESS.
26972         * NEWS: Mention the change.
26973
26974 2008-10-18  Bruno Haible  <bruno@clisp.org>
26975
26976         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
26977
26978         Move the getdomainname() declaration to <unistd.h>.
26979         * lib/getdomainname.h: Remove file.
26980         * lib/unistd.in.h (getdomainname): New declaration.
26981         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
26982         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26983         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26984         HAVE_GETDOMAINNAME.
26985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26986         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
26987         * modules/getdomainname (Files): Remove lib/getdomainname.h.
26988         (Depends-on): Add unistd, extensions.
26989         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26990         (Includes): Specify <unistd.h> instead of getdomainname.h.
26991         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
26992         HAVE_GETDOMAINNAME.
26993         * NEWS: Mention the change.
26994
26995 2008-10-18  Bruno Haible  <bruno@clisp.org>
26996
26997         * modules/dirent: New file.
26998         * m4/dirent_h.m4: New file.
26999         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
27000         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
27001         * modules/fchdir (Files): Remove lib/dirent.in.h.
27002         (Depends-on): Add dirent.
27003         (Makefile.am): Move rules to modules/dirent.
27004         * doc/posix-headers/dirent.texi: Mention the new module.
27005
27006 2008-10-18  Bruno Haible  <bruno@clisp.org>
27007
27008         Avoid -Wunused-parameter warnings in public gnulib header files.
27009         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
27010         macro.
27011         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
27012
27013 2008-10-18  Bruno Haible  <bruno@clisp.org>
27014
27015         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
27016         * doc/glibc-functions/error.texi: Mention the module 'error'.
27017         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
27018         * doc/glibc-functions/getdomainname.texi: Mention the module
27019         'getdomainname'.
27020         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
27021         * doc/glibc-functions/getpagesize.texi: Mention the module
27022         'getpagesize'.
27023         * doc/glibc-functions/getusershell.texi: Mention the module
27024         'getusershell'.
27025         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
27026         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
27027         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
27028         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
27029         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
27030         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
27031         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
27032         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
27033         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
27034         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
27035         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
27036         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
27037         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
27038         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
27039
27040 2008-10-17  Bruno Haible  <bruno@clisp.org>
27041
27042         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
27043         HP-UX and IRIX, use -0.0L.
27044         * tests/test-ceill.c (minus_zero): Likewise.
27045         * tests/test-floorl.c (minus_zero): Likewise.
27046         * tests/test-frexpl.c (minus_zero): Likewise.
27047         * tests/test-isnan.c (minus_zerol): Likewise.
27048         * tests/test-isnanl.h (minus_zero): Likewise.
27049         * tests/test-ldexpl.c (minus_zero): Likewise.
27050         * tests/test-roundl.c (minus_zero): Likewise.
27051         * tests/test-signbit.c (minus_zerol): Likewise.
27052         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
27053         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
27054         * tests/test-truncl.c (minus_zero): Likewise.
27055         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
27056         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
27057         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
27058         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
27059
27060 2008-10-17  Bruno Haible  <bruno@clisp.org>
27061
27062         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
27063         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
27064         that it gets activated only for gcc >= 3.0.
27065         * lib/dirent.in.h: Likewise.
27066         * lib/errno.in.h: Likewise.
27067         * lib/fcntl.in.h: Likewise.
27068         * lib/float.in.h: Likewise.
27069         * lib/iconv.in.h: Likewise.
27070         * lib/inttypes.in.h: Likewise.
27071         * lib/locale.in.h: Likewise.
27072         * lib/math.in.h: Likewise.
27073         * lib/netdb.in.h: Likewise.
27074         * lib/netinet_in.in.h: Likewise.
27075         * lib/search.in.h: Likewise.
27076         * lib/signal.in.h: Likewise.
27077         * lib/spawn.in.h: Likewise.
27078         * lib/stdarg.in.h: Likewise.
27079         * lib/stdint.in.h: Likewise.
27080         * lib/stdio.in.h: Likewise.
27081         * lib/stdlib.in.h: Likewise.
27082         * lib/string.in.h: Likewise.
27083         * lib/strings.in.h: Likewise.
27084         * lib/sys_file.in.h: Likewise.
27085         * lib/sys_ioctl.in.h: Likewise.
27086         * lib/sys_select.in.h: Likewise.
27087         * lib/sys_socket.in.h: Likewise.
27088         * lib/sys_stat.in.h: Likewise.
27089         * lib/sys_time.in.h: Likewise.
27090         * lib/sysexits.in.h: Likewise.
27091         * lib/time.in.h: Likewise.
27092         * lib/unistd.in.h: Likewise.
27093         * lib/wchar.in.h: Likewise.
27094         * lib/wctype.in.h: Likewise.
27095         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27096
27097 2008-10-17  Jim Meyering  <meyering@redhat.com>
27098
27099         ignore-value: don't depend on inline module
27100         * modules/ignore-value (Depends-on): Remove 'inline'.
27101         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
27102         Suggestion from Bruno Haible.
27103
27104 2008-10-17  Bruno Haible  <bruno@clisp.org>
27105
27106         New implementation of condition variables for Win32.
27107         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
27108         (gl_linked_waitqueue_t): New type.
27109         (gl_cond_t): Use it.
27110         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
27111         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
27112         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
27113         (glthread_cond_init_func, glthread_cond_wait_func,
27114         glthread_cond_timedwait_func, glthread_cond_signal_func,
27115         glthread_cond_broadcast_func, glthread_cond_destroy_func):
27116         Reimplemented on the basis of gl_linked_waitqueue_t.
27117         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
27118         gl_waitqueue_t.
27119         (gl_rwlock_t): Update.
27120         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
27121
27122 2008-10-17  Simon Josefsson  <simon@josefsson.org>
27123
27124         * modules/recvfrom (Depends-on): Add dependency on getpeername.
27125         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27126
27127 2008-10-17  Jim Meyering  <meyering@redhat.com>
27128
27129         ignore-value: new module
27130         * modules/ignore-value: New file.
27131         * lib/ignore-value.h: New file.
27132         * MODULES.html.sh (Compiler warning management): New section,
27133         just for this module.  More to come.
27134
27135 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27136
27137         open-safer.c: avoid 'signed and unsigned in conditional...' warning
27138         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
27139         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
27140
27141 2008-10-16  Jim Meyering  <meyering@redhat.com>
27142
27143         openat-die.c: avoid 'no previous prototype' warning
27144         * lib/openat-die.c: Include "openat.h".
27145         Reported by Reuben Thomas <rrt@sc3d.org>.
27146
27147 2008-10-16  Simon Josefsson  <simon@josefsson.org>
27148
27149         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
27150         * lib/netdb.in.h: Fix typo.
27151         Reported by Bruno Haible  <bruno@clisp.org>
27152
27153         * lib/netdb.in.h: Include sys/socket.h for platforms without
27154         netdb.h, to get structures like hostent on MinGW.
27155         * modules/netdb (Depends-on): Add sys_socket.
27156
27157 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27158
27159         * modules/netdb, modules/netdb-tests: New file.
27160         * m4/netdb_h.m4: New file.
27161         * lib/netdb.in.h: Add, currently just an empty file pending
27162         definitions.
27163         * tests/test-netdb.c: New file.
27164         * doc/posix-headers/netdb.texi: Mention that we replace it if
27165         needed.
27166         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27167         netdb.
27168
27169 2008-10-15  Simon Josefsson  <simon@josefsson.org>
27170
27171         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
27172         with code.
27173
27174 2008-10-13  Bruno Haible  <bruno@clisp.org>
27175
27176         * lib/glthread/cond.c (glthread_cond_wait_func,
27177         glthread_cond_timedwait_func): Add a comment.
27178
27179 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27180
27181         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
27182         * tests/test-select.c: Likewise,
27183
27184 2008-10-13  Bruno Haible  <bruno@clisp.org>
27185
27186         * lib/glthread/cond.c (glthread_cond_wait_func,
27187         glthread_cond_timedwait_func): Fix variable name.
27188         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
27189
27190 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
27191
27192         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
27193         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
27194         struct sockaddr.sa_len.
27195         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
27196
27197 2008-10-13  Simon Josefsson  <simon@josefsson.org>
27198
27199         * build-aux/pmccabe2html: Add css and css_url parameters.
27200
27201 2008-10-12  Bruno Haible  <bruno@clisp.org>
27202
27203         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
27204         calling aclx_get.
27205         Reported by Rainer Tammer <tammer@tammer.net>.
27206
27207 2008-10-12  Bruno Haible  <bruno@clisp.org>
27208
27209         Use msvcrt aware primitives for creation/termination of Win32 threads.
27210         * lib/glthread/thread.c: Include <process.h>.
27211         (glthread_create_func): Use _beginthreadex instead of CreateThread.
27212         (wrapper_func): Update signature.
27213         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
27214
27215 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27216             Bruno Haible  <bruno@clisp.org>
27217
27218         Provide a Win32 implementation of the 'cond' module.
27219         * lib/glthread/cond.h [USE_WIN32]: New implementation.
27220         * lib/glthread/cond.c (glthread_cond_init_func,
27221         glthread_cond_wait_func, glthread_cond_timedwait_func,
27222         glthread_cond_signal_func, glthread_cond_broadcast_func,
27223         glthread_cond_destroy_func) [USE_WIN32]: New functions.
27224         * modules/cond (Dependencies): Add gettimeofday.
27225
27226 2008-10-11  Bruno Haible  <bruno@clisp.org>
27227
27228         Make sleep work on older versions of mingw.
27229         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
27230         only whether it exists.
27231         * doc/posix-functions/sleep.texi: Mention the problem with older
27232         versions of mingw.
27233
27234 2008-10-11  Bruno Haible  <bruno@clisp.org>
27235
27236         New module 'shutdown'.
27237         * modules/shutdown: New file.
27238         * lib/sys_socket.in.h (shutdown): New declaration.
27239         * lib/winsock.c (shutdown): New function.
27240         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27241         GNULIB_SHUTDOWN.
27242         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
27243         * doc/posix-functions/shutdown.texi: Document the new module.
27244
27245 2008-10-11  Jim Meyering  <meyering@redhat.com>
27246
27247         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
27248
27249 2008-10-11  Bruno Haible  <bruno@clisp.org>
27250
27251         New module 'fclose'.
27252         * modules/fclose: New file.
27253         * lib/stdio.in.h (fclose): New declaration.
27254         * lib/fclose.c: New file.
27255         * m4/fclose.m4: New file.
27256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
27257         REPLACE_FCLOSE.
27258         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
27259         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
27260         REPLACE_FCLOSE.
27261         * modules/close (Depends-on): fclose.
27262         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
27263
27264 2008-10-11  Bruno Haible  <bruno@clisp.org>
27265
27266         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
27267         set errno and don't call _close.
27268
27269 2008-10-10  Bruno Haible  <bruno@clisp.org>
27270
27271         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
27272         ACL, not afterwards. Fixes test failure on Cygwin.
27273
27274 2008-10-09  Ben Pfaff  <blp@gnu.org>
27275
27276         * build-aux/announce-gen: Fix gnulib version related part of usage
27277         message.  Die with a useful error message if no tarballs are
27278         found.
27279
27280 2008-10-10  Jim Meyering  <meyering@redhat.com>
27281
27282         bootstrap: use git's --depth=N option only if it's supported
27283         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
27284         recognize the --depth option.  Reported by Pádraig Brady.
27285
27286 2008-10-09  Bruno Haible  <bruno@clisp.org>
27287
27288         New module 'ioctl'.
27289         * modules/ioctl: New file.
27290         * lib/sys_socket.in.h (ioctl): Remove declaration.
27291         * lib/winsock.c: Include <sys/ioctl.h>.
27292         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
27293         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27294         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
27295         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
27296         * doc/posix-functions/ioctl.texi: Mention the new module.
27297
27298 2008-10-09  Bruno Haible  <bruno@clisp.org>
27299
27300         New module 'sys_ioctl'.
27301         * lib/sys_ioctl.in.h: New file.
27302         * m4/sys_ioctl_h.m4: New file.
27303         * modules/sys_ioctl: New file.
27304         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
27305
27306 2008-10-09  Bruno Haible  <bruno@clisp.org>
27307
27308         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
27309         * lib/winsock.c: Include <stdarg.h>.
27310         (rpl_ioctl): Change to second argument 'int' and then varargs.
27311
27312 2008-10-09  Bruno Haible  <bruno@clisp.org>
27313
27314         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
27315         when the sys_socket module is present and the system has <winsock2.h>.
27316
27317 2008-10-09  Bruno Haible  <bruno@clisp.org>
27318
27319         * doc/posix-functions/close.texi: Mention module 'close' instead of
27320         module 'sys_socket'.
27321
27322 2008-10-09  Bruno Haible  <bruno@clisp.org>
27323
27324         * doc/glibc-headers/sys_ioctl.texi: New file.
27325         * doc/gnulib.texi: Include it.
27326
27327 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27328             Bruno Haible  <bruno@clisp.org>
27329
27330         Combine the two replacements of 'close'.
27331         * lib/sys_socket.in.h (close): Define to a reminder to include
27332         <unistd.h>.
27333         (_gl_close_fd_maybe_socket): New declaration.
27334         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
27335         * lib/winsock.c (close): Remove undefinition.
27336         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
27337         needed for the gnulib module 'close'.
27338         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
27339         define to an error symbol or to a warning, if suitable.
27340         * lib/close.c: Include <sys/socket.h>.
27341         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
27342         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
27343         UNISTD_H_HAVE_WINSOCK2_H.
27344         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
27345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27346         UNISTD_H_HAVE_WINSOCK2_H.
27347         * modules/sys_socket (Files): Add m4/unistd_h.m4.
27348         (configure.ac): Set a module indicator.
27349         (Makefile.am): Substitute GNULIB_CLOSE.
27350         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
27351         * modules/poll-tests (Depends-on): Add close.
27352         * modules/select-tests (Depends-on): Likewise.
27353
27354 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27355             Bruno Haible  <bruno@clisp.org>
27356
27357         New module 'close'.
27358         * modules/close: New file.
27359         * lib/unistd.in.h (close): Move declaration out of the
27360         FCHDIR_REPLACEMENT scope.
27361         (_gl_unregister_fd): New declaration.
27362         * lib/close.c: New file.
27363         * lib/fchdir.c (rpl_close): Remove function.
27364         * m4/close.m4: New file.
27365         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27366         close.
27367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
27368         REPLACE_CLOSE.
27369         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
27370         REPLACE_CLOSE.
27371         * modules/fchdir (Depends-on): Add close.
27372
27373 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27374             Bruno Haible  <bruno@clisp.org>
27375
27376         * lib/fcntl.in.h (open): Simplify conditionals.
27377         (_gl_register_fd): New declaration.
27378         * lib/fchdir.c (rpl_open): Remove function.
27379         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
27380         also.
27381         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
27382         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
27383         open.
27384
27385 2008-10-09  Jim Meyering  <meyering@redhat.com>
27386
27387         GNUmakefile: use the more name-space-friendly "_version"
27388         * top/GNUmakefile (_dummy): Update.
27389         (_version): Rename from "version".
27390
27391 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27392             Bruno Haible  <bruno@clisp.org>
27393
27394         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
27395         rpl_close.
27396         (_gl_register_fd): New function, extracted from rpl_open.
27397         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
27398         (rpl_open, rpl_opendir): Use _gl_register_fd.
27399
27400 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
27401
27402         Fix organization of 'open' replacement.
27403         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
27404         (gl_FUNC_OPEN): Use it.
27405         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
27406
27407 2008-10-08  Bruno Haible  <bruno@clisp.org>
27408
27409         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
27410
27411 2008-10-08  Simon Josefsson  <simon@josefsson.org>
27412
27413         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
27414         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
27415         listen).
27416
27417 2008-10-08  Eric Blake  <ebb9@byu.net>
27418
27419         GNUmakefile: add 'make version' target
27420         * top/GNUmakefile (_curr-ver): Split version update rules...
27421         (version): ...into a target.
27422
27423 2008-10-07  Bruno Haible  <bruno@clisp.org>
27424
27425         Use a more portable replacement expression for -0.0L.
27426         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
27427         instead of -0.0L. Fix m4 quotation.
27428
27429         * tests/test-signbit.c: Include <float.h>.
27430         (minus_zero): New variable.
27431         (test_signbitl): Use minus_zero instead of -zero.
27432         * modules/signbit-tests (Depends-on): Add float.
27433
27434         * tests/test-ceill.c: Include <float.h>.
27435         (zero): Remove variable.
27436         (minus_zero): New variable.
27437         (main): Use minus_zero instead of -zero.
27438         * modules/ceill-tests (Depends-on): Add float.
27439
27440         * tests/test-floorl.c: Include <float.h>.
27441         (zero): Remove variable.
27442         (minus_zero): New variable.
27443         (main): Use minus_zero instead of -zero.
27444         * modules/floorl-tests (Depends-on): Add float.
27445
27446         * tests/test-roundl.c: Include <float.h>.
27447         (zero): Remove variable.
27448         (minus_zero): New variable.
27449         (main): Use minus_zero instead of -zero.
27450         * modules/roundl-tests (Depends-on): Add float.
27451
27452         * tests/test-truncl.c: Include <float.h>.
27453         (zero): Remove variable.
27454         (minus_zero): New variable.
27455         (main): Use minus_zero instead of -zero.
27456         * modules/truncl-tests (Depends-on): Add float.
27457
27458         * tests/test-frexpl.c (zero): Remove variable.
27459         (minus_zero): New variable.
27460         (main): Use minus_zero instead of -zero.
27461         * modules/frexpl-tests (Depends-on): Add float.
27462
27463         * tests/test-isnan.c (zerol): Remove variable.
27464         (minus_zerol): New variable.
27465         (test_long_double): Use minus_zerol instead of -zerol.
27466         * modules/isnan-tests (Depends-on): Add float.
27467
27468         * tests/test-isnanl.h (zero): Remove variable.
27469         (minus_zero): New variable.
27470         (main): Use minus_zero instead of -zero.
27471         * modules/isnanl-nolibm-tests (Depends-on): Add float.
27472         * modules/isnanl-tests (Depends-on): Add float.
27473
27474         * tests/test-ldexpl.c (zero): Remove variable.
27475         (minus_zero): New variable.
27476         (main): Use minus_zero instead of -zero.
27477         * modules/ldexpl-tests (Depends-on): Add float.
27478
27479         * tests/test-snprintf-posix.h (zerol): Remove variable.
27480         (minus_zerol): New variable.
27481         (test_function): Use minus_zerol instead of -zerol.
27482         * modules/snprintf-posix-tests (Depends-on): Add float.
27483         * modules/vsnprintf-posix-tests (Depends-on): Add float.
27484
27485         * tests/test-sprintf-posix.h (zerol): Remove variable.
27486         (minus_zerol): New variable.
27487         (test_function): Use minus_zerol instead of -zerol.
27488         * modules/sprintf-posix-tests (Depends-on): Add float.
27489         * modules/vsprintf-posix-tests (Depends-on): Add float.
27490
27491         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
27492         (minus_zerol): New variable.
27493         (test_function): Use minus_zerol instead of -zerol.
27494         * modules/vasnprintf-posix-tests (Depends-on): Add float.
27495
27496         * tests/test-vasprintf-posix.c (zerol): Remove variable.
27497         (minus_zerol): New variable.
27498         (test_function): Use minus_zerol instead of -zerol.
27499         * modules/vasprintf-posix-tests (Depends-on): Add float.
27500
27501 2008-10-07  Simon Josefsson  <simon@josefsson.org>
27502
27503         * MODULES.html.sh (Support for building documentation): Mention
27504         pmccabe2html.  Sort entries.
27505
27506         Add pmccabe2html module, from gnupdf.
27507         * build-aux/pmccabe.css: New file.
27508         * build-aux/pmccabe2html: New file.
27509         * m4/pmccabe2html.m4: New file.
27510         * modules/pmccabe2html: New file.
27511
27512 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
27513
27514         flock: new module
27515         * MODULES.html.sh: Add to list of modules.
27516         * lib/flock.c: flock implementation for Windows and Unix systems
27517         which have fcntl.
27518         * doc/glibc-functions/flock.texi: Update documentation.
27519         * lib/sys_file.in.h: <sys/file.h> header file.
27520         * m4/flock.m4: M4 macros.
27521         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
27522         * modules/flock: flock module.
27523         * modules/flock-tests: flock tests module.
27524         * modules/sys_file: sys/file.h module.
27525         * tests/test-flock.c: test suite for flock.
27526
27527 2008-10-06  Jim Meyering  <meyering@redhat.com>
27528
27529         bootstrap: check for LT_INIT more portably still ;-)
27530         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
27531         Spotted by Bruno Haible.
27532
27533 2008-10-06  Eric Blake  <ebb9@byu.net>
27534
27535         test-signbit: avoid tripping Irix cc bug on -0.0L
27536         * tests/test-signbit.c (minus_zerol): Delete, and replace with
27537         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
27538         entire testsuite consistent and avoids an Irix 6.2 bug.
27539
27540 2008-10-05  Bruno Haible  <bruno@clisp.org>
27541             Jim Meyering  <jim@meyering.net>
27542
27543         Add an option for ignoring EPIPE during close_stdout.
27544         * lib/closeout.h: Include <stdbool.h>.
27545         (close_stdout_set_ignore_EPIPE): New declaration.
27546         * lib/closeout.c: Include <stdbool.h>.
27547         (ignore_EPIPE): New variable.
27548         (close_stdout_set_ignore_EPIPE): New function.
27549         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
27550         * lib/close-stream.c (close_stream): Mention the possible EPIPE
27551         failure.
27552         * modules/closeout (Depends-on): Add stdbool.
27553
27554 2008-10-05  Bruno Haible  <bruno@clisp.org>
27555
27556         * modules/accept: New file.
27557         * modules/bind: New file.
27558         * modules/connect: New file.
27559         * modules/getpeername: New file.
27560         * modules/getsockname: New file.
27561         * modules/getsockopt: New file.
27562         * modules/listen: New file.
27563         * modules/recv: New file.
27564         * modules/recvfrom: New file.
27565         * modules/send: New file.
27566         * modules/sendto: New file.
27567         * modules/setsockopt: New file.
27568         * modules/socket: New file.
27569         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
27570         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27571         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
27572         the particular module is requested. Add a link warning when the
27573         particular module is not requested.
27574         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
27575         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
27576         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
27577         the particular module is requested.
27578         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
27579         gl_SYS_SOCKET_H_DEFAULTS): New macros.
27580         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
27581         * modules/sys_socket (Depends-on): Add link-warning.
27582         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
27583         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
27584         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
27585         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
27586         GL_LINK_WARNING.
27587         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
27588         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
27589         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
27590         * doc/posix-functions/getpeername.texi: Mention the new module
27591         'getpeername'.
27592         * doc/posix-functions/getsockname.texi: Mention the new module
27593         'getsockname'.
27594         * doc/posix-functions/getsockopt.texi: Mention the new module
27595         'getsockopt'.
27596         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
27597         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
27598         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
27599         * doc/posix-functions/send.texi: Mention the new module 'send'.
27600         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
27601         * doc/posix-functions/setsockopt.texi: Mention the new module
27602         'setsockopt'.
27603         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
27604         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
27605         listen, connect, accept.
27606         * modules/select-tests (Depends-on): Likewise.
27607
27608 2008-10-05  Bruno Haible  <bruno@clisp.org>
27609
27610         * lib/winsock.c (strerror): Remove unused #undef.
27611         (rpl_close): Remove unused local variable.
27612
27613         * modules/sys_socket (Depends-on); Add errno.
27614
27615 2008-10-05  Bruno Haible  <bruno@clisp.org>
27616
27617         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
27618         (select): Add a link warning when the 'select' module is not used.
27619         * modules/sys_select (Depends-on): Add link-warning.
27620         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
27621         Suggested by Paolo Bonzini.
27622
27623 2008-10-05  Jim Meyering  <meyering@redhat.com>
27624
27625         bootstrap: check for LT_INIT more portably
27626         * build-aux/bootstrap: Avoid using grep -E, since it's not
27627         portable enough.  Suggestion from Bruno Haible.
27628
27629 2008-10-05  Bruno Haible  <bruno@clisp.org>
27630
27631         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
27632         as being fixed by gnulib.
27633
27634 2008-10-05  Bruno Haible  <bruno@clisp.org>
27635
27636         * modules/select-tests: New file, mostly copied from
27637         modules/sys_select-tests.
27638         * tests/test-select.c: New file, mostly copied from
27639         tests/test-sys_select.c.
27640         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
27641         * modules/sys_select-tests (Depends-on): Remove all dependencies.
27642         (Makefile.am): Remove test_sys_select_LDADD.
27643
27644         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
27645         to an undefined symbol, for an error message.
27646         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
27647         (gl_SYS_SELECT_H_DEFAULTS): New macro.
27648         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
27649         winsock-select.c here.
27650         * modules/sys_select (Files): Remove lib/winsock-select.c.
27651         (Depends-on): Remove alloca.
27652         (Makefile.am): Substitute GNULIB_SELECT.
27653         * modules/select: New file.
27654         * doc/posix-functions/select.texi: Update.
27655
27656 2008-10-05  Bruno Haible  <bruno@clisp.org>
27657
27658         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
27659         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
27660         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
27661         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
27662         getdtablesize.
27663         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
27664         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
27665
27666 2008-10-05  Bruno Haible  <bruno@clisp.org>
27667
27668         * modules/getdtablesize-tests: New file.
27669         * tests/test-getdtablesize.c: New file.
27670
27671         New module 'getdtablesize'.
27672         * lib/unistd.in.h (getdtablesize): New declaration.
27673         * lib/getdtablesize.c: New file.
27674         * m4/getdtablesize.m4: New file.
27675         * modules/getdtablesize: New file.
27676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27677         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
27678         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
27679         HAVE_GETDTABLESIZE.
27680         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
27681
27682 2008-10-05  Bruno Haible  <bruno@clisp.org>
27683
27684         * modules/sched (Makefile.am): Fix typo.
27685         Reported by Simon Josefsson.
27686
27687 2008-10-05  Jim Meyering  <meyering@redhat.com>
27688
27689         bootstrap: check for LT_INIT, too
27690         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
27691         are deprecated.  Suggestion from Ralf Wildenhues.
27692
27693 2008-10-05  Bruno Haible  <bruno@clisp.org>
27694
27695         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
27696         overriding them by ours.
27697         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
27698
27699 2008-10-05  Jim Meyering  <meyering@redhat.com>
27700
27701         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
27702         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
27703         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
27704
27705 2008-10-04  Bruno Haible  <bruno@clisp.org>
27706
27707         * modules/dup2 (License): Change to LGPLv2+.
27708         * modules/sleep (License): Likewise.
27709         * modules/perror (License): Likewise.
27710         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
27711         Blake.
27712         * modules/signal (License): Likewise.
27713         * modules/sigprocmask (License): Likewise.
27714         * modules/raise (License): Change to LGPLv2+, with approval by Jim
27715         Meyering.
27716
27717 2008-10-04  Bruno Haible  <bruno@clisp.org>
27718
27719         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
27720         Reported by Rainer Tammer <tammer@tammer.net>.
27721
27722 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
27723             Bruno Haible  <bruno@clisp.org>
27724
27725         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
27726         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
27727         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
27728
27729 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
27730
27731         filevercmp: new module
27732         * lib/filevercmp.h: New function filevercmp comparing version strings.
27733         * lib/filevercmp.c: Implementation of filevercmp function.
27734         * modules/filevercmp: Module metadata.
27735         * tests/test-filevercmp.c: Unit test for new module.
27736         * modules/filevercmp-tests: Unit test metadata.
27737         * MODULES.html.sh: Add filevercmp module.
27738
27739 2008-10-03  Bruno Haible  <bruno@clisp.org>
27740
27741         * lib/c-ctype.h: Add comment.
27742         Reported by Jim Meyering.
27743
27744 2008-10-02  Bruno Haible  <bruno@clisp.org>
27745
27746         * modules/posix_spawn-internal (Depends-on): Add 'open'.
27747
27748 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27749
27750         * build-aux/bootstrap: Allow renaming bootstrap, and change the
27751         name of bootstrap.conf accordingly.
27752
27753 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27754
27755         * build-aux/bootstrap: Install git-merge-changelog configuration
27756         items into .gitconfig if needed.
27757
27758 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27759
27760         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
27761         git repository, and initialize/update it accordingly.
27762
27763 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
27764
27765         * modules/fsync-tests: New file.
27766         * tests/test-fsync.c: New file.
27767
27768         New module 'fsync'.
27769         * lib/fsync.c: New file.
27770         * m4/fsync.m4: New file.
27771         * modules/fsync: New file.
27772         * lib/unistd.in.h (fsync): New declaration.
27773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
27774         GNULIB_FSYNC and HAVE_FSYNC.
27775         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
27776         * MODULES.html.sh (posix_functions): Add fsync.
27777         * doc/posix-functions/fsync.texi: Mention the new module.
27778
27779 2008-10-02  Jim Meyering  <meyering@redhat.com>
27780
27781         fts.c: sync with similar code from coreutils' remove.c
27782         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
27783         Guard also with "#if defined __linux__", since for now at least,
27784         this code is Linux-kernel-specific.
27785
27786 2008-10-02  Jim Meyering  <meyering@redhat.com>
27787
27788         fts: bug fixes
27789         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
27790         Include <sys/vfs.h>, not <sys/statfs.h>.
27791
27792         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
27793         Include <sys/vfs.h>, not <sys/statfs.h>.
27794
27795 2008-10-01  Bruno Haible  <bruno@clisp.org>
27796
27797         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
27798         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
27799         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
27800         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
27801         * doc/posix-functions/posix_spawnp.texi: Likewise.
27802         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
27803         whether posix_spawn actually works.
27804         * m4/pipe.m4 (gl_PIPE): Likewise.
27805         * modules/execute (Files): Add m4/posix_spawn.m4.
27806         * modules/pipe (Files): Add m4/posix_spawn.m4.
27807         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
27808
27809 2008-10-01  Jim Meyering  <meyering@redhat.com>
27810
27811         remove trailing spaces
27812         * NEWS: Likewise.
27813         * lib/poll.c (poll): Likewise.
27814         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
27815         * lib/winsock.c (rpl_close): Likewise.
27816         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
27817         * modules/yield: Likewise.
27818         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
27819         * tests/test-sys_select.c (connect_to_socket): Likewise.
27820
27821         fts.c: adjust a new interface to be more generally useful
27822         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
27823         (fts_build): Adjust caller.
27824
27825 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27826
27827         * modules/cond-tests: New file.
27828         * tests/test-cond.c: New file.
27829
27830 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27831             Bruno Haible  <bruno@clisp.org>
27832
27833         * modules/cond (Dependencies): Add errno, time.
27834         * lib/glthread/cond.h: Include <time.h>.
27835         (gl_cond_define, gl_cond_define_initialized): Use the same definition
27836         across platforms.
27837
27838 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27839             Bruno Haible  <bruno@clisp.org>
27840
27841         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
27842
27843 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27844             Bruno Haible  <bruno@clisp.org>
27845
27846         * modules/tls-tests (Depends-on): Add thread, yield.
27847         (configure.ac): Remove all checks.
27848         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
27849         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27850         gl_thread_self): Remove definitions. Include glthread/thread.h and
27851         glthread/yield.h instead.
27852         (test_tls): Pass an additional NULL argument to gl_thread_join.
27853
27854 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27855             Bruno Haible  <bruno@clisp.org>
27856
27857         * modules/lock-tests (Depends-on): Add thread, yield.
27858         (configure.ac): Remove all checks.
27859         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
27860         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27861         gl_thread_self): Remove definitions. Include glthread/thread.h and
27862         glthread/yield.h instead.
27863         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
27864         additional NULL argument to gl_thread_join.
27865
27866 2008-09-30  Bruno Haible  <bruno@clisp.org>
27867
27868         Fix the Win32 implementation of the 'thread' module.
27869         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
27870         pointer type.
27871         (gl_thread_self): Invoke gl_thread_self_func.
27872         (gl_thread_self_func): New declaration.
27873         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
27874         (do_init_self_key, init_self_key): New functions.
27875         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
27876         Remove some fields.
27877         (running_threads, running_lock): Remove variables.
27878         (get_current_thread_handle): New function.
27879         (gl_thread_self_func, wrapper_func, glthread_create_func,
27880         glthread_join_func, gl_thread_exit_func): Largely rewritten and
27881         simplified.
27882
27883 2008-09-30  Bruno Haible  <bruno@clisp.org>
27884
27885         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
27886         files.
27887
27888 2008-09-30  Jim Meyering  <meyering@redhat.com>
27889
27890         fts.m4: correct the test for statfs.f_type
27891         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
27892         when checking for statfs.f_type.
27893
27894 2008-09-15  Simon Josefsson  <simon@josefsson.org>
27895
27896         tests: avoid some compiler warnings
27897         * tests/test-memchr.c (main): Pass NULL indirectly.
27898         * tests/test-getdate.c (main): Remove unused variable 'ret'.
27899
27900 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
27901
27902         getdate.y: disallow countable dayshifts like "4 yesterday ago"
27903         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
27904         exactly specified dayshifts.
27905         (dayshift): New rule.
27906         (rel): Add dayshift.
27907         (relative_time_table) [tomorrow, yesterday, today, now]:
27908         Use tDAY_SHIFT in place of tDAY_UNIT.
27909         * tests/test-getdate.c: Add tests for now-disallowed countable
27910         dayshifts, e.g., "4 yesterday ago".
27911
27912 2008-09-29  Bruno Haible  <bruno@clisp.org>
27913
27914         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
27915         * tests/test-posix_spawn1.in.sh: Renamed from
27916         tests/test-posix_spawn.in.sh.
27917         * tests/test-posix_spawn2.c: New file.
27918         * tests/test-posix_spawn2.in.sh: New file.
27919         * modules/posix_spawnp-tests (Files): Update.
27920         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
27921
27922 2008-09-29  Bruno Haible  <bruno@clisp.org>
27923
27924         Propagate effects of putenv/setenv/unsetenv to child processes.
27925         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
27926         * lib/pipe.c (create_pipe): Likewise.
27927
27928 2008-09-29  Bruno Haible  <bruno@clisp.org>
27929
27930         Enable use of shell scripts as executables in mingw.
27931         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
27932         run the program as a shell script.
27933         * lib/pipe.c (create_pipe): Likewise.
27934         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
27935         resulting array.
27936
27937 2008-09-29  Eric Blake  <ebb9@byu.net>
27938
27939         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
27940
27941 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
27942
27943         * doc/posix-functions/accept.texi: Update mingw problems.
27944         * doc/posix-functions/bind.texi: Update mingw problems.
27945         * doc/posix-functions/close.texi: Update mingw problems.
27946         * doc/posix-functions/connect.texi: Update mingw problems.
27947         * doc/posix-functions/getpeername.texi: Update mingw problems.
27948         * doc/posix-functions/getsockname.texi: Update mingw problems.
27949         * doc/posix-functions/getsockopt.texi: Update mingw problems.
27950         * doc/posix-functions/ioctl.texi: Update mingw problems.
27951         * doc/posix-functions/listen.texi: Update mingw problems.
27952         * doc/posix-functions/recv.texi: Update mingw problems.
27953         * doc/posix-functions/recvfrom.texi: Update mingw problems.
27954         * doc/posix-functions/select.texi: Update mingw problems.
27955         * doc/posix-functions/send.texi: Update mingw problems.
27956         * doc/posix-functions/sendto.texi: Update mingw problems.
27957         * doc/posix-functions/setsockopt.texi: Update mingw problems.
27958         * doc/posix-functions/socket.texi: Update mingw problems.
27959
27960 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
27961             Bruno Haible  <bruno@clisp.org>
27962
27963         * lib/sys_select.in.h: Include sys/time.h.
27964         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
27965         * modules/sys_select: Depend on sys_time.
27966         * tests/test-sys_select.c: Test that sys/select.h defines struct
27967         timeval fully.
27968
27969 2008-09-29  Bruno Haible  <bruno@clisp.org>
27970
27971         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
27972         * lib/sys_select.in.h: Likewise.
27973
27974 2008-09-29  Bruno Haible  <bruno@clisp.org>
27975
27976         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
27977
27978 2008-09-29  Bruno Haible  <bruno@clisp.org>
27979
27980         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
27981         Set LIBSOCKET instead of augmenting LIBS.
27982         * modules/sockets (Link): New section.
27983         * modules/sockets-tests (test_sockets_LDADD): New variable.
27984         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
27985         * modules/poll-tests (test_poll_LDADD): New variable.
27986         * NEWS: Document the change.
27987
27988 2008-09-29  Bruno Haible  <bruno@clisp.org>
27989
27990         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
27991         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
27992         ARPA_INET_H directly.
27993         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27994
27995 2008-09-28  Bruno Haible  <bruno@clisp.org>
27996
27997         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
27998         from gl_HEADER_SYS_SOCKET.
27999         (gl_HEADER_SYS_SOCKET): Invoke it.
28000         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28001
28002 2008-09-28  Bruno Haible  <bruno@clisp.org>
28003
28004         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
28005         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
28006         Needed on OSF/1 4.0.
28007
28008 2008-09-28  Bruno Haible  <bruno@clisp.org>
28009
28010         Override open more carefully.
28011         * lib/open.c (orig_open): New function.
28012         (rpl_open): Use orig_open instead of open.
28013         * lib/fcntl.in.h: Add special invocation convention.
28014         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
28015         (gl_FUNC_OPEN): Invoke it.
28016
28017         Override freopen more carefully.
28018         * lib/freopen.c (orig_freopen): New function.
28019         (rpl_freopen): Use orig_freopen instead of freopen.
28020         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
28021         (gl_FUNC_FREOPEN): Invoke it.
28022
28023         Override fopen more carefully.
28024         * lib/fopen.c (orig_fopen): New function.
28025         (rpl_fopen): Use orig_fopen instead of fopen.
28026         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
28027         (gl_FUNC_FOPEN): Invoke it.
28028         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
28029
28030 2008-09-28  Bruno Haible  <bruno@clisp.org>
28031
28032         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
28033         SIGPIPE.
28034
28035 2008-09-28  Bruno Haible  <bruno@clisp.org>
28036
28037         * tests/test-sigaction.c (handler, main): Disable the check whether
28038         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
28039         glibc systems with LinuxThreads.
28040
28041 2008-09-28  Bruno Haible  <bruno@clisp.org>
28042
28043         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
28044
28045         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
28046         with AIX xlc.
28047         * lib/fcntl.in.h (open): Likewise.
28048         Reported by Rainer Tammer <tammer@tammer.net>.
28049
28050 2008-09-28  Bruno Haible  <bruno@clisp.org>
28051
28052         * modules/posix_spawnp-tests: New file.
28053         * tests/test-posix_spawn.c: New file.
28054         * tests/test-posix_spawn.in.sh: New file.
28055
28056         New module 'posix_spawnp'.
28057         * modules/posix_spawnp: New file.
28058         * lib/spawnp.c: New file, from GNU libc with modifications.
28059         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
28060
28061         New module 'posix_spawn'.
28062         * modules/posix_spawn: New file.
28063         * lib/spawn.c: New file, from GNU libc with modifications.
28064         * doc/posix-functions/posix_spawn.texi: Mention the new module.
28065
28066         New module 'posix_spawnattr_destroy'.
28067         * modules/posix_spawnattr_destroy: New file.
28068         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
28069         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
28070         module.
28071
28072         New module 'posix_spawnattr_setsigmask'.
28073         * modules/posix_spawnattr_setsigmask: New file.
28074         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
28075         modifications.
28076         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
28077         new module.
28078
28079         New module 'posix_spawnattr_getsigmask'.
28080         * modules/posix_spawnattr_getsigmask: New file.
28081         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
28082         modifications.
28083         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
28084         new module.
28085
28086         New module 'posix_spawnattr_setsigdefault'.
28087         * modules/posix_spawnattr_setsigdefault: New file.
28088         * lib/spawnattr_setdefault.c: New file, from GNU libc with
28089         modifications.
28090         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
28091         new module.
28092
28093         New module 'posix_spawnattr_getsigdefault'.
28094         * modules/posix_spawnattr_getsigdefault: New file.
28095         * lib/spawnattr_getdefault.c: New file, from GNU libc with
28096         modifications.
28097         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
28098         new module.
28099
28100         New module 'posix_spawnattr_setschedpolicy'.
28101         * modules/posix_spawnattr_setschedpolicy: New file.
28102         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
28103         modifications.
28104         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
28105         new module.
28106
28107         New module 'posix_spawnattr_getschedpolicy'.
28108         * modules/posix_spawnattr_getschedpolicy: New file.
28109         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
28110         modifications.
28111         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
28112         new module.
28113
28114         New module 'posix_spawnattr_setschedparam'.
28115         * modules/posix_spawnattr_setschedparam: New file.
28116         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
28117         modifications.
28118         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
28119         new module.
28120
28121         New module 'posix_spawnattr_getschedparam'.
28122         * modules/posix_spawnattr_getschedparam: New file.
28123         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
28124         modifications.
28125         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
28126         new module.
28127
28128         New module 'posix_spawnattr_setpgroup'.
28129         * modules/posix_spawnattr_setpgroup: New file.
28130         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
28131         modifications.
28132         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
28133         module.
28134
28135         New module 'posix_spawnattr_getpgroup'.
28136         * modules/posix_spawnattr_getpgroup: New file.
28137         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
28138         modifications.
28139         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
28140         module.
28141
28142         New module 'posix_spawnattr_setflags'.
28143         * modules/posix_spawnattr_setflags: New file.
28144         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
28145         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
28146         module.
28147
28148         New module 'posix_spawnattr_getflags'.
28149         * modules/posix_spawnattr_getflags: New file.
28150         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
28151         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
28152         module.
28153
28154         New module 'posix_spawnattr_init'.
28155         * modules/posix_spawnattr_init: New file.
28156         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
28157         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
28158         module.
28159
28160         New module 'posix_spawn_file_actions_destroy'.
28161         * modules/posix_spawn_file_actions_destroy: New file.
28162         * lib/spawn_faction_destroy.c: New file, from GNU libc with
28163         modifications.
28164         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
28165         the new module.
28166
28167         New module 'posix_spawn_file_actions_addopen'.
28168         * modules/posix_spawn_file_actions_addopen: New file.
28169         * lib/spawn_faction_addopen.c: New file, from GNU libc with
28170         modifications.
28171         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
28172         the new module.
28173
28174         New module 'posix_spawn_file_actions_adddup2'.
28175         * modules/posix_spawn_file_actions_adddup2: New file.
28176         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
28177         modifications.
28178         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
28179         the new module.
28180
28181         New module 'posix_spawn_file_actions_addclose'.
28182         * modules/posix_spawn_file_actions_addclose: New file.
28183         * lib/spawn_faction_addclose.c: New file, from GNU libc with
28184         modifications.
28185         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
28186         the new module.
28187
28188         New module 'posix_spawn_file_actions_init'.
28189         * modules/posix_spawn_file_actions_init: New file.
28190         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
28191         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
28192         new module.
28193
28194         New module 'posix_spawn-internal'.
28195         * modules/posix_spawn-internal: New file.
28196         * lib/spawn_int.h: New file, from GNU libc with modifications.
28197         * lib/spawni.c: New file, from GNU libc with modifications.
28198         * m4/posix_spawn.m4: New file.
28199
28200         New module 'spawn'.
28201         * modules/spawn: New file.
28202         * lib/spawn.in.h: New file, from GNU libc with modifications.
28203         * m4/spawn_h.m4: New file.
28204         * doc/posix-headers/spawn.texi: Mention the new module.
28205
28206 2008-09-28  Bruno Haible  <bruno@clisp.org>
28207
28208         * modules/sched-tests: New file.
28209         * tests/test-sched.c: New file.
28210
28211         New module 'sched'.
28212         * modules/sched: New file.
28213         * lib/sched.in.h: New file.
28214         * m4/sched_h.m4: New file.
28215         * doc/posix-headers/sched.texi: Mention the new module.
28216
28217 2008-09-27  Eric Blake  <ebb9@byu.net>
28218
28219         Fix previous patch, and tweak references to $0.
28220         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
28221         (func_version, func_gnulib_dir): Don't call this program
28222         gnulib-tool.
28223         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
28224         with using $0 in function.
28225         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
28226         (func_fatal_error): Reuse the name the user invoked us with.
28227
28228 2008-09-27  Bruno Haible  <bruno@clisp.org>
28229
28230         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
28231         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
28232         (gl_ICONV_H): Not here.
28233         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28234         instead of assigning ICONV_H directly.
28235
28236         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
28237         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
28238         WCHAR_H directly.
28239
28240 2008-09-27  Bruno Haible  <bruno@clisp.org>
28241
28242         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
28243         * modules/arpa_inet (Depends-on): Add link-warning.
28244         (Makefile.am): Insert the definition of GL_LINK-WARNING.
28245         * modules/unistd (Makefile.am): Likewise.
28246
28247 2008-09-26  Bruno Haible  <bruno@clisp.org>
28248
28249         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
28250         variables.
28251         (func_version): Essentially copied from gnulib-tool.
28252         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
28253         func_readlink): Copied from gnulib-tool.
28254
28255 2008-09-26  Bruno Haible  <bruno@clisp.org>
28256
28257         * gnulib-tool (func_version): Change directory to $gnulib_dir before
28258         invoking git-version-gen.
28259
28260 2008-09-26  Bruno Haible  <bruno@clisp.org>
28261
28262         * posix-modules: Update to directory names changed on 2008-01-19.
28263         Remove commas in output before splitting into words. No more need to
28264         avoid 'ftruncate' since 2007-02-19.
28265
28266 2008-09-26  Bruno Haible  <bruno@clisp.org>
28267
28268         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
28269
28270 2008-09-26  Bruno Haible  <bruno@clisp.org>
28271
28272         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
28273         * modules/fwriteerror (Depends-on): Add errno.
28274
28275 2008-09-26  Bruno Haible  <bruno@clisp.org>
28276
28277         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
28278         * tests/test-vc-list-files-cvs.sh: Likewise.
28279
28280 2008-09-26  Bruno Haible  <bruno@clisp.org>
28281
28282         * doc/posix-headers/sys_resource.texi: Reorder items.
28283
28284 2008-09-26  Jim Meyering  <meyering@redhat.com>
28285
28286         fts: tweak inode comparison function
28287         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
28288         inode numbers, as documented.
28289
28290         fts: sort dirent entries on inode number before traversing
28291         This avoids a quadratic, seek-related performance penalty when
28292         operating on a directory containing many entries (measurable at 10k;
28293         3.5 hours at 2 million entries with a cold cache) on certain types
28294         of file systems, including ext3 and ext4, but not tmpfs.
28295         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
28296         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
28297         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
28298         (fs_handles_readdir_ordered_dirents_efficiently): New function.
28299         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
28300         (fts_build): Set the stat.st_ino member from D_INO.
28301         If it is likely to be useful, sort dirent entries on inode number.
28302
28303         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
28304         and the struct statfs.f_type member.
28305         * modules/fts (Depends-on): Add d-ino.
28306
28307 2008-09-26  Bruno Haible  <bruno@clisp.org>
28308
28309         * modules/sigpipe-die (Depends-on): Add sigpipe.
28310
28311         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
28312         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
28313         and GNULIB_STDIO_H_SIGPIPE are set.
28314         * lib/stdio-write.c: New file.
28315         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
28316         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28317         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28318         REPLACE_STDIO_WRITE_FUNCS.
28319         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
28320         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28321         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28322         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28323         * modules/stdio (Files): Add lib/stdio-write.c.
28324         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
28325         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
28326         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
28327         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
28328         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
28329         REPLACE_FPRINTF_POSIX.
28330         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
28331         REPLACE_PRINTF_POSIX.
28332         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
28333         REPLACE_VFPRINTF_POSIX.
28334         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
28335         REPLACE_VPRINTF_POSIX.
28336         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
28337         SIGPIPE issue.
28338         * doc/posix-functions/fputc.texi: Likewise.
28339         * doc/posix-functions/fputs.texi: Likewise.
28340         * doc/posix-functions/fwrite.texi: Likewise.
28341         * doc/posix-functions/printf.texi: Likewise.
28342         * doc/posix-functions/putc.texi: Likewise.
28343         * doc/posix-functions/putchar.texi: Likewise.
28344         * doc/posix-functions/puts.texi: Likewise.
28345         * doc/posix-functions/vfprintf.texi: Likewise.
28346         * doc/posix-functions/vprintf.texi: Likewise.
28347
28348         * modules/safe-write (Depends-on): Add write.
28349
28350         * modules/sigpipe-tests: New file.
28351         * tests/test-sigpipe.c: New file.
28352         * tests/test-sigpipe.sh: New file.
28353
28354         * modules/write: New file.
28355         * lib/unistd.in.h: Include <sys/types.h>.
28356         (write): New declaration.
28357         * lib/write.c: New file.
28358         * m4/write.m4: New file.
28359         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28360         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
28361         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
28362         GNULIB_WRITE, REPLACE_WRITE.
28363         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
28364         and the SIGPIPE issue.
28365
28366         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
28367         (raise): New declaration.
28368         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
28369         (ext_signal): New function.
28370         (rpl_raise): New function.
28371         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
28372         GNULIB_SIGNAL_H_SIGPIPE.
28373         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
28374         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
28375
28376         * modules/sigpipe: New file.
28377         * m4/sigpipe.m4: New file.
28378
28379 2008-09-25  Derek Price  <derek@ximbiot.com>
28380             Bruno Haible  <bruno@clisp.org>
28381
28382         * gnulib-tool (func_import): Report all license incompatibilities, not
28383         just the first one.
28384
28385 2008-09-25  Bruno Haible  <bruno@clisp.org>
28386
28387         * gnulib-tool (func_import): When computing the edits, consider not
28388         only the Makefile.ams that exist but also those that will be generated.
28389
28390 2008-09-25  Simon Josefsson  <simon@josefsson.org>
28391
28392         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
28393         fixes gnulib-tool --test warning about duplicate dependency.
28394
28395 2008-09-25  Bruno Haible  <bruno@clisp.org>
28396
28397         * gnulib-tool: Don't ask the user to perform edits in the generated
28398         Makefile.ams.
28399         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
28400         apply to the Makefile.am being generated.
28401         (func_emit_tests_Makefile_am): Execute edits that apply to the
28402         Makefile.am being generated.
28403         (func_import): Setup list of Makefile.am edits before emitting the
28404         Makefile.ams, not at the end.
28405         (func_create_testdir): Update.
28406         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28407
28408 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28409
28410         * gnulib-tool (func_import): Store the --tests-base option in the
28411         comment in gnulib-cache.m4.
28412
28413 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
28414
28415         * NEWS: Document increased portability that sys_select now provides.
28416
28417         * lib/sys_select.in.h: Install select wrapper.
28418         * lib/sys_socket.in.h: Use more descriptive name when there is no
28419         select wrapper.
28420         * lib/winsock-select.c: New.
28421         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
28422         Require gl_HEADER_SYS_SOCKET.
28423         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
28424         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
28425         * tests/test-sys_select.c: Add functional tests.
28426
28427 2008-09-24  Eric Blake  <ebb9@byu.net>
28428
28429         open, fopen: close fd leak in last patch
28430         * lib/open.c (rpl_open): Close fd before returning error.
28431         * lib/fopen.c (rpl_fopen): Close fd before returning error.
28432         * doc/posix-functions/open.texi (open): Document that Irix also
28433         has the bug.
28434         * doc/posix-functions/fopen.texi (fopen): Likewise.
28435         Reported by Paolo Bonzini.
28436
28437 2008-09-24  Bruno Haible  <bruno@clisp.org>
28438
28439         Ensure that a filename ending in a slash cannot be used to access a
28440         non-directory.
28441         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
28442         to check whether it's really a directory.
28443         * lib/fopen.c: Include fcntl.h, unistd.h.
28444         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
28445         and fdopen().
28446         * modules/fopen (Depends-on): Add unistd.
28447         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
28448         * tests/test-fopen.c (main): Likewise.
28449         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
28450         * doc/posix-functions/fopen.texi: Likewise.
28451         Reported by Eric Blake.
28452
28453 2008-09-23  Eric Blake  <ebb9@byu.net>
28454
28455         c-stack: avoid compiler optimizations when provoking overflow
28456         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
28457         recursion harder to optimize, to ensure a stack overflow occurs.
28458         * tests/test-c-stack.c (recurse): Likewise.
28459         Borrowed from libsigsegv.
28460
28461         c-stack: work around Irix sigaltstack bug
28462         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
28463         whether sigaltstack uses wrong end of stack_t (copied in part from
28464         libsigsegv).
28465         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
28466         Irix bug, without requiring an over-allocation.
28467         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
28468         bug.
28469
28470         fopen: document mingw bug on directories
28471         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
28472         not allowing a stream visiting a directory, even though reading
28473         from such a stream is not portable.
28474
28475 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28476
28477         * lib/poll.c: Rewrite.
28478         * modules/poll: Depend on alloca.
28479
28480 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28481
28482         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
28483         instead define prototypes for a full set of wrappers.  Ensure
28484         that Cygwin does not use the compatibility code, which is only
28485         for MinGW.
28486         * lib/winsock.c: New.
28487         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
28488         * modules/sys_socket: Add lib/winsock.c.
28489
28490         * modules/poll-tests: Add errno and perror.
28491         * tests/test-poll.c: Use ioctl, not ioctlsocket.
28492
28493 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
28494
28495         * tests/test-poll.c: Downgrade minimum needed Winsock version.
28496
28497 2008-09-23  Bruno Haible  <bruno@clisp.org>
28498
28499         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
28500         * doc/glibc-functions/*: Likewise.
28501
28502 2008-09-23  Simon Josefsson  <simon@josefsson.org>
28503
28504         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
28505         success.
28506
28507 2008-09-22  Eric Blake  <ebb9@byu.net>
28508             Bruno Haible  <bruno@clisp.org>
28509
28510         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
28511         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
28512         supply %A but mishandle pseudo-NaN.
28513         Reported by Simon Josefsson.
28514
28515 2008-09-21  Bruno Haible  <bruno@clisp.org>
28516
28517         * tests/test-lock.c (main): Tweak skip message.
28518         * tests/test-tls.c (main): Likewise.
28519
28520 2008-09-21  Bruno Haible  <bruno@clisp.org>
28521
28522         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
28523         whether 'struct sigaction' has sa_sigaction here...
28524         (gl_PREREQ_SIG_HANDLER_H): ... not here.
28525         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
28526
28527 2008-09-21  Bruno Haible  <bruno@clisp.org>
28528
28529         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
28530         section.
28531         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
28532         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
28533         the new section.
28534         (Support for obsolete systems lacking POSIX:2001): New section.
28535         (String handling <string.h>): Move strdup to the new section.
28536         Suggested by Simon Josefsson and Paolo Bonzini.
28537
28538 2008-09-21  Bruno Haible  <bruno@clisp.org>
28539
28540         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
28541         exponents in %e and %g results on 'long double'. Needed for mingw's
28542         improved *printf functions.
28543         * tests/test-vasprintf-posix.c (test_function): Likewise.
28544         * tests/test-snprintf-posix.h (test_function): Likewise.
28545         * tests/test-sprintf-posix.h (test_function): Likewise.
28546         Reported by Eric Blake.
28547
28548 2008-09-21  Bruno Haible  <bruno@clisp.org>
28549
28550         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
28551         * tests/test-sprintf-posix.h (test_function): Likewise.
28552
28553 2008-09-21  Bruno Haible  <bruno@clisp.org>
28554
28555         * modules/getpass (Depends-on): Add strdup-posix.
28556
28557         New module 'strdup-posix'.
28558         * modules/strdup-posix: New file.
28559         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
28560         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
28561         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28562         REPLACE_STRDUP.
28563         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
28564         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
28565         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28566         strdup-posix.
28567
28568         * modules/strdup (Depends-on): Remove malloc-posix.
28569
28570 2008-09-20  Bruno Haible  <bruno@clisp.org>
28571
28572         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
28573         Wildenhues.
28574
28575 2008-09-20  Bruno Haible  <bruno@clisp.org>
28576
28577         Ensure that wint_t gets defined on IRIX 5.3.
28578         * lib/wchar.in.h (wint_t): Define if not defined by the system.
28579         * lib/wctype.in.h (wint_t): Likewise.
28580         (__wctype_wint_t): Remove type.
28581         (isw*): Use wint_t instead of __wctype_wint_t.
28582         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
28583         * modules/wchar (Files): Add m4/wint_t.m4.
28584         (Makefile.am): Substitute HAVE_WINT_T.
28585         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
28586         * tests/test-wctype.c: Check that wint_t is defined.
28587         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
28588         * doc/posix-headers/wctype.texi: Likewise.
28589         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28590
28591 2008-09-18  Bruno Haible  <bruno@clisp.org>
28592
28593         * gnulib-tool (func_exit): Update comment.
28594
28595 2008-09-18  Simon Josefsson  <simon@josefsson.org>
28596
28597         * modules/getaddrinfo (Depends-on): Remove strdup, this module
28598         assumes strdup exists and does not depend on strdup to return
28599         ENOMEM on out of memory conditions.
28600
28601 2008-09-18  Bruno Haible  <bruno@clisp.org>
28602
28603         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
28604         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
28605         digits for the exponent.
28606
28607 2008-09-18  Jim Meyering  <meyering@redhat.com>
28608             Bruno Haible  <bruno@clisp.org>
28609
28610         * lib/vasnprintf.c (decimal_point_char): Define also if
28611         NEED_PRINTF_INFINITE_LONG_DOUBLE.
28612
28613 2008-09-16  Bruno Haible  <bruno@clisp.org>
28614         and Eric Blake  <ebb9@byu.net>
28615
28616         vasnprintf: support Irix 5.3
28617         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
28618         that mishandle long double infinity.
28619         Reported by Tom G. Christensen.
28620
28621 2008-09-16  Bruno Haible  <bruno@clisp.org>
28622
28623         * doc/glibc-functions/scandir.texi: Mention the function is missing on
28624         Solaris 9.
28625         * doc/glibc-functions/alphasort.texi: Likewise.
28626         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
28627
28628 2008-09-16  Jim Meyering  <meyering@redhat.com>
28629
28630         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
28631         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
28632         a umask modification leak out of a subshell.  Otherwise, the
28633         opensolaris /bin/sh would be accepted and thus cause unwarranted
28634         failures in the coreutils test suite.
28635
28636 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
28637
28638         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
28639         to succeed.
28640
28641 2008-09-16  Jim Meyering  <meyering@redhat.com>
28642
28643         avoid spurious test failure when library is built without ACL support
28644         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
28645         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
28646         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
28647         * tests/test-copy-acl.sh: Likewise.
28648
28649 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28650
28651         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
28652         based on character occurrence counts.
28653
28654 2008-09-15  Eric Blake  <ebb9@byu.net>
28655
28656         tests: avoid some compiler warnings
28657         * tests/test-memchr.c (main): Pass NULL indirectly.
28658         * tests/test-closein.c (main): Avoid unused variable.
28659
28660 2008-09-15  Bruno Haible  <bruno@clisp.org>
28661
28662         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
28663         are missing on OpenBSD 4.0 individually.
28664         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28665
28666 2008-09-15  Bruno Haible  <bruno@clisp.org>
28667
28668         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
28669         * doc/posix-functions/strerror.texi: Mention also Cygwin.
28670         * doc/posix-functions/perror.texi: Likewise.
28671         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
28672         is missing.
28673         Reported by Eric Blake.
28674
28675         * lib/errno.in.h: Use replacement values >= 2000.
28676         Reported by Eric Blake.
28677
28678 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28679
28680         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
28681         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
28682         limit.
28683         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
28684         compareseq was aborted.
28685
28686 2008-09-14  Bruno Haible  <bruno@clisp.org>
28687
28688         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
28689         yvec_edit_count.
28690         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
28691         (fstrcmp_bounded): Simplify result computation accordingly.
28692
28693 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28694
28695         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
28696         (fstrcmp): Define in terms of fstrcmp_bounded.
28697         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
28698         lower_bound argument.
28699         Return quickly if the result is certainly < lower_bound.
28700         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
28701
28702 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28703
28704         * lib/diffseq.h (EARLY_ABORT): New macro.
28705         (compareseq): Change return type to bool. Return true when EARLY_ABORT
28706         evaluates to true.
28707
28708 2008-09-14  Bruno Haible  <bruno@clisp.org>
28709
28710         * modules/perror-tests: New file.
28711         * tests/test-perror.sh: New file.
28712         * tests/test-perror.c: New file.
28713
28714         New module 'perror'.
28715         * lib/stdio.in.h (perror): New declaration.
28716         * lib/perror.c: New file.
28717         * m4/perror.m4: New file.
28718         * modules/perror: New file.
28719         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
28720         * doc/posix-functions/perror.texi: Mention the perror module.
28721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
28722         REPLACE_PERROR.
28723         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
28724         REPLACE_PERROR.
28725
28726 2008-09-14  Bruno Haible  <bruno@clisp.org>
28727
28728         * modules/stdio (Makefile.am): Reorder to match the order in
28729         lib/stdio.in.h.
28730         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28731
28732 2008-09-13  Bruno Haible  <bruno@clisp.org>
28733
28734         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
28735
28736 2008-09-13  Bruno Haible  <bruno@clisp.org>
28737
28738         Extend strerror to cover the added errno values.
28739         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
28740         (rpl_strerror): Provide error messages for the added errno values and
28741         for the WSA* values.
28742         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
28743         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
28744         strerror.
28745         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
28746         * modules/strerror (Depends-on): Add errno.
28747         * doc/posix-functions/strerror.texi: Document the change.
28748         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
28749         and EOVERFLOW.
28750
28751 2008-09-13  Bruno Haible  <bruno@clisp.org>
28752
28753         * modules/EOVERFLOW: Remove file.
28754         * m4/eoverflow.m4: Remove file.
28755         * modules/EOVERFLOW-tests: Remove file.
28756         * tests/test-EOVERFLOW.c: Remove file.
28757         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
28758         * modules/ftell (Depends-on): Likewise.
28759         * modules/getdelim (Depends-on): Likewise.
28760         * modules/getugroups (Depends-on): Likewise.
28761         * modules/poll (Depends-on): Likewise.
28762         * modules/snprintf (Depends-on): Likewise.
28763         * modules/sprintf-posix (Depends-on): Likewise.
28764         * modules/vasnprintf (Depends-on): Likewise.
28765         * modules/vasprintf (Depends-on): Likewise.
28766         * modules/vfprintf-posix (Depends-on): Likewise.
28767         * modules/vsnprintf (Depends-on): Likewise.
28768         * modules/vsprintf-posix (Depends-on): Likewise.
28769         * modules/xvasprintf (Depends-on): Likewise.
28770         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28771         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
28772         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
28773         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
28774         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28775         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
28776         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
28777         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
28778         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28779         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
28780         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
28781         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
28782         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28783         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
28784         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
28785         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
28786         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28787         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
28788         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
28789         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
28790         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28791         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
28792         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
28793         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
28794         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
28795         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28796         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
28797         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
28798         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
28799         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
28800         * MODULES.html.sh: Remove EOVERFLOW.
28801         * NEWS: Mention the change.
28802
28803 2008-09-13  Bruno Haible  <bruno@clisp.org>
28804
28805         * modules/errno-tests: New file.
28806         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
28807
28808         * lib/errno.in.h: New file.
28809         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
28810         * modules/errno: New file.
28811         * doc/posix-headers/errno.texi: Update documentation.
28812         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
28813
28814 2008-09-13  Bruno Haible  <bruno@clisp.org>
28815
28816         * tests/test-poll.c: Use #if for native Windows, rather than testing
28817         __MSVCRT__.
28818
28819 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28820             Bruno Haible  <bruno@clisp.org>
28821
28822         * lib/glob.c: Don't include <pwd.h> on native Windows.
28823         (WINDOWS32): New macro.
28824         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
28825
28826 2008-09-13  Bruno Haible  <bruno@clisp.org>
28827
28828         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
28829         (ETIMEDOUT): Remove macro.
28830         (glthread_cond_timedwait_multithreaded): New declaration.
28831         (glthread_cond_timedwait): Use it.
28832         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
28833         (glthread_cond_timedwait_multithreaded): New function.
28834
28835 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28836
28837         * modules/poll-tests: Do not check for io.h.
28838         * tests/test-poll.c: Check for __MSVCRT__ instead.
28839
28840 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28841
28842         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
28843         * modules/poll-tests: Add inet_pton, stdbool, sockets.
28844         * tests/test-poll.c: Use them.  Use _pipe on Windows.
28845
28846 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28847
28848         * modules/poll-tests: New.
28849         * tests/test-poll.c: New.
28850
28851 2008-09-12  Eric Blake  <ebb9@byu.net>
28852
28853         frexp: test for NetBSD failure on -0.0
28854         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
28855         not all, bugs from NetBSD 3.0 have been fixed.
28856         * doc/posix-functions/frexp.texi (frexp): Document bug.
28857         Reported by Thomas Klausner.
28858
28859         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
28860         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
28861         literal -0.0.
28862         Reported by Jonathan C. Patschke <jp@centtech.com>.
28863
28864 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28865
28866         * lib/glthread/cond.h: Use dummy implementation also if
28867         USE_WIN32_THREADS.
28868
28869 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28870
28871         * modules/fnmatch-posix (License): Change to LGPLv2+.
28872         * modules/fnmatch-gnu (License): Likewise.
28873
28874 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28875
28876         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
28877
28878 2008-09-11  Jim Meyering  <meyering@redhat.com>
28879
28880         * users.txt: Add gtk-vnc.
28881
28882 2008-09-08  Simon Josefsson  <simon@josefsson.org>
28883
28884         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
28885         rotate amounts.
28886
28887         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
28888         required for 16-bit and 8-bit rotates.
28889         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
28890         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
28891         UINT8_MAX instead of hard-coded constants.
28892         Suggested by Paul Eggert.
28893
28894 2008-09-07  Bruno Haible  <bruno@clisp.org>
28895
28896         * tests/test-striconveh.c (main): Check behaviour when converting from
28897         UTF-7.
28898
28899         Make striconveh work better with stateful encodings.
28900         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
28901         that iconv does not increment the inptr when returning -1/EINVAL.
28902
28903 2008-09-07  Bruno Haible  <bruno@clisp.org>
28904
28905         * build-aux/config.rpath: Update according to libtool-2.2.6.
28906         * build-aux/config.libpath: Likewise.
28907
28908 2008-09-06  Bruno Haible  <bruno@clisp.org>
28909
28910         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
28911         * lib/freadptr.c (freadptr): Likewise.
28912         * lib/freadseek.c (freadptrinc): Likewise.
28913         Reported by Simon Josefsson.
28914
28915 2008-09-06  Bruno Haible  <bruno@clisp.org>
28916
28917         * modules/freadptr (License): Change to LGPLv2+.
28918         * modules/freadseek (License): Likewise.
28919         Suggested by Eric Blake.
28920
28921         * modules/memchr2 (License): Change to LGPLv2+.
28922         Approved by Eric Blake.
28923
28924 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28925             Bruno Haible  <bruno@clisp.org>
28926
28927         Make gnulib-tool work with native 'sed' on AIX.
28928         * gnulib-tool (sed_noop): New variable.
28929         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
28930         func_add_or_update, func_create_testdir): Use it to initialize sed
28931         script variables.
28932         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28933
28934 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
28935             Bruno Haible  <bruno@clisp.org>
28936
28937         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
28938         also works after #include directives.
28939
28940 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
28941
28942         getdate.y: reject an out-of-range timezone value
28943         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
28944         the range [-24...+24].  When specified with only one or two digits,
28945         * tests/test-getdate.c: Tests for the fix.
28946         * doc/getdate.texi: Document this change.
28947
28948 2008-09-03  Bruno Haible  <bruno@clisp.org>
28949
28950         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
28951
28952 2008-09-02  Simon Josefsson  <simon@josefsson.org>
28953
28954         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
28955         <bruce.korb@gmail.com> with ideas from Ben Pfaff
28956         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
28957         Blake <ebb9@byu.net>.
28958
28959         * tests/test-bitrotate.c: Add more test vectors.
28960
28961 2008-09-02  Eric Blake  <ebb9@byu.net>
28962
28963         vasnprintf-posix: handle large precision via %.*d
28964         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
28965         when handling it ourselves.
28966         * tests/test-vasnprintf-posix.c (test_function): Add test.
28967         * tests/test-snprintf-posix.h (test_function): Likewise.
28968         * tests/test-sprintf-posix.h (test_function): Likewise.
28969         * tests/test-vasprintf-posix.c (test_function): Likewise.
28970         Reported by Alain Guibert.
28971
28972 2008-09-01  Eric Blake  <ebb9@byu.net>
28973
28974         c-stack: make configure-time check more robust
28975         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
28976         successful sigaction call.
28977         Reported by Tom G. Christensen.
28978
28979 2008-09-01  Bruno Haible  <bruno@clisp.org>
28980
28981         New module 'findprog-lgpl'.
28982         * modules/findprog-lgpl: New file.
28983         * lib/findprog-lgpl.c: New file.
28984         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
28985         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
28986         to decide whether to use strdup or xstrdup, concatenated_filename or
28987         xconcatenated_filename.
28988
28989 2008-09-01  Bruno Haible  <bruno@clisp.org>
28990
28991         Split module 'concat-filename' into 'concat-filename' (LGPL) and
28992         'xconcat-filename' (GPL).
28993         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
28994         (License): Change to LGPLv2+.
28995         * modules/xconcat-filename: New file.
28996         * lib/concat-filename.h (concatenated_filename): Change specification.
28997         (xconcatenated_filename): New declaration.
28998         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
28999         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
29000         memory situations.
29001         * lib/xconcat-filename.c: New file.
29002         * NEWS: Mention the change.
29003         * lib/findprog.c: Include concat-filename.h, not filename.h.
29004         (find_in_path): Use xconcatenated_filename instead of
29005         concatenated_filename.
29006         * lib/javacomp.c: Include concat-filename.h, not filename.h.
29007         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
29008         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
29009         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
29010         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
29011         instead of concatenated_filename.
29012         * lib/javaexec.c: Include concat-filename.h, not filename.h.
29013         (execute_java_class): Use xconcatenated_filename instead of
29014         concatenated_filename.
29015         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
29016         * modules/javacomp (Depends-on): Likewise.
29017         * modules/javaexec (Depends-on): Likewise.
29018
29019 2008-09-01  Bruno Haible  <bruno@clisp.org>
29020
29021         Split module 'filename' into 'filename' and 'concat-filename'.
29022         * modules/filename: Keep only lib/filename.h.
29023         (License): Change to LGPLv2+.
29024         * modules/concat-filename: New file, extracted from modules/filename.
29025         * lib/filename.h (concatenated_filename): Remove declaration.
29026         * lib/concat-filename.h: New file, extracted from lib/filename.h.
29027         * lib/concat-filename.c: Include concat-filename.h.
29028         * NEWS: Mention the change.
29029
29030 2008-09-01  Simon Josefsson  <simon@josefsson.org>
29031
29032         * lib/bitrotate.h (rotl8, rotr8): Add.
29033
29034         * modules/bitrotate (configure.ac): Need
29035         AC_REQUIRE([AC_C_INLINE]).
29036         (Description): Mention stdint.h.  Reported by Bruno Haible
29037         <bruno@clisp.org>.
29038
29039         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
29040         Paolo Bonzini <bonzini@gnu.org>.
29041
29042 2008-08-31  Bruno Haible  <bruno@clisp.org>
29043
29044         Assume Solaris specific bi-arch conventions on Solaris systems.
29045         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
29046         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
29047         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
29048         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
29049         like acl_libdirstem.
29050         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
29051         acl_libdirstem.
29052         * NEWS: Mention the change.
29053         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
29054
29055 2008-08-31  Jim Meyering  <meyering@redhat.com>
29056
29057         * lib/strftime.h: Add comments describing the two added arguments.
29058
29059         remove duplicate #include directives
29060         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
29061         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
29062
29063 2008-08-31  Bruno Haible  <bruno@clisp.org>
29064
29065         New module 'sigpipe-die'.
29066         * modules/sigpipe-die: New file.
29067         * lib/sigpipe-die.h: New file.
29068         * lib/sigpipe-die.c: New file.
29069         * MODULES.html.sh (Signal handling): Add sigpipe-die.
29070
29071 2008-08-31  Bruno Haible  <bruno@clisp.org>
29072
29073         Don't override previously installed signal handlers.
29074         * lib/fatal-signal.c (saved_sigactions): New variable.
29075         (uninstall_handlers): Reset the signal to the saved handler, not
29076         to SIG_DFL (except when ignored).
29077         (install_handlers): Save the previous handlers.
29078
29079 2008-08-30  Bruno Haible  <bruno@clisp.org>
29080
29081         * gnulib-tool (func_reset_sigpipe): New function.
29082         (func_get_automake_snippet, func_modules_transitive_closure,
29083         func_import): Invoke it before a join command that reads from stdin,
29084         to avoid "echo: write error: Broken pipe" error messages on stderr.
29085         Reported by Sam Steingold <sds@gnu.org>.
29086
29087 2008-08-30  Bruno Haible  <bruno@clisp.org>
29088
29089         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
29090         Code copied from m4/open.m4.
29091         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
29092         access and the filename ends in a slash. Code copied from lib/open.c.
29093         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
29094         * tests/test-fopen.c (main): Check against bug with trailing slash.
29095
29096 2008-08-29  Bruno Haible  <bruno@clisp.org>
29097
29098         Avoid some "gcc -pedantic" warnings.
29099         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
29100         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
29101         * lib/dirent.in.h: Likewise.
29102         * lib/fcntl.in.h: Likewise.
29103         * lib/float.in.h: Likewise.
29104         * lib/iconv.in.h: Likewise.
29105         * lib/inttypes.in.h: Likewise.
29106         * lib/locale.in.h: Likewise.
29107         * lib/math.in.h: Likewise.
29108         * lib/netinet_in.in.h: Likewise.
29109         * lib/search.in.h: Likewise.
29110         * lib/signal.in.h: Likewise.
29111         * lib/stdarg.in.h: Likewise.
29112         * lib/stdint.in.h: Likewise.
29113         * lib/stdio.in.h: Likewise.
29114         * lib/stdlib.in.h: Likewise.
29115         * lib/string.in.h: Likewise.
29116         * lib/strings.in.h: Likewise.
29117         * lib/sys_select.in.h: Likewise.
29118         * lib/sys_socket.in.h: Likewise.
29119         * lib/sys_stat.in.h: Likewise.
29120         * lib/sys_time.in.h: Likewise.
29121         * lib/sysexits.in.h: Likewise.
29122         * lib/time.in.h: Likewise.
29123         * lib/unistd.in.h: Likewise.
29124         * lib/wchar.in.h: Likewise.
29125         * lib/wctype.in.h: Likewise.
29126         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
29127         * modules/fchdir (Makefile.am): Likewise.
29128         * modules/fcntl (Makefile.am): Likewise.
29129         * modules/float (Makefile.am): Likewise.
29130         * modules/iconv_open (Makefile.am): Likewise.
29131         * modules/inttypes (Makefile.am): Likewise.
29132         * modules/locale (Makefile.am): Likewise.
29133         * modules/math (Makefile.am): Likewise.
29134         * modules/netinet_in (Makefile.am): Likewise.
29135         * modules/search (Makefile.am): Likewise.
29136         * modules/signal (Makefile.am): Likewise.
29137         * modules/stdarg (Makefile.am): Likewise.
29138         * modules/stdint (Makefile.am): Likewise.
29139         * modules/stdio (Makefile.am): Likewise.
29140         * modules/stdlib (Makefile.am): Likewise.
29141         * modules/string (Makefile.am): Likewise.
29142         * modules/strings (Makefile.am): Likewise.
29143         * modules/sys_select (Makefile.am): Likewise.
29144         * modules/sys_socket (Makefile.am): Likewise.
29145         * modules/sys_stat (Makefile.am): Likewise.
29146         * modules/sys_time (Makefile.am): Likewise.
29147         * modules/sysexits (Makefile.am): Likewise.
29148         * modules/time (Makefile.am): Likewise.
29149         * modules/unistd (Makefile.am): Likewise.
29150         * modules/wchar (Makefile.am): Likewise.
29151         * modules/wctype (Makefile.am): Likewise.
29152         Reported by Reuben Thomas <rrt@sc3d.org>.
29153
29154 2008-08-29  Bruno Haible  <bruno@clisp.org>
29155
29156         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
29157         any more.
29158
29159 2008-08-29  Simon Josefsson  <simon@josefsson.org>
29160
29161         * MODULES.html.sh (Misc): Add bitrotate.
29162
29163         * modules/bitrotate: New file.
29164
29165         * lib/bitrotate.h: New file.
29166
29167         * modules/bitrotate-tests: New file.
29168
29169         * tests/test-bitrotate.c: New file.
29170
29171         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
29172         on the bitrotate module.
29173
29174         * lib/arctwo.c: Use new bitrotate module.
29175
29176 2008-08-29  Jim Meyering  <meyering@redhat.com>
29177
29178         bootstrap: merge changes from coreutils
29179         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
29180         of copied files.  Remove a kludge, now that this is fixed.
29181         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
29182         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
29183         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
29184
29185 2008-08-29  Bruno Haible  <bruno@clisp.org>
29186
29187         * MODULES.html.sh: Remove --cvs-urls option.
29188
29189 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
29190
29191         maint.mk: adjust to file name change
29192         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
29193
29194 2008-08-28  Jim Meyering  <meyering@redhat.com>
29195
29196         * modules/getndelim2 (License): Relicense to LGPLv2+.
29197         Approved by Richard Stallman for the version of 1995, and by
29198         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
29199
29200 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
29201
29202         * lib/getdelim.c (flockfile, funlockfile): Make all of them
29203         dummy if one is not available.  Do not touch them if
29204         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
29205         (getc_maybe_unlocked): New.
29206         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
29207
29208 2008-08-26  Eric Blake  <ebb9@byu.net>
29209
29210         doc/INSTALL: resync from autoconf
29211         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
29212         (INSTALL_PRELUDE): Delete; this is done more efficiently by
29213         moving...
29214         * install.texi [!autoconf]: ...here.  Resync from autoconf.
29215         * INSTALL: Regenerate.
29216         * INSTALL.ISO: New file.
29217         * INSTALL.UTF-8: Likewise.
29218
29219 2008-08-26  Jim Meyering  <meyering@redhat.com>
29220
29221         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
29222         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
29223         these definitions conditional, so that they may be overridden, too.
29224
29225 2008-08-26  Bruno Haible  <bruno@clisp.org>
29226
29227         Generate INSTALL file variants with prettier quotes.
29228         * doc/Makefile (INSTALL_PRELUDE): New macro.
29229         (INSTALL): Use it.
29230         (INSTALL.ISO, INSTALL.UTF-8): New rules.
29231
29232 2008-08-26  Bruno Haible  <bruno@clisp.org>
29233
29234         Run makeinfo in an English locale.
29235         * doc/Makefile (MAKEINFO): New variable.
29236
29237 2008-08-26  Bruno Haible  <bruno@clisp.org>
29238
29239         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
29240         Suggested by Eric Blake.
29241
29242 2008-08-25  Bruno Haible  <bruno@clisp.org>
29243
29244         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
29245
29246 2008-08-25  Eric Blake  <ebb9@byu.net>
29247
29248         c-stack: test that stack overflow can be caught
29249         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
29250         that platform allows handling stack overflow; at least OS/2 EMX
29251         has sigaltstack, but crashes before transferring control to
29252         handler on stack overflow.
29253         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
29254         check for HAVE_STACK_OVERFLOW_HANDLING.
29255         Reported by Elbert Pol.
29256
29257 2008-08-25  Bruno Haible  <bruno@clisp.org>
29258
29259         * doc/posix-functions/strftime.texi: Fix description of strftime
29260         module.
29261
29262 2008-08-24  Bruno Haible  <bruno@clisp.org>
29263
29264         * tests/uniwidth/test-uc_width2.c: New file.
29265         * tests/uniwidth/test-uc_width2.sh: New file.
29266         * modules/uniwidth/width-tests (Files): Add the new files.
29267         (TESTS): Add uniwidth/test-uc_width2.sh.
29268         (TESTS_ENVIRONMENT): New variable.
29269         (check_PROGRAMS): Add test-uc_width2.
29270         (test_uc_width2_SOURCES): New variable.
29271
29272         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
29273         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
29274         not 0x00AB.
29275         Reported by Alexander V. Lukyanov <lav@netis.ru>.
29276
29277 2008-08-22  Eric Blake  <ebb9@byu.net>
29278
29279         test-lock, test-tls: mention why a test is skipped
29280         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
29281         skipped.
29282         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
29283
29284         count-one-bits: relax license
29285         * modules/count-one-bits (License): Relicense to LGPLv2+.
29286         Suggested by Ludovic Courtès, approved by Ben Pfaff.
29287
29288 2008-08-22  Andreas Schwab  <schwab@suse.de>
29289
29290         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29291         Remove spurious space in assignment.
29292
29293 2008-08-21  Simon Josefsson  <simon@josefsson.org>
29294
29295         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
29296         Paul Eggert <eggert@CS.UCLA.EDU>.
29297
29298 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
29299
29300         * modules/gettext: Add m4/threadlib.m4.
29301
29302 2008-08-19  Eric Blake  <ebb9@byu.net>
29303
29304         test-c-stack: fix compilation failure on FreeBSD 5.0
29305         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
29306         headers before <sys/resource.h>.
29307         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
29308         the bug.
29309         Reported by Nelson H. F. Beebe.
29310
29311         strverscmp: migrate from "strverscmp.h" to <string.h>
29312         * modules/string (Makefile.am): Add new hooks.
29313         * modules/strverscmp (Files): Remove strverscmp.h.
29314         (Depends-on): Add string.
29315         (configure.ac): Add indicator.
29316         (Include): Mention new header.
29317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
29318         defaults.
29319         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
29320         results.
29321         * lib/strverscmp.h: Delete.
29322         * lib/string.in.h (strverscmp): Provide declaration, when needed.
29323         * tests/test-strverscmp.c (includes): Adjust client.
29324         * lib/check-version.c (includes): Likewise.
29325         * NEWS: Document the change.
29326
29327         strverscmp: add unit test
29328         * modules/strverscmp-tests: New file.
29329         * tests/test-strverscmp.c: Likewise.
29330
29331 2008-08-19  Simon Josefsson  <simon@josefsson.org>
29332
29333         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
29334         regarding Windows crypto stuff, from Mono.
29335
29336 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
29337
29338         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
29339         if present, for intel RND.  Return error on failures.
29340
29341 2008-08-18  Ben Pfaff  <blp@gnu.org>
29342
29343         gitlog-to-changelog: give better diagnostic for failed pipe-open
29344         * build-aux/gitlog-to-changelog: Improve error message: suggest
29345         that the version of Git may be too old.
29346
29347 2008-08-18  Simon Josefsson  <simon@josefsson.org>
29348
29349         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
29350         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
29351
29352 2008-08-18  Bruno Haible  <bruno@clisp.org>
29353
29354         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
29355         pthread_in_use().
29356
29357 2008-08-18  Bruno Haible  <bruno@clisp.org>
29358
29359         * lib/glthread/threadlib.c: Include <pthread.h>.
29360
29361 2008-08-18  Bruno Haible  <bruno@clisp.org>
29362
29363         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
29364         glthread_recursive_lock_* macros.
29365         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
29366         Fix syntax error.
29367
29368 2008-08-18  Bruno Haible  <bruno@clisp.org>
29369
29370         * lib/glthread/thread.c: Avoid forcing a context switch right after
29371         thread creation.
29372
29373 2008-08-17  Bruno Haible  <bruno@clisp.org>
29374
29375         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
29376         * lib/glthread/thread.h: Provide Win32 specific implementation.
29377         * modules/thread (Files): Add lib/glthread/thread.c.
29378         (Depends-on): Add lock.
29379         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
29380
29381 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29382
29383         New module 'yield'.
29384         * modules/yield: New file.
29385         * lib/glthread/yield.h: New file.
29386         * m4/yield.m4: New file.
29387         * MODULES.html.sh (Multithreading): Add yield.
29388
29389 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29390
29391         New module 'thread'.
29392         * modules/thread: New file.
29393         * lib/glthread/thread.h: New file.
29394         * m4/thread.m4: New file.
29395         * MODULES.html.sh (Multithreading): Add thread.
29396
29397 2008-08-17  Bruno Haible  <bruno@clisp.org>
29398
29399         * lib/glthread/lock.h: Include <stdlib.h> always.
29400         * lib/glthread/tls.h: Likewise.
29401         * lib/glthread/cond.h: Likewise.
29402
29403 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29404
29405         New module 'cond'.
29406         * modules/cond: New file.
29407         * lib/glthread/cond.h: New file.
29408         * lib/glthread/cond.c: New file.
29409         * m4/cond.m4: New file.
29410         * MODULES.html.sh (Multithreading): Add cond.
29411
29412 2008-08-16  Eric Blake  <ebb9@byu.net>
29413
29414         c-stack: fix regression on Irix 5.3 from 2008-06-21
29415         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
29416         sa_sigaction...
29417         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
29418         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
29419         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
29420         * modules/signal (Makefile.am): Use the value.
29421         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
29422         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
29423         * doc/posix-headers/signal.texi (signal.h): Document this
29424         portability issue.
29425         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
29426         Reported by Tom G. Christensen.
29427
29428 2008-08-17  Bruno Haible  <bruno@clisp.org>
29429
29430         New module 'threadlib'.
29431         * modules/threadlib: New file.
29432         * lib/glthread/threadlib.c: New file, extracted from
29433         lib/glthread/lock.c.
29434         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
29435         functions.
29436         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
29437         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
29438         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
29439         macros.
29440         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
29441         (gl_DISABLE_THREADS): Remove macro.
29442         * modules/lock (Files): Remove build-aux/config.rpath.
29443         (Depends-on): Remove havelib. Add threadlib.
29444         (configure.ac-early): Remove section.
29445         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
29446         * modules/tls (Depends-on): Remove lock. Add threadlib.
29447         (Link): New section, copied from threadlib.
29448         * MODULES.html.sh (Multithreading): Add threadlib.
29449
29450 2008-08-14  Bruno Haible  <bruno@clisp.org>
29451
29452         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
29453         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
29454         glthread_rwlock_unlock, glthread_rwlock_destroy,
29455         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
29456         glthread_recursive_lock_destroy): Define as macros always.
29457         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
29458         glthread_lock_lock.
29459         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
29460         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
29461         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
29462         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
29463         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
29464         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
29465         (glthread_recursive_lock_lock_func): Renamed from
29466         glthread_recursive_lock_lock.
29467         (glthread_recursive_lock_unlock_func): Renamed from
29468         glthread_recursive_lock_unlock.
29469         (glthread_recursive_lock_destroy_func): Renamed from
29470         glthread_recursive_lock_destroy.
29471
29472 2008-08-14  Bruno Haible  <bruno@clisp.org>
29473
29474         * lib/glthread/lock.h: Renamed from lib/lock.h.
29475         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
29476         * lib/glthread/tls.h: Renamed from lib/tls.h.
29477         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
29478         * lib/fstrcmp.c: Update includes.
29479         * lib/strsignal.c: Update includes.
29480         * modules/lock (Files, Makefile.am): Update.
29481         (Include): Change to "glthread/lock.h".
29482         * modules/tls (Files, Makefile.am): Update.
29483         (Include): Change to "glthread/tls.h".
29484         * tests/test-lock.c: Update includes.
29485         * tests/test-tls.c: Update includes.
29486         * NEWS: Mention the renamed header files.
29487
29488 2008-08-11  Jim Meyering  <meyering@redhat.com>
29489
29490         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
29491
29492 2008-08-11  Eric Blake  <ebb9@byu.net>
29493
29494         test-c-stack: avoid C99-ism
29495         * tests/test-c-stack.c (main): Fix whitespace, move declaration
29496         before statement.
29497         Reported by Alain Guibert.
29498
29499 2008-08-10  Jim Meyering  <meyering@redhat.com>
29500
29501         ensure that return value of uinttostr et al are not ignored
29502         * lib/inttostr.h (__GNUC_PREREQ): Define.
29503         (__attribute_warn_unused_result__): Define.
29504         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
29505
29506 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
29507
29508         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
29509         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
29510
29511 2008-08-07  Jim Meyering  <meyering@redhat.com>
29512
29513         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
29514
29515         * modules/mkstemp (License): Relicense under LGPLv2+.
29516         * modules/tempname (License): Likewise.
29517
29518 2008-08-06  Bruno Haible  <bruno@clisp.org>
29519
29520         * lib/poll.c (poll): Further micro-optimization.
29521
29522 2008-08-06  Jim Meyering  <meyering@redhat.com>
29523
29524         inet_pton.c: use locale-independent tolower
29525         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
29526         (inet_pton6): Use c_tolower rather than tolower.
29527         * modules/inet_pton (Depends-on): Add c-ctype.
29528
29529 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
29530
29531         * lib/poll.c (poll): Avoid division when timeout is 0, cache
29532         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
29533
29534 2008-08-06  Jim Meyering  <meyering@redhat.com>
29535
29536         * modules/inet_pton (License): Relicense under LGPLv2+.
29537
29538 2008-08-03  Bruno Haible  <bruno@clisp.org>
29539
29540         Additional non-aborting API for lock and tls.
29541         * lib/lock.h: Include <errno.h>.
29542         (glthread_lock_init): New macro/function.
29543         (gl_lock_init): Define as wrapper around glthread_lock_init.
29544         (glthread_lock_lock): New macro/function.
29545         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
29546         (glthread_lock_unlock): New macro/function.
29547         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
29548         (glthread_lock_destroy): New macro/function.
29549         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
29550         (glthread_rwlock_init): New macro/function.
29551         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
29552         (glthread_rwlock_rdlock): New macro/function.
29553         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
29554         (glthread_rwlock_wrlock): New macro/function.
29555         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
29556         (glthread_rwlock_unlock): New macro/function.
29557         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
29558         (glthread_rwlock_destroy): New macro/function.
29559         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
29560         (glthread_recursive_lock_init): New macro/function.
29561         (gl_recursive_lock_init): Define as wrapper around
29562         glthread_recursive_lock_init.
29563         (glthread_recursive_lock_lock): New macro/function.
29564         (gl_recursive_lock_lock): Define as wrapper around
29565         glthread_recursive_lock_lock.
29566         (glthread_recursive_lock_unlock): New macro/function.
29567         (gl_recursive_lock_unlock): Define as wrapper around
29568         glthread_recursive_lock_unlock.
29569         (glthread_recursive_lock_destroy): New macro/function.
29570         (gl_recursive_lock_destroy): Define as wrapper around
29571         glthread_recursive_lock_destroy.
29572         (glthread_once): New macro/function.
29573         (gl_once): Define as wrapper around glthread_once.
29574         Update function declarations.
29575         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
29576         glthread_rwlock_init. Return error code.
29577         (glthread_rwlock_rdlock_multithreaded): Renamed from
29578         glthread_rwlock_rdlock. Return error code.
29579         (glthread_rwlock_wrlock_multithreaded): Renamed from
29580         glthread_rwlock_wrlock. Return error code.
29581         (glthread_rwlock_unlock_multithreaded): Renamed from
29582         glthread_rwlock_unlock. Return error code.
29583         (glthread_rwlock_destroy_multithreaded): Renamed from
29584         glthread_rwlock_destroy. Return error code.
29585         (glthread_recursive_lock_init_multithreaded): Renamed from
29586         glthread_recursive_lock_init. Return error code.
29587         (glthread_recursive_lock_lock_multithreaded): Renamed from
29588         glthread_recursive_lock_lock. Return error code.
29589         (glthread_recursive_lock_unlock_multithreaded): Renamed from
29590         glthread_recursive_lock_unlock. Return error code.
29591         (glthread_recursive_lock_destroy_multithreaded): Renamed from
29592         glthread_recursive_lock_destroy. Return error code.
29593         (glthread_once_call): Make static.
29594         (glthread_once_multithreaded): Renamed from glthread_once.
29595         * lib/tls.h: Include <errno.h>.
29596         (glthread_tls_key_init): New macro/function.
29597         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
29598         (glthread_tls_set): New macro/function.
29599         (gl_tls_set): Define as wrapper around glthread_tls_set.
29600         (glthread_tls_key_destroy): New macro/function.
29601         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
29602         Update function declarations.
29603         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
29604         glthread_tls_get.
29605         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
29606
29607 2008-08-04  Eric Blake  <ebb9@byu.net>
29608
29609         gnumakefile: use space, not TAB, outside of targets
29610         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
29611
29612 2008-08-02  Jim Meyering  <meyering@redhat.com>
29613
29614         getdate.y: avoid locale-dependent date parsing failure
29615         In Turkish locales, getdate would fail to recognize keywords
29616         containing a lowercase "i".  The solution is not to rely on
29617         locale-sensitive case-conversion.
29618         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
29619         (lookup_word): Use c_toupper in place of toupper.
29620         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
29621         Reported by Vefa Bicakci <bicave@superonline.com> in
29622         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
29623         * modules/getdate (Depends-on): Add c-ctype.
29624
29625 2008-08-02  Bruno Haible  <bruno@clisp.org>
29626
29627         * gnulib-tool (func_import): When updating or creating a .gitignore
29628         file, prepend each added line with a slash, and ignore leading slashes
29629         from the existing lines.
29630         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29631
29632 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29633
29634         Portability fix for GNU make 3.79.1.
29635         * top/GNUmakefile: Avoid 'else COND', which older GNU make
29636         versions do not understand.
29637
29638 2008-08-01  Bruno Haible  <bruno@clisp.org>
29639
29640         Work around bug of HP-UX 10.20 cc with -0.0 literal.
29641         * tests/test-isnanf.h (zero): New variable.
29642         (main): Avoid literal -0.0f.
29643         * tests/test-isnand.h (zero): New variable.
29644         (main): Avoid literal -0.0.
29645         * tests/test-isnanl.h (zero): New variable.
29646         (main): Avoid literal -0.0L.
29647         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
29648         (test_float, test_double, test_long_double): Avoid literals -0.0f,
29649         -0.0, -0.0L.
29650         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
29651         (test_signbitd): Avoid literal -0.0.
29652         (test_signbitl): Avoid literal -0.0L.
29653         * tests/test-ceilf1.c (zero): New variable.
29654         (main): Avoid literal -0.0f.
29655         * tests/test-ceill.c (zero): New variable.
29656         (main): Avoid literal -0.0L.
29657         * tests/test-floorf1.c (zero): New variable.
29658         (main): Avoid literal -0.0f.
29659         * tests/test-floorl.c (zero): New variable.
29660         (main): Avoid literal -0.0L.
29661         * tests/test-roundf1.c (zero): New variable.
29662         (main): Avoid literal -0.0f.
29663         * tests/test-round1.c (zero): New variable.
29664         (main): Avoid literal -0.0.
29665         * tests/test-roundl.c (zero): New variable.
29666         (main): Avoid literal -0.0L.
29667         * tests/test-truncf1.c (zero): New variable.
29668         (main): Avoid literal -0.0f.
29669         * tests/test-trunc1.c (zero): New variable.
29670         (main): Avoid literal -0.0.
29671         * tests/test-truncl.c (zero): New variable.
29672         (main): Avoid literal -0.0L.
29673         * tests/test-frexp.c (zero): New variable.
29674         (main): Avoid literal -0.0.
29675         * tests/test-frexpl.c (zero): New variable.
29676         (main): Avoid literal -0.0L.
29677         * tests/test-ldexpl.c (zero): New variable.
29678         (main): Avoid literal -0.0L.
29679         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29680         (zerod, zerol): New variables.
29681         (test_function): Avoid literals -0.0, -0.0L.
29682         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
29683         (zerod, zerol): New variables.
29684         (test_function): Avoid literals -0.0, -0.0L.
29685         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29686         (zerod, zerol): New variables.
29687         (test_function): Avoid literals -0.0, -0.0L.
29688         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
29689         (zerod, zerol): New variables.
29690         (test_function): Avoid literals -0.0, -0.0L.
29691         * tests/test-strtod.c (zero): New variable.
29692         (main): Avoid literal -0.0.
29693         Reported by Jonathan C. Patschke <jp@centtech.com>.
29694
29695 2008-07-31  Jim Meyering  <meyering@redhat.com>
29696
29697         sha256.h: correct definition of SHA224_DIGEST_SIZE
29698         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
29699         Reported by Paulie Pena IV <paulie4@gmail.com>.
29700         Define as 224 / 8, rather than as a literal.
29701         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
29702         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
29703         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
29704
29705 2008-07-31  Bruno Haible  <bruno@clisp.org>
29706
29707         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
29708         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
29709         Reported by Jonathan Patschke <jp@centtech.com>.
29710
29711 2008-07-31  Bruno Haible  <bruno@clisp.org>
29712
29713         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
29714         Reported by Paolo Bonzini <bonzini@gnu.org>.
29715
29716 2008-07-30  Eric Blake  <ebb9@byu.net>
29717
29718         test-strtod: allow compilation without -lm
29719         * tests/test-strtod.c (main): Avoid link dependence on fabs.
29720         Reported by Dennis Clarke <blastwave@gmail.com>.
29721
29722 2008-07-28  Jim Meyering  <meyering@redhat.com>
29723
29724         bootstrap: work also when there are no .po files in po/
29725         * build-aux/bootstrap (update_po_files): Complete the change
29726         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
29727
29728 2008-07-27  Jim Meyering  <meyering@redhat.com>
29729
29730         * users.txt: Add zile.
29731
29732 2008-07-26  Ben Pfaff  <blp@gnu.org>
29733
29734         Add missing dependencies on new m4/exponent[fdl].m4 files.
29735         * modules/isnanf-nolibm: Add m4/exponentf.m4.
29736         * modules/isnand-nolibm: Add m4/exponentd.m4.
29737         * modules/isnanl-nolibm: Add m4/exponentl.m4.
29738         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
29739         m4/isnan[fdl].m4, because the macros actually used moved.
29740         Reported by Jim Meyering.
29741
29742 2008-07-14  Ben Pfaff  <blp@gnu.org>
29743
29744         Add isinf module.
29745         * lib/isinf.c: New file.
29746         * lib/math.in.h: Define isinf macro if we have decided to replace
29747         it.
29748         * m4/isinf.m4: New file.
29749         * m4/math_h.m4: Initialize and substitute variables for isinf
29750         module.
29751         * modules/isinf: New file.
29752         * modules/isinf-tests: New file.
29753         * modules/math: Add substitutions for new module.
29754         * tests/test-isinf.c: New file.
29755         * doc/posix-functions/isinf.texi: Mention new module.
29756         * MODULES.html.sh: Mention new module.
29757
29758 2008-07-14  Ben Pfaff  <blp@gnu.org>
29759
29760         Factor out some macros for use by additional modules.
29761         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
29762         exponentf.m4.
29763         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
29764         exponentd.m4.
29765         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
29766         file exponentl.m4.
29767         * m4/exponentf.m4: New file.
29768         * m4/exponentd.m4: New file.
29769         * m4/exponentl.m4: New file.
29770         * modules/isnanf: Use new file m4/exponentf.m4.
29771         * modules/isnand: Use new file m4/exponentd.m4.
29772         * modules/isnanl: Use new file m4/exponentl.m4.
29773
29774 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
29775
29776         mktime.c: normalize tp->tm_isdst value to -1/0/1.
29777         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
29778         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
29779         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
29780
29781         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
29782         readlink on platforms without PATH_MAX.
29783
29784 2008-07-21  Eric Blake  <ebb9@byu.net>
29785
29786         Warn, not fail, on stale version.
29787         * top/GNUmakefile (_curr-ver): Tone down previous patch.
29788
29789         Don't allow installation with stale devel version number.
29790         * top/GNUmakefile (_is-install-target): New macro.
29791         (_curr-ver): Forbid installation with stale version number.
29792
29793 2008-07-20  Bruno Haible  <bruno@clisp.org>
29794
29795         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
29796         TESTS_ENVIRONMENT.
29797         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
29798
29799 2008-07-20  Bruno Haible  <bruno@clisp.org>
29800
29801         * lib/c-stack.h (c_stack_action): Add documentation.
29802         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
29803
29804 2008-07-20  Bruno Haible  <bruno@clisp.org>
29805
29806         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
29807         * modules/readlink (License): Likewise.
29808
29809 2008-07-17  Eric Blake  <ebb9@byu.net>
29810
29811         * modules/c-stack (Link): Fix typo.
29812
29813         Make c-stack use libsigsegv, when available.
29814         * modules/c-stack (Depends-on): Add libsigsegv.
29815         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
29816         needed.
29817         * lib/c-stack.c (SIGSTKSZ): Define fallback.
29818         (segv_handler, overflow_handler, c_stack_action)
29819         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
29820         implementation when libsigsegv is available, but only when using
29821         the library is necessary.
29822         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
29823         comment, explaining why XSI check fails on Linux.
29824         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
29825         * tests/test-c-stack2.sh: Tweak skip message.
29826         * NEWS: Document new link-time requirements.
29827
29828 2008-07-16  Eric Blake  <ebb9@byu.net>
29829
29830         c-stack: Expose false positives when not using libsigsegv.
29831         * modules/c-stack-tests (Files): Expand test.
29832         * tests/test-c-stack.c (main): Add means to conditionally trigger
29833         non-overflow SIGSEGV.
29834         * tests/test-c-stack2.sh: New file.
29835
29836 2008-07-14  Bruno Haible  <bruno@clisp.org>
29837
29838         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
29839         Reported by Eric Blake.
29840
29841 2008-07-14  Sam Steingold  <sds@gnu.org>
29842             Bruno Haible  <bruno@clisp.org>
29843
29844         New module libsigsegv.
29845         * modules/libsigsegv: New file.
29846         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
29847         modifications.
29848         * MODULES.html.sh (Signal handling): New section.
29849
29850 2008-07-14  Bruno Haible  <bruno@clisp.org>
29851
29852         * modules/unictype/ctype-* (Description): Add the word "function".
29853         Improves the resulting doc in MODULES.html.
29854
29855 2008-07-12  Ben Pfaff  <blp@gnu.org>
29856
29857         Add longlong module.
29858         * modules/longlong: New file.
29859
29860 2008-07-12  Bruno Haible  <bruno@clisp.org>
29861
29862         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
29863         to empty.
29864
29865 2008-07-10  Ben Pfaff  <blp@gnu.org>
29866
29867         Add isnan module.
29868         * doc/posix-functions/isnan.texi: Mention new module.
29869         * lib/math.in.h: Define isnan macro if we have decided to replace
29870         it.
29871         * m4/isnan.m4: New file.
29872         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
29873         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
29874         also.
29875         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
29876         redundancy.
29877         * m4/math_h.m4: Initialize and substitute variables for isnan
29878         module.
29879         * modules/isnan: New file.
29880         * modules/isnan-tests: New file.
29881         * modules/math: Add substitutions for new module.
29882         * tests/test-isnan.c: New file.
29883         * MODULES.html.sh: Mention new module.
29884
29885 2008-07-10  Ben Pfaff  <blp@gnu.org>
29886
29887         Add isnanf module.
29888         * lib/isnanf.m4: New file.
29889         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
29890         (gl_HAVE_ISNANF_IN_LIBM): New macro.
29891         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
29892         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
29893         * modules/isnanf: New file.
29894         * modules/isnanf-tests: New file.
29895         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
29896         files.
29897         * tests/test-isnanf-nolibm.c: factored most of its contents into
29898         new file tests/test-isnanf.h.
29899         * tests/test-isnanf.h: New file.
29900         * tests/test-isnanf.c: New file.
29901         * MODULES.html.sh: Mention new module.
29902         * doc/glibc-functions/isnanf.texi: Mention new module.
29903
29904 2008-07-10  Ben Pfaff  <blp@gnu.org>
29905
29906         Add isnand module.
29907         * lib/isnand.h: New file.
29908         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
29909         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
29910         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
29911         functionality also.
29912         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
29913         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
29914         (gl_HAVE_ISNAND_IN_LIBM): New macro.
29915         * modules/isnand: New file.
29916         * modules/isnand-tests: New file.
29917         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
29918         files.
29919         * tests/test-isnand-nolibm.c: factored most of its contents into
29920         new file tests/test-isnand.h.
29921         * tests/test-isnand.h: New file.
29922         * tests/test-isnand.c: New file.
29923         * MODULES.html.sh: Mention new module.
29924
29925 2008-07-10  Ben Pfaff  <blp@gnu.org>
29926
29927         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
29928         * lib/isnand.h: Rename lib/isnand-nolibm.h.
29929         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
29930         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
29931         * modules/isnanf-nolibm: Update references to renamed files.
29932         * modules/isnand-nolibm: Likewise.
29933         * modules/isnanf-nolibm-tests: Likewise.
29934         * modules/isnand-nolibm-tests: Likewise.
29935         * lib/frexp.c: Likewise.
29936         * lib/isfinite.c: Likewise.
29937         * lib/signbitd.c: Likewise.
29938         * lib/signbitf.c: Likewise.
29939         * lib/vasnprintf.c: Likewise.
29940         * tests/test-ceilf1.c: Likewise.
29941         * tests/test-ceilf2.c: Likewise.
29942         * tests/test-floorf1.c: Likewise.
29943         * tests/test-floorf2.c: Likewise.
29944         * tests/test-frexp.c: Likewise.
29945         * tests/test-round1.c: Likewise.
29946         * tests/test-round2.c: Likewise.
29947         * tests/test-roundf1.c: Likewise.
29948         * tests/test-strtod.c: Likewise.
29949         * tests/test-trunc1.c: Likewise.
29950         * tests/test-trunc2.c: Likewise.
29951         * tests/test-truncf1.c: Likewise.
29952         * tests/test-truncf2.c: Likewise.
29953         * NEWS: Mention the renamed header files.
29954
29955 2008-07-11  Jim Meyering  <meyering@redhat.com>
29956
29957         vc-list-files: make the last-resort awk code more portable
29958         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
29959         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
29960         does not support it.
29961
29962 2008-07-10  Eric Blake  <ebb9@byu.net>
29963
29964         Work with tar's bootstrap.
29965         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
29966         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
29967         an m4 comment.
29968
29969 2008-07-09  Jim Meyering  <meyering@redhat.com>
29970
29971         posix-shell.m4: fix typo that made this test malfunction
29972         * m4/posix-shell.m4: Remove capitalization in variable name.
29973
29974 2008-07-08  Bruno Haible  <bruno@clisp.org>
29975
29976         * m4/onceonly.m4: Update comments.
29977         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29978
29979 2008-07-04  Jim Meyering  <meyering@redhat.com>
29980
29981         * users.txt: Add vc-dwim.
29982         (bison, coreutils): Use the gitweb URL.
29983
29984 2008-07-03  Jim Meyering  <meyering@redhat.com>
29985
29986         * users.txt: Add libffcall.  From Sam Steingold.
29987
29988 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
29989
29990         getdate.y: do not ignore TZ with relative day, month or year offset
29991         * lib/getdate.y (get_date): Move the tz-handling block to follow the
29992         relative-date-handling, since otherwise, the latter would clobber the
29993         sole output (an updated Start value) of the tz-handling block.
29994         * tests/test-getdate.c: Tests for the fix
29995
29996 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29997
29998         Recognize 'foo_LIBRARIES += libgnu.a'.
29999         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
30000         makefile snippet has already specified an installation location,
30001         also using '+='.
30002
30003 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
30004
30005         getdate.y: factor out common actions
30006         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
30007         Use them in place of open-coded actions.
30008
30009 2008-07-01  Simon Josefsson  <simon@josefsson.org>
30010
30011         Add self-test for getdate module.
30012         * modules/getdate-tests: New file.
30013         * tests/test-getdate.c: New file.
30014
30015 2008-06-29  Bruno Haible  <bruno@clisp.org>
30016
30017         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
30018         .gitignore.
30019         Reported by Sylvain Beucler <beuc@beuc.net>.
30020
30021 2008-06-29  Bruno Haible  <bruno@clisp.org>
30022
30023         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
30024         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
30025
30026 2008-06-29  Bruno Haible  <bruno@clisp.org>
30027
30028         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
30029         EXTRA_DIST.
30030         Reported by Sylvain Beucler <beuc@beuc.net>.
30031
30032 2008-06-26  Jim Meyering  <meyering@redhat.com>
30033
30034         make several modules depend on the "open" module
30035         This provides slightly increased consistency when opening-for-write
30036         the name of a non-directory spelled with a trailing slash.
30037         * modules/chdir-safer: Likewise.
30038         * modules/chown: Likewise.
30039         * modules/clean-temp: Likewise.
30040         * modules/copy-file: Likewise.
30041         * modules/fchdir: Likewise.
30042         * modules/fcntl-safer: Likewise.
30043         * modules/pipe: Likewise.
30044         * modules/utime: Likewise.
30045         Prompted by Eric Blake and Bruno Haible.
30046
30047 2008-06-24  Andreas Schwab  <schwab@suse.de>
30048
30049         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
30050         literals can be used as initializers for global variables.
30051
30052 2008-06-23  Eric Blake  <ebb9@byu.net>
30053
30054         Make gnulib-cache.m4 easier to diff.
30055         * gnulib-tool (func_import): Allow newlines when reading cached
30056         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
30057
30058 2008-06-23  Bruno Haible  <bruno@clisp.org>
30059
30060         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
30061         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
30062         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
30063         m4/signalblocking.m4.
30064         (gl_PREREQ_SIGACTION): Don't invoke it.
30065         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
30066         gl_PREREQ_SIG_HANDLER_H.
30067         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30068         Don't check for sigaction here.
30069
30070 2008-06-23  Bruno Haible  <bruno@clisp.org>
30071
30072         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
30073         (install_handlers): Don't set the SA_RESETHAND flag.
30074
30075 2008-06-23  Bruno Haible  <bruno@clisp.org>
30076
30077         * m4/sigaction.m4: Comment fixes.
30078         * lib/signal.in.h: Likewise.
30079
30080 2008-06-23  Eric Blake  <ebb9@byu.net>
30081
30082         Fix typo.
30083         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
30084
30085         Avoid SA_ namespace.
30086         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
30087         Reported by Ralf Wildenhues.
30088
30089         Avoid test failure due to SA_RESTORER.
30090         * tests/test-sigaction.c (SA_MASK): New macro.
30091         (main): Avoid failing due to extension flags being set.
30092         Reported by Jim Meyering.
30093
30094         Revert use of sig-handler.h in sigprocmask.c.
30095         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
30096         it requires the existence of struct sigaction.
30097         * lib/sigprocmask.c (handler_t): Restore typedef.
30098         (rpl_signal, old_handlers): Use local type.
30099
30100 2008-06-22  Bruno Haible  <bruno@clisp.org>
30101
30102         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
30103         conditionally.
30104         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30105
30106 2008-06-22  Bruno Haible  <bruno@clisp.org>
30107
30108         * doc/posix-functions/siginterrupt.texi: Move note.
30109
30110         * lib/signal.in.h (SA_RESTART): New macro.
30111         * lib/sigaction.c: Update comment.
30112
30113         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
30114
30115         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
30116         (gl_PREREQ_SIGPROCMASK): Invoke it.
30117         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
30118
30119         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
30120
30121         * lib/sigprocmask.c: Update a comment.
30122
30123 2008-06-21  Eric Blake  <ebb9@byu.net>
30124
30125         Use sigaction module rather than signal().
30126         * modules/c-stack (Depends-on): Add sigaction.
30127         * modules/fatal-signal (Depends-on): Likewise.
30128         * modules/nanosleep (Depends-on): Likewise.
30129         * modules/sigprocmask (Files): Add sig-handler.h.
30130         * modules/sigaction (Files): Likewise.
30131         * lib/sig-handler.h (get_handler): New file, suggested by Paul
30132         Eggert.
30133         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
30134         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
30135         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
30136         (init_fatal_signals): Likewise.
30137         * lib/nanosleep.c (rpl_nanosleep): Likewise.
30138         (siginterrupt): Delete fallback.
30139         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
30140         instead.
30141         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
30142         siginterrupt.
30143
30144         New module sigaction, for mingw.
30145         * modules/sigaction: New module...
30146         * modules/sigaction-tests: ...and its test.
30147         * m4/sigaction.m4: New file.
30148         * lib/sigaction.c: Likewise.
30149         * tests/test-sigaction.c: Likewise.
30150         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
30151         * modules/signal (Makefile.am): Likewise.
30152         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
30153         needed.
30154         * doc/posix-headers/signal.texi (signal.h): Mention provided
30155         types.
30156         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
30157         that sigaction is preferable.
30158         * doc/posix-functions/sigaction.texi (sigaction): Mention new
30159         module.
30160         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30161         sigaction.
30162
30163         Improve robustness of sigprocmask by overriding signal.
30164         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
30165         is in use.
30166         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
30167         (SIGKILL, SIGSTOP): Provide fallbacks.
30168         (rpl_signal): Implement.
30169         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
30170         signal can be called inside handlers.
30171
30172         Fix nanosleep module on mingw.
30173         * modules/nanosleep (Depends-on): Add sys_select.
30174         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
30175
30176         Fix licensing of sigprocmask.
30177         * modules/raise (License): Relicense as LGPL.
30178
30179 2008-06-21  Bruno Haible  <bruno@clisp.org>
30180
30181         * lib/propername.c (proper_name_utf8): Don't use the transliterated
30182         result if it contains question marks.
30183         Reported by Michael Geng <linux@michaelgeng.de>.
30184
30185 2008-06-19  Bruno Haible  <bruno@clisp.org>
30186
30187         Fix CVS-ism.
30188         * doc/gnulib.texi: Include updated-stamp.texi.
30189         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
30190         (updated-stamp.texi): New rule.
30191         (gnulib.info): Depend on it.
30192         * doc/.gitignore: Add updated-stamp.texi.
30193         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
30194
30195 2008-06-19  Bruno Haible  <bruno@clisp.org>
30196
30197         * doc/Makefile (gnulib.info): Update and simplify dependencies.
30198         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30199
30200 2008-06-19  Eric Blake  <ebb9@byu.net>
30201
30202         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
30203         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
30204         Reported by Stepan Kasal.
30205
30206 2008-06-18  Bruno Haible  <bruno@clisp.org>
30207
30208         * lib/fatal-signal.c (init_fatal_signals): Add comment.
30209         Reported by Eric Blake.
30210
30211 2008-06-18  Eric Blake  <ebb9@byu.net>
30212
30213         Work around cygwin 1.5.25 strsignal bug.
30214         * tests/test-strsignal.c: Allow for const char *.
30215         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
30216
30217 2008-06-18  Simon Josefsson  <simon@josefsson.org>
30218
30219         * users.txt: Update URL to article and add author/date
30220         information.
30221
30222 2008-06-17  Bruno Haible  <bruno@clisp.org>
30223
30224         New macro gl_DISABLE_THREADS.
30225         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
30226         if the user did not pass --enable-threads or --disable-threads option.
30227         (gl_DISABLE_THREADS): New macro.
30228         Reported by Eric Blake <ebb9@byu.net>.
30229
30230 2008-06-17  Bruno Haible  <bruno@clisp.org>
30231
30232         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
30233         when the macro ignores it.
30234         Based on a patch by Eric Blake <ebb9@byu.net>.
30235
30236 2008-06-17  Bruno Haible  <bruno@clisp.org>
30237
30238         * modules/tls (License): Change to LGPLv2+.
30239         Reported by Eric Blake.
30240
30241 2008-06-17  Eric Blake  <ebb9@byu.net>
30242
30243         Simplify c-stack prerequisites.
30244         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
30245         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
30246         no longer requires <ucontext.h> to exist.  Optimize setrlimit
30247         check.
30248         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
30249         <sys/resource.h>.
30250
30251         Move c-stack test into testsuite.
30252         * modules/c-stack-tests: New file.
30253         * lib/c-stack.c [DEBUG]: Move test program...
30254         * tests/test-c-stack.c: ...into this new file.  Skip rather than
30255         fail test if sigaltstack is lacking.
30256         * tests/test-c-stack.sh: New driver file.
30257
30258 2008-06-16  Eric Blake  <ebb9@byu.net>
30259
30260         Use raise module consistently.
30261         * modules/fatal-signal (Depends-on): Add raise.
30262         * modules/sigprocmask (Depends-on): Likewise.
30263         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
30264         * lib/sigprocmask.c (sigprocmask): Likewise.
30265         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30266         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
30267
30268         Fix compliance bug in sigpending.
30269         * lib/sigprocmask.c (sigpending): Return pending array via
30270         parameter, not return value.
30271
30272 2008-06-14  Eric Blake  <ebb9@byu.net>
30273
30274         Improve obstack-printf test code.
30275         * tests/test-obstack-printf.c (test_function): Fix comment, and
30276         simplify usage of obstack_* in macros.  Add a test for coverage.
30277         Reported by Bruno Haible.
30278
30279 2008-06-14  Bruno Haible  <bruno@clisp.org>
30280
30281         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
30282         array size as a constant, not as a const variable.
30283         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
30284         AC_USE_SYSTEM_EXTENSIONS.
30285         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
30286         Test whether the obstack_printf function actually exists.
30287         * modules/obstack-printf (Depends-on): Add extensions.
30288         (Include): Remove obstack.h.
30289         * modules/obstack-printf-posix (Depends-on): Add extensions.
30290         (Include): Remove obstack.h.
30291
30292 2008-06-13  Eric Blake  <ebb9@byu.net>
30293
30294         Add obstack-printf and obstack-printf-posix modules.
30295         * modules/obstack-printf: New file.
30296         * modules/obstack-printf-posix: Likewise.
30297         * MODULES.html.sh (Misc): Mention them.
30298         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
30299         Likewise.
30300         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
30301         Likewise.
30302         * modules/stdio (Makefile.am): Accomodate new modules.
30303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30304         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
30305         Declare.
30306         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
30307         functions.
30308         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
30309         (gl_REPLACE_OBSTACK_PRINTF): New macros
30310         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
30311         * tests/test-obstack-printf.c: New file.
30312         * modules/obstack-printf-tests: Likewise.
30313         * modules/obstack-printf-posix-tests: Likewise.
30314
30315 2008-06-11  Bruno Haible  <bruno@clisp.org>
30316
30317         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
30318         * lib/open.c: Include errno.h.
30319         (open): Fail when attempting to write to a file that has a trailing
30320         slash.
30321         * tests/test-open.c (main): Test against trailing slash bug.
30322         * doc/posix-functions/open.texi: Mention the trailing slash bug.
30323
30324 2008-06-10  Bruno Haible  <bruno@clisp.org>
30325
30326         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
30327         for $? to work inside the trap command, with various /bin/sh-s.
30328         * tests/test-vc-list-files-cvs.sh: Likewise.
30329
30330 2008-06-10  Bruno Haible  <bruno@clisp.org>
30331
30332         * lib/acl-internal.h: Don't include gettext.h here.
30333         * lib/set-mode-acl.c: Include gettext.h here.
30334         * lib/copy-acl.c: Likewise.
30335
30336 2008-06-10  Bruno Haible  <bruno@clisp.org>
30337
30338         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
30339         * lib/wait-process.c (wait_subprocess): Likewise.
30340         * lib/execute.h (execute): Add termsigp argument.
30341         * lib/execute.c (execute): Likewise.
30342         * lib/csharpcomp.c (compile_csharp_using_pnet,
30343         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
30344         * lib/csharpexec.c (execute_csharp_using_pnet,
30345         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
30346         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
30347         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
30348         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
30349         is_jikes_present): Update.
30350         * lib/javaexec.c (execute_java_class): Update.
30351         * lib/javaversion.c (execute_and_read_line): Update.
30352         * NEWS: Document the changes.
30353         Reported by Eric Blake.
30354
30355 2008-06-10  Eric Blake  <ebb9@byu.net>
30356
30357         Add missing include.
30358         * tests/test-strstr.c (includes): Add <signal.h>.
30359         * tests/test-strcasestr.c (includes): Likewise.
30360         * tests/test-memmem.c (includes): Likewise.
30361
30362 2008-06-10  Bruno Haible  <bruno@clisp.org>
30363
30364         * lib/wait-process.c (wait_subprocess): Add an assertion.
30365
30366 2008-06-10  Bruno Haible  <bruno@clisp.org>
30367
30368         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
30369
30370 2008-06-10  Bruno Haible  <bruno@clisp.org>
30371
30372         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
30373         using alarm().
30374         * tests/test-strcasestr.c (main): Likewise.
30375         * tests/test-strstr.c (main): Likewise.
30376
30377 2008-06-09  Bruno Haible  <bruno@clisp.org>
30378
30379         Work around the Solaris 10 ACE ACLs ABI change.
30380         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
30381         declare if ACL_NO_TRIVIAL is present.
30382         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
30383         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
30384         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
30385         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
30386         define if ACL_NO_TRIVIAL is present.
30387         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
30388         and use the current ABI.
30389         (file_has_acl): Use same #if condition as elsewhere.
30390         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
30391         in use, and use the current ABI.
30392         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
30393         Reported by Jim Meyering.
30394
30395 2008-06-09  Eric Blake  <ebb9@byu.net>
30396
30397         Work around environments that (stupidly) ignore SIGALRM.
30398         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
30399         before using alarm().
30400         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30401         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30402         Reported by Ian Beckwith <ianb@erislabs.net>.
30403
30404         Produce autobuild blurb earlier in log.
30405         * modules/autobuild (configure.ac-early): Move AB_INIT here.
30406
30407 2008-06-09  Jim Meyering  <meyering@redhat.com>
30408         and OndÅ™ej Vašík  <ovasik@redhat.com>
30409
30410         utimens.c: correct kernel bug work-around
30411         OndÅ™ej Vašík found that the invalid return value of 280 indicates
30412         failure, not success, and the kernel bug we're trying to work
30413         around affects not just the utimensat call, but also the fallback
30414         futimens call.
30415         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
30416         not success.
30417         [HAVE_FUTIMENS]: Use the same work-around, here.
30418
30419 2008-06-09  Jim Meyering  <meyering@redhat.com>
30420
30421         add more guards around definition of ACE_-related code
30422         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
30423         ALLOW and ACE_OWNER are also defined.
30424
30425 2008-06-08  Bruno Haible  <bruno@clisp.org>
30426
30427         * lib/acl-internal.h: Add me as co-author.
30428         * lib/file-has-acl.c: Likewise.
30429         * lib/set-mode-acl.c: Likewise.
30430         * lib/copy-acl.c: Likewise.
30431
30432 2008-06-08  Bruno Haible  <bruno@clisp.org>
30433
30434         Add support for AIX ACLs.
30435         * lib/acl-internal.h (acl_nontrivial): New declaration.
30436         * lib/file-has-acl.c (acl_nontrivial): New function.
30437         (file_has_acl): Add implementation using AIX 4 ACL API.
30438         * lib/set-mode-acl.c (qset_acl): Likewise.
30439         * lib/copy-acl.c (qcopy_acl): Likewise.
30440
30441 2008-06-08  Bruno Haible  <bruno@clisp.org>
30442
30443         Add support for HP-UX ACLs.
30444         * lib/acl-internal.h (acl_nontrivial): New declaration.
30445         * lib/file-has-acl.c (acl_nontrivial): New function.
30446         (file_has_acl): Add implementation using HP-UX 11 ACL API.
30447         * lib/set-mode-acl.c (qset_acl): Likewise.
30448         * lib/copy-acl.c (qcopy_acl): Likewise.
30449
30450 2008-06-08  Bruno Haible  <bruno@clisp.org>
30451
30452         Add support for Cygwin ACLs.
30453         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
30454         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
30455         the chmod_or_fchmod call.
30456         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
30457
30458 2008-06-08  Bruno Haible  <bruno@clisp.org>
30459
30460         Fix bug with setuid modes in Solaris 10+ code.
30461         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
30462         succeeded, when the mode contains some special bits.
30463
30464 2008-06-08  Bruno Haible  <bruno@clisp.org>
30465
30466         Add support for Solaris 7..10 ACLs.
30467         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
30468         declarations.
30469         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
30470         functions.
30471         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
30472         * lib/set-mode-acl.c (qset_acl): Likewise.
30473         * lib/copy-acl.c (qcopy_acl): Likewise.
30474
30475 2008-06-08  Bruno Haible  <bruno@clisp.org>
30476
30477         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
30478         declaration.
30479         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
30480         (acl_access_nontrivial): Remove MacOS X case.
30481         (file_has_acl): Use acl_extended_nontrivial.
30482         * lib/copy-acl.c (qcopy_acl): Likewise.
30483
30484 2008-06-08  Bruno Haible  <bruno@clisp.org>
30485
30486         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
30487
30488 2008-06-08  Jim Meyering  <meyering@redhat.com>
30489
30490         * modules/acl (Maintainer): Add Bruno Haible.
30491
30492 2008-06-07  Bruno Haible  <bruno@clisp.org>
30493
30494         Improve support for Tru64 ACLs.
30495         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
30496         ACL on OSF/1.
30497
30498 2008-06-07  Bruno Haible  <bruno@clisp.org>
30499
30500         Add support for MacOS X ACLs.
30501         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
30502         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
30503         * lib/set-mode-acl.c (qset_acl): Likewise.
30504         * lib/copy-acl.c (qcopy_acl): Likewise.
30505
30506 2008-06-07  Bruno Haible  <bruno@clisp.org>
30507
30508         Fix memory leak introduced on 2008-05-22.
30509         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
30510         use.
30511
30512 2008-06-07  Bruno Haible  <bruno@clisp.org>
30513
30514         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
30515         to construct an empty ACL.
30516
30517 2008-06-07  Bruno Haible  <bruno@clisp.org>
30518
30519         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
30520         precisely.
30521         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
30522
30523 2008-06-07  Bruno Haible  <bruno@clisp.org>
30524
30525         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
30526         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
30527
30528 2008-06-07  Bruno Haible  <bruno@clisp.org>
30529
30530         * doc/posix-functions/_setjmp.texi: Explain the use of this function
30531         regardless of POSIX.
30532         * doc/posix-functions/_longjmp.texi: Likewise.
30533         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
30534         SystemV platform in this case.
30535
30536 2008-06-06  Eric Blake  <ebb9@byu.net>
30537
30538         Document abort() bugs.
30539         * doc/posix-functions/abort.texi (abort): Mention anomalies.
30540
30541         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
30542         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
30543         sigsetjmp.
30544         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
30545         siglongjmp, but only as a macro.
30546         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
30547         is obsolete.
30548         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
30549
30550         Tweak documentation to cover cygwin argz bugs.
30551         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
30552         argz bug fix; no code change needed since no cygwin releases
30553         occurred between the last fix and the bug being tested.
30554         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
30555         module and recently fixed cygwin bugs.
30556         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
30557         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
30558         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
30559         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
30560         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
30561         Likewise.
30562         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
30563         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
30564         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
30565         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
30566         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
30567         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
30568         Likewise.
30569
30570         Avoid gcc warning on cygwin.
30571         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
30572         !ACL_NO_TRIVIAL]: Avoid unused variable.
30573
30574 2008-06-05  Eric Blake  <ebb9@byu.net>
30575
30576         Be tolerant of UNKNOWN version in gnulib-tool test dir.
30577         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
30578         git-version-gen fails to come up with a version.
30579         Reported by Simon Josefsson.
30580
30581 2008-06-05  Jim Meyering  <meyering@redhat.com>
30582             Paul Eggert  <eggert@cs.ucla.edu>
30583
30584         utimens.c: work around a probable Linux kernel bug
30585         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
30586         appears to be a kernel bug that causes utimensat to return 280
30587         instead of 0, indicating success.
30588
30589 2008-06-04  Bruno Haible  <bruno@clisp.org>
30590
30591         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
30592         2008-06-01 commit.
30593
30594 2008-06-04  Bruno Haible  <bruno@clisp.org>
30595
30596         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
30597         * lib/file-has-acl.c (acl_access_nontrivial): New function.
30598         (file_has_acl): Use it. Save errno afterwards.
30599         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
30600
30601 2008-06-03  Bruno Haible  <bruno@clisp.org>
30602
30603         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
30604         draft code. Simplify #ifs.
30605         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
30606         Put Solaris code after POSIX-draft code. Fix comments regarding
30607         Solaris 10, HP-UX. Mention Cygwin.
30608         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
30609
30610 2008-06-03  Eric Blake  <ebb9@byu.net>
30611
30612         Provide fallback for older kernels.
30613         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
30614         Provide runtime fallback if kernel lacks support.
30615         Reported by Mike Frysinger.
30616
30617 2008-06-02  Bruno Haible  <bruno@clisp.org>
30618
30619         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
30620         it exists.
30621
30622 2008-06-02  Bruno Haible  <bruno@clisp.org>
30623
30624         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
30625         * lib/copy-acl.c (qcopy_acl): Update comment.
30626
30627 2008-06-02  Bruno Haible  <bruno@clisp.org>
30628
30629         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
30630         like ACL APIs.
30631
30632 2008-06-02  Bruno Haible  <bruno@clisp.org>
30633
30634         * tests/test-file-has-acl.sh: Use different code for Cygwin.
30635         * tests/test-set-mode-acl.sh: Likewise.
30636         * tests/test-copy-acl.sh: Likewise.
30637         * tests/test-copy-file.sh: Likewise.
30638
30639 2008-06-02  Bruno Haible  <bruno@clisp.org>
30640
30641         * tests/test-file-has-acl.sh: Remove unused code.
30642
30643 2008-06-01  Bruno Haible  <bruno@clisp.org>
30644
30645         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
30646         (copy_acl): Just a wrapper around qcopy_acl that emits the error
30647         messages.
30648         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
30649
30650 2008-06-01  Bruno Haible  <bruno@clisp.org>
30651
30652         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
30653         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
30654         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
30655         APIs.
30656         * modules/acl-tests (configure.ac): Remove tests now contained in
30657         m4/acl.m4.
30658
30659 2008-06-02  Jim Meyering  <meyering@redhat.com>
30660
30661         announce-gen: use a better key-server host name
30662         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
30663         it may be more consistently reliable.  Suggested by Werner Koch
30664         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
30665
30666 2008-06-01  Bruno Haible  <bruno@clisp.org>
30667
30668         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
30669         Reported by Voroskoi Andras <voroskoi@gmail.com>.
30670
30671 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
30672
30673         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
30674
30675 2008-06-01  Bruno Haible  <bruno@clisp.org>
30676
30677         New ACL tests.
30678         * tests/test-file-has-acl.sh: New file.
30679         * tests/test-file-has-acl.c: New file.
30680         * tests/test-set-mode-acl.sh: New file.
30681         * tests/test-set-mode-acl.c: New file.
30682         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
30683         * tests/test-copy-acl.c: New file.
30684         * modules/acl-tests: New file, based on modules/copy-file-tests.
30685         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
30686         (Depends-on): Add acl-tests.
30687         (configure.ac): Remove checks.
30688         (Makefile.am): Don't create test-sameacls program here any more.
30689
30690 2008-06-01  Bruno Haible  <bruno@clisp.org>
30691
30692         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
30693         * tests/test-sameacls.c: Include progname.h.
30694         (main): Invoke set_program_name. Portability fixes for MacOS X,
30695         Solaris, HP-UX.
30696
30697 2008-06-01  Bruno Haible  <bruno@clisp.org>
30698
30699         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
30700         function.
30701         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
30702
30703 2008-06-01  Bruno Haible  <bruno@clisp.org>
30704
30705         * modules/rpmatch (Depends-on): Add strdup.
30706
30707 2008-06-01  Bruno Haible  <bruno@clisp.org>
30708
30709         * lib/pipe.c: Include unistd-safer.h.
30710         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
30711         * modules/pipe (Depends-on): Add unistd-safer.
30712
30713 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30714
30715         * modules/autobuild (configure.ac): Call AB_INIT.
30716
30717 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30718
30719         * tests/test-getaddrinfo.c: Don't print debug messages by default.
30720         Suggested by Bruno Haible <bruno@clisp.org>.
30721
30722 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30723
30724         * tests/test-base64.c: Cast size_t to unsigned long when invoking
30725         printf.  Use %lu instead of %d.  Reported by Bruno Haible
30726         <bruno@clisp.org>.
30727
30728 2008-05-29  Eric Blake  <ebb9@byu.net>
30729
30730         Prefer new POSIX 200x interfaces over futimesat.
30731         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
30732         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
30733         when available.
30734         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
30735
30736 2008-05-28  Bruno Haible  <bruno@clisp.org>
30737
30738         * modules/stpcpy (License): Change to LGPLv2+.
30739         Requested by David Lutterkort <dlutter@redhat.com>.
30740
30741 2008-05-27  Bruno Haible  <bruno@clisp.org>
30742
30743         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
30744         current mingw.
30745         Reported by Jose E. Marchesi <jemarch@gnu.org>.
30746
30747 2008-05-27  Bruno Haible  <bruno@clisp.org>
30748
30749         * modules/iconv_open (Link): New section, from module 'iconv'.
30750         * modules/striconv (Link): Likewise.
30751         * modules/striconveh (Link): Likewise.
30752         * modules/xstriconv (Link): Likewise.
30753         * modules/unicodeio (Link): Likewise.
30754         * modules/propername (Link): Likewise.
30755         Reported by Jim Meyering.
30756
30757 2008-05-26  Jim Meyering  <meyering@redhat.com>
30758
30759         sha256: do not artificially restrict buffer length to be < 2^32
30760         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
30761         uint32_t to size_t.
30762         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
30763         to match.
30764
30765         avoid unaligned access errors, e.g., on sparc
30766         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
30767         direct access through a possibly-unaligned uint64* pointer.
30768         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
30769         direct access through a possibly-unaligned uint32* pointer.
30770         Prompted by this patch from Tom "spot" Callaway:
30771         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
30772
30773         sha512.c: fix typo in comment
30774         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
30775
30776 2008-05-25  Bruno Haible  <bruno@clisp.org>
30777
30778         * lib/set-mode-acl.c: Renamed from lib/acl.c.
30779         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
30780         (Makefile.am): Update lib_SOURCES.
30781
30782 2008-05-25  Bruno Haible  <bruno@clisp.org>
30783
30784         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
30785
30786 2008-05-25  Jim Meyering  <meyering@redhat.com>
30787
30788         useless-if-before-free: freed expr may have white-space differences
30789         * build-aux/useless-if-before-free: Recognize cases in which the
30790         freed expression differs from the tested one in embedded white
30791         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
30792         $1 was used, so we can't make any regexp shy.  Improved tests now
30793         detect this.
30794
30795         useless-if-before-free: accept white space in the expression.
30796         * build-aux/useless-if-before-free: For now, any white space
30797         in the expression must be identical in the free argument.
30798
30799         useless-if-before-free: efficiency tweak
30800         * build-aux/useless-if-before-free: Make the expression-matching
30801         regexp "shy".
30802         Make the *outer* regexp shy, not the expr-matching one.
30803
30804         update code-in-comment to accept cast of free arg
30805         * build-aux/useless-if-before-free: Update regexp.
30806
30807 2008-05-25  Bruno Haible  <bruno@clisp.org>
30808
30809         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
30810         * modules/copy-file-tests (Files, Makefile.am): Update.
30811         * tests/test-copy-file.c (func_test_copy): Update.
30812
30813 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
30814
30815         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
30816
30817 2008-05-23  Bruno Haible  <bruno@clisp.org>
30818
30819         Improve support for ACLs on OSF/1.
30820         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
30821         Remove fallback for unknown flavors of ACLs.
30822
30823 2008-05-22  Bruno Haible  <bruno@clisp.org>
30824
30825         Add support for ACLs on OSF/1.
30826         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
30827         replacements.
30828         (acl_free_text): New macro fallback.
30829         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
30830         acl_free.
30831         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
30832         acl_free_text function. Require AC_C_INLINE.
30833
30834 2008-05-22  Bruno Haible  <bruno@clisp.org>
30835
30836         Make copy_acl work on MacOS X 10.5.
30837         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
30838         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
30839         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
30840         If MODE_INSIDE_ACL, don't assume that every system has the same text
30841         representation for ACLs as FreeBSD.
30842         * lib/copy-acl.c (copy_acl): Add support for platforms with
30843         !MODE_INSIDE_ACL.
30844         * lib/file-has-acl.c (file_has_acl): Likewise.
30845         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
30846         FreeBSD, MacOS X, or IRIX, respectively.
30847
30848 2008-05-22  Bruno Haible  <bruno@clisp.org>
30849
30850         * lib/acl.h: Don't include <sys/acl.h>.
30851         (GETACLCNT): Move fallback to lib/acl-internal.h.
30852         * lib/acl-internal.h: Include <sys/acl.h> here.
30853         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
30854
30855 2008-05-22  Bruno Haible  <bruno@clisp.org>
30856
30857         Split off copy_acl function to separate file.
30858         * lib/copy-acl.c: New file, extracted from lib/acl.c.
30859         * lib/acl.c (copy_acl): Moved function to separate file.
30860         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
30861         * modules/acl (Files): Add lib/copy-acl.c.
30862         (Makefiles.am): Augment lib_SOURCES.
30863
30864 2008-05-22  Bruno Haible  <bruno@clisp.org>
30865
30866         * modules/copy-file-tests: New file.
30867         * tests/test-copy-file.sh: New file.
30868         * tests/test-copy-file.c: New file.
30869         * tests/test-copy-file-sameacls.c: New file.
30870
30871 2008-05-22  Eric Blake  <ebb9@byu.net>
30872
30873         Avoid gcc warning.
30874         * tests/test-memcmp.c (main): Pass NULL indirectly.
30875
30876 2008-05-21  Bruno Haible  <bruno@clisp.org>
30877
30878         Add reference doc about ACLs.
30879         * doc/acl-resources.txt: New file.
30880         * doc/acl-cygwin.txt: New file.
30881
30882 2008-05-21  Bruno Haible  <bruno@clisp.org>
30883
30884         Avoid one more warning from gcc.
30885         * lib/vasnprintf.c (IF_LINT): Update comments.
30886         (VASNPRINTF): Use it also for the 'prefix' array initializer.
30887
30888 2008-05-21  Jim Meyering  <meyering@redhat.com>
30889
30890         avoid a warning from gcc
30891         * lib/vasnprintf.c (IF_LINT): Define.
30892         (scale10_round_decimal_long_double):
30893         Use it to avoid a "may be used uninitialized" warning.
30894         (scale10_round_decimal_double): Likewise.
30895
30896 2008-05-21  Simon Josefsson  <simon@josefsson.org>
30897
30898         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
30899         declared.
30900
30901 2008-05-20  Bruno Haible  <bruno@clisp.org>
30902
30903         * tests/test-memcmp.c (main): Test also the sign of the result. Test
30904         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
30905
30906 2008-05-20  Simon Josefsson  <simon@josefsson.org>
30907
30908         * modules/memcmp-tests: New file.
30909         * tests/test-memcmp.c: New file.
30910
30911 2008-05-19  Bruno Haible  <bruno@clisp.org>
30912
30913         * modules/propername (Notice, configure.ac): Put quoted "..." into
30914         --keyword option.
30915         * lib/propername.h: Update comments accordingly.
30916         Reported by Eric Blake.
30917
30918 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
30919
30920         * modules/getpass-gnu (Depends-on): Add fseeko.
30921
30922 2008-05-19  Simon Josefsson  <simon@josefsson.org>
30923
30924         * modules/base64-tests: New file.
30925
30926 2008-05-19  Bo Borgerson <gigabo@gmail.com>
30927
30928         * lib/base64.c (base64_decode_ctx): If a decode context structure
30929         was passed in use it to ignore newlines.  If a context structure
30930         was _not_ passed in, continue to treat newlines as garbage (this
30931         is the historical behavior).  Formerly base64_decode.
30932         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
30933         takes a decode context structure.
30934         * lib/base64.h (base64_decode): Macro for four-argument calls.
30935         (base64_decode_alloc): Likewise.
30936         * lib/base64.c (base64_decode_ctx): If a decode context structure
30937         was passed in use it to ignore newlines.  If a context structure
30938         was _not_ passed in, continue to treat newlines as garbage (this
30939         is the historical behavior).  Formerly base64_decode.
30940         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
30941         takes a decode context structure.
30942         * lib/base64.h (base64_decode): Macro for four-argument calls.
30943         (base64_decode_alloc): Likewise.
30944
30945 2008-05-19  Jim Meyering  <meyering@redhat.com>
30946
30947         avoid a warning from gcc
30948         * lib/trim.c (IF_LINT): Define.
30949         (trim2): Use it to avoid a "may be used uninitialized" warning.
30950
30951         Fix doc typo.
30952         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
30953
30954 2008-05-19  Bruno Haible  <bruno@clisp.org>
30955
30956         * doc/glibc-functions/getpass.texi: Document limits of other
30957         implementations.
30958
30959 2008-05-19  Simon Josefsson  <simon@josefsson.org>
30960             Bruno Haible <bruno@clisp.org>
30961
30962         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
30963
30964 2008-05-18  Bruno Haible  <bruno@clisp.org>
30965
30966         * modules/propername: New file, from GNU gettext.
30967         * lib/propername.h: New file, from GNU gettext.
30968         * lib/propername.c: New file, from GNU gettext.
30969         * MODULES.html.sh (Internationalization functions): Add propername.
30970
30971 2008-05-16  Jim Meyering  <meyering@redhat.com>
30972             Bruno Haible  <bruno@clisp.org>
30973
30974         Avoid some warnings from "gcc -Wshadow".
30975         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
30976
30977 2008-05-15  Eric Blake  <ebb9@byu.net>
30978
30979         Extend previous patch to cygwin 1.7.0.
30980         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
30981         fast implementation in cygwin >= 1.7.0.
30982         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30983         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30984
30985 2008-05-15  Bruno Haible  <bruno@clisp.org>
30986
30987         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
30988         implementation in glibc >= 2.9.
30989         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30990         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30991
30992 2008-05-15  Bruno Haible  <bruno@clisp.org>
30993
30994         * MODULES.html.sh (Internationalization functions): Remove linebreak.
30995         (Unicode string functions): Add unilbrk/*.
30996         Reported by Karl Berry.
30997
30998 2008-05-15  Eric Blake  <ebb9@byu.net>
30999
31000         Fix violation of <stdbool.h> replacement in regex.
31001         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
31002         * lib/regexec.c (re_search_internal): Likewise.
31003         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
31004
31005 2008-05-15  Jim Meyering  <meyering@redhat.com>
31006
31007         avoid distracting test output when git or cvs is not found
31008         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
31009         * tests/test-vc-list-files-git.sh: Likewise.
31010
31011 2008-05-15  Eric Blake  <ebb9@byu.net>
31012
31013         Glibc finally accepted the memmem speedup code, bugzilla #5514.
31014         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
31015         glibc version.
31016         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
31017         * doc/posix-functions/strstr.texi (strstr): Likewise.
31018         * lib/str-two-way.h (MAX): Sychronize with glibc.
31019
31020 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
31021
31022         * lib/regcomp.c (optimize_utf8): Add a note on why we test
31023         opr.ctx_type.
31024         (calc_first): Initialize constraint field.
31025         (duplicate_node_closure): Use it instead of special casing ANCHORS.
31026         Fix grammar.
31027         (duplicate_node): Merge constraint field for all node types.
31028         (calc_eclosure_iter): Look at constraint field for all node types.
31029         * lib/regex_internal.c (create_cd_newstate): Don't look at
31030         opr.ctx_type.
31031
31032 2008-05-14  Bruno Haible  <bruno@clisp.org>
31033
31034         Help GCC to do better code generation.
31035         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
31036         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
31037         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
31038         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
31039         Declare with attribute 'malloc' if supported.
31040
31041 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
31042
31043         use "echo STR|wc -c" rather than unportable "expr length STR"
31044         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
31045         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
31046
31047 2008-05-14  Jim Meyering  <meyering@redhat.com>
31048
31049         use dd ibs=$n count=1 ... rather than less-portable head -c$n
31050         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
31051         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
31052         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
31053         via Collin Lasse.
31054
31055 2008-05-14  Eric Blake  <ebb9@byu.net>
31056
31057         Avoid quadratic growth in gl_LIBSOURCES.
31058         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
31059         Suggested by Bruno Haible.
31060
31061         Test xmemdup0.
31062         * modules/xmemdup0-tests: New file.
31063         * tests/test-xmemdup0.c: Likewise.
31064
31065 2008-05-13  Eric Blake  <ebb9@byu.net>
31066
31067         Split xmemdup0 into its own module.
31068         * modules/xmemdup0: New file.
31069         * lib/xmemdup0.h: Likewise.
31070         * lib/xmemdup0.c: Likewise.
31071         * MODULES.html.sh (Memory management functions): Add xmemdup0.
31072         * lib/xalloc.h (xmemdup0): Remove.
31073         * lib/xmalloc.c (xmemdup0): Likewise.
31074
31075 2008-05-13  Eric Blake  <ebb9@byu.net>
31076             Bruno Haible  <bruno@clisp.org>
31077
31078         Reduce number of forks required during autoconf.
31079         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
31080         and gl_LIBSOURCES_DIR.
31081         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
31082         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
31083         m4_syscmd per file.
31084         <m4_foreach_w>: Move...
31085         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
31086
31087 2008-05-13  Eric Blake  <ebb9@byu.net>
31088
31089         * gnulib-tool: Fix various comment typos.
31090
31091 2008-05-12  Bruno Haible  <bruno@clisp.org>
31092
31093         Tailor the linebreaking algorithm.
31094         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
31095
31096 2008-05-12  Bruno Haible  <bruno@clisp.org>
31097
31098         Update to Unicode 5.0.0.
31099         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31100         LBP_JV, LBP_JT. Redistribute values.
31101         (unilbrk_table): Change size.
31102         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
31103         Unicode TR#14 rev. 22.
31104         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
31105         LBP_JV, LBP_JT. Redistribute values.
31106         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
31107         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
31108         Update.
31109         * lib/unilbrk/lbrkprop1.h: Regenerated.
31110         * lib/unilbrk/lbrkprop2.h: Regenerated.
31111         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
31112         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
31113         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
31114         Likewise.
31115         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
31116         Likewise.
31117         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
31118         result.
31119         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
31120         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
31121         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
31122         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
31123         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
31124         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
31125
31126 2008-05-11  Bruno Haible  <bruno@clisp.org>
31127
31128         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
31129
31130 2008-05-11  Bruno Haible  <bruno@clisp.org>
31131
31132         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
31133         * modules/unilbrk/gen-lbrk: New file.
31134
31135 2008-05-11  Bruno Haible  <bruno@clisp.org>
31136
31137         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
31138         * m4/sha512.m4 (gl_SHA512): Likewise.
31139
31140 2008-05-11  Jim Meyering  <meyering@redhat.com>
31141
31142         New modules: crypto/sha256, crypto/sha512 (from coreutils)
31143         * modules/crypto/sha256: New file.
31144         * modules/crypto/sha512: Likewise.
31145         * lib/sha256.c: Likewise.
31146         * lib/sha256.h: Likewise.
31147         * lib/sha512.c: Likewise.
31148         * lib/sha512.h: Likewise.
31149         * lib/u64.h: Likewise.
31150         * m4/sha256.m4: Likewise.
31151         * m4/sha512.m4: Likewise.
31152         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
31153
31154 2008-05-10  Bruno Haible  <bruno@clisp.org>
31155
31156         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
31157         (Input/Output <stdio.h>): Add xprintf.
31158         (Signal handling <signal.h>): Add strsignal.
31159         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
31160         (Core language properties): Add func.
31161         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
31162         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
31163         strings.
31164         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
31165         (Input/output): New section.
31166         (File system functions): Add openat-die, stat-macros.
31167         (Networking functions): Add sockets.
31168         (Unicode string functions): Add unictype/*.
31169         (Support for building libraries and executables): Add gperf.
31170         (Support for building documentation): Add agpl-3.0.
31171         (Misc): Add nocrash.
31172
31173 2008-05-10  Bruno Haible  <bruno@clisp.org>
31174
31175         * modules/unictype/gen-ctype: New file.
31176
31177 2008-05-10  Jim Meyering  <meyering@redhat.com>
31178
31179         Make chdir-safer.c more efficient on a system with no symlinks.
31180         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
31181         also if ELOOP is zero.  Suggested by Bruno Haible.
31182
31183         Make chdir-safer.c slightly safer.
31184         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
31185         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
31186
31187         Avoid compile failure on systems without ELOOP (like mingw).
31188         * lib/chdir-safer.c (ELOOP): Define if not already defined.
31189         Reported by Bruno Haible.
31190
31191 2008-05-10  Bruno Haible  <bruno@clisp.org>
31192
31193         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
31194         (is_utf8_encoding): Use a case-insensitive comparison.
31195         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
31196         streq.
31197
31198 2008-05-10  Bruno Haible  <bruno@clisp.org>
31199
31200         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
31201         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
31202         * lib/unilbrk/ulc-common.h (iconv_string_length,
31203         iconv_string_keeping_offsets): Remove declarations.
31204         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
31205         Don't include <iconv.h>, streq.h, xsize.h.
31206         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
31207         conversion.
31208         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
31209         <iconv.h>, streq.h, xsize.h.
31210         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
31211         conversion.
31212         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
31213         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
31214         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
31215         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
31216
31217 2008-05-10  Bruno Haible  <bruno@clisp.org>
31218
31219         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
31220         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
31221
31222         * modules/unilbrk/u32-width-linebreaks-tests: New file.
31223         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
31224
31225         * modules/unilbrk/u16-width-linebreaks-tests: New file.
31226         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
31227
31228         * modules/unilbrk/u8-width-linebreaks-tests: New file.
31229         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
31230
31231         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
31232         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
31233
31234         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
31235         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
31236
31237         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
31238         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
31239
31240         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
31241         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
31242
31243 2008-05-10  Bruno Haible  <bruno@clisp.org>
31244
31245         Split up 'linebreak' module.
31246         * lib/unilbrk.h: New file, based on lib/linebreak.h.
31247         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
31248         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
31249         modifications.
31250         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
31251         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
31252         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
31253         lib/linebreak.c.
31254         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
31255         lib/linebreak.c.
31256         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
31257         lib/linebreak.c.
31258         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
31259         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
31260         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
31261         lib/linebreak.c.
31262         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
31263         lib/linebreak.c.
31264         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
31265         lib/linebreak.c.
31266         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
31267         lib/linebreak.c.
31268         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
31269         lib/linebreak.c.
31270         * modules/unilbrk/base: New file.
31271         * modules/unilbrk/tables: New file.
31272         * modules/unilbrk/u8-possible-linebreaks: New file.
31273         * modules/unilbrk/u16-possible-linebreaks: New file.
31274         * modules/unilbrk/u32-possible-linebreaks: New file.
31275         * modules/unilbrk/ulc-common: New file.
31276         * modules/unilbrk/ulc-possible-linebreaks: New file.
31277         * modules/unilbrk/u8-width-linebreaks: New file.
31278         * modules/unilbrk/u16-width-linebreaks: New file.
31279         * modules/unilbrk/u32-width-linebreaks: New file.
31280         * modules/unilbrk/ulc-width-linebreaks: New file.
31281         * lib/linebreak.h: Remove file.
31282         * lib/linebreak.c: Remove file.
31283         * m4/linebreak.m4: Remove file.
31284         * modules/linebreak: Remove file.
31285         * NEWS: Mention the changes.
31286
31287 2008-05-09  Eric Blake  <ebb9@byu.net>
31288
31289         Add xmemdup0.
31290         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
31291         implementation.
31292         * lib/xmalloc.c (xmemdup0): New C implementation.
31293
31294 2008-05-08  Bruno Haible  <bruno@clisp.org>
31295
31296         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
31297
31298 2008-05-07  Eric Blake  <ebb9@byu.net>
31299
31300         Support cross-compilation of <wctype.h>.
31301         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
31302         AC_CACHE_CHECK.
31303
31304 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
31305
31306         * build-aux/vc-list-files: Add support for bzr.
31307
31308 2008-05-03  Jim Meyering  <meyering@redhat.com>
31309
31310         avoid failed assertion with tight malloc
31311         * tests/test-getndelim2.c: Correct an off-by-one assertion.
31312
31313 2008-05-03  Simon Josefsson  <simon@josefsson.org>
31314
31315         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
31316         are needed from arpa/inet.h.
31317         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
31318         Reported by Bruno Haible.
31319
31320 2008-05-02  Jim Meyering  <meyering@redhat.com>
31321
31322         avoid compilation error on FreeBSD 6
31323         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
31324
31325 2008-05-01  Jim Meyering  <meyering@redhat.com>
31326
31327         useless-if-before-free: correct --help's exit status description
31328         * build-aux/useless-if-before-free (usage): Like grep, exit 0
31329         for one or more matches, etc.  Reported by Bruno Haible.
31330
31331         vc-list-files: make the stand-alone gnulib test work
31332         * modules/vc-list-files-tests (configure.ac):
31333         Define and AC_SUBST abs_aux_dir.
31334         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
31335         $(abs_top_srcdir) to each script and having each of them
31336         duplicate the work of setting PATH, set PATH here, using
31337         the new variable, abs_aux_dir instead.
31338         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
31339         * tests/test-vc-list-files-git.sh: Likewise.
31340         Reported by Bruno Haible.
31341
31342 2008-05-01  Bruno Haible  <bruno@clisp.org>
31343
31344         * lib/getndelim2.c (getndelim2): Fix newsize computation during
31345         reallocation. Rename 'done' to 'found_delimiter'.
31346
31347 2008-05-01  Jim Meyering  <meyering@redhat.com>
31348
31349         vc-list-files: accommodate /bin/sh like the one from Solaris 10
31350         * build-aux/vc-list-files: Use `...`, not $(...).
31351
31352 2008-04-30  Jim Meyering  <meyering@redhat.com>
31353
31354         add tests for vc-list-files
31355         * modules/vc-list-files-tests: New module.
31356         * tests/test-vc-list-files-cvs.sh: New file.
31357         * tests/test-vc-list-files-git.sh: New file.
31358
31359         avoid a warning from gcc
31360         * lib/getndelim2.c (IF_LINT): Define.
31361         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
31362
31363         vc-list-files: work properly with build-aux/cvsu, too
31364         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
31365         to all cvs-based clauses.
31366
31367         vc-list-files: work properly in the CVS+awk case, too
31368         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
31369
31370         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
31371         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
31372         take more than one file argument, so .  Add quotes, just in case $dir
31373         ever contains a shell meta-character.  Prompted by Soren Hansen in
31374         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
31375
31376 2008-04-29  Eric Blake  <ebb9@byu.net>
31377
31378         Optimize getndelim2 to use block operations when possible.
31379         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
31380         freadseek, and memchr2.
31381         * lib/getndelim2.c (getndelim2): Use them for block reads.
31382
31383 2008-04-29  Bruno Haible  <bruno@clisp.org>
31384
31385         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
31386         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31387         * modules/inet_ntop (Depends-on): Add extensions.
31388         * modules/inet_pton (Depends-on): Likewise.
31389         Reported by Simon Josefsson.
31390
31391 2008-04-29  Jim Meyering  <meyering@redhat.com>
31392
31393         When the is more than one match in a block, match all of them.
31394         * build-aux/useless-if-before-free: Iterate through each block
31395         until there are no more matches.
31396
31397         Fix broken useless-if-before-free script.
31398         * build-aux/useless-if-before-free: Fix typo: missing "?" after
31399         the expression to match cast of argument to free-like function.
31400
31401 2008-04-29  Eric Blake  <ebb9@byu.net>
31402
31403         Use new header.
31404         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
31405
31406 2008-04-29  Jim Meyering  <meyering@redhat.com>
31407
31408         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
31409         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
31410         by gnulib to exist and to declare e.g., inet_ntop.
31411         Don't include "inet_ntop.h", now removed.
31412
31413         * m4/arpa_inet_h.m4: Remove trailing blanks.
31414
31415 2008-04-29  Eric Blake  <ebb9@byu.net>
31416
31417         Silence valgrind on safe reads beyond potential array bounds.
31418         * lib/rawmemchr.valgrind: New file.
31419         * lib/strchrnul.valgrind: Likewise.
31420         * modules/rawmemchr (Files): Distribute new file.
31421         * modules/strchrnul (Files): Likewise.
31422         Suggested by Bruno Haible.
31423
31424 2008-04-29  Bruno Haible  <bruno@clisp.org>
31425
31426         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
31427         (inet_ntop, inet_pton): Change portability warning's wording.
31428         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
31429         Invoke gl_CHECK_NEXT_HEADERS.
31430         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
31431         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
31432         set ARPA_INET_H.
31433         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
31434         * modules/arpa_inet (Description): No longer only for systems that
31435         lack it.
31436         (Depends-on): Add include_next.
31437         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
31438         HAVE_ARPA_INET_H.
31439
31440 2008-04-29  Jim Meyering  <meyering@redhat.com>
31441
31442         * modules/mkdir (License): Re-license as LGPLv2+.
31443
31444 2008-04-29  Bruno Haible  <bruno@clisp.org>
31445
31446         * modules/rawmemchr (Maintainer): Set to Eric.
31447         * modules/strchrnul (Maintainer): Likewise.
31448
31449 2008-04-29  Simon Josefsson  <simon@josefsson.org>
31450
31451         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
31452         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
31453
31454         * modules/arpa_inet (arpa/inet.h): Use them.
31455
31456 2008-04-28  Eric Blake  <ebb9@byu.net>
31457
31458         Test getndelim2.
31459         * modules/getndelim2-tests: New file.
31460         * tests/test-getndelim2.c: Likewise.
31461         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
31462         stream.
31463         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
31464
31465         * MODULES.html.sh: Document new module.
31466
31467 2008-04-20  Bruno Haible  <bruno@clisp.org>
31468
31469         * lib/c-stack.c (die): Use raise.
31470         * modules/c-stack (Depends-on): Add raise.
31471
31472 2008-04-28  Bruno Haible  <bruno@clisp.org>
31473
31474         Expect rpmatch to be declared.
31475         * lib/yesno.c (rpmatch): Remove declaration.
31476
31477         Declare rpmatch.
31478         * lib/stdlib.in.h (rpmatch): New declaration.
31479         * lib/rpmatch.c: Include <stdlib.h> first.
31480         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
31481         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
31482         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
31483         HAVE_RPMATCH.
31484         * modules/rpmatch (Depends-on): Add stdlib, extensions.
31485         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31486         (Include): Set to <stdlib.h>.
31487         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
31488         HAVE_RPMATCH.
31489         * NEWS: Document the change.
31490
31491 2008-04-28  Bruno Haible  <bruno@clisp.org>
31492
31493         Change rpmatch to use nl_langinfo when appropriate.
31494         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
31495         (N_): New macro.
31496         (localized_pattern): New function/macro.
31497         (try): Remove match, nomatch arguments. Copy the pattern into safe
31498         memory before caching it.
31499         (rpmatch): Use localized_pattern. Add translator comments.
31500         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
31501         Suggested by Eric Blake.
31502         * modules/rpmatch (Depends-on): Add stdbool.
31503
31504 2008-04-28  Eric Blake  <ebb9@byu.net>
31505
31506         Add rawmemchr module, matching glibc.
31507         * modules/string (Makefile.am): New indicator.
31508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
31509         * lib/string.in.h (rawmemchr): Declare when appropriate.
31510         * modules/rawmemchr: New file.
31511         * m4/rawmemchr.m4: Likewise.
31512         * lib/rawmemchr.c: Likewise.
31513         * modules/rawmemchr-tests: Likewise.
31514         * tests/test-rawmemchr.c: Likewise.
31515         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
31516         module.
31517         * modules/strchrnul (Depends-on): Add rawmemchr.
31518         * lib/strchrnul.c (strchrnul): Optimize a corner case.
31519
31520         Whitespace cleanup.
31521         * tests/test-strchrnul.c: Reindent.
31522         * lib/strchrnul.c: Likewise.
31523
31524         Optimize and test strchrnul.
31525         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
31526         * modules/strchrnul-tests: New file.
31527         * tests/test-strchrnul.c: Likewise.
31528
31529         Remove intprops dependency.
31530         * modules/memchr (Depends-on): Remove intprops.
31531         * modules/memrchr (Depends-on): Likewise.
31532         * modules/memchr2 (Depends-on): Likewise.
31533         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
31534         * lib/memrchr.c (__memrchr): Likewise.
31535         * lib/memrchr2.c (memchr2): Likewise.
31536         Reported by Simon Josefsson.
31537
31538 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31539
31540         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
31541         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31542
31543 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31544
31545         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
31546
31547         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
31548
31549         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
31550
31551         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
31552         declarations.
31553         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
31554
31555         * m4/inet_pton.m4: Don't check for header files.
31556
31557         * m4/inet_ntop.m4: Don't check for header files.
31558
31559 2008-04-28  Simon Josefsson  <simon@josefsson.org>
31560
31561         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
31562         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
31563         trigger for cygwin).
31564         Reported by Bruno Haible  <bruno@clisp.org>.
31565
31566 2008-04-28  Bruno Haible  <bruno@clisp.org>
31567
31568         * doc/posix-functions/strdup.texi: Mention mingw problem.
31569
31570 2008-04-27  Bruno Haible  <bruno@clisp.org>
31571
31572         * modules/stat-time-tests (Depends-on): Add sleep.
31573         * tests/test-stat-time.c (force_unlink): New function.
31574         (cleanup): Use it.
31575         (test_mtime): Remove the ctime related tests.
31576         (test_ctime): New function, containing the ctime related tests.
31577         (main): Call test_ctime, except on native Windows platforms.
31578
31579 2008-04-27  Bruno Haible  <bruno@clisp.org>
31580
31581         * lib/rpmatch.c (rpmatch): Add some comments.
31582         Reported by James Youngman <jay@gnu.org>.
31583
31584 2008-04-27  Bruno Haible  <bruno@clisp.org>
31585
31586         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
31587         quiet NaNs.
31588
31589 2008-04-27  Bruno Haible  <bruno@clisp.org>
31590
31591         Make test-yesno.sh work on mingw.
31592         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
31593         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
31594         (main): Set stdin to binary mode.
31595         * modules/yesno-tests (Depends-on): Add binary-io.
31596
31597 2008-04-27  Bruno Haible  <bruno@clisp.org>
31598
31599         Fix 'isfinite' on x86, x86_64, ia64 platforms.
31600         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
31601         argument that lie outside the IEEE 854 domain.
31602         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
31603         (gl_ISFINITE): Use it.
31604         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
31605
31606 2008-04-27  Bruno Haible  <bruno@clisp.org>
31607
31608         Allow local renaming in config.h.
31609         * lib/memrchr.c (memrchr): Don't undefine outside libc.
31610
31611 2008-04-27  Bruno Haible  <bruno@clisp.org>
31612
31613         * lib/memchr.c (__memchr): Change type of 'i'.
31614         * lib/memchr2.c (memchr2): Likewise.
31615
31616 2008-04-26  Eric Blake  <ebb9@byu.net>
31617         and Bruno Haible  <bruno@clisp.org>
31618
31619         Optimize and test memrchr.
31620         * modules/memrchr (Depends-on): Add intprops.
31621         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
31622         * modules/memrchr-tests: New file.
31623         * tests/test-memrchr.c: New file.
31624
31625 2008-04-26  Bruno Haible  <bruno@clisp.org>
31626
31627         Add tentative support for DragonFly BSD.
31628         * lib/stdio-impl.h: Add macros for DragonFly BSD.
31629         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
31630         fp.
31631         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31632         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
31633         * lib/fpurge.c (fpurge): Likewise.
31634         * lib/freadable.c (freaadable): Likewise.
31635         * lib/freadahead.c (freadahead): Likewise.
31636         * lib/freading.c (freading): Likewise.
31637         * lib/freadptr.c (freadptr): Likewise.
31638         * lib/freadseek.c (freadptrinc): Likewise.
31639         * lib/fseeko.c (fseeko): Likewise.
31640         * lib/fseterr.c (fseterr): Likewise.
31641         * lib/fwritable.c (fwritable): Likewise.
31642         * lib/fwriting.c (fwriting): Likewise.
31643
31644 2008-04-26  Bruno Haible  <bruno@clisp.org>
31645
31646         * lib/stdio-impl.h: New file.
31647         * lib/fbufmode.c: Include stdio-impl.h.
31648         (fbufmode): Use fp_, remove redundant #defines.
31649         * lib/fflush.c: Include stdio-impl.h.
31650         (clear_ungetc_buffer): Remove redundant #defines.
31651         * lib/fpurge.c: Include stdio-impl.h.
31652         (fpurge): Remove redundant #defines.
31653         * lib/freadable.c: Include stdio-impl.h.
31654         (freadable): Remove redundant #defines.
31655         * lib/freadahead.c: Include stdio-impl.h.
31656         (freadahead): Remove redundant #defines.
31657         * lib/freading.c: Include stdio-impl.h.
31658         (freading): Remove redundant #defines.
31659         * lib/freadptr.c: Include stdio-impl.h.
31660         (freadptr): Remove redundant #defines.
31661         * lib/freadseek.c: Include stdio-impl.h.
31662         (freadptrinc): Remove redundant #defines.
31663         * lib/fseeko.c: Include stdio-impl.h.
31664         (rpl_fseeko): Remove redundant #defines.
31665         * lib/fseterr.c: Include stdio-impl.h.
31666         (fseterr): Remove redundant #defines.
31667         * lib/fwritable.c: Include stdio-impl.h.
31668         (fwritable: Remove redundant #defines.
31669         * lib/fwriting.c: Include stdio-impl.h.
31670         (fwriting): Remove redundant #defines.
31671         * modules/fbufmode (Files): Add lib/stdio-impl.h.
31672         * modules/fflush (Files): Likewise.
31673         * modules/fpurge (Files): Likewise.
31674         * modules/freadable (Files): Likewise.
31675         * modules/freadahead (Files): Likewise.
31676         * modules/freading (Files): Likewise.
31677         * modules/freadptr (Files): Likewise.
31678         * modules/freadseek (Files): Likewise.
31679         * modules/fseeko (Files): Likewise.
31680         * modules/fseterr (Files): Likewise.
31681         * modules/fwritable (Files): Likewise.
31682         * modules/fwriting (Files): Likewise.
31683
31684 2008-04-26  Bruno Haible  <bruno@clisp.org>
31685
31686         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
31687         restore_seek_optimization, update_fpos_cache): New functions, extracted
31688         from rpl_fflush.
31689         (rpl_fflush): Use them.
31690         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
31691         (gl_REPLACE_FFLUSH): Use it.
31692
31693 2008-04-26  Bruno Haible  <bruno@clisp.org>
31694
31695         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
31696         on Solaris.
31697         * tests/test-xstrtoimax.sh: Likewise.
31698         * tests/test-xstrtoumax.sh: Likewise.
31699         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31700
31701 2008-04-26  Bruno Haible  <bruno@clisp.org>
31702
31703         * modules/memchr-tests: New file.
31704         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
31705
31706 2008-04-26  Eric Blake  <ebb9@byu.net>
31707             Bruno Haible  <bruno@clisp.org>
31708
31709         * lib/memchr.c: Include intprops.h.
31710         (__memchr): Optimize parallel detection of matching bytes. Rename local
31711         variables. Add explanatory comments.
31712
31713 2008-04-26  Bruno Haible  <bruno@clisp.org>
31714
31715         Fix module 'memchr', broken since 2000-10-28.
31716         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
31717
31718 2008-04-26  Bruno Haible  <bruno@clisp.org>
31719
31720         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
31721         comments.
31722
31723 2008-04-25  Eric Blake  <ebb9@byu.net>
31724
31725         Use native fstatat on cygwin 1.7.0.
31726         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
31727         first.
31728
31729 2008-04-23  Eric Blake  <ebb9@byu.net>
31730
31731         Improve memchr2 performance.
31732         * lib/memchr2.c (memchr2): Further optimize parallel detection of
31733         NUL bytes.
31734         * modules/memchr2 (Depends-on): Use intprops.h.
31735
31736 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31737
31738         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
31739         an inline function instead of a CPP macro.  Patch by Ben Pfaff
31740         <blp@cs.stanford.edu>.
31741
31742 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31743
31744         * lib/arpa_inet.in.h: New file.
31745
31746         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
31747         (Makefile.am): Sed in substitute header file.
31748
31749         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
31750         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
31751
31752         * modules/inet_ntop (configure.ac): Use
31753         gl_ARPA_INET_MODULE_INDICATOR.
31754
31755         * modules/inet_pton (configure.ac): Use
31756         gl_ARPA_INET_MODULE_INDICATOR.
31757
31758 2008-04-22  Jim Meyering  <meyering@redhat.com>
31759
31760         * modules/verify (License): Re-license as LGPLv2+.
31761
31762 2008-04-22  Simon Josefsson  <simon@josefsson.org>
31763
31764         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
31765         parameter to void* as per POSIX standard (MinGW uses char*).
31766
31767 2008-04-21  Bruno Haible  <bruno@clisp.org>
31768
31769         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
31770         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
31771         Define to replacements if REPLACE_ISWCNTRL is 1.
31772         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
31773         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
31774         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
31775         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
31776         what it fixes.
31777         * doc/posix-functions/iswalpha.texi: Likewise.
31778         * doc/posix-functions/iswblank.texi: Likewise.
31779         * doc/posix-functions/iswcntrl.texi: Likewise.
31780         * doc/posix-functions/iswdigit.texi: Likewise.
31781         * doc/posix-functions/iswgraph.texi: Likewise.
31782         * doc/posix-functions/iswlower.texi: Likewise.
31783         * doc/posix-functions/iswprint.texi: Likewise.
31784         * doc/posix-functions/iswpunct.texi: Likewise.
31785         * doc/posix-functions/iswspace.texi: Likewise.
31786         * doc/posix-functions/iswupper.texi: Likewise.
31787         * doc/posix-functions/iswxdigit.texi: Likewise.
31788         Reported by Alain Guibert.
31789
31790 2008-04-21  Bruno Haible  <bruno@clisp.org>
31791
31792         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
31793         Patch by Alain Guibert.
31794
31795 2008-04-21  Bruno Haible  <bruno@clisp.org>
31796
31797         Fix test failures on mingw.
31798         * tests/test-xstrtol.c (print_no_progname): New function.
31799         (main): Install it in error_print_progname hook.
31800         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
31801         * tests/test-xstrtoimax.sh: Likewise.
31802         * tests/test-xstrtoumax.sh: Likewise.
31803
31804 2008-04-21  Bruno Haible  <bruno@clisp.org>
31805
31806         Fix test failure on mingw.
31807         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
31808
31809 2008-04-21  Bruno Haible  <bruno@clisp.org>
31810
31811         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
31812         Actually assign a value.
31813
31814 2008-04-20  Bruno Haible  <bruno@clisp.org>
31815
31816         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
31817         take 2.
31818         * lib/canonicalize.c (canonicalize_file_name): Elide if the
31819         'canonicalize-lgpl' module is also used.
31820         * lib/canonicalize-lgpl.c: Undo last change.
31821         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
31822
31823 2008-04-20  Bruno Haible  <bruno@clisp.org>
31824
31825         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
31826         config.h. Provide _mkdir based fallback for mingw.
31827         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
31828         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
31829         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
31830         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
31831         rather than defining mkdir in config.h.
31832         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
31833         (gl_SYS_STAT_H_DEFAULTS): New macro.
31834         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
31835         HAVE_IO_H any more.
31836         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
31837         HAVE_DECL_MKDIR and HAVE_IO_H.
31838
31839 2008-04-20  Bruno Haible  <bruno@clisp.org>
31840
31841         * lib/isapipe.c: Port to native Windows platforms.
31842
31843 2008-04-20  Bruno Haible  <bruno@clisp.org>
31844
31845         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
31846
31847 2008-04-21  Eric Blake  <ebb9@byu.net>
31848
31849         Work around preprocessors that don't handle UINTMAX_MAX.
31850         * lib/memchr2.c (memchr2): Avoid embedded #if.
31851         Reported by Alain Guibert, fix suggested by Bruno Haible.
31852
31853 2008-04-21  Simon Josefsson  <simon@josefsson.org>
31854
31855         * doc/posix-functions/strftime.texi (strftime): Explain better
31856         Windows incompatibility.  Suggested by Micah Cowan
31857         <micah@cowan.name>.
31858
31859 2008-04-20  Bruno Haible  <bruno@clisp.org>
31860
31861         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
31862         unistr/u8-mblen.
31863
31864 2008-04-20  Bruno Haible  <bruno@clisp.org>
31865
31866         Fix test failure on platforms with non-GNU iconv.
31867         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
31868         (U_TO_U8): Use it, rather than u16_to_u8.
31869         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
31870         units at the end of the input string.
31871         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
31872
31873 2008-04-20  Bruno Haible  <bruno@clisp.org>
31874
31875         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
31876         when the resulting length is 0.
31877         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
31878
31879 2008-04-20  Bruno Haible  <bruno@clisp.org>
31880
31881         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
31882         works.
31883         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
31884
31885 2008-04-20  Bruno Haible  <bruno@clisp.org>
31886
31887         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
31888         * modules/tsearch-tests (configure.ac): Test for initstate function.
31889
31890 2008-04-20  Bruno Haible  <bruno@clisp.org>
31891
31892         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
31893         for nlink_t if missing.
31894         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
31895
31896 2008-04-19  Bruno Haible  <bruno@clisp.org>
31897
31898         Work around snprintf bug on Linux libc5.
31899         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
31900         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31901         gl_SNPRINTF_SIZE1.
31902         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31903         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
31904         that test failed.
31905         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
31906         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
31907         * modules/snprintf (Files): Add m4/printf.m4.
31908         * modules/vsnprintf (Files): Likewise.
31909         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
31910         * doc/posix-functions/vsnprintf.texi: Likewise.
31911
31912 2008-04-19  Bruno Haible  <bruno@clisp.org>
31913
31914         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
31915         from 0.0058 to less than 10^-7.
31916
31917 2008-04-19  Bruno Haible  <bruno@clisp.org>
31918
31919         Fix rounding when a precision is given.
31920         * lib/vasnprintf.c (is_borderline): New function.
31921         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
31922         9...9x.
31923         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
31924         %e, %g.
31925         * tests/test-vasprintf-posix.c (test_function): Likewise.
31926         * tests/test-snprintf-posix.h (test_function): Likewise.
31927         * tests/test-sprintf-posix.h (test_function): Likewise.
31928         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
31929         * tests/test-printf-posix.h (test_function): Likewise.
31930         * tests/test-printf-posix.output: Update.
31931         Reported by John Darrington <john@darrington.wattle.id.au> via
31932         Ben Pfaff <blp@cs.stanford.edu>.
31933
31934 2008-04-18  Simon Josefsson  <simon@josefsson.org>
31935
31936         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
31937         Suggested by Bruno Haible <bruno@clisp.org>.
31938
31939 2008-04-17  Bruno Haible  <bruno@clisp.org>
31940
31941         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
31942         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
31943         implementation.
31944         Patch by Bruce Merry <bmerry@gmail.com>.
31945
31946 2008-04-17  Simon Josefsson  <simon@josefsson.org>
31947
31948         * doc/posix-functions/strftime.texi (strftime): Mention that %e
31949         doesn't work under Windows.
31950
31951 2008-04-16  Bruno Haible  <bruno@clisp.org>
31952
31953         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
31954         New macros.
31955         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
31956         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
31957         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
31958         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
31959         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
31960         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
31961         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
31962         macros.
31963         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
31964         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
31965         Northern Sotho, Uighur.
31966
31967 2008-04-16  Bruno Haible  <bruno@clisp.org>
31968
31969         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
31970         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
31971         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
31972         Reported by Daniel Bergström <daniel@octocode.com>.
31973
31974 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
31975             Bruno Haible  <bruno@clisp.org>
31976
31977         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
31978         function.
31979         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
31980         New functions, mostly extracted from gl_locale_name_default.
31981         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
31982
31983 2008-04-16  Eric Blake  <ebb9@byu.net>
31984
31985         Adjust strtod detection to catch glibc 2.7 bug.
31986         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
31987         Reported by John Gatewood Ham.
31988
31989 2008-04-16  Bruno Haible  <bruno@clisp.org>
31990
31991         Add tentative support for Linux libc5.
31992         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
31993         * lib/fpurge.c (fpurge): Likewise.
31994         * lib/freadable.c (freadable): Likewise.
31995         * lib/freadahead.c (freadahead): Likewise.
31996         * lib/freading.c (freading): Likewise.
31997         * lib/freadptr.c (freadptr): Likewise.
31998         * lib/freadseek.c (freadptrinc): Likewise.
31999         * lib/fseeko.c (rpl_fseeko): Likewise.
32000         * lib/fseterr.c (fseterr): Likewise.
32001         * lib/fwritable.c (fwritable): Likewise.
32002         * lib/fwriting.c (fwriting): Likewise.
32003         Reported by Alain Guibert <alguibert+bts@free.fr>.
32004
32005 2008-04-15  Bruno Haible  <bruno@clisp.org>
32006
32007         * modules/mathl (configure.ac): Define module indicator.
32008
32009 2008-04-15  Bruno Haible  <bruno@clisp.org>
32010
32011         * lib/logl.c (logl): Remove unused variables.
32012
32013 2008-04-15  Bruno Haible  <bruno@clisp.org>
32014
32015         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
32016         fails.
32017
32018 2008-04-15  Bruno Haible  <bruno@clisp.org>
32019
32020         * lib/trim.c (trim2): Fix argument of isspace() macro.
32021
32022 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
32023
32024         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
32025         to 0.
32026         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
32027
32028 2008-04-14  Bruno Haible  <bruno@clisp.org>
32029
32030         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
32031         AC_LANG_PROGRAM argument.
32032         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
32033         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
32034         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32035         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32036         * m4/math_h.m4 (gl_MATH_H): Likewise.
32037         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
32038         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
32039         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
32040         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
32041         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
32042         * m4/regex.m4 (gl_REGEX): Likewise.
32043         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
32044         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
32045         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32046         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
32047         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32048         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32049         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32050         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32051
32052 2008-04-14  Jim Meyering  <meyering@redhat.com>
32053
32054         test-strtod: fix typos: s/abs/fabs/
32055         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
32056
32057 2008-04-13  Bruno Haible  <bruno@clisp.org>
32058
32059         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
32060         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
32061         module is also used and while not building the reloc-wrapper.
32062
32063 2008-04-13  Bruno Haible  <bruno@clisp.org>
32064
32065         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
32066
32067 2008-04-13  Bruno Haible  <bruno@clisp.org>
32068
32069         Fix AIX compilation failure introduced on 2008-04-02.
32070         * tests/test-frexp.c (exp): Undefine before redefining.
32071         * tests/test-frexpl.c (exp): Likewise.
32072
32073 2008-04-13  Bruno Haible  <bruno@clisp.org>
32074
32075         Work around a HP-UX stdio bug.
32076         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
32077         * tests/test-ftello.c (main): Likewise.
32078         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
32079         * doc/posix-functions/ftello.texi: Likewise.
32080
32081 2008-04-13  Bruno Haible  <bruno@clisp.org>
32082
32083         Make test-signbit pass on HP-UX/hppa.
32084         * tests/test-signbit.c (minus_zerol): New variable.
32085         (test_signbitl): Use it.
32086
32087 2008-04-13  Bruno Haible  <bruno@clisp.org>
32088
32089         Make truncl work on OSF/1 4.0.
32090         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
32091         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32092         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
32093         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
32094         HAVE_DECL_TRUNCL.
32095         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
32096         HAVE_DECL_TRUNCL.
32097         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
32098
32099 2008-04-13  Bruno Haible  <bruno@clisp.org>
32100
32101         * lib/unictype.h: Remove trailing comma from enumeration definitions.
32102
32103 2008-04-13  Bruno Haible  <bruno@clisp.org>
32104
32105         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
32106         expression, so as to avoid HP-UX 11 cc compiler bug.
32107
32108 2008-04-13  Bruno Haible  <bruno@clisp.org>
32109
32110         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
32111
32112 2008-04-13  Bruno Haible  <bruno@clisp.org>
32113
32114         * lib/git-merge-changelog.c: Remove empty declaration outside of
32115         functions.
32116
32117 2008-04-13  Bruno Haible  <bruno@clisp.org>
32118
32119         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
32120
32121 2008-04-13  Bruno Haible  <bruno@clisp.org>
32122
32123         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
32124         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
32125         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
32126         also if it exists but lacks definitions of the SHUT_* macros.
32127         * modules/sys_socket (Description): Update.
32128         Reported by Elbert Pol <e.pol@chello.nl>.
32129
32130 2008-04-13  Bruno Haible  <bruno@clisp.org>
32131
32132         * lib/localcharset.c (OS2): Don't redefine if already defined.
32133         Reported by Elbert Pol <e.pol@chello.nl>.
32134
32135 2008-04-13  Bruno Haible  <bruno@clisp.org>
32136
32137         * lib/binary-io.h [__EMX__]: Include <io.h>.
32138         Reported by Elbert Pol <e.pol@chello.nl>.
32139
32140 2008-04-12  Bruno Haible  <bruno@clisp.org>
32141
32142         * lib/fpucw.h: Enable the definitions also for x86_64.
32143         Needed for NetBSD/x86_64.
32144         Reported by Thomas Klausner <tk@giga.or.at>.
32145
32146 2008-04-12  Bruno Haible  <bruno@clisp.org>
32147
32148         * tests/test-strtod.c: Include isnand.h.
32149         (main): Use isnand instead of isnan.
32150         Reported by Jim Meyering.
32151
32152 2008-04-12  Bruno Haible  <bruno@clisp.org>
32153
32154         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
32155         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32156
32157 2008-04-12  Jim Meyering  <meyering@redhat.com>
32158
32159         * m4/math_h.m4 (gl_MATH_H): Fix typos.
32160
32161 2008-04-12  Bruno Haible  <bruno@clisp.org>
32162
32163         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
32164         Reported by Elbert Pol <e.pol@chello.nl>.
32165
32166 2008-04-12  Eric Blake  <ebb9@byu.net>
32167
32168         Work around Solaris 10 math.h bug.
32169         * m4/math_h.m4 (gl_MATH_H): Check for bug.
32170         (gl_MATH_H_DEFAULTS): Set up default.
32171         * modules/math (Makefile.am): Replace new indicators.
32172         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
32173         * tests/test-math.c (main): Test this.
32174         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
32175         * doc/posix-headers/math.texi (math.h): Mention bug.
32176         Reported by Nelson H. F. Beebe and Jim Meyering.
32177
32178 2008-04-11  Bruno Haible  <bruno@clisp.org>
32179
32180         Adapt to future versions of Apple GCC.
32181         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
32182         Reported by Peter O'Gorman <peter@pogma.com>.
32183
32184 2008-04-11  Bruno Haible  <bruno@clisp.org>
32185
32186         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
32187
32188 2008-04-11  Bruno Haible  <bruno@clisp.org>
32189
32190         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
32191
32192         * modules/getaddrinfo-tests (Makefile.am): Define
32193         test_getaddrinfo_LDADD.
32194
32195 2008-04-11  Bruno Haible  <bruno@clisp.org>
32196
32197         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
32198         (init): Fix syntax error.
32199         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
32200         is declared.
32201
32202 2008-04-11  Bruno Haible  <bruno@clisp.org>
32203
32204         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
32205         * modules/glob (Depends-on): Add stdbool.
32206
32207 2008-04-11  Bruno Haible  <bruno@clisp.org>
32208
32209         * lib/trim.c: Include <string.h>.
32210
32211 2008-04-11  Eric Blake  <ebb9@byu.net>
32212
32213         Avoid compile failure on OS/2.
32214         * lib/regex_internal.h (internal_function): Disable optimization
32215         on OS/2 (__EMX__), where it caused compiler error.
32216         Reported by Elbert Pol.
32217
32218 2008-04-11  Bruno Haible  <bruno@clisp.org>
32219
32220         Flush the standard error stream before aborting. Needed on mingw.
32221         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
32222         * tests/test-array_list.c (ASSERT): Likewise.
32223         * tests/test-array_oset.c (ASSERT): Likewise.
32224         * tests/test-avltree_list.c (ASSERT): Likewise.
32225         * tests/test-avltree_oset.c (ASSERT): Likewise.
32226         * tests/test-avltreehash_list.c (ASSERT): Likewise.
32227         * tests/test-binary-io.c (ASSERT): Likewise.
32228         * tests/test-byteswap.c (ASSERT): Likewise.
32229         * tests/test-c-ctype.c (ASSERT): Likewise.
32230         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
32231         * tests/test-c-strcasestr.c (ASSERT): Likewise.
32232         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
32233         * tests/test-c-strstr.c (ASSERT): Likewise.
32234         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
32235         * tests/test-canonicalize.c (ASSERT): Likewise.
32236         * tests/test-carray_list.c (ASSERT): Likewise.
32237         * tests/test-ceilf1.c (ASSERT): Likewise.
32238         * tests/test-ceilf2.c (ASSERT): Likewise.
32239         * tests/test-ceill.c (ASSERT): Likewise.
32240         * tests/test-count-one-bits.c (ASSERT): Likewise.
32241         * tests/test-fbufmode.c (ASSERT): Likewise.
32242         * tests/test-fflush2.c (ASSERT): Likewise.
32243         * tests/test-floorf1.c (ASSERT): Likewise.
32244         * tests/test-floorf2.c (ASSERT): Likewise.
32245         * tests/test-floorl.c (ASSERT): Likewise.
32246         * tests/test-fopen.c (ASSERT): Likewise.
32247         * tests/test-fpending.c (ASSERT): Likewise.
32248         * tests/test-fprintf-posix.c (ASSERT): Likewise.
32249         * tests/test-fpurge.c (ASSERT): Likewise.
32250         * tests/test-freadable.c (ASSERT): Likewise.
32251         * tests/test-freadahead.c (ASSERT): Likewise.
32252         * tests/test-freading.c (ASSERT): Likewise.
32253         * tests/test-freadptr.c (ASSERT): Likewise.
32254         * tests/test-freadptr2.c (ASSERT): Likewise.
32255         * tests/test-freadseek.c (ASSERT): Likewise.
32256         * tests/test-freopen.c (ASSERT): Likewise.
32257         * tests/test-frexp.c (ASSERT): Likewise.
32258         * tests/test-frexpl.c (ASSERT): Likewise.
32259         * tests/test-fseek.c (ASSERT): Likewise.
32260         * tests/test-fseeko.c (ASSERT): Likewise.
32261         * tests/test-fstrcmp.c (ASSERT): Likewise.
32262         * tests/test-ftell.c (ASSERT): Likewise.
32263         * tests/test-ftello.c (ASSERT): Likewise.
32264         * tests/test-func.c (ASSERT): Likewise.
32265         * tests/test-fwritable.c (ASSERT): Likewise.
32266         * tests/test-fwriting.c (ASSERT): Likewise.
32267         * tests/test-getdelim.c (ASSERT): Likewise.
32268         * tests/test-getline.c (ASSERT): Likewise.
32269         * tests/test-i-ring.c (ASSERT): Likewise.
32270         * tests/test-iconv-utf.c (ASSERT): Likewise.
32271         * tests/test-iconv.c (ASSERT): Likewise.
32272         * tests/test-isfinite.c (ASSERT): Likewise.
32273         * tests/test-isnand.c (ASSERT): Likewise.
32274         * tests/test-isnanf.c (ASSERT): Likewise.
32275         * tests/test-isnanl.h (ASSERT): Likewise.
32276         * tests/test-ldexpl.c (ASSERT): Likewise.
32277         * tests/test-linked_list.c (ASSERT): Likewise.
32278         * tests/test-linkedhash_list.c (ASSERT): Likewise.
32279         * tests/test-localename.c (ASSERT): Likewise.
32280         * tests/test-lseek.c (ASSERT): Likewise.
32281         * tests/test-mbscasecmp.c (ASSERT): Likewise.
32282         * tests/test-mbscasestr1.c (ASSERT): Likewise.
32283         * tests/test-mbscasestr2.c (ASSERT): Likewise.
32284         * tests/test-mbscasestr3.c (ASSERT): Likewise.
32285         * tests/test-mbscasestr4.c (ASSERT): Likewise.
32286         * tests/test-mbschr.c (ASSERT): Likewise.
32287         * tests/test-mbscspn.c (ASSERT): Likewise.
32288         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
32289         * tests/test-mbspbrk.c (ASSERT): Likewise.
32290         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
32291         * tests/test-mbsrchr.c (ASSERT): Likewise.
32292         * tests/test-mbsspn.c (ASSERT): Likewise.
32293         * tests/test-mbsstr1.c (ASSERT): Likewise.
32294         * tests/test-mbsstr2.c (ASSERT): Likewise.
32295         * tests/test-mbsstr3.c (ASSERT): Likewise.
32296         * tests/test-memchr2.c (ASSERT): Likewise.
32297         * tests/test-memmem.c (ASSERT): Likewise.
32298         * tests/test-open.c (ASSERT): Likewise.
32299         * tests/test-printf-frexp.c (ASSERT): Likewise.
32300         * tests/test-printf-frexpl.c (ASSERT): Likewise.
32301         * tests/test-printf-posix.c (ASSERT): Likewise.
32302         * tests/test-quotearg.c (ASSERT): Likewise.
32303         * tests/test-rbtree_list.c (ASSERT): Likewise.
32304         * tests/test-rbtree_oset.c (ASSERT): Likewise.
32305         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
32306         * tests/test-round1.c (ASSERT): Likewise.
32307         * tests/test-roundf1.c (ASSERT): Likewise.
32308         * tests/test-roundl.c (ASSERT): Likewise.
32309         * tests/test-signbit.c (ASSERT): Likewise.
32310         * tests/test-sleep.c (ASSERT): Likewise.
32311         * tests/test-snprintf-posix.c (ASSERT): Likewise.
32312         * tests/test-snprintf.c (ASSERT): Likewise.
32313         * tests/test-sprintf-posix.c (ASSERT): Likewise.
32314         * tests/test-stat-time.c (ASSERT): Likewise.
32315         * tests/test-strcasestr.c (ASSERT): Likewise.
32316         * tests/test-strerror.c (ASSERT): Likewise.
32317         * tests/test-striconv.c (ASSERT): Likewise.
32318         * tests/test-striconveh.c (ASSERT): Likewise.
32319         * tests/test-striconveha.c (ASSERT): Likewise.
32320         * tests/test-strsignal.c (ASSERT): Likewise.
32321         * tests/test-strstr.c (ASSERT): Likewise.
32322         * tests/test-strtod.c (ASSERT): Likewise.
32323         * tests/test-trunc1.c (ASSERT): Likewise.
32324         * tests/test-trunc2.c (ASSERT): Likewise.
32325         * tests/test-truncf1.c (ASSERT): Likewise.
32326         * tests/test-truncf2.c (ASSERT): Likewise.
32327         * tests/test-truncl.c (ASSERT): Likewise.
32328         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
32329         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
32330         * tests/test-vasnprintf.c (ASSERT): Likewise.
32331         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
32332         * tests/test-vasprintf.c (ASSERT): Likewise.
32333         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
32334         * tests/test-vprintf-posix.c (ASSERT): Likewise.
32335         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
32336         * tests/test-vsnprintf.c (ASSERT): Likewise.
32337         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
32338         * tests/test-wcwidth.c (ASSERT): Likewise.
32339         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
32340         * tests/test-xprintf-posix.c (ASSERT): Likewise.
32341         * tests/test-xvasprintf.c (ASSERT): Likewise.
32342         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
32343         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
32344         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
32345         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
32346         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
32347         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
32348         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
32349         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
32350         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
32351         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
32352         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
32353         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
32354         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
32355         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
32356         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
32357         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
32358         * tests/unictype/test-block_list.c (ASSERT): Likewise.
32359         * tests/unictype/test-block_of.c (ASSERT): Likewise.
32360         * tests/unictype/test-block_test.c (ASSERT): Likewise.
32361         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
32362         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
32363         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
32364         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
32365         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
32366         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
32367         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
32368         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
32369         * tests/unictype/test-combining.c (ASSERT): Likewise.
32370         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
32371         * tests/unictype/test-digit.c (ASSERT): Likewise.
32372         * tests/unictype/test-mirror.c (ASSERT): Likewise.
32373         * tests/unictype/test-numeric.c (ASSERT): Likewise.
32374         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
32375         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
32376         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
32377         * tests/unictype/test-scripts.c (ASSERT): Likewise.
32378         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
32379         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
32380         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
32381         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
32382         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
32383         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
32384         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
32385         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
32386         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
32387         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
32388         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
32389         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
32390         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
32391         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
32392         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
32393         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
32394         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
32395         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
32396         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
32397         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
32398         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
32399         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
32400         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
32401         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
32402         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
32403         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
32404         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
32405         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
32406         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
32407         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
32408         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
32409         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
32410         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
32411         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
32412         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
32413         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
32414         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
32415         Reported by Eric Blake.
32416
32417 2008-04-11  Bruno Haible  <bruno@clisp.org>
32418
32419         * lib/wchar.in.h: Tweak comment.
32420
32421 2008-04-11  Bruno Haible  <bruno@clisp.org>
32422
32423         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
32424         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
32425         gl_COMMON.
32426         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
32427
32428 2008-04-11  Bruno Haible  <bruno@clisp.org>
32429
32430         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
32431
32432 2008-04-11  Simon Josefsson  <simon@josefsson.org>
32433
32434         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
32435         of attempting to use non-existing /dev/*random.  Based on patch
32436         from Adam Strzelecki <ono@java.pl> in
32437         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
32438
32439 2008-04-08  Bruno Haible  <bruno@clisp.org>
32440
32441         Add tentative support for emx+gcc.
32442         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
32443         * lib/fpurge.c (fpurge): Likewise.
32444         * lib/freadable.c (freadable): Likewise.
32445         * lib/freadahead.c (freadahead): Likewise.
32446         * lib/freading.c (freading): Likewise.
32447         * lib/freadptr.c (freadptr): Likewise.
32448         * lib/freadseek.c (freadptrinc): Likewise.
32449         * lib/fseeko.c (rpl_fseeko): Likewise.
32450         * lib/fseterr.c (fseterr): Likewise.
32451         * lib/fwritable.c (fwritable): Likewise.
32452         * lib/fwriting.c (fwriting): Likewise.
32453         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
32454
32455 2008-04-09  Eric Blake  <ebb9@byu.net>
32456
32457         Avoid some autoconf warnings.
32458         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
32459         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
32460         * m4/afs.m4 (gl_AFS): Likewise.
32461         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
32462         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
32463         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32464         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
32465         (gl_INTEGER_TYPE_SUFFIX): Likewise.
32466         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
32467         (AC_CHECK_DECLS_ONCE): Likewise.
32468         Rename file...
32469         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
32470         gnulib-tool requires autoconf 2.59 or better.
32471         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
32472
32473 2008-04-08  Eric Blake  <ebb9@byu.net>
32474
32475         Use 'git describe --match' if present (added in git 1.5.5).
32476         * build-aux/git-version-gen: Limit result to tags that match 'v*'
32477         if possible.
32478
32479 2008-04-08  Bruno Haible  <bruno@clisp.org>
32480
32481         Add tentative support for OpenServer.
32482         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
32483         _ptr, _cnt.
32484         * lib/fpurge.c (fpurge): Likewise.
32485         * lib/freadable.c (freadable): Likewise.
32486         * lib/freadahead.c (freadahead): Likewise.
32487         * lib/freading.c (freading): Likewise.
32488         * lib/freadptr.c (freadptr): Likewise.
32489         * lib/freadseek.c (freadptrinc): Likewise.
32490         * lib/fseeko.c (rpl_fseeko): Likewise.
32491         * lib/fseterr.c (fseterr): Likewise.
32492         * lib/fwritable.c (fwritable): Likewise.
32493         * lib/fwriting.c (fwriting): Likewise.
32494         Reported by Roger Cornelius <rac@tenzing.org> and
32495         Brian K. White <brian@aljex.com>.
32496
32497 2008-04-06  Jim Meyering  <meyering@redhat.com>
32498
32499         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
32500
32501 2008-04-06  Bruno Haible  <bruno@clisp.org>
32502
32503         Avoid possible error with non-ASCII bytes in UTF-8 locales.
32504         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
32505         * tests/test-printf-posix.sh: Likewise.
32506         * tests/test-vfprintf-posix.sh: Likewise.
32507         * tests/test-vprintf-posix.sh: Likewise.
32508         * tests/test-xprintf-posix.sh: Likewise.
32509
32510 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32511
32512         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
32513         hide error from 'ls', needed on OS/2.
32514         Report by Elbert Pol <elbert.pol@gmail.com>.
32515
32516 2008-04-04  Eric Blake  <ebb9@byu.net>
32517
32518         Make test-fseeko.c failures meaningful.
32519         * tests/test-fseeko.c: Print line number on failure.
32520         * tests/test-fseek.c: Likewise.
32521         Reported by Nelson H. F. Beebe.
32522
32523         Improve strtod bug detection check.
32524         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
32525         required for Solaris 10.
32526         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
32527
32528 2008-04-04  Bruno Haible  <bruno@clisp.org>
32529
32530         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
32531         by m4/setenv.m4.
32532
32533 2008-04-03  Eric Blake  <ebb9@byu.net>
32534
32535         Ensure sane .version contents.
32536         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
32537         version string.
32538         * build-aux/git-version-gen: Improve documentation.
32539
32540         Make GNU make output nicer.
32541         * top/GNUmakefile [!_have-Makefile]: Add dependency on
32542         MAKECMDGOALS to enforce message for all command line targets.  Set
32543         srcdir for use in maint.mk.
32544
32545         Another maintainer tweak.
32546         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
32547         a target that regenerates version.
32548
32549 2008-04-03  Jim Meyering  <meyering@redhat.com>
32550
32551         vc-list-files: don't cause coreutils "make po-check" failure
32552         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
32553
32554 2008-04-03  Eric Blake  <ebb9@byu.net>
32555
32556         Allow VPATH usage of vc-list-files.
32557         * build-aux/vc-list-files (scriptversion): Add timestamp.
32558         (options): Add --help, --version, -C.
32559         (CVS): Support installed cvsu.
32560
32561 2008-04-02  Bruno Haible  <bruno@clisp.org>
32562
32563         Avoid some "statement with no effect" warnings from gcc.
32564         * tests/test-wctype.c (main): Explicitly ignore unused values.
32565         Reported by Jim Meyering.
32566
32567 2008-04-02  Jim Meyering  <meyering@redhat.com>
32568
32569         Avoid some warnings from "gcc -Wshadow".
32570         * tests/test-frexp.c (exp): Define to a different identifier.
32571         * tests/test-frexpl.c (exp): Likewise.
32572
32573 2008-04-03  Jim Meyering  <meyering@redhat.com>
32574
32575         bootstrap: remove dangling *.[ch] symlinks from lib
32576         * build-aux/bootstrap [dangling symlink removal]: Move find's
32577         -depth option to precede all others, to avoid a warning.
32578         Remove *.[ch] files too, and from "$source_base" (usually lib/).
32579
32580 2008-04-02  Bruno Haible  <bruno@clisp.org>
32581
32582         Avoid some warnings from "gcc -Wshadow".
32583         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
32584         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
32585         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
32586         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
32587         Reported by Jim Meyering.
32588
32589 2008-04-01  Bruno Haible  <bruno@clisp.org>
32590
32591         Fix test to work on IRIX 6.5 with cc.
32592         * tests/test-math.c (numeric_equal): New function.
32593         (main): Use it.
32594
32595 2008-04-01  Bruno Haible  <bruno@clisp.org>
32596
32597         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
32598
32599 2008-04-01  Bruno Haible  <bruno@clisp.org>
32600
32601         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
32602         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32603         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
32604         (Depends-on): Remove math.
32605
32606         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
32607         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32608         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
32609         (Depends-on): Remove math.
32610
32611         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
32612         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32613         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
32614         (Depends-on): Remove math.
32615         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
32616         (Depends-on): Remove math.
32617
32618         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
32619         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
32620         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
32621         (Depends-on): Remove math.
32622         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
32623         (Depends-on): Remove math.
32624
32625         * tests/test-round1.c: Include nan.h.
32626         (main): Use NaNd instead of NAN.
32627         * modules/round-tests (Files): Add tests/nan.h.
32628
32629         * tests/test-trunc1.c: Include nan.h.
32630         (main): Use NaNd instead of NAN.
32631         * modules/trunc-tests (Files): Add tests/nan.h.
32632
32633         * tests/test-roundf1.c: Include nan.h.
32634         (main): Use NaNf instead of NAN.
32635         * modules/roundf-tests (Files): Add tests/nan.h.
32636
32637         * tests/test-truncf1.c: Include nan.h.
32638         (main): Use NaNf instead of NAN.
32639         * modules/truncf-tests (Files): Add tests/nan.h.
32640
32641         * tests/test-ceilf1.c: Include nan.h.
32642         (main): Use NaNf instead of NAN.
32643         * modules/ceilf-tests (Files): Add tests/nan.h.
32644
32645         * tests/test-floorf1.c: Include nan.h.
32646         (main): Use NaNf instead of NAN.
32647         * modules/floorf-tests (Files): Add tests/nan.h.
32648
32649         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
32650         (main): Use NaNf instead of NAN.
32651         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
32652
32653         * tests/test-isnand.c: Include nan.h instead of <math.h>.
32654         (main): Use NaNd instead of NAN.
32655         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
32656
32657         * tests/test-frexp.c: Include nan.h.
32658         (main): Use NaNd instead of NAN.
32659         * modules/frexp-tests (Files): Add tests/nan.h.
32660
32661         * lib/isnan.c: Don't include <math.h>.
32662         (FUNC): Don't use NAN macro.
32663         * modules/isnand-nolibm (Depends-on): Remove math.
32664         * modules/isnanf-nolibm (Depends-on): Remove math.
32665         * modules/isnanl (Depends-on): Remove math.
32666         * modules/isnanl-nolibm (Depends-on): Remove math.
32667
32668         * tests/nan.h: New file.
32669
32670 2008-04-01  Eric Blake  <ebb9@byu.net>
32671
32672         Fix typos.
32673         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
32674         values to be the right type.
32675
32676         For now, cater to gnulib strtod inaccuracies.
32677         * tests/test-strtod.c (main): Allow 1-ulp error on expected
32678         fractional results.  While not as nice from a QoI perspective, it
32679         is a quicker patch than correctly implementing decimal to binary
32680         rounding.
32681
32682 2008-03-31  Eric Blake  <ebb9@byu.net>
32683
32684         Guarantee a definition of NAN.
32685         * lib/math.in.h (NAN): Define if missing.
32686         * tests/test-math.c (main): Test it.
32687         * doc/posix-headers/math.texi (math.h): Document this.
32688         * lib/isnan.c (rpl_isnand): Use it.
32689         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
32690         * tests/test-floorf1.c (NaN): Likewise.
32691         * tests/test-frexp.c (NaN): Likewise.
32692         * tests/test-isnand.c (NaN): Likewise.
32693         * tests/test-isnanf.c (NaN): Likewise.
32694         * tests/test-round1.c (NaN): Likewise.
32695         * tests/test-roundf1.c (NaN): Likewise.
32696         * tests/test-snprintf-posix.h (NaN): Likewise.
32697         * tests/test-sprintf-posix.h (NaN): Likewise.
32698         * tests/test-trunc1.c (NaN): Likewise.
32699         * tests/test-truncf1.c (NaN): Likewise.
32700         * tests/test-vasnprintf-posix.c (NaN): Likewise.
32701         * tests/test-vasprintf-posix.c (NaN): Likewise.
32702         * modules/isnand-nolibm (Depends-on): Add math.
32703         * modules/isnanf-nolibm (Depends-on): Likewise.
32704         * modules/isnanl (Depends-on): Likewise.
32705         * modules/isnanl-nolibm (Depends-on): Likewise.
32706         * modules/snprintf-posix-tests (Depends-on): Likewise.
32707         * modules/sprintf-posix-tests (Depends-on): Likewise.
32708         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
32709         * modules/vsprintf-posix-tests (Depends-on): Likewise.
32710         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
32711         * modules/vasprintf-posix-tests (Depends-on): Likewise.
32712
32713 2008-03-31  Bruno Haible  <bruno@clisp.org>
32714
32715         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
32716         * doc/posix-functions/strtod.texi: Likewise.
32717
32718 2008-03-31  Bruno Haible  <bruno@clisp.org>
32719
32720         * tests/test-strtod.c (main): Don't use C99 syntax.
32721
32722 2008-03-31  Bruno Haible  <bruno@clisp.org>
32723
32724         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
32725         Reported by Eric Blake.
32726
32727 2008-03-31  Jim Meyering  <meyering@redhat.com>
32728
32729         Don't compare actual signbit return values.
32730         * tests/test-strtod.c (main): Rather, compare only their
32731         zero/non-zero nature.
32732
32733 2008-03-31  Eric Blake  <ebb9@byu.net>
32734
32735         More strtod documentation.
32736         * doc/posix-functions/strtod.texi (strtod): Interpret more test
32737         failures as distinct bugs.
32738
32739 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32740
32741         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
32742         Problem reported by Erik Benada in
32743         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
32744
32745 2008-03-30  Bruno Haible  <bruno@clisp.org>
32746
32747         * tests/test-strtod.c: Add comments about which assertion fails on which
32748         platform.
32749         * doc/posix-functions/strtod.texi: Add info about many more platforms.
32750
32751 2008-03-30  Eric Blake  <ebb9@byu.net>
32752
32753         Test signbit behavior on zeros.
32754         * tests/test-signbit.c (test_signbitf): Add tests for zero.
32755         (test_signbitd, test_signbitl): Likewise.
32756
32757         More strtod touchups.
32758         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
32759         sign of negative underflow, for now.  Use .5, not .1.
32760         * doc/posix-functions/strtod.texi (strtod): Mention these
32761         limitations.
32762         Reported by Jim Meyering.
32763
32764 2008-03-30  Bruno Haible  <bruno@clisp.org>
32765
32766         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
32767         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
32768
32769 2008-03-30  Bruno Haible  <bruno@clisp.org>
32770
32771         Avoid failure when attempting to return empty iconv results on some
32772         platforms.
32773         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
32774         allocation, don't report ENOMEM when the resulting string is empty.
32775
32776 2008-03-30  Bruno Haible  <bruno@clisp.org>
32777
32778         Fix buffer overrun.
32779         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
32780         Don't consider the width for tmp_length. Check count against tmp_length
32781         before doing the padding. Ensure enough allocation during padding.
32782
32783 2008-03-30  Eric Blake  <ebb9@byu.net>
32784
32785         strtod touchups.
32786         * lib/strtod.c (strtod): Avoid compiler warnings.
32787         Reported by Jim Meyering.
32788
32789 2008-03-30  Bruno Haible  <bruno@clisp.org>
32790
32791         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
32792         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
32793         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
32794         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
32795         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
32796         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
32797         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
32798         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
32799
32800         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
32801         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
32802         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
32803         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
32804         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
32805         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
32806         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
32807         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
32808
32809         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
32810         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
32811         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
32812         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
32813         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
32814         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
32815         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
32816         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
32817
32818         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
32819         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
32820
32821         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
32822         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
32823
32824         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
32825         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
32826
32827         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
32828         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
32829         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
32830
32831         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
32832         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
32833         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
32834
32835         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
32836         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
32837         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
32838
32839         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
32840         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
32841         * modules/vasprintf (Depends-on): Add EOVERFLOW.
32842
32843         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
32844         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
32845         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
32846         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
32847         (Depends-on): Add EOVERFLOW.
32848         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
32849         (Depends-on): Add EOVERFLOW.
32850         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32851         (Depends-on): Add EOVERFLOW.
32852         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32853         (Depends-on): Add EOVERFLOW.
32854         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32855         (Depends-on): Add EOVERFLOW.
32856         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32857         (Depends-on): Add EOVERFLOW.
32858         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32859         (Depends-on): Add EOVERFLOW.
32860         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32861         (Depends-on): Add EOVERFLOW.
32862
32863         * lib/sprintf.c (EOVERFLOW): Remove fallback.
32864         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
32865         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
32866
32867         * lib/snprintf.c (EOVERFLOW): Remove fallback.
32868         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
32869         * modules/snprintf (Depends-on): Add EOVERFLOW.
32870
32871         * lib/poll.c (EOVERFLOW): Remove fallback.
32872         * modules/poll (Depends-on): Add EOVERFLOW.
32873
32874         * lib/getugroups.c (EOVERFLOW): Remove fallback.
32875         * modules/getugroups (Depends-on): Add EOVERFLOW.
32876
32877         * lib/getdelim.c (EOVERFLOW): Remove fallback.
32878         * modules/getdelim (Depends-on): Add EOVERFLOW.
32879
32880         * lib/ftell.c (EOVERFLOW): Remove fallback.
32881         * modules/ftell (Depends-on): Add EOVERFLOW.
32882
32883         * lib/fprintf.c (EOVERFLOW): Remove fallback.
32884         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
32885         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
32886
32887         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
32888
32889         * modules/EOVERFLOW-tests: New file.
32890         * tests/test-EOVERFLOW.c: New file.
32891
32892         * modules/EOVERFLOW: New file.
32893         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
32894
32895 2008-03-30  Bruno Haible  <bruno@clisp.org>
32896
32897         Fix bug introduced on 2007-06-10.
32898         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
32899         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
32900
32901 2008-03-30  Bruno Haible  <bruno@clisp.org>
32902
32903         Improve freadseek's efficiency after ungetc.
32904         * lib/freadseek.c: Include freadahead.h.
32905         (freadptrinc): New function, extracted from freadseek.
32906         (freadseek): Use it in a loop. Use freadahead to determine the number
32907         of loop iterations.
32908         * modules/freadseek (Depends-on): Add freadahead.
32909         (configure.ac): Require AC_C_INLINE.
32910
32911 2008-03-30  Bruno Haible  <bruno@clisp.org>
32912
32913         * lib/freadseek.c (freadseek): Don't ignore the return value of
32914         freadptr.
32915
32916 2008-03-29  Eric Blake  <ebb9@byu.net>
32917
32918         Add hex float support.
32919         * modules/strtod (Depends-on): Add c-ctype.
32920         (Link): Mention POW_LIB.
32921         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
32922         whitespace between 'e' and exponent.
32923         * tests/test-strtod.c (main): Enable hex float tests.
32924         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
32925         now provides.
32926
32927         Document various strtod bugs, with some fixes.
32928         * doc/posix-functions/strtod.texi (strtod): Document bugs with
32929         "-0x", "inf", "nan", and hex constants.
32930         * doc/posix-functions/atof.texi (atof): Likewise.
32931         * modules/stdlib (Makefile.am): Support strtod.
32932         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32933         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
32934         detect additional strtod bugs.
32935         * lib/stdlib.in.h (rpl_strtod): Add declarations.
32936         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
32937         bool where appropriate.  Parse 'inf' and 'nan'.
32938         * tests/test-strtod.c: New file.
32939         * modules/strtod (Depends-on): Add stdbool, stdlib.
32940         (configure.ac): Turn on module indicator.
32941         * modules/strtod-tests: New module.
32942
32943 2008-03-29  Eric Blake  <ebb9@byu.net>
32944
32945         Fix ftell on mingw.
32946         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
32947         * modules/ftell-tests (Depends-on): Add binary-io.
32948         * modules/ftello-tests (Depends-on): Likewise.
32949         * tests/test-ftell.c (main): Enhance test to cover behavior after
32950         ungetc.  Enforce binary mode.
32951         * tests/test-ftello.c (main): Likewise.
32952
32953         Pass test-freadseek on cygwin.
32954         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
32955         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
32956         ungetc buffer.
32957
32958         * tests/test-fflush2.c (main): Fix typo.
32959
32960 2008-03-29  Bruno Haible  <bruno@clisp.org>
32961
32962         * tests/test-fflush2.c (main): Temporarily disable the contents of
32963         this test.
32964         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
32965         Reported by Eric Blake.
32966
32967 2008-03-28  Simon Josefsson  <simon@josefsson.org>
32968
32969         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
32970         (GC_SHA224_DIGEST_SIZE): Add.
32971
32972         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
32973         (gc_hash_digest_length): Likewise.
32974         (gc_hash_buffer): Likewise.
32975
32976 2008-03-25  Bruno Haible  <bruno@clisp.org>
32977
32978         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
32979         detail which gettext release to use.
32980         Reported by Simon Josefsson.
32981
32982 2008-03-26  Jim Meyering  <meyering@redhat.com>
32983
32984         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
32985         * modules/gnumakefile (clean-GNUmakefile): Also, use
32986         test ... && ... || : syntax rather than if-then ... fi.
32987
32988         gnumakefile: Don't double-quote-expand $(VPATH) value.
32989         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
32990
32991 2008-03-24  Eric Blake  <ebb9@byu.net>
32992
32993         Alter GNUmakefile to install into top directory.
32994         * modules/maintainer-makefile: Split, and add dependency...
32995         * modules/gnumakefile: to this new module.
32996         * build-aux/GNUmakefile: Move...
32997         * top/GNUmakefile: ...here.
32998         * build-aux/maint.mk: Move...
32999         * top/maint.mk: ...here.
33000         * MODULES.html.sh (Support for maintaining...): Document new
33001         module.
33002
33003 2008-03-23  Bruno Haible  <bruno@clisp.org>
33004
33005         * gnulib-tool: New options --vc-files, --no-vc-files.
33006         (func_usage): Document them.
33007         (vc_files): New variable.
33008         (func_import): Consider vc_files.
33009         (func_create_testdir): Set vc_files to empty.
33010         Suggested by Jim Meyering and Karl Berry.
33011
33012 2008-03-23  Bruno Haible  <bruno@clisp.org>
33013
33014         Fix regex compilation error on HP-UX 11.
33015         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
33016         * modules/regex (Files): Add m4/mbstate_t.m4.
33017         Reported by Ton Voon <ton.voon@altinity.com>.
33018
33019 2008-03-23  Bruno Haible  <bruno@clisp.org>
33020
33021         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
33022
33023 2008-03-23  Eric Blake  <ebb9@byu.net>
33024             Bruno Haible  <bruno@clisp.org>
33025
33026         Install files from top/ in the destination directory.
33027         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
33028         augmentation also for the files from top/.
33029         (func_import, func_create_testdir): Rewrite file names:
33030         top/filename -> filename.
33031
33032 2008-03-23  Bruno Haible  <bruno@clisp.org>
33033
33034         Tweak "gnulib --version" output.
33035         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
33036
33037 2008-03-23  Bruno Haible  <bruno@clisp.org>
33038
33039         Tweak "gnulib --version" output.
33040         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
33041         rather than contents of ChangeLog, when possible.
33042
33043 2008-03-21  Eric Blake  <ebb9@byu.net>
33044
33045         More --version tweaks.
33046         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
33047         date of last ChangeLog entry.
33048
33049 2008-03-21  Jim Meyering  <meyering@redhat.com>
33050
33051         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
33052
33053 2008-03-20  Eric Blake  <ebb9@byu.net>
33054
33055         VPATH fix.
33056         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
33057
33058 2008-03-20  Simon Josefsson  <simon@josefsson.org>
33059
33060         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
33061         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
33062
33063 2008-03-20  Eric Blake  <ebb9@byu.net>
33064
33065         Sync GNUmakefile with coreutils.
33066         * build-aux/GNUmakefile (have-Makefile): Rename...
33067         (_have-Makefile): ...to this, for namespace consideration.
33068         (GNUmakefile.cfg): Include, if present.
33069         (_autoreconf): Define a default.
33070         (_is-dist-target): New rule for rebuilds to pick up intra-release
33071         version.
33072         (maint-cfg.mk): Rename...
33073         (cfg.mk): ...to this.
33074
33075 2008-03-18  Jim Meyering  <meyering@redhat.com>
33076
33077         New script and module: mktempd
33078         * MODULES.html.sh (maint+release support): Add mktempd.
33079         * build-aux/mktempd: New file.
33080         * modules/mktempd: New file.
33081
33082 2008-03-15  Jim Meyering  <meyering@redhat.com>
33083
33084         Undo last change.
33085         * lib/sha1.c, lib/md5.c: 63 != ~63.
33086         Reported by Andreas Schwab.
33087
33088         sha1.c, md5.c: Hoist a redundant expression.
33089         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
33090         "ctx->buflen" only once, before calling *_process_block.
33091         * lib/md5.c (md5_process_bytes): Likewise.
33092
33093 2008-03-14  Eric Blake  <ebb9@byu.net>
33094
33095         Bump copyright year in files generated by gnulib-tool.
33096         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
33097         gnulib-tool, rather than hard-coding it.
33098
33099         Fix 'gnulib-tool --version' output to work with git.
33100         * gnulib-tool (func_gnulib_dir): New function, extracted from...
33101         (startup): ...here.
33102         (func_version): Use it to invoke git-version-gen, rather than
33103         relying on CVS keyword expansion.  Modernize wording.
33104         (cvsdatestamp, last_checkin_date, version): Kill unused
33105         variables.
33106
33107 2008-03-12  Jim Meyering  <meyering@redhat.com>
33108
33109         Recognize optional cast of the argument to free.
33110         * build-aux/useless-if-before-free: Update regexps.
33111
33112         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
33113
33114 2008-03-11  Bruno Haible  <bruno@clisp.org>
33115
33116         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
33117         by a single package.
33118         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
33119         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
33120         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
33121         Reported by Sam Steingold <sds@gnu.org>.
33122
33123 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33124
33125         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
33126         repositories.
33127
33128 2008-03-11  Bruno Haible  <bruno@clisp.org>
33129
33130         Avoid conflicts between local macro definitions.
33131         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33132         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
33133
33134 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
33135             Bruno Haible  <bruno@clisp.org>
33136
33137         Make va_copy work with some version of xlc on AIX 5.1.
33138         * lib/stdarg.in.h: New file.
33139         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
33140         On AIX, use a <stdarg.h> file substitute.
33141         * modules/stdarg (Files): Add lib/stdarg.in.h.
33142         (Depends-on): Add include_next.
33143         (Makefile.am): Build a stdarg.h substitute if requested.
33144         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
33145
33146 2008-03-10  Bruno Haible  <bruno@clisp.org>
33147
33148         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
33149         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33150         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33151
33152 2008-03-10  Bruno Haible  <bruno@clisp.org>
33153
33154         * modules/stdlib (Depends-on): Add include_next, remove
33155         absolute-header.
33156
33157 2008-03-09  Bruno Haible  <bruno@clisp.org>
33158
33159         * lib/freadahead.h (freadahead): Document more precisely.
33160         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
33161         the sum of both buffer sizes.
33162         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
33163         * NEWS: Document the change.
33164
33165 2008-03-09  Bruno Haible  <bruno@clisp.org>
33166
33167         Extend freadptr to return also the buffer size.
33168         * lib/freadptr.h (freadptr): Add sizep argument.
33169         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
33170         (freadptr): Add sizep argument. Determine buffer size like freadahead
33171         does.
33172         * tests/test-freadptr.c: Don't include freadahead.h.
33173         (main): Adapt for new calling convention of freadptr.
33174         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
33175         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
33176         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
33177         tests/test-freadptr2.sh.
33178         (Depends): Remove freadahead.
33179         (TESTS): Add test-freadptr2.sh.
33180         (check_PROGRAMS): Add test-freadptr2.
33181
33182 2008-03-09  Bruno Haible  <bruno@clisp.org>
33183
33184         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
33185         Report and solution by Simon Josefsson.
33186
33187 2008-03-06  Bruno Haible  <bruno@clisp.org>
33188
33189         Make fflush after ungetc work on BSD platforms.
33190         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
33191         * tests/test-fflush2.c: New file.
33192         * tests/test-fflush2.sh: New file.
33193         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
33194         tests/test-fflush2.c.
33195         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
33196         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
33197
33198 2008-03-06  Eric Blake  <ebb9@byu.net>
33199
33200         Likewise for ftello.
33201         * modules/ftello (Dependencies): Add extensions.
33202         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
33203
33204 2008-03-06  Bruno Haible  <bruno@clisp.org>
33205
33206         * modules/fseeko (Dependencies): Add extensions.
33207         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
33208         Needed on glibc systems.
33209
33210 2008-03-06  Bruno Haible  <bruno@clisp.org>
33211
33212         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
33213         email address.
33214         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33215
33216 2008-03-06  Bruno Haible  <bruno@clisp.org>
33217
33218         * users.txt: Add libgnupdf.
33219
33220 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33221
33222         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
33223         (Header File Substitutes, Function Substitutes,
33224         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
33225         (Build robot for gnulib): Fix typo.
33226
33227 2008-03-06  Bruno Haible  <bruno@clisp.org>
33228
33229         * doc/gnulib-tool.texi (VCS Issues): Small updates.
33230         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33231
33232 2008-03-06  Bruno Haible  <bruno@clisp.org>
33233
33234         * doc/func.texi: New file, extracted from doc/gnulib.texi.
33235         * doc/gnulib.texi: Include it.
33236
33237 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33238
33239         * modules/func (License): Change license to unlimited; there was
33240         no LGPL parts in the module anyway.
33241
33242 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33243
33244         * modules/__func__: Renamed to modules/func.
33245         * modules/__func__-tests: Renamed to modules/func-tests.
33246         * tests/test-__func__.c: Renamed to tests/test-func.c.
33247         * m4/__func__.m4: Renamed to m4/func.m4.
33248         * doc/gnulib.texi (__func__): Section renamed to func.
33249         Suggested by Eric Blake <ebb9@byu.net>.
33250
33251 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33252
33253         * doc/gnulib.texi (__func__): Use C99 terminology when talking
33254         about __func__.  Make example self-contained.  Suggested by Eric
33255         Blake <ebb9@byu.net>.
33256
33257         * tests/test-__func__.c (main): Avoid extraneous () around __func.
33258         Suggested by Eric Blake <ebb9@byu.net>.
33259
33260 2008-03-06  Simon Josefsson  <simon@josefsson.org>
33261
33262         * modules/__func__: New file.
33263         * modules/__func__-tests: New file.
33264         * tests/test-__func__.c: New file.
33265         * m4/__func__.m4: New file.
33266         * doc/gnulib.texi (__func__): Document __func__ module.
33267
33268 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33269
33270         * modules/byteswap (License): Re-license as LGPLv2+.
33271
33272 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33273
33274         * doc/Makefile: Add pdf target.
33275
33276 2008-03-05  Simon Josefsson  <simon@josefsson.org>
33277
33278         * modules/inline (License): Use 'unlimited', since there are only
33279         *.m4 files in this module.
33280
33281 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33282             Bruno Haible  <bruno@clisp.org>
33283
33284         Add support for HP C 7.1 on OpenVMS 8.3.
33285         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
33286
33287 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
33288
33289         Update VMS specifics.
33290         * lib/getopt.c [VMS]: Remove include of unixlib.h.
33291
33292 2008-03-02  Jim Meyering  <meyering@redhat.com>
33293
33294         Remove the last dependency on the "free" module.
33295         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
33296         Reported by Bob Proulx.
33297
33298         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
33299
33300         Remove useless "if" tests before free.  Deprecate "free" module.
33301         * doc/posix-functions/free.texi: Mention that this
33302         module is no longer useful.
33303         * modules/free (Notice): Say this module is obsolete.
33304         * modules/readutmp (Depends-on): Remove free.
33305         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
33306         * lib/putenv.c (putenv): Likewise.
33307         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
33308         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
33309         * tests/test-c-strcasestr.c (main): Likewise.
33310         * tests/test-c-strstr.c (main): Likewise.
33311         * tests/test-mbscasestr1.c (main): Likewise.
33312         * tests/test-mbscasestr2.c (main): Likewise.
33313         * tests/test-mbsstr1.c (main): Likewise.
33314         * tests/test-mbsstr2.c (main): Likewise.
33315         * tests/test-memmem.c (main): Likewise.
33316         * tests/test-strcasestr.c (main): Likewise.
33317         * tests/test-striconv.c (main): Likewise.
33318         * tests/test-striconveh.c (main): Likewise.
33319         * tests/test-striconveha.c (main): Likewise.
33320         * tests/test-strstr.c (main): Likewise.
33321
33322         * build-aux/git-version-gen: Adjust a comment and the Usage string.
33323
33324         bootstrap: sync from coreutils again
33325         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
33326
33327 2008-03-01  Jim Meyering  <meyering@redhat.com>
33328
33329         bootstrap: sync from coreutils
33330         * build-aux/bootstrap (update_po_files): Copy a .po file into place
33331         also when the target doesn't exist.
33332
33333 2008-03-01  Eric Blake  <ebb9@byu.net>
33334
33335         Fix bugs in last patch.
33336         * lib/memchr2.c (memchr2): Fix typo.
33337         * tests/test-memchr2.c: Test previous bug, and don't use GNU
33338         extension.
33339         Reported by Bruce Korb.
33340
33341         New module 'memchr2'.
33342         * modules/memchr2: New file.
33343         * modules/memchr2-tests: Likewise.
33344         * lib/memchr2.h: Likewise.
33345         * lib/memchr2.c: Likewise, based on memchr.c.
33346         * tests/test-memchr2.c: New test.
33347         * MODULES.html.sh (String handling): Add memchr2.
33348
33349 2008-02-29  Bruno Haible  <bruno@clisp.org>
33350
33351         * modules/freadseek-tests: New file.
33352         * tests/test-freadseek.sh: New file.
33353         * tests/test-freadseek.c: New file.
33354
33355         New module 'freadseek'.
33356         * modules/freadseek: New file.
33357         * lib/freadseek.h: New file.
33358         * lib/freadseek.c: New file.
33359         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
33360
33361 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
33362
33363         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
33364         wydawca.
33365
33366         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
33367         program_invocation_name and program_invocation_short_name are
33368         present.
33369
33370 2008-02-28  Bruno Haible  <bruno@clisp.org>
33371
33372         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
33373         * tests/test-freadptr.sh: Also test non-seekable stdin.
33374
33375 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
33376
33377         * build-aux/bootstrap (source_base, m4_base)
33378         (doc_base, tests_base): New variables.
33379         (gnulib_tool_options): Do not hardcode base directories, use
33380         the above variables instead.
33381
33382 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
33383
33384         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
33385
33386 2008-02-28  Bruno Haible  <bruno@clisp.org>
33387
33388         * modules/freadptr-tests: New file.
33389         * tests/test-freadptr.sh: New file.
33390         * tests/test-freadptr.c: New file.
33391
33392         New module 'freadptr'.
33393         * modules/freadptr: New file.
33394         * lib/freadptr.h: New file.
33395         * lib/freadptr.c: New file.
33396         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
33397
33398 2008-02-26  Karl Berry  <karl@freefriends.org>
33399
33400         Sync from Libtool:
33401         * libltdl/argz.c (argz_add, argz_count): New functions.
33402         * libltdl/argz.in.h: Declare them.
33403         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
33404
33405 2008-02-22  Bruno Haible  <bruno@clisp.org>
33406
33407         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
33408         is a pointer type.  Needed for HP-UX 10.
33409         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
33410         * doc/posix-functions/gmtime_r.texi: Likewise.
33411         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
33412
33413 2008-02-24  Bruno Haible  <bruno@clisp.org>
33414
33415         * modules/environ-tests: New file.
33416         * tests/test-environ.c: New file.
33417
33418         New module 'environ'.
33419         * modules/environ: New file.
33420         * lib/unistd.in.h (environ): New declaration.
33421         * m4/environ.m4: New file.
33422         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
33423         after use.
33424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
33425         HAVE_DECL_ENVIRON.
33426         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
33427         HAVE_DECL_ENVIRON.
33428         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
33429         wrong claim that 'environ' is missing on some systems.
33430         * modules/execute (Depends-on): Add environ.
33431         * lib/execute.c (environ): Remove fallback declaration.
33432         * modules/pipe (Depends-on): Add environ.
33433         * lib/pipe.c (environ): Remove fallback declaration.
33434         * modules/setenv (Depends-on): Add environ.
33435         * lib/setenv.c (environ): Remove fallback declaration.
33436         * modules/unsetenv (Depends-on): Add environ.
33437         * lib/unsetenv.c (environ): Remove fallback declaration.
33438         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
33439         m4/environ.m4.
33440         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
33441         (gl_PREREQ_UNSETENV): Likewise.
33442
33443 2008-02-24  Bruno Haible  <bruno@clisp.org>
33444
33445         * doc/posix-functions/environ.texi: Document the MacOS X problem.
33446
33447 2008-02-20  Bob Proulx  <bob@proulx.com>
33448
33449         Enable use of older two part flavor 'git describe'.
33450         * build-aux/git-version-gen: If using the older two part flavor of
33451         git version then recreate the third part now present in the
33452         newer three part flavor of git describe.
33453
33454 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
33455
33456         * lib/fts.c (fts_build): Typo correction to comment.
33457
33458 2008-02-17  Bruno Haible  <bruno@clisp.org>
33459
33460         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
33461         generating no-op conflicts.
33462
33463 2008-02-17  Bruno Haible  <bruno@clisp.org>
33464
33465         Speed up by 10%.
33466         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
33467         result_entries, rather than an index-based loop.
33468
33469 2008-02-17  Bruno Haible  <bruno@clisp.org>
33470
33471         Speed up by 25%.
33472         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
33473         'hashcode_cached'.
33474         (entry_create): New function.
33475         (entry_hashcode): Use the cached hashcode if possible.
33476         (read_changelog_file, try_split_merged_entry): Use entry_create.
33477
33478 2008-02-17  Bruno Haible  <bruno@clisp.org>
33479
33480         Speed up from O(n^2) to O(n) for long ChangeLog files.
33481         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
33482         (read_changelog_file): Change implementation of entries_reversed list
33483         to rbtreehash.
33484         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
33485
33486 2008-02-17  Bruno Haible  <bruno@clisp.org>
33487
33488         New option --split-merged-entry.
33489         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
33490         (find_paragraph_end, try_split_merged_entry): New functions.
33491         (long_options): Add option --split-merged-entry.
33492         (usage): Document option --split-merged-entry.
33493         (main): Implement option --split-merged-entry.
33494         Reported by Eric Blake.
33495
33496 2008-02-17  Bruno Haible  <bruno@clisp.org>
33497
33498         * lib/git-merge-changelog.c: Include c-strstr.h.
33499         (main): Support the "git pull --rebase" situation.
33500         * modules/git-merge-changelog (Depends-on): Add c-strstr.
33501         Reported by Eric Blake.
33502
33503 2008-02-16  Eric Blake  <ebb9@byu.net>
33504
33505         Avoid doubling \ in common case of "c-maybe" quoting style.
33506         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
33507         eliding outer quotes.
33508         * lib/quotearg.h: Document this.
33509         * tests/test-quotearg.c (result_strings, inputs, results_g)
33510         (flag_results, locale_results): Test it by adding a new string to
33511         each test group.
33512         (compare_strings): Test new string.
33513
33514 2008-02-13  Eric Blake  <ebb9@byu.net>
33515
33516         Avoid trigraph quoting in default output.
33517         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
33518         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
33519         unless explicitly requested.
33520         * tests/test-quotearg.c (flag_results, main): Add additional tests.
33521
33522 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
33523
33524         Don't rely on signed integer overflowing to negative value.
33525         * lib/getugroups.c (getugroups): Include <limits.h>.
33526         Instead, compare against INT_MAX, and increment only if the test passes.
33527
33528 2008-02-13  Jim Meyering  <meyering@redhat.com>
33529         and Eric Blake  <ebb9@byu.net>
33530
33531         Avoid shadowing warning and compile errors on Linux.
33532         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
33533         forwarding macros on Linux.
33534         (dcgettext): Define a stub, for Linux.
33535         (results_g, main): Avoid warnings.
33536
33537 2008-02-12  Eric Blake  <ebb9@byu.net>
33538
33539         Silence warning in last patch.
33540         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
33541
33542         Quotearg part 4: add tests, fix c-maybe colon quoting.
33543         * lib/quotearg.h: Improve documentation.
33544         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
33545         escapes when adding outer quotes.  When quoting trigraphs, use
33546         valid C notation.  When quoting NUL, omit extra characters if next
33547         character is not digit.  Alter prototype.
33548         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
33549         callers.
33550         * modules/quotearg-tests: New module.
33551         * tests/test-quotearg.c: New test.
33552
33553 2008-02-07  Eric Blake  <ebb9@byu.net>
33554
33555         Quotearg part 3: add flag to control outer quote elision.
33556         * lib/quotearg.h (c_maybe_quoting_style): New style.
33557         (enum quoting_flags): Better documentation of flags.
33558         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
33559         c-maybe style.
33560         (quotearg_buffer_restyled): Handle new flag to elide outer
33561         quotes.
33562
33563         Quotearg part 2: add flag that can control NUL elision.
33564         * lib/quotearg.h (set_quoting_flags): New prototype.
33565         * lib/quotearg.c (struct quoting_options): Add flag field.
33566         (set_quoting_flags): New function.
33567         (quotearg_buffer_restyled): Add flags parameter.
33568         (quotearg_alloc_mem): Set the flag if length cannot be returned.
33569         (quotearg_n_options): Set the flag, since length cannot be
33570         returned.
33571         (quoting_options_from_style): Default flags correctly.
33572
33573         Quotearg part 1: more wrappers, restore quotearg_char state.
33574         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
33575         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
33576         (quotearg_colon_mem): New wrappers.
33577         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
33578         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
33579         functions.
33580         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
33581         (quotearg_colon_mem): New functions.
33582
33583 2008-02-11  Bruno Haible  <bruno@clisp.org>
33584
33585         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
33586         library in the current directory: it does not work with parallel make.
33587         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33588
33589 2008-02-11  Bruno Haible  <bruno@clisp.org>
33590
33591         * .gitattributes: New file.
33592
33593 2008-02-11  Jim Meyering  <meyering@redhat.com>
33594
33595         useless-if-before-free: Fix reversed exit values.
33596         * build-aux/useless-if-before-free: Use correct values
33597         for EXIT_MATCH and EXIT_NO_MATCH.
33598
33599         * build-aux/useless-if-before-free: Close stdout carefully.
33600
33601 2008-02-10  Bruno Haible  <bruno@clisp.org>
33602
33603         New module 'git-merge-changelog'.
33604         * modules/git-merge-changelog: New file.
33605         * lib/git-merge-changelog.c: New file.
33606
33607 2008-02-10  Jim Meyering  <meyering@redhat.com>
33608
33609         useless-if-before-free: New option: --list (-l).
33610
33611         useless-if-before-free: Don't exit immediately upon open failure.
33612         * build-aux/useless-if-before-free: Exit 2 for errors.
33613         Upon failure to open a file, don't exit immediately.
33614         Rather, just warn and continue with any remaining files.
33615
33616 2008-02-10  Bruno Haible  <bruno@clisp.org>
33617
33618         New abstract list operation 'node_set_value'.
33619         * lib/gl_list.h (gl_list_node_set_value): New function.
33620         (struct gl_list_implementation): New field node_set_value.
33621         * lib/gl_list.c (gl_list_node_set_value): New function.
33622         * lib/gl_array_list.c (gl_array_node_set_value): New function.
33623         (gl_array_list_implementation): Update.
33624         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
33625         (gl_carray_list_implementation): Update.
33626         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
33627         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33628         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33629         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
33630         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33631         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33632         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33633         Update.
33634         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
33635         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
33636         (gl_sublist_list_implementation): Update.
33637
33638 2008-02-10  Bruno Haible  <bruno@clisp.org>
33639
33640         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
33641         Needed when ELEMENT is #defined to 'some_type *'.
33642
33643 2008-02-10  Jim Meyering  <meyering@redhat.com>
33644
33645         New script and module: useless-if-before-free
33646         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
33647         * build-aux/useless-if-before-free: New file.
33648         * modules/useless-if-before-free: New file.
33649
33650         * build-aux/gitlog-to-changelog: Use committer date, not author date.
33651
33652         xstrtol_error: Fix typo.
33653         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
33654         s/exit_failure/exit_status/.
33655
33656 2008-02-09  Jim Meyering  <meyering@redhat.com>
33657
33658         New script and module: gitlog-to-changelog
33659         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
33660         * modules/gitlog-to-changelog: New file.
33661         * build-aux/gitlog-to-changelog: New file.
33662
33663 2008-02-08  Jim Meyering  <meyering@redhat.com>
33664
33665         Avoid two "parameter unused" warnings.
33666         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
33667         Mark "st" as used.
33668
33669         Use "git COMMAND", not "git-COMMAND".
33670         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
33671         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
33672         * build-aux/git-version-gen: Use "git status", not "git-status".
33673
33674 2008-02-07  Bruno Haible  <bruno@clisp.org>
33675
33676         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
33677         Avoids a crash on Windows Vista.
33678         Reported by Adam Strzelecki <ono@java.pl> via
33679         Simon Josefsson <simon@josefsson.org>.
33680
33681 2008-02-06  Bruno Haible  <bruno@clisp.org>
33682
33683         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
33684         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
33685         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
33686         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
33687         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
33688         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33689         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
33690         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
33691         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
33692         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33693         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33694         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33695         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33696         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33697         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33698         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
33699         left-adjust flag.
33700         * tests/test-snprintf-posix.h (test_function): Likewise.
33701         * tests/test-sprintf-posix.h (test_function): Likewise.
33702         * tests/test-vasprintf-posix.c (test_function): Likewise.
33703         * doc/posix-functions/fprintf.texi: Update.
33704         * doc/posix-functions/printf.texi: Update.
33705         * doc/posix-functions/snprintf.texi: Update.
33706         * doc/posix-functions/sprintf.texi: Update.
33707         * doc/posix-functions/vfprintf.texi: Update.
33708         * doc/posix-functions/vprintf.texi: Update.
33709         * doc/posix-functions/vsnprintf.texi: Update.
33710         * doc/posix-functions/vsprintf.texi: Update.
33711         Reported by Peter Fales <psfales@alcatel-lucent.com>.
33712
33713 2008-02-06  Bruno Haible  <bruno@clisp.org>
33714
33715         Fix bug introduced on 2008-01-26.
33716         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
33717
33718 2008-02-06  Bruno Haible  <bruno@clisp.org>
33719
33720         Fix bug introduced on 2007-06-10.
33721         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
33722         !NEED_PRINTF_FLAG_ZERO.
33723
33724 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
33725
33726         getloadavg: use libperfstat on AIX5
33727         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
33728
33729 2008-02-03  Bruno Haible  <bruno@clisp.org>
33730
33731         * lib/diffseq.h: Add comments about required #includes.
33732         Reported by Michael Biggs <gnulib@doubleplum.net>.
33733
33734 2008-02-01  Bruno Haible  <bruno@clisp.org>
33735
33736         * users.txt: Add gnuit.
33737
33738 2008-01-31  Bruno Haible  <bruno@clisp.org>
33739
33740         * lib/md4.c (set_uint32): Mark as inline.
33741         * lib/md5.c (set_uint32): Likewise.
33742         * lib/sha1.c (set_uint32): Likewise.
33743         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
33744         * m4/md5.m4 (gl_MD5): Likewise.
33745         * m4/sha1.m4 (gl_SHA1): Likewise.
33746
33747 2008-01-31  Jim Meyering  <meyering@redhat.com>
33748
33749         Use "sizeof VAR", rather than a literal "4".
33750         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
33751         * lib/md4.c (md4_read_ctx): Likewise.
33752         * lib/sha1.c (sha1_read_ctx): Likewise.
33753
33754 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33755
33756         * tests/test-sha1.c: New file, based on test-md5.c.
33757
33758         * modules/crypto/sha1-tests: New file.
33759
33760 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33761
33762         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
33763
33764 2008-01-31  Jim Meyering  <meyering@redhat.com>
33765
33766         Prefer "sizeof v" over the equivalent "4".
33767         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
33768         * lib/md5.c (set_uint32): Likewise.
33769         * lib/sha1.c (set_uint32): Likewise.
33770
33771 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33772
33773         * lib/sha1.c (set_uint32): Mark function as static.
33774
33775 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33776
33777         md2: clarify comments to say that alignment is not required.
33778         * lib/md2.h: Remove warning about alignment in comment.
33779         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
33780         never been required.
33781
33782 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33783
33784         md4: adapt alignment constraint fix from sha1.
33785         * lib/md4.c (set_uint32): New function, from sha1.c
33786         (md4_read_ctx): Use it.
33787         (md4_finish_ctx): Doc fix.
33788         * lib/md4.h: Doc fix.
33789
33790 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33791
33792         md5: adapt alignment constraint fix from sha1.
33793         * lib/md5.c (set_uint32): New function, from sha1.c
33794         (md5_read_ctx): Use it.
33795         (md5_finish_ctx): Doc fix.
33796         * lib/md5.h: Doc fix.
33797
33798 2008-01-30  Peter Palfrader  <weasel@debian.org>
33799
33800         sha1: remove the result buffer alignment constraint
33801         * lib/sha1.c (set_uint32): New function.
33802         (sha1_read_ctx): Rewrite to remove the result buffer alignment
33803         constraint.
33804         (sha1_finish_ctx): Remove comment warning about alignment constraint.
33805         * lib/sha1.h: Likewise.
33806
33807 2008-01-30  Andreas Schwab  <schwab@suse.de>
33808             Bruno Haible  <bruno@clisp.org>
33809
33810         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
33811         correct definition of LDBL_MIN_EXP.
33812
33813 2008-01-30  Karl Berry  <karl@gnu.org>
33814
33815         * config/srclist-update: try to preserve x bit on updates.
33816         * config/srclistvars.sh: update for karl.
33817
33818 2008-01-29  Jim Meyering  <meyering@redhat.com>
33819
33820         vasnprintf.c: Avoid warning about unused label
33821         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
33822         "overflow" label definition and associated code with the
33823         same cpp condition that guards the sole use of that label.
33824
33825 2008-01-26  Bruno Haible  <bruno@clisp.org>
33826
33827         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
33828         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
33829         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
33830         * lib/isnanl-nolibm.h (isnanl): Likewise.
33831         Reported by Paul Eggert <eggert@cs.ucla.edu>.
33832
33833 2008-01-26  Bruno Haible  <bruno@clisp.org>
33834
33835         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
33836         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
33837
33838 2008-01-26  Bruno Haible  <bruno@clisp.org>
33839
33840         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
33841         GCC >= 4.0 built-in.
33842         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
33843
33844 2008-01-26  Bruno Haible  <bruno@clisp.org>
33845
33846         Rename isnan, applicable to 'double' only, to isnand.
33847         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
33848         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
33849         (configure.ac): Update.
33850         (Include): Replace "isnan.h" with "isnand.h".
33851         * m4/isnand.m4: Renamed from m4/isnan.m4.
33852         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
33853         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
33854         instead of isnan.c.
33855         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
33856         instead of HAVE_ISNAN_IN_LIBC.
33857         (isnand): Renamed from isnan.
33858         * lib/isnand.c: New file.
33859         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
33860         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
33861         (Makefile.am): Update.
33862         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
33863         Include isnand.h instead of isnan.h.
33864         (main): Test isnand instead of isnan.
33865         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
33866         isnan-nolibm.
33867         * modules/frexp (Depends-on): Likewise.
33868         * modules/frexp-tests (Depends-on): Likewise.
33869         * modules/frexp-nolibm (Depends-on): Likewise.
33870         * modules/frexp-nolibm-tests (Depends-on): Likewise.
33871         * modules/isfinite (Depends-on): Likewise.
33872         * modules/round-tests (Depends-on): Likewise.
33873         * modules/signbit (Depends-on): Likewise.
33874         * modules/signbit-tests (Depends-on): Likewise.
33875         * modules/snprintf-posix (Depends-on): Likewise.
33876         * modules/sprintf-posix (Depends-on): Likewise.
33877         * modules/trunc-tests (Depends-on): Likewise.
33878         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33879         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33880         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33881         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33882         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33883         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33884         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33885         * modules/vasnprintf-posix (Depends-on): Likewise.
33886         * modules/vasprintf-posix (Depends-on): Likewise.
33887         * modules/vfprintf-posix (Depends-on): Likewise.
33888         * modules/vsnprintf-posix (Depends-on): Likewise.
33889         * modules/vsprintf-posix (Depends-on): Likewise.
33890         * lib/frexp.c: Include isnand.h instead of isnan.h.
33891         (ISNAN): Set to isnand instead of isnan.
33892         * lib/isfinite.c: Include isnand.h instead of isnan.h.
33893         (gl_isfinited): Use isnand instead of isnan.
33894         * lib/signbitd.c: Include isnand.h instead of isnan.h.
33895         (gl_signbitd): Use isnand instead of isnan.
33896         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
33897         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
33898         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
33899         (main): Use isnand instead of isnan.
33900         * tests/test-round1.c: Include isnand.h.
33901         (main): Use isnand instead of isnan.
33902         * tests/test-round2.c: Include isnand.h instead of isnan.h.
33903         (ISNAN): Set to isnand instead of isnan.
33904         * tests/test-trunc1.c: Include isnand.h.
33905         (main): Use isnand instead of isnan.
33906         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
33907         (equal): Use isnand instead of isnan.
33908         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
33909         isnand-nolibm.
33910         * NEWS: Mention the change.
33911
33912 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33913             Bruno Haible  <bruno@clisp.org>
33914
33915         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
33916         the GCC builtins for signbits are present and set
33917         REPLACE_SIGNBIT_USING_GCC if so.
33918         * lib/math.in.h (signbit): Define using GCC builtins if
33919         REPLACE_SIGNBIT_USING_GCC is set.
33920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
33921         REPLACE_SIGNBIT_USING_GCC.
33922         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
33923
33924 2008-01-25  Jim Meyering  <meyering@redhat.com>
33925
33926         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
33927         * lib/poll.c: Include <config.h>, not "config.h".
33928         * tests/test-getaddrinfo.c: Likewise.
33929
33930 2008-01-25  Simon Josefsson  <simon@josefsson.org>
33931
33932         * modules/sockets-tests: New file.
33933
33934 2008-01-24  Simon Josefsson  <simon@josefsson.org>
33935
33936         * modules/sockets: New module, can be used to call WSA_Startup and
33937         WSA_Cleanup when needed.
33938
33939         * lib/sockets.h, lib/sockets.c: New files.
33940
33941         * m4/sockets.m4: New file.
33942
33943         * tests/test-sockets.c: New file.
33944
33945 2008-01-19  Bruno Haible  <bruno@clisp.org>
33946
33947         * doc/posix-headers: Renamed from doc/headers.
33948         * doc/posix-functions: Renamed from doc/functions.
33949         * doc/gnulib.texi: Update.
33950
33951 2008-01-19  Bruno Haible  <bruno@clisp.org>
33952
33953         * doc/glibc-functions/strcasestr.texi: Include contents of
33954         doc/functions/strcasestr.texi, fixing the list of platforms.
33955         * doc/functions/strcasestr.texi: Remove file.
33956
33957 2008-01-19  Bruno Haible  <bruno@clisp.org>
33958
33959         * doc/glibc-functions/memmem.texi: Include contents of
33960         doc/functions/memmem.texi.
33961         * doc/functions/memmem.texi: Remove file.
33962
33963 2008-01-18  Bruno Haible  <bruno@clisp.org>
33964
33965         * doc/glibc-functions/*.texi: New files.
33966         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
33967         to use the new files.
33968
33969 2008-01-17  Bruno Haible  <bruno@clisp.org>
33970
33971         * tests/test-gethostname.c (main): Fix printf statement.
33972
33973 2008-01-17  Simon Josefsson  <simon@josefsson.org>
33974
33975         * modules/gethostname-tests: New file.
33976
33977         * tests/test-gethostname.c: New file.
33978
33979 2008-01-17  Simon Josefsson  <simon@josefsson.org>
33980
33981         * lib/gethostname.c: Include string.h unconditionally, strncpy is
33982         used by the UNAME case.  Reported by Bruno Haible
33983         <bruno@clisp.org>.
33984
33985 2008-01-17  Eric Blake  <ebb9@byu.net>
33986
33987         Convert c-strcasestr to be more efficient.
33988         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
33989         (Depends-on): Add c-strcase, remove malloca, strnlen.
33990         * tests/test-c-strcasestr.c (main): Enhance test.
33991         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
33992
33993 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
33994
33995         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
33996         Use it in creating po/Makevars.
33997
33998 2008-01-15  Simon Josefsson  <simon@josefsson.org>
33999
34000         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
34001         Applications that requires it should initialize libgcrypt
34002         manually.
34003
34004 2008-01-16  Simon Josefsson  <simon@josefsson.org>
34005
34006         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
34007
34008 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
34009
34010         Fix problem with getdate on mingw32 reported by Simon Josefsson
34011         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
34012         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
34013         tzname", when deciding whether to declare tzname.
34014         * lib/strftime.c (tzname): Likewise.
34015
34016 2008-01-15  Bruno Haible  <bruno@clisp.org>
34017
34018         Work around a MacOS X 10.5 bug in frexpl().
34019         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
34020         * doc/functions/frexpl.texi: Document the bug.
34021         Reported by Elias Pipping <pipping@gentoo.org>.
34022
34023 2008-01-14  Eric Blake  <ebb9@byu.net>
34024
34025         Touch up previous patch.
34026         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
34027         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
34028
34029         Convert strcasestr module to use Two-Way algorithm.
34030         * modules/strcasestr-simple: New module, based on the old
34031         strcasestr, but with Two-Way rather than KMP.
34032         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
34033         * lib/string.in.h (rpl_strcasestr): Declare.
34034         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
34035         performance.
34036         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
34037         * modules/string (Makefile.am): Support strcasestr.
34038         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34039         * modules/strcasestr-tests (Depends-on): Check for alarm.
34040         * tests/test-strcasestr.c: Augment test.
34041         * lib/str-two-way.h: Clean up stray macro.
34042         * NEWS: Document new module.
34043         * MODULES.html.sh (string handling): Likewise.
34044         * doc/functions/strcasestr.texi: New file.
34045         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
34046         here, since it is not a POSIX function.
34047
34048 2008-01-14  Colin Watson  <cjwatson@debian.org>
34049             Bruno Haible  <bruno@clisp.org>
34050
34051         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
34052         works fine; if not, set REPLACE_STRSIGNAL.
34053         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
34054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34055         REPLACE_STRSIGNAL.
34056         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
34057         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
34058         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
34059
34060 2008-01-14  Bruno Haible  <bruno@clisp.org>
34061
34062         * modules/strsignal (Include): Change to <string.h>.
34063
34064 2008-01-14  Colin Watson  <cjwatson@debian.org>
34065
34066         * modules/argp (Notice): Add a notice recommending to change
34067         XGETTEXT_OPTIONS.
34068         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
34069
34070 2008-01-13  Colin Watson  <cjwatson@debian.org>
34071
34072         * modules/strsignal-tests: New file.
34073         * tests/test-strsignal.c: New file.
34074
34075         * lib/strsignal.c: New file, from glibc with modifications.
34076         * lib/siglist.h: New file, from glibc with modifications.
34077         * lib/string.in.h (strsignal): New declaration.
34078         * m4/strsignal.m4: New file.
34079         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34080         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
34081         * modules/strsignal: New file.
34082         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
34083         HAVE_DECL_STRSIGNAL.
34084
34085 2008-01-13  Bruno Haible  <bruno@clisp.org>
34086
34087         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
34088         locale encoding is not ASCII. Needed for OpenBSD 4.0.
34089         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
34090         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34091
34092 2008-01-13  Bruno Haible  <bruno@clisp.org>
34093
34094         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
34095         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
34096         * lib/argp.h (__attribute__): Likewise.
34097         * lib/c-stack.c (__attribute__): Likewise.
34098         * lib/error.h (__attribute__): Likewise.
34099         * lib/fts.c (__attribute__): Likewise.
34100         * lib/openat.h (__attribute__): Likewise.
34101         * lib/stdio.in.h (__attribute__): Likewise.
34102         * lib/string.in.h (__attribute__): Likewise.
34103         * lib/utimens.c (__attribute__): Likewise.
34104         * lib/vasnprintf.h (__attribute__): Likewise.
34105         * lib/xalloc.h (__attribute__): Likewise.
34106         * lib/xprintf.h (__attribute__): Likewise.
34107         * lib/xstrtol.h (__attribute__): Likewise.
34108         * lib/xvasprintf.h (__attribute__): Likewise.
34109
34110 2008-01-12  Bruno Haible  <bruno@clisp.org>
34111
34112         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
34113         * doc/glibc-headers/a.out.texi: New file.
34114         * doc/glibc-headers/aliases.texi: New file.
34115         * doc/glibc-headers/alloca.texi: New file.
34116         * doc/glibc-headers/ar.texi: New file.
34117         * doc/glibc-headers/argp.texi: New file.
34118         * doc/glibc-headers/argz.texi: New file.
34119         * doc/glibc-headers/byteswap.texi: New file.
34120         * doc/glibc-headers/crypt.texi: New file.
34121         * doc/glibc-headers/endian.texi: New file.
34122         * doc/glibc-headers/envz.texi: New file.
34123         * doc/glibc-headers/err.texi: New file.
34124         * doc/glibc-headers/error.texi: New file.
34125         * doc/glibc-headers/execinfo.texi: New file.
34126         * doc/glibc-headers/fpu_control.texi: New file.
34127         * doc/glibc-headers/fstab.texi: New file.
34128         * doc/glibc-headers/fts.texi: New file.
34129         * doc/glibc-headers/getopt.texi: New file.
34130         * doc/glibc-headers/ieee754.texi: New file.
34131         * doc/glibc-headers/ifaddrs.texi: New file.
34132         * doc/glibc-headers/libintl.texi: New file.
34133         * doc/glibc-headers/mcheck.texi: New file.
34134         * doc/glibc-headers/mntent.texi: New file.
34135         * doc/glibc-headers/obstack.texi: New file.
34136         * doc/glibc-headers/paths.texi: New file.
34137         * doc/glibc-headers/printf.texi: New file.
34138         * doc/glibc-headers/pty.texi: New file.
34139         * doc/glibc-headers/resolv.texi: New file.
34140         * doc/glibc-headers/shadow.texi: New file.
34141         * doc/glibc-headers/sysexits.texi: New file.
34142         * doc/glibc-headers/ttyent.texi: New file.
34143
34144 2008-01-12  Jim Meyering  <meyering@redhat.com>
34145
34146         announce-gen: emit Gnulib's git-based version string.
34147         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
34148         New option --gnulib-version=V, where V is expected to be
34149         the output of running git describe in the gnulib directory.
34150         (get_tool_versions): Request feedback on xdelta.  I suspect it's
34151         not useful, and plan to stop publishing an xdelta file with each
34152         coreutils release.
34153
34154         * build-aux/announce-gen: Also check for lzma-compressed files.
34155
34156 2008-01-11  Bruno Haible  <bruno@clisp.org>
34157
34158         * tests/test-memmem.c (main): Increase maximum allowed time.
34159         * tests/test-strstr.c (main): Likewise.
34160
34161 2008-01-11  Bruno Haible  <bruno@clisp.org>
34162
34163         * doc/functions/memmem.texi: Add more precisions about platforms.
34164         * doc/functions/strstr.texi: Likewise.
34165
34166 2008-01-10  Eric Blake  <ebb9@byu.net>
34167
34168         * m4/strstr.m4: Delete cruft from copy-n-paste.
34169         Reported by Bruno Haible.
34170
34171 2008-01-10  Bruno Haible  <bruno@clisp.org>
34172
34173         Make c-strstr rely on strstr.
34174         * lib/c-strstr.c: Don't include str-kmp.h.
34175         (c_strstr): Define in terms of strstr.
34176         * modules/c-strstr (Files): Remove lib/str-kmp.h.
34177         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
34178
34179 2008-01-10  Bruno Haible  <bruno@clisp.org>
34180
34181         * doc/gnulib.texi (String Functions in C Locale): New section.
34182         * doc/c-ctype.texi: New file.
34183         * doc/c-strcase.texi: New file.
34184         * doc/c-strcaseeq.texi: New file.
34185         * doc/c-strcasestr.texi: New file.
34186         * doc/c-strstr.texi: New file.
34187         * doc/c-strtod.texi: New file.
34188         * doc/c-strtold.texi: New file.
34189
34190 2008-01-10  Eric Blake  <ebb9@byu.net>
34191
34192         * lib/relocatable.h: Fix a comment.
34193
34194 2008-01-10  Eric Blake  <ebb9@byu.net>
34195
34196         Share two-way algorithm.
34197         * lib/str-two-way.h: New file, merged from...
34198         * lib/memmem.c: ...here...
34199         * lib/strstr.c: ...and here.
34200         * modules/memmem (Files): Use it.
34201         * modules/strstr (Files): Likewise.
34202
34203         Avoid quadratic strstr implementations.
34204         * lib/strstr.c: New file.
34205         * m4/strstr.m4: Likewise.
34206         * modules/strstr: Likewise.
34207         * modules/strstr-tests: Likewise.
34208         * tests/test-strstr.c: Likewise.
34209         * lib/string.in.h (rpl_strstr): Declare.
34210         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
34211         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
34212         * modules/string (Makefile.am): Likewise.
34213         * MODULES.html.sh (string handling): Mention new module.
34214         * doc/functions/strstr.texi (strstr): Document the bug.
34215
34216 2008-01-10  Bruno Haible  <bruno@clisp.org>
34217
34218         * lib/relocatable.h (relocate): State whether result is freshly
34219         allocated or not.
34220         * lib/relocatable.c (relocate): Return a freshly allocated string
34221         instead of a pointer to a privately held string.
34222         Reported by Sylvain Beucler <beuc@gnu.org>.
34223
34224 2008-01-10  Colin Watson  <cjwatson@debian.org>
34225
34226         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
34227         s/S_ISNLK/S_ISLNK/.
34228
34229 2008-01-09  Bruno Haible  <bruno@clisp.org>
34230
34231         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
34232         and other files.
34233         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
34234         if it's only a guess.
34235         * modules/memmem: Simplify by depending on memmem-simple.
34236
34237 2008-01-09  Bruno Haible  <bruno@clisp.org>
34238
34239         Work around OpenBSD 4.0 tdelete() bug.
34240         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
34241         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
34242         macros and don't redefine the enum values.
34243         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
34244         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
34245         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
34246
34247 2008-01-09  Bruno Haible  <bruno@clisp.org>
34248
34249         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
34250         (main): Don't perform the tests if setlocale did not install a UTF-8
34251         locale. Needed on OpenBSD 4.0.
34252         * modules/wcwidth-tests (Depends-on): Add localcharset.
34253
34254 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
34255
34256         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
34257         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
34258         * NEWS: announce this.
34259         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
34260
34261 2008-01-09  Simon Josefsson  <simon@josefsson.org>
34262         and Eric Blake  <ebb9@byu.net>
34263
34264         Add memmem-simple module.
34265         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
34266         (gl_FUNC_MEMMEM): Separate performance from presence checks.
34267         * modules/memmem-simple: New file.
34268         * modules/memmem (Description): Tweak.
34269         * MODULES.html.sh (string handling): Mention new module.
34270         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
34271         addressed by memmem-simple.
34272         * NEWS: Document the difference.
34273
34274 2008-01-09  Eric Blake  <ebb9@byu.net>
34275
34276         Give gcc some memmem optimization hints.
34277         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
34278         (strcasestr): Declare as pure.
34279         * modules/memmem (Maintainer): Claim my implementation.
34280
34281 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34282
34283         Support AIX 6.1 and higher.
34284         * build-aux/config.libpath: Likewise.
34285         * build-aux/config.rpath: Likewise.
34286
34287 2008-01-08  Jim Meyering  <meyering@redhat.com>
34288             Bruno Haible  <bruno@clisp.org>
34289
34290         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
34291         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
34292         Reported by Peter Fales in
34293         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
34294
34295 2008-01-08  Bruno Haible  <bruno@clisp.org>
34296
34297         * modules/unictype/category-of (Depends-on): Add
34298         unictype/category-none.
34299         * modules/unictype/category-and-tests (Depends-on): Add
34300         unictype/category-{L,N,Lu,Nd}.
34301         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
34302         * modules/unictype/category-or-tests (Depends-on): Add
34303         unictype/category-{L,N}.
34304         * modules/unictype/category-name-tests (Depends-on): Add
34305         unictype/category-{Z,Nl}.
34306         Reported by Simon Josefsson.
34307
34308 2008-01-08  Bruno Haible  <bruno@clisp.org>
34309
34310         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
34311         convention better.
34312         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
34313         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
34314         Reported by Peter Miller <millerp@canb.auug.org.au>.
34315
34316 2008-01-08  Eric Blake  <ebb9@byu.net>
34317
34318         Rewrite memmem to guarantee linear complexity without malloc.
34319         * lib/memmem.c (memmem): Use Two-Way rather than
34320         Knuth-Morris-Pratt, to allow O(1) space usage.
34321         (critical_factorization, two_way_short_needle)
34322         (two_way_long_needle): New functions.
34323         (knuth_morris_pratt): Delete.
34324         * modules/memmem (Depends-on): No longer need malloca or stdbool.
34325         Add stdint.
34326         * tests/test-memmem.c (main): Add tests for periodic needle and
34327         sublinear performance.
34328         * doc/functions/memmem.texi (memmem): Document other deficiencies
34329         in cygwin and older glibc.
34330
34331 2008-01-08  Bruno Haible  <bruno@clisp.org>
34332
34333         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
34334         augmentation.
34335
34336 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
34337
34338         Add a configure time option: --disable-acl.
34339         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
34340         AC_ARG_ENABLE(acl).
34341
34342 2008-01-06  Simon Josefsson  <simon@josefsson.org>
34343
34344         * tests/test-localename.c: Don't include obsolete "setenv.h".
34345
34346         * modules/localename-tests (Depends-on): Need unsetenv.
34347
34348 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34349
34350         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
34351
34352 2008-01-06  Colin Watson  <cjwatson@debian.org>
34353
34354         * users.txt: Add man-db.
34355
34356 2008-01-07  Bruno Haible  <bruno@clisp.org>
34357
34358         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
34359         previous section name.
34360
34361 2008-01-07  Bruno Haible  <bruno@clisp.org>
34362
34363         * lib/progname.c (set_program_name): Don't strip off a leading
34364         "lt-" prefix outside a .libs directory.
34365         Suggested by Paul Eggert.
34366
34367 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
34368             Bruno Haible  <bruno@clisp.org>
34369
34370         Improve memory cleanup in 'relocatable' module.
34371         * lib/relocatable.h (compute_curr_prefix): Change return type to
34372         'char *'.
34373         * lib/relocatable.c (compute_curr_prefix): Change return type to
34374         'char *'. Free curr_installdir after use.
34375         (relocate): Free curr_prefix_better after use.
34376         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
34377
34378 2008-01-01  Bruno Haible  <bruno@clisp.org>
34379
34380         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
34381         failure on older glibc systems.
34382         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34383
34384 2008-01-05  Eric Blake  <ebb9@byu.net>
34385
34386         Avoid quadratic system memmem.
34387         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
34388         Reported by Ralf Wildenhues.
34389
34390         Fix memmem test for mingw.
34391         * modules/memmem-tests (configure.ac): Check for alarm.
34392         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
34393         it.
34394         * doc/functions/memmem.texi: New file.
34395         * doc/gnulib.texi (Function Substitutes): Add memmem.
34396         Reported by Bruno Haible.
34397
34398 2008-01-04  Bruno Haible  <bruno@clisp.org>
34399
34400         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
34401         Require gl_HEADER_STRINGS_H_DEFAULTS, not
34402         gl_HEADER_STRING_H_DEFAULTS.
34403
34404 2008-01-04  Eric Blake  <ebb9@byu.net>
34405
34406         Shorten duration of memmem test.
34407         * tests/test-memmem.c (main): Use alarm to declare failure if test
34408         is taking too long.
34409         Reported by Ralf Wildenhues.
34410
34411 2007-12-21  Simon Josefsson  <simon@josefsson.org>
34412
34413         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
34414         string, needed by strerror.
34415
34416 2008-01-03  Colin Watson  <cjwatson@debian.org>
34417             Bruno Haible  <bruno@clisp.org>
34418
34419         * doc/gnulib-tool.texi (Localization): New section.
34420
34421 2008-01-02  Bruno Haible  <bruno@clisp.org>
34422
34423         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
34424         variables to 'unsigned char *' type.
34425         Reported by Paul Eggert.
34426
34427 2008-01-02  Jim Meyering  <jim@meyering.net>
34428
34429         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
34430
34431 2007-12-31  Jim Meyering  <jim@meyering.net>
34432
34433         Avoid use of private FTS type name.
34434         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
34435
34436 2007-12-30  Karl Berry  <karl@gnu.org>
34437
34438         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
34439         work around defect in Texinfo and/or the standalone Info browser.
34440
34441 2007-12-30  Bruno Haible  <bruno@clisp.org>
34442
34443         Unify 5 copies of the KMP code.
34444         * lib/str-kmp.h: New file.
34445         * lib/c-strcasestr.c: Include str-kmp.h.
34446         (knuth_morris_pratt): Remove function.
34447         (c_strcasestr): Update.
34448         * lib/c-strstr.c: Include str-kmp.h.
34449         (knuth_morris_pratt): Remove function.
34450         (c_strcasestr): Update.
34451         * lib/mbscasestr.c: Include str-kmp.h.
34452         (knuth_morris_pratt_unibyte): Remove function.
34453         * lib/mbsstr.c: Include str-kmp.h.
34454         (knuth_morris_pratt_unibyte): Remove function.
34455         * lib/strcasestr.c: Include str-kmp.h.
34456         (knuth_morris_pratt): Remove function.
34457         (strcasestr): Update.
34458         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
34459         * modules/c-strstr (Files): Likewise.
34460         * modules/mbscasestr (Files): Likewise.
34461         * modules/mbsstr (Files): Likewise.
34462         * modules/strcasestr (Files): Likewise.
34463         Suggested by Paul Eggert.
34464
34465 2007-12-30  Bruno Haible  <bruno@clisp.org>
34466
34467         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
34468         defined.
34469
34470 2007-12-30  Bruno Haible  <bruno@clisp.org>
34471
34472         * lib/xmalloca.h: Include xalloc.h.
34473         (xnmalloca): New macro.
34474
34475 2007-12-30  Bruno Haible  <bruno@clisp.org>
34476
34477         * lib/malloca.h (nmalloca): New macro.
34478         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
34479         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
34480         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
34481         knuth_morris_pratt_multibyte): Likewise.
34482         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
34483         knuth_morris_pratt_multibyte): Likewise.
34484         * lib/memmem.c (knuth_morris_pratt): Likewise.
34485         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
34486
34487 2007-12-25  Bruno Haible  <bruno@clisp.org>
34488
34489         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
34490         * lib/glob.c: Don't include openat.h.
34491         (link_exists2_p): Add back the code that deals with the
34492         !GLOB_ALTDIRFUNC case.
34493         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
34494         let it do the filename concatenation.
34495         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
34496         * modules/glob (Depends-on): Remove openat.
34497
34498 2007-12-31  Bruno Haible  <bruno@clisp.org>
34499
34500         * modules/dirfd (License): Change to LGPLv2+.
34501         Approved by Jim Meyering.
34502
34503 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
34504
34505         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
34506         when multiplying M by sizeof (size_t).
34507
34508 2007-12-10  Martin Lambers  <marlam@marlam.de>
34509
34510         Override getpagesize on mingw.
34511         * lib/getpagesize.c: New file.
34512         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
34513         * modules/getpagesize (Files): Add lib/getpagesize.c.
34514         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
34515         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34516         REPLACE_GETPAGESIZE.
34517         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
34518
34519 2007-12-25  Bruno Haible  <bruno@clisp.org>
34520
34521         * modules/localcharset (Notice): New field.
34522         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
34523         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
34524
34525 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
34526             Bruno Haible  <bruno@clisp.org>
34527
34528         Avoid using the syntax symbol() in formatted documentation.
34529         * MODULES.html.sh (func_module): When replacing symbol() with a
34530         hyperlink, remove the parentheses. Show an error if some remain.
34531         Recognize and render the '...' syntax.
34532         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
34533         Rework. Add paragraph about GCC's inlining.
34534         * doc/alloca.texi: Likewise.
34535         * doc/error.texi: Remove parentheses from symbol reference.
34536         * doc/gnulib-intro.texi: Likewise.
34537         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
34538         * modules/fnmatch (Description): Reword to say "the ... function".
34539         * modules/full-read (Description): Likewise.
34540         * modules/full-write (Description): Likewise.
34541         * modules/safe-read (Description): Likewise.
34542         * modules/safe-write (Description): Likewise.
34543         * modules/strchrnul (Description): Likewise.
34544         * modules/trim (Description): Likewise.
34545         * modules/error (Description): Remove parentheses from symbol
34546         references.
34547         * modules/verror (Description): Likewise.
34548         Reported by Karl Berry.
34549
34550 2007-12-25  Bruno Haible  <bruno@clisp.org>
34551
34552         Fixup after 2007-10-16 commit.
34553         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
34554
34555 2007-12-24  Bruno Haible  <bruno@clisp.org>
34556
34557         Make --enable-relocatable work with DESTDIR.
34558         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
34559         to compute installdir from destprog.
34560         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
34561         also set the RELOC_DESTDIR variable.
34562         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34563
34564 2007-12-24  Bruno Haible  <bruno@clisp.org>
34565
34566         Fix link error due to xalloc_die().
34567         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
34568         of xreadlink.
34569         * lib/relocwrapper.c: Update comments.
34570         * build-aux/install-reloc: Remove xreadlink.c from file list.
34571         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
34572         xreadlink.c.
34573         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34574
34575 2007-12-24  Bruno Haible  <bruno@clisp.org>
34576
34577         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
34578         * lib/setenv.h: Remove file.
34579         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
34580         lib/setenv.h.
34581         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
34582         (Depends-on): Add stdlib.
34583         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
34584         gl_FUNC_UNSETENV.
34585         (Include): Replace setenv.h with <stdlib.h>.
34586         * modules/unsetenv: New file.
34587         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
34588         * lib/unsetenv.c: Include <stdlib.h> first.
34589         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
34590         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
34591         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
34592         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
34593         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
34594         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34595         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
34596         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
34597         * doc/functions/unsetenv.texi: Update.
34598         * modules/xsetenv (Depends-on): Add unsetenv.
34599         * modules/getdate (Depends-on): Likewise.
34600         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
34601         * lib/xsetenv.c: Don't include setenv.h.
34602         * lib/getdate.y: Likewise.
34603         * lib/relocwrapper.c: Likewise.
34604         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
34605         (Depends-on): Add stdlib.
34606         * NEWS: Mention the changes.
34607         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
34608
34609 2007-12-23  Bruno Haible  <bruno@clisp.org>
34610
34611         * lib/memmem.c (memmem): Use lowercase variable names. Tab
34612         indentation.
34613
34614 2007-12-23  Bruno Haible  <bruno@clisp.org>
34615
34616         * lib/c-strcasestr.c: Add more comments.
34617         * lib/c-strstr.c: Likewise.
34618         * lib/mbscasestr.c: Likewise.
34619         * lib/mbsstr.c: Likewise.
34620         * lib/strcasestr.c: Likewise.
34621         * lib/memmem.c: Likewise.
34622
34623 2007-12-23  Bruno Haible  <bruno@clisp.org>
34624
34625         * tests/test-memmem.c: Include <string.h> first.
34626
34627 2007-12-22  Bruno Haible  <bruno@clisp.org>
34628
34629         * gnulib-tool (func_create_testdir): Change $auxdir while generating
34630         the contents of $testsbase.
34631         Reported by Ralf Wildenhues.
34632
34633 2007-12-22  Bruno Haible  <bruno@clisp.org>
34634
34635         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
34636         two variables local_ldadd_before, local_ldadd_last.
34637
34638 2007-12-20  Eric Blake  <ebb9@byu.net>
34639
34640         Work around circular library issue when cross-compiling.
34641         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
34642         that progname.o does not need to pull in rpl_memcmp.
34643
34644 2007-12-19  Eric Blake  <ebb9@byu.net>
34645
34646         Fix memmem to avoid O(n^2) worst-case complexity.
34647         * lib/memmem.c (knuth_morris_pratt): New function.
34648         (memmem): Use it if first few naive iterations fail.
34649         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
34650         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
34651         * modules/memchr (License): Likewise.
34652         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
34653         malloca.
34654         * tests/test-memmem.c: Rewrite, borrowing ideas from
34655         test-mbsstr1.c; the old version wouldn't even compile!
34656         * modules/memmem-tests: New file.
34657         * lib/string.in.h (rpl_memmem): Add declaration.
34658         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
34659         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
34660         REPLACE_MEMMEM.
34661
34662 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34663
34664         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
34665         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
34666         before any system include files, and undef after them all.  This
34667         should fix a problem on VMS reported by John E. Malmberg in
34668         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
34669
34670 2007-12-17  Eric Blake  <ebb9@byu.net>
34671
34672         Revert addition of verify, for BSD/OS.
34673         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
34674         can't handle large files, for the sake of obsolete platforms.
34675         * modules/fseeko (Depends-on): Remove verify.
34676         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
34677         * doc/functions/ftello.texi (ftello): Likewise.
34678         * doc/functions/fgetpos.texi (fgetpos): Likewise.
34679         Reported by Larry Jones.
34680
34681 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
34682
34683         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
34684         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
34685
34686 2007-12-17  Jim Meyering  <meyering@redhat.com>
34687
34688         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
34689         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
34690         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
34691         * modules/getcwd (Depends-on): Add openat.
34692         Reported by Petr Salinger.
34693
34694 2007-12-17  Bruno Haible  <bruno@clisp.org>
34695
34696         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
34697         avoid a segmentation fault of the configure test on x86_64 systems.
34698
34699 2007-12-15  Jim Meyering  <meyering@redhat.com>
34700
34701         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
34702
34703 2007-12-13  Eric Blake  <ebb9@byu.net>
34704
34705         Another fseek test.
34706         * tests/test-fseek.c (main): Also test ungetc handling.
34707         * tests/test-fseeko.c (main): Likewise.
34708         * modules/fseeko (Depends-on): Add verify.
34709         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
34710         large.
34711         Reported by Larry Jones.
34712
34713         Fix fseeko on mingw.
34714         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
34715         seek.
34716
34717         Beef up fseek tests.
34718         * tests/test-fseek.c (main): Also test eof handling.
34719         * tests/test-fseeko.c (main): Likewise.
34720         Reported by Larry Jones.
34721
34722 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
34723
34724         Fix fseeko on BSD-based platforms.
34725         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
34726         successful seek.
34727
34728 2007-12-12  Eric Blake  <ebb9@byu.net>
34729
34730         Allow circular dependency of separate libtests.a
34731         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
34732         when use_libtests.
34733
34734 2007-12-11  Eric Blake  <ebb9@byu.net>
34735
34736         Fix bug with -0.0L in previous patch.
34737         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
34738         * tests/test-isnan.c (main): Also test on zeroes.
34739         * tests/test-isnanf.c (main): Likewise.
34740         * tests/test-isnanl.h (main): Likewise.
34741
34742         Detect pseudo-denormals on x86 even when cross-compiling.
34743         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
34744         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
34745         invalid bit patterns that happen to satisfy ==.
34746
34747         Avoid link failures with separate libtests.a.
34748         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
34749         last, to satisfy circular dependencies.
34750
34751 2007-12-11  Eric Blake  <ebb9@byu.net>
34752         and Bruno Haible  <bruno@clisp.org>
34753
34754         Fix OpenBSD 4.0 <float.h> handling of long double.
34755         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
34756         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
34757         * doc/headers/float.texi (float.h): Document OpenBSD bug.
34758
34759 2007-12-11  Jim Meyering  <meyering@redhat.com>
34760
34761         * users.txt: Add libvirt.
34762
34763         Support versions of autoconf prior to 2.59c.
34764         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
34765         if it is not already defined.
34766
34767 2007-12-09  Bruno Haible  <bruno@clisp.org>
34768
34769         Let 'gnulib-tool --import' collect sources needed for the tests in
34770         tests/ rather than in lib/.
34771         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
34772         argument. If true, add rules to generate libtests.a, and put libtests.a
34773         into $(LDADD). Consider source files in subdirectories and set
34774         uses_subdirs.
34775         (func_emit_initmacro_start, func_emit_initmacro_end,
34776         func_emit_initmacro_done): Pass all arguments explicitly.
34777         (func_import): Determine two module lists main_modules,
34778         testsrelated_modules. Determine use_libtests. Determine two variables
34779         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
34780         instead of just sed_transform_lib_file. Determine two variables
34781         main_files and testsrelated_files. Compute 'files' as the union of
34782         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
34783         func_add_or_update. In the generated gnulib-comp.m4, collect the
34784         object files for tests/ in different variables than those for lib/.
34785         Substitute LIBTESTS_LIBDEPS.
34786         (func_create_testdir): Combine the uses_subdirs results from
34787         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
34788
34789 2007-12-09  Bruno Haible  <bruno@clisp.org>
34790
34791         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
34792         the build-aux directory.
34793
34794 2007-12-09  Bruno Haible  <bruno@clisp.org>
34795
34796         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
34797         introduced on 2006-09-09.
34798
34799 2007-12-07  Jim Meyering  <meyering@redhat.com>
34800
34801         Let these macros work also with autoconf-2.59.
34802         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
34803         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
34804         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
34805
34806 2007-12-06  Jim Meyering  <meyering@redhat.com>
34807
34808         Avoid a configure-time syntax error in gl_FUNC_ACL.
34809         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
34810         function in each branch, before testing the cache variable.
34811
34812 2007-12-04  Eric Blake  <ebb9@byu.net>
34813
34814         Make scripts executable.
34815         * build-aux/config.guess: Add execute permissions.
34816         * build-aux/config.sub: Likewise.
34817         * build-aux/gendocs.sh: Likewise.
34818
34819         Fix frexp on mingw.
34820         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
34821         cross-compiling.
34822         * doc/functions/frexp.texi (frexp): Document the bug.
34823
34824         Make cygwin fseeko check more reliable.
34825         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
34826         version numbers, rather than unrelated feature check.
34827         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
34828         * doc/functions/ftello.texi (ftello): Likewise.
34829         Reported by Bruno Haible.
34830
34831         * m4/strerror.m4: Bump version number.
34832
34833 2007-12-03  Bruno Haible  <bruno@clisp.org>
34834
34835         * doc/functions/mprotect.texi: Mention the mingw problem.
34836
34837 2007-12-03  Eric Blake  <ebb9@byu.net>
34838
34839         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
34840         REPLACE_STRERROR is initialized before this macro.
34841
34842 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
34843
34844         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
34845         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
34846         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
34847         put -lsec in even for programs other than 'ls'.  This fixes a problem
34848         for gettext reported by Bruno Haible in
34849         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
34850         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
34851         Add support for Solaris 10.  This isn't efficient, but should get the
34852         job done for now.
34853
34854 2007-12-03  James Youngman  <jay@gnu.org>
34855
34856         * doc/regexprops-generic.texi: change "an close-group" to "a
34857         close-group" and "illegal" to "not allowed".
34858
34859 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34860
34861         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
34862         pr_byname.h. Needed for the rare case when the maintainer has done
34863         "make maintainer-clean" in the source directory and then attempts a
34864         build outside the source directory.
34865         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
34866         scripts_byname.h.
34867
34868 2007-12-02  Martin Lambers <marlam@marlam.de>
34869             Bruno Haible  <bruno@clisp.org>
34870
34871         * lib/getpagesize.h: Remove file.
34872         * lib/unistd.in.h: Include declaration of getpagesize here.
34873         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
34874         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
34875         HAVE_SYS_PARAM_H.
34876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
34877         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34878         * modules/getpagesize (Files): Remove lib/getpagesize.h.
34879         (Depends-on): Add unistd.
34880         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34881         (Include): Use <unistd.h> instead of getpagesize.h.
34882         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
34883         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34884         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
34885         gl_GETPAGESIZE invocation, already handled by module dependency.
34886         * lib/pagealign_alloc.c: Don't include getpagesize.h.
34887
34888 2007-12-02  Bruno Haible  <bruno@clisp.org>
34889
34890         * modules/strings-tests: New file.
34891         * tests/test-strings.c: New file.
34892
34893         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
34894         * lib/strings.in.h: New file.
34895         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
34896         * m4/strings_h.m4: New file.
34897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
34898         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
34899         * modules/strings: New file.
34900         * modules/string (Makefile.am): Update.
34901         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
34902         Reported by Karl Berry.
34903
34904 2007-12-01  Eric Blake  <ebb9@byu.net>
34905
34906         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
34907         accomodate fix in cygwin 1.5.25.
34908
34909 2007-12-01  Jim Meyering  <meyering@redhat.com>
34910
34911         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
34912         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
34913         that would inhibit utf8-optimization of a regexp containing line-
34914         or buffer-anchors, e.g., `^', `$'.
34915
34916 2007-11-30  Bruno Haible  <bruno@clisp.org>
34917
34918         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
34919         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
34920         glthread_recursive_lock_init.
34921         * lib/lock.c (glthread_recursive_lock_init)
34922         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
34923         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34924
34925 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34926
34927         New function qset_acl, like set_acl but with syscall semantics.
34928         * lib/acl.h (qset_acl): New decl.
34929         * lib/acl.c (qset_acl): New function.
34930         (set_acl): Use new function.  Use more-consistent diagnostics.
34931
34932 2007-11-28  Jim Meyering  <meyering@redhat.com>
34933
34934         * modules/physmem (License): Change from GPL to LGPLv2+.
34935
34936 2007-11-26  Bruno Haible  <bruno@clisp.org>
34937
34938         * lib/vasnprintf.c (decode_long_double): Don't abort if the
34939         'long double' type has excess precision.
34940         Reported by Jim Meyering in
34941         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
34942
34943 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34944
34945         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
34946         Sync from <http://gnu.org/licenses>.
34947         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
34948         with license text from same location.
34949         * doc/maintain.texi, doc/standards.texi:  Sync from
34950         <http://savannah.gnu.org/projects/gnustandards>.
34951
34952 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
34953         and Jim Meyering  <meyering@redhat.com>
34954
34955         Adjust getdate' grammar to accept a slightly more regular language.
34956         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
34957         Before, the former was rejected.
34958         * lib/getdate.y (digits_to_date_time): New function, factored
34959         out of ...
34960         (number): ...here.  Just call digits_to_date_time.
34961         (hybrid): New non-terminal to handle an <unsigned number,
34962         signed relative offset> sequence consistently.
34963
34964 2007-11-18  Jim Meyering  <meyering@redhat.com>
34965
34966         Pull my changes from coreutils:
34967         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
34968         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
34969         use of $gnulib_tool_option_extras, so that it's separated from the
34970         preceding argument.
34971
34972         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
34973         * build-aux/bootstrap (cp_mark_as_generated): Create any required
34974         parent destination directories before copying a file into place.
34975
34976 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
34977
34978         bootstrap: work also with 4-argument variant of AC_INIT
34979         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
34980
34981 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34982
34983         Port test-getaddrinfo to Solaris.
34984         Problem reported by Bruno Haible in
34985         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
34986         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
34987         explanation of setting 'hints'.
34988         Don't reject an implementation merely because it returns EAI_SERVICE.
34989         (EAI_SERVICE): Define to 0 if not defined.
34990
34991 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
34992
34993         The license of gnu-make and posix-shell is now "GPLed build tool".
34994         * modules/gnu-make (License): Likewise.
34995         * modules/posix-shell (License): Likewise.
34996
34997         New module posix-shell, for determining a POSIX shell
34998         or perhaps something that is close enough to a POSIX shell.
34999         * m4/posix-shell.m4: New file.
35000         * modules/posix-shell: New file.
35001
35002         * MODULES.html.sh: Mention new module.
35003
35004         New module gnu-make, for determining whether we're using GNU Make.
35005         * m4/gnu-make.m4: New file.
35006         * modules/gnu-make: New file.
35007         * MODULES.html.sh: Mention new module.
35008
35009 2007-11-14  Jim Meyering  <meyering@redhat.com>
35010
35011         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
35012         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
35013         use this macro to create a function _definition_.
35014         Remove useless "#undef ARGMATCH_DIE".
35015
35016 2007-11-14  Bruno Haible  <bruno@clisp.org>
35017
35018         * lib/config.charset: Update for OpenBSD 4.1.
35019         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
35020
35021 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
35022
35023         Document 64-bit #if problems in stdint.texi.
35024         * doc/headers/stdint.texi (stdint.h): Mention problems with
35025         64-bit-#if, and how to work around them.
35026
35027         Don't insist on 'long long int' support in the preprocessor.  It
35028         breaks too many things.  For example, PRIdMAX still uses a 'long
35029         long int' format with the latest Sun compiler, even though
35030         HAVE_LONG_LONG_INT isn't defined due to that compiler's
35031         preprocessor problem.  This causes the latest coreutils to dump
35032         core on Solaris 10 sparc with the Sun C compiler.
35033         Instead, fix the 2007-10-16 problem in a different way, by evaluating
35034         the troublesome expressions at configure-time, not at #if-time.
35035         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
35036         preprocessor.
35037         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
35038         compile-time C checks, done at 'configure'-time.
35039         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
35040         * modules/inttypes (Makefile): Substitute the new symbols that
35041         gl_INTTYPES_H now generates.
35042         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
35043
35044 2007-11-12  Bruno Haible  <bruno@clisp.org>
35045
35046         Tests for Unicode character classification functions.
35047
35048         * modules/unictype/bidicategory-byname-tests: New file.
35049         * modules/unictype/bidicategory-name-tests: New file.
35050         * modules/unictype/bidicategory-of-tests: New file.
35051         * modules/unictype/bidicategory-test-tests: New file.
35052         * modules/unictype/block-list-tests: New file.
35053         * modules/unictype/block-of-tests: New file.
35054         * modules/unictype/block-test-tests: New file.
35055         * modules/unictype/category-C-tests: New file.
35056         * modules/unictype/category-Cc-tests: New file.
35057         * modules/unictype/category-Cf-tests: New file.
35058         * modules/unictype/category-Cn-tests: New file.
35059         * modules/unictype/category-Co-tests: New file.
35060         * modules/unictype/category-Cs-tests: New file.
35061         * modules/unictype/category-L-tests: New file.
35062         * modules/unictype/category-Ll-tests: New file.
35063         * modules/unictype/category-Lm-tests: New file.
35064         * modules/unictype/category-Lo-tests: New file.
35065         * modules/unictype/category-Lt-tests: New file.
35066         * modules/unictype/category-Lu-tests: New file.
35067         * modules/unictype/category-M-tests: New file.
35068         * modules/unictype/category-Mc-tests: New file.
35069         * modules/unictype/category-Me-tests: New file.
35070         * modules/unictype/category-Mn-tests: New file.
35071         * modules/unictype/category-N-tests: New file.
35072         * modules/unictype/category-Nd-tests: New file.
35073         * modules/unictype/category-Nl-tests: New file.
35074         * modules/unictype/category-No-tests: New file.
35075         * modules/unictype/category-P-tests: New file.
35076         * modules/unictype/category-Pc-tests: New file.
35077         * modules/unictype/category-Pd-tests: New file.
35078         * modules/unictype/category-Pe-tests: New file.
35079         * modules/unictype/category-Pf-tests: New file.
35080         * modules/unictype/category-Pi-tests: New file.
35081         * modules/unictype/category-Po-tests: New file.
35082         * modules/unictype/category-Ps-tests: New file.
35083         * modules/unictype/category-S-tests: New file.
35084         * modules/unictype/category-Sc-tests: New file.
35085         * modules/unictype/category-Sk-tests: New file.
35086         * modules/unictype/category-Sm-tests: New file.
35087         * modules/unictype/category-So-tests: New file.
35088         * modules/unictype/category-Z-tests: New file.
35089         * modules/unictype/category-Zl-tests: New file.
35090         * modules/unictype/category-Zp-tests: New file.
35091         * modules/unictype/category-Zs-tests: New file.
35092         * modules/unictype/category-and-not-tests: New file.
35093         * modules/unictype/category-and-tests: New file.
35094         * modules/unictype/category-byname-tests: New file.
35095         * modules/unictype/category-name-tests: New file.
35096         * modules/unictype/category-none-tests: New file.
35097         * modules/unictype/category-of-tests: New file.
35098         * modules/unictype/category-or-tests: New file.
35099         * modules/unictype/category-test-withtable-tests: New file.
35100         * modules/unictype/combining-class-tests: New file.
35101         * modules/unictype/ctype-alnum-tests: New file.
35102         * modules/unictype/ctype-alpha-tests: New file.
35103         * modules/unictype/ctype-blank-tests: New file.
35104         * modules/unictype/ctype-cntrl-tests: New file.
35105         * modules/unictype/ctype-digit-tests: New file.
35106         * modules/unictype/ctype-graph-tests: New file.
35107         * modules/unictype/ctype-lower-tests: New file.
35108         * modules/unictype/ctype-print-tests: New file.
35109         * modules/unictype/ctype-punct-tests: New file.
35110         * modules/unictype/ctype-space-tests: New file.
35111         * modules/unictype/ctype-upper-tests: New file.
35112         * modules/unictype/ctype-xdigit-tests: New file.
35113         * modules/unictype/decimal-digit-tests: New file.
35114         * modules/unictype/digit-tests: New file.
35115         * modules/unictype/mirror-tests: New file.
35116         * modules/unictype/numeric-tests: New file.
35117         * modules/unictype/property-alphabetic-tests: New file.
35118         * modules/unictype/property-ascii-hex-digit-tests: New file.
35119         * modules/unictype/property-bidi-arabic-digit-tests: New file.
35120         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
35121         * modules/unictype/property-bidi-block-separator-tests: New file.
35122         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
35123         * modules/unictype/property-bidi-common-separator-tests: New file.
35124         * modules/unictype/property-bidi-control-tests: New file.
35125         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
35126         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
35127         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
35128         * modules/unictype/property-bidi-european-digit-tests: New file.
35129         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
35130         * modules/unictype/property-bidi-left-to-right-tests: New file.
35131         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
35132         * modules/unictype/property-bidi-other-neutral-tests: New file.
35133         * modules/unictype/property-bidi-pdf-tests: New file.
35134         * modules/unictype/property-bidi-segment-separator-tests: New file.
35135         * modules/unictype/property-bidi-whitespace-tests: New file.
35136         * modules/unictype/property-byname-tests: New file.
35137         * modules/unictype/property-combining-tests: New file.
35138         * modules/unictype/property-composite-tests: New file.
35139         * modules/unictype/property-currency-symbol-tests: New file.
35140         * modules/unictype/property-dash-tests: New file.
35141         * modules/unictype/property-decimal-digit-tests: New file.
35142         * modules/unictype/property-default-ignorable-code-point-tests: New file.
35143         * modules/unictype/property-deprecated-tests: New file.
35144         * modules/unictype/property-diacritic-tests: New file.
35145         * modules/unictype/property-extender-tests: New file.
35146         * modules/unictype/property-format-control-tests: New file.
35147         * modules/unictype/property-grapheme-base-tests: New file.
35148         * modules/unictype/property-grapheme-extend-tests: New file.
35149         * modules/unictype/property-grapheme-link-tests: New file.
35150         * modules/unictype/property-hex-digit-tests: New file.
35151         * modules/unictype/property-hyphen-tests: New file.
35152         * modules/unictype/property-id-continue-tests: New file.
35153         * modules/unictype/property-id-start-tests: New file.
35154         * modules/unictype/property-ideographic-tests: New file.
35155         * modules/unictype/property-ids-binary-operator-tests: New file.
35156         * modules/unictype/property-ids-trinary-operator-tests: New file.
35157         * modules/unictype/property-ignorable-control-tests: New file.
35158         * modules/unictype/property-iso-control-tests: New file.
35159         * modules/unictype/property-join-control-tests: New file.
35160         * modules/unictype/property-left-of-pair-tests: New file.
35161         * modules/unictype/property-line-separator-tests: New file.
35162         * modules/unictype/property-logical-order-exception-tests: New file.
35163         * modules/unictype/property-lowercase-tests: New file.
35164         * modules/unictype/property-math-tests: New file.
35165         * modules/unictype/property-non-break-tests: New file.
35166         * modules/unictype/property-not-a-character-tests: New file.
35167         * modules/unictype/property-numeric-tests: New file.
35168         * modules/unictype/property-other-alphabetic-tests: New file.
35169         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
35170         * modules/unictype/property-other-grapheme-extend-tests: New file.
35171         * modules/unictype/property-other-id-continue-tests: New file.
35172         * modules/unictype/property-other-id-start-tests: New file.
35173         * modules/unictype/property-other-lowercase-tests: New file.
35174         * modules/unictype/property-other-math-tests: New file.
35175         * modules/unictype/property-other-uppercase-tests: New file.
35176         * modules/unictype/property-paired-punctuation-tests: New file.
35177         * modules/unictype/property-paragraph-separator-tests: New file.
35178         * modules/unictype/property-pattern-syntax-tests: New file.
35179         * modules/unictype/property-pattern-white-space-tests: New file.
35180         * modules/unictype/property-private-use-tests: New file.
35181         * modules/unictype/property-punctuation-tests: New file.
35182         * modules/unictype/property-quotation-mark-tests: New file.
35183         * modules/unictype/property-radical-tests: New file.
35184         * modules/unictype/property-sentence-terminal-tests: New file.
35185         * modules/unictype/property-soft-dotted-tests: New file.
35186         * modules/unictype/property-space-tests: New file.
35187         * modules/unictype/property-terminal-punctuation-tests: New file.
35188         * modules/unictype/property-test-tests: New file.
35189         * modules/unictype/property-titlecase-tests: New file.
35190         * modules/unictype/property-unassigned-code-value-tests: New file.
35191         * modules/unictype/property-unified-ideograph-tests: New file.
35192         * modules/unictype/property-uppercase-tests: New file.
35193         * modules/unictype/property-variation-selector-tests: New file.
35194         * modules/unictype/property-white-space-tests: New file.
35195         * modules/unictype/property-xid-continue-tests: New file.
35196         * modules/unictype/property-xid-start-tests: New file.
35197         * modules/unictype/property-zero-width-tests: New file.
35198         * modules/unictype/scripts-tests: New file.
35199         * modules/unictype/syntax-c-ident-tests: New file.
35200         * modules/unictype/syntax-c-whitespace-tests: New file.
35201         * modules/unictype/syntax-java-ident-tests: New file.
35202         * modules/unictype/syntax-java-whitespace-tests: New file.
35203         * tests/unictype/test-bidi_byname.c: New file.
35204         * tests/unictype/test-bidi_name.c: New file.
35205         * tests/unictype/test-bidi_of.c: New file.
35206         * tests/unictype/test-bidi_test.c: New file.
35207         * tests/unictype/test-block_list.c: New file.
35208         * tests/unictype/test-block_of.c: New file.
35209         * tests/unictype/test-block_test.c: New file.
35210         * tests/unictype/test-categ_and.c: New file.
35211         * tests/unictype/test-categ_and_not.c: New file.
35212         * tests/unictype/test-categ_byname.c: New file.
35213         * tests/unictype/test-categ_name.c: New file.
35214         * tests/unictype/test-categ_none.c: New file.
35215         * tests/unictype/test-categ_of.c: New file.
35216         * tests/unictype/test-categ_or.c: New file.
35217         * tests/unictype/test-categ_test_withtable.c: New file.
35218         * tests/unictype/test-combining.c: New file.
35219         * tests/unictype/test-decdigit.c: New file.
35220         * tests/unictype/test-digit.c: New file.
35221         * tests/unictype/test-mirror.c: New file.
35222         * tests/unictype/test-numeric.c: New file.
35223         * tests/unictype/test-pr_byname.c: New file.
35224         * tests/unictype/test-pr_test.c: New file.
35225         * tests/unictype/test-predicate-part1.h: New file.
35226         * tests/unictype/test-predicate-part2.h: New file.
35227         * tests/unictype/test-scripts.c: New file.
35228         * tests/unictype/test-sy_c_ident.c: New file.
35229         * tests/unictype/test-sy_java_ident.c: New file.
35230
35231         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
35232         for Unicode 5.0.0.
35233         * tests/unictype/test-categ_Cc.c: Likewise.
35234         * tests/unictype/test-categ_Cf.c: Likewise.
35235         * tests/unictype/test-categ_Cn.c: Likewise.
35236         * tests/unictype/test-categ_Co.c: Likewise.
35237         * tests/unictype/test-categ_Cs.c: Likewise.
35238         * tests/unictype/test-categ_L.c: Likewise.
35239         * tests/unictype/test-categ_Ll.c: Likewise.
35240         * tests/unictype/test-categ_Lm.c: Likewise.
35241         * tests/unictype/test-categ_Lo.c: Likewise.
35242         * tests/unictype/test-categ_Lt.c: Likewise.
35243         * tests/unictype/test-categ_Lu.c: Likewise.
35244         * tests/unictype/test-categ_M.c: Likewise.
35245         * tests/unictype/test-categ_Mc.c: Likewise.
35246         * tests/unictype/test-categ_Me.c: Likewise.
35247         * tests/unictype/test-categ_Mn.c: Likewise.
35248         * tests/unictype/test-categ_N.c: Likewise.
35249         * tests/unictype/test-categ_Nd.c: Likewise.
35250         * tests/unictype/test-categ_Nl.c: Likewise.
35251         * tests/unictype/test-categ_No.c: Likewise.
35252         * tests/unictype/test-categ_P.c: Likewise.
35253         * tests/unictype/test-categ_Pc.c: Likewise.
35254         * tests/unictype/test-categ_Pd.c: Likewise.
35255         * tests/unictype/test-categ_Pe.c: Likewise.
35256         * tests/unictype/test-categ_Pf.c: Likewise.
35257         * tests/unictype/test-categ_Pi.c: Likewise.
35258         * tests/unictype/test-categ_Po.c: Likewise.
35259         * tests/unictype/test-categ_Ps.c: Likewise.
35260         * tests/unictype/test-categ_S.c: Likewise.
35261         * tests/unictype/test-categ_Sc.c: Likewise.
35262         * tests/unictype/test-categ_Sk.c: Likewise.
35263         * tests/unictype/test-categ_Sm.c: Likewise.
35264         * tests/unictype/test-categ_So.c: Likewise.
35265         * tests/unictype/test-categ_Z.c: Likewise.
35266         * tests/unictype/test-categ_Zl.c: Likewise.
35267         * tests/unictype/test-categ_Zp.c: Likewise.
35268         * tests/unictype/test-categ_Zs.c: Likewise.
35269         * tests/unictype/test-ctype_alnum.c: Likewise.
35270         * tests/unictype/test-ctype_alpha.c: Likewise.
35271         * tests/unictype/test-ctype_blank.c: Likewise.
35272         * tests/unictype/test-ctype_cntrl.c: Likewise.
35273         * tests/unictype/test-ctype_digit.c: Likewise.
35274         * tests/unictype/test-ctype_graph.c: Likewise.
35275         * tests/unictype/test-ctype_lower.c: Likewise.
35276         * tests/unictype/test-ctype_print.c: Likewise.
35277         * tests/unictype/test-ctype_punct.c: Likewise.
35278         * tests/unictype/test-ctype_space.c: Likewise.
35279         * tests/unictype/test-ctype_upper.c: Likewise.
35280         * tests/unictype/test-ctype_xdigit.c: Likewise.
35281         * tests/unictype/test-decdigit.h: Likewise.
35282         * tests/unictype/test-digit.h: Likewise.
35283         * tests/unictype/test-numeric.h: Likewise.
35284         * tests/unictype/test-pr_alphabetic.c: Likewise.
35285         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
35286         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
35287         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
35288         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
35289         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
35290         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
35291         * tests/unictype/test-pr_bidi_control.c: Likewise.
35292         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
35293         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
35294         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
35295         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
35296         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
35297         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
35298         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
35299         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
35300         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
35301         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
35302         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
35303         * tests/unictype/test-pr_combining.c: Likewise.
35304         * tests/unictype/test-pr_composite.c: Likewise.
35305         * tests/unictype/test-pr_currency_symbol.c: Likewise.
35306         * tests/unictype/test-pr_dash.c: Likewise.
35307         * tests/unictype/test-pr_decimal_digit.c: Likewise.
35308         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
35309         * tests/unictype/test-pr_deprecated.c: Likewise.
35310         * tests/unictype/test-pr_diacritic.c: Likewise.
35311         * tests/unictype/test-pr_extender.c: Likewise.
35312         * tests/unictype/test-pr_format_control.c: Likewise.
35313         * tests/unictype/test-pr_grapheme_base.c: Likewise.
35314         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
35315         * tests/unictype/test-pr_grapheme_link.c: Likewise.
35316         * tests/unictype/test-pr_hex_digit.c: Likewise.
35317         * tests/unictype/test-pr_hyphen.c: Likewise.
35318         * tests/unictype/test-pr_id_continue.c: Likewise.
35319         * tests/unictype/test-pr_id_start.c: Likewise.
35320         * tests/unictype/test-pr_ideographic.c: Likewise.
35321         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
35322         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
35323         * tests/unictype/test-pr_ignorable_control.c: Likewise.
35324         * tests/unictype/test-pr_iso_control.c: Likewise.
35325         * tests/unictype/test-pr_join_control.c: Likewise.
35326         * tests/unictype/test-pr_left_of_pair.c: Likewise.
35327         * tests/unictype/test-pr_line_separator.c: Likewise.
35328         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
35329         * tests/unictype/test-pr_lowercase.c: Likewise.
35330         * tests/unictype/test-pr_math.c: Likewise.
35331         * tests/unictype/test-pr_non_break.c: Likewise.
35332         * tests/unictype/test-pr_not_a_character.c: Likewise.
35333         * tests/unictype/test-pr_numeric.c: Likewise.
35334         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
35335         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
35336         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
35337         * tests/unictype/test-pr_other_id_continue.c: Likewise.
35338         * tests/unictype/test-pr_other_id_start.c: Likewise.
35339         * tests/unictype/test-pr_other_lowercase.c: Likewise.
35340         * tests/unictype/test-pr_other_math.c: Likewise.
35341         * tests/unictype/test-pr_other_uppercase.c: Likewise.
35342         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
35343         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
35344         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
35345         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
35346         * tests/unictype/test-pr_private_use.c: Likewise.
35347         * tests/unictype/test-pr_punctuation.c: Likewise.
35348         * tests/unictype/test-pr_quotation_mark.c: Likewise.
35349         * tests/unictype/test-pr_radical.c: Likewise.
35350         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
35351         * tests/unictype/test-pr_soft_dotted.c: Likewise.
35352         * tests/unictype/test-pr_space.c: Likewise.
35353         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
35354         * tests/unictype/test-pr_titlecase.c: Likewise.
35355         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
35356         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
35357         * tests/unictype/test-pr_uppercase.c: Likewise.
35358         * tests/unictype/test-pr_variation_selector.c: Likewise.
35359         * tests/unictype/test-pr_white_space.c: Likewise.
35360         * tests/unictype/test-pr_xid_continue.c: Likewise.
35361         * tests/unictype/test-pr_xid_start.c: Likewise.
35362         * tests/unictype/test-pr_zero_width.c: Likewise.
35363         * tests/unictype/test-sy_c_whitespace.c: Likewise.
35364         * tests/unictype/test-sy_java_whitespace.c: Likewise.
35365
35366 2007-11-12  Bruno Haible  <bruno@clisp.org>
35367
35368         Unicode character classification functions.
35369         * lib/unictype.h: New file.
35370         * modules/unictype/base: New file.
35371         * modules/unictype/category-L: New file.
35372         * modules/unictype/category-Lu: New file.
35373         * modules/unictype/category-Ll: New file.
35374         * modules/unictype/category-Lt: New file.
35375         * modules/unictype/category-Lm: New file.
35376         * modules/unictype/category-Lo: New file.
35377         * modules/unictype/category-M: New file.
35378         * modules/unictype/category-Mn: New file.
35379         * modules/unictype/category-Mc: New file.
35380         * modules/unictype/category-Me: New file.
35381         * modules/unictype/category-N: New file.
35382         * modules/unictype/category-Nd: New file.
35383         * modules/unictype/category-Nl: New file.
35384         * modules/unictype/category-No: New file.
35385         * modules/unictype/category-P: New file.
35386         * modules/unictype/category-Pc: New file.
35387         * modules/unictype/category-Pd: New file.
35388         * modules/unictype/category-Ps: New file.
35389         * modules/unictype/category-Pe: New file.
35390         * modules/unictype/category-Pi: New file.
35391         * modules/unictype/category-Pf: New file.
35392         * modules/unictype/category-Po: New file.
35393         * modules/unictype/category-S: New file.
35394         * modules/unictype/category-Sm: New file.
35395         * modules/unictype/category-Sc: New file.
35396         * modules/unictype/category-Sk: New file.
35397         * modules/unictype/category-So: New file.
35398         * modules/unictype/category-Z: New file.
35399         * modules/unictype/category-Zs: New file.
35400         * modules/unictype/category-Zl: New file.
35401         * modules/unictype/category-Zp: New file.
35402         * modules/unictype/category-C: New file.
35403         * modules/unictype/category-Cc: New file.
35404         * modules/unictype/category-Cf: New file.
35405         * modules/unictype/category-Cs: New file.
35406         * modules/unictype/category-Co: New file.
35407         * modules/unictype/category-Cn: New file.
35408         * modules/unictype/category-or: New file.
35409         * modules/unictype/category-of: New file.
35410         * modules/unictype/category-test: New file.
35411         * modules/unictype/category-test-withtable: New file.
35412         * modules/unictype/category-byname: New file.
35413         * modules/unictype/category-none: New file.
35414         * modules/unictype/category-and: New file.
35415         * modules/unictype/category-and-not: New file.
35416         * modules/unictype/category-name: New file.
35417         * modules/unictype/combining-class: New file.
35418         * modules/unictype/category-all: New file.
35419         * modules/unictype/bidicategory-all: New file.
35420         * modules/unictype/bidicategory-byname: New file.
35421         * modules/unictype/bidicategory-name: New file.
35422         * modules/unictype/bidicategory-of: New file.
35423         * modules/unictype/bidicategory-test: New file.
35424         * modules/unictype/decimal-digit: New file.
35425         * modules/unictype/digit: New file.
35426         * modules/unictype/numeric: New file.
35427         * modules/unictype/mirror: New file.
35428         * modules/unictype/property-white-space: New file.
35429         * modules/unictype/property-alphabetic: New file.
35430         * modules/unictype/property-other-alphabetic: New file.
35431         * modules/unictype/property-not-a-character: New file.
35432         * modules/unictype/property-default-ignorable-code-point: New file.
35433         * modules/unictype/property-other-default-ignorable-code-point: New
35434         file.
35435         * modules/unictype/property-deprecated: New file.
35436         * modules/unictype/property-logical-order-exception: New file.
35437         * modules/unictype/property-variation-selector: New file.
35438         * modules/unictype/property-private-use: New file.
35439         * modules/unictype/property-unassigned-code-value: New file.
35440         * modules/unictype/property-uppercase: New file.
35441         * modules/unictype/property-other-uppercase: New file.
35442         * modules/unictype/property-lowercase: New file.
35443         * modules/unictype/property-other-lowercase: New file.
35444         * modules/unictype/property-titlecase: New file.
35445         * modules/unictype/property-soft-dotted: New file.
35446         * modules/unictype/property-id-start: New file.
35447         * modules/unictype/property-other-id-start: New file.
35448         * modules/unictype/property-id-continue: New file.
35449         * modules/unictype/property-other-id-continue: New file.
35450         * modules/unictype/property-xid-start: New file.
35451         * modules/unictype/property-xid-continue: New file.
35452         * modules/unictype/property-pattern-white-space: New file.
35453         * modules/unictype/property-pattern-syntax: New file.
35454         * modules/unictype/property-join-control: New file.
35455         * modules/unictype/property-grapheme-base: New file.
35456         * modules/unictype/property-grapheme-extend: New file.
35457         * modules/unictype/property-other-grapheme-extend: New file.
35458         * modules/unictype/property-grapheme-link: New file.
35459         * modules/unictype/property-bidi-control: New file.
35460         * modules/unictype/property-bidi-left-to-right: New file.
35461         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
35462         * modules/unictype/property-bidi-arabic-right-to-left: New file.
35463         * modules/unictype/property-bidi-european-digit: New file.
35464         * modules/unictype/property-bidi-eur-num-separator: New file.
35465         * modules/unictype/property-bidi-eur-num-terminator: New file.
35466         * modules/unictype/property-bidi-arabic-digit: New file.
35467         * modules/unictype/property-bidi-common-separator: New file.
35468         * modules/unictype/property-bidi-block-separator: New file.
35469         * modules/unictype/property-bidi-segment-separator: New file.
35470         * modules/unictype/property-bidi-whitespace: New file.
35471         * modules/unictype/property-bidi-non-spacing-mark: New file.
35472         * modules/unictype/property-bidi-boundary-neutral: New file.
35473         * modules/unictype/property-bidi-pdf: New file.
35474         * modules/unictype/property-bidi-embedding-or-override: New file.
35475         * modules/unictype/property-bidi-other-neutral: New file.
35476         * modules/unictype/property-hex-digit: New file.
35477         * modules/unictype/property-ascii-hex-digit: New file.
35478         * modules/unictype/property-ideographic: New file.
35479         * modules/unictype/property-unified-ideograph: New file.
35480         * modules/unictype/property-radical: New file.
35481         * modules/unictype/property-ids-binary-operator: New file.
35482         * modules/unictype/property-ids-trinary-operator: New file.
35483         * modules/unictype/property-zero-width: New file.
35484         * modules/unictype/property-space: New file.
35485         * modules/unictype/property-non-break: New file.
35486         * modules/unictype/property-iso-control: New file.
35487         * modules/unictype/property-format-control: New file.
35488         * modules/unictype/property-dash: New file.
35489         * modules/unictype/property-hyphen: New file.
35490         * modules/unictype/property-punctuation: New file.
35491         * modules/unictype/property-line-separator: New file.
35492         * modules/unictype/property-paragraph-separator: New file.
35493         * modules/unictype/property-quotation-mark: New file.
35494         * modules/unictype/property-sentence-terminal: New file.
35495         * modules/unictype/property-terminal-punctuation: New file.
35496         * modules/unictype/property-currency-symbol: New file.
35497         * modules/unictype/property-math: New file.
35498         * modules/unictype/property-other-math: New file.
35499         * modules/unictype/property-paired-punctuation: New file.
35500         * modules/unictype/property-left-of-pair: New file.
35501         * modules/unictype/property-combining: New file.
35502         * modules/unictype/property-composite: New file.
35503         * modules/unictype/property-decimal-digit: New file.
35504         * modules/unictype/property-numeric: New file.
35505         * modules/unictype/property-diacritic: New file.
35506         * modules/unictype/property-extender: New file.
35507         * modules/unictype/property-ignorable-control: New file.
35508         * modules/unictype/property-test: New file.
35509         * modules/unictype/property-byname: New file.
35510         * modules/unictype/property-all: New file.
35511         * modules/unictype/scripts: New file.
35512         * modules/unictype/scripts-all: New file.
35513         * modules/unictype/block-of: New file.
35514         * modules/unictype/block-test: New file.
35515         * modules/unictype/block-list: New file.
35516         * modules/unictype/block-all: New file.
35517         * modules/unictype/syntax-c-whitespace: New file.
35518         * modules/unictype/syntax-java-whitespace: New file.
35519         * modules/unictype/syntax-c-ident: New file.
35520         * modules/unictype/syntax-java-ident: New file.
35521         * modules/unictype/ctype-alnum: New file.
35522         * modules/unictype/ctype-alpha: New file.
35523         * modules/unictype/ctype-cntrl: New file.
35524         * modules/unictype/ctype-digit: New file.
35525         * modules/unictype/ctype-graph: New file.
35526         * modules/unictype/ctype-lower: New file.
35527         * modules/unictype/ctype-print: New file.
35528         * modules/unictype/ctype-punct: New file.
35529         * modules/unictype/ctype-space: New file.
35530         * modules/unictype/ctype-upper: New file.
35531         * modules/unictype/ctype-xdigit: New file.
35532         * modules/unictype/ctype-blank: New file.
35533         * lib/unictype/bidi_byname.c: New file.
35534         * lib/unictype/bidi_name.c: New file.
35535         * lib/unictype/bidi_of.c: New file.
35536         * lib/unictype/bidi_test.c: New file.
35537         * lib/unictype/bitmap.h: New file.
35538         * lib/unictype/block_test.c: New file.
35539         * lib/unictype/blocks.c: New file.
35540         * lib/unictype/categ_C.c: New file.
35541         * lib/unictype/categ_Cc.c: New file.
35542         * lib/unictype/categ_Cf.c: New file.
35543         * lib/unictype/categ_Cn.c: New file.
35544         * lib/unictype/categ_Co.c: New file.
35545         * lib/unictype/categ_Cs.c: New file.
35546         * lib/unictype/categ_L.c: New file.
35547         * lib/unictype/categ_Ll.c: New file.
35548         * lib/unictype/categ_Lm.c: New file.
35549         * lib/unictype/categ_Lo.c: New file.
35550         * lib/unictype/categ_Lt.c: New file.
35551         * lib/unictype/categ_Lu.c: New file.
35552         * lib/unictype/categ_M.c: New file.
35553         * lib/unictype/categ_Mc.c: New file.
35554         * lib/unictype/categ_Me.c: New file.
35555         * lib/unictype/categ_Mn.c: New file.
35556         * lib/unictype/categ_N.c: New file.
35557         * lib/unictype/categ_Nd.c: New file.
35558         * lib/unictype/categ_Nl.c: New file.
35559         * lib/unictype/categ_No.c: New file.
35560         * lib/unictype/categ_P.c: New file.
35561         * lib/unictype/categ_Pc.c: New file.
35562         * lib/unictype/categ_Pd.c: New file.
35563         * lib/unictype/categ_Pe.c: New file.
35564         * lib/unictype/categ_Pf.c: New file.
35565         * lib/unictype/categ_Pi.c: New file.
35566         * lib/unictype/categ_Po.c: New file.
35567         * lib/unictype/categ_Ps.c: New file.
35568         * lib/unictype/categ_S.c: New file.
35569         * lib/unictype/categ_Sc.c: New file.
35570         * lib/unictype/categ_Sk.c: New file.
35571         * lib/unictype/categ_Sm.c: New file.
35572         * lib/unictype/categ_So.c: New file.
35573         * lib/unictype/categ_Z.c: New file.
35574         * lib/unictype/categ_Zl.c: New file.
35575         * lib/unictype/categ_Zp.c: New file.
35576         * lib/unictype/categ_Zs.c: New file.
35577         * lib/unictype/categ_and.c: New file.
35578         * lib/unictype/categ_and_not.c: New file.
35579         * lib/unictype/categ_byname.c: New file.
35580         * lib/unictype/categ_name.c: New file.
35581         * lib/unictype/categ_none.c: New file.
35582         * lib/unictype/categ_of.c: New file.
35583         * lib/unictype/categ_or.c: New file.
35584         * lib/unictype/categ_test.c: New file.
35585         * lib/unictype/combining.c: New file.
35586         * lib/unictype/ctype_alnum.c: New file.
35587         * lib/unictype/ctype_alpha.c: New file.
35588         * lib/unictype/ctype_blank.c: New file.
35589         * lib/unictype/ctype_cntrl.c: New file.
35590         * lib/unictype/ctype_digit.c: New file.
35591         * lib/unictype/ctype_graph.c: New file.
35592         * lib/unictype/ctype_lower.c: New file.
35593         * lib/unictype/ctype_print.c: New file.
35594         * lib/unictype/ctype_punct.c: New file.
35595         * lib/unictype/ctype_space.c: New file.
35596         * lib/unictype/ctype_upper.c: New file.
35597         * lib/unictype/ctype_xdigit.c: New file.
35598         * lib/unictype/decdigit.c: New file.
35599         * lib/unictype/digit.c: New file.
35600         * lib/unictype/identsyntaxmap.h: New file.
35601         * lib/unictype/mirror.c: New file.
35602         * lib/unictype/numeric.c: New file.
35603         * lib/unictype/pr_alphabetic.c: New file.
35604         * lib/unictype/pr_ascii_hex_digit.c: New file.
35605         * lib/unictype/pr_bidi_arabic_digit.c: New file.
35606         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
35607         * lib/unictype/pr_bidi_block_separator.c: New file.
35608         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
35609         * lib/unictype/pr_bidi_common_separator.c: New file.
35610         * lib/unictype/pr_bidi_control.c: New file.
35611         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
35612         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
35613         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
35614         * lib/unictype/pr_bidi_european_digit.c: New file.
35615         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
35616         * lib/unictype/pr_bidi_left_to_right.c: New file.
35617         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
35618         * lib/unictype/pr_bidi_other_neutral.c: New file.
35619         * lib/unictype/pr_bidi_pdf.c: New file.
35620         * lib/unictype/pr_bidi_segment_separator.c: New file.
35621         * lib/unictype/pr_bidi_whitespace.c: New file.
35622         * lib/unictype/pr_byname.c: New file.
35623         * lib/unictype/pr_byname.gperf: New file.
35624         * lib/unictype/pr_combining.c: New file.
35625         * lib/unictype/pr_composite.c: New file.
35626         * lib/unictype/pr_currency_symbol.c: New file.
35627         * lib/unictype/pr_dash.c: New file.
35628         * lib/unictype/pr_decimal_digit.c: New file.
35629         * lib/unictype/pr_default_ignorable_code_point.c: New file.
35630         * lib/unictype/pr_deprecated.c: New file.
35631         * lib/unictype/pr_diacritic.c: New file.
35632         * lib/unictype/pr_extender.c: New file.
35633         * lib/unictype/pr_format_control.c: New file.
35634         * lib/unictype/pr_grapheme_base.c: New file.
35635         * lib/unictype/pr_grapheme_extend.c: New file.
35636         * lib/unictype/pr_grapheme_link.c: New file.
35637         * lib/unictype/pr_hex_digit.c: New file.
35638         * lib/unictype/pr_hyphen.c: New file.
35639         * lib/unictype/pr_id_continue.c: New file.
35640         * lib/unictype/pr_id_start.c: New file.
35641         * lib/unictype/pr_ideographic.c: New file.
35642         * lib/unictype/pr_ids_binary_operator.c: New file.
35643         * lib/unictype/pr_ids_trinary_operator.c: New file.
35644         * lib/unictype/pr_ignorable_control.c: New file.
35645         * lib/unictype/pr_iso_control.c: New file.
35646         * lib/unictype/pr_join_control.c: New file.
35647         * lib/unictype/pr_left_of_pair.c: New file.
35648         * lib/unictype/pr_line_separator.c: New file.
35649         * lib/unictype/pr_logical_order_exception.c: New file.
35650         * lib/unictype/pr_lowercase.c: New file.
35651         * lib/unictype/pr_math.c: New file.
35652         * lib/unictype/pr_non_break.c: New file.
35653         * lib/unictype/pr_not_a_character.c: New file.
35654         * lib/unictype/pr_numeric.c: New file.
35655         * lib/unictype/pr_other_alphabetic.c: New file.
35656         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
35657         * lib/unictype/pr_other_grapheme_extend.c: New file.
35658         * lib/unictype/pr_other_id_continue.c: New file.
35659         * lib/unictype/pr_other_id_start.c: New file.
35660         * lib/unictype/pr_other_lowercase.c: New file.
35661         * lib/unictype/pr_other_math.c: New file.
35662         * lib/unictype/pr_other_uppercase.c: New file.
35663         * lib/unictype/pr_paired_punctuation.c: New file.
35664         * lib/unictype/pr_paragraph_separator.c: New file.
35665         * lib/unictype/pr_pattern_syntax.c: New file.
35666         * lib/unictype/pr_pattern_white_space.c: New file.
35667         * lib/unictype/pr_private_use.c: New file.
35668         * lib/unictype/pr_punctuation.c: New file.
35669         * lib/unictype/pr_quotation_mark.c: New file.
35670         * lib/unictype/pr_radical.c: New file.
35671         * lib/unictype/pr_sentence_terminal.c: New file.
35672         * lib/unictype/pr_soft_dotted.c: New file.
35673         * lib/unictype/pr_space.c: New file.
35674         * lib/unictype/pr_terminal_punctuation.c: New file.
35675         * lib/unictype/pr_test.c: New file.
35676         * lib/unictype/pr_titlecase.c: New file.
35677         * lib/unictype/pr_unassigned_code_value.c: New file.
35678         * lib/unictype/pr_unified_ideograph.c: New file.
35679         * lib/unictype/pr_uppercase.c: New file.
35680         * lib/unictype/pr_variation_selector.c: New file.
35681         * lib/unictype/pr_white_space.c: New file.
35682         * lib/unictype/pr_xid_continue.c: New file.
35683         * lib/unictype/pr_xid_start.c: New file.
35684         * lib/unictype/pr_zero_width.c: New file.
35685         * lib/unictype/scripts.c: New file.
35686         * lib/unictype/sy_c_ident.c: New file.
35687         * lib/unictype/sy_c_whitespace.c: New file.
35688         * lib/unictype/sy_java_ident.c: New file.
35689         * lib/unictype/sy_java_whitespace.c: New file.
35690
35691         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
35692         Unicode 5.0.0.
35693         * lib/unictype/blocks.h: Likewise.
35694         * lib/unictype/categ_C.h: Likewise.
35695         * lib/unictype/categ_Cc.h: Likewise.
35696         * lib/unictype/categ_Cf.h: Likewise.
35697         * lib/unictype/categ_Cn.h: Likewise.
35698         * lib/unictype/categ_Co.h: Likewise.
35699         * lib/unictype/categ_Cs.h: Likewise.
35700         * lib/unictype/categ_L.h: Likewise.
35701         * lib/unictype/categ_Ll.h: Likewise.
35702         * lib/unictype/categ_Lm.h: Likewise.
35703         * lib/unictype/categ_Lo.h: Likewise.
35704         * lib/unictype/categ_Lt.h: Likewise.
35705         * lib/unictype/categ_Lu.h: Likewise.
35706         * lib/unictype/categ_M.h: Likewise.
35707         * lib/unictype/categ_Mc.h: Likewise.
35708         * lib/unictype/categ_Me.h: Likewise.
35709         * lib/unictype/categ_Mn.h: Likewise.
35710         * lib/unictype/categ_N.h: Likewise.
35711         * lib/unictype/categ_Nd.h: Likewise.
35712         * lib/unictype/categ_Nl.h: Likewise.
35713         * lib/unictype/categ_No.h: Likewise.
35714         * lib/unictype/categ_P.h: Likewise.
35715         * lib/unictype/categ_Pc.h: Likewise.
35716         * lib/unictype/categ_Pd.h: Likewise.
35717         * lib/unictype/categ_Pe.h: Likewise.
35718         * lib/unictype/categ_Pf.h: Likewise.
35719         * lib/unictype/categ_Pi.h: Likewise.
35720         * lib/unictype/categ_Po.h: Likewise.
35721         * lib/unictype/categ_Ps.h: Likewise.
35722         * lib/unictype/categ_S.h: Likewise.
35723         * lib/unictype/categ_Sc.h: Likewise.
35724         * lib/unictype/categ_Sk.h: Likewise.
35725         * lib/unictype/categ_Sm.h: Likewise.
35726         * lib/unictype/categ_So.h: Likewise.
35727         * lib/unictype/categ_Z.h: Likewise.
35728         * lib/unictype/categ_Zl.h: Likewise.
35729         * lib/unictype/categ_Zp.h: Likewise.
35730         * lib/unictype/categ_Zs.h: Likewise.
35731         * lib/unictype/categ_of.h: Likewise.
35732         * lib/unictype/combining.h: Likewise.
35733         * lib/unictype/ctype_alnum.h: Likewise.
35734         * lib/unictype/ctype_alpha.h: Likewise.
35735         * lib/unictype/ctype_blank.h: Likewise.
35736         * lib/unictype/ctype_cntrl.h: Likewise.
35737         * lib/unictype/ctype_digit.h: Likewise.
35738         * lib/unictype/ctype_graph.h: Likewise.
35739         * lib/unictype/ctype_lower.h: Likewise.
35740         * lib/unictype/ctype_print.h: Likewise.
35741         * lib/unictype/ctype_punct.h: Likewise.
35742         * lib/unictype/ctype_space.h: Likewise.
35743         * lib/unictype/ctype_upper.h: Likewise.
35744         * lib/unictype/ctype_xdigit.h: Likewise.
35745         * lib/unictype/decdigit.h: Likewise.
35746         * lib/unictype/digit.h: Likewise.
35747         * lib/unictype/mirror.h: Likewise.
35748         * lib/unictype/numeric.h: Likewise.
35749         * lib/unictype/pr_alphabetic.h: Likewise.
35750         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
35751         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
35752         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
35753         * lib/unictype/pr_bidi_block_separator.h: Likewise.
35754         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
35755         * lib/unictype/pr_bidi_common_separator.h: Likewise.
35756         * lib/unictype/pr_bidi_control.h: Likewise.
35757         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
35758         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
35759         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
35760         * lib/unictype/pr_bidi_european_digit.h: Likewise.
35761         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
35762         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
35763         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
35764         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
35765         * lib/unictype/pr_bidi_pdf.h: Likewise.
35766         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
35767         * lib/unictype/pr_bidi_whitespace.h: Likewise.
35768         * lib/unictype/pr_combining.h: Likewise.
35769         * lib/unictype/pr_composite.h: Likewise.
35770         * lib/unictype/pr_currency_symbol.h: Likewise.
35771         * lib/unictype/pr_dash.h: Likewise.
35772         * lib/unictype/pr_decimal_digit.h: Likewise.
35773         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
35774         * lib/unictype/pr_deprecated.h: Likewise.
35775         * lib/unictype/pr_diacritic.h: Likewise.
35776         * lib/unictype/pr_extender.h: Likewise.
35777         * lib/unictype/pr_format_control.h: Likewise.
35778         * lib/unictype/pr_grapheme_base.h: Likewise.
35779         * lib/unictype/pr_grapheme_extend.h: Likewise.
35780         * lib/unictype/pr_grapheme_link.h: Likewise.
35781         * lib/unictype/pr_hex_digit.h: Likewise.
35782         * lib/unictype/pr_hyphen.h: Likewise.
35783         * lib/unictype/pr_id_continue.h: Likewise.
35784         * lib/unictype/pr_id_start.h: Likewise.
35785         * lib/unictype/pr_ideographic.h: Likewise.
35786         * lib/unictype/pr_ids_binary_operator.h: Likewise.
35787         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
35788         * lib/unictype/pr_ignorable_control.h: Likewise.
35789         * lib/unictype/pr_iso_control.h: Likewise.
35790         * lib/unictype/pr_join_control.h: Likewise.
35791         * lib/unictype/pr_left_of_pair.h: Likewise.
35792         * lib/unictype/pr_line_separator.h: Likewise.
35793         * lib/unictype/pr_logical_order_exception.h: Likewise.
35794         * lib/unictype/pr_lowercase.h: Likewise.
35795         * lib/unictype/pr_math.h: Likewise.
35796         * lib/unictype/pr_non_break.h: Likewise.
35797         * lib/unictype/pr_not_a_character.h: Likewise.
35798         * lib/unictype/pr_numeric.h: Likewise.
35799         * lib/unictype/pr_other_alphabetic.h: Likewise.
35800         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
35801         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
35802         * lib/unictype/pr_other_id_continue.h: Likewise.
35803         * lib/unictype/pr_other_id_start.h: Likewise.
35804         * lib/unictype/pr_other_lowercase.h: Likewise.
35805         * lib/unictype/pr_other_math.h: Likewise.
35806         * lib/unictype/pr_other_uppercase.h: Likewise.
35807         * lib/unictype/pr_paired_punctuation.h: Likewise.
35808         * lib/unictype/pr_paragraph_separator.h: Likewise.
35809         * lib/unictype/pr_pattern_syntax.h: Likewise.
35810         * lib/unictype/pr_pattern_white_space.h: Likewise.
35811         * lib/unictype/pr_private_use.h: Likewise.
35812         * lib/unictype/pr_punctuation.h: Likewise.
35813         * lib/unictype/pr_quotation_mark.h: Likewise.
35814         * lib/unictype/pr_radical.h: Likewise.
35815         * lib/unictype/pr_sentence_terminal.h: Likewise.
35816         * lib/unictype/pr_soft_dotted.h: Likewise.
35817         * lib/unictype/pr_space.h: Likewise.
35818         * lib/unictype/pr_terminal_punctuation.h: Likewise.
35819         * lib/unictype/pr_titlecase.h: Likewise.
35820         * lib/unictype/pr_unassigned_code_value.h: Likewise.
35821         * lib/unictype/pr_unified_ideograph.h: Likewise.
35822         * lib/unictype/pr_uppercase.h: Likewise.
35823         * lib/unictype/pr_variation_selector.h: Likewise.
35824         * lib/unictype/pr_white_space.h: Likewise.
35825         * lib/unictype/pr_xid_continue.h: Likewise.
35826         * lib/unictype/pr_xid_start.h: Likewise.
35827         * lib/unictype/pr_zero_width.h: Likewise.
35828         * lib/unictype/scripts.h: Likewise.
35829         * lib/unictype/scripts_byname.gperf: Likewise.
35830         * lib/unictype/sy_c_ident.h: Likewise.
35831         * lib/unictype/sy_c_whitespace.h: Likewise.
35832         * lib/unictype/sy_java_ident.h: Likewise.
35833         * lib/unictype/sy_java_whitespace.h: Likewise.
35834
35835         * lib/unictype/Makefile: New file.
35836         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
35837         glibc.
35838         * lib/unictype/3level.h: New file, copied from glibc.
35839         * lib/unictype/3levelbit.h: New file.
35840
35841 2007-11-11  Bruno Haible  <bruno@clisp.org>
35842
35843         * modules/gperf: New file.
35844         * modules/iconv_open (Depends-on): Add it.
35845         (Makefile.am): Remove the GPERF definition.
35846
35847 2007-11-11  Bruno Haible  <bruno@clisp.org>
35848
35849         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
35850         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
35851
35852 2007-11-11  Bruno Haible  <bruno@clisp.org>
35853
35854         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
35855         (usage): Remove function.
35856
35857 2007-11-11  Bruno Haible  <bruno@clisp.org>
35858
35859         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
35860         gl_FUNC_CEILF_LIBS.
35861         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
35862         gl_FUNC_CEIL_LIBS.
35863         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
35864         gl_FUNC_CEILL_LIBS.
35865         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
35866         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
35867         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
35868
35869 2007-11-11  Bruno Haible  <bruno@clisp.org>
35870
35871         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
35872         roundf were declared but do not exist on functions.
35873         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
35874         roundl were declared but do not exist on functions.
35875         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
35876         HAVE_FLOORL_AND_CEILL, respectively.
35877         Needed for Sun C on Solaris 10.
35878
35879 2007-11-11  Bruno Haible  <bruno@clisp.org>
35880
35881         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
35882         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
35883         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
35884         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
35885         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
35886         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
35887         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
35888         HAVE_DECL_ROUNDF.
35889         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
35890         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
35891         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
35892         of HAVE_DECL_ROUND*.
35893         * modules/math (Makefile.am): Update.
35894
35895 2007-11-10  Bruno Haible  <bruno@clisp.org>
35896
35897         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
35898         ptrdiff_t as m4/intl.m4.
35899
35900 2007-11-10  Jim Meyering  <meyering@redhat.com>
35901
35902         Avoid link failure for the argmatch test.
35903         * tests/test-argmatch.c (usage): Define function to avoid a link
35904         failure: argmatch_die requires a usage function.
35905
35906 2007-11-09  Bruno Haible  <bruno@clisp.org>
35907
35908         * doc/functions/snprintf.texi: Mention BeOS deficiency.
35909         * doc/functions/vsnprintf.texi: Likewise.
35910         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
35911         with a size argument < 2.
35912
35913 2007-11-09  Bruno Haible  <bruno@clisp.org>
35914
35915         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
35916         buffer. Fixes an inefficiency introduced on 2007-11-03.
35917
35918 2007-11-09  Bruno Haible  <bruno@clisp.org>
35919
35920         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
35921         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
35922
35923 2007-11-08  Jim Meyering  <meyering@redhat.com>
35924
35925         Change cache variable name prefix "jm_" to "gl_" everywhere.
35926         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
35927         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
35928         * m4/uptime.m4: s/gl_/jm_/
35929
35930 2007-11-07  Bruno Haible  <bruno@clisp.org>
35931
35932         Update to GNU gettext 0.17.
35933         * m4/intl.m4: Update to GNU gettext 0.17.
35934         * m4/po.m4: Likewise.
35935         * modules/gettext (Files): Remove m4/ulonglong.m4.
35936         (configure.ac): Require gettext infrastructure from version 0.17.
35937
35938 2007-11-06  Bruno Haible  <bruno@clisp.org>
35939
35940         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
35941         symbolic values are not defined in a public header.
35942         * lib/freadable.c (freadable) [QNX]: Likewise.
35943         * lib/freadahead.c (freadahead) [QNX]: Likewise.
35944         * lib/freading.c (freading) [QNX]: Likewise.
35945         * lib/fseterr.c (fseterr) [QNX]: Likewise.
35946         * lib/fwritable.c (fwritable) [QNX]: Likewise.
35947         * lib/fwriting.c (fwriting) [QNX]: Likewise.
35948         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
35949         Reported by Alain Magloire.
35950
35951         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
35952
35953 2007-11-05  Bruno Haible  <bruno@clisp.org>
35954
35955         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
35956         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
35957         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
35958         Reported by Eric Blake.
35959
35960 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35961             Bruno Haible  <bruno@clisp.org>
35962
35963         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
35964         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
35965         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
35966         (malloc): Undefine also before including <stdlib.h>.
35967         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
35968         Needed on OSF/1 4.0.
35969
35970 2007-11-05  Jim Meyering  <meyering@redhat.com>
35971
35972         git-version-gen: sync from coreutils.
35973         * build-aux/git-version-gen: Add comments.
35974         Change the first '-' to '.' in the snapshot version string,
35975         e.g., 6.9-377-08144 -> 6.9.377-08144
35976         Remove first parameter.
35977         Don't declare a version "-dirty" merely because a time
35978         stamp has changed.
35979
35980 2007-11-04  Bruno Haible  <bruno@clisp.org>
35981
35982         * lib/lock.h: Protect all macro definitions containing an 'if'
35983         statement through a "do { ... } while (0)".
35984         * lib/tls.h: Likewise.
35985
35986 2007-11-04  Bruno Haible  <bruno@clisp.org>
35987
35988         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
35989
35990 2007-11-04  Bruno Haible  <bruno@clisp.org>
35991
35992         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
35993         * modules/fprintf-posix (Depends-on): Add nocrash.
35994         * modules/snprintf-posix (Depends-on): Likewise.
35995         * modules/sprintf-posix (Depends-on): Likewise.
35996         * modules/vasnprintf-posix (Depends-on): Likewise.
35997         * modules/vasprintf-posix (Depends-on): Likewise.
35998         * modules/vfprintf-posix (Depends-on): Likewise.
35999         * modules/vsnprintf-posix (Depends-on): Likewise.
36000         * modules/vsprintf-posix (Depends-on): Likewise.
36001         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
36002         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
36003         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
36004         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
36005         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
36006         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
36007         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
36008
36009 2007-11-04  Bruno Haible  <bruno@clisp.org>
36010
36011         * modules/nocrash: New file.
36012         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
36013         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
36014
36015 2007-11-04  Bruno Haible  <bruno@clisp.org>
36016
36017         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
36018         precision handling.
36019         * tests/test-vasprintf-posix.c (test_function): Likewise.
36020         * tests/test-snprintf-posix.h (test_function): Likewise.
36021         * tests/test-sprintf-posix.h (test_function): Likewise.
36022
36023         Fix *printf behaviour for large precisions on mingw and BeOS.
36024         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
36025         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
36026         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
36027         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36028         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36029         gl_PRINTF_PRECISION and test its result. Invoke
36030         gl_PREREQ_VASNPRINTF_PRECISION.
36031         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36032         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36033         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36034         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36035         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36036         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36037         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36038         * doc/functions/fprintf.texi: Update.
36039         * doc/functions/printf.texi: Update.
36040         * doc/functions/snprintf.texi: Update.
36041         * doc/functions/sprintf.texi: Update.
36042         * doc/functions/vfprintf.texi: Update.
36043         * doc/functions/vprintf.texi: Update.
36044         * doc/functions/vsnprintf.texi: Update.
36045         * doc/functions/vsprintf.texi: Update.
36046
36047 2007-11-04  Bruno Haible  <bruno@clisp.org>
36048
36049         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
36050
36051 2007-11-04  Bruno Haible  <bruno@clisp.org>
36052
36053         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
36054         Reported by Sylvain Beucler <beuc@gnu.org>.
36055
36056 2007-11-03  Bruno Haible  <bruno@clisp.org>
36057
36058         * tests/test-fprintf-posix2.sh: New file.
36059         * tests/test-fprintf-posix2.c: New file.
36060         * modules/fprintf-posix-tests (Files): Add them.
36061         (TESTS): Add test-fprintf-posix2.sh.
36062         (configure.ac): Check for getrlimit and setrlimit.
36063         (check_PROGRAMS): Add test-fprintf-posix2.
36064
36065         * tests/test-printf-posix2.sh: New file.
36066         * tests/test-printf-posix2.c: New file.
36067         * modules/printf-posix-tests (Files): Add them.
36068         (TESTS): Add test-printf-posix2.sh.
36069         (configure.ac): Check for getrlimit and setrlimit.
36070         (check_PROGRAMS): Add test-printf-posix2.
36071
36072         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
36073         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
36074         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
36075         (decode_double): New function, copied from decode_long_double.
36076         (scale10_round_decimal_decoded): New function, extracted from
36077         scale10_round_decimal_long_double.
36078         (scale10_round_decimal_long_double): Use it.
36079         (scale10_round_decimal_double): New function.
36080         (floorlog10): New function.
36081         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
36082         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
36083         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36084         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36085         gl_PRINTF_ENOMEM and test its result. Invoke
36086         gl_PREREQ_VASNPRINTF_ENOMEM.
36087         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36088         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36089         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36090         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36091         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36092         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36093         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36094         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
36095         * modules/snprintf-posix (Depends-on): Likewise.
36096         * modules/sprintf-posix (Depends-on): Likewise.
36097         * modules/vasnprintf-posix (Depends-on): Likewise.
36098         * modules/vasprintf-posix (Depends-on): Likewise.
36099         * modules/vfprintf-posix (Depends-on): Likewise.
36100         * modules/vsnprintf-posix (Depends-on): Likewise.
36101         * modules/vsprintf-posix (Depends-on): Likewise.
36102         * doc/functions/fprintf.texi: Update.
36103         * doc/functions/printf.texi: Update.
36104         * doc/functions/snprintf.texi: Update.
36105         * doc/functions/sprintf.texi: Update.
36106         * doc/functions/vfprintf.texi: Update.
36107         * doc/functions/vprintf.texi: Update.
36108         * doc/functions/vsnprintf.texi: Update.
36109         * doc/functions/vsprintf.texi: Update.
36110
36111 2007-11-03  Bruno Haible  <bruno@clisp.org>
36112
36113         * modules/frexp-nolibm-tests: New file.
36114
36115         * modules/frexp-nolibm: New file.
36116         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
36117
36118 2007-11-03  Bruno Haible  <bruno@clisp.org>
36119
36120         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
36121         value is C99 compliant.
36122         Needed for OSF/1 5.1.
36123
36124 2007-11-03  Bruno Haible  <bruno@clisp.org>
36125
36126         Fix out-of-memory handling of vasnprintf.
36127         * lib/printf-parse.c: Include <errno.h>.
36128         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
36129         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
36130         is already set.
36131
36132 2007-11-02  Eric Blake  <ebb9@byu.net>
36133
36134         Fix tests on cygwin.
36135         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
36136
36137 2007-11-01  Bruno Haible  <bruno@clisp.org>
36138
36139         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
36140         warning.
36141         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
36142         needed for POSIX compatibility.
36143
36144 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
36145
36146         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
36147         for compatibility with GNU.
36148
36149 2007-11-01  Bruno Haible  <bruno@clisp.org>
36150
36151         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
36152         (putenv): Renamed from rpl_putenv. Change argument type from
36153         'const char *' to 'char *'.
36154         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
36155         of defining putenv in config.h, just set REPLACE_PUTENV.
36156         * modules/putenv (Depends-on): Add stdlib.
36157         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36158         (Include): Use <stdlib.h>.
36159         * lib/stdlib.in.h (putenv): New declaration.
36160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
36161         REPLACE_PUTENV.
36162         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
36163         REPLACE_PUTENV.
36164         Needed for MacOS X 10.5.0.
36165         Reported by Peter O'Gorman <peter@pogma.com>.
36166
36167 2007-11-01  Jim Meyering  <meyering@redhat.com>
36168
36169         Treat an empty date string exactly like "0".
36170         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
36171         if the remaining date string (to be parsed) is empty, use "0".
36172         Reported by Mischa Molhoek and discussed in this thread:
36173         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
36174
36175 2007-10-31  Bruno Haible  <bruno@clisp.org>
36176
36177         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
36178         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
36179         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
36180         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
36181         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
36182         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
36183
36184 2007-10-31  Bruno Haible  <bruno@clisp.org>
36185
36186         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
36187         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
36188         (AC_TYPE_LONG_LONG_INT): Use it.
36189         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
36190         it as well.
36191         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
36192         to m4/longlong.m4.
36193         * modules/stdint (Files): Remove m4/ulonglong.m4.
36194         * modules/strtoull (Files): Use m4/longlong.m4 instead of
36195         m4/ulonglong.m4.
36196         * modules/strtoumax (Files): Likewise.
36197
36198 2007-10-30  Bruno Haible  <bruno@clisp.org>
36199
36200         * modules/xvasprintf-posix: New file.
36201         Suggested by Eric Blake.
36202
36203 2007-10-30  Bruno Haible  <bruno@clisp.org>
36204
36205         * modules/xprintf-posix-tests: New file.
36206         * tests/test-xprintf-posix.sh: New file.
36207         * tests/test-xprintf-posix.c: New file.
36208         * tests/test-xfprintf-posix.c: New file.
36209
36210         * modules/xprintf-posix: New file.
36211
36212 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36213
36214         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
36215         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
36216         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
36217
36218 2007-10-29  Bruno Haible  <bruno@clisp.org>
36219
36220         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
36221         contain the special marker '_cv_'.
36222         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36223         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36224         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36225         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
36226         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36227         Reported by Ralf Wildenhues.
36228
36229 2007-10-29  Bruno Haible  <bruno@clisp.org>
36230
36231         * gnulib-tool (func_import): When --lgpl is not specified, set
36232         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
36233         GPLv3.
36234         Reported by Simon Josefsson.
36235
36236 2007-10-28  Bruno Haible  <bruno@clisp.org>
36237
36238         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
36239         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
36240         HAVE_DECL_ISFINITE.
36241         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36242         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
36243         HAVE_DECL_ISFINITE.
36244
36245 2007-10-28  Bruno Haible  <bruno@clisp.org>
36246
36247         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
36248         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
36249
36250 2007-10-28  Bruno Haible  <bruno@clisp.org>
36251
36252         Fix link errors with Sun C 5.0 on Solaris 10.
36253         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
36254         function is declared but not present in the compiler's libm.
36255         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
36256         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
36257         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
36258         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
36259         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
36260         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
36261         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
36262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
36263         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
36264         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
36265         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
36266         HAVE_DECL_FLOORL.
36267
36268 2007-10-28  Bruno Haible  <bruno@clisp.org>
36269
36270         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
36271         gl_FUNC_FLOORL. Cache the result.
36272         (gl_FUNC_FLOORL): Use it.
36273         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
36274         gl_FUNC_CEILL. Cache the result.
36275         (gl_FUNC_CEILL): Use it.
36276
36277         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
36278         gl_FUNC_FLOOR. Cache the result.
36279         (gl_FUNC_FLOOR): Use it.
36280         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
36281         gl_FUNC_CEIL. Cache the result.
36282         (gl_FUNC_CEIL): Use it.
36283
36284         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
36285         gl_FUNC_FLOORF. Cache the result.
36286         (gl_FUNC_FLOORF): Use it.
36287         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
36288         gl_FUNC_CEILF. Cache the result.
36289         (gl_FUNC_CEILF): Use it.
36290
36291 2007-10-28  Bruno Haible  <bruno@clisp.org>
36292
36293         * gnulib-tool: Allow specifying the LGPL version number through
36294         --lgpl=2 or --lgpl=3.
36295         (func_usage): Document --lgpl with argument.
36296         Handle --lgpl=... arguments.
36297         (func_import): Recognize also gl_LGPL calls with an argument. When
36298         --lgpl=2 is used and the module's license is just LGPL, report an
36299         error. Set sed_transform_lib_file according to the lgpl variable. In
36300         the generated files, use --lgpl or gl_LGPL invocations with argument,
36301         if necessary.
36302         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
36303         an LGPv2+ license.
36304         * doc/gnulib-tool.texi (Modified imports): Update explanation of
36305         gl_LGPL macro.
36306
36307 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36308             Bruno Haible  <bruno@clisp.org>
36309
36310         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
36311         (u16_uctomb_aux): Likewise.
36312         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
36313         !HAVE_INLINE.
36314         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
36315
36316 2007-10-28  Bruno Haible  <bruno@clisp.org>
36317
36318         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
36319         Invoke AM_GETTEXT_OPTION if it exists.
36320         * modules/vasprintf: Likewise.
36321         * modules/verror: Likewise.
36322         * modules/xprintf: Likewise.
36323         * modules/xvasprintf: Likewise.
36324
36325 2007-10-27  Ben Pfaff  <blp@gnu.org>
36326
36327         * lib/math.in.h: Define isfinite macro and prototypes for
36328         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
36329         implementations.
36330         * m4/math_h.m4: New substitutions for isfinite module.
36331         * lib/isfinite.c: New file.
36332         * m4/isfinite.m4: New file.
36333         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
36334         * modules/isfinite: New file.
36335         * modules/isfinite-tests: New file.
36336         * tests/tests-isfinite.c: New file.
36337         * doc/functions/isfinite.texi: Mention isfinite module.
36338         * MODULES.html.sh: Mention new module.
36339
36340 2007-10-27  Ben Pfaff  <blp@gnu.org>
36341
36342         Ralf Wildenhues reported that Tru64 4.0D declares the round
36343         functions but does not have definitions.
36344         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
36345         cannot be found in any library, set the output variable to
36346         "missing" instead of "".
36347         * m4/round.m4: Also use our substitute if we cannot find round in
36348         any library, even if it is declared.
36349         * m4/roundf.m4: Likewise for roundf.
36350         * m4/roundl.m4: Likewise for roundl.
36351         * lib/math.in.h: Undefine roundf, round, roundl before defining
36352         their replacements, to allow for hypothetical systems where these
36353         may be defined as macros but not available in libraries.
36354
36355 2007-10-27  Bruno Haible  <bruno@clisp.org>
36356
36357         * doc/gnulib.texi: Invoke @firstparagraphindent.
36358         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
36359         changes in gnulib.
36360         (Source changes): New section.
36361
36362 2007-10-26  Bruno Haible  <bruno@clisp.org>
36363
36364         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
36365         borrowed from autoconf.
36366
36367 2007-10-26  Bruno Haible  <bruno@clisp.org>
36368
36369         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
36370         strerror returned the empty string. Needed on HP-UX 11.00.
36371
36372 2007-10-24  Micah Cowan  <micah@cowan.name>
36373
36374         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
36375         * build-aux/bootstrap: Remove support for now-unnecessary option,
36376         --cvs-user, and envvars CVS_USER, CVS_RSH.
36377
36378 2007-10-24  Jim Meyering  <meyering@redhat.com>
36379
36380         Avoid diagnostics from sha1sum when there is no cached checksum.
36381         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
36382         if the po.s1 file hasn't been created yet.
36383
36384         * build-aux/bootstrap: Sync from coreutils:
36385         2007-10-24  Jim Meyering  <meyering@redhat.com>
36386         Get gnulib from the git repository, not from an obsolete cvs one.
36387         * build-aux/bootstrap: Suggestion from Micah Cowan.
36388         2007-10-04  Jim Meyering  <jim@meyering.net>
36389         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
36390         (update_po_files): Work also when there are no .po files in po/.
36391
36392 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
36393
36394         * README: Append ".git" to git and cg examples.
36395         Problem reported by Benoit Sigoure.
36396
36397 2007-10-23  Micah Cowan  <micah@cowan.name>
36398
36399         * users.txt: Add wget.
36400
36401 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36402
36403         Fix linking of some unistdio tests on FreeBSD.
36404         * modules/unistdio/u16-vsnprintf-tests
36405         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
36406         * modules/unistdio/u16-vsprintf-tests
36407         (test_u16_vsnprintf1_LDADD): Likewise.
36408         * modules/unistdio/u32-vsnprintf-tests
36409         (test_u32_vsnprintf1_LDADD): Likewise.
36410         * modules/unistdio/u32-vsprintf-tests
36411         (test_u32_vsprintf1_LDADD): Likewise.
36412         * modules/unistdio/u8-vsnprintf-tests
36413         (test_u8_vsnprintf1_LDADD): Likewise.
36414         * modules/unistdio/u8-vsprintf-tests
36415         (test_u8_vsprintf1_LDADD): Likewise.
36416         * modules/unistdio/ulc-vsnprintf-tests
36417         (test_ulc_vsnprintf1_LDADD): Likewise.
36418         * modules/unistdio/ulc-vsprintf-tests
36419         (test_ulc_vsprintf1_LDADD): Likewise.
36420
36421         Fix linking of some uniconv tests on FreeBSD.
36422         * modules/uniconv/u16-conv-from-enc-tests
36423         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
36424         * modules/uniconv/u16-conv-to-enc-tests
36425         (test_u16_conv_to_enc_LDADD): Likewise.
36426         * modules/uniconv/u16-strconv-from-enc-tests
36427         (test_u16_strconv_from_enc_LDADD): Likewise.
36428         * modules/uniconv/u16-strconv-to-enc-tests
36429         (test_u16_strconv_to_enc_LDADD): Likewise.
36430         * modules/uniconv/u32-conv-from-enc-tests
36431         (test_u32_conv_from_enc_LDADD): Likewise.
36432         * modules/uniconv/u32-conv-to-enc-tests
36433         (test_u32_conv_to_enc_LDADD): Likewise.
36434         * modules/uniconv/u32-strconv-from-enc-tests
36435         (test_u32_strconv_from_enc_LDADD): Likewise.
36436         * modules/uniconv/u32-strconv-to-enc-tests
36437         (test_u32_strconv_to_enc_LDADD): Likewise.
36438         * modules/uniconv/u8-conv-from-enc-tests
36439         (test_u8_conv_from_enc_LDADD): Likewise.
36440         * modules/uniconv/u8-conv-to-enc-tests
36441         (test_u8_conv_to_enc_LDADD): Likewise.
36442         * modules/uniconv/u8-strconv-from-enc-tests
36443         (test_u8_strconv_from_enc_LDADD): Likewise.
36444         * modules/uniconv/u8-strconv-to-enc-tests
36445         (test_u8_strconv_to_enc_LDADD): Likewise.
36446
36447 2007-10-22  Bruno Haible  <bruno@clisp.org>
36448
36449         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
36450         size.
36451
36452 2007-10-22  Eric Blake  <ebb9@byu.net>
36453
36454         Tweak x*printf documentation.
36455         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
36456         variable name and comments.
36457         Suggested by Bruno Haible.
36458
36459 2007-10-22  Bruno Haible  <bruno@clisp.org>
36460
36461         * lib/acl.c (copy_acl): Fix file name in comment.
36462
36463 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36464
36465         Fix Tru64 problem with stdbool.h.
36466         * lib/stdbool.in.h (false, true):
36467         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
36468         Don't declare as an enum in this situation; it runs afoul of Tru64.
36469         Problem reported by Steven M. Schweda in
36470         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
36471
36472 2007-10-22  Eric Blake  <ebb9@byu.net>
36473
36474         Also wrap vf?printf.
36475         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
36476         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
36477         (xvprintf, xvfprintf): New functions.
36478
36479 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36480
36481         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
36482         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
36483
36484         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
36485         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
36486
36487 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
36488
36489         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
36490         by Bruno Haible.
36491
36492 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36493
36494         * lib/getloadavg.c
36495         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
36496         Undef `sys' after including sys/table.h, for Tru64 4.0D.
36497
36498         * tests/test-i-ring.c: Work for C89.
36499
36500 2007-10-22  Bruno Haible  <bruno@clisp.org>
36501
36502         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
36503         -1u, in preprocessor expression, so that we don't test for the bug
36504         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
36505         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
36506
36507 2007-10-22  Eric Blake  <ebb9@byu.net>
36508
36509         * tests/test-yesno.sh: Silence stderr during test.
36510
36511 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36512
36513         * modules/crypto/gc-camellia: New file.
36514
36515         * m4/gc-camellia.m4: New file.
36516
36517         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
36518
36519         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
36520
36521 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36522
36523         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
36524         --help to stdout.  Reported by sms@antinode.org (Steven
36525         M. Schweda).
36526
36527 2007-10-22  Simon Josefsson  <simon@josefsson.org>
36528
36529         * users.txt: Fix link to libksba.
36530
36531 2007-10-21  Ben Pfaff  <blp@gnu.org>
36532
36533         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
36534         round.c roundf implementation that depends on floorf and ceilf to
36535         be tested unconditionally.
36536
36537 2007-10-21  Ben Pfaff  <blp@gnu.org>
36538
36539         * m4/check-libm-func.m4: Removed.
36540         * m4/check-math-lib.m4: New file.
36541         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
36542         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
36543         definition and lack of AC_LIBOBJ([roundf]).
36544         * m4/roundl.m4: Ditto, and similarly for roundl.
36545         * modules/round: Reference new m4 file.
36546         * modules/roundf: Ditto.
36547         * modules/roundl: Ditto.
36548         * tests/test-round2.c (main): Use ROUND instead of round.
36549         Bug report from Bruno Haible.
36550
36551 2007-10-21  Bruno Haible  <bruno@clisp.org>
36552
36553         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
36554         context.
36555
36556 2007-10-21  Bruno Haible  <bruno@clisp.org>
36557
36558         * tests/test-wcwidth.c (main): Allow negative result for some control
36559         characters.
36560
36561         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
36562         Needed on OSF/1 5.1.
36563
36564 2007-10-21  Bruno Haible  <bruno@clisp.org>
36565
36566         * tests/test-floorf1.c: Include isnanf.h.
36567         (main): Use isnanf() instead of isnan().
36568         * tests/test-ceilf1.c: Include isnanf.h.
36569         (main): Use isnanf() instead of isnan().
36570         * tests/test-truncf1.c: Include isnanf.h.
36571         (main): Use isnanf() instead of isnan().
36572         * tests/test-roundf1.c: Include isnanf.h.
36573         (main): Use isnanf() instead of isnan().
36574
36575 2007-10-21  Eric Blake  <ebb9@byu.net>
36576
36577         * users.txt: Update URL for m4.
36578
36579 2007-10-21  Bruno Haible  <bruno@clisp.org>
36580
36581         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
36582
36583 2007-10-21  Bruno Haible  <bruno@clisp.org>
36584
36585         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
36586         Git's management files if the CVS files are not present.
36587
36588 2007-10-20  Bruno Haible  <bruno@clisp.org>
36589
36590         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
36591         gcc-3.4.x.
36592
36593 2007-10-20  Ben Pfaff  <blp@gnu.org>
36594
36595         * lib/math.in.h: Declare round, roundf, roundl if we are providing
36596         implementations.
36597         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
36598         * lib/round.c: New file.
36599         * lib/roundf.c: New file.
36600         * lib/roundl.c: New file.
36601         * m4/round.m4: New file.
36602         * m4/roundf.m4: New file.
36603         * m4/roundl.m4: New file.
36604         * m4/check-libm-func-m4: New file.
36605         * modules/math: Replace round, roundf, roundl related @VARS@ in
36606         math.in.h.
36607         * modules/round: New file.
36608         * modules/round-tests: New file.
36609         * modules/roundf: New file.
36610         * modules/roundf-tests: New file.
36611         * modules/roundl: New file.
36612         * modules/roundl-tests: New file.
36613         * tests/test-round1.c: New file.
36614         * tests/test-round2.c: New file.
36615         * tests/test-roundf1.c: New file.
36616         * tests/test-roundf2.c: New file.
36617         * tests/test-roundl.c: New file.
36618         * doc/functions/round.texi: Mention round module.
36619         * doc/functions/roundf.texi: Mention roundf module.
36620         * doc/functions/roundl.texi: Mention roundl module.
36621         * MODULES.html.sh: Mention new modules.
36622         Thanks to Bruno Haible for suggestions.
36623
36624 2007-10-20  Jim Meyering  <meyering@redhat.com>
36625
36626         * lib/xprintf.c: Include <config.h> unconditionally.
36627
36628         Change xprintf's license to GPL.
36629         * modules/xprintf (License): s/LGPL/GPL/, since this module
36630         depends on modules (exit and exitfail) which are GPL.
36631         Suggestion from Bruno Haible.
36632
36633         xprintf fixes.
36634         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
36635         Use a clearer diagnostic.
36636         Patch from Bruno Haible.
36637
36638 2007-10-20  Bruno Haible  <bruno@clisp.org>
36639
36640         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
36641         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
36642         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36643
36644 2007-10-20  Bruno Haible  <bruno@clisp.org>
36645
36646         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
36647         precision in the comparison result > x - 1 or similar.
36648         * tests/test-ceilf2.c (correct_result_p): Likewise.
36649         * tests/test-truncf2.c (correct_result_p): Likewise.
36650         * tests/test-trunc2.c (correct_result_p): Likewise.
36651         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36652
36653 2007-10-20  Bruno Haible  <bruno@clisp.org>
36654
36655         * modules/ceil: New file.
36656         * m4/ceil.m4: New file.
36657         * doc/functions/ceil.texi: Mention the 'ceil' module.
36658
36659 2007-10-20  Bruno Haible  <bruno@clisp.org>
36660
36661         * modules/floor: New file.
36662         * m4/floor.m4: New file.
36663         * doc/functions/floor.texi: Mention the 'floor' module.
36664
36665 2007-10-20  Bruno Haible  <bruno@clisp.org>
36666
36667         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
36668         of %a.
36669         * modules/floorf-tests (Depends-on): Likewise.
36670         * modules/truncf-tests (Depends-on): Likewise.
36671         * modules/trunc-tests (Depends-on): Likewise.
36672         Reported by Ben Pfaff.
36673
36674 2007-10-19  Jim Meyering  <meyering@redhat.com>
36675
36676         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
36677         Don't bother testing specific errno values.  Just test ferror.
36678
36679         New module: xprintf
36680         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
36681
36682 2007-10-19  Bruno Haible  <bruno@clisp.org>
36683
36684         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
36685         syntax.
36686         * modules/javaexec (Makefile.am): Likewise.
36687         * modules/relocatable-prog (Makefile.am): Likewise.
36688         Suggested by Jim Meyering.
36689
36690 2007-10-18  Bruno Haible  <bruno@clisp.org>
36691
36692         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
36693         Reported by Jim Meyering.
36694
36695 2007-10-18  Eric Blake  <ebb9@byu.net>
36696
36697         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
36698
36699 2007-10-18  Bruno Haible  <bruno@clisp.org>
36700
36701         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
36702         the format string into writable memory. Needed in Fortify conditions.
36703
36704 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
36705             Bruno Haible  <bruno@clisp.org>
36706
36707         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
36708         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
36709         * modules/trim (Depends-on): Add mbchar.
36710         (configure.ac): Add gl_FUNC_MBRTOWC.
36711         (Makefile.am): Augment lib_SOURCES.
36712
36713 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
36714
36715         Modify glob.c to use fstatat and dirfd, to simplify it.
36716         Suggested by Eric Blake.
36717         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
36718         Don't include <stdbool.h>; not used.
36719         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
36720         (link_exists_p): Simplify implementation, since we can now assume
36721         dirfd and fstatat.
36722         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
36723
36724 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36725
36726         * gnulib-tool (func_get_dependencies): Fix sed script to
36727         match only tests.
36728
36729 2007-10-17  Bruno Haible  <bruno@clisp.org>
36730
36731         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
36732         allow locale names without encoding suffix.
36733         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36734         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36735
36736 2007-10-16  Bruno Haible  <bruno@clisp.org>
36737
36738         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
36739         * lib/getgroups.c (getgroups): Likewise.
36740         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
36741
36742 2007-10-16  Bruno Haible  <bruno@clisp.org>
36743
36744         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
36745         * modules/malloc-posix (License): Likewise.
36746         * modules/realloc-posix (License): Likewise.
36747         * modules/calloc-posix (License): Likewise.
36748         * modules/intprops (License): Change from GPL to LGPL, with
36749         Paul Eggert's approval.
36750
36751 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36752
36753         Merge glibc changes into lib/glob.c.
36754
36755         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
36756         2007-10-15 04:59:03 UTC.  Here are the changes:
36757
36758         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
36759
36760         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
36761
36762         * lib/glob.c: Add some branch prediction throughout.
36763
36764         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
36765
36766         [BZ #5103]
36767         * lib/glob.c (glob): Recognize patterns starting \/.
36768
36769         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
36770
36771         [BZ #3996]
36772         * lib/glob.c (attribute_hidden): Define if not defined.
36773         (glob): Unescape dirname, filename or username when needed and not
36774         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
36775         is NULL.  Handle unescaped [ in pattern without closing ].
36776         Don't pass GLOB_CHECK down to recursive glob for directories.
36777         (__glob_pattern_type): New function.
36778         (__glob_pattern_p): Implement using __glob_pattern_type.
36779         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
36780         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
36781         Remove unreachable code.
36782
36783         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
36784
36785         * lib/glob.c (glob_in_dir): Add some comments and asserts to
36786         explain why there are no leaks.
36787
36788         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
36789
36790         [BZ #3253]
36791         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
36792         time, rather allocate increasingly bigger arrays of pointers, if
36793         possible with alloca, if too large with malloc.
36794
36795 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36796
36797         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
36798         Problem reported by H.Merijn Brand in
36799         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
36800         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
36801         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
36802
36803 2007-10-15  Bruno Haible  <bruno@clisp.org>
36804
36805         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
36806         with explicit rpl_ prefix.
36807         * lib/fopen.c (fopen): Likewise.
36808         * lib/freopen.c (freopen): Likewise.
36809         * lib/iconv.c (iconv): Likewise.
36810         * lib/iconv_close.c (iconv_close): Likewise.
36811
36812 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36813
36814         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
36815
36816 2007-10-15  Bruno Haible  <bruno@clisp.org>
36817
36818         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
36819         <stddef.h> instead of <stdlib.h> since we only need NULL.
36820         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36821
36822 2007-10-15  Bruno Haible  <bruno@clisp.org>
36823
36824         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
36825         Replace paragraph talking about LIBOBJS.
36826         Reported by Colin Watson <cjwatson@debian.org>.
36827
36828 2007-10-15  Bruno Haible  <bruno@clisp.org>
36829
36830         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
36831         <stdlib.h> before using NULL.
36832
36833 2007-10-15  Simon Josefsson  <simon@josefsson.org>
36834
36835         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
36836         Reported by Albert Chin <china@thewrittenword.com>.
36837
36838 2007-10-14  Bruno Haible  <bruno@clisp.org>
36839
36840         * modules/iconv_open-utf-tests: New file.
36841         * tests/test-iconv-utf.c: New file.
36842
36843         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
36844         * modules/iconv_open-utf: New file.
36845         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
36846         (iconv, iconv_close): New declarations.
36847         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
36848         be defined.
36849         (iconv_open): Add special handling of conversion between UTF-8 and
36850         UTF-{16,32}{BE,LE}.
36851         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
36852         * lib/iconv_close.c: New file.
36853         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
36854         gl_FUNC_ICONV_OPEN.
36855         (gl_FUNC_ICONV_OPEN): Use it.
36856         (gl_FUNC_ICONV_OPEN_UTF): New macro.
36857         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
36858         and REPLACE_ICONV_UTF.
36859         * modules/iconv_open (Depends-on): Add c-strcase.
36860         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
36861         ICONV_CONST.
36862         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
36863
36864 2007-10-13  Albert Chin  <china@thewrittenword.com>
36865             Bruno Haible  <bruno@clisp.org>
36866
36867         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
36868         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
36869
36870 2007-10-13  Bruno Haible  <bruno@clisp.org>
36871
36872         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
36873         defined, use the ISO C99 inline semantics.
36874         * lib/argp.h (ARGP_EI): Likewise.
36875
36876 2007-10-13  Bruno Haible  <bruno@clisp.org>
36877
36878         Handle 'inline' change in gcc 4.3.0.
36879         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
36880         argp_fmtstream_write, argp_fmtstream_set_lmargin,
36881         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
36882         argp_fmtstream_point): Disable 'extern' declaration if the function
36883         definition is going to be provided inline.
36884         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
36885         semantics, not the ISO C99 inline semantics.
36886         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
36887         'extern' declaration if the function definition is going to be provided
36888         inline.
36889         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
36890         the GNU C inline semantics, not the ISO C99 inline semantics. With
36891         GCC 4.2, avoid a warning.
36892
36893 2007-10-13  Bruno Haible  <bruno@clisp.org>
36894
36895         * lib/freading.h (freading): Enable the use of __freading for
36896         glibc >= 2.7.
36897         * lib/freading.c (freading): Likewise.
36898
36899 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36900
36901         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
36902         "warning: C99 inline functions are not supported; using GNU89".
36903
36904 2007-10-12  Bruno Haible  <bruno@clisp.org>
36905
36906         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
36907         of 2.
36908         * tests/test-ceilf2.c: New file.
36909         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
36910
36911         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
36912         * modules/ceilf-tests: Update.
36913
36914 2007-10-12  Bruno Haible  <bruno@clisp.org>
36915
36916         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
36917         of 2.
36918         * tests/test-floorf2.c: New file.
36919         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
36920
36921         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
36922         * modules/floorf-tests: Update.
36923
36924 2007-10-12  Bruno Haible  <bruno@clisp.org>
36925
36926         * tests/test-trunc2.c: New file.
36927         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
36928
36929         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
36930         * modules/trunc-tests: Update.
36931
36932 2007-10-12  Bruno Haible  <bruno@clisp.org>
36933
36934         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
36935         of 2.
36936         * tests/test-truncf2.c: New file.
36937         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
36938
36939         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
36940         * modules/truncf-tests: Update.
36941
36942 2007-10-11  Eric Blake  <ebb9@byu.net>
36943
36944         Don't claim strerror is broken on Interix.
36945         * doc/functions/strerror.texi (strerror): Known broken systems are
36946         now Solaris 8, and not Interix.
36947         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
36948         Interix on cross-compile.
36949         Reported by Martin Koeppe in
36950         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
36951
36952 2007-10-11  Bruno Haible  <bruno@clisp.org>
36953
36954         * modules/i-ring-tests: New file.
36955         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
36956         instead of assert.
36957
36958 2007-10-11  Bruno Haible  <bruno@clisp.org>
36959
36960         * modules/filenamecat-tests: New file.
36961         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
36962         * lib/filenamecat.c: Remove test code.
36963
36964 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
36965
36966         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
36967
36968         * lib/strerror.c: Include <string.h> always, to test interface,
36969         and to remove the need for the dummy.
36970         Include intprops.h to compute width instead of doing it ourselves
36971         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
36972         (strerror): Define it to return NULL if there's no system strerror.
36973         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
36974         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
36975         ancient pre-strerror Unix systems well any more.  Saying "unknown
36976         system error" is enough.
36977         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
36978         simpler strerror.c implementation.
36979         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
36980         Simplify the tests to reflect the simpler strerror implementation.
36981         * modules/strerror (Depends-on): Add intprops.
36982
36983 2007-10-09  Eric Blake  <ebb9@byu.net>
36984
36985         Silence test-fpending.
36986         * modules/fpending-tests (Files): Add wrapper script.
36987         * tests/test-fpending.sh: New file.
36988
36989 2007-10-09  Bruno Haible  <bruno@clisp.org>
36990
36991         * MODULES.html.sh (func_module): Don't create a hyperlink for
36992         function names like 'printf_frexp'.
36993         (Misc): Add crc, memxor.
36994         (Characteristics of floating types): New section.
36995         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
36996         isnanf-nolibm, signbit, trunc, truncf, truncl.
36997         (Enhancements for ISO C 99 functions): New subsection Input/output.
36998         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
36999         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
37000         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
37001         (Compatibility checks for POSIX:2001 functions): Add clock-time.
37002         (Enhancements for POSIX:2001 functions): Add chdir-long.
37003         (File system functions): Add areadlink, chdir-safer, read-file.
37004         Remove cycle-check.
37005         (File system as inode set): New section.
37006         (Date and time): Add gethrxtime.
37007         (Multithreading): Add openmp.
37008         (Internationalization functions): Add localename.
37009         (Unicode string functions): Add unistr/u*-mbsnlen.
37010         (Support for maintaining and releasing projects): Add git-version-gen.
37011         (Lone files): Remove directories.
37012
37013 2007-10-08  Ben Pfaff  <blp@gnu.org>
37014
37015         * lib/xmalloca.h: Fix typo in comment.
37016
37017 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
37018
37019         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
37020         when avoiding problems with integer overflow.  Use a portable test
37021         instead.
37022
37023 2007-10-08  Simon Josefsson  <simon@josefsson.org>
37024
37025         * modules/dummy (License): Change to LGPLv2+.
37026         * modules/float (License): Likewise
37027         * modules/realloc (License): Likewise
37028         * modules/stdlib (License): Likewise
37029
37030 2007-10-07  Bruno Haible  <bruno@clisp.org>
37031
37032         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
37033         * floor.c (TWO_MANT_DIG): Likewise.
37034         * ceil.c (TWO_MANT_DIG): Likewise.
37035         Reported by Ben Pfaff.
37036
37037 2007-10-07  Bruno Haible  <bruno@clisp.org>
37038
37039         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
37040         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
37041         * lib/frexp.c (FUNC): Likewise.
37042         * lib/printf-frexp.h (printf_frexp): Likewise.
37043         * lib/printf-frexpl.h (printf_frexpl): Likewise.
37044         * lib/printf-frexp.c (FUNC): Likewise.
37045         Suggested by Jim Meyering.
37046
37047 2007-10-07  Jim Meyering  <meyering@redhat.com>
37048
37049         Make xnanosleep's integer overflow test more robust.
37050         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
37051         so that gcc-4.3.0 doesn't optimize away this test for overflow.
37052
37053 2007-10-07  Bruno Haible  <bruno@clisp.org>
37054
37055         * NEWS: Mention the license change.
37056
37057         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
37058         abbreviations in the modules files.
37059
37060         Change copyright notice from GPLv2+ to GPLv3+.
37061         * README: Change copyright notice.
37062         * MODULES.html.sh: Likewise.
37063         * build-aux/bootstrap.conf: Likewise.
37064         * build-aux/config.libpath: Likewise.
37065         * build-aux/csharpcomp.sh.in: Likewise.
37066         * build-aux/csharpexec.sh.in: Likewise.
37067         * build-aux/install-reloc: Likewise.
37068         * build-aux/javacomp.sh.in: Likewise.
37069         * build-aux/javaexec.sh.in: Likewise.
37070         * build-aux/ldd.sh.in: Likewise.
37071         * build-aux/reloc-ldflags: Likewise.
37072         * build-aux/relocatable.sh.in: Likewise.
37073         * build-aux/x-to-1.in: Likewise.
37074         * check-module: Likewise.
37075         * config/srclistvars.sh: Likewise.
37076         * gnulib-tool: Likewise.
37077         * lib/acl-internal.h: Likewise.
37078         * lib/acl.c: Likewise.
37079         * lib/acl.h: Likewise.
37080         * lib/acl_entries.c: Likewise.
37081         * lib/areadlink-with-size.c: Likewise.
37082         * lib/areadlink.c: Likewise.
37083         * lib/areadlink.h: Likewise.
37084         * lib/argmatch.c: Likewise.
37085         * lib/argmatch.h: Likewise.
37086         * lib/argp-ba.c: Likewise.
37087         * lib/argp-eexst.c: Likewise.
37088         * lib/argp-fmtstream.c: Likewise.
37089         * lib/argp-fmtstream.h: Likewise.
37090         * lib/argp-fs-xinl.c: Likewise.
37091         * lib/argp-help.c: Likewise.
37092         * lib/argp-namefrob.h: Likewise.
37093         * lib/argp-parse.c: Likewise.
37094         * lib/argp-pin.c: Likewise.
37095         * lib/argp-pv.c: Likewise.
37096         * lib/argp-pvh.c: Likewise.
37097         * lib/argp-xinl.c: Likewise.
37098         * lib/argp.h: Likewise.
37099         * lib/at-func.c: Likewise.
37100         * lib/atanl.c: Likewise.
37101         * lib/backupfile.c: Likewise.
37102         * lib/backupfile.h: Likewise.
37103         * lib/basename.c: Likewise.
37104         * lib/binary-io.h: Likewise.
37105         * lib/byteswap.in.h: Likewise.
37106         * lib/c-stack.c: Likewise.
37107         * lib/c-stack.h: Likewise.
37108         * lib/c-strcasestr.c: Likewise.
37109         * lib/c-strcasestr.h: Likewise.
37110         * lib/c-strstr.c: Likewise.
37111         * lib/c-strstr.h: Likewise.
37112         * lib/c-strtod.c: Likewise.
37113         * lib/calloc.c: Likewise.
37114         * lib/canon-host.c: Likewise.
37115         * lib/canon-host.h: Likewise.
37116         * lib/canonicalize-lgpl.c: Likewise.
37117         * lib/canonicalize.c: Likewise.
37118         * lib/canonicalize.h: Likewise.
37119         * lib/ceil.c: Likewise.
37120         * lib/ceilf.c: Likewise.
37121         * lib/ceill.c: Likewise.
37122         * lib/chdir-long.c: Likewise.
37123         * lib/chdir-long.h: Likewise.
37124         * lib/chdir-safer.c: Likewise.
37125         * lib/chdir-safer.h: Likewise.
37126         * lib/chown.c: Likewise.
37127         * lib/classpath.c: Likewise.
37128         * lib/classpath.h: Likewise.
37129         * lib/clean-temp.c: Likewise.
37130         * lib/clean-temp.h: Likewise.
37131         * lib/cloexec.c: Likewise.
37132         * lib/close-stream.c: Likewise.
37133         * lib/closein.c: Likewise.
37134         * lib/closein.h: Likewise.
37135         * lib/closeout.c: Likewise.
37136         * lib/closeout.h: Likewise.
37137         * lib/concat-filename.c: Likewise.
37138         * lib/copy-file.c: Likewise.
37139         * lib/copy-file.h: Likewise.
37140         * lib/count-one-bits.h: Likewise.
37141         * lib/crc.c: Likewise.
37142         * lib/crc.h: Likewise.
37143         * lib/creat-safer.c: Likewise.
37144         * lib/csharpcomp.c: Likewise.
37145         * lib/csharpcomp.h: Likewise.
37146         * lib/csharpexec.c: Likewise.
37147         * lib/csharpexec.h: Likewise.
37148         * lib/cycle-check.c: Likewise.
37149         * lib/cycle-check.h: Likewise.
37150         * lib/diacrit.c: Likewise.
37151         * lib/diacrit.h: Likewise.
37152         * lib/diffseq.h: Likewise.
37153         * lib/dirchownmod.c: Likewise.
37154         * lib/dirent.in.h: Likewise.
37155         * lib/dirfd.c: Likewise.
37156         * lib/dirfd.h: Likewise.
37157         * lib/dirname.c: Likewise.
37158         * lib/dirname.h: Likewise.
37159         * lib/dummy.c: Likewise.
37160         * lib/dup-safer.c: Likewise.
37161         * lib/dup2.c: Likewise.
37162         * lib/eealloc.h: Likewise.
37163         * lib/error.c: Likewise.
37164         * lib/error.h: Likewise.
37165         * lib/euidaccess.c: Likewise.
37166         * lib/exclude.c: Likewise.
37167         * lib/exclude.h: Likewise.
37168         * lib/execute.c: Likewise.
37169         * lib/execute.h: Likewise.
37170         * lib/exitfail.c: Likewise.
37171         * lib/exitfail.h: Likewise.
37172         * lib/expl.c: Likewise.
37173         * lib/fatal-signal.c: Likewise.
37174         * lib/fatal-signal.h: Likewise.
37175         * lib/fbufmode.c: Likewise.
37176         * lib/fbufmode.h: Likewise.
37177         * lib/fchdir.c: Likewise.
37178         * lib/fchmodat.c: Likewise.
37179         * lib/fchownat.c: Likewise.
37180         * lib/fcntl--.h: Likewise.
37181         * lib/fcntl-safer.h: Likewise.
37182         * lib/fcntl.in.h: Likewise.
37183         * lib/fd-safer.c: Likewise.
37184         * lib/fflush.c: Likewise.
37185         * lib/file-has-acl.c: Likewise.
37186         * lib/file-set.c: Likewise.
37187         * lib/file-type.c: Likewise.
37188         * lib/file-type.h: Likewise.
37189         * lib/fileblocks.c: Likewise.
37190         * lib/filemode.c: Likewise.
37191         * lib/filemode.h: Likewise.
37192         * lib/filename.h: Likewise.
37193         * lib/filenamecat.c: Likewise.
37194         * lib/filenamecat.h: Likewise.
37195         * lib/findprog.c: Likewise.
37196         * lib/findprog.h: Likewise.
37197         * lib/float.in.h: Likewise.
37198         * lib/floor.c: Likewise.
37199         * lib/floorf.c: Likewise.
37200         * lib/floorl.c: Likewise.
37201         * lib/fopen-safer.c: Likewise.
37202         * lib/fopen.c: Likewise.
37203         * lib/fpending.c: Likewise.
37204         * lib/fpending.h: Likewise.
37205         * lib/fprintf.c: Likewise.
37206         * lib/fprintftime.h: Likewise.
37207         * lib/fpucw.h: Likewise.
37208         * lib/fpurge.c: Likewise.
37209         * lib/fpurge.h: Likewise.
37210         * lib/freadable.c: Likewise.
37211         * lib/freadable.h: Likewise.
37212         * lib/freadahead.c: Likewise.
37213         * lib/freadahead.h: Likewise.
37214         * lib/freading.c: Likewise.
37215         * lib/freading.h: Likewise.
37216         * lib/free.c: Likewise.
37217         * lib/freopen.c: Likewise.
37218         * lib/frexp.c: Likewise.
37219         * lib/frexpl.c: Likewise.
37220         * lib/fseek.c: Likewise.
37221         * lib/fseterr.c: Likewise.
37222         * lib/fseterr.h: Likewise.
37223         * lib/fstatat.c: Likewise.
37224         * lib/fstrcmp.c: Likewise.
37225         * lib/fstrcmp.h: Likewise.
37226         * lib/fsusage.c: Likewise.
37227         * lib/fsusage.h: Likewise.
37228         * lib/ftell.c: Likewise.
37229         * lib/ftello.c: Likewise.
37230         * lib/fts-cycle.c: Likewise.
37231         * lib/fts.c: Likewise.
37232         * lib/fts_.h: Likewise.
37233         * lib/full-read.c: Likewise.
37234         * lib/full-read.h: Likewise.
37235         * lib/full-write.c: Likewise.
37236         * lib/full-write.h: Likewise.
37237         * lib/fwritable.c: Likewise.
37238         * lib/fwritable.h: Likewise.
37239         * lib/fwriteerror.c: Likewise.
37240         * lib/fwriteerror.h: Likewise.
37241         * lib/fwriting.c: Likewise.
37242         * lib/fwriting.h: Likewise.
37243         * lib/gcd.c: Likewise.
37244         * lib/gcd.h: Likewise.
37245         * lib/getcwd.c: Likewise.
37246         * lib/getdate.h: Likewise.
37247         * lib/getdate.y: Likewise.
37248         * lib/getdomainname.c: Likewise.
37249         * lib/getdomainname.h: Likewise.
37250         * lib/getgroups.c: Likewise.
37251         * lib/gethostname.c: Likewise.
37252         * lib/gethrxtime.c: Likewise.
37253         * lib/gethrxtime.h: Likewise.
37254         * lib/getloadavg.c: Likewise.
37255         * lib/getndelim2.c: Likewise.
37256         * lib/getndelim2.h: Likewise.
37257         * lib/getnline.c: Likewise.
37258         * lib/getnline.h: Likewise.
37259         * lib/getopt.c: Likewise.
37260         * lib/getopt.in.h: Likewise.
37261         * lib/getopt1.c: Likewise.
37262         * lib/getopt_int.h: Likewise.
37263         * lib/getpagesize.h: Likewise.
37264         * lib/getsubopt.c: Likewise.
37265         * lib/gettime.c: Likewise.
37266         * lib/getugroups.c: Likewise.
37267         * lib/getugroups.h: Likewise.
37268         * lib/getusershell.c: Likewise.
37269         * lib/gl_anyavltree_list1.h: Likewise.
37270         * lib/gl_anyavltree_list2.h: Likewise.
37271         * lib/gl_anyhash_list1.h: Likewise.
37272         * lib/gl_anyhash_list2.h: Likewise.
37273         * lib/gl_anylinked_list1.h: Likewise.
37274         * lib/gl_anylinked_list2.h: Likewise.
37275         * lib/gl_anyrbtree_list1.h: Likewise.
37276         * lib/gl_anyrbtree_list2.h: Likewise.
37277         * lib/gl_anytree_list1.h: Likewise.
37278         * lib/gl_anytree_list2.h: Likewise.
37279         * lib/gl_anytree_oset.h: Likewise.
37280         * lib/gl_anytreehash_list1.h: Likewise.
37281         * lib/gl_anytreehash_list2.h: Likewise.
37282         * lib/gl_array_list.c: Likewise.
37283         * lib/gl_array_list.h: Likewise.
37284         * lib/gl_array_oset.c: Likewise.
37285         * lib/gl_array_oset.h: Likewise.
37286         * lib/gl_avltree_list.c: Likewise.
37287         * lib/gl_avltree_list.h: Likewise.
37288         * lib/gl_avltree_oset.c: Likewise.
37289         * lib/gl_avltree_oset.h: Likewise.
37290         * lib/gl_avltreehash_list.c: Likewise.
37291         * lib/gl_avltreehash_list.h: Likewise.
37292         * lib/gl_carray_list.c: Likewise.
37293         * lib/gl_carray_list.h: Likewise.
37294         * lib/gl_linked_list.c: Likewise.
37295         * lib/gl_linked_list.h: Likewise.
37296         * lib/gl_linkedhash_list.c: Likewise.
37297         * lib/gl_linkedhash_list.h: Likewise.
37298         * lib/gl_list.c: Likewise.
37299         * lib/gl_list.h: Likewise.
37300         * lib/gl_oset.c: Likewise.
37301         * lib/gl_oset.h: Likewise.
37302         * lib/gl_rbtree_list.c: Likewise.
37303         * lib/gl_rbtree_list.h: Likewise.
37304         * lib/gl_rbtree_oset.c: Likewise.
37305         * lib/gl_rbtree_oset.h: Likewise.
37306         * lib/gl_rbtreehash_list.c: Likewise.
37307         * lib/gl_rbtreehash_list.h: Likewise.
37308         * lib/gl_sublist.c: Likewise.
37309         * lib/gl_sublist.h: Likewise.
37310         * lib/group-member.c: Likewise.
37311         * lib/group-member.h: Likewise.
37312         * lib/hard-locale.c: Likewise.
37313         * lib/hard-locale.h: Likewise.
37314         * lib/hash-pjw.c: Likewise.
37315         * lib/hash-pjw.h: Likewise.
37316         * lib/hash-triple.c: Likewise.
37317         * lib/hash.c: Likewise.
37318         * lib/hash.h: Likewise.
37319         * lib/human.c: Likewise.
37320         * lib/human.h: Likewise.
37321         * lib/i-ring.c: Likewise.
37322         * lib/i-ring.h: Likewise.
37323         * lib/idcache.c: Likewise.
37324         * lib/imaxabs.c: Likewise.
37325         * lib/imaxdiv.c: Likewise.
37326         * lib/inet_pton.c: Likewise.
37327         * lib/inet_pton.h: Likewise.
37328         * lib/intprops.h: Likewise.
37329         * lib/inttostr.c: Likewise.
37330         * lib/inttostr.h: Likewise.
37331         * lib/inttypes.in.h: Likewise.
37332         * lib/isapipe.c: Likewise.
37333         * lib/isdir.c: Likewise.
37334         * lib/isnan.c: Likewise.
37335         * lib/isnan.h: Likewise.
37336         * lib/isnanf.c: Likewise.
37337         * lib/isnanf.h: Likewise.
37338         * lib/isnanl-nolibm.h: Likewise.
37339         * lib/isnanl.c: Likewise.
37340         * lib/isnanl.h: Likewise.
37341         * lib/javacomp.c: Likewise.
37342         * lib/javacomp.h: Likewise.
37343         * lib/javaexec.c: Likewise.
37344         * lib/javaexec.h: Likewise.
37345         * lib/javaversion.c: Likewise.
37346         * lib/javaversion.h: Likewise.
37347         * lib/javaversion.java: Likewise.
37348         * lib/lbrkprop.h: Likewise.
37349         * lib/lchmod.h: Likewise.
37350         * lib/lchown.c: Likewise.
37351         * lib/ldexpl.c: Likewise.
37352         * lib/linebreak.c: Likewise.
37353         * lib/linebreak.h: Likewise.
37354         * lib/linebuffer.c: Likewise.
37355         * lib/linebuffer.h: Likewise.
37356         * lib/locale.in.h: Likewise.
37357         * lib/logl.c: Likewise.
37358         * lib/long-options.c: Likewise.
37359         * lib/long-options.h: Likewise.
37360         * lib/lstat.c: Likewise.
37361         * lib/lstat.h: Likewise.
37362         * lib/math.in.h: Likewise.
37363         * lib/mbchar.c: Likewise.
37364         * lib/mbchar.h: Likewise.
37365         * lib/mbfile.h: Likewise.
37366         * lib/mbiter.h: Likewise.
37367         * lib/mbscasecmp.c: Likewise.
37368         * lib/mbscasestr.c: Likewise.
37369         * lib/mbschr.c: Likewise.
37370         * lib/mbscspn.c: Likewise.
37371         * lib/mbslen.c: Likewise.
37372         * lib/mbsncasecmp.c: Likewise.
37373         * lib/mbsnlen.c: Likewise.
37374         * lib/mbspbrk.c: Likewise.
37375         * lib/mbspcasecmp.c: Likewise.
37376         * lib/mbsrchr.c: Likewise.
37377         * lib/mbssep.c: Likewise.
37378         * lib/mbsspn.c: Likewise.
37379         * lib/mbsstr.c: Likewise.
37380         * lib/mbstok_r.c: Likewise.
37381         * lib/mbswidth.c: Likewise.
37382         * lib/mbswidth.h: Likewise.
37383         * lib/mbuiter.h: Likewise.
37384         * lib/memcasecmp.c: Likewise.
37385         * lib/memcasecmp.h: Likewise.
37386         * lib/memchr.c: Likewise.
37387         * lib/memcmp.c: Likewise.
37388         * lib/memcoll.c: Likewise.
37389         * lib/memcoll.h: Likewise.
37390         * lib/memcpy.c: Likewise.
37391         * lib/memrchr.c: Likewise.
37392         * lib/mkancesdirs.c: Likewise.
37393         * lib/mkdir-p.c: Likewise.
37394         * lib/mkdir-p.h: Likewise.
37395         * lib/mkdir.c: Likewise.
37396         * lib/mkdirat.c: Likewise.
37397         * lib/mkdtemp.c: Likewise.
37398         * lib/mkstemp-safer.c: Likewise.
37399         * lib/mkstemp.c: Likewise.
37400         * lib/modechange.c: Likewise.
37401         * lib/modechange.h: Likewise.
37402         * lib/mountlist.c: Likewise.
37403         * lib/mountlist.h: Likewise.
37404         * lib/mpsort.c: Likewise.
37405         * lib/nanosleep.c: Likewise.
37406         * lib/obstack.c: Likewise.
37407         * lib/obstack.h: Likewise.
37408         * lib/open-safer.c: Likewise.
37409         * lib/open.c: Likewise.
37410         * lib/openat-die.c: Likewise.
37411         * lib/openat-priv.h: Likewise.
37412         * lib/openat-proc.c: Likewise.
37413         * lib/openat.c: Likewise.
37414         * lib/openat.h: Likewise.
37415         * lib/pagealign_alloc.c: Likewise.
37416         * lib/pagealign_alloc.h: Likewise.
37417         * lib/physmem.c: Likewise.
37418         * lib/physmem.h: Likewise.
37419         * lib/pipe-safer.c: Likewise.
37420         * lib/pipe.c: Likewise.
37421         * lib/pipe.h: Likewise.
37422         * lib/posixtm.c: Likewise.
37423         * lib/posixtm.h: Likewise.
37424         * lib/posixver.c: Likewise.
37425         * lib/printf-frexp.c: Likewise.
37426         * lib/printf-frexp.h: Likewise.
37427         * lib/printf-frexpl.c: Likewise.
37428         * lib/printf-frexpl.h: Likewise.
37429         * lib/printf.c: Likewise.
37430         * lib/progname.c: Likewise.
37431         * lib/progname.h: Likewise.
37432         * lib/progreloc.c: Likewise.
37433         * lib/putenv.c: Likewise.
37434         * lib/quote.c: Likewise.
37435         * lib/quote.h: Likewise.
37436         * lib/quotearg.c: Likewise.
37437         * lib/quotearg.h: Likewise.
37438         * lib/raise.c: Likewise.
37439         * lib/readline.c: Likewise.
37440         * lib/readline.h: Likewise.
37441         * lib/readlink.c: Likewise.
37442         * lib/readtokens.c: Likewise.
37443         * lib/readtokens.h: Likewise.
37444         * lib/readtokens0.c: Likewise.
37445         * lib/readtokens0.h: Likewise.
37446         * lib/readutmp.c: Likewise.
37447         * lib/readutmp.h: Likewise.
37448         * lib/realloc.c: Likewise.
37449         * lib/relocwrapper.c: Likewise.
37450         * lib/rename-dest-slash.c: Likewise.
37451         * lib/rename.c: Likewise.
37452         * lib/rmdir.c: Likewise.
37453         * lib/rpmatch.c: Likewise.
37454         * lib/safe-read.c: Likewise.
37455         * lib/safe-read.h: Likewise.
37456         * lib/safe-write.c: Likewise.
37457         * lib/safe-write.h: Likewise.
37458         * lib/same-inode.h: Likewise.
37459         * lib/same.c: Likewise.
37460         * lib/same.h: Likewise.
37461         * lib/save-cwd.c: Likewise.
37462         * lib/save-cwd.h: Likewise.
37463         * lib/savedir.c: Likewise.
37464         * lib/savedir.h: Likewise.
37465         * lib/savewd.c: Likewise.
37466         * lib/savewd.h: Likewise.
37467         * lib/search.in.h: Likewise.
37468         * lib/setenv.c: Likewise.
37469         * lib/setenv.h: Likewise.
37470         * lib/settime.c: Likewise.
37471         * lib/sh-quote.c: Likewise.
37472         * lib/sh-quote.h: Likewise.
37473         * lib/sig2str.c: Likewise.
37474         * lib/sig2str.h: Likewise.
37475         * lib/signal.in.h: Likewise.
37476         * lib/signbitd.c: Likewise.
37477         * lib/signbitf.c: Likewise.
37478         * lib/signbitl.c: Likewise.
37479         * lib/sigprocmask.c: Likewise.
37480         * lib/sincosl.c: Likewise.
37481         * lib/sleep.c: Likewise.
37482         * lib/sprintf.c: Likewise.
37483         * lib/sqrtl.c: Likewise.
37484         * lib/stat-time.h: Likewise.
37485         * lib/stdio--.h: Likewise.
37486         * lib/stdio-safer.h: Likewise.
37487         * lib/stdlib--.h: Likewise.
37488         * lib/stdlib-safer.h: Likewise.
37489         * lib/stdlib.in.h: Likewise.
37490         * lib/stpcpy.c: Likewise.
37491         * lib/stpncpy.c: Likewise.
37492         * lib/strchrnul.c: Likewise.
37493         * lib/strcspn.c: Likewise.
37494         * lib/strerror.c: Likewise.
37495         * lib/strftime.c: Likewise.
37496         * lib/strftime.h: Likewise.
37497         * lib/striconveh.c: Likewise.
37498         * lib/striconveh.h: Likewise.
37499         * lib/striconveha.c: Likewise.
37500         * lib/striconveha.h: Likewise.
37501         * lib/stripslash.c: Likewise.
37502         * lib/strnlen1.c: Likewise.
37503         * lib/strnlen1.h: Likewise.
37504         * lib/strtod.c: Likewise.
37505         * lib/strtoimax.c: Likewise.
37506         * lib/strtok_r.c: Likewise.
37507         * lib/strtol.c: Likewise.
37508         * lib/strtoll.c: Likewise.
37509         * lib/strtoul.c: Likewise.
37510         * lib/strtoull.c: Likewise.
37511         * lib/sysexits.in.h: Likewise.
37512         * lib/tempname.c: Likewise.
37513         * lib/tempname.h: Likewise.
37514         * lib/timespec.h: Likewise.
37515         * lib/tls.c: Likewise.
37516         * lib/tls.h: Likewise.
37517         * lib/tmpdir.c: Likewise.
37518         * lib/tmpdir.h: Likewise.
37519         * lib/tmpfile-safer.c: Likewise.
37520         * lib/tmpfile.c: Likewise.
37521         * lib/trigl.c: Likewise.
37522         * lib/trigl.h: Likewise.
37523         * lib/trim.c: Likewise.
37524         * lib/trim.h: Likewise.
37525         * lib/trunc.c: Likewise.
37526         * lib/truncf.c: Likewise.
37527         * lib/truncl.c: Likewise.
37528         * lib/tsearch.c: Likewise.
37529         * lib/unicodeio.c: Likewise.
37530         * lib/unicodeio.h: Likewise.
37531         * lib/unistd--.h: Likewise.
37532         * lib/unistd-safer.h: Likewise.
37533         * lib/unistdio/ulc-fprintf.c: Likewise.
37534         * lib/unistdio/ulc-vfprintf.c: Likewise.
37535         * lib/unlinkdir.c: Likewise.
37536         * lib/unlinkdir.h: Likewise.
37537         * lib/unlocked-io.h: Likewise.
37538         * lib/unsetenv.c: Likewise.
37539         * lib/userspec.c: Likewise.
37540         * lib/utime.c: Likewise.
37541         * lib/utimecmp.c: Likewise.
37542         * lib/utimecmp.h: Likewise.
37543         * lib/utimens.c: Likewise.
37544         * lib/verify.h: Likewise.
37545         * lib/verror.c: Likewise.
37546         * lib/verror.h: Likewise.
37547         * lib/version-etc-fsf.c: Likewise.
37548         * lib/version-etc.c: Likewise.
37549         * lib/version-etc.h: Likewise.
37550         * lib/vfprintf.c: Likewise.
37551         * lib/vprintf.c: Likewise.
37552         * lib/vsprintf.c: Likewise.
37553         * lib/w32spawn.h: Likewise.
37554         * lib/wait-process.c: Likewise.
37555         * lib/wait-process.h: Likewise.
37556         * lib/wcwidth.c: Likewise.
37557         * lib/write-any-file.c: Likewise.
37558         * lib/xalloc-die.c: Likewise.
37559         * lib/xalloc.h: Likewise.
37560         * lib/xasprintf.c: Likewise.
37561         * lib/xgetcwd.c: Likewise.
37562         * lib/xgetcwd.h: Likewise.
37563         * lib/xgetdomainname.c: Likewise.
37564         * lib/xgetdomainname.h: Likewise.
37565         * lib/xgethostname.c: Likewise.
37566         * lib/xmalloc.c: Likewise.
37567         * lib/xmalloca.c: Likewise.
37568         * lib/xmalloca.h: Likewise.
37569         * lib/xmemcoll.c: Likewise.
37570         * lib/xnanosleep.c: Likewise.
37571         * lib/xreadlink.c: Likewise.
37572         * lib/xreadlink.h: Likewise.
37573         * lib/xsetenv.c: Likewise.
37574         * lib/xsetenv.h: Likewise.
37575         * lib/xstriconv.c: Likewise.
37576         * lib/xstriconv.h: Likewise.
37577         * lib/xstrndup.c: Likewise.
37578         * lib/xstrndup.h: Likewise.
37579         * lib/xstrtod.c: Likewise.
37580         * lib/xstrtod.h: Likewise.
37581         * lib/xstrtol-error.c: Likewise.
37582         * lib/xstrtol.c: Likewise.
37583         * lib/xstrtol.h: Likewise.
37584         * lib/xtime.h: Likewise.
37585         * lib/xvasprintf.c: Likewise.
37586         * lib/xvasprintf.h: Likewise.
37587         * lib/yesno.c: Likewise.
37588         * lib/yesno.h: Likewise.
37589         * posix-modules: Likewise.
37590         * tests/test-alloca-opt.c: Likewise.
37591         * tests/test-arcfour.c: Likewise.
37592         * tests/test-arctwo.c: Likewise.
37593         * tests/test-argmatch.c: Likewise.
37594         * tests/test-argp-2.sh: Likewise.
37595         * tests/test-argp.c: Likewise.
37596         * tests/test-arpa_inet.c: Likewise.
37597         * tests/test-array_list.c: Likewise.
37598         * tests/test-array_oset.c: Likewise.
37599         * tests/test-atexit.c: Likewise.
37600         * tests/test-avltree_list.c: Likewise.
37601         * tests/test-avltree_oset.c: Likewise.
37602         * tests/test-avltreehash_list.c: Likewise.
37603         * tests/test-base64.c: Likewise.
37604         * tests/test-binary-io.c: Likewise.
37605         * tests/test-byteswap.c: Likewise.
37606         * tests/test-c-ctype.c: Likewise.
37607         * tests/test-c-strcasecmp.c: Likewise.
37608         * tests/test-c-strcasestr.c: Likewise.
37609         * tests/test-c-strncasecmp.c: Likewise.
37610         * tests/test-c-strstr.c: Likewise.
37611         * tests/test-canonicalize-lgpl.c: Likewise.
37612         * tests/test-canonicalize.c: Likewise.
37613         * tests/test-carray_list.c: Likewise.
37614         * tests/test-ceilf.c: Likewise.
37615         * tests/test-ceill.c: Likewise.
37616         * tests/test-count-one-bits.c: Likewise.
37617         * tests/test-crc.c: Likewise.
37618         * tests/test-dirname.c: Likewise.
37619         * tests/test-fbufmode.c: Likewise.
37620         * tests/test-fcntl.c: Likewise.
37621         * tests/test-fflush.c: Likewise.
37622         * tests/test-floorf.c: Likewise.
37623         * tests/test-floorl.c: Likewise.
37624         * tests/test-fopen.c: Likewise.
37625         * tests/test-fprintf-posix.c: Likewise.
37626         * tests/test-fprintf-posix.h: Likewise.
37627         * tests/test-fpurge.c: Likewise.
37628         * tests/test-freadable.c: Likewise.
37629         * tests/test-freadahead.c: Likewise.
37630         * tests/test-freading.c: Likewise.
37631         * tests/test-freopen.c: Likewise.
37632         * tests/test-frexp.c: Likewise.
37633         * tests/test-frexpl.c: Likewise.
37634         * tests/test-fseek.c: Likewise.
37635         * tests/test-fseeko.c: Likewise.
37636         * tests/test-fseterr.c: Likewise.
37637         * tests/test-fstrcmp.c: Likewise.
37638         * tests/test-ftell.c: Likewise.
37639         * tests/test-ftello.c: Likewise.
37640         * tests/test-fwritable.c: Likewise.
37641         * tests/test-fwriting.c: Likewise.
37642         * tests/test-getaddrinfo.c: Likewise.
37643         * tests/test-getpass.c: Likewise.
37644         * tests/test-gettimeofday.c: Likewise.
37645         * tests/test-hmac-md5.c: Likewise.
37646         * tests/test-hmac-sha1.c: Likewise.
37647         * tests/test-iconv.c: Likewise.
37648         * tests/test-iconvme.c: Likewise.
37649         * tests/test-inttypes.c: Likewise.
37650         * tests/test-isnan.c: Likewise.
37651         * tests/test-isnanf.c: Likewise.
37652         * tests/test-isnanl-nolibm.c: Likewise.
37653         * tests/test-isnanl.c: Likewise.
37654         * tests/test-isnanl.h: Likewise.
37655         * tests/test-ldexpl.c: Likewise.
37656         * tests/test-linked_list.c: Likewise.
37657         * tests/test-linkedhash_list.c: Likewise.
37658         * tests/test-locale.c: Likewise.
37659         * tests/test-localename.c: Likewise.
37660         * tests/test-lock.c: Likewise.
37661         * tests/test-lseek.c: Likewise.
37662         * tests/test-malloca.c: Likewise.
37663         * tests/test-math.c: Likewise.
37664         * tests/test-mbscasecmp.c: Likewise.
37665         * tests/test-mbscasestr1.c: Likewise.
37666         * tests/test-mbscasestr2.c: Likewise.
37667         * tests/test-mbscasestr3.c: Likewise.
37668         * tests/test-mbscasestr4.c: Likewise.
37669         * tests/test-mbschr.c: Likewise.
37670         * tests/test-mbscspn.c: Likewise.
37671         * tests/test-mbsncasecmp.c: Likewise.
37672         * tests/test-mbspbrk.c: Likewise.
37673         * tests/test-mbspcasecmp.c: Likewise.
37674         * tests/test-mbsrchr.c: Likewise.
37675         * tests/test-mbsspn.c: Likewise.
37676         * tests/test-mbsstr1.c: Likewise.
37677         * tests/test-mbsstr2.c: Likewise.
37678         * tests/test-mbsstr3.c: Likewise.
37679         * tests/test-md5.c: Likewise.
37680         * tests/test-memmem.c: Likewise.
37681         * tests/test-netinet_in.c: Likewise.
37682         * tests/test-open.c: Likewise.
37683         * tests/test-printf-frexp.c: Likewise.
37684         * tests/test-printf-frexpl.c: Likewise.
37685         * tests/test-printf-posix.c: Likewise.
37686         * tests/test-printf-posix.h: Likewise.
37687         * tests/test-rbtree_list.c: Likewise.
37688         * tests/test-rbtree_oset.c: Likewise.
37689         * tests/test-rbtreehash_list.c: Likewise.
37690         * tests/test-read-file.c: Likewise.
37691         * tests/test-rijndael.c: Likewise.
37692         * tests/test-search.c: Likewise.
37693         * tests/test-signbit.c: Likewise.
37694         * tests/test-sleep.c: Likewise.
37695         * tests/test-snprintf-posix.c: Likewise.
37696         * tests/test-snprintf-posix.h: Likewise.
37697         * tests/test-snprintf.c: Likewise.
37698         * tests/test-sprintf-posix.c: Likewise.
37699         * tests/test-sprintf-posix.h: Likewise.
37700         * tests/test-stat-time.c: Likewise.
37701         * tests/test-stdbool.c: Likewise.
37702         * tests/test-stdint.c: Likewise.
37703         * tests/test-stdio.c: Likewise.
37704         * tests/test-stdlib.c: Likewise.
37705         * tests/test-stpncpy.c: Likewise.
37706         * tests/test-strcasestr.c: Likewise.
37707         * tests/test-striconv.c: Likewise.
37708         * tests/test-striconveh.c: Likewise.
37709         * tests/test-striconveha.c: Likewise.
37710         * tests/test-string.c: Likewise.
37711         * tests/test-sys_select.c: Likewise.
37712         * tests/test-sys_socket.c: Likewise.
37713         * tests/test-sys_stat.c: Likewise.
37714         * tests/test-sys_time.c: Likewise.
37715         * tests/test-sysexits.c: Likewise.
37716         * tests/test-time.c: Likewise.
37717         * tests/test-tls.c: Likewise.
37718         * tests/test-trunc.c: Likewise.
37719         * tests/test-truncf.c: Likewise.
37720         * tests/test-truncl.c: Likewise.
37721         * tests/test-unistd.c: Likewise.
37722         * tests/test-vasnprintf-posix.c: Likewise.
37723         * tests/test-vasnprintf-posix2.c: Likewise.
37724         * tests/test-vasnprintf.c: Likewise.
37725         * tests/test-vasprintf-posix.c: Likewise.
37726         * tests/test-vasprintf.c: Likewise.
37727         * tests/test-verify.c: Likewise.
37728         * tests/test-vfprintf-posix.c: Likewise.
37729         * tests/test-vprintf-posix.c: Likewise.
37730         * tests/test-vsnprintf-posix.c: Likewise.
37731         * tests/test-vsnprintf.c: Likewise.
37732         * tests/test-vsprintf-posix.c: Likewise.
37733         * tests/test-wchar.c: Likewise.
37734         * tests/test-wctype.c: Likewise.
37735         * tests/test-wcwidth.c: Likewise.
37736         * tests/test-xstrtol.c: Likewise.
37737         * tests/test-xvasprintf.c: Likewise.
37738         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37739         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37740         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37741         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37742         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37743         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37744         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37745         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37746         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37747         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37748         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37749         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37750         * tests/uniname/test-uninames.c: Likewise.
37751         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37752         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
37753         * tests/unistdio/test-u16-printf1.h: Likewise.
37754         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37755         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37756         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37757         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37758         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37759         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37760         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37761         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
37762         * tests/unistdio/test-u32-printf1.h: Likewise.
37763         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37764         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37765         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37766         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37767         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37768         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37769         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37770         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
37771         * tests/unistdio/test-u8-printf1.h: Likewise.
37772         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37773         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37774         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37775         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37776         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37777         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37778         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37779         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
37780         * tests/unistdio/test-ulc-printf1.h: Likewise.
37781         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37782         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37783         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37784         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37785         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37786         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37787         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37788         * tests/uniwidth/test-u16-width.c: Likewise.
37789         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37790         * tests/uniwidth/test-u32-width.c: Likewise.
37791         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37792         * tests/uniwidth/test-u8-width.c: Likewise.
37793         * tests/uniwidth/test-uc_width.c: Likewise.
37794         * config/srclist-update: Likewise.
37795         (fixlicense): Update to GPLv3+.
37796
37797         Change copyright notice from LGPLv2.1+ to LGPLv3+.
37798         * tests/test-tsearch.c: Change copyright notice.
37799
37800         Change copyright notice from LGPLv2.0+ to LGPLv3+.
37801         * lib/c-strcaseeq.h: Change copyright notice.
37802         * lib/streq.h: Likewise.
37803         * lib/uniconv.h: Likewise.
37804         * lib/uniconv/u-conv-from-enc.h: Likewise.
37805         * lib/uniconv/u-conv-to-enc.h: Likewise.
37806         * lib/uniconv/u-strconv-from-enc.h: Likewise.
37807         * lib/uniconv/u-strconv-to-enc.h: Likewise.
37808         * lib/uniconv/u16-conv-from-enc.c: Likewise.
37809         * lib/uniconv/u16-conv-to-enc.c: Likewise.
37810         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
37811         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
37812         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
37813         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
37814         * lib/uniconv/u32-conv-from-enc.c: Likewise.
37815         * lib/uniconv/u32-conv-to-enc.c: Likewise.
37816         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
37817         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
37818         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
37819         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
37820         * lib/uniconv/u8-conv-from-enc.c: Likewise.
37821         * lib/uniconv/u8-conv-to-enc.c: Likewise.
37822         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
37823         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
37824         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
37825         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
37826         * lib/uniname.h: Likewise.
37827         * lib/uniname/uniname.c: Likewise.
37828         * lib/unistdio.h: Likewise.
37829         * lib/unistdio/u-asnprintf.h: Likewise.
37830         * lib/unistdio/u-asprintf.h: Likewise.
37831         * lib/unistdio/u-printf-args.c: Likewise.
37832         * lib/unistdio/u-printf-args.h: Likewise.
37833         * lib/unistdio/u-printf-parse.h: Likewise.
37834         * lib/unistdio/u-snprintf.h: Likewise.
37835         * lib/unistdio/u-sprintf.h: Likewise.
37836         * lib/unistdio/u-vasprintf.h: Likewise.
37837         * lib/unistdio/u-vsnprintf.h: Likewise.
37838         * lib/unistdio/u-vsprintf.h: Likewise.
37839         * lib/unistdio/u16-asnprintf.c: Likewise.
37840         * lib/unistdio/u16-asprintf.c: Likewise.
37841         * lib/unistdio/u16-printf-parse.c: Likewise.
37842         * lib/unistdio/u16-snprintf.c: Likewise.
37843         * lib/unistdio/u16-sprintf.c: Likewise.
37844         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
37845         * lib/unistdio/u16-u16-asprintf.c: Likewise.
37846         * lib/unistdio/u16-u16-snprintf.c: Likewise.
37847         * lib/unistdio/u16-u16-sprintf.c: Likewise.
37848         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
37849         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
37850         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
37851         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
37852         * lib/unistdio/u16-vasnprintf.c: Likewise.
37853         * lib/unistdio/u16-vasprintf.c: Likewise.
37854         * lib/unistdio/u16-vsnprintf.c: Likewise.
37855         * lib/unistdio/u16-vsprintf.c: Likewise.
37856         * lib/unistdio/u32-asnprintf.c: Likewise.
37857         * lib/unistdio/u32-asprintf.c: Likewise.
37858         * lib/unistdio/u32-printf-parse.c: Likewise.
37859         * lib/unistdio/u32-snprintf.c: Likewise.
37860         * lib/unistdio/u32-sprintf.c: Likewise.
37861         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
37862         * lib/unistdio/u32-u32-asprintf.c: Likewise.
37863         * lib/unistdio/u32-u32-snprintf.c: Likewise.
37864         * lib/unistdio/u32-u32-sprintf.c: Likewise.
37865         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
37866         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
37867         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
37868         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
37869         * lib/unistdio/u32-vasnprintf.c: Likewise.
37870         * lib/unistdio/u32-vasprintf.c: Likewise.
37871         * lib/unistdio/u32-vsnprintf.c: Likewise.
37872         * lib/unistdio/u32-vsprintf.c: Likewise.
37873         * lib/unistdio/u8-asnprintf.c: Likewise.
37874         * lib/unistdio/u8-asprintf.c: Likewise.
37875         * lib/unistdio/u8-printf-parse.c: Likewise.
37876         * lib/unistdio/u8-snprintf.c: Likewise.
37877         * lib/unistdio/u8-sprintf.c: Likewise.
37878         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
37879         * lib/unistdio/u8-u8-asprintf.c: Likewise.
37880         * lib/unistdio/u8-u8-snprintf.c: Likewise.
37881         * lib/unistdio/u8-u8-sprintf.c: Likewise.
37882         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
37883         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
37884         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
37885         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
37886         * lib/unistdio/u8-vasnprintf.c: Likewise.
37887         * lib/unistdio/u8-vasprintf.c: Likewise.
37888         * lib/unistdio/u8-vsnprintf.c: Likewise.
37889         * lib/unistdio/u8-vsprintf.c: Likewise.
37890         * lib/unistdio/ulc-asnprintf.c: Likewise.
37891         * lib/unistdio/ulc-asprintf.c: Likewise.
37892         * lib/unistdio/ulc-printf-parse.c: Likewise.
37893         * lib/unistdio/ulc-snprintf.c: Likewise.
37894         * lib/unistdio/ulc-sprintf.c: Likewise.
37895         * lib/unistdio/ulc-vasnprintf.c: Likewise.
37896         * lib/unistdio/ulc-vasprintf.c: Likewise.
37897         * lib/unistdio/ulc-vsnprintf.c: Likewise.
37898         * lib/unistdio/ulc-vsprintf.c: Likewise.
37899         * lib/unistr.h: Likewise.
37900         * lib/unistr/u-cpy-alloc.h: Likewise.
37901         * lib/unistr/u-cpy.h: Likewise.
37902         * lib/unistr/u-endswith.h: Likewise.
37903         * lib/unistr/u-move.h: Likewise.
37904         * lib/unistr/u-set.h: Likewise.
37905         * lib/unistr/u-startswith.h: Likewise.
37906         * lib/unistr/u-stpcpy.h: Likewise.
37907         * lib/unistr/u-stpncpy.h: Likewise.
37908         * lib/unistr/u-strcat.h: Likewise.
37909         * lib/unistr/u-strcpy.h: Likewise.
37910         * lib/unistr/u-strcspn.h: Likewise.
37911         * lib/unistr/u-strdup.h: Likewise.
37912         * lib/unistr/u-strlen.h: Likewise.
37913         * lib/unistr/u-strncat.h: Likewise.
37914         * lib/unistr/u-strncpy.h: Likewise.
37915         * lib/unistr/u-strnlen.h: Likewise.
37916         * lib/unistr/u-strpbrk.h: Likewise.
37917         * lib/unistr/u-strspn.h: Likewise.
37918         * lib/unistr/u-strstr.h: Likewise.
37919         * lib/unistr/u-strtok.h: Likewise.
37920         * lib/unistr/u16-check.c: Likewise.
37921         * lib/unistr/u16-chr.c: Likewise.
37922         * lib/unistr/u16-cmp.c: Likewise.
37923         * lib/unistr/u16-cpy-alloc.c: Likewise.
37924         * lib/unistr/u16-cpy.c: Likewise.
37925         * lib/unistr/u16-endswith.c: Likewise.
37926         * lib/unistr/u16-mblen.c: Likewise.
37927         * lib/unistr/u16-mbsnlen.c: Likewise.
37928         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37929         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37930         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37931         * lib/unistr/u16-mbtouc.c: Likewise.
37932         * lib/unistr/u16-mbtoucr.c: Likewise.
37933         * lib/unistr/u16-move.c: Likewise.
37934         * lib/unistr/u16-next.c: Likewise.
37935         * lib/unistr/u16-prev.c: Likewise.
37936         * lib/unistr/u16-set.c: Likewise.
37937         * lib/unistr/u16-startswith.c: Likewise.
37938         * lib/unistr/u16-stpcpy.c: Likewise.
37939         * lib/unistr/u16-stpncpy.c: Likewise.
37940         * lib/unistr/u16-strcat.c: Likewise.
37941         * lib/unistr/u16-strchr.c: Likewise.
37942         * lib/unistr/u16-strcmp.c: Likewise.
37943         * lib/unistr/u16-strcpy.c: Likewise.
37944         * lib/unistr/u16-strcspn.c: Likewise.
37945         * lib/unistr/u16-strdup.c: Likewise.
37946         * lib/unistr/u16-strlen.c: Likewise.
37947         * lib/unistr/u16-strmblen.c: Likewise.
37948         * lib/unistr/u16-strmbtouc.c: Likewise.
37949         * lib/unistr/u16-strncat.c: Likewise.
37950         * lib/unistr/u16-strncmp.c: Likewise.
37951         * lib/unistr/u16-strncpy.c: Likewise.
37952         * lib/unistr/u16-strnlen.c: Likewise.
37953         * lib/unistr/u16-strpbrk.c: Likewise.
37954         * lib/unistr/u16-strrchr.c: Likewise.
37955         * lib/unistr/u16-strspn.c: Likewise.
37956         * lib/unistr/u16-strstr.c: Likewise.
37957         * lib/unistr/u16-strtok.c: Likewise.
37958         * lib/unistr/u16-to-u32.c: Likewise.
37959         * lib/unistr/u16-to-u8.c: Likewise.
37960         * lib/unistr/u16-uctomb-aux.c: Likewise.
37961         * lib/unistr/u16-uctomb.c: Likewise.
37962         * lib/unistr/u32-check.c: Likewise.
37963         * lib/unistr/u32-chr.c: Likewise.
37964         * lib/unistr/u32-cmp.c: Likewise.
37965         * lib/unistr/u32-cpy-alloc.c: Likewise.
37966         * lib/unistr/u32-cpy.c: Likewise.
37967         * lib/unistr/u32-endswith.c: Likewise.
37968         * lib/unistr/u32-mblen.c: Likewise.
37969         * lib/unistr/u32-mbsnlen.c: Likewise.
37970         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37971         * lib/unistr/u32-mbtouc.c: Likewise.
37972         * lib/unistr/u32-mbtoucr.c: Likewise.
37973         * lib/unistr/u32-move.c: Likewise.
37974         * lib/unistr/u32-next.c: Likewise.
37975         * lib/unistr/u32-prev.c: Likewise.
37976         * lib/unistr/u32-set.c: Likewise.
37977         * lib/unistr/u32-startswith.c: Likewise.
37978         * lib/unistr/u32-stpcpy.c: Likewise.
37979         * lib/unistr/u32-stpncpy.c: Likewise.
37980         * lib/unistr/u32-strcat.c: Likewise.
37981         * lib/unistr/u32-strchr.c: Likewise.
37982         * lib/unistr/u32-strcmp.c: Likewise.
37983         * lib/unistr/u32-strcpy.c: Likewise.
37984         * lib/unistr/u32-strcspn.c: Likewise.
37985         * lib/unistr/u32-strdup.c: Likewise.
37986         * lib/unistr/u32-strlen.c: Likewise.
37987         * lib/unistr/u32-strmblen.c: Likewise.
37988         * lib/unistr/u32-strmbtouc.c: Likewise.
37989         * lib/unistr/u32-strncat.c: Likewise.
37990         * lib/unistr/u32-strncmp.c: Likewise.
37991         * lib/unistr/u32-strncpy.c: Likewise.
37992         * lib/unistr/u32-strnlen.c: Likewise.
37993         * lib/unistr/u32-strpbrk.c: Likewise.
37994         * lib/unistr/u32-strrchr.c: Likewise.
37995         * lib/unistr/u32-strspn.c: Likewise.
37996         * lib/unistr/u32-strstr.c: Likewise.
37997         * lib/unistr/u32-strtok.c: Likewise.
37998         * lib/unistr/u32-to-u16.c: Likewise.
37999         * lib/unistr/u32-to-u8.c: Likewise.
38000         * lib/unistr/u32-uctomb.c: Likewise.
38001         * lib/unistr/u8-check.c: Likewise.
38002         * lib/unistr/u8-chr.c: Likewise.
38003         * lib/unistr/u8-cmp.c: Likewise.
38004         * lib/unistr/u8-cpy-alloc.c: Likewise.
38005         * lib/unistr/u8-cpy.c: Likewise.
38006         * lib/unistr/u8-endswith.c: Likewise.
38007         * lib/unistr/u8-mblen.c: Likewise.
38008         * lib/unistr/u8-mbsnlen.c: Likewise.
38009         * lib/unistr/u8-mbtouc-aux.c: Likewise.
38010         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
38011         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
38012         * lib/unistr/u8-mbtouc.c: Likewise.
38013         * lib/unistr/u8-mbtoucr.c: Likewise.
38014         * lib/unistr/u8-move.c: Likewise.
38015         * lib/unistr/u8-next.c: Likewise.
38016         * lib/unistr/u8-prev.c: Likewise.
38017         * lib/unistr/u8-set.c: Likewise.
38018         * lib/unistr/u8-startswith.c: Likewise.
38019         * lib/unistr/u8-stpcpy.c: Likewise.
38020         * lib/unistr/u8-stpncpy.c: Likewise.
38021         * lib/unistr/u8-strcat.c: Likewise.
38022         * lib/unistr/u8-strchr.c: Likewise.
38023         * lib/unistr/u8-strcmp.c: Likewise.
38024         * lib/unistr/u8-strcpy.c: Likewise.
38025         * lib/unistr/u8-strcspn.c: Likewise.
38026         * lib/unistr/u8-strdup.c: Likewise.
38027         * lib/unistr/u8-strlen.c: Likewise.
38028         * lib/unistr/u8-strmblen.c: Likewise.
38029         * lib/unistr/u8-strmbtouc.c: Likewise.
38030         * lib/unistr/u8-strncat.c: Likewise.
38031         * lib/unistr/u8-strncmp.c: Likewise.
38032         * lib/unistr/u8-strncpy.c: Likewise.
38033         * lib/unistr/u8-strnlen.c: Likewise.
38034         * lib/unistr/u8-strpbrk.c: Likewise.
38035         * lib/unistr/u8-strrchr.c: Likewise.
38036         * lib/unistr/u8-strspn.c: Likewise.
38037         * lib/unistr/u8-strstr.c: Likewise.
38038         * lib/unistr/u8-strtok.c: Likewise.
38039         * lib/unistr/u8-to-u16.c: Likewise.
38040         * lib/unistr/u8-to-u32.c: Likewise.
38041         * lib/unistr/u8-uctomb-aux.c: Likewise.
38042         * lib/unistr/u8-uctomb.c: Likewise.
38043         * lib/unitypes.h: Likewise.
38044         * lib/uniwidth.h: Likewise.
38045         * lib/uniwidth/cjk.h: Likewise.
38046         * lib/uniwidth/u16-strwidth.c: Likewise.
38047         * lib/uniwidth/u16-width.c: Likewise.
38048         * lib/uniwidth/u32-strwidth.c: Likewise.
38049         * lib/uniwidth/u32-width.c: Likewise.
38050         * lib/uniwidth/u8-strwidth.c: Likewise.
38051         * lib/uniwidth/u8-width.c: Likewise.
38052         * lib/uniwidth/width.c: Likewise.
38053
38054 2007-10-07  Bruno Haible  <bruno@clisp.org>
38055
38056         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
38057         The file is still under LGPL (see modules/inttypes).
38058
38059 2007-10-06  Bruno Haible  <bruno@clisp.org>
38060
38061         * modules/trunc (Dependencies): Add 'extensions'.
38062         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
38063         Reported by Ben Pfaff <blp@gnu.org>.
38064
38065 2007-10-06  Bruno Haible  <bruno@clisp.org>
38066
38067         * modules/freopen-tests: New file.
38068         * tests/test-freopen.c: New file.
38069
38070         * modules/fopen-tests: New file.
38071         * tests/test-fopen.c: New file.
38072
38073         * modules/fopen: New file.
38074         * lib/fopen.c: New file.
38075         * m4/fopen.m4: New file.
38076         * modules/freopen: New file.
38077         * lib/freopen.c: New file.
38078         * m4/freopen.m4: New file.
38079         * lib/stdio.in.h (fopen, freopen): New declarations.
38080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
38081         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38082         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
38083         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
38084         * doc/functions/fopen.texi: Mention the 'fopen' module.
38085         * doc/functions/freopen.texi: Mention the 'freopen' module.
38086
38087 2007-10-06  Bruno Haible  <bruno@clisp.org>
38088
38089         * modules/open-tests: New file.
38090         * tests/test-open.c: New file.
38091
38092         * modules/open: New file.
38093         * lib/open.c: New file.
38094         * m4/open.m4: New file.
38095         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
38096         lib/open.c does.
38097         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
38098         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
38099         macros.
38100         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
38101         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
38102         REPLACE_OPEN.
38103         * doc/functions/open.texi: Mention the 'open' module.
38104
38105 2007-10-04  Bruno Haible  <bruno@clisp.org>
38106
38107         * modules/ceill-tests: New file.
38108         * tests/test-ceill.c: New file.
38109
38110         * modules/ceill: New file.
38111         * lib/ceill.c: Replace entire file.
38112         * m4/ceill.m4: New file.
38113         * lib/math.in.h (ceill): Replace declaration.
38114         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
38115         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
38116         * doc/functions/ceill.texi: Mention the 'ceill' module.
38117         * modules/mathl (Files): Remove lib/ceill.c.
38118         (Depends-on): Add ceill.
38119
38120 2007-10-04  Bruno Haible  <bruno@clisp.org>
38121
38122         * modules/ceilf-tests: New file.
38123         * tests/test-ceilf.c: New file.
38124
38125         * modules/ceilf: New file.
38126         * lib/ceil.c: New file.
38127         * lib/ceilf.c: New file.
38128         * m4/ceilf.m4: New file.
38129         * lib/math.in.h (ceilf): New declaration.
38130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
38131         HAVE_DECL_CEILF.
38132         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
38133         HAVE_DECL_CEILF.
38134         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
38135
38136 2007-10-04  Bruno Haible  <bruno@clisp.org>
38137
38138         * modules/floorl-tests: New file.
38139         * tests/test-floorl.c: New file.
38140
38141         * modules/floorl: New file.
38142         * lib/floorl.c: Replace entire file.
38143         * m4/floorl.m4: New file.
38144         * lib/math.in.h (floorl): Replace declaration.
38145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
38146         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
38147         * doc/functions/floorl.texi: Mention the 'floorl' module.
38148         * modules/mathl (Files): Remove lib/floorl.c.
38149         (Depends-on): Add floorl.
38150
38151 2007-10-04  Bruno Haible  <bruno@clisp.org>
38152
38153         * modules/floorf-tests: New file.
38154         * tests/test-floorf.c: New file.
38155
38156         * modules/floorf: New file.
38157         * lib/floor.c: New file.
38158         * lib/floorf.c: New file.
38159         * m4/floorf.m4: New file.
38160         * lib/math.in.h (floorf): New declaration.
38161         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
38162         HAVE_DECL_FLOORF.
38163         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
38164         HAVE_DECL_FLOORF.
38165         * doc/functions/floorf.texi: Mention the 'floorf' module.
38166
38167 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
38168             Bruno Haible  <bruno@clisp.org>
38169
38170         Advertise for the Git server instead of the CVS server.
38171         * doc/gnulib-intro.texi (Steady Development): Mention the Git
38172         repository instead of the CVS one.
38173         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
38174         about all VCS systems generically.
38175         * doc/gnulib.texi (Introduction): Capitalize `Git'.
38176
38177 2007-10-04  Bruno Haible  <bruno@clisp.org>
38178
38179         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
38180         means.
38181         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
38182
38183 2007-10-04  Bruno Haible  <bruno@clisp.org>
38184
38185         * modules/truncl-tests: New file.
38186         * tests/test-truncl.c: New file.
38187
38188         * modules/truncl: New file.
38189         * lib/truncl.c: New file.
38190         * m4/truncl.m4: New file.
38191         * lib/math.in.h (truncl): New declaration.
38192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
38193         HAVE_DECL_TRUNCL.
38194         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
38195         HAVE_DECL_TRUNCL.
38196         * doc/functions/truncl.texi: Mention the 'truncl' module.
38197
38198 2007-10-04  Bruno Haible  <bruno@clisp.org>
38199
38200         * modules/truncf-tests: New file.
38201         * tests/test-truncf.c: New file.
38202
38203         * modules/truncf: New file.
38204         * lib/trunc.c: Make paramerizable through USE_* macros.
38205         * lib/truncf.c: New file.
38206         * m4/truncf.m4: New file.
38207         * lib/math.in.h (truncf): New declaration.
38208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
38209         HAVE_DECL_TRUNCF.
38210         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
38211         HAVE_DECL_TRUNCF.
38212         * doc/functions/truncf.texi: Mention the 'truncf' module.
38213
38214 2007-10-03  Bruno Haible  <bruno@clisp.org>
38215
38216         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
38217         augmentation also for tests modules.
38218         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
38219         * modules/atexit-tests (Makefile.am): Likewise.
38220         * modules/binary-io-tests (Makefile.am): Likewise.
38221         * modules/c-strcase-tests (Makefile.am): Likewise.
38222         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
38223         * modules/canonicalize-tests (Makefile.am): Likewise.
38224         * modules/closein-tests (Makefile.am): Likewise.
38225         * modules/fprintf-posix-tests (Makefile.am): Likewise.
38226         * modules/freadahead-tests (Makefile.am): Likewise.
38227         * modules/fseek-tests (Makefile.am): Likewise.
38228         * modules/fseeko-tests (Makefile.am): Likewise.
38229         * modules/ftell-tests (Makefile.am): Likewise.
38230         * modules/ftello-tests (Makefile.am): Likewise.
38231         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
38232         * modules/isnanl-tests (Makefile.am): Likewise.
38233         * modules/lseek-tests (Makefile.am): Likewise.
38234         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38235         * modules/mbscasestr-tests (Makefile.am): Likewise.
38236         * modules/mbschr-tests (Makefile.am): Likewise.
38237         * modules/mbscspn-tests (Makefile.am): Likewise.
38238         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38239         * modules/mbspbrk-tests (Makefile.am): Likewise.
38240         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38241         * modules/mbsrchr-tests (Makefile.am): Likewise.
38242         * modules/mbsspn-tests (Makefile.am): Likewise.
38243         * modules/mbsstr-tests (Makefile.am): Likewise.
38244         * modules/printf-posix-tests (Makefile.am): Likewise.
38245         * modules/snprintf-posix-tests (Makefile.am): Likewise.
38246         * modules/sprintf-posix-tests (Makefile.am): Likewise.
38247         * modules/tsearch-tests (Makefile.am): Likewise.
38248         * modules/uniname/uniname-tests (Makefile.am): Likewise.
38249         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38250         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38251         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38252         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38253         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38254         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
38255         * modules/vprintf-posix-tests (Makefile.am): Likewise.
38256         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
38257         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
38258         * modules/xstrtoimax-tests (Makefile.am): Likewise.
38259         * modules/xstrtol-tests (Makefile.am): Likewise.
38260         * modules/xstrtoumax-tests (Makefile.am): Likewise.
38261         * modules/yesno-tests (Makefile.am): Likewise.
38262
38263 2007-10-03  Bruno Haible  <bruno@clisp.org>
38264
38265         * modules/trunc-tests: New file.
38266         * tests/test-trunc.c: New file.
38267
38268         * modules/trunc: New file.
38269         * lib/trunc.c: New file.
38270         * m4/trunc.m4: New file.
38271         * lib/math.in.h (trunc): New declaration.
38272         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
38273         HAVE_DECL_TRUNC.
38274         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
38275         HAVE_DECL_TRUNC.
38276         * doc/functions/trunc.texi: Mention the 'trunc' module.
38277
38278 2007-10-03  Bruno Haible  <bruno@clisp.org>
38279
38280         * tests/test-fpending.c: New file, mostly copied
38281         from coreutils/lib/t-fpending.c.
38282         * modules/fpending-tests: New file.
38283
38284 2007-10-03  Bruno Haible  <bruno@clisp.org>
38285
38286         Port the stdio extensions to QNX (untested).
38287         * lib/fseterr.c (fseterr): Add support for QNX.
38288         * lib/fbufmode.c (fbufmode): Likewise.
38289         * lib/freadable.c (freadable): Likewise.
38290         * lib/fwritable.c (fwritable): Likewise.
38291         * lib/freading.c (freading): Likewise.
38292         * lib/fwriting.c (fwriting): Likewise.
38293         * lib/freadahead.c (freadahed): Likewise.
38294         * lib/fpurge.c (fpurge): Likewise.
38295         * lib/fseeko.c (rpl_fseeko): Likewise.
38296
38297 2007-10-03  Bruno Haible  <bruno@clisp.org>
38298             Jim Meyering  <jim@meyering.net>
38299             Eric Blake  <ebb9@byu.net>
38300
38301         * doc/relocatable.texi: Use @command instead of @program.
38302
38303 2007-10-02  Jim Meyering  <jim@meyering.net>
38304
38305         Perform one more "_.h" -> ".in.h" substitution.
38306         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
38307         instead of unistd_.h here, too.
38308
38309 2007-10-01  Bruno Haible  <bruno@clisp.org>
38310
38311         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
38312         Needed for the alloca-opt module.
38313
38314 2007-09-30  Bruno Haible  <bruno@clisp.org>
38315
38316         * lib/alloca.in.h: Renamed from lib/alloca_.h.
38317         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
38318         alloca_.h.
38319         * lib/argz.in.h: Renamed from lib/argz_.h.
38320         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
38321         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
38322         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
38323         byteswap_.h.
38324         * lib/dirent.in.h: Renamed from lib/dirent_.h.
38325         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
38326         dirent_.h.
38327         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
38328         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
38329         fcntl_.h.
38330         * lib/float.in.h: Renamed from lib/float_.h.
38331         * modules/float (Files, Makefile.am): Use float.in.h instead of
38332         float_.h.
38333         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
38334         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
38335         fnmatch_.h.
38336         * lib/getopt.in.h: Renamed from lib/getopt_.h.
38337         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
38338         getopt_.h.
38339         * lib/glob.in.h: Renamed from lib/glob_.h.
38340         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
38341         * lib/iconv.in.h: Renamed from lib/iconv_.h.
38342         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
38343         iconv_.h.
38344         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
38345         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
38346         inttypes_.h.
38347         * lib/locale.in.h: Renamed from lib/locale_.h.
38348         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
38349         locale_.h.
38350         * lib/math.in.h: Renamed from lib/math_.h.
38351         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
38352         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
38353         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
38354         of netinet_in_.h. Add dependency.
38355         * lib/poll.in.h: Renamed from lib/poll_.h.
38356         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
38357         * lib/search.in.h: Renamed from lib/search_.h.
38358         * modules/search (Files, Makefile.am): Use search.in.h instead of
38359         search_.h.
38360         * lib/signal.in.h: Renamed from lib/signal_.h.
38361         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
38362         _signal.h.
38363         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
38364         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
38365         stdbool_.h.
38366         * lib/stdint.in.h: Renamed from lib/stdint_.h.
38367         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
38368         stdint_.h.
38369         * lib/stdio.in.h: Renamed from lib/stdio_.h.
38370         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
38371         stdio_.h.
38372         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
38373         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
38374         stdlib_.h.
38375         * lib/string.in.h: Renamed from lib/string_.h.
38376         * modules/string (Files, Makefile.am): Use string.in.h instead of
38377         string_.h.
38378         * doc/gnulib-tool.texi (Initial import): Update.
38379         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
38380         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
38381         of sys_select_.h. Add dependency.
38382         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
38383         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
38384         of sys_socket_.h.
38385         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
38386         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
38387         sys_stat_.h.
38388         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
38389         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
38390         sys_time_.h.
38391         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
38392         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
38393         sysexits_.h.
38394         * lib/time.in.h: Renamed from lib/time_.h.
38395         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
38396         * lib/unistd.in.h: Renamed from lib/unistd_.h.
38397         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
38398         unistd_.h.
38399         * lib/wchar.in.h: Renamed from lib/wchar_.h.
38400         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
38401         wchar_.h.
38402         * lib/wctype.in.h: Renamed from lib/wctype_.h.
38403         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
38404         wctype_.h.
38405         * build-aux/bootstrap (slurp): Update.
38406         * lib/.cppi-disable: Update.
38407
38408 2007-09-30  Bruno Haible  <bruno@clisp.org>
38409
38410         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
38411         Needed on BeOS.
38412
38413 2007-09-30  Bruno Haible  <bruno@clisp.org>
38414
38415         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
38416
38417 2007-09-29  Bruno Haible  <bruno@clisp.org>
38418
38419         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
38420
38421 2007-09-29  Bruno Haible  <bruno@clisp.org>
38422
38423         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
38424         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
38425         * build-aux/install-reloc: Compile also areadlink.c.
38426         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
38427
38428 2007-09-29  Bruno Haible  <bruno@clisp.org>
38429
38430         * gnulib-tool (func_emit_initmacro_done): Indentation.
38431
38432 2007-09-29  Bruno Haible  <bruno@clisp.org>
38433
38434         * README: Add CVS checkout update instructions.
38435         Info from Bob Proulx <bob@proulx.com>.
38436
38437 2007-09-28  Eric Blake  <ebb9@byu.net>
38438
38439         Provide move-if-change.
38440         * build-aux/move-if-change: New file, based on best practice
38441         rather than any canonical upstream location.
38442
38443 2007-09-28  Jim Meyering  <jim@meyering.net>
38444
38445         Fix canonicalize loop-detection corner case.
38446         Do not attempt to stat the symlink values stored via seen_triple.
38447         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
38448         on linux-2.6.18, (but not 2.6.22).
38449         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
38450         triple_compare.  The former compares dev,ino,filename, while the latter
38451         would actually stat dirname(filename) when dev and ino were equal.
38452         * lib/hash-triple.c: Install <string.h>.
38453         (STREQ): Define.
38454         (triple_compare_ino_str): New function.
38455         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
38456
38457 2007-09-28  Eric Blake  <ebb9@byu.net>
38458
38459         Enforce that AC_REPLACE_FUNCS files exist.
38460         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
38461         override check for typos.
38462
38463         Fix test-closein on Solaris 10.
38464         * tests/test-closein.c (main): Don't assume stdin can be inherited
38465         closed on all systems.
38466         * tests/test-closein.sh: Likewise.
38467         Reported by Piotr Tarnowski.
38468
38469 2007-09-28  Jim Meyering  <jim@meyering.net>
38470
38471         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
38472
38473 2007-09-27  Jim Meyering  <jim@meyering.net>
38474
38475         canonicalize: Avoid a false-positive cycle failure.
38476         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
38477         Sort.  Remove cycle-check.
38478         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
38479         not cycle-check.h.
38480         (seen_triple): New function.
38481         (canonicalize_filename_mode): Use it instead of cycle-check.
38482         * tests/test-canonicalize.c: Add a test for this bug.
38483         * tests/test-canonicalize.sh: Set up and run the test.
38484
38485         New module, file-set, from coreutils.
38486         * modules/file-set: Define it.
38487         * lib/file-set.c, lib/file-set.h: Implement.
38488
38489         New module, hash-triple, from coreutils.
38490         * modules/hash-triple: Define it.
38491         * lib/hash-triple.c, lib/hash-triple.h: Implement.
38492
38493 2007-09-25  Eric Blake  <ebb9@byu.net>
38494
38495         Fix strerror on Interix.
38496         * lib/string_.h (strerror): Declare replacement.
38497         * doc/functions/strerror.texi (strerror): Document the Interix
38498         shortcoming.
38499         * modules/string (Makefile.am): Support new hooks.
38500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
38501         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
38502         gl_FUNC_STRERROR_SEPARATE.
38503         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
38504         * lib/strerror.c (rpl_strerror): Provide replacement.
38505         * modules/strerror (Depends-on): Add string.
38506         (configure.ac): Detect use of module.
38507         * tests/test-strerror.c: New file.
38508         * modules/strerror-tests: New test module.
38509         * modules/argp (Depends-on): Add strerror.
38510         * modules/error (Depends-on): Likewise.
38511         Reported by Martin Koeppe.
38512
38513 2007-09-24  Bruno Haible  <bruno@clisp.org>
38514
38515         * README: Update git instructions.
38516
38517 2007-09-24  Eric Blake  <ebb9@byu.net>
38518
38519         Revert fpending breakage from 2007-09-08.
38520         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
38521         __fpending.c.
38522
38523 2007-09-24  Jim Meyering  <jim@meyering.net>
38524
38525         filenamecat.c: Add a test.
38526         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
38527         showing how the function works when DIR is the empty string.
38528
38529 2007-09-21  Simon Josefsson  <simon@josefsson.org>
38530
38531         * tests/test-canonicalize.sh: Turn on executable bit.
38532
38533 2007-09-19  Eric Blake  <ebb9@byu.net>
38534
38535         * README: Update CVS instructions.
38536
38537 2007-09-18  Bruno Haible  <bruno@clisp.org>
38538
38539         * modules/areadlink: New file.
38540         * lib/areadlink.h (areadlink): New declaration.
38541         * lib/areadlink.c: New file, based on lib/xreadlink.c.
38542
38543 2007-09-17  Jim Meyering  <jim@meyering.net>
38544
38545         * lib/savewd.c (ESTALE) [!defined]: Define.
38546         Reported to be required on Interix by Martin Koeppe.
38547
38548 2007-09-17  Bruno Haible  <bruno@clisp.org>
38549
38550         * gnulib-tool (func_version): Use $version.
38551
38552 2007-09-16  Bruno Haible  <bruno@clisp.org>
38553
38554         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
38555         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
38556         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
38557         Reported by Greg Schafer <gschafer@zip.com.au>.
38558
38559 2007-09-15  Bruno Haible  <bruno@clisp.org>
38560
38561         * gnulib-tool (sed): Try a little harder to make bash understand the
38562         alias.
38563         Reported by Bruce Korb <bruce.korb@gmail.com>.
38564
38565 2007-09-13  Eric Blake  <ebb9@byu.net>
38566
38567         * ChangeLog: Remove conflict markers.
38568
38569 2007-09-13  Simon Josefsson  <simon@josefsson.org>
38570
38571         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
38572         Reported by Bruno Haible <bruno@clisp.org>.
38573
38574 2007-09-12  Bruno Haible  <bruno@clisp.org>
38575
38576         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
38577         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
38578         is not defined.
38579
38580 2007-09-12  Eric Blake  <ebb9@byu.net>
38581
38582         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
38583         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
38584         Autoconf definition.
38585         * modules/euidaccess (Depends-on): Add extensions, for
38586         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
38587         * modules/fnmatch (Depends-on): Likewise.
38588         * modules/getaddrinfo (Depends-on): Likewise.
38589         * modules/getdelim (Depends-on): Likewise.
38590         * modules/getline (Depends-on): Likewise.
38591         * modules/getsubopt (Depends-on): Likewise.
38592         * modules/gettext (Depends-on): Likewise.
38593         * modules/group-member (Depends-on): Likewise.
38594         * modules/mbchar (Depends-on): Likewise.
38595         * modules/memmem (Depends-on): Likewise.
38596         * modules/mempcpy (Depends-on): Likewise.
38597         * modules/memrchr (Depends-on): Likewise.
38598         * modules/pagealign_alloc (Depends-on): Likewise.
38599         * modules/readutmp (Depends-on): Likewise.
38600         * modules/stpcpy (Depends-on): Likewise.
38601         * modules/stpncpy (Depends-on): Likewise.
38602         * modules/strchrnul (Depends-on): Likewise.
38603         * modules/strndup (Depends-on): Likewise.
38604         * modules/strsep (Depends-on): Likewise.
38605         * modules/strverscmp (Depends-on): Likewise.
38606         * modules/vasprintf (Depends-on): Likewise.
38607         * modules/wcwidth (Depends-on): Likewise.
38608         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
38609         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
38610         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
38611         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
38612         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
38613         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38614         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
38615         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
38616         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
38617         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38618         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
38619         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
38620         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
38621         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
38622         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
38623         * m4/readutmp.m4 (gl_READUTMP): Likewise.
38624         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38625         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
38626         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
38627         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
38628         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
38629         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
38630         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
38631         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
38632         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
38633         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38634         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
38635         so that lock.m4 can be used in gettext without extensions module.
38636
38637 2007-09-11  Bruno Haible  <bruno@clisp.org>
38638
38639         * m4/isc-posix.m4: Remove file.
38640         Suggested by Eric Blake.
38641
38642 2007-09-11  Eric Blake  <ebb9@byu.net>
38643
38644         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
38645
38646 2007-09-10  Bruno Haible  <bruno@clisp.org>
38647
38648         * posix-modules: Fix typo in error message.
38649         Reported by Matt <mkraai@beckman.com>.
38650
38651 2007-09-09  Bruno Haible  <bruno@clisp.org>
38652
38653         * doc/functions/getdelim.texi: Update list of platforms lacking the
38654         function.
38655         * doc/functions/getline.texi: Likewise.
38656
38657 2007-09-09  Jim Meyering  <jim@meyering.net>
38658
38659         * lib/hash.c (hash_initialize): Detect calloc failure.
38660         Reported by Bruno Haible.
38661
38662 2007-09-09  Bruno Haible  <bruno@clisp.org>
38663
38664         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
38665         malloc or realloc fails.
38666
38667 2007-09-09  Bruno Haible  <bruno@clisp.org>
38668
38669         * modules/getcwd (Depends-on): Add malloc-posix.
38670         * modules/glob (Depends-on): Likewise.
38671         * modules/putenv (Depends-on): Likewise.
38672         * modules/strdup (Depends-on): Likewise.
38673         * modules/getdelim (Depends-on): Add realloc-posix.
38674         * modules/read-file (Depends-on): Likewise.
38675
38676 2007-09-09  Bruno Haible  <bruno@clisp.org>
38677
38678         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
38679         (gl_FUNC_MALLOC_POSIX): Require it.
38680         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
38681         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
38682         * modules/realloc (Files): Add m4/malloc.m4.
38683         * modules/calloc (Files): Likewise.
38684
38685 2007-09-09  Bruno Haible  <bruno@clisp.org>
38686
38687         * modules/malloc-posix: New file.
38688         * modules/malloc (Depends-on): Add malloc-posix.
38689         * lib/malloc.c: Include errno.h.
38690         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
38691         and a POSIX-compatible malloc into a single function. Set ENOMEM
38692         when returning NULL.
38693         * m4/malloc.m4: New file.
38694         * doc/functions/malloc.texi: Mention the malloc-posix module.
38695         * lib/stdlib_.h (malloc): New declaration.
38696         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38697         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
38698         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
38699         and HAVE_MALLOC_POSIX.
38700
38701 2007-09-09  Bruno Haible  <bruno@clisp.org>
38702
38703         * modules/realloc-posix: New file.
38704         * modules/realloc (Depends-on): Add realloc-posix.
38705         * lib/realloc.c: Include errno.h.
38706         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
38707         and a POSIX-compatible realloc into a single function. Set ENOMEM
38708         when returning NULL.
38709         * m4/realloc.m4: New file.
38710         * doc/functions/realloc.texi: Mention the realloc-posix module.
38711         * lib/stdlib_.h (realloc): New declaration.
38712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38713         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
38714         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
38715         and HAVE_REALLOC_POSIX.
38716
38717 2007-09-09  Bruno Haible  <bruno@clisp.org>
38718
38719         * modules/calloc-posix: New file.
38720         * modules/calloc (Depends-on): Add calloc-posix.
38721         * lib/calloc.c: Include errno.h.
38722         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
38723         and a POSIX-compatible calloc into a single function. Set ENOMEM
38724         when returning NULL.
38725         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
38726         * doc/functions/calloc.texi: Mention the calloc-posix module.
38727         * lib/stdlib_.h (calloc): New declaration.
38728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38729         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
38730         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
38731         and HAVE_CALLOC_POSIX.
38732
38733 2007-09-09  Bruno Haible  <bruno@clisp.org>
38734
38735         Allow for modules to show an arbitrary notice.
38736         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
38737         * gnulib-tool: New option --extract-notice.
38738         (func_usage): Document it.
38739         (sed_extract_prog): Update.
38740         (func_get_notice): New function.
38741         (func_modules_notice): New function.
38742         (func_import, func_create_testdir): Invoke it.
38743         Suggested by Jim Meyering.
38744
38745 2007-09-09  Bruno Haible  <bruno@clisp.org>
38746
38747         * gnulib-tool: New options --verbose, --quiet.
38748         (func_usage): Document them.
38749         (verbose): New variable.
38750         (func_execute_command): New function.
38751         (func_import): Don't show the module list and the file list if
38752         $verbose < 0.
38753         (func_create_testdir): Likewise. Use func_execute_command.
38754         (func_create_megatestdir): Use func_execute_command.
38755
38756 2007-09-08  Bruno Haible  <bruno@clisp.org>
38757
38758         * gnulib-tool (func_import): Prefer rsync over wget when available,
38759         for fetching the PO files.
38760
38761 2007-09-08  Bruno Haible  <bruno@clisp.org>
38762
38763         * posix-modules: New file. Portions copied from gnulib-tool.
38764         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
38765
38766 2007-09-08  Jim Meyering  <jim@meyering.net>
38767
38768         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
38769         * lib/fpending.h: Rename from __fpending.h.
38770         * lib/fpending.c: Rename from __fpending.c.
38771         Include "fpending.h", not "__fpending.h".
38772         * lib/__fpending.h, lib/__fpending.c: Remove files.
38773         * modules/fpending (Files): Reflect new file names.
38774         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
38775
38776 2007-09-08  Bruno Haible  <bruno@clisp.org>
38777
38778         * m4/inttypes-h.m4: Remove stub file.
38779
38780 2007-09-07  Simon Josefsson  <simon@josefsson.org>
38781
38782         * doc/headers/stdint.texi: Discuss #include_next issue.
38783
38784 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38785
38786         * build-aux/bootstrap: Remove obsolete comment about wget --help.
38787
38788 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38789
38790         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
38791         in variable name.
38792
38793 2007-09-03  Jim Meyering  <jim@meyering.net>
38794
38795         New module: git-version-gen.
38796         * modules/git-version-gen: New file.
38797
38798         Import changes from coreutils for bootstrap script.
38799
38800         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
38801
38802         bootstrap: uses rsync to download the .po files
38803         * build-aux/bootstrap (po_download_command_format): New global.
38804         (download_po_files): Use rsync.
38805         (update_po_files): Don't remove .po files after download,
38806         so future rsync runs can take advantage of the copies.
38807
38808         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
38809
38810         Solve the unnecessary-.po-file-regeneration problem once and for all.
38811         * build-aux/bootstrap (download_po_files): New function, renamed from
38812         get_translations.  Now, downloads, but doesn't update LINGUAS.
38813         (update_po_files): New function.
38814
38815         bootstrap: Ignore more.
38816         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
38817         uniwidth to e.g., lib/.gitignore.
38818         (slurp): Handle the sys_stat_.h -> sys mapping, too.
38819
38820         * build-aux/bootstrap: New setting: vc_ignore.
38821         (insert_sorted_if_absent): Create $file if absent.
38822         Adapt to new, possibly empty, list: $vc_ignore.
38823
38824         bootstrap: generate more ignorable names
38825         * build-aux/bootstrap (slurp): When generating ignorable names,
38826         also map .sin to .sed, .gperf to .c, and .y to .c.
38827
38828 2007-09-03  Jim Meyering  <jim@meyering.net>
38829
38830         * build-aux/git-version-gen: New file, from coreutils.  For details, see
38831         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
38832
38833 2007-09-02  Bruno Haible  <bruno@clisp.org>
38834
38835         Fix mis-recognition of 'mcs' on QNX 6.
38836         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
38837         output contains the string "Mono".
38838         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
38839         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
38840
38841 2007-09-01  Bruno Haible  <bruno@clisp.org>
38842
38843         Fix collision between uniwidth/* and linebreak modules.
38844         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
38845         u32_width): Remove declarations.
38846         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
38847         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
38848         streq3, streq2, streq1, streq0): Remove functions.
38849         (STREQ): Remove macro.
38850         (is_cjk_encoding): Remove function.
38851         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
38852         (uc_width, u8_width, u16_width, u32_width): Remove functions.
38853         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
38854         * NEWS: Document the change.
38855
38856 2007-09-01  Bruno Haible  <bruno@clisp.org>
38857
38858         * lib/streq.h: Add double-inclusion guard.
38859
38860 2007-09-01  Karl Berry  <karl@gnu.org>
38861
38862         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
38863
38864 2007-08-28  Jim Meyering  <jim@meyering.net>
38865
38866         Rename mreadlink_with_size to areadlink_with_size.
38867         * NEWS: Document the change.
38868         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
38869         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
38870         * lib/mreadlink.h: Rename this to...
38871         * lib/areadlink.h: ...this.
38872         * modules/mreadlink-with-size: Rename this to...
38873         * modules/areadlink-with-size: ...this.
38874         * lib/canonicalize.c: Reflect the renaming.
38875         * modules/canonicalize: Likewise.
38876
38877 2007-08-26  Bruno Haible  <bruno@clisp.org>
38878
38879         * gnulib-tool (func_import): When deciding which files to remove,
38880         consider also dangling symbolic links.
38881         Reported by Eric Blake.
38882
38883 2007-08-26  Bruno Haible  <bruno@clisp.org>
38884
38885         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
38886
38887 2007-08-23  Simon Josefsson  <simon@josefsson.org>
38888
38889         * lib/readline.c: Don't include getline.h, the prototype is now
38890         found in stdio.h.
38891
38892 2007-08-23  Jim Meyering  <jim@meyering.net>
38893
38894         Getdelim touchup.
38895         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
38896         around the funlockfile call, since funlockfile never sets errno.
38897         Don't set errno upon failed realloc.
38898
38899 2007-08-22  Eric Blake  <ebb9@byu.net>
38900
38901         Getline touchups.
38902         * lib/getdelim.c (getdelim): Revert regression that required *n to
38903         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
38904         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
38905         getdelim, rather than whether implementation is missing.
38906         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
38907         * lib/stdio_.h (getline): Also declare if replacement is
38908         required.
38909         * doc/functions/getdelim.texi: New file.
38910         * doc/functions/getline.texi: Likewise.
38911         * doc/gnulib.texi (Function Substitutes): Add new files.
38912         Reported by Bruno Haible.
38913
38914 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
38915
38916         * users.txt: Add Guile.
38917
38918 2007-08-22  Eric Blake  <ebb9@byu.net>
38919
38920         * tests/test-getdelim.c (main): Use remove, not unlink.
38921         * tests/test-getline.c (main): Likewise.
38922
38923         Move getline and getdelim into stdio.h, per POSIX 200x.
38924         * modules/getline (Files): Remove getline.h.
38925         (Depends-on): Add stdio.
38926         (configure.ac): Add module indicator.
38927         * modules/getdelim (Files): Remove getdelim.h.
38928         (Depends-on): Add stdio.
38929         (configure.ac): Add module indicator.
38930         * modules/stdio (Makefile.am): Work with new indicators.
38931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38932         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
38933         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38934         * lib/getdelim.h: Delete.
38935         * lib/getline.h: Delete.
38936         * lib/stdio_.h (getdelim, getline): Declare.
38937         * modules/getdelim-tests: New module.
38938         * modules/getline-tests: Likewise.
38939         * tests/test-getdelim.c: New file.
38940         * tests/test-getline.c: Likewise.
38941         * NEWS: Document the change.
38942         * lib/getline.c: Update choice of header.
38943         * lib/csharpcomp.c: Likewise.
38944         * lib/getpass.c: Likewise.
38945         * lib/javacomp.c: Likewise.
38946         * lib/javaversion.c: Likewise.
38947         * lib/yesno.c: Likewise.
38948         * lib/getdelim.c: Likewise.
38949         (getdelim): Set errno on failure, and avoid memory leak.
38950
38951 2007-08-19  Bruno Haible  <bruno@clisp.org>
38952
38953         * modules/closein (Depends-on): Add freadahead.
38954         * lib/closein.c: Include freadahead.h.
38955         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
38956         is zero.
38957
38958 2007-08-19  Bruno Haible  <bruno@clisp.org>
38959
38960         * modules/freadahead-tests: New file.
38961         * tests/test-freadahead.sh: New file.
38962         * tests/test-freadahead.c: New file.
38963
38964         * modules/freadahead: New file.
38965         * lib/freadahead.h: New file.
38966         * lib/freadahead.c: New file.
38967         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
38968         fbufmode, fpurge, freadable, fwritable.
38969
38970 2007-08-19  Eric Blake  <ebb9@byu.net>
38971
38972         Test yesno in combination with closein.
38973         * lib/yesno.c (yesno): Document use of stdin.
38974         * modules/yesno-tests (Files): New module.
38975         * tests/test-yesno.c (main): New file.
38976         * tests/test-yesno.sh: Likewise.
38977
38978 2007-08-19  Bruno Haible  <bruno@clisp.org>
38979
38980         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
38981         * lib/fseeko.c (rpl_fseeko): Likewise.
38982         * lib/fseterr.c (fseterr): Likewise.
38983
38984 2007-08-19  Bruno Haible  <bruno@clisp.org>
38985
38986         * tests/test-lseek.c (main): Disable a test for BeOS.
38987         * doc/functions/lseek.texi: Document the BeOS bug.
38988
38989 2007-08-19  Bruno Haible  <bruno@clisp.org>
38990             Eric Blake  <ebb9@byu.net>
38991
38992         * lib/lseek.c: Include <sys/stat.h>.
38993         (rpl_lseek): Add workaround code also for Unix platforms.
38994         Needed for BeOS.
38995         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
38996         * doc/functions/lseek.texi: Document BeOS definiency.
38997
38998 2007-08-18  Bruno Haible  <bruno@clisp.org>
38999
39000         * modules/fstrcmp-tests: New file.
39001         * tests/test-fstrcmp.c: New file.
39002
39003 2007-08-18  Bruno Haible  <bruno@clisp.org>
39004
39005         * modules/fstrcmp: New file, from GNU gettext with modifications.
39006         * lib/fstrcmp.h: New file, from GNU gettext.
39007         * lib/fstrcmp.c: New file, from GNU gettext.
39008         * MODULES.html.sh (String handling): Add fstrcmp.
39009
39010 2007-08-18  Bruno Haible  <bruno@clisp.org>
39011
39012         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
39013         'bool'.
39014         (diag, compareseq): Remove const from the ctxt argument.
39015         (USE_HEURISTIC): Undefine at the end.
39016
39017 2007-08-18  Jim Meyering  <jim@meyering.net>
39018
39019         New file: lib/idcache.h
39020         * NEWS: Mention the addition.
39021         * modules/idcache (Files): Add lib/idcache.h
39022         * lib/idcache.c: Include "idcache.h".
39023         Don't include <sys/types.h>.
39024         Add a FIXME comment.
39025         Move file-scoped "static" declarations to the top.
39026         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
39027
39028 2007-08-17  Bruno Haible  <bruno@clisp.org>
39029         and Paul Eggert  <eggert@cs.ucla.edu>
39030
39031         * MODULES.html.sh: Add diffseq.
39032         * modules/diffseq: New file.
39033         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
39034         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
39035
39036 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
39037
39038         Import changes from coreutils for bootstrap script.
39039
39040         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
39041
39042         * build-aux/bootstrap (slurp): Work even in environments where
39043         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
39044         current code does not slurp files whose names start with ".", and
39045         this looks like it might be a troublesome area.
39046
39047         2007-07-11  Jim Meyering  <jim@meyering.net>
39048
39049         If there's a GPL vN copyright comment, require that N == 3.
39050
39051         2007-07-08  Jim Meyering  <jim@meyering.net>
39052
39053         Run the coreutils-specific code only if tests/Makefile.am.in exists.
39054         * build-aux/bootstrap (mam_template): Move definition out of loop.
39055
39056         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
39057
39058         * build-aux/bootstrap (symlink_to_dir): Rename function from
39059         symlink_to_gnulib.  Add a directory parameter.  Update all
39060         callers.
39061         (cp_mark_as_generated): Also check for -- and link to -- files in
39062         gl/.
39063
39064         2007-07-08  Jim Meyering  <jim@meyering.net>
39065
39066         Adapt to deeper hierarchy in gnulib.
39067         * build-aux/bootstrap (symlink_to_dir): If the destination
39068         directory doesn't exist, create it. This is required at least for
39069         "lib/uniwidth/cjk.h".
39070
39071         2007-05-15  Jim Meyering  <jim@meyering.net>
39072
39073         * build-aux/bootstrap: Now that generated Makefile.am files
39074         are no longer under version control, they must be created at
39075         bootstrap time.
39076
39077 2007-08-14  Ben Pfaff  <blp@gnu.org>
39078
39079         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
39080
39081 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
39082
39083         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
39084         given the changes below.
39085         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
39086         even on hosts that have padding bits beyond the supported 64.
39087
39088 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
39089
39090         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
39091         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
39092         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
39093         depends on it.
39094         (xstrtol_error): Remove.
39095         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
39096         but with a different signature.
39097         (ATTRIBUTE_NORETURN, __attribute__): New macros.
39098         * lib/xstrtol-error.c: Include exitfail.h.
39099         (xstrtol_fatal): New function, with a different signature from the
39100         old xstrtol_error, so that the caller need not worry about passing
39101         in an exit status, or about storage management of the option argument.
39102         (xstrtol_error): Now a static function.  Redo signature to
39103         implement xstrtol_fatal.  Output the correct number of hyphens in
39104         front of the option so that the caller need not worry about
39105         storage management.
39106         (N_): New macro.
39107         (_): Remove; not used now.
39108         * modules/xstrtol: Depend on getopt.
39109         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
39110         of old STRTOL_FATAL_ERROR macro.
39111         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
39112         of test program.
39113         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
39114         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
39115
39116 2007-08-08  Eric Blake  <ebb9@byu.net>
39117
39118         * lib/xstrtol-error.c: Add missing include.
39119
39120         Move xstrtol messages into gnulib domain, when --pobase is used.
39121         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
39122         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
39123         * modules/xstrtol (Files): Distribute new file.
39124         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
39125         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
39126         * tests/test-xstrtol.c: ...into new file.
39127         * tests/test-xstrtoul.c: Also test xstrtoul.
39128         * tests/test-xstrtoimax.c: Also test xstrtoimax.
39129         * tests/test-xstrtoumax.c: Also test xstrtoumax.
39130         * tests/test-xstrtol.sh: Drive the tests.
39131         * tests/test-xstrtoimax.sh: Likewise.
39132         * tests/test-xstrtoumax.sh: Likewise.
39133         * modules/xstrtol-tests: New module.
39134         * modules/xstrtoimax-tests: Likewise.
39135         * modules/xstrtoumax-tests: Likewise.
39136
39137 2007-08-08  Jim Meyering  <jim@meyering.net>
39138
39139         New function: mfile_name_concat.
39140         * lib/filenamecat.c (mfile_name_concat): New function, just like
39141         file_name_concat, but return NULL upon failure rather than exiting
39142         with a diagnostic.
39143         * lib/filenamecat.h: Declare it.
39144
39145 2007-08-07  Bruno Haible  <bruno@clisp.org>
39146
39147         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
39148         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
39149         warning from gcc.
39150         Reported by Eric Blake.
39151
39152 2007-08-07  Simon Josefsson  <simon@josefsson.org>
39153
39154         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
39155         * modules/crypto/arcfour (License): Likewise.
39156         * modules/crypto/des-tests (License): Likewise.
39157         * modules/crypto/gc-arctwo-tests (License): Likewise.
39158         * modules/crypto/gc-des-tests (License): Likewise.
39159         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
39160         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
39161         * modules/crypto/gc-md2-tests (License): Likewise.
39162         * modules/crypto/gc-md4-tests (License): Likewise.
39163         * modules/crypto/gc-md5-tests (License): Likewise.
39164         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
39165         * modules/crypto/gc-rijndael-tests (License): Likewise.
39166         * modules/crypto/gc-sha1-tests (License): Likewise.
39167         * modules/crypto/gc-tests (License): Likewise.
39168         * modules/crypto/hmac-md5 (License): Likewise.
39169         * modules/crypto/hmac-sha1 (License): Likewise.
39170         * modules/crypto/md2-tests (License): Likewise.
39171         * modules/crypto/md4-tests (License): Likewise.
39172         * modules/crypto/md5 (License): Likewise.
39173         * modules/crypto/rijndael (License): Likewise.
39174         * modules/crypto/sha1 (License): Likewise.
39175         * modules/memxor (License): Likewise.
39176
39177 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
39178         and Bruno Haible  <bruno@clisp.org>
39179
39180         * NEWS: Describe interface changes to human, xstrtol.
39181         * lib/human.h: Include <xstrtol.h>.
39182         (human_options): Return enum strtol_error, not int.  Remove
39183         bool arg; take int * instead.
39184         * lib/human.c: Don't include "gettext.h".
39185         (_): Remove; no longer used.
39186         Don't include <xstrtol.h>, since human.h does it.
39187         (human_options): Adjust to abovementioned interface changes.
39188         Do not report error to stderr; that's now the caller's
39189         responsibility.
39190         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
39191         interface change.
39192         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
39193         Str, Argument_type_string.  All uses changed.  Put " argument"
39194         in diagnostics to make them clearer.  Change wording of suffix
39195         message for clarity.
39196         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
39197         Argument_type_string.
39198         (STRTOL_FATAL_WARN): Remove; no longer used.
39199         * modules/human (Depends-on): Remove gettext-h.
39200
39201 2007-08-06  Simon Josefsson  <simon@josefsson.org>
39202
39203         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
39204
39205 2007-07-31  Bruno Haible  <bruno@clisp.org>
39206
39207         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
39208         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
39209         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
39210
39211 2007-07-31  Bruno Haible  <bruno@clisp.org>
39212
39213         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
39214         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
39215
39216 2007-07-30  Bruno Haible  <bruno@clisp.org>
39217
39218         * modules/base64 (License): Use the synonymous term "LGPLv2+".
39219         * modules/c-ctype (License): Likewise.
39220         * modules/c-strcase (License): Likewise.
39221         * modules/check-version (License): Likewise.
39222         * modules/iconv (License): Likewise.
39223         * modules/iconv_open (License): Likewise.
39224         * modules/read-file (License): Likewise.
39225         * modules/striconv (License): Likewise.
39226         * modules/strverscmp (License): Likewise.
39227         * modules/vasprintf (License): Likewise.
39228         * modules/crypto/des (License): Likewise.
39229         * modules/crypto/gc (License): Likewise.
39230         * modules/crypto/gc-arcfour (License): Likewise.
39231         * modules/crypto/gc-arctwo (License): Likewise.
39232         * modules/crypto/gc-des (License): Likewise.
39233         * modules/crypto/gc-hmac-md5 (License): Likewise.
39234         * modules/crypto/gc-hmac-sha1 (License): Likewise.
39235         * modules/crypto/gc-md2 (License): Likewise.
39236         * modules/crypto/gc-md4 (License): Likewise.
39237         * modules/crypto/gc-md5 (License): Likewise.
39238         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
39239         * modules/crypto/gc-random (License): Likewise.
39240         * modules/crypto/gc-rijndael (License): Likewise.
39241         * modules/crypto/gc-sha1 (License): Likewise.
39242         * modules/crypto/md2 (License): Likewise.
39243         * modules/crypto/md4 (License): Likewise.
39244
39245 2007-07-30  Jim Meyering  <jim@meyering.net>
39246
39247         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
39248         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
39249         it has valid stat data.  This bug would cause du not to count the
39250         sizes of inaccessible directories.
39251         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
39252         in <http://bugzilla.redhat.com/250077>.
39253
39254 2007-07-25  Peter O'Gorman  <peter@pogma.com>
39255             Bruno Haible  <bruno@clisp.org>
39256
39257         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
39258         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
39259         #include_next, gives a diagnostic about it, but reports no error in
39260         the exit code.
39261         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
39262
39263 2007-07-24  Ben Pfaff  <blp@gnu.org>
39264
39265         Improve name: "count-one-bits" is better than "popcount".
39266         * MODULES.html.sh: Update name.
39267         * lib/popcount.h: Renamed lib/count-one-bits.h.
39268         (popcount): Renamed count_one_bits.
39269         (popcountl): Renamed count_one_bits_l.
39270         (popcountll): Renamed count_one_bits_ll.
39271         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
39272         * modules/popcount: Renamed module/count-one-bits.
39273         * modules/popcount-tests: Renamed module/count-one-bits-tests.
39274         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
39275
39276 2007-07-23  Ben Pfaff  <blp@gnu.org>
39277
39278         * lib/popcount.h (popcount32): Reduce size of constants, to allow
39279         better code generation, and add U to large constants to avoid
39280         warnings, in non-GCC case.
39281         Suggested by Bruno Haible.
39282
39283 2007-07-23  Ben Pfaff  <blp@gnu.org>
39284
39285         * lib/popcount.h: Use verify_true instead of if...abort.
39286         * modules/popcount: Depend on verify module.
39287         Suggested by Jim Meyering.
39288
39289 2007-07-23  Bruno Haible  <bruno@clisp.org>
39290
39291         * gnulib-tool (func_import): Create a .cvsignore file also when the
39292         directory is not yet in CVS but the toplevel directory is. When
39293         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
39294         Reported by Karl Berry.
39295
39296 2007-07-22  Ben Pfaff  <blp@gnu.org>
39297
39298         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
39299         case.
39300         Suggested by Eric Blake.
39301
39302 2007-07-22  Ben Pfaff  <blp@gnu.org>
39303
39304         New module: popcount.
39305         * MODULES.html.sh: Add popcount.
39306         * modules/popcount: New file.
39307         * modules/popcount-tests: New file.
39308         * tests/test-popcount.c: New file.
39309         * lib/popcount.h: New file.
39310         * m4/popcount.m4: New file.
39311
39312 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
39313
39314         * build-aux/announce-gen: Update to GPLv3.
39315
39316         * build-aux/config.guess: Update from config.
39317
39318 2007-07-21  Bruno Haible  <bruno@clisp.org>
39319
39320         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
39321         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
39322
39323 2007-07-20  Jim Meyering  <jim@meyering.net>
39324
39325         * check-module: Diagnose a self-dependency.
39326
39327 2007-07-19  Bruno Haible  <bruno@clisp.org>
39328
39329         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
39330         empty.
39331         Reported by Eric Blake.
39332
39333 2007-07-18  Bruno Haible  <bruno@clisp.org>
39334
39335         * gnulib-tool: New options --po-base, --po-domain.
39336         (func_usage): Document them.
39337         (pobase, po_domain): New variables.
39338         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
39339         DEFAULT_TEXT_DOMAIN.
39340         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
39341         (func_import): Consider pobase and po_domain. Create a po/ directory.
39342         (func_create_testdir): Set pobase and po_domain to empty.
39343         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
39344         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
39345
39346 2007-07-18  Bruno Haible  <bruno@clisp.org>
39347
39348         * gnulib-tool (func_get_automake_snippet): Synthesize also an
39349         EXTRA_DIST augmentation for files in build-aux/.
39350
39351 2007-07-16  Bruno Haible  <bruno@clisp.org>
39352
39353         * modules/lseek (License): Use the synonymous term "LGPLv2+".
39354         * modules/getdelim (License): Likewise.
39355
39356 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39357
39358         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
39359         * modules/d-type (License): Likewise.
39360         * modules/extensions (License): Likewise.
39361         * modules/fnmatch (License): Likewise.
39362         * modules/fseeko (License): Likewise.
39363         * modules/getaddrinfo (License): Likewise.
39364         * modules/getline (License): Likewise.
39365         * modules/getlogin_r (License): Likewise.
39366         * modules/getpass (License): Likewise.
39367         * modules/gettimeofday (License): Likewise.
39368         * modules/glob (License): Likewise.
39369         * modules/inet_ntop (License): Likewise.
39370         * modules/malloc (License): Likewise.
39371         * modules/malloca (License): Likewise.
39372         * modules/memmem (License): Likewise.
39373         * modules/mempcpy (License): Likewise.
39374         * modules/memset (License): Likewise.
39375         * modules/minmax (License): Likewise.
39376         * modules/mktime (License): Likewise.
39377         * modules/netinet_in (License): Likewise.
39378         * modules/pathmax (License): Likewise.
39379         * modules/poll (License): Likewise.
39380         * modules/regex (License): Likewise.
39381         * modules/snprintf (License): Likewise.
39382         * modules/stdbool (License): Likewise.
39383         * modules/stdint (License): Likewise.
39384         * modules/stdio (License): Likewise.
39385         * modules/strcase (License): Likewise.
39386         * modules/strcasestr (License): Likewise.
39387         * modules/strdup (License): Likewise.
39388         * modules/string (License): Likewise.
39389         * modules/strndup (License): Likewise.
39390         * modules/strnlen (License): Likewise.
39391         * modules/strpbrk (License): Likewise.
39392         * modules/strptime (License): Likewise.
39393         * modules/strsep (License): Likewise.
39394         * modules/sys_select (License): Likewise.
39395         * modules/sys_socket (License): Likewise.
39396         * modules/sys_stat (License): Likewise.
39397         * modules/sys_time (License): Likewise.
39398         * modules/time (License): Likewise.
39399         * modules/time_r (License): Likewise.
39400         * modules/timegm (License): Likewise.
39401         * modules/unistd (License): Likewise.
39402         * modules/vsnprintf (License): Likewise.
39403         * modules/wctype (License): Likewise.
39404
39405 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39406
39407         * modules/argz (License): LGPLv2+.
39408
39409 2007-07-15  Karl Berry  <karl@gnu.org>
39410
39411         * doc/gnulib.texi: revise node structure per new fdl.texi.
39412
39413 2007-07-14  Bruno Haible  <bruno@clisp.org>
39414
39415         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
39416         the output file.
39417         * lib/uniname/uninames.h: Regenerated.
39418
39419 2007-07-14  Karl Berry  <karl@gnu.org>
39420
39421         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
39422         omitting sectioning and index commands.
39423
39424 2007-07-13  Bruno Haible  <bruno@clisp.org>
39425
39426         New gnulib-tool option --more-symlinks.
39427         * gnulib-tool (func_usage): Document --more-symlinks.
39428         (do_copyrights): New variable.
39429         Recognize option --more-symlinks.
39430         (func_import): Don't add a copyright notice transform to
39431         sed_transform_lib_file if do_copyrights is empty.
39432
39433 2007-07-13  Bruno Haible  <bruno@clisp.org>
39434
39435         * lib/vasnprintf.c (decimal_point_char): Define also if
39436         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
39437         && !NEED_PRINTF_DIRECTIVE_A.
39438         Reported by Clemens Koller <clemens.koller@anagramm.de> via
39439         Gary V. Vaughan <gary@gnu.org>.
39440
39441 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
39442
39443         * lib/inttypes_.h: Undo previous change, since it was fixed
39444         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
39445
39446 2007-07-13  Bruno Haible  <bruno@clisp.org>
39447
39448         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
39449         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
39450
39451 2007-07-13  Jim Meyering  <jim@meyering.net>
39452
39453         df: Don't fail for Tru64's "file-on-file mount".
39454         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
39455         so we fall through and use statfs instead.  Details here:
39456         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
39457         Reported by Albert Chin.
39458
39459 2007-07-13  Bruno Haible  <bruno@clisp.org>
39460
39461         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
39462         * modules/configmake (License): Likewise.
39463         * modules/gettext (License): Likewise.
39464         * modules/gettext-h (License): Likewise.
39465         * modules/include_next (License): Likewise.
39466         * modules/link-warning (License): Likewise.
39467         * modules/localcharset (License): Likewise.
39468         * modules/localename (License): Likewise.
39469         * modules/lock (License): Likewise.
39470         * modules/relocatable-lib-lgpl (License): Likewise.
39471         * modules/size_max (License): Likewise.
39472         * modules/vasnprintf (License): Likewise.
39473         * modules/wchar (License): Likewise.
39474         * modules/xsize (License): Likewise.
39475
39476 2007-07-13  Bruno Haible  <bruno@clisp.org>
39477
39478         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
39479         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
39480
39481 2007-07-12  Bruno Haible  <bruno@clisp.org>
39482
39483         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
39484         in the modules files.
39485
39486 2007-07-11  Karl Berry  <karl@gnu.org>
39487
39488         * MODULES.html.sh (func_module): use
39489          sed -e '\|^'"${includefile}"'$|d'
39490          instead of /.../d, to avoid errors on $includefile's containing /.
39491
39492 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39493
39494         * gnulib-tool (func_import): Avoid duplication of --avoid
39495         statements
39496         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
39497         names to `_' in variable names.
39498
39499 2007-07-10  Eric Blake  <ebb9@byu.net>
39500
39501         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
39502         * NEWS: Document this change.
39503
39504 2007-07-08  Bruno Haible  <bruno@clisp.org>
39505
39506         Update to Unicode 5.0.
39507         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
39508         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
39509         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
39510         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
39511         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
39512         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
39513         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
39514         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
39515         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
39516         U+10A3F, U+1D242..U+1D244.
39517         (nonspacing_table_ind): Update.
39518         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
39519         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
39520
39521 2007-07-08  Bruno Haible  <bruno@clisp.org>
39522
39523         Update to Unicode 5.0.
39524         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
39525         code transform. Extend the name index field of unicode_name_to_code and
39526         unicode_code_to_name from 16 to 24 bits.
39527         * lib/uniname/uniname.c (unicode_character_name,
39528         unicode_name_character): Add the range 0x12xxx to the code transform.
39529         * lib/uniname/uninames.h: Regenerated.
39530         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
39531
39532 2007-07-07  Bruno Haible  <bruno@clisp.org>
39533
39534         * modules/wcwidth-tests: New file.
39535         * tests/test-wcwidth.c: New file.
39536
39537         Work around MacOS X wcwidth() bug.
39538         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
39539         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
39540         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
39541         original wcwidth in non-UTF-8 locales.
39542         * modules/wcwidth (Depends-on): Add localcharset, streq,
39543         uniwidth/width.
39544         * doc/functions/wcwidth.texi: Update.
39545
39546 2007-07-07  Bruno Haible  <bruno@clisp.org>
39547
39548         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
39549         (wcwidth): New declaration.
39550         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
39551         macros.
39552         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
39553         here. Prepare for creating <wchar.h> unconditionally.
39554         * modules/wchar (Depends-on): Add link-warning.
39555         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
39556         REPLACE_WCWIDTH, and GL_LINK_WARNING.
39557         * lib/wcwidth.h: Remove file.
39558         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
39559         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
39560         * modules/wcwidth (Files): Remove lib/wcwidth.h.
39561         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
39562         (Include): Replace wcwidth.h with <wchar.h>.
39563         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
39564         * lib/mbchar.h: Don't include wcwidth.h.
39565         * lib/mbswidth.c: Likewise.
39566         * NEWS: Mention the change.
39567
39568 2007-07-07  Bruno Haible  <bruno@clisp.org>
39569
39570         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
39571         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
39572         definition with an external declaration.
39573         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
39574         defined as a function. Remove AC_C_INLINE requirement.
39575         * modules/wcwidth (Files): Add lib/wcwidth.c.
39576         (Makefile.am): Remove redundant statement.
39577
39578 2007-07-07  Bruno Haible  <bruno@clisp.org>
39579
39580         * MODULES.html.sh (Unicode string functions): Add the new modules.
39581
39582         * tests/uniwidth/test-u32-strwidth.c: New file.
39583         * modules/uniwidth/u32-strwidth-tests: New file.
39584
39585         * lib/uniwidth/u32-strwidth.c: New file.
39586         * modules/uniwidth/u32-strwidth: New file.
39587
39588         * tests/uniwidth/test-u16-strwidth.c: New file.
39589         * modules/uniwidth/u16-strwidth-tests: New file.
39590
39591         * lib/uniwidth/u16-strwidth.c: New file.
39592         * modules/uniwidth/u16-strwidth: New file.
39593
39594         * tests/uniwidth/test-u8-strwidth.c: New file.
39595         * modules/uniwidth/u8-strwidth-tests: New file.
39596
39597         * lib/uniwidth/u8-strwidth.c: New file.
39598         * modules/uniwidth/u8-strwidth: New file.
39599
39600         * tests/uniwidth/test-u32-width.c: New file.
39601         * modules/uniwidth/u32-width-tests: New file.
39602
39603         * lib/uniwidth/u32-width.c: New file.
39604         * modules/uniwidth/u32-width: New file.
39605
39606         * tests/uniwidth/test-u16-width.c: New file.
39607         * modules/uniwidth/u16-width-tests: New file.
39608
39609         * lib/uniwidth/u16-width.c: New file.
39610         * modules/uniwidth/u16-width: New file.
39611
39612         * tests/uniwidth/test-u8-width.c: New file.
39613         * modules/uniwidth/u8-width-tests: New file.
39614
39615         * lib/uniwidth/u8-width.c: New file.
39616         * modules/uniwidth/u8-width: New file.
39617
39618         * tests/uniwidth/test-uc_width.c: New file.
39619         * modules/uniwidth/width-tests: New file.
39620
39621         * lib/uniwidth/width.c: New file, from GNU libiconv.
39622         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
39623         * modules/uniwidth/width: New file.
39624
39625         * lib/uniwidth.h: New file, from GNU libiconv.
39626         * modules/uniwidth/base: New file.
39627
39628 2007-07-07  Bruno Haible  <bruno@clisp.org>
39629
39630         * lib/uniname.h: New file, from GNU gettext.
39631         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
39632         * lib/uniname/uninames.h: New file, from GNU gettext.
39633         * lib/uniname/uniname.c: New file, from GNU gettext.
39634         * tests/uniname/test-uninames.sh: New file.
39635         * tests/uniname/test-uninames.c: New file, from GNU gettext.
39636         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
39637         * modules/uniname/base: New file.
39638         * modules/uniname/uniname: New file.
39639         * modules/uniname/uniname-tests: New file.
39640         * MODULES.html.sh (Unicode string functions): Add the new modules.
39641
39642 2007-07-06  Bruno Haible  <bruno@clisp.org>
39643
39644         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
39645
39646 2007-07-06  Bruno Haible  <bruno@clisp.org>
39647
39648         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
39649         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
39650         includes <cygwin/sys_time.h> which includes <sys/select.h> which
39651         include <sys/time.h>.
39652         Reported by Eric Blake.
39653
39654 2007-07-06  Eric Blake  <ebb9@byu.net>
39655
39656         Fix testing canonicalize on cygwin.
39657         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
39658         Revert patch from 2007-06-19.
39659         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
39660         canonicalize module is also in use.
39661         * tests/test-canonicalize.c: New file.
39662         * tests/test-canonicalize.sh: Likewise.
39663         * modules/canonicalize-tests: Likewise.
39664
39665 2007-07-06  Jim Meyering  <jim@meyering.net>
39666
39667         * lib/getugroups.c (getugroups): Detect getgrent failure.
39668         Adjust comment to reflect reality: this function may return -1.
39669
39670 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
39671
39672         * build-aux/bootstrap (TP_URL,get_translations): Update to use
39673         the new TP address.
39674         (usage): Fix typo
39675         (gnulib_mk): New variable.
39676
39677 2007-07-05  Jim Meyering  <jim@meyering.net>
39678
39679         Don't let endgrent clobber errno, no matter how improbable.
39680         * lib/getugroups.c (getugroups): Save and restore errno around
39681         endgrent call.
39682
39683         Close the group DB even when failing with 2^31 or more members.
39684         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
39685
39686 2007-07-04  Jim Meyering  <jim@meyering.net>
39687
39688         * lib/getugroups.h: New file.
39689         * lib/getugroups.c: Include "getugroups.h".
39690         Remove uses of "register" keyword.
39691         Move local variable, "cp", down into scope where used.
39692         Give "username" parameter the "const" attribute.
39693         * modules/getugroups (Files): Add lib/getugroups.h
39694
39695 2007-07-04  Karl Berry  <karl@gnu.org>
39696
39697         * MODULES.html.sh (func_all_modules): Complete rename of
39698         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
39699
39700 2007-07-02  Bruno Haible  <bruno@clisp.org>
39701
39702         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
39703         mode, when inttypes.h comes from gnulib.
39704         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39705
39706 2007-07-02  Simon Josefsson  <simon@josefsson.org>
39707
39708         * NEWS: Mention lgpl module name change.
39709
39710         * modules/lgpl-2.1: Renamed from lgpl.
39711
39712         * NEWS: Mention gpl module name change.
39713
39714         * modules/gpl-3.0: New file, based on gpl-2.0.
39715
39716         * modules/gpl-2.0: Renamed from gpl.
39717
39718         * modules/gpl: Fix filename, doc/gpl.texi is now found at
39719         doc/gpl-2.0.texi.
39720
39721 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39722
39723         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
39724         #define __STDC_LIMIT_MACROS temporarily while including
39725         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
39726         Problem reported by Joel E. Denny in
39727         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
39728
39729 2007-07-01  Bruno Haible  <bruno@clisp.org>
39730
39731         * lib/unistdio.h: New file.
39732         * lib/unistdio/u-asnprintf.h: New file.
39733         * lib/unistdio/u-asprintf.h: New file.
39734         * lib/unistdio/u-printf-args.c: New file.
39735         * lib/unistdio/u-printf-args.h: New file.
39736         * lib/unistdio/u-printf-parse.h: New file.
39737         * lib/unistdio/u-snprintf.h: New file.
39738         * lib/unistdio/u-sprintf.h: New file.
39739         * lib/unistdio/u-vasprintf.h: New file.
39740         * lib/unistdio/u-vsnprintf.h: New file.
39741         * lib/unistdio/u-vsprintf.h: New file.
39742         * lib/unistdio/ulc-asnprintf.c: New file.
39743         * lib/unistdio/ulc-asprintf.c: New file.
39744         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
39745         * lib/unistdio/ulc-printf-parse.c: New file.
39746         * lib/unistdio/ulc-snprintf.c: New file.
39747         * lib/unistdio/ulc-sprintf.c: New file.
39748         * lib/unistdio/ulc-vasnprintf.c: New file.
39749         * lib/unistdio/ulc-vasprintf.c: New file.
39750         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
39751         * lib/unistdio/ulc-vsnprintf.c: New file.
39752         * lib/unistdio/ulc-vsprintf.c: New file.
39753         * lib/unistdio/u8-asnprintf.c: New file.
39754         * lib/unistdio/u8-asprintf.c: New file.
39755         * lib/unistdio/u8-printf-parse.c: New file.
39756         * lib/unistdio/u8-snprintf.c: New file.
39757         * lib/unistdio/u8-sprintf.c: New file.
39758         * lib/unistdio/u8-vasnprintf.c: New file.
39759         * lib/unistdio/u8-vasprintf.c: New file.
39760         * lib/unistdio/u8-vsnprintf.c: New file.
39761         * lib/unistdio/u8-vsprintf.c: New file.
39762         * lib/unistdio/u8-u8-asnprintf.c: New file.
39763         * lib/unistdio/u8-u8-asprintf.c: New file.
39764         * lib/unistdio/u8-u8-snprintf.c: New file.
39765         * lib/unistdio/u8-u8-sprintf.c: New file.
39766         * lib/unistdio/u8-u8-vasnprintf.c: New file.
39767         * lib/unistdio/u8-u8-vasprintf.c: New file.
39768         * lib/unistdio/u8-u8-vsnprintf.c: New file.
39769         * lib/unistdio/u8-u8-vsprintf.c: New file.
39770         * lib/unistdio/u16-asnprintf.c: New file.
39771         * lib/unistdio/u16-asprintf.c: New file.
39772         * lib/unistdio/u16-printf-parse.c: New file.
39773         * lib/unistdio/u16-snprintf.c: New file.
39774         * lib/unistdio/u16-sprintf.c: New file.
39775         * lib/unistdio/u16-vasnprintf.c: New file.
39776         * lib/unistdio/u16-vasprintf.c: New file.
39777         * lib/unistdio/u16-vsnprintf.c: New file.
39778         * lib/unistdio/u16-vsprintf.c: New file.
39779         * lib/unistdio/u16-u16-asnprintf.c: New file.
39780         * lib/unistdio/u16-u16-asprintf.c: New file.
39781         * lib/unistdio/u16-u16-snprintf.c: New file.
39782         * lib/unistdio/u16-u16-sprintf.c: New file.
39783         * lib/unistdio/u16-u16-vasnprintf.c: New file.
39784         * lib/unistdio/u16-u16-vasprintf.c: New file.
39785         * lib/unistdio/u16-u16-vsnprintf.c: New file.
39786         * lib/unistdio/u16-u16-vsprintf.c: New file.
39787         * lib/unistdio/u32-asnprintf.c: New file.
39788         * lib/unistdio/u32-asprintf.c: New file.
39789         * lib/unistdio/u32-printf-parse.c: New file.
39790         * lib/unistdio/u32-snprintf.c: New file.
39791         * lib/unistdio/u32-sprintf.c: New file.
39792         * lib/unistdio/u32-vasnprintf.c: New file.
39793         * lib/unistdio/u32-vasprintf.c: New file.
39794         * lib/unistdio/u32-vsnprintf.c: New file.
39795         * lib/unistdio/u32-vsprintf.c: New file.
39796         * lib/unistdio/u32-u32-asnprintf.c: New file.
39797         * lib/unistdio/u32-u32-asprintf.c: New file.
39798         * lib/unistdio/u32-u32-snprintf.c: New file.
39799         * lib/unistdio/u32-u32-sprintf.c: New file.
39800         * lib/unistdio/u32-u32-vasnprintf.c: New file.
39801         * lib/unistdio/u32-u32-vasprintf.c: New file.
39802         * lib/unistdio/u32-u32-vsnprintf.c: New file.
39803         * lib/unistdio/u32-u32-vsprintf.c: New file.
39804         * tests/unistdio/test-ulc-asnprintf1.c: New file.
39805         * tests/unistdio/test-ulc-asnprintf1.h: New file.
39806         * tests/unistdio/test-ulc-printf1.h: New file.
39807         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
39808         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
39809         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
39810         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
39811         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
39812         * tests/unistdio/test-ulc-vasprintf1.c: New file.
39813         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
39814         * tests/unistdio/test-ulc-vsprintf1.c: New file.
39815         * tests/unistdio/test-u8-asnprintf1.c: New file.
39816         * tests/unistdio/test-u8-asnprintf1.h: New file.
39817         * tests/unistdio/test-u8-printf1.h: New file.
39818         * tests/unistdio/test-u8-vasnprintf1.c: New file.
39819         * tests/unistdio/test-u8-vasnprintf2.c: New file.
39820         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
39821         * tests/unistdio/test-u8-vasnprintf3.c: New file.
39822         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
39823         * tests/unistdio/test-u8-vasprintf1.c: New file.
39824         * tests/unistdio/test-u8-vsnprintf1.c: New file.
39825         * tests/unistdio/test-u8-vsprintf1.c: New file.
39826         * tests/unistdio/test-u16-asnprintf1.c: New file.
39827         * tests/unistdio/test-u16-asnprintf1.h: New file.
39828         * tests/unistdio/test-u16-printf1.h: New file.
39829         * tests/unistdio/test-u16-vasnprintf1.c: New file.
39830         * tests/unistdio/test-u16-vasnprintf2.c: New file.
39831         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
39832         * tests/unistdio/test-u16-vasnprintf3.c: New file.
39833         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
39834         * tests/unistdio/test-u16-vasprintf1.c: New file.
39835         * tests/unistdio/test-u16-vsnprintf1.c: New file.
39836         * tests/unistdio/test-u16-vsprintf1.c: New file.
39837         * tests/unistdio/test-u32-asnprintf1.c: New file.
39838         * tests/unistdio/test-u32-asnprintf1.h: New file.
39839         * tests/unistdio/test-u32-printf1.h: New file.
39840         * tests/unistdio/test-u32-vasnprintf1.c: New file.
39841         * tests/unistdio/test-u32-vasnprintf2.c: New file.
39842         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
39843         * tests/unistdio/test-u32-vasnprintf3.c: New file.
39844         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
39845         * tests/unistdio/test-u32-vasprintf1.c: New file.
39846         * tests/unistdio/test-u32-vsnprintf1.c: New file.
39847         * tests/unistdio/test-u32-vsprintf1.c: New file.
39848         * modules/unistdio/base: New file.
39849         * modules/unistdio/u-printf-args: New file.
39850         * modules/unistdio/ulc-asnprintf: New file.
39851         * modules/unistdio/ulc-asprintf: New file.
39852         * modules/unistdio/ulc-fprintf: New file.
39853         * modules/unistdio/ulc-printf-parse: New file.
39854         * modules/unistdio/ulc-snprintf: New file.
39855         * modules/unistdio/ulc-sprintf: New file.
39856         * modules/unistdio/ulc-vasnprintf: New file.
39857         * modules/unistdio/ulc-vasprintf: New file.
39858         * modules/unistdio/ulc-vfprintf: New file.
39859         * modules/unistdio/ulc-vsnprintf: New file.
39860         * modules/unistdio/ulc-vsprintf: New file.
39861         * modules/unistdio/u8-asnprintf: New file.
39862         * modules/unistdio/u8-asprintf: New file.
39863         * modules/unistdio/u8-printf-parse: New file.
39864         * modules/unistdio/u8-snprintf: New file.
39865         * modules/unistdio/u8-sprintf: New file.
39866         * modules/unistdio/u8-vasnprintf: New file.
39867         * modules/unistdio/u8-vasprintf: New file.
39868         * modules/unistdio/u8-vsnprintf: New file.
39869         * modules/unistdio/u8-vsprintf: New file.
39870         * modules/unistdio/u8-u8-asnprintf: New file.
39871         * modules/unistdio/u8-u8-asprintf: New file.
39872         * modules/unistdio/u8-u8-snprintf: New file.
39873         * modules/unistdio/u8-u8-sprintf: New file.
39874         * modules/unistdio/u8-u8-vasnprintf: New file.
39875         * modules/unistdio/u8-u8-vasprintf: New file.
39876         * modules/unistdio/u8-u8-vsnprintf: New file.
39877         * modules/unistdio/u8-u8-vsprintf: New file.
39878         * modules/unistdio/u16-asnprintf: New file.
39879         * modules/unistdio/u16-asprintf: New file.
39880         * modules/unistdio/u16-printf-parse: New file.
39881         * modules/unistdio/u16-snprintf: New file.
39882         * modules/unistdio/u16-sprintf: New file.
39883         * modules/unistdio/u16-vasnprintf: New file.
39884         * modules/unistdio/u16-vasprintf: New file.
39885         * modules/unistdio/u16-vsnprintf: New file.
39886         * modules/unistdio/u16-vsprintf: New file.
39887         * modules/unistdio/u16-u16-asnprintf: New file.
39888         * modules/unistdio/u16-u16-asprintf: New file.
39889         * modules/unistdio/u16-u16-snprintf: New file.
39890         * modules/unistdio/u16-u16-sprintf: New file.
39891         * modules/unistdio/u16-u16-vasnprintf: New file.
39892         * modules/unistdio/u16-u16-vasprintf: New file.
39893         * modules/unistdio/u16-u16-vsnprintf: New file.
39894         * modules/unistdio/u16-u16-vsprintf: New file.
39895         * modules/unistdio/u32-asnprintf: New file.
39896         * modules/unistdio/u32-asprintf: New file.
39897         * modules/unistdio/u32-printf-parse: New file.
39898         * modules/unistdio/u32-snprintf: New file.
39899         * modules/unistdio/u32-sprintf: New file.
39900         * modules/unistdio/u32-vasnprintf: New file.
39901         * modules/unistdio/u32-vasprintf: New file.
39902         * modules/unistdio/u32-vsnprintf: New file.
39903         * modules/unistdio/u32-vsprintf: New file.
39904         * modules/unistdio/u32-u32-asnprintf: New file.
39905         * modules/unistdio/u32-u32-asprintf: New file.
39906         * modules/unistdio/u32-u32-snprintf: New file.
39907         * modules/unistdio/u32-u32-sprintf: New file.
39908         * modules/unistdio/u32-u32-vasnprintf: New file.
39909         * modules/unistdio/u32-u32-vasprintf: New file.
39910         * modules/unistdio/u32-u32-vsnprintf: New file.
39911         * modules/unistdio/u32-u32-vsprintf: New file.
39912         * modules/unistdio/ulc-asnprintf-tests: New file.
39913         * modules/unistdio/ulc-vasnprintf-tests: New file.
39914         * modules/unistdio/ulc-vasprintf-tests: New file.
39915         * modules/unistdio/ulc-vsnprintf-tests: New file.
39916         * modules/unistdio/ulc-vsprintf-tests: New file.
39917         * modules/unistdio/u8-asnprintf-tests: New file.
39918         * modules/unistdio/u8-vasnprintf-tests: New file.
39919         * modules/unistdio/u8-vasprintf-tests: New file.
39920         * modules/unistdio/u8-vsnprintf-tests: New file.
39921         * modules/unistdio/u8-vsprintf-tests: New file.
39922         * modules/unistdio/u16-asnprintf-tests: New file.
39923         * modules/unistdio/u16-vasnprintf-tests: New file.
39924         * modules/unistdio/u16-vasprintf-tests: New file.
39925         * modules/unistdio/u16-vsnprintf-tests: New file.
39926         * modules/unistdio/u16-vsprintf-tests: New file.
39927         * modules/unistdio/u32-asnprintf-tests: New file.
39928         * modules/unistdio/u32-vasnprintf-tests: New file.
39929         * modules/unistdio/u32-vasprintf-tests: New file.
39930         * modules/unistdio/u32-vsnprintf-tests: New file.
39931         * modules/unistdio/u32-vsprintf-tests: New file.
39932         * MODULES.html.sh (Unicode string functions): Add the new modules.
39933
39934 2007-07-01  Bruno Haible  <bruno@clisp.org>
39935
39936         * lib/sprintf.c (sprintf): Limit the available length estimation,
39937         to avoid address wraparound.
39938         * lib/vsprintf.c (vsprintf): Likewise.
39939         * modules/sprintf-posix (Dependencies): Add stdint.
39940         * modules/vsprintf-posix (Dependencies): Likewise.
39941
39942 2007-07-01  Bruno Haible  <bruno@clisp.org>
39943
39944         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
39945         Windows PATH as well. Conservative double-quoting. Comments.
39946
39947 2007-07-01  Bruno Haible  <bruno@clisp.org>
39948             Eric Blake  <ebb9@byu.net>
39949             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39950
39951         * gnulib-tool (self_abspathname): Fix algorithm to cope with
39952         empty components in $PATH, denoting '.'.
39953
39954 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39955
39956         * gnulib-tool: Fix indentation.
39957         (func_create_megatestdir): Likewise.
39958         Report by Bruno Haible.
39959
39960 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39961
39962         Sync from Automake.
39963         * build-aux/gnupload: Fix shell portability issues with for loops.
39964         Report by Karl Berry.
39965
39966 2007-06-29  Simon Josefsson  <simon@josefsson.org>
39967
39968         * build-aux/maint.mk (POURL): Use translationproject.org.
39969
39970 2007-06-27  Simon Josefsson  <simon@josefsson.org>
39971             Bruno Haible  <bruno@clisp.org>
39972
39973         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
39974         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
39975         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
39976         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
39977         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
39978
39979 2007-06-27  Bruno Haible  <bruno@clisp.org>
39980
39981         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
39982         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
39983
39984 2007-06-26  Karl Berry  <karl@gnu.org>
39985
39986         * MODULES.html.sh: remove xreadlink-with-size.
39987
39988 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39989
39990         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
39991         method that I hope also handles the double-include problem noted
39992         by Bruno Haible in
39993         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
39994
39995 2007-06-23  Bruno Haible  <bruno@clisp.org>
39996
39997         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39998         Don't let the 'mostlyclean' target fail if the last subdirectory could
39999         not be removed.
40000         Reported by Karl Berry.
40001
40002 2007-06-23  Bruno Haible  <bruno@clisp.org>
40003
40004         * gnulib-tool (echo): Add a speedier workaround for ksh.
40005         * tests/test-echo.sh: Likewise.
40006
40007 2007-06-23  Bruno Haible  <bruno@clisp.org>
40008
40009         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
40010         * tests/test-echo.sh: Likewise.
40011
40012 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40013
40014         * gnulib-tool (IFS): Initialize early, so we don't set it to
40015         empty later.
40016         (self_abspathname): Rewrite algorithm to set it, reindent.
40017         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
40018         (func_create_megatestdir): Merge some sed scripts.
40019
40020 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40021
40022         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
40023         exposed by Sun Studio 11 cc on Solaris 8.
40024
40025 2007-06-22  Bruno Haible  <bruno@clisp.org>
40026
40027         * gnulib-tool (echo): Ensure the echo primitive does not interpret
40028         backslashes.
40029         * tests/test-echo.sh: New file.
40030
40031 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40032
40033         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
40034         simplify `sed_replace_build_aux' scripts, they are portable but
40035         echoing them with `echo' is not.
40036         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
40037
40038 2007-06-21  Karl Berry  <karl@gnu.org>
40039
40040         * config/srclist.txt: guess we can't handle the licenses via
40041         srclist at the moment.
40042
40043 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
40044
40045         * MODULES.html.sh: Add include_next.
40046         * modules/include_next: New file.
40047
40048 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
40049
40050         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
40051         INCLUDE_NEXT.
40052         (gl_CHECK_NEXT_HEADERS): New macro.
40053         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
40054         the obsolescent gl_ABSOLUTE_HEADER.
40055         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
40056         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
40057         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
40058         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40059         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
40060         * m4/math_h.m4 (gl_MATH_H): Likewise.
40061         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
40062         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40063         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
40064         * m4/stdint.m4 (gl_STDINT_H): Likewise.
40065         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
40066         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
40067         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
40068         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40069         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
40070         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
40071         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40072         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40073         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
40074         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
40075         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40076         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40077         * m4/inttypes.m4 (gl_INTTYPES_H): Define
40078         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
40079         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
40080         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
40081         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
40082         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
40083         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
40084         * lib/float_.h: Likewise.
40085         * lib/inttypes_.h: Likewise.
40086         * lib/math_.h: Likewise.
40087         * lib/search_.h: Likewise.
40088         * lib/signal_.h: Likewise.
40089         * lib/stdint_.h: Likewise.
40090         * lib/stdio_.h: Likewise.
40091         * lib/stdlib_.h: Likewise.
40092         * lib/string_.h: Likewise.
40093         * lib/sys_stat_.h: Likewise.
40094         * lib/sys_time_.h: Likewise.
40095         * lib/time_.h: Likewise.
40096         * lib/unistd_.h: Likewise.
40097         * lib/wchar_.h: Likewise.
40098         * lib/wctype_.h: Likewise.
40099         * lib/dirent_.h: Likewise.
40100         * lib/iconv_.h: Likewise.
40101         * lib/locale_.h: Likewise.
40102         * lib/netinet_in_.h: Likewise.
40103         * lib/sys_select_.h: Likewise.
40104         * lib/sys_socket_.h: Likewise.
40105         * lib/sysexits_.h: Likewise.
40106         * modules/fcntl (Depends-on): Depend on include_next, not
40107         absolute_header.
40108         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
40109         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
40110         * modules/fchdir: Likewise.
40111         * modules/float: Likewise.
40112         * modules/iconv_open: Likewise.
40113         * modules/inttypes: Likewise.
40114         * modules/locale: Likewise.
40115         * modules/math: Likewise.
40116         * modules/netinet_in: Likewise.
40117         * modules/search: Likewise.
40118         * modules/signal: Likewise.
40119         * modules/stdint: Likewise.
40120         * modules/stdio: Likewise.
40121         * modules/stdlib: Likewise.
40122         * modules/string: Likewise.
40123         * modules/sys_select: Likewise.
40124         * modules/sys_socket: Likewise.
40125         * modules/sys_stat: Likewise.
40126         * modules/sys_time: Likewise.
40127         * modules/sysexits: Likewise.
40128         * modules/time: Likewise.
40129         * modules/unistd: Likewise.
40130         * modules/wchar: Likewise.
40131         * modules/wctype: Likewise.
40132         * modules/sys_stat: Change maintainer to "all".
40133         * modules/unistd: Likewise.
40134
40135 2007-06-20  Karl Berry  <karl@gnu.org>
40136
40137         * config/srclist.txt: track www changes in license files.
40138
40139 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
40140
40141         * build-aux/bootstrap: Remove stray dot.
40142         Make sure build_aux settings are honored when linking
40143         gnulib_extra_files.
40144
40145 2007-06-19  Eric Blake  <ebb9@byu.net>
40146
40147         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40148         Allow compilation on cygwin.
40149
40150 2007-06-19  Jim Meyering  <jim@meyering.net>
40151
40152         xreadlink-with-size: Remove module.  No longer used.
40153         Ex-callers now use xreadlink or mreadlink-with-size.
40154         * modules/xreadlink-with-size: Remove module.
40155         * lib/xreadlink-with-size.c: Remove file.
40156         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
40157         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
40158         just before the function definition *is* accurate.
40159
40160         Eliminate one way canonicalize_filename_mode could exit.
40161         * lib/canonicalize.c (canonicalize_filename_mode):
40162         Use mreadlink_with_size, not xreadlink_with_size.
40163
40164 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
40165
40166         Detect porting problems to FreeBSD/arm, which has time_t wider than
40167         long int.  Original problem reported for GNU diff by Xin Li in
40168         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
40169         * modules/getdate (Depends-on): Add intprops, verify.
40170         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
40171         is an integer type no wider than long int.
40172
40173 2007-06-18  Jim Meyering  <jim@meyering.net>
40174
40175         New module: mreadlink-with-size.
40176         * MODULES.html.sh: Add mreadlink-with-size.
40177         * modules/mreadlink-with-size: New module
40178         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
40179         not xreadlink-with-size.
40180         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
40181
40182 2007-06-16  Bruno Haible  <bruno@clisp.org>
40183
40184         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
40185         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
40186         Reported by Gary V. Vaughan <gary@gnu.org>.
40187
40188 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
40189
40190         Revamp lchown so that it lives in unistd.h where it belongs.
40191         * lib/lchown.h: Remove.
40192         * lib/dirchownmod.c: Don't include lib/lchown.h.
40193         * lib/fchownat.c: Likewise.
40194         * lib/openat.c: Likewise.
40195         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
40196         does not follow symlinks.
40197         (EOPNOTSUPP): Define if not defined.
40198         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
40199         is defined to 0.
40200         (lchown): New decl.
40201         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
40202         Do not check for lchown decl.
40203         Set REPLACE_LCHOWN.
40204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
40205         REPLACE_LCHOWN.
40206         * modules/chown: Make it clear it follows symlinks.
40207         * modules/lchown: Make it clear it doesn't follow symlinks.
40208         (Files): Remove lib/lchown.h
40209         (Depends-on): Add unistd.
40210         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
40211         (Include): Include <unistd.h>, not "lchown.h".
40212         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
40213         REPLACE_LCHOWN.
40214
40215 2007-06-15  Jim Meyering  <jim@meyering.net>
40216
40217         Change license (GPL to LGPL) of fsusage and dependents.
40218         * modules/fsusage (License): Change to LGPL.
40219         * modules/full-read (License): Likewise.
40220         * modules/full-write (License): Likewise.
40221         * modules/safe-read (License): Likewise.
40222         * modules/safe-write (License): Likewise.
40223
40224 2007-06-14  Ben Pfaff  <blp@gnu.org>
40225
40226         Missing part of allocsa -> malloca transition.
40227         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
40228         gl_MALLOCA.
40229
40230 2007-06-12  Bruno Haible  <bruno@clisp.org>
40231
40232         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
40233         to ia64, x86_64, i386.
40234         Reported by Eric Blake.
40235
40236 2007-06-12  Bruno Haible  <bruno@clisp.org>
40237
40238         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
40239         cross-compiling to x86_64.
40240
40241 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
40242
40243         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
40244         glitch reported by Ralf Wildenhues in
40245         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
40246
40247         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
40248         Vin Shelton.
40249
40250 2007-06-11  Bruno Haible  <bruno@clisp.org>
40251
40252         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
40253         replacement string.
40254         Reported by Eric Blake.
40255
40256 2007-06-10  Bruno Haible  <bruno@clisp.org>
40257
40258         Prepare vasnprintf code for use with Unicode strings.
40259         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
40260         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
40261         TYPE_U32_STRING.
40262         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
40263         a_u32_string variants.
40264         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40265         * lib/printf-args.c: Don't include config.h and the specification
40266         header if PRINTF_FETCHARGS is already defined.
40267         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
40268         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
40269         TYPE_U16_STRING, TYPE_U32_STRING.
40270         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
40271         u16_directive, u16_directives, u32_directive, u32_directives): New
40272         types.
40273         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
40274         New declarations.
40275         * lib/printf-parse.c: Don't include config.h and the specification
40276         header if PRINTF_PARSE is already defined. Eliminate the set of
40277         parameters for WIDE_CHAR_VERSION; the user of this file must provide
40278         them now. Include c-ctype.h.
40279         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
40280         directive and CHAR_T_ONLY_ASCII.
40281         * lib/vasnprintf.c: Don't include config.h and the specification header
40282         if VASNPRINTF is already defined.
40283         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
40284         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
40285         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
40286         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
40287         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
40288         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
40289         code accordingly.
40290         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
40291         pad_ourselves also in this case, with the 'c' and 's' directives, and
40292         with a different notion of "width".
40293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
40294
40295 2007-06-10  Bruno Haible  <bruno@clisp.org>
40296
40297         * modules/unistr/u32-mbsnlen: New file.
40298         * lib/unistr/u32-mbsnlen.c: New file.
40299
40300         * modules/unistr/u16-mbsnlen: New file.
40301         * lib/unistr/u16-mbsnlen.c: New file.
40302
40303         * modules/unistr/u8-mbsnlen: New file.
40304         * lib/unistr/u8-mbsnlen.c: New file.
40305
40306         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
40307         declarations.
40308
40309 2007-06-10  Bruno Haible  <bruno@clisp.org>
40310
40311         * lib/string_.h (mbsnlen): New declaration.
40312         * lib/mbsnlen.c: New file.
40313         * m4/mbsnlen.m4: New file.
40314         * modules/mbsnlen: New file.
40315         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
40316         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
40317         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
40318
40319 2007-06-10  Bruno Haible  <bruno@clisp.org>
40320
40321         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
40322
40323 2007-06-10  Bruno Haible  <bruno@clisp.org>
40324
40325         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
40326         * lib/mbuiter.h: Likewise.
40327
40328 2007-06-10  Bruno Haible  <bruno@clisp.org>
40329
40330         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
40331         declaration.
40332
40333 2007-06-10  Karl Berry  <karl@gnu.org>
40334
40335         * config/srclist.txt: remove gettext entries, Bruno prefers
40336         to update individually.
40337
40338 2007-06-10  Bruno Haible  <bruno@clisp.org>
40339
40340         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
40341         'maxlen'. Ensure only length + width bytes are allocated, not
40342         length + 1 + width.
40343
40344 2007-06-09  Bruno Haible  <bruno@clisp.org>
40345
40346         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
40347         (CHAR_T): Remove macro.
40348         (VASNPRINTF): Update.
40349
40350 2007-06-09  Bruno Haible  <bruno@clisp.org>
40351
40352         * MODULES.html.sh (Unicode string functions): Add the new modules.
40353
40354         * modules/uniconv/u32-conv-to-enc: New file.
40355         * lib/uniconv/u32-conv-to-enc.c: New file.
40356         * modules/uniconv/u32-conv-to-enc-tests: New file.
40357         * tests/uniconv/test-u32-conv-to-enc.c: New file.
40358
40359         * modules/uniconv/u16-conv-to-enc: New file.
40360         * lib/uniconv/u16-conv-to-enc.c: New file.
40361         * lib/uniconv/u-conv-to-enc.h: New file.
40362         * modules/uniconv/u16-conv-to-enc-tests: New file.
40363         * tests/uniconv/test-u16-conv-to-enc.c: New file.
40364
40365         * modules/uniconv/u8-conv-to-enc: New file.
40366         * lib/uniconv/u8-conv-to-enc.c: New file.
40367         * modules/uniconv/u8-conv-to-enc-tests: New file.
40368         * tests/uniconv/test-u8-conv-to-enc.c: New file.
40369
40370         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40371         u32_conv_to_encoding): New declarations.
40372
40373 2007-06-09  Bruno Haible  <bruno@clisp.org>
40374
40375         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
40376
40377 2007-06-09  Bruno Haible  <bruno@clisp.org>
40378
40379         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
40380         * modules/malloca: Renamed from modules/allocsa, updated.
40381         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
40382         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
40383         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
40384         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
40385         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
40386         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
40387         * modules/xmalloca: Renamed from modules/xallocsa, updated.
40388         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
40389         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
40390         * modules/c-strcasestr (Depends-on): Update.
40391         * lib/c-strcasestr.c: Update.
40392         * modules/c-strstr (Depends-on): Update.
40393         * lib/c-strstr.c: Update.
40394         * modules/canonicalize-lgpl (Depends-on): Update.
40395         * lib/canonicalize-lgpl.c: Update.
40396         * modules/clean-temp (Depends-on): Update.
40397         * lib/clean-temp.c: Update.
40398         * modules/csharpcomp (Depends-on): Update.
40399         * lib/csharpcomp.c: Update.
40400         * modules/csharpexec (Depends-on): Update.
40401         * lib/csharpexec.c: Update.
40402         * modules/javacomp (Depends-on): Update.
40403         * lib/javacomp.c: Update.
40404         * modules/javaexec (Depends-on): Update.
40405         * lib/javaexec.c: Update.
40406         * modules/mbscasestr (Depends-on): Update.
40407         * lib/mbscasestr.c: Update.
40408         * modules/mbsstr (Depends-on): Update.
40409         * lib/mbsstr.c: Update.
40410         * modules/setenv (Depends-on): Update.
40411         * lib/setenv.c: Update.
40412         * modules/strcasestr (Depends-on): Update.
40413         * lib/strcasestr.c: Update.
40414         * modules/striconveha (Depends-on): Update.
40415         * lib/striconveha.c: Update.
40416         * modules/relocatable-prog-wrapper (Files): Update.
40417         * lib/relocwrapper.c: Update.
40418         * build-aux/install-reloc: Update.
40419         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
40420
40421 2007-06-08  Bruno Haible  <bruno@clisp.org>
40422
40423         Port to uClibc.
40424         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
40425         * lib/fpurge.c (fpurge): Likewise.
40426         * lib/freading.c (freading): Likewise.
40427         * lib/fseeko.c (rpl_fseeko): Likewise.
40428         * lib/fseterr.c (fseterr): Likewise.
40429         * lib/fwriting.c (fwriting): Likewise.
40430         * tests/test-fflush.c (main): Avoid a failure on uClibc.
40431
40432 2007-06-08  Bruno Haible  <bruno@clisp.org>
40433
40434         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
40435         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
40436         * modules/gettext (Files): Add m4/intlmacosx.m4.
40437
40438 2007-06-07  Bruno Haible  <bruno@clisp.org>
40439
40440         * modules/localename-tests: New file.
40441         * tests/test-localename.c: New file.
40442
40443         New module 'localename'.
40444         * lib/localename.h: New file.
40445         * lib/localename.c: New file, from GNU gettext.
40446         * m4/localename.m4: New file.
40447         * modules/localename: New file.
40448
40449 2007-06-07  Bruno Haible  <bruno@clisp.org>
40450
40451         Work around the lack of <wchar.h> on some builds of uClibc.
40452         * doc/headers/wchar.texi: Update.
40453         * lib/wchar_.h: Include <wchar.h> only if it exists.
40454         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
40455         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
40456         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
40457         doesn't exist.
40458         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
40459         * modules/mbfile (Depends-on): Add wchar.
40460         * modules/mbiter (Depends-on): Likewise.
40461         * modules/mbuiter (Depends-on): Likewise.
40462         Reported by Simon Josefsson.
40463
40464 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
40465
40466         Work around problem reported by Steven M. Schweda in
40467         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
40468         Tru64 5.1B with the Compaq compiler environment installed declares
40469         an 'isblank' function but does not define it in the C library.
40470         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
40471         * lib/regex_internal.h (isblank): Likewise.
40472         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
40473         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40474
40475 2007-06-05  Bruno Haible  <bruno@clisp.org>
40476
40477         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
40478         ia64.
40479         * modules/printf-safe: New file.
40480         * modules/fprintf-posix (Depends-on): Add printf-safe.
40481         * modules/printf-posix (Depends-on): Likewise.
40482         * modules/snprintf-posix (Depends-on): Likewise.
40483         * modules/sprintf-posix (Depends-on): Likewise.
40484         * modules/vasnprintf-posix (Depends-on): Likewise.
40485         * modules/vasprintf-posix (Depends-on): Likewise.
40486         * modules/vfprintf-posix (Depends-on): Likewise.
40487         * modules/vprintf-posix (Depends-on): Likewise.
40488         * modules/vsnprintf-posix (Depends-on): Likewise.
40489         * modules/vsprintf-posix (Depends-on): Likewise.
40490         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
40491         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
40492         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
40493         "no" on i386, x86_64, ia64.
40494         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
40495         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40496         on i386, x86_64, ia64.
40497         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
40498         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40499         on i386, x86_64, ia64.
40500         * tests/test-vasnprintf-posix.c: Include float.h.
40501         (LDBL80_WORDS): New macro.
40502         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40503         on i386, x86_64, ia64.
40504         * tests/test-vasprintf-posix.c: Include float.h.
40505         (LDBL80_WORDS): New macro.
40506         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
40507         on i386, x86_64, ia64.
40508         * tests/test-snprintf-posix.c: Include float.h.
40509         * tests/test-sprintf-posix.c: Likewise.
40510         * tests/test-vsnprintf-posix.c: Likewise.
40511         * tests/test-vsprintf-posix.c: Likewise.
40512
40513 2007-06-05  Bruno Haible  <bruno@clisp.org>
40514
40515         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
40516         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
40517         non-IEEE numbers on i386, x86_64, ia64.
40518         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
40519         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
40520         * tests/test-isnanl.h: Include float.h.
40521         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
40522
40523 2007-06-05  Bruno Haible  <bruno@clisp.org>
40524
40525         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
40526         also the %a / %A. Handle the %a / %A code before this extra handling.
40527
40528 2007-06-05  Bruno Haible  <bruno@clisp.org>
40529
40530         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
40531         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
40532
40533 2007-06-05  Bruno Haible  <bruno@clisp.org>
40534
40535         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
40536         typo in variable name.
40537
40538 2007-06-05  Eric Blake  <ebb9@byu.net>
40539
40540         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
40541         Reported by Simon Josefsson.
40542
40543 2007-06-04  Bruno Haible  <bruno@clisp.org>
40544
40545         Avoid test failures on some PowerPC platforms.
40546         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
40547         Define differently for PowerPC.
40548         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
40549         Reported by Gary V. Vaughan <gary@gnu.org>.
40550
40551 2007-06-02  Bruno Haible  <bruno@clisp.org>
40552
40553         Fix test-stdint failure on FreeBSD/ia64.
40554         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
40555         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
40556         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
40557         * doc/headers/stdint.texi: Update.
40558
40559 2007-06-01  Bruno Haible  <bruno@clisp.org>
40560
40561         * tests/test-binary-io.c (main): Pass a third argument to open().
40562         Reported by Gary V. Vaughan <gary@gnu.org>.
40563
40564 2007-06-01  Bruno Haible  <bruno@clisp.org>
40565
40566         * doc/functions/frexpl.texi: Update for mingw.
40567
40568 2007-06-01  Bruno Haible  <bruno@clisp.org>
40569
40570         * tests/test-lseek.c (main): Disable test of errno for invalid third
40571         argument.
40572         * doc/functions/lseek.texi: Update.
40573         Reported by Gary V. Vaughan <gary@gnu.org>.
40574
40575 2007-05-28  Bruno Haible  <bruno@clisp.org>
40576
40577         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
40578
40579 2007-05-31  Eric Blake  <ebb9@byu.net>
40580
40581         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
40582         cross compiling.
40583
40584 2007-05-30  Eric Blake  <ebb9@byu.net>
40585         and Bruno Haible  <bruno@clisp.org>
40586
40587         Work around mingw test failures exposed by m4-1.4.9b.
40588         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
40589         * tests/test-unistd.c: Disable uid_t and git_t tests for the
40590         moment.
40591
40592 2007-05-30  Bruno Haible  <bruno@clisp.org>
40593
40594         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
40595         assuming that they are closed. Needed on HP-UX 11.
40596
40597 2007-05-29  Bruno Haible  <bruno@clisp.org>
40598
40599         Fix a problem with #include_next.
40600         * lib/dirent_.h: Split the double-inclusion guard.
40601         * lib/fcntl_.h: Likewise.
40602         * lib/float_.h: Likewise.
40603         * lib/iconv_.h: Likewise.
40604         * lib/inttypes_.h: Likewise.
40605         * lib/locale_.h: Likewise.
40606         * lib/math_.h: Likewise.
40607         * lib/netinet_in_.h: Likewise.
40608         * lib/search_.h: Likewise.
40609         * lib/signal_.h: Likewise.
40610         * lib/stdint_.h: Likewise.
40611         * lib/stdio_.h: Likewise.
40612         * lib/stdlib_.h: Likewise.
40613         * lib/string_.h: Likewise.
40614         * lib/sys_select_.h: Likewise.
40615         * lib/sys_socket_.h: Likewise.
40616         * lib/sys_stat_.h: Likewise.
40617         * lib/sys_time_.h: Likewise.
40618         * lib/sysexits_.h: Likewise.
40619         * lib/time_.h: Likewise.
40620         * lib/unistd_.h: Likewise.
40621         * lib/wchar_.h: Likewise.
40622         * lib/wctype_.h: Likewise.
40623
40624 2007-05-29  Bruno Haible  <bruno@clisp.org>
40625
40626         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
40627         for the moment.
40628
40629 2007-05-29  Bruno Haible  <bruno@clisp.org>
40630
40631         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
40632         invocation.
40633         Reported by Eric Blake.
40634
40635 2007-05-29  Bruno Haible  <bruno@clisp.org>
40636
40637         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
40638         compiling case.
40639
40640 2007-05-29  Eric Blake  <ebb9@byu.net>
40641             Bruno Haible  <bruno@clisp.org>
40642
40643         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
40644         cross compiles.
40645
40646 2007-05-28  Eric Blake  <ebb9@byu.net>
40647
40648         * modules/closein-tests (test_closein_LDADD): Support test on
40649         cygwin with libtool.
40650
40651 2007-05-28  Bruno Haible  <bruno@clisp.org>
40652
40653         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
40654         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
40655         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
40656         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
40657         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
40658         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
40659         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
40660         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
40661         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
40662
40663 2007-05-28  Eric Blake  <ebb9@byu.net>
40664
40665         Unconditionally include <config.h> in unit tests.
40666         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
40667         * tests/test-allocsa.c, tests/test-arcfour.c,
40668         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
40669         tests/test-array_list.c, tests/test-array_oset.c,
40670         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
40671         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
40672         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
40673         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
40674         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
40675         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
40676         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
40677         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
40678         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
40679         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
40680         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
40681         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
40682         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
40683         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
40684         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
40685         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
40686         test-md5.c, test-memmem.c, test-printf-posix.c,
40687         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
40688         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
40689         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
40690         test-strcasestr.c, test-striconv.c, test-striconveh.c,
40691         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
40692         test-vasnprintf-posix2.c, test-vasnprintf.c,
40693         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
40694         test-vfprintf-posix.c, test-vprintf-posix.c,
40695         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
40696         test-xvasprintf.c: Likewise.
40697
40698 2007-05-28  Bruno Haible  <bruno@clisp.org>
40699
40700         * gnulib-tool (func_import): Remember the --with-tests command-line
40701         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
40702         Reported by Eric Blake.
40703
40704 2007-05-28  Bruno Haible  <bruno@clisp.org>
40705
40706         * modules/ftell-tests: New file.
40707         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
40708         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
40709
40710         * lib/ftell.c: New file.
40711         * modules/ftell: New file.
40712         * m4/ftell.m4: New file.
40713         * doc/functions/ftell.texi: Update.
40714         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
40715         REPLACE_FTELL.
40716         * lib/stdio_.h (rpl_ftell): New declaration.
40717         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
40718         REPLACE_FTELL.
40719
40720 2007-05-28  Eric Blake  <ebb9@byu.net>
40721
40722         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
40723
40724 2007-05-28  Bruno Haible  <bruno@clisp.org>
40725
40726         * modules/fseek-tests: New file.
40727         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
40728         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
40729
40730         * lib/fseek.c: New file.
40731         * modules/fseek: New file.
40732         * m4/fseek.m4: New file.
40733         * doc/functions/fseek.texi: Update.
40734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
40735         REPLACE_FSEEK.
40736         * lib/stdio_.h (rpl_fseek): New declaration.
40737         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
40738         REPLACE_FSEEK.
40739
40740 2007-05-28  Bruno Haible  <bruno@clisp.org>
40741
40742         * lib/stdio_.h (fflush): More comments.
40743
40744 2007-05-28  Bruno Haible  <bruno@clisp.org>
40745
40746         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
40747         runtime test.
40748
40749 2007-05-28  Eric Blake  <ebb9@byu.net>
40750
40751         Improve lseek module.
40752         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
40753         * lib/unistd_.h (lseek): Scale back link warning message.
40754         * tests/test-lseek.c: Beef up test.
40755         * tests/test-lseek.sh: Exercise more facets of lseek.
40756         Reported by Bruno Haible.
40757
40758 2007-05-28  Bruno Haible  <bruno@clisp.org>
40759
40760         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
40761         to define.
40762
40763 2007-05-27  Bruno Haible  <bruno@clisp.org>
40764
40765         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
40766
40767 2007-05-27  Bruno Haible  <bruno@clisp.org>
40768
40769         * modules/openmp: New file.
40770         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
40771         Noah Misch.
40772
40773 2007-05-26  Bruno Haible  <bruno@clisp.org>
40774
40775         * modules/chdir-long (Depends-on): Add fchdir.
40776         * modules/chdir-safer (Depends-on): Likewise.
40777         * modules/fts (Depends-on): Likewise.
40778         * modules/fts-lgpl (Depends-on): Likewise.
40779         * modules/openat (Depends-on): Likewise.
40780         * modules/savewd (Depends-on): Likewise.
40781
40782 2007-05-24  Eric Blake  <ebb9@byu.net>
40783
40784         Fix lseek on mingw.
40785         * modules/lseek: New module.
40786         * m4/lseek.m4: New file.
40787         * lib/lseek.c: New file.
40788         * modules/lseek-tests: New file.
40789         * tests/test-lseek.c: New file.
40790         * tests/test-lseek.sh: New file.
40791         * MODULES.html.sh: Document lseek module.
40792         * modules/fflush (Depends-on): Add lseek, fseeko.
40793         * modules/fseeko (Depends-on): Likewise.
40794         * modules/ftello (Depends-on): Likewise.
40795         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
40796         broken.
40797         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
40798         broken.
40799         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
40800         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
40801         * lib/ftello.c (rpl_ftello): Likewise.
40802         * tests/test-fseeko.c (main): Test this.
40803         * tests/test-fseeko.sh: Likewise.
40804         * tests/test-ftello.c (main): Likewise.
40805         * tests/test-ftello.sh: Likewise.
40806         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
40807         implies replacing fseek.
40808         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
40809         HAVE_FTELLO.
40810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
40811         * modules/unistd (Makefile.am): Likewise.
40812         * lib/unistd_.h (lseek): Declare a replacement.
40813         * doc/functions/lseek.texi (lseek): Document this fix.
40814         * doc/functions/fseek.texi (fseek): Likewise.
40815         * doc/functions/ftell.texi (ftell): Likewise.
40816
40817 2007-05-24  Bruno Haible  <bruno@clisp.org>
40818
40819         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
40820         in the printed representation of a NaN.
40821         * tests/test-vasprintf-posix.c (test_function): Likewise.
40822         * tests/test-snprintf-posix.h (test_function): Likewise.
40823         * tests/test-sprintf-posix.h (test_function): Likewise.
40824         Reported by Eric Blake.
40825
40826 2007-05-23  Eric Blake  <ebb9@byu.net>
40827
40828         Fix fseeko/ftello on cygwin 1.5.24.
40829         * doc/functions/fseeko.texi (fseeko): Document the fix.
40830         * doc/functions/ftello.texi (ftello): Document the fix.
40831         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
40832         * doc/functions/stdout.text (stdout): New file.
40833         * doc/functions/stderr.text (stderr): New file.
40834         * doc/gnulib.texi (Function Substitutes): Use new files.
40835         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
40836         prior to 1.7.0.
40837         * tests/test-ftello.c (main): Likewise for ftello.
40838         * tests/test-fseeko.sh: New file.
40839         * tests/test-ftello.sh: New file.
40840         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
40841         with seekable stdin.
40842         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
40843         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
40844         (gl_REPLACE_FSEEKO): New macro.
40845         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
40846         * modules/fseeko (Files): Distribute fseeko.c.
40847         * modules/ftello (Files): Distribute ftello.c.
40848         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
40849         mode.
40850         * lib/ftello.c (rpl_ftello): New file.
40851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
40852         fseeko, ftello.
40853         (gl_STDIN_LARGE_OFFSET): New macro.
40854         * modules/stdio (Makefile.am): Perform the replacement.
40855         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
40856
40857 2007-05-23  Bruno Haible  <bruno@clisp.org>
40858
40859         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
40860         GNULIB_POSIXCHECK is defined.
40861
40862 2007-05-21  Bruno Haible  <bruno@clisp.org>
40863
40864         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
40865         Check also the output for NaN arguments. When cross-compiling, guess
40866         no on IRIX.
40867         * lib/vasnprintf.c: Update comments.
40868         * tests/test-vasnprintf-posix.c (strisnan): New function.
40869         (test_function): Use it.
40870         * tests/test-vasprintf-posix.c (strisnan): New function.
40871         (test_function): Use it.
40872         * tests/test-snprintf-posix.h (strisnan): New function.
40873         (test_function): Use it.
40874         * tests/test-sprintf-posix.h (strisnan): New function.
40875         (test_function): Use it.
40876         Reported by Eric Blake.
40877
40878 2007-05-20  Bruno Haible  <bruno@clisp.org>
40879
40880         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
40881         numbers that fails on BeOS.
40882         * doc/functions/frexpl.texi: Update.
40883
40884 2007-05-20  Jim Meyering  <jim@meyering.net>
40885
40886         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
40887         forced upon us by glibc-2.6.
40888
40889 2007-05-20  Bruno Haible  <bruno@clisp.org>
40890
40891         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
40892         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
40893         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
40894         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
40895         NEED_PRINTF_INFINITE.
40896         (is_infinitel): New function.
40897         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
40898         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
40899         gl_PREREQ_VASNPRINTF_INFINITE.
40900         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
40901         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40902         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
40903         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
40904         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
40905         gl_PREREQ_VASNPRINTF_INFINITE.
40906         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40907         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40908         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40909         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40910         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40911         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40912         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40913         * doc/functions/fprintf.texi: Update.
40914         * doc/functions/printf.texi: Update.
40915         * doc/functions/snprintf.texi: Update.
40916         * doc/functions/sprintf.texi: Update.
40917         * doc/functions/vfprintf.texi: Update.
40918         * doc/functions/vprintf.texi: Update.
40919         * doc/functions/vsnprintf.texi: Update.
40920         * doc/functions/vsprintf.texi: Update.
40921
40922 2007-05-20  Bruno Haible  <bruno@clisp.org>
40923
40924         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
40925         was not found in libc.
40926         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
40927
40928 2007-05-20  Bruno Haible  <bruno@clisp.org>
40929
40930         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
40931         printed as "-nan" instead of "nan".
40932         * tests/test-vasprintf-posix.c (test_function): Likewise.
40933         * tests/test-snprintf-posix.h (test_function): Likewise.
40934         * tests/test-sprintf-posix.h (test_function): Likewise.
40935         Needed for HP-UX 11.
40936
40937 2007-05-20  Jim Meyering  <jim@meyering.net>
40938
40939         Fix buggy test for the fchownat-deref bug.
40940         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
40941         symlink required for the run-test.  Without it, this test would
40942         always declare that fchownat doesn't work, and client code would
40943         unnecessarily use the replacement function with fixed libc.
40944         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
40945         Reported by Greg Schafer.
40946
40947 2007-05-19  Bruno Haible  <bruno@clisp.org>
40948
40949         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
40950         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
40951         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
40952         Needed for IRIX 6.5 and Solaris 2.5.1.
40953
40954 2007-05-19  Bruno Haible  <bruno@clisp.org>
40955
40956         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
40957         (test_function): Skip tests involving -0.0 on platforms where
40958         -0.0 = 0.0.
40959         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
40960         (test_function): Skip tests involving -0.0 on platforms where
40961         -0.0 = 0.0.
40962         * tests/test-snprintf-posix.h (have_minus_zero): New function.
40963         (test_function): Skip tests involving -0.0 on platforms where
40964         -0.0 = 0.0.
40965         * tests/test-sprintf-posix.h (have_minus_zero): New function.
40966         (test_function): Skip tests involving -0.0 on platforms where
40967         -0.0 = 0.0.
40968         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
40969         tests.
40970         * tests/test-printf-posix.h (test_function): Likewise.
40971         * tests/test-printf-posix.output: Remove all -0.0 related results.
40972         Needed for IRIX 6.5.
40973
40974 2007-05-19  Bruno Haible  <bruno@clisp.org>
40975
40976         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
40977         printed as "nan0x7fffffff" instead of "nan".
40978         * tests/test-vasprintf-posix.c (test_function): Likewise.
40979         * tests/test-snprintf-posix.h (test_function): Likewise.
40980         * tests/test-sprintf-posix.h (test_function): Likewise.
40981         * tests/test-fprintf-posix.h (NaN): Remove macro.
40982         (test_function): Remove all NaN related tests.
40983         * tests/test-printf-posix.h (NaN): Remove macro.
40984         (test_function): Remove all NaN related tests.
40985         * tests/test-printf-posix.output: Remove all NaN related results.
40986         Needed for IRIX 6.5.
40987
40988 2007-05-19  Bruno Haible  <bruno@clisp.org>
40989
40990         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
40991         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
40992
40993 2007-05-19  Bruno Haible  <bruno@clisp.org>
40994
40995         * lib/float_.h: New file.
40996         * m4/float_h.m4: New file.
40997         * modules/float: New file.
40998         * modules/isnanl (Dependencies): Add float.
40999         * modules/isnanl-nolibm (Dependencies): Likewise.
41000         * modules/mathl (Dependencies): Likewise.
41001         * modules/printf-frexpl (Dependencies): Likewise.
41002         * modules/signbit (Dependencies): Likewise.
41003         * modules/vasnprintf (Dependencies): Likewise.
41004         * doc/headers/float.texi: Update.
41005
41006 2007-05-19  Jim Meyering  <jim@meyering.net>
41007
41008         * lib/utimens.c (gl_futimens): Rename from futimens,
41009         now that glibc-2.6 declares futimens.
41010         * lib/utimens.h: Likewise.
41011
41012 2007-05-19  Bruno Haible  <bruno@clisp.org>
41013
41014         Avoid test failures on mingw.
41015         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
41016         * tests/test-printf-posix.sh: Likewise.
41017         * tests/test-vfprintf-posix.sh: Likewise.
41018         * tests/test-vprintf-posix.sh: Likewise.
41019
41020 2007-05-19  Bruno Haible  <bruno@clisp.org>
41021
41022         Fix *printf result for NaN, Inf, -0.0 on mingw.
41023         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
41024         * lib/vasnprintf.c: Include math.h and isnan.h.
41025         (is_infinite_or_zero): New function.
41026         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
41027         values in the %f, %F, %e, %E, %g, %G directives.
41028         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
41029         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41030         gl_PRINTF_INFINITE and test its result. Invoke
41031         gl_PREREQ_VASNPRINTF_INFINITE.
41032         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41033         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41034         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41035         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41036         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41037         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41038         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41039         * doc/functions/fprintf.texi: Update.
41040         * doc/functions/printf.texi: Update.
41041         * doc/functions/snprintf.texi: Update.
41042         * doc/functions/sprintf.texi: Update.
41043         * doc/functions/vfprintf.texi: Update.
41044         * doc/functions/vprintf.texi: Update.
41045         * doc/functions/vsnprintf.texi: Update.
41046         * doc/functions/vsprintf.texi: Update.
41047
41048 2007-05-19  Bruno Haible  <bruno@clisp.org>
41049
41050         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
41051         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
41052         Instead of multiplying with 10^k, set extra_zeroes to k.
41053         (scale10_round_long_double): Remove function.
41054
41055 2007-05-18  Bruno Haible  <bruno@clisp.org>
41056
41057         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
41058         introduced on 2007-05-06.
41059
41060 2007-05-18  Bruno Haible  <bruno@clisp.org>
41061
41062         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
41063         %g directives.
41064         * tests/test-vasprintf-posix.c (test_function): Likewise.
41065         * tests/test-snprintf-posix.h (test_function): Likewise.
41066         * tests/test-sprintf-posix.h (test_function): Likewise.
41067
41068 2007-05-18  Bruno Haible  <bruno@clisp.org>
41069
41070         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
41071         (strmatch): New function.
41072         (test_function): Test the %f directive on numbers of various exponents.
41073         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
41074         (strmatch): New function.
41075         (test_function): Test the %f directive on numbers of various exponents.
41076         * tests/test-snprintf-posix.h (strmatch): New function.
41077         (test_function): Test the %f directive on numbers of various exponents.
41078         * tests/test-sprintf-posix.h (strmatch): New function.
41079         (test_function): Test the %f directive on numbers of various exponents.
41080         * tests/test-snprintf-posix.c (SIZEOF): New macro.
41081         * tests/test-sprintf-posix.c (SIZEOF): New macro.
41082         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
41083         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
41084
41085 2007-05-18  Bruno Haible  <bruno@clisp.org>
41086
41087         Add support for 'long double' number output.
41088         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
41089         * lib/vasnprintf.c: Include math.h and float+.h.
41090         (mp_limb_t): New type.
41091         (GMP_LIMB_BITS): New macro.
41092         (mp_twolimb_t): New type.
41093         (GMP_TWOLIMB_BITS): New macro.
41094         (mpn_t): New type.
41095         (multiply, divide, convert_to_decimal, decode_long_double,
41096         scale10_round_long_double, scale10_round_decimal_long_double,
41097         floorlog10l): New functions.
41098         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
41099         for the %f, %F, %e, %E, %g, %G directives.
41100         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
41101         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41102         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
41103         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
41104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41105         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41107         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41108         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41111         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
41112         * modules/snprintf-posix (Depends-on): Likewise.
41113         * modules/sprintf-posix (Depends-on): Likewise.
41114         * modules/vasnprintf-posix (Depends-on): Likewise.
41115         * modules/vasprintf-posix (Depends-on): Likewise.
41116         * modules/vfprintf-posix (Depends-on): Likewise.
41117         * modules/vsnprintf-posix (Depends-on): Likewise.
41118         * modules/vsprintf-posix (Depends-on): Likewise.
41119         * modules/vasnprintf (Files): Add lib/float+.h.
41120         * doc/functions/fprintf.texi: Update.
41121         * doc/functions/printf.texi: Update.
41122         * doc/functions/snprintf.texi: Update.
41123         * doc/functions/sprintf.texi: Update.
41124         * doc/functions/vfprintf.texi: Update.
41125         * doc/functions/vprintf.texi: Update.
41126         * doc/functions/vsnprintf.texi: Update.
41127         * doc/functions/vsprintf.texi: Update.
41128
41129 2007-05-18  Bruno Haible  <bruno@clisp.org>
41130
41131         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
41132
41133 2007-05-18  Bruno Haible  <bruno@clisp.org>
41134
41135         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
41136         for printing 64-bit integers. Needed for mingw.
41137
41138 2007-05-18  Bruno Haible  <bruno@clisp.org>
41139
41140         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41141         gl_FUNC_FREXPL_WORKS.
41142         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
41143
41144 2007-05-18  Bruno Haible  <bruno@clisp.org>
41145
41146         * modules/frexpl-nolibm-tests: New file.
41147
41148         * modules/frexpl-nolibm: New file.
41149         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
41150
41151 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
41152
41153         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
41154         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41155         GCC 4.2, which otherwise issues a lot of warnings.
41156         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
41157         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
41158         Likewise.
41159         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
41160         * modules/iconv_open (iconv.h): Likewise.
41161         * modules/locale (locale.h): Likewise.
41162         * modules/netinet_in (netinet/in.h): Likewise.
41163         * modules/sys_select (sys_select.h): Likewise.
41164         * modules/sys_socket (sys/socket.h): Likewise.
41165         * modules/sys_stat (sys/stat.h): Likewise.
41166         * modules/sysexits (sysexits.h): Likewise.
41167         * modules/unistd (unistd.h): Likewise.
41168
41169 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41170
41171         * modules/closein-tests (Makefile.am): Distribute
41172         `test-closein.sh'.
41173
41174 2007-05-17  Bruno Haible  <bruno@clisp.org>
41175
41176         * tests/test-printf-posix.output: Renamed from
41177         tests/test-fprintf-posix.out.
41178         * modules/fprintf-posix-tests: Update.
41179         * modules/printf-posix-tests: Update.
41180         * modules/vfprintf-posix-tests: Update.
41181         * modules/vprintf-posix-tests: Update.
41182         * tests/test-fprintf-posix.sh: Update.
41183         * tests/test-printf-posix.sh: Update.
41184         * tests/test-vfprintf-posix.sh: Update.
41185         * tests/test-vprintf-posix.sh: Update.
41186         Reported by Ralf Wildenhues.
41187
41188 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
41189
41190         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
41191         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
41192         GCC 4.2, which otherwise issues a lot of warnings.
41193         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
41194         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
41195         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
41196         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
41197         it should no longer be needed.
41198         * lib/string_.h: Likewise.
41199         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
41200         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
41201         * modules/inttypes (inttypes.h): Likewise.
41202         * modules/math (math.h): Likewise.
41203         * modules/search (search.h): Likewise.
41204         * modules/signal (signal.h): Likewise.
41205         * modules/stdint (stdint.h): Likewise.
41206         * modules/stdio (stdio.h): Likewise.
41207         * modules/stdlib (stdlib.h): Likewise.
41208         * modules/string (string.h): Likewise.
41209         * modules/sys_time (sys/time.h): Likewise.
41210         * modules/time (time.h): Likewise.
41211         * modules/wchar (wchar.h): Likewise.
41212         * modules/wctype (wtype.h): Likewise.
41213
41214 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
41215
41216         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
41217
41218 2007-05-13  Bruno Haible  <bruno@clisp.org>
41219
41220         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
41221         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
41222         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
41223         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41224         (gl_PREREQ_STRTOK_R): Don't require it here.
41225
41226 2007-05-13  Bruno Haible  <bruno@clisp.org>
41227
41228         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
41229         when used in C++ mode.
41230
41231 2007-05-12  Bruno Haible  <bruno@clisp.org>
41232
41233         * lib/linebuffer.h: Tweak doc.
41234         * lib/linebuffer.c: Likewise.
41235
41236 2007-05-12  James Youngman  <jay@gnu.org>
41237
41238         * lib/linebuffer.c (readlinebuffer_delim): New function,
41239         like readlinebuffer, but use a caller-specified delimiter.
41240         (readlinebuffer): Just call readlinebuffer_delim with '\n'
41241         as the delimiter.
41242         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
41243
41244 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41245
41246         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
41247         * modules/openat (Files): Remove openat-die.c.
41248         (Depends-on): Add openat-die.
41249         * modules/openat-die: New module.
41250
41251 2007-05-06  Bruno Haible  <bruno@clisp.org>
41252
41253         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
41254         Update with info about Cygwin.
41255         * doc/functions/fprintf.texi: Update.
41256         * doc/functions/printf.texi: Update.
41257         * doc/functions/snprintf.texi: Update.
41258         * doc/functions/sprintf.texi: Update.
41259         * doc/functions/vfprintf.texi: Update.
41260         * doc/functions/vprintf.texi: Update.
41261         * doc/functions/vsnprintf.texi: Update.
41262         * doc/functions/vsprintf.texi: Update.
41263         Reported by Eric Blake.
41264
41265 2007-05-06  Bruno Haible  <bruno@clisp.org>
41266
41267         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
41268         padding ourselves for the floating-point directives.
41269         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
41270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
41271         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41272         gl_PRINTF_FLAG_ZERO and test its result. Invoke
41273         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
41274         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41275         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41276         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41277         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41278         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41279         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41280         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41281         * tests/test-snprintf-posix.h (test_function): Also check the width
41282         and some flags in the %f directive.
41283         * tests/test-sprintf-posix.h (test_function): Likewise.
41284         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41285         * tests/test-vasprintf-posix.c (test_function): Likewise.
41286         * doc/functions/fprintf.texi: Update.
41287         * doc/functions/printf.texi: Update.
41288         * doc/functions/snprintf.texi: Update.
41289         * doc/functions/sprintf.texi: Update.
41290         * doc/functions/vfprintf.texi: Update.
41291         * doc/functions/vprintf.texi: Update.
41292         * doc/functions/vsnprintf.texi: Update.
41293         * doc/functions/vsprintf.texi: Update.
41294
41295 2007-05-06  Bruno Haible  <bruno@clisp.org>
41296
41297         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
41298         pass the ' flag character to sprintf or snprintf.
41299         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
41300         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
41301         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41302         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
41303         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
41304         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41305         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
41306         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41307         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41308         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41309         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41310         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41311         * tests/test-snprintf-posix.h (test_function): Also check the grouping
41312         flag.
41313         * tests/test-sprintf-posix.h (test_function): Likewise.
41314         * tests/test-vasnprintf-posix.c (test_function): Likewise.
41315         * tests/test-vasprintf-posix.c (test_function): Likewise.
41316         * doc/functions/fprintf.texi: Update.
41317         * doc/functions/printf.texi: Update.
41318         * doc/functions/snprintf.texi: Update.
41319         * doc/functions/sprintf.texi: Update.
41320         * doc/functions/vfprintf.texi: Update.
41321         * doc/functions/vprintf.texi: Update.
41322         * doc/functions/vsnprintf.texi: Update.
41323         * doc/functions/vsprintf.texi: Update.
41324
41325 2007-05-01  Bruno Haible  <bruno@clisp.org>
41326
41327         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
41328
41329 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
41330
41331         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
41332         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
41333
41334 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
41335
41336         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
41337         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
41338         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
41339
41340 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
41341
41342         * lib/argp-help.c (struct hol_entry): New member `ord'.
41343         (HOL_ENTRY_PTRCMP): Use ord for comparison
41344         (hol_sort): Initialize ord.
41345
41346 2007-05-01  Bruno Haible  <bruno@clisp.org>
41347
41348         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
41349         Reported by Eric Blake.
41350         * doc/gnulib.texi (Function Substitutes): Update.
41351
41352 2007-05-01  Bruno Haible  <bruno@clisp.org>
41353
41354         * doc/functions.texi: Remove file, now redundant through
41355         doc/functions/*.texi.
41356
41357 2007-05-01  Bruno Haible  <bruno@clisp.org>
41358
41359         * modules/argp (Depends-on): Add sleep.
41360
41361 2007-05-01  Bruno Haible  <bruno@clisp.org>
41362
41363         * modules/sleep-tests: New file.
41364         * tests/test-sleep.c: New file.
41365
41366         * modules/sleep: New file.
41367         * lib/sleep.c: New file.
41368         * m4/sleep.m4: New file.
41369         * lib/unistd_.h (sleep): New declaration.
41370         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
41371         HAVE_SLEEP.
41372         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
41373         * doc/functions/sleep.texi: Document the sleep module.
41374
41375 2007-05-01  Bruno Haible  <bruno@clisp.org>
41376
41377         * lib/sigprocmask.h: Remove file.
41378         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
41379         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
41380         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
41381         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
41382         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
41383         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
41384         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
41385         HAVE_SIGSET_T as a shell variable.
41386         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
41387         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
41388         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
41389         (Depends-on): Add signal. Remove verify.
41390         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
41391         (Include): Mention <signal.h> instead of sigprocmask.h.
41392         * NEWS: Mention the change.
41393         * lib/fatal-signal.c: Don't include sigprocmask.h.
41394
41395 2007-05-01  Bruno Haible  <bruno@clisp.org>
41396
41397         * modules/signal: New file.
41398         * lib/signal_.h: New file.
41399         * m4/signal_h.m4: New file.
41400
41401 2007-05-01  Bruno Haible  <bruno@clisp.org>
41402
41403         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
41404         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
41405         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
41406         HAVE_WCTYPE_CTMP_BUG into wctype.h.
41407
41408 2007-05-01  Bruno Haible  <bruno@clisp.org>
41409
41410         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
41411         configure time.
41412         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
41413         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
41414         * modules/sys_stat (Makefile.am): Substitute their values into
41415         sys/stat.h.
41416
41417 2007-05-01  Bruno Haible  <bruno@clisp.org>
41418
41419         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
41420         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
41421         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
41422
41423 2007-05-01  Bruno Haible  <bruno@clisp.org>
41424
41425         * doc/header/assert.texi: Undo last change: don't mention the gnulib
41426         'assert' module here.
41427
41428 2007-05-01  Bruno Haible  <bruno@clisp.org>
41429
41430         * doc/functions/*.texi: New files.
41431         * doc/functions/google-ranking.txt: New file.
41432         * doc/gnulib.texi (Function Substitutes): New chapter.
41433         (ctime, inet_ntoa): Remove sections.
41434         * doc/ctime.texi: Remove file.
41435         * doc/inet_ntoa.texi: Remove file.
41436         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
41437         dependencies.
41438         (%.info): New rule, specifying a --reference-limit.
41439
41440 2007-05-01  Bruno Haible  <bruno@clisp.org>
41441
41442         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
41443
41444 2007-05-01  Bruno Haible  <bruno@clisp.org>
41445
41446         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
41447         the portability of 'mkdir' to mingw systems.
41448
41449 2007-05-01  Bruno Haible  <bruno@clisp.org>
41450
41451         * doc/headers/google-ranking.txt: New file.
41452
41453 2007-04-30  Eric Blake  <ebb9@byu.net>
41454
41455         Prefer fseeko to fseek.
41456         * modules/getpass (Depends-on): Add fseeko.
41457         * lib/getpass.c (getpass): Use fseeko, not fseek.
41458
41459 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
41460
41461         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
41462         assumes the sorting is stable, while most qsort implementations
41463         are not.  Use argument addresses to ensure they never compare as
41464         equal.
41465
41466         * tests/test-argp-2.sh (usage-indent test): Fix output
41467         (func_compare): Restore diff options
41468         * tests/test-argp.c: Restore #include "progname.h"
41469
41470 2007-04-29  Bruno Haible  <bruno@clisp.org>
41471
41472         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
41473         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41474         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
41475         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41476         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
41477         (configure.ac): Define CHECK_SNPRINTF_POSIX.
41478         (TESTS, check_PROGRAMS): Add test-snprintf.
41479         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
41480         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
41481         (TESTS, check_PROGRAMS): Add test-vsnprintf.
41482         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
41483         assertions that fail on HP-UX, OSF/1, or IRIX.
41484         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
41485
41486 2007-04-29  Bruno Haible  <bruno@clisp.org>
41487
41488         * MODULES.html.sh (posix_functions): Remove 'contents'.
41489
41490 2007-04-29  Karl Berry  <karl@gnu.org>
41491
41492         * config/srclist.txt (gendocs_template_min): new entry.
41493
41494 2007-04-29  Bruno Haible  <bruno@clisp.org>
41495
41496         Work around fpurge bug on BSD systems.
41497         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
41498         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
41499         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
41500         fpurge to rpl_fpurge if the system already has this function.
41501         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
41502         the case where the system already has this function. Correct invariants
41503         on BSD systems.
41504         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
41505         BSD systems.
41506
41507 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
41508
41509         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
41510         proposed by Sven Verdoolaege.
41511
41512         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
41513         options.
41514         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
41515         (usage and help tests): Update
41516
41517 2007-04-29  Bruno Haible  <bruno@clisp.org>
41518
41519         * tests/test-fflush.c (main): Use a file of size 17, not 10.
41520         Print more information in case of failure. Disable a test on BeOS.
41521
41522 2007-04-29  Bruno Haible  <bruno@clisp.org>
41523
41524         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
41525         This helps debugging on systems on which no gdb is available.
41526
41527 2007-04-29  Bruno Haible  <bruno@clisp.org>
41528
41529         * lib/freading.h: Improve comments.
41530         * lib/fwriting.h: Likewise.
41531         * tests/test-freading.c (main): Don't check freading immediately after
41532         repositioning. Needed for glibc.
41533
41534 2007-04-29  Bruno Haible  <bruno@clisp.org>
41535
41536         * lib/freading.c (freading): Trivial simplification.
41537
41538 2007-04-28  Bruno Haible  <bruno@clisp.org>
41539
41540         * tests/test-fwriting.c (main): Also test the interaction between
41541         fflush and fwriting.
41542         * modules/fwriting-tests (Depends-on): Add fflush.
41543
41544         * tests/test-freading.c (main): Also test the interaction between
41545         fflush and freading.
41546         * modules/freading-tests (Depends-on): Add fflush.
41547
41548 2007-04-28  Bruno Haible  <bruno@clisp.org>
41549
41550         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
41551         fseeko and ftello.
41552         Suggested by Eric Blake.
41553
41554 2007-04-28  Jim Meyering  <jim@meyering.net>
41555
41556         Avoid false-negative in gl_STDINT_H's C99 conformance test.
41557         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
41558         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
41559
41560 2007-04-27  Eric Blake  <ebb9@byu.net>
41561
41562         * doc/headers/assert.texi (assert.h): Document assert module use.
41563
41564 2007-04-27  Bruno Haible  <bruno@clisp.org>
41565
41566         * doc/headers/*.texi: New files.
41567         * doc/gnulib.texi (Header File Substitutes): New chapter.
41568         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
41569         dependencies.
41570         (standards.info ,standards.html, standards.dvi): Update dependencies.
41571         (mostlyclean, clean): New targets.
41572
41573 2007-04-27  Bruno Haible  <bruno@clisp.org>
41574
41575         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
41576         * modules/sysexits (Files, Makefile.am): Update.
41577
41578         * lib/sys_socket_.h: Renamed from lib/socket_.h.
41579         * modules/sys_socket (Files, Makefile.am): Update.
41580
41581         * lib/sys_stat_.h: Renamed from lib/stat_.h.
41582         * modules/sys_stat (Files, Makefile.am): Update.
41583
41584 2007-04-27  Eric Blake  <ebb9@byu.net>
41585
41586         * lib/freading.h: Improve comments.
41587         * lib/fwriting.h: Likewise.
41588         * lib/fflush.c: Likewise.
41589
41590         Fix closein for mingw.
41591         * modules/closein-tests: Add tests for closein.
41592         * tests/test-closein.c: New file.
41593         * tests/test-closein.sh: Likewise.
41594         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
41595         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
41596
41597 2007-04-27  Bruno Haible  <bruno@clisp.org>
41598
41599         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
41600         version is < 6.
41601         * lib/math_.h [__DECC]: Likewise.
41602         * lib/stdio_.h [__DECC]: Likewise.
41603         * lib/stdlib_.h [__DECC]: Likewise.
41604         * lib/string_.h [__DECC]: Likewise.
41605         * lib/time_.h [__DECC]: Likewise.
41606         * lib/wchar_.h [__DECC]: Likewise.
41607         * lib/wctype_.h [__DECC]: Likewise.
41608
41609 2007-04-27  Bruno Haible  <bruno@clisp.org>
41610
41611         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
41612
41613 2007-04-27  Bruno Haible  <bruno@clisp.org>
41614
41615         * lib/fflush.c: Add comments.
41616         * modules/fpurge-tests (Depends-on): Add fflush.
41617         * modules/freadable-tests (Depends-on): Likewise.
41618         * modules/fwritable-tests (Depends-on): Likewise.
41619
41620 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
41621
41622         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
41623         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
41624         Report by Bruno Haible <bruno@clisp.org>.
41625
41626 2007-04-26  Eric Blake  <ebb9@byu.net>
41627
41628         Fix fflush on mingw.
41629         * modules/fflush (Depends-on): Add freading.
41630         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
41631         but unread data.
41632
41633 2007-04-26  Eric Blake  <ebb9@byu.net>
41634         and Bruno Haible  <bruno@clisp.org>
41635
41636         Implement freading and fwriting.
41637         * lib/freading.c: New file.
41638         * lib/freading.h: Likewise.
41639         * m4/freading.m4: Likewise.
41640         * modules/freading: Likewise.
41641         * modules/freading-tests: Likewise.
41642         * tests/test-freading.c: Likewise.
41643         * lib/fwriting.c: New file.
41644         * lib/fwriting.h: Likewise.
41645         * m4/fwriting.m4: Likewise.
41646         * modules/fwriting: Likewise.
41647         * modules/fwriting-tests: Likewise.
41648         * tests/test-fwriting.c: Likewise.
41649         * MODULES.html.sh (File stream based Input/Output): Mention them.
41650
41651 2007-04-26  Bruno Haible  <bruno@clisp.org>
41652
41653         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
41654         'long' when we assume it.
41655         Suggested by Eric Blake.
41656
41657 2007-04-26  Bruno Haible  <bruno@clisp.org>
41658
41659         Ensure fseeko, ftello are declared on glibc systems.
41660         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
41661         * modules/fseeko (configure.ac-early): Likewise.
41662         * modules/ftello (configure.ac-early): Likewise.
41663         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
41664         AC_FUNC_FSEEKO for this.
41665         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
41666         (gl_CHECK_FSEEKO): Remove macro.
41667
41668 2007-04-26  Bruno Haible  <bruno@clisp.org>
41669
41670         * tests/test-fflush.c (main): Also check the ftell result after
41671         fflush and fseek/fseeko.
41672         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
41673         file descriptor position cache in the stream.
41674         * lib/fseeko.c (rpl_fseeko): Likewise.
41675
41676 2007-04-26  Bruno Haible  <bruno@clisp.org>
41677
41678         * modules/fflush-tests (Depends-on): Add fseeko.
41679
41680 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
41681             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41682
41683         * lib/argz_.h: ensure error_t definition is obtained in same
41684         mechanism system argz.h would have.
41685         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
41686         argz facilities are known bad.  Err on the side of caution if
41687         cross-compiling.
41688
41689 2007-04-25  Eric Blake  <ebb9@byu.net>
41690
41691         * lib/fpurge.c (includes): Use stdlib.h for free.
41692         * tests/test-fflush.c (main): Also test fflush-fseeko.
41693
41694 2007-04-25  Bruno Haible  <bruno@clisp.org>
41695
41696         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
41697         * lib/fseeko.c: New file.
41698         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
41699         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
41700         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
41701         gl_FUNC_FSEEKO.
41702         (gl_FUNC_FSEEKO): Invoke it.
41703         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
41704         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
41705         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
41706
41707 2007-04-25  Bruno Haible  <bruno@clisp.org>
41708
41709         * modules/fflush (Depends-on): Add ftello.
41710
41711 2007-04-25  Bruno Haible  <bruno@clisp.org>
41712
41713         * modules/ftello-tests: New file.
41714         * tests/test-ftello.c: New file.
41715
41716         * modules/ftello: New file.
41717         * m4/ftello.m4: New file.
41718         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
41719         HAVE_FTELLO.
41720         * lib/stdio_.h (ftello): New declaration.
41721         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
41722         HAVE_FTELLO.
41723
41724 2007-04-25  Bruno Haible  <bruno@clisp.org>
41725
41726         * modules/fseeko-tests: New file.
41727         * tests/test-fseeko.c: New file.
41728
41729         * modules/fseeko: New file.
41730         * m4/fseeko.m4: New file.
41731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
41732         HAVE_FSEEKO.
41733         * lib/stdio_.h (fseeko): New declaration.
41734         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
41735         HAVE_FSEEKO.
41736
41737 2007-04-25  Bruno Haible  <bruno@clisp.org>
41738
41739         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
41740
41741 2007-04-25  Bruno Haible  <bruno@clisp.org>
41742
41743         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
41744         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
41745         * tests/test-unistd.c: Likewise.
41746         * tests/test-fcntl.c: Likewise.
41747
41748 2007-04-23  Eric Blake  <ebb9@byu.net>
41749
41750         * lib/fflush.c: Fix missing include.
41751         Reported by Bruno Haible.
41752
41753 2007-04-23  Bruno Haible  <bruno@clisp.org>
41754
41755         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
41756         Reported by Eric Blake.
41757
41758 2007-04-23  Bruno Haible  <bruno@clisp.org>
41759
41760         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
41761
41762 2007-04-23  Bruno Haible  <bruno@clisp.org>
41763
41764         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
41765
41766 2007-04-23  Bruno Haible  <bruno@clisp.org>
41767
41768         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
41769         Needed on HP-UX 11.
41770
41771 2007-04-16  Eric Blake  <ebb9@byu.net>
41772
41773         Make fflush rely on fpurge.
41774         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
41775         open coding all variants.
41776         * modules/fflush (Depends-on): Add fpurge and unistd.
41777         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
41778         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
41779
41780         Fix --with-tests compilation on cygwin.
41781         * modules/argmatch-tests (Makefile.am): List gnulib library first
41782         in LDADD.
41783         * modules/argp-tests (Makefile.am): Likewise.
41784         * modules/array-list-tests (Makefile.am): Likewise.
41785         * modules/array-oset-tests (Makefile.am): Likewise.
41786         * modules/avltree-list-tests (Makefile.am): Likewise.
41787         * modules/avltree-oset-tests (Makefile.am): Likewise.
41788         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41789         * modules/carray-list-tests (Makefile.am): Likewise.
41790         * modules/dirname-tests (Makefile.am): Likewise.
41791         * modules/frexp-tests (Makefile.am): Likewise.
41792         * modules/isnanl-tests (Makefile.am): Likewise.
41793         * modules/linked-list-tests (Makefile.am): Likewise.
41794         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41795         * modules/lock-tests (Makefile.am): Likewise.
41796         * modules/rbtree-list-tests (Makefile.am): Likewise.
41797         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41798         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41799         * modules/tls-tests (Makefile.am): Likewise.
41800         * modules/tsearch-tests (Makefile.am): Likewise.
41801         * modules/xvasprintf-tests (Makefile.am): Likewise.
41802
41803         Fix fpurge for cygwin.
41804         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
41805         value.
41806         * modules/fpurge-tests (Depends-on): Clean up trash.
41807
41808 2007-04-16  Simon Josefsson  <simon@josefsson.org>
41809
41810         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
41811
41812         * m4/autobuild.m4: Re-indent.
41813
41814 2007-04-13  Bruno Haible  <bruno@clisp.org>
41815
41816         * modules/fpurge-tests: New file.
41817         * tests/test-fpurge.c: New file.
41818
41819         * modules/fpurge: New file.
41820         * lib/fpurge.h: New file.
41821         * lib/fpurge.c: New file.
41822         * m4/fpurge.m4: New file.
41823
41824 2007-04-13  Bruno Haible  <bruno@clisp.org>
41825
41826         * modules/fbufmode-tests: New file.
41827         * tests/test-fbufmode.c: New file.
41828
41829         * modules/fbufmode: New file.
41830         * lib/fbufmode.h: New file.
41831         * lib/fbufmode.c: New file.
41832         * m4/fbufmode.m4: New file.
41833
41834 2007-04-13  Bruno Haible  <bruno@clisp.org>
41835
41836         * modules/fwritable-tests: New file.
41837         * tests/test-fwritable.c: New file.
41838
41839         * modules/fwritable: New file.
41840         * lib/fwritable.h: New file.
41841         * lib/fwritable.c: New file.
41842         * m4/fwritable.m4: New file.
41843
41844 2007-04-13  Bruno Haible  <bruno@clisp.org>
41845
41846         * modules/freadable-tests: New file.
41847         * tests/test-freadable.c: New file.
41848
41849         * modules/freadable: New file.
41850         * lib/freadable.h: New file.
41851         * lib/freadable.c: New file.
41852         * m4/freadable.m4: New file.
41853
41854 2007-04-13  Bruno Haible  <bruno@clisp.org>
41855
41856         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
41857         MOSTLYCLEANFILES.
41858
41859 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
41860
41861         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
41862         gzip bootstrap.conf to avoid dragging in i18n machinery.
41863         (gnulib_tool_option): Use it.
41864
41865 2007-04-13  Bruno Haible  <bruno@clisp.org>
41866
41867         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
41868         %F directives.
41869         * tests/test-vasprintf-posix.c (test_function): Likewise.
41870         * tests/test-snprintf-posix.h (test_function): Likewise.
41871         * tests/test-sprintf-posix.h (test_function): Likewise.
41872         * tests/test-fprintf-posix.h (test_function): Likewise.
41873         * tests/test-printf-posix.h (test_function): Likewise.
41874         * tests/test-fprintf-posix.out: Likewise.
41875
41876 2007-04-13  Bruno Haible  <bruno@clisp.org>
41877
41878         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
41879         * modules/tls-tests (configure.ac): Likewise.
41880         Reported by Arto C. Nirkko <anirkko@insel.ch>.
41881
41882 2007-04-13  Bruno Haible  <bruno@clisp.org>
41883
41884         * lib/tls.c (glthread_tls_get): Fix return type.
41885         Patch by Arto C. Nirkko <anirkko@insel.ch>.
41886
41887 2007-04-12  Eric Blake  <ebb9@byu.net>
41888
41889         * modules/gettime (Depends-on): Remove gettime.
41890         Reported by Dmitry V. Levin.
41891
41892 2007-04-12  Bruno Haible  <bruno@clisp.org>
41893
41894         * modules/fflush (Include): Mention <stdio.h>.
41895         * modules/strtoimax (Include): Mention <inttypes.h>.
41896         * modules/strtoumax (Include): Likewise.
41897
41898 2007-04-12  Eric Blake  <ebb9@byu.net>
41899
41900         * .cvsignore: New file.
41901         * .gitignore: Likewise.
41902
41903 2007-04-12  Bruno Haible  <bruno@clisp.org>
41904
41905         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
41906         not before, since $(LDADD) often contains libgnu.a.
41907         * modules/striconv-tests (test_striconv_LDADD): Likewise.
41908         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
41909         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
41910         Needed on Cygwin.
41911
41912 2007-04-12  Eric Blake  <ebb9@byu.net>
41913
41914         Work around glibc's failure to flush stdin on fclose.
41915         * lib/closein.c (close_stdin): Flush stdin before closing.
41916
41917         Work around glibc's failure to reset seekable stdin on exit.
41918         * modules/closein: New module.
41919         * lib/closein.c: New file.
41920         * lib/closein.h: Likewise.
41921         * m4/closein.m4: Likewise.
41922         * MODULES.html.sh (File stream based Input/Output): Document it.
41923
41924 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41925
41926         * gnulib-tool: Rename generated 'autobuild' script to
41927         'do-autobuild' in --create-megatestdir output.
41928
41929         * doc/gnulib.texi (Build robot for gnulib): Fix.
41930
41931 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41932
41933         * modules/sysexits (Depends-on): Add absolute-header.
41934
41935 2007-04-12  Eric Blake  <ebb9@byu.net>
41936
41937         No need to preserve errno on success.
41938         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
41939         Reported by Bruno Haible.
41940
41941 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41942
41943         * MODULES.html.sh (Support for maintaining and releasing
41944         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
41945
41946 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41947
41948         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
41949
41950 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41951
41952         * modules/autobuild: New module.
41953
41954         * m4/autobuild.m4: New file.
41955
41956 2007-04-11  Bruno Haible  <bruno@clisp.org>
41957
41958         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
41959         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
41960         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
41961         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
41962         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41963         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41964         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41965         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41966         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41967         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41968         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
41969         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41970         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41971         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
41972         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41973         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41974         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
41975         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41976         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41977         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
41978         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41979         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41980         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
41981         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41982         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41983         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
41984         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41985         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41986         Reported by Eric Blake.
41987
41988 2007-04-11  Bruno Haible  <bruno@clisp.org>
41989
41990         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
41991
41992 2007-04-10  Bruno Haible  <bruno@clisp.org>
41993
41994         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
41995         for NaN and Infinity. Needed on FreeBSD 6.1.
41996         * tests/test-vasnprintf-posix.c (test_function): Undo last change
41997         regarding results for "%010a" of Infinity and NaN.
41998         * tests/test-vasprintf-posix.c (test_function): Likewise.
41999         * tests/test-snprintf-posix.h (test_function): Likewise.
42000         * tests/test-sprintf-posix.h (test_function): Likewise.
42001         * tests/test-fprintf-posix.h (test_function): Likewise.
42002         * tests/test-printf-posix.h (test_function): Likewise.
42003         * tests/test-fprintf-posix.out: Likewise.
42004
42005 2007-04-10  Bruno Haible  <bruno@clisp.org>
42006
42007         * modules/locale-tests: New file.
42008         * tests/test-locale.c: New file.
42009
42010         * modules/locale: New file.
42011         * lib/locale_.h: New file.
42012         * m4/locale_h.m4: New file.
42013
42014 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
42015             Bruno Haible  <bruno@clisp.org>
42016
42017         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
42018         be determined, test for availability of the copysignf, copysign,
42019         copysignl functions.
42020         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
42021         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
42022         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
42023
42024 2007-04-09  Eric Blake  <ebb9@byu.net>
42025
42026         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
42027         * modules/stdio (Makefile.am): Support fflush.
42028         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42029         * modules/fflush: New file.
42030         * lib/fflush.c: Likewise.
42031         * m4/fflush.m4: Likewise.
42032         * modules/fflush-tests: New test.
42033         * tests/test-fflush.c: Likewise.
42034         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
42035
42036 2007-04-06  Bruno Haible  <bruno@clisp.org>
42037
42038         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
42039         (VASNPRINTF): Use signbit for faster determination whether to print a
42040         minus sign.
42041         * modules/vasnprintf (Files): Remove lib/float+.h.
42042         * modules/fprintf-posix (Depends-on): Add signbit.
42043         * modules/snprintf-posix (Depends-on): Likewise.
42044         * modules/sprintf-posix (Depends-on): Likewise.
42045         * modules/vasnprintf-posix (Depends-on): Likewise.
42046         * modules/vasprintf-posix (Depends-on): Likewise.
42047         * modules/vfprintf-posix (Depends-on): Likewise.
42048         * modules/vsnprintf-posix (Depends-on): Likewise.
42049         * modules/vsprintf-posix (Depends-on): Likewise.
42050
42051 2007-04-06  Bruno Haible  <bruno@clisp.org>
42052
42053         * tests/test-frexp.c (main): Test also the sign bit of zero results.
42054         * tests/test-frexpl.c (main): Likewise.
42055         * tests/test-ldexpl.c (main): Likewise.
42056         * modules/frexp-tests (Depends-on): Add signbit.
42057         * modules/frexpl-tests (Depdends-on): Likewise.
42058         * modules/ldexpl-tests (Depdends-on): Likewise.
42059
42060 2007-04-06  Bruno Haible  <bruno@clisp.org>
42061
42062         * modules/signbit-tests: New file.
42063         * tests/test-signbit.c: New file.
42064
42065         * modules/signbit: New file.
42066         * lib/signbitf.c: New file.
42067         * lib/signbitd.c: New file.
42068         * lib/signbitl.c: New file.
42069         * m4/signbit.m4: New file.
42070         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
42071         (signbit): New macro.
42072         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
42073         REPLACE_SIGNBIT.
42074         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
42075         REPLACE_FREXPL into math.h.
42076
42077 2007-04-06  Bruno Haible  <bruno@clisp.org>
42078
42079         * modules/isnanf-nolibm-tests: New file.
42080         * tests/test-isnanf.c: New file.
42081
42082         * modules/isnanf-nolibm: New file.
42083         * lib/isnanf.h: New file.
42084         * lib/isnanf.c: New file.
42085         * lib/isnan.c: Consider the USE_FLOAT macro.
42086         * m4/isnanf.m4: New file.
42087
42088 2007-04-06  Bruno Haible  <bruno@clisp.org>
42089
42090         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
42091         (Link): New section.
42092
42093         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
42094
42095 2007-04-06  Bruno Haible  <bruno@clisp.org>
42096
42097         Assume the 'long double' type.
42098         * m4/longdouble.m4: Remove file.
42099         * config/srclist.txt: Don't mention longdouble.m4.
42100         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
42101         * lib/float+.h: Likewise.
42102         * lib/frexp.c: Likewise.
42103         * lib/printf-args.h: Likewise.
42104         * lib/printf-args.c: Likewise.
42105         * lib/printf-frexp.c: Likewise.
42106         * lib/printf-parse.c: Likewise.
42107         * lib/vasnprintf.c: Likewise.
42108         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
42109         * m4/intl.m4: Likewise.
42110         * m4/isnanl.m4: Likewise.
42111         * m4/printf.m4: Likewise.
42112         * m4/printf-frexpl.m4: Likewise.
42113         * m4/vasnprintf.m4: Likewise.
42114         * modules/allocsa (Files): Remove m4/longdouble.m4.
42115         * modules/gettext (Files): Likewise.
42116         * modules/relocatable-prog-wrapper (Files): Likewise.
42117         * modules/vasnprintf (Files): Likewise.
42118         * modules/isnanl (Files): Likewise.
42119         (Include): Simplify.
42120         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
42121         (Include): Simplify.
42122         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
42123         (Include): Simplify.
42124         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
42125         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42126         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
42127         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42128         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42129         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42130         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
42131         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42132         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
42133         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42134         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
42135         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
42136         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
42137         * tests/test-isnanl.c: Likewise.
42138         * tests/test-snprintf-posix.h: Likewise.
42139         * tests/test-sprintf-posix.h: Likewise.
42140         * tests/test-vasnprintf-posix.c: Likewise.
42141         * tests/test-vasnprintf-posix2.c: Likewise.
42142         * tests/test-vasprintf-posix.c: Likewise.
42143
42144 2007-04-06  Bruno Haible  <bruno@clisp.org>
42145
42146         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
42147         * lib/math_.h [__DECC]: Include the overridden include file through
42148         #include_next, outside the double-inclusion guard.
42149         * lib/stdio_.h [__DECC]: Likewise.
42150         * lib/stdlib_.h [__DECC]: Likewise.
42151         * lib/string_.h [__DECC]: Likewise.
42152         * lib/time_.h [__DECC]: Likewise.
42153         * lib/wchar_.h [__DECC]: Likewise.
42154         * lib/wctype_.h [__DECC]: Likewise.
42155         * lib/inttypes_.h [__DECC]: Likewise.
42156         Reported by Albert Chin <china@thewrittenword.com> in
42157         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
42158
42159 2007-04-04  Eric Blake  <ebb9@byu.net>
42160
42161         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
42162         1.5.x.
42163
42164 2007-04-04  Bruno Haible  <bruno@clisp.org>
42165
42166         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
42167         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
42168
42169 2007-04-04  Bruno Haible  <bruno@clisp.org>
42170
42171         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
42172         results for "%010a" of Infinity and NaN.
42173         * tests/test-vasprintf-posix.c (test_function): Likewise.
42174         * tests/test-snprintf-posix.h (test_function): Likewise.
42175         * tests/test-sprintf-posix.h (test_function): Likewise.
42176         * tests/test-fprintf-posix.h (test_function): Remove these tests.
42177         * tests/test-printf-posix.h (test_function): Likewise.
42178         * tests/test-fprintf-posix.out: Update.
42179         Needed for FreeBSD 6.1.
42180
42181 2007-04-04  Bruno Haible  <bruno@clisp.org>
42182
42183         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
42184         directly used by the gnulib modules nor by gnulib-tool.
42185
42186 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
42187
42188         * DEPENDENCIES: Give overall description of version dependency
42189         desirability.  Use more-typical names for apps.
42190         Add shell, coreutils, diffutils, grep, tar, gzip.
42191
42192 2007-04-04  Simon Josefsson  <simon@josefsson.org>
42193
42194         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
42195
42196 2007-04-04  Karl Berry  <karl@gnu.org>
42197
42198         * MODULES.html.sh (func_module): missing '.
42199
42200 2007-04-03  Bruno Haible  <bruno@clisp.org>
42201
42202         * modules/argmatch-tests (Makefile.am): New variable
42203         test_argmatch_LDADD.
42204         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
42205         * modules/array-list-tests (Makefile.am): New variable
42206         test_array_list_LDADD.
42207         * modules/array-oset-tests (Makefile.am): New variable
42208         test_array_oset_LDADD.
42209         * modules/avltree-list-tests (Makefile.am): New variable
42210         test_avltree_list_LDADD.
42211         * modules/avltree-oset-tests (Makefile.am): New variable
42212         test_avltree_oset_LDADD.
42213         * modules/avltreehash-list-tests (Makefile.am): New variable
42214         test_avltreehash_list_LDADD.
42215         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
42216         test_canonicalize_lgpl_LDADD.
42217         * modules/carray-list-tests (Makefile.am): New variable
42218         test_carray_list_LDADD.
42219         * modules/dirname-tests (Makefile.am): New variable
42220         test_dirname_LDADD.
42221         * modules/linked-list-tests (Makefile.am): New variable
42222         test_linked_list_LDADD.
42223         * modules/linkedhash-list-tests (Makefile.am): New variable
42224         test_linkedhash_list_LDADD.
42225         * modules/rbtree-list-tests (Makefile.am): New variable
42226         test_rbtree_list_LDADD.
42227         * modules/rbtree-oset-tests (Makefile.am): New variable
42228         test_rbtree_oset_LDADD.
42229         * modules/rbtreehash-list-tests (Makefile.am): New variable
42230         test_rbtreehash_list_LDADD.
42231         * modules/xvasprintf-tests (Makefile.am): New variable
42232         test_xvasprintf_LDADD.
42233         Reported by Eric Blake.
42234
42235 2007-04-03  Eric Blake  <ebb9@byu.net>
42236
42237         * DEPENDENCIES: Weaken m4 requirements.
42238
42239 2007-04-03  Bruno Haible  <bruno@clisp.org>
42240
42241         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
42242         * modules/isnanl-tests (configure.ac): Likewise.
42243
42244 2007-04-03  Ben Pfaff  <blp@gnu.org>
42245
42246         * modules/iconv_open: Add $(srcdir)/ to source directory
42247         references in Makefile fragments that call gperf, to fix VPATH
42248         builds.
42249
42250 2007-04-03  Bruno Haible  <bruno@clisp.org>
42251
42252         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
42253         * lib/ldexpl.c: Undo last change.
42254
42255 2007-04-03  Bruno Haible  <bruno@clisp.org>
42256
42257         * modules/printf-frexpl (Depends-on): Undo last change.
42258         (Files): Add m4/ldexpl.m4.
42259
42260 2007-04-03  Bruno Haible  <bruno@clisp.org>
42261
42262         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
42263         * modules/isnanl (Link): New section.
42264
42265         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
42266         * modules/frexp (Link): New section.
42267
42268         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
42269         * modules/frexpl (Link): New section.
42270
42271         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
42272         * modules/ldexpl (Link): New section.
42273
42274 2007-04-03  Bruno Haible  <bruno@clisp.org>
42275
42276         * modules/TEMPLATE-EXTENDED: New file.
42277         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
42278
42279 2007-04-03  Bruno Haible  <bruno@clisp.org>
42280
42281         * DEPENDENCIES: New file.
42282         Suggested by Simon Josefsson.
42283
42284 2007-04-03  Bruno Haible  <bruno@clisp.org>
42285
42286         * doc/gnulib.texi: Escape @.
42287
42288 2007-04-03  James Youngman  <jay@gnu.org>
42289         and Paul Eggert  <eggert@cs.ucla.edu>
42290
42291         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
42292         birthtime on all systems that have birthtime, not just those which
42293         use st_birthtimensec rather than st_birthtim.  Putting zero in
42294         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
42295         that the birth time is not available for files on an NFS mount.
42296
42297 2007-04-03  Simon Josefsson  <simon@josefsson.org>
42298
42299         * modules/memxor: Move back from crypto/, suggested by Bruno.
42300         * modules/crypto/hmac-sha1: Fix memxor dependency.
42301
42302         * modules/crypto/gc: Moved from ../.
42303
42304 2007-04-02  Eric Blake  <ebb9@byu.net>
42305
42306         * lib/ldexpl.c (includes): Avoid libm.
42307
42308         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
42309
42310 2007-04-02  Bruno Haible  <bruno@clisp.org>
42311
42312         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
42313         on IRIX.
42314
42315 2007-04-02  Bruno Haible  <bruno@clisp.org>
42316
42317         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
42318         x86 or x86_64 platforms running MacOS X.
42319         Reported by Ryan Schmidt <@ryandesign.com>.
42320
42321 2007-04-02  Bruno Haible  <bruno@clisp.org>
42322
42323         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
42324         i386.
42325
42326 2007-04-01  Simon Josefsson  <simon@josefsson.org>
42327
42328         * modules/crypto/arcfour: Moved from ../.
42329         * modules/crypto/arcfour-tests: Moved from ../.
42330         * modules/crypto/arctwo: Moved from ../.
42331         * modules/crypto/arctwo-tests: Moved from ../.
42332         * modules/crypto/des: Moved from ../.
42333         * modules/crypto/des-tests: Moved from ../.
42334         * modules/crypto/gc-arcfour: Moved from ../.
42335         * modules/crypto/gc-arcfour-tests: Moved from ../.
42336         * modules/crypto/gc-arctwo: Moved from ../.
42337         * modules/crypto/gc-arctwo-tests: Moved from ../.
42338         * modules/crypto/gc-des: Moved from ../.
42339         * modules/crypto/gc-des-tests: Moved from ../.
42340         * modules/crypto/gc-hmac-md5: Moved from ../.
42341         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
42342         * modules/crypto/gc-hmac-sha1: Moved from ../.
42343         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
42344         * modules/crypto/gc-md2: Moved from ../.
42345         * modules/crypto/gc-md2-tests: Moved from ../.
42346         * modules/crypto/gc-md4: Moved from ../.
42347         * modules/crypto/gc-md4-tests: Moved from ../.
42348         * modules/crypto/gc-md5: Moved from ../.
42349         * modules/crypto/gc-md5-tests: Moved from ../.
42350         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
42351         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
42352         * modules/crypto/gc-random: Moved from ../.
42353         * modules/crypto/gc-rijndael: Moved from ../.
42354         * modules/crypto/gc-rijndael-tests: Moved from ../.
42355         * modules/crypto/gc-sha1: Moved from ../.
42356         * modules/crypto/gc-sha1-tests: Moved from ../.
42357         * modules/crypto/gc-tests: Moved from ../.
42358         * modules/crypto/hmac-md5: Moved from ../.
42359         * modules/crypto/hmac-md5-tests: Moved from ../.
42360         * modules/crypto/hmac-sha1: Moved from ../.
42361         * modules/crypto/hmac-sha1-tests: Moved from ../.
42362         * modules/crypto/md2: Moved from ../.
42363         * modules/crypto/md2-tests: Moved from ../.
42364         * modules/crypto/md4: Moved from ../.
42365         * modules/crypto/md4-tests: Moved from ../.
42366         * modules/crypto/md5: Moved from ../.
42367         * modules/crypto/md5-tests: Moved from ../.
42368         * modules/crypto/memxor: Moved from ../.
42369         * modules/crypto/rijndael: Moved from ../.
42370         * modules/crypto/rijndael-tests: Moved from ../.
42371         * modules/crypto/sha1: Moved from ../.
42372
42373 2007-03-30  James Youngman  <jay@gnu.org>
42374
42375         * tests/test-stat-time.c (prepare_test): use chmod() rather than
42376         rename() to change the ctime of a file (because ctime is unaffected
42377         by rename on jfs2 on AIX 5.1).
42378         (main): Start by doing cleanup, in case a previous run failed leaving
42379         test files behind.
42380
42381 2007-03-31  Bruno Haible  <bruno@clisp.org>
42382
42383         Support old proprietary implementations of iconv.
42384         * modules/iconv_open: New file.
42385         * lib/iconv_.h: New file.
42386         * m4/iconv_h.m4: New file.
42387         * lib/iconv_open.c: New file.
42388         * lib/iconv_open-aix.gperf: New file.
42389         * lib/iconv_open-hpux.gperf: New file.
42390         * lib/iconv_open-irix.gperf: New file.
42391         * lib/iconv_open-osf.gperf: New file.
42392         * m4/iconv_open.m4: New file.
42393         * modules/linebreak (Depends-on): Add iconv_open.
42394         * modules/striconv (Depends-on): Likewise.
42395         * modules/striconveh (Depends-on): Likewise.
42396         * modules/unicodeio (Depends-on): Likewise.
42397         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
42398         (iconv_t)(-1).
42399         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
42400         conversion if cd is (iconv_t)(-1).
42401         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
42402         is not possible.
42403
42404 2007-03-31  Bruno Haible  <bruno@clisp.org>
42405
42406         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42407         work on Solaris either. Protect also second use of "autodetect_jp".
42408
42409 2007-03-31  Bruno Haible  <bruno@clisp.org>
42410
42411         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
42412         the function is not present.
42413
42414 2007-03-31  Bruno Haible  <bruno@clisp.org>
42415
42416         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
42417         the function is not present.
42418
42419 2007-03-31  Bruno Haible  <bruno@clisp.org>
42420
42421         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
42422         a bug in HP-UX iconv_open().
42423
42424 2007-03-31  Bruno Haible  <bruno@clisp.org>
42425
42426         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
42427         (Mathematics <math.h>): New section, add fpieee.
42428         (Input/output <stdio.h>): Add fseterr.
42429         (Mathematics <math.h>): New section, add printf-frexp.
42430         (Container data structures): Add sublist.
42431         (Core language properties): Add fpucw, inline.
42432         (Functions for greatest-width integer types <inttypes.h>): Add
42433         imaxabs, imaxdiv, inttypes.
42434         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
42435         isnanl-nolibm, ldexp.
42436         (Mathematics <math.h>): New section, add printf-frexpl.
42437         (Support for systems lacking POSIX:2001): Add fprintf-posix,
42438         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
42439         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
42440         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
42441         (Unicode string functions): Add unistr/u*-mbtoucr.
42442         (Java): Add javacomp-script, javaexec-script.
42443         (C#): Add csharpcomp-script, csharpexec-script.
42444         (Support for building libraries and executables): Add havelib,
42445         relocatable-*.
42446         (Support for maintaining and releasing projects): Renamed from
42447         'Support for maintaining and release projects'. Add announce-gen.
42448
42449 2007-03-31  Bruno Haible  <bruno@clisp.org>
42450
42451         * README: Talk primarily about git.
42452         (git and CVS): Renamed from CVS.
42453         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
42454         gnulib is available through git.
42455         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
42456
42457 2007-03-30  Bruno Haible  <bruno@clisp.org>
42458
42459         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
42460         * lib/poll_.h: Likewise.
42461         * lib/stat_.h: Likewise.
42462         * lib/sys_time_.h: Likewise.
42463         * lib/sysexit_.h: Likewise.
42464         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
42465         * lib/stdbool_.h: Likewise.
42466         * lib/byteswap_.h: Add double-inclusion guard.
42467
42468 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
42469
42470         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
42471
42472 2007-03-30  Karl Berry  <karl@gnu.org>
42473
42474         * config/srclist-update: double space after USA in the license
42475         substitution, since that's how it's usually (?) written.
42476
42477 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42478
42479         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
42480         reported by Bruno Haible.
42481
42482 2007-03-29  Bruno Haible  <bruno@clisp.org>
42483
42484         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
42485         a bug in AIX iconv().
42486
42487 2007-03-29  Bruno Haible  <bruno@clisp.org>
42488
42489         * modules/ldexpl-tests: New file.
42490         * tests/test-ldexpl.c: New file.
42491
42492 2007-03-29  Bruno Haible  <bruno@clisp.org>
42493
42494         * lib/ldexpl.c: Include fpucw.h.
42495         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
42496         multiplication.
42497         * modules/ldexpl (Depends-on): Add fpucw.
42498
42499 2007-03-29  Bruno Haible  <bruno@clisp.org>
42500
42501         * modules/ldexpl: New file.
42502         * m4/ldexpl.m4: New file.
42503         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
42504         set.
42505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
42506         REPLACE_LDEXPL.
42507         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
42508         REPLACE_LDEXPL.
42509         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42510         gl_FUNC_LDEXPL_WORKS.
42511         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
42512         * modules/mathl (Files): Remove lib/ldexpl.c.
42513         (Depends-on): Add ldexpl.
42514
42515 2007-03-29  Bruno Haible  <bruno@clisp.org>
42516
42517         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
42518
42519 2007-03-29  Bruno Haible  <bruno@clisp.org>
42520
42521         * tests/test-striconveh.c (main): Don't assume that a direct conversion
42522         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
42523         and possibly also HP-UX.
42524         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
42525         work on AIX, IRIX, HP-UX, OSF/1.
42526         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42527         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42528         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42529         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42530         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
42531         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42532
42533 2007-03-29  Bruno Haible  <bruno@clisp.org>
42534
42535         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
42536
42537 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42538
42539         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
42540         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
42541
42542 2007-03-29  Eric Blake  <ebb9@byu.net>
42543
42544         * lib/acl-internal.h: Remove redundant include.
42545         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
42546         Cygwin when a file is locked.
42547
42548 2007-03-29  Bruno Haible  <bruno@clisp.org>
42549
42550         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
42551         file.
42552         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
42553
42554 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
42555
42556         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
42557         try to remove a parent directory if the child couldn't be removed
42558         (except for the first rmdir, which could fail because the child
42559         doesn't exist).  Problem reported by Jeff Blaine in
42560         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
42561
42562 2007-03-28  Bruno Haible  <bruno@clisp.org>
42563
42564         * lib/striconveh.c (utf8conv_carefully): New function.
42565         (mem_cd_iconveh_internal): Invoke it.
42566
42567 2007-03-28  Bruno Haible  <bruno@clisp.org>
42568
42569         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
42570         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
42571         input.
42572         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
42573         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
42574         unistr/u8-uctomb.
42575
42576 2007-03-28  Bruno Haible  <bruno@clisp.org>
42577
42578         * modules/unistr/u8-mbtoucr: New file.
42579         * lib/unistr/u8-mbtoucr.c: New file.
42580         * modules/unistr/u16-mbtoucr: New file.
42581         * lib/unistr/u16-mbtoucr.c: New file.
42582         * modules/unistr/u16-mbtoucr: New file.
42583         * lib/unistr/u16-mbtoucr.c: New file.
42584         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
42585
42586 2007-03-27  Simon Josefsson  <simon@josefsson.org>
42587             Bruno Haible  <bruno@clisp.org>
42588
42589         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
42590         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
42591         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
42592
42593         * m4/stdio_h.m4: Add stubs for vasprintf too.
42594
42595         * modules/stdio: Support vasprintf in sed command.
42596
42597         * modules/vasprintf: Depend on stdio for prototypes.  Remove
42598         vasprintf.h.  Add stdio module indicator.
42599
42600         * lib/stdio_.h: Declare asprintf and vasprintf, based on
42601         vasprintf.h.
42602
42603         * lib/vasprintf.h: File removed.
42604
42605         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
42606         * lib/vasprintf.c: Ditto.
42607         * lib/xvasprintf.c: Ditto.
42608         * tests/test-vasprintf-posix.c: Ditto.
42609         * tests/test-vasprintf.c: Ditto.
42610
42611 2007-03-27  Bruno Haible  <bruno@clisp.org>
42612
42613         Make vasnprintf multithread-safe.
42614         * lib/vasnprintf.c (decimal_point_char): New function.
42615         (VASNPRINTF): Use it.
42616         Suggested by Simon Josefsson.
42617
42618 2007-03-27  Eric Blake  <ebb9@byu.net>
42619
42620         Support sub-second birthtime on cygwin.
42621         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
42622         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
42623         (get_stat_birthtime): Also work with st_birthtim.
42624
42625 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
42626
42627         * lib/stat-time.h (USE_BIRTHTIME): Remove.
42628         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
42629         (get_stat_birthtime_ns): Do not try to use "spare" fields.
42630         (get_stat_birthtime_ns): Simplify compile-time tests.
42631         (get_stat_birthtime): Change the API to look like
42632         get_stat_mtime etc., except return a negative tv_nsec on error.
42633         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
42634         Don't check for "spare" fields.
42635         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
42636         or for struct stat.st_birthtime, as these tests aren't used.
42637         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
42638
42639 2007-03-27  Bruno Haible  <bruno@clisp.org>
42640
42641         * lib/stat-time.h: Include <sys/stat.h>.
42642
42643 2007-03-27  James Youngman  <jay@gnu.org>
42644
42645         * lib/stat-time.h (get_stat_birthtime): New function for
42646           retrieving st_birthtime as provided by UFS2 (hence *BSD).
42647         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
42648           and its variants.
42649         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
42650         * modules/stat-time-test: New file.
42651         * tests/test-stat-time.c: New test, devised by Bruno Haible.
42652
42653 2007-03-26  Bruno Haible  <bruno@clisp.org>
42654
42655         Better support of signalling NaNs.
42656         * lib/atanl.c: Include isnanl.h.
42657         (atanl): Perform test for NaN at the beginning of the function and
42658         through a call to isnanl.
42659         * lib/cosl.c: Include isnanl.h.
42660         (cosl): Perform test for NaN at the beginning of the function and
42661         through a call to isnanl.
42662         * lib/ldexpl.c: Include isnanl.h.
42663         (ldexpl): Perform test for NaN through a call to isnanl.
42664         * lib/logl.c: Include isnanl.h.
42665         (logl): Perform test for NaN at the beginning of the function and
42666         through a call to isnanl.
42667         * lib/sinl.c: Include isnanl.h.
42668         (sinl): Perform test for NaN at the beginning of the function and
42669         through a call to isnanl.
42670         * lib/sqrtl.c: Include isnanl.h.
42671         (sqrtl): Perform test for NaN at the beginning of the function and
42672         through a call to isnanl.
42673         * lib/tanl.c: Include isnanl.h.
42674         (tanl): Perform test for NaN at the beginning of the function and
42675         through a call to isnanl.
42676         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
42677         * modules/mathl (Depends-on): Add isnanl.
42678
42679 2007-03-26  Eric Blake  <ebb9@byu.net>
42680
42681         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
42682         regression in logic sense of previous patch.
42683
42684 2007-03-26  Bruno Haible  <bruno@clisp.org>
42685
42686         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
42687         unportable shell command "if ! ...".
42688         Reported by Ralf Wildenhues.
42689
42690 2007-03-25  Bruno Haible  <bruno@clisp.org>
42691
42692         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
42693         <sysexits.h> file, and only add EX_CONFIG.
42694         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
42695         absolute file name and whether it is sufficient. Substitute also
42696         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
42697         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
42698         ABSOLUTE_SYSEXITS_H into sysexits.h.
42699
42700 2007-03-25  Bruno Haible  <bruno@clisp.org>
42701
42702         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
42703         hints is NULL.
42704
42705 2007-03-25  Bruno Haible  <bruno@clisp.org>
42706
42707         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
42708         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
42709
42710 2007-03-25  Bruno Haible  <bruno@clisp.org>
42711
42712         * lib/vasnprintf.c: Include langinfo.h.
42713         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
42714         multithread-safe.
42715         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
42716         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
42717         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42718         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42719         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42720         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42721         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42722         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
42723         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42724         Reported by Simon Josefsson.
42725
42726 2007-03-25  Bruno Haible  <bruno@clisp.org>
42727
42728         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
42729         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
42730         * modules/vasnprintf (Depends-on): Add stdint.
42731
42732 2007-03-25  Bruno Haible  <bruno@clisp.org>
42733
42734         * modules/fpieee: New file.
42735         * m4/fpieee.m4: New file.
42736         * modules/isnan-nolibm (Depends-on): Add fpieee.
42737         * modules/isnanl-nolibm (Depends-on): Add fpieee.
42738         * modules/isnanl (Depends-on): Add fpieee.
42739
42740 2007-03-25  Bruno Haible  <bruno@clisp.org>
42741
42742         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
42743
42744 2007-03-25  Bruno Haible  <bruno@clisp.org>
42745
42746         Avoid test failures on IRIX 6.5.
42747         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
42748         (main): Use it.
42749         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
42750         macros.
42751         (main): Use them.
42752
42753 2007-03-25  Bruno Haible  <bruno@clisp.org>
42754
42755         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
42756         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
42757         exists but doesn't work.
42758         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
42759         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
42760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
42761         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
42762
42763 2007-03-25  Bruno Haible  <bruno@clisp.org>
42764
42765         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
42766         returns inf. Needed on IRIX 6.5.
42767
42768 2007-03-25  Bruno Haible  <bruno@clisp.org>
42769
42770         * tests/test-frexpl.c: Include isnanl-nolibm.h.
42771         (main): Use isnanl instead of x != x idiom.
42772         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
42773
42774         * tests/test-frexp.c: Include isnan.h.
42775         (main): Use isnan instead of x != x idiom.
42776         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
42777
42778 2007-03-25  Bruno Haible  <bruno@clisp.org>
42779
42780         * tests/test-frexp.c (NaN): New function/macro.
42781         (main): Use it instead of 0.0 / 0.0.
42782         * tests/test-isnan.c (NaN): New function/macro.
42783         (main): Use it instead of 0.0 / 0.0.
42784         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
42785         (test_function): Use it instead of 0.0 / 0.0.
42786         * tests/test-vasprintf-posix.c (NaN): New function/macro.
42787         (test_function): Use it instead of 0.0 / 0.0.
42788         * tests/test-snprintf-posix.h (NaN): New function/macro.
42789         (test_function): Use it instead of 0.0 / 0.0.
42790         * tests/test-sprintf-posix.h (NaN): New function/macro.
42791         (test_function): Use it instead of 0.0 / 0.0.
42792         * tests/test-fprintf-posix.h (NaN): New function/macro.
42793         (test_function): Use it instead of 0.0 / 0.0.
42794         * tests/test-printf-posix.h (NaN): New function/macro.
42795         (test_function): Use it instead of 0.0 / 0.0.
42796
42797         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
42798
42799 2007-03-25  Bruno Haible  <bruno@clisp.org>
42800
42801         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
42802
42803 2007-03-25  Bruno Haible  <bruno@clisp.org>
42804
42805         * lib/regexec.c (merge_state_with_log): Make static.
42806
42807 2007-03-25  Bruno Haible  <bruno@clisp.org>
42808
42809         * lib/trigl.c (kernel_rem_pio2): Make static.
42810
42811 2007-03-25  Bruno Haible  <bruno@clisp.org>
42812
42813         * lib/sincosl.c (sincosl_table): Make static.
42814
42815 2007-03-25  Bruno Haible  <bruno@clisp.org>
42816
42817         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
42818         if the compiler does not support C99.
42819
42820 2007-03-25  Bruno Haible  <bruno@clisp.org>
42821
42822         * modules/time (Makefile.am): Ensure all rule action lines start with a
42823         tab.
42824
42825 2007-03-24  Bruno Haible  <bruno@clisp.org>
42826
42827         * modules/tsearch-tests: New file.
42828         * tests/test-tsearch.sh: New file.
42829         * tests/test-tsearch.c: New file, mostly copied from glibc.
42830
42831         * modules/search-tests: New file.
42832         * tests/test-search.c: New file.
42833
42834         * modules/search: New file.
42835         * lib/search_.h: New file, incorporating lib/tsearch.h.
42836         * m4/search_h.m4: New file.
42837         * lib/tsearch.h: Remove file.
42838         * lib/tsearch.c: Include search.h instead of tsearch.h.
42839         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
42840         HAVE_TSEARCH.
42841         * modules/tsearch (Files): Remove lib/tsearch.h.
42842         (Depends-on): Add search.
42843         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
42844         (Include): Change tsearch.h into search.h.
42845
42846 2007-03-24  Bruno Haible  <bruno@clisp.org>
42847
42848         * modules/fpucw: New file.
42849         * lib/fpucw.h: New file.
42850         * lib/frexp.c: Include fpucw.h.
42851         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42852         (FUNC): Use them.
42853         * lib/printf-frexp.c: Include fpucw.h.
42854         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42855         (FUNC): Use them.
42856         * lib/vasnprintf.c: Include fpucw.h.
42857         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
42858         'long double' calculations.
42859         * tests/test-frexpl.c: Include fpucw.h.
42860         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42861         * tests/test-printf-frexpl.c: Include fpucw.h.
42862         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42863         * modules/frexpl (Depends-on): Add fpucw.
42864         * modules/printf-frexpl (Depends-on): Likewise.
42865         * modules/fprintf-posix (Depends-on): Likewise.
42866         * modules/snprintf-posix (Depends-on): Likewise.
42867         * modules/sprintf-posix (Depends-on): Likewise.
42868         * modules/vasnprintf-posix (Depends-on): Likewise.
42869         * modules/vasprintf-posix (Depends-on): Likewise.
42870         * modules/vfprintf-posix (Depends-on): Likewise.
42871         * modules/vsnprintf-posix (Depends-on): Likewise.
42872         * modules/vsprintf-posix (Depends-on): Likewise.
42873         * modules/frexpl-tests (Depends-on): Likewise.
42874         * modules/printf-frexpl-tests (Depends-on): Likewise.
42875
42876 2007-03-24  Bruno Haible  <bruno@clisp.org>
42877
42878         * lib/float+.h: New file.
42879         * lib/isnan.c: Include float+.h.
42880         (SIZE): New macro.
42881         (FUNC): Compare only SIZE bytes of the value.
42882         * lib/vasnprintf.c: Include float+.h.
42883         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
42884         SIZEOF_LDBL or SIZEOF_DBL bytes.
42885         * modules/isnan-nolibm (Files): Add lib/float+.h.
42886         * modules/isnanl-nolibm (Files): Add lib/float+.h.
42887         * modules/isnanl (Files): Add lib/float+.h.
42888         * modules/vasnprintf (Files): Add lib/float+.h.
42889
42890 2007-03-24  Bruno Haible  <bruno@clisp.org>
42891
42892         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
42893         include isnanl-nolibm.h.
42894
42895 2007-03-24  Bruno Haible  <bruno@clisp.org>
42896
42897         * tests/test-read-file.c (main): Don't produce spurious output for
42898         expected situations. Make the test fail if it encountered unexpected
42899         results.
42900
42901 2007-03-24  Bruno Haible  <bruno@clisp.org>
42902
42903         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
42904         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
42905
42906 2007-03-24  Bruno Haible  <bruno@clisp.org>
42907
42908         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
42909
42910 2007-03-24  Bruno Haible  <bruno@clisp.org>
42911
42912         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
42913         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
42914
42915         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
42916         * modules/utf8-ucs4: Turn into a symbolic link to module
42917         unistr/u8-mbtouc.
42918
42919         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
42920         utf8-ucs4-unsafe.
42921         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
42922         unistr/u8-mbtouc-unsafe.
42923
42924         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
42925         * modules/utf16-ucs4: Turn into a symbolic link to module
42926         unistr/u16-mbtouc.
42927
42928         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
42929         utf16-ucs4-unsafe.
42930         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
42931         unistr/u16-mbtouc-unsafe.
42932
42933         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
42934         * modules/ucs4-utf8: Turn into a symbolic link to module
42935         unistr/u8-ubtomb.
42936
42937         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
42938         * modules/ucs4-utf16: Turn into a symbolic link to module
42939         unistr/u16-ubtomb.
42940
42941 2007-03-24  Bruno Haible  <bruno@clisp.org>
42942
42943         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
42944         Enable the function only if HAVE_INLINE.
42945         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
42946         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
42947         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
42948         Enable the function only if HAVE_INLINE.
42949         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
42950         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
42951         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
42952         Enable the function only if HAVE_INLINE.
42953         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
42954         Enable the function only if HAVE_INLINE.
42955         * modules/utf8-ucs4: Update.
42956         * modules/utf8-ucs4-unsafe: Update.
42957         * modules/utf16-ucs4: Update.
42958         * modules/utf16-ucs4-unsafe: Update.
42959         * modules/ucs4-utf8: Update.
42960         * modules/ucs4-utf16: Update.
42961
42962 2007-03-24  Bruno Haible  <bruno@clisp.org>
42963
42964         * lib/utf8-ucs4.h: Remove file.
42965         * lib/utf8-ucs4-unsafe.h: Remove file.
42966         * lib/utf16-ucs4.h: Remove file.
42967         * lib/utf16-ucs4-unsafe.h: Remove file.
42968         * lib/ucs4-utf8.h: Remove file.
42969         * lib/ucs4-utf16.h: Remove file.
42970         * lib/unistr.h: Include their previous contents.
42971         * m4/utf-ucs4.m4: Remove file.
42972         * m4/ucs4-utf.m4: Remove file.
42973         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
42974         (Depends-on): Add unistr/base.
42975         (configure.ac): Remove gl_UTF_UCS4.
42976         (Makefile.am): Update.
42977         (Include): Change to unistr.h.
42978         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
42979         (Depends-on): Add unistr/base.
42980         (configure.ac): Remove gl_UTF_UCS4.
42981         (Makefile.am): Update.
42982         (Include): Change to unistr.h.
42983         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
42984         (Depends-on): Add unistr/base.
42985         (configure.ac): Remove gl_UTF_UCS4.
42986         (Makefile.am): Update.
42987         (Include): Change to unistr.h.
42988         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
42989         (Depends-on): Add unistr/base.
42990         (configure.ac): Remove gl_UTF_UCS4.
42991         (Makefile.am): Update.
42992         (Include): Change to unistr.h.
42993         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
42994         (Depends-on): Add unistr/base.
42995         (configure.ac): Remove gl_UCS4_UTF.
42996         (Makefile.am): Update.
42997         (Include): Change to unistr.h.
42998         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
42999         (Depends-on): Add unistr/base.
43000         (configure.ac): Remove gl_UCS4_UTF.
43001         (Makefile.am): Update.
43002         (Include): Change to unistr.h.
43003         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
43004         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
43005         utf8-ucs4-unsafe.h.
43006         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
43007         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
43008         utf16-ucs4-unsafe.h.
43009         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
43010         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
43011         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
43012         * lib/unistr/u8-strchr.c: Likewise.
43013         * lib/unistr/u8-strrchr.c: Likewise.
43014         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
43015         * lib/unistr/u16-strchr.c: Likewise.
43016         * lib/unistr/u16-strrchr.c: Likewise.
43017         * lib/striconveh.c: Update.
43018         * lib/linebreak.c: Update.
43019
43020 2007-03-24  Bruno Haible  <bruno@clisp.org>
43021
43022         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
43023         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
43024
43025 2007-03-22  Bruno Haible  <bruno@clisp.org>
43026
43027         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
43028
43029 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
43030
43031         * MODULES.html.sh (File system functions): New module write-any-file.
43032         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
43033         * m4/write-any-file.m4: New files.
43034
43035 2007-03-23  Eric Blake  <ebb9@byu.net>
43036
43037         * gnulib-tool: Rearrange space-tab sequences, since some editors
43038         like to eat them.
43039
43040 2007-03-23  Eric Blake  <ebb9@byu.net>
43041
43042         * lib/version-etc.c (version_etc_va): Update license wording to
43043         be more concise.  Recommended by Richard Stallman.
43044
43045 2007-03-22  Bruno Haible  <bruno@clisp.org>
43046
43047         * lib/poll.c (MSG_PEEK): New fallback definition.
43048
43049 2007-03-22  Bruno Haible  <bruno@clisp.org>
43050
43051         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
43052         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
43053         (main): Update.
43054         Fixes a compilation error on BeOS.
43055
43056 2007-03-22  Bruno Haible  <bruno@clisp.org>
43057
43058         * modules/frexpl-tests: New file.
43059         * tests/test-frexpl.c: New file.
43060
43061         * modules/frexpl: New file.
43062         * m4/frexpl.m4: New file.
43063         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
43064         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
43065         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
43066         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
43067         (Depends-on): Add frexpl. Remove isnanl-nolibm.
43068         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
43069
43070 2007-03-22  Bruno Haible  <bruno@clisp.org>
43071
43072         * lib/frexpl.c: Share code with lib/frexp.c.
43073         * modules/mathl (Files): Add lib/frexp.c.
43074         (Depends-on): Add isnanl-nolibm.
43075
43076 2007-03-22  Bruno Haible  <bruno@clisp.org>
43077
43078         * modules/printf-frexp (Files): Add m4/frexp.m4.
43079         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
43080         only if the found frexp function actually works.
43081
43082 2007-03-22  Bruno Haible  <bruno@clisp.org>
43083
43084         * lib/frexp.c: Remove older implementation that uses divisions.
43085
43086 2007-03-21  Bruno Haible  <bruno@clisp.org>
43087
43088         * modules/frexp-tests: New file.
43089         * tests/test-frexp.c: New file.
43090
43091         * modules/frexp: New file.
43092         * lib/frexp.c: New file.
43093         * m4/frexp.m4: New file.
43094         * lib/math_.h (frexp): New declaration.
43095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
43096         REPLACE_FREXP.
43097         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
43098
43099 2007-03-21  Bruno Haible  <bruno@clisp.org>
43100
43101         * modules/isnanl-tests: New file.
43102         * tests/test-isnanl.c: New file.
43103
43104         * modules/isnanl: New file.
43105         * lib/isnanl.h: New file.
43106         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
43107         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
43108         gl_FUNC_ISNANL_WORKS.
43109         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
43110         New macros.
43111
43112 2007-03-21  Bruno Haible  <bruno@clisp.org>
43113
43114         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
43115         lib/isnanl.h.
43116         (Include): Update.
43117         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
43118         * lib/vasnprintf.c: Update.
43119         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
43120         tests/test-isnanl.h, remove tests/test-isnanl.c.
43121         (Makefile.am): Update.
43122         * tests/test-isnanl-nolibm.c: New file.
43123         * tests/test-isnanl.h: New file.
43124         * tests/test-isnanl.c: Remove file.
43125
43126 2007-03-21  Jim Meyering  <jim@meyering.net>
43127
43128         When trying to open ".", treat ESTALE like EACCES.
43129         * lib/savewd.c (savewd_save): Resort to forking not just upon
43130         failure with EACCES, but also when errno is ESTALE.
43131
43132 2007-03-20  Bruno Haible  <bruno@clisp.org>
43133
43134         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
43135         Needed on AIX 5.1. Reported by Matthew Woehlke.
43136
43137 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43138
43139         Suggestions by Bruno Haible:
43140         * lib/acl-internal.h: Include "gettext.h" rather than rolling
43141         our own.
43142         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
43143         * modules/acl (Depends-on): Add gettext.
43144
43145 2007-03-19  Bruno Haible  <bruno@clisp.org>
43146
43147         * modules/iconvme: Remove file.
43148         * lib/iconvme.h: Remove file.
43149         * lib/iconvme.c: Remove file.
43150         * m4/iconvme.m4: Remove file.
43151
43152 2007-03-19  Bruno Haible  <bruno@clisp.org>
43153
43154         * doc/relocatable-maint.texi: Break long shell script line.
43155         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43156
43157 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43158
43159         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
43160         handle file_has_acl.
43161         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
43162         * lib/acl.c: Move header inclusions and related macro defns into
43163         lib/acl-internal.h.
43164         (S_ISLNK): Remove defn, since that's now done for us.
43165         (file_has_acl): Move to lib/file-has-acl.c.
43166         Call acl_trivial if available.  This is the crucial part of the fix.
43167         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
43168         shared within the library.  Rewrite a bit, partly to make it compatible
43169         with the GNU coding style.
43170         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
43171         Remove unnecessary double-quotes.
43172         Don't test for acl_to_text; the build will catch that.
43173         Replace acl_entries if it doesn't exist and it is needed.
43174         Check for -lsec and acl_trivial (as used on Solaris 10).
43175         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
43176         lib/file-has-acl.c.
43177         (Depends-on): Add sys_stat, for S_ISLNK.
43178
43179 2007-03-19  Ben Pfaff  <blp@gnu.org>
43180
43181         * doc/gnulib.texi: Fix typos.
43182         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
43183
43184 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
43185
43186         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
43187         If size is zero here, buf must be zero.
43188
43189 2007-03-19  Simon Josefsson  <simon@josefsson.org>
43190
43191         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
43192         <bruno@clisp.org>.
43193
43194 2007-03-18  Bruno Haible  <bruno@clisp.org>
43195
43196         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
43197         Suggested by Eric Blake.
43198
43199 2007-03-18  Ben Pfaff  <blp@gnu.org>
43200
43201         * doc/relocatable.texi: Recommend using as prefix a directory
43202         that does not exist and will never be created.  Based on
43203         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
43204         and others.
43205
43206 2007-03-17  Bruno Haible  <bruno@clisp.org>
43207
43208         * lib/fchownat.c: Include lchown.h.
43209
43210 2007-03-17  Bruno Haible  <bruno@clisp.org>
43211
43212         Fix endless loop when the given allocated size was > INT_MAX.
43213         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
43214         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
43215         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
43216         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
43217         * lib/sprintf.c (sprintf): Likewise.
43218
43219 2007-03-17  Bruno Haible  <bruno@clisp.org>
43220
43221         * tests/test-argp-2.sh (func_compare): Output a context diff.
43222
43223 2007-03-17  Bruno Haible  <bruno@clisp.org>
43224
43225         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
43226         locale's decimal-point character.
43227
43228 2007-03-17  Bruno Haible  <bruno@clisp.org>
43229
43230         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
43231         before comparing it. Needed because on some platforms (e.g. x86) a
43232         'long double' occupies less bytes than sizeof (long double).
43233
43234 2007-03-17  Bruno Haible  <bruno@clisp.org>
43235
43236         * tests/test-crc.c (main): Make printf statements 64-bit clean.
43237         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
43238         * tests/test-getaddrinfo.c (simple): Likewise.
43239         * tests/test-read-file.c (main): Likewise.
43240
43241 2007-03-17  Bruno Haible  <bruno@clisp.org>
43242
43243         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
43244
43245 2007-03-17  Bruno Haible  <bruno@clisp.org>
43246
43247         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
43248         unused variable.
43249
43250 2007-03-17  Bruno Haible  <bruno@clisp.org>
43251
43252         * tests/test-c-strcasecmp.c: Include c-strcase.h.
43253         * tests/test-c-strncasecmp.c: Likewise.
43254
43255 2007-03-17  Bruno Haible  <bruno@clisp.org>
43256
43257         * modules/stdlib (Depends-on): Add unistd.
43258         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
43259         Needed for MacOS X 10.3.
43260
43261 2007-03-17  Bruno Haible  <bruno@clisp.org>
43262
43263         * lib/unistr/u-strdup.h: Include <stdlib.h>.
43264
43265 2007-03-17  Bruno Haible  <bruno@clisp.org>
43266
43267         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
43268
43269 2007-03-17  Bruno Haible  <bruno@clisp.org>
43270
43271         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
43272         to reflect files copied from gnulib (with or without modifications).
43273         Suggested by Jim Meyering.
43274
43275 2007-03-17  Eric Blake  <ebb9@byu.net>
43276
43277         * NEWS: Document stdlib change from 2007-02-18.
43278
43279 2007-03-17  Jim Meyering  <jim@meyering.net>
43280
43281         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
43282         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
43283         someone uses a name containing shell meta-characters.
43284         Reported by Alfred M. Szmidt.
43285
43286         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
43287
43288 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43289
43290         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
43291         and copy gettext configuration files only if configure.ac contains
43292         a use of AM_GNU_GETTEXT_VERSION.
43293
43294 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
43295
43296         * build-aux/bootstrap (gnulib_name): New variable.
43297         (gnulib_tool_options): Use it.
43298
43299 2007-03-13  Simon Josefsson  <simon@josefsson.org>
43300
43301         * tests/test-des.c: Use new namespace.
43302
43303 2007-03-15  Bruno Haible  <bruno@clisp.org>
43304
43305         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
43306         Reported by James Youngman <jay@gnu.org>.
43307
43308 2007-03-15  Bruno Haible  <bruno@clisp.org>
43309
43310         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
43311         declared prototype. Needed with cc on OSF/1 5.1.
43312
43313 2007-03-15  Bruno Haible  <bruno@clisp.org>
43314
43315         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
43316         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
43317         (struct gl_list_implementation): Add dispose_fn argument to the
43318         'create_empty', 'create' methods.
43319         (struct gl_list_impl_base): Add field 'dispose_fn'.
43320         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
43321         argument.
43322         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
43323         dispose_fn argument.
43324         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
43325         dispose_fn on the dropped values.
43326         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
43327         dispose_fn argument.
43328         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
43329         dropped values.
43330         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
43331         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43332         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
43333         (gl_tree_remove_node): Call dispose_fn on the dropped value.
43334         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
43335         argument.
43336         (gl_tree_list_free): Call dispose_fn on the dropped values.
43337         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
43338         the dropped values.
43339         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
43340         Add dispose_fn argument.
43341         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
43342         Call dispose_fn on the dropped values.
43343         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
43344         Add dispose_fn argument.
43345         (gl_sublist_create): Initialize the 'dispose_fn' field.
43346         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
43347         * tests/test-array_list.c (main): Update.
43348         * tests/test-carray_list.c (main): Update.
43349         * tests/test-avltree_list.c (main): Update.
43350         * tests/test-rbtree_list.c (main): Update.
43351         * tests/test-avltreehash_list.c (main): Update.
43352         * tests/test-rbtreehash_list.c (main): Update.
43353         * tests/test-linked_list.c (main): Update.
43354         * tests/test-linkedhash_list.c (main): Update.
43355         * tests/test-array_oset.c (main): Update.
43356
43357 2007-03-15  Bruno Haible  <bruno@clisp.org>
43358
43359         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
43360         (gl_oset_create_empty): Add dispose_fn argument.
43361         (struct gl_oset_implementation): Add dispose_fn argument to
43362         'create_empty' method.
43363         (struct gl_oset_impl_base): Add dispose_fn field.
43364         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
43365         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
43366         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
43367         values.
43368         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
43369         (gl_tree_oset_free): Call dispose_fn on the dropped values.
43370         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43371         dropped value.
43372         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
43373         dropped value.
43374         * tests/test-array_oset.c (main): Update.
43375         * tests/test-avltree_oset.c (main): Update.
43376         * tests/test-rbtree_oset.c (main): Update.
43377         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
43378
43379 2007-03-13  Bruno Haible  <bruno@clisp.org>
43380
43381         * tests/test-stdbool.c (i): Update after last patch.
43382
43383 2007-03-12  Bruno Haible  <bruno@clisp.org>
43384
43385         * lib/quotearg.c: Include <wctype.h> early, before the definition of
43386         the iswprint macro. Needed on Solaris 2.5.1.
43387
43388 2007-03-12  Bruno Haible  <bruno@clisp.org>
43389
43390         * tests/test-printf-frexp.c (main): Declare x as volatile.
43391
43392 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43393
43394         * doc/gnulib.texi (Build robot for gnulib): New section.
43395
43396 2007-03-12  Jim Meyering  <jim@meyering.net>
43397
43398         * build-aux/bootstrap: New file.
43399         * build-aux/bootstrap.conf: New file, from coreutils.
43400
43401 2007-03-11  Bruno Haible  <bruno@clisp.org>
43402
43403         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
43404
43405 2007-03-12  Simon Josefsson  <simon@josefsson.org>
43406
43407         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
43408         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
43409         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
43410
43411 2007-03-11  Bruno Haible  <bruno@clisp.org>
43412
43413         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
43414         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
43415
43416 2007-03-11  Bruno Haible  <bruno@clisp.org>
43417
43418         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
43419         formula. Needed for SunPRO C 5.0.
43420
43421 2007-03-11  Bruno Haible  <bruno@clisp.org>
43422
43423         * modules/long-options (Depends-on): Add getopt.
43424
43425 2007-03-11  Bruno Haible  <bruno@clisp.org>
43426
43427         * modules/modechange (Depends-on): Add stdbool.
43428
43429 2007-03-11  Bruno Haible  <bruno@clisp.org>
43430
43431         * modules/i-ring (Depends-on): Add stdbool.
43432
43433 2007-03-11  Bruno Haible  <bruno@clisp.org>
43434
43435         * modules/gc-des (Depends-on): Add stdbool.
43436
43437 2007-03-11  Bruno Haible  <bruno@clisp.org>
43438
43439         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
43440
43441 2007-03-11  Bruno Haible  <bruno@clisp.org>
43442
43443         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
43444
43445 2007-03-11  Bruno Haible  <bruno@clisp.org>
43446
43447         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
43448
43449 2007-03-11  Bruno Haible  <bruno@clisp.org>
43450
43451         * lib/vasnprintf.c (sprintf): Undefine.
43452
43453 2007-03-11  Bruno Haible  <bruno@clisp.org>
43454
43455         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
43456         initializers in SunPRO C and Compaq C compilers.
43457
43458 2007-03-11  Bruno Haible  <bruno@clisp.org>
43459
43460         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
43461         decrementing code ANSI C compliant.
43462
43463 2007-03-11  Bruno Haible  <bruno@clisp.org>
43464
43465         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
43466         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
43467
43468 2007-03-11  Bruno Haible  <bruno@clisp.org>
43469
43470         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
43471         <stdbool.h> substitute doesn't pass.
43472
43473 2007-03-11  Bruno Haible  <bruno@clisp.org>
43474
43475         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
43476
43477 2007-03-11  Bruno Haible  <bruno@clisp.org>
43478
43479         * gnulib-tool (func_create_megatestdir): Create also an autobuild
43480         script, for submission to autobuild.josefsson.org.
43481
43482 2007-03-10  Bruno Haible  <bruno@clisp.org>
43483
43484         * modules/canonicalize-lgpl-tests: New file.
43485         * tests/test-canonicalize-lgpl.sh: New file.
43486         * tests/test-canonicalize-lgpl.c: New file.
43487
43488         * modules/c-strcase-tests: New file.
43489         * tests/test-c-strcase.sh: New file.
43490         * tests/test-c-strcasecmp.c: New file.
43491         * tests/test-c-strncasecmp.c: New file.
43492
43493         * modules/atexit-tests: New file.
43494         * tests/test-atexit.sh: New file.
43495         * tests/test-atexit.c: New file.
43496
43497 2007-03-10  Bruno Haible  <bruno@clisp.org>
43498
43499         * tests/test-binary-io.sh: Use temporary filenames that are not so
43500         likely to clash with those of other tests (in a parallel make).
43501         * tests/test-binary-io.c: Likewise.
43502
43503 2007-03-10  Bruno Haible  <bruno@clisp.org>
43504
43505         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
43506         fallback; use #error instead.
43507         Suggested by Simon Josefsson.
43508
43509 2007-03-10  Bruno Haible  <bruno@clisp.org>
43510
43511         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
43512         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
43513         first and the last.
43514
43515 2007-03-10  Bruno Haible  <bruno@clisp.org>
43516
43517         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
43518
43519 2007-03-10  Bruno Haible  <bruno@clisp.org>
43520
43521         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
43522         "make distcheck".
43523         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
43524         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
43525         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
43526
43527 2007-03-10  Bruno Haible  <bruno@clisp.org>
43528
43529         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
43530         variable.
43531         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
43532         variable.
43533
43534 2007-03-09  Eric Blake  <ebb9@byu.net>
43535         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
43536
43537         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
43538         types are not being provided by gnulib.
43539         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
43540         types are supported.
43541
43542 2007-03-10  Bruno Haible  <bruno@clisp.org>
43543
43544         * lib/stdio_.h (__attribute__): New macro.
43545         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
43546         vsprintf): Specify __attribute__ __format__ for GCC.
43547         Suggested by Eric Blake.
43548
43549 2007-03-09  Bruno Haible  <bruno@clisp.org>
43550
43551         * modules/printf-posix-tests: New file.
43552         * tests/test-printf-posix.sh: New file.
43553         * tests/test-printf-posix.c: New file.
43554
43555         * modules/printf-posix: New file.
43556         * lib/printf.c: New file.
43557         * m4/printf-posix-rpl.m4: New file.
43558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
43559         REPLACE_PRINTF.
43560         * lib/stdio_.h (printf): New declaration.
43561         (format, __format__, ____printf____, ____scanf____, ____strftime____,
43562         ____strfmon____): New macros.
43563         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
43564         REPLACE_PRINTF.
43565
43566 2007-03-09  Bruno Haible  <bruno@clisp.org>
43567
43568         * tests/test-vasnprintf-posix2.sh: New file.
43569         * tests/test-vasnprintf-posix2.c: New file.
43570         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
43571         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43572         (Makefile.am): Activate test-vasnprintf-posix2.sh.
43573
43574         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
43575         a locale dependent decimal point, rather than always '.'.
43576
43577 2007-03-09  Eric Blake  <ebb9@byu.net>
43578
43579         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
43580         spite of platforms like Tandem/NSK that define it to -1.
43581
43582 2007-03-08  Bruno Haible  <bruno@clisp.org>
43583
43584         * modules/vprintf-posix-tests: New file.
43585         * tests/test-vprintf-posix.sh: New file.
43586         * tests/test-vprintf-posix.c: New file.
43587         * tests/test-printf-posix.h: New file.
43588
43589         * modules/vprintf-posix: New file.
43590         * lib/vprintf.c: New file.
43591         * m4/vprintf-posix.m4: New file.
43592         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
43593         REPLACE_VPRINTF.
43594         * lib/stdio_.h (vprintf): New declaration.
43595         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
43596         REPLACE_VPRINTF.
43597
43598 2007-03-08  Bruno Haible  <bruno@clisp.org>
43599
43600         * modules/fprintf-posix-tests: New file.
43601         * tests/test-fprintf-posix.sh: New file.
43602         * tests/test-fprintf-posix.c: New file.
43603
43604         * modules/fprintf-posix: New file.
43605         * lib/fprintf.c: New file.
43606         * m4/fprintf-posix.m4: New file.
43607         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
43608         REPLACE_FPRINTF.
43609         * lib/stdio_.h (fprintf): New declaration.
43610         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
43611         REPLACE_FPRINTF.
43612
43613 2007-03-08  Bruno Haible  <bruno@clisp.org>
43614
43615         * modules/vfprintf-posix-tests: New file.
43616         * tests/test-vfprintf-posix.sh: New file.
43617         * tests/test-vfprintf-posix.c: New file.
43618         * tests/test-fprintf-posix.h: New file.
43619         * tests/test-fprintf-posix.out: New file.
43620
43621         * modules/vfprintf-posix: New file.
43622         * lib/vfprintf.c: New file.
43623         * m4/vfprintf-posix.m4: New file.
43624         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
43625         REPLACE_VFPRINTF.
43626         * lib/stdio_.h (vfprintf): New declaration.
43627         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
43628         REPLACE_VFPRINTF.
43629
43630 2007-03-08  Bruno Haible  <bruno@clisp.org>
43631
43632         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
43633
43634 2007-03-08  Bruno Haible  <bruno@clisp.org>
43635
43636         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
43637         instead of 'expr' invocations.
43638         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43639         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43640         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43641         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43642         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43643         Suggested by Paul Eggert.
43644
43645 2007-03-08  Bruno Haible  <bruno@clisp.org>
43646
43647         * modules/fseterr-tests: New file.
43648         * tests/test-fseterr.c: New file.
43649
43650         * modules/fseterr: New file.
43651         * lib/fseterr.h: New file.
43652         * lib/fseterr.c: New file.
43653
43654 2007-03-08  Bruno Haible  <bruno@clisp.org>
43655
43656         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
43657         * lib/getopt_.h: Likewise.
43658         * lib/mbswidth.h: Likewise.
43659         * lib/setenv.h: Likewise.
43660         * lib/vasnprintf.h: Likewise.
43661         * lib/vasprintf.h: Likewise.
43662         * lib/verror.h: Likewise.
43663         * lib/xsetenv.h: Likewise.
43664         * lib/xvasprintf.h: Likewise.
43665
43666 2007-03-08  Jim Meyering  <jim@meyering.net>
43667
43668         * users.txt: Add parted.
43669
43670         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
43671
43672 2007-03-07  Bruno Haible  <bruno@clisp.org>
43673
43674         * m4/printf.m4: Make the shell script snippets copy&pastable.
43675
43676 2007-03-02  Bruno Haible  <bruno@clisp.org>
43677
43678         * lib/netinet_in_.h: New file.
43679         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
43680         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
43681         * modules/netinet_in (Files): Add lib/netinet_in_.h.
43682         (Depends-on): Add absolute-header.
43683         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
43684         into netinet/in.h.
43685
43686 2007-03-03  Bruno Haible  <bruno@clisp.org>
43687
43688         * lib/sys_select_.h: New file.
43689         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
43690         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
43691         * modules/sys_select (Files): Add lib/sys_select_.h.
43692         (Depends-on): Add absolute-header.
43693         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
43694         into sys/select.h.
43695
43696 2007-03-02  Bruno Haible  <bruno@clisp.org>
43697
43698         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
43699         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
43700         values.
43701         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
43702         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
43703         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
43704         * modules/sys_socket (Depends-on): Add absolute-header.
43705         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
43706         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
43707         (Include): Remove requirement of inclusion of <sys/types.h>.
43708
43709 2007-03-02  Bruno Haible  <bruno@clisp.org>
43710
43711         * lib/byteswap_.h (bswap_32): Fix formula.
43712
43713 2007-03-06  Bruno Haible  <bruno@clisp.org>
43714
43715         * modules/sprintf-posix-tests: New file.
43716         * tests/test-sprintf-posix.c: New file.
43717
43718         * modules/sprintf-posix: New file.
43719         * lib/sprintf.c: New file.
43720         * m4/sprintf-posix.m4: New file.
43721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
43722         REPLACE_SPRINTF.
43723         * lib/stdio_.h (sprintf): New declaration.
43724         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
43725         REPLACE_SPRINTF.
43726
43727 2007-03-06  Bruno Haible  <bruno@clisp.org>
43728
43729         * modules/vsprintf-posix-tests: New file.
43730         * tests/test-vsprintf-posix.c: New file.
43731         * tests/test-sprintf-posix.h: New file.
43732
43733         * modules/vsprintf-posix: New file.
43734         * lib/vsprintf.c: New file.
43735         * m4/vsprintf-posix.m4: New file.
43736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
43737         REPLACE_VSPRINTF.
43738         * lib/stdio_.h (vsprintf): New declaration.
43739         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
43740         REPLACE_VSPRINTF.
43741
43742 2007-03-06  Bruno Haible  <bruno@clisp.org>
43743
43744         * modules/vsnprintf (Depend-on): Remove minmax.
43745
43746 2007-03-06  Bruno Haible  <bruno@clisp.org>
43747
43748         * modules/snprintf-posix-tests: New file.
43749         * tests/test-snprintf-posix.c: New file.
43750
43751         * modules/snprintf-posix: New file.
43752         * m4/snprintf-posix.m4: New file.
43753         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
43754         gl_FUNC_SNPRINTF.
43755         (gl_FUNC_SNPRINTF): Invoke it.
43756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
43757         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
43758         is set.
43759         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
43760
43761 2007-03-06  Bruno Haible  <bruno@clisp.org>
43762
43763         * modules/vsnprintf-posix-tests: New file.
43764         * tests/test-vsnprintf-posix.c: New file.
43765         * tests/test-snprintf-posix.h: New file.
43766
43767         * modules/vsnprintf-posix: New file.
43768         * m4/vsnprintf-posix.m4: New file.
43769         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
43770         gl_FUNC_VSNPRINTF.
43771         (gl_FUNC_VSNPRINTF): Invoke it.
43772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
43773         * lib/stdio_.h (vsnprintf): Define as a replacement if
43774         REPLACE_VSNPRINTF is set.
43775         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
43776
43777 2007-03-06  Bruno Haible  <bruno@clisp.org>
43778
43779         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
43780         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
43781
43782 2007-03-06  Bruno Haible  <bruno@clisp.org>
43783
43784         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
43785         (asinl): Declare also if HAVE_DECL_ASINL is set.
43786         (atanl): Declare also if HAVE_DECL_ATANL is set.
43787         (ceill): Declare also if HAVE_DECL_CEILL is set.
43788         (cosl): Declare also if HAVE_DECL_COSL is set.
43789         (expl): Declare also if HAVE_DECL_EXPL is set.
43790         (floorl): Declare also if HAVE_DECL_FLOORL is set.
43791         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
43792         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
43793         (logl): Declare also if HAVE_DECL_LOGL is set.
43794         (sinl): Declare also if HAVE_DECL_SINL is set.
43795         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
43796         (tanl): Declare also if HAVE_DECL_TANL is set.
43797         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
43798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
43799         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
43800         declaration of frexpl, ldexpl.
43801         * modules/printf-frexpl (Depends-on): Add math.
43802         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
43803
43804 2007-03-05  Bruno Haible  <bruno@clisp.org>
43805
43806         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
43807         frexpl and ldexpl are declared.
43808         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
43809
43810 2007-03-05  Bruno Haible  <bruno@clisp.org>
43811
43812         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
43813         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
43814
43815 2007-03-05  Bruno Haible  <bruno@clisp.org>
43816
43817         * lib/stdio_.h: Include <stddef.h>.
43818
43819 2007-03-05  Bruno Haible  <bruno@clisp.org>
43820
43821         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
43822
43823 2007-03-05  Bruno Haible  <bruno@clisp.org>
43824
43825         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
43826         NetBSD 4, from Ralf Wildenhues.
43827
43828 2007-03-04  Bruno Haible  <bruno@clisp.org>
43829
43830         * lib/vasprintf.h: Update #if logic for the case when the functions
43831         exist but are overridden.
43832
43833 2007-03-04  Bruno Haible  <bruno@clisp.org>
43834
43835         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
43836         implementations: glibc-2.4 and MacOS X 10.3.
43837         * tests/test-vasnprintf-posix.c (test_function): Test also the case
43838         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
43839         * tests/test-vasprintf-posix.c (test_function): Likewise.
43840
43841 2007-03-04  Bruno Haible  <bruno@clisp.org>
43842
43843         * modules/vasprintf-posix-tests: New file.
43844         * tests/test-vasprintf-posix.c: New file.
43845
43846         * modules/vasprintf-posix: New file.
43847         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
43848         defined.
43849         * m4/vasprintf-posix.m4: New file.
43850         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
43851         gl_FUNC_VASPRINTF.
43852         (gl_FUNC_VASPRINTF): Invoke it.
43853         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
43854         here.
43855         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
43856
43857 2007-03-04  Bruno Haible  <bruno@clisp.org>
43858
43859         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
43860         REPLACE_GETTIMEOFDAY.
43861         * modules/sys_time (Makefile.am): Likewise.
43862         * m4/sys_time_h.m4: Likewise.
43863         * m4/gettimeofday.m4: Likewise.
43864
43865 2007-03-04  Bruno Haible  <bruno@clisp.org>
43866
43867         * modules/vasnprintf-posix-tests: New file.
43868         * tests/test-vasnprintf-posix.c: New file.
43869
43870         * modules/vasnprintf-posix: New file.
43871         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
43872         printf-frexpl.h.
43873         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
43874         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
43875         REPLACE_VASNPRINTF is defined.
43876         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
43877         gl_FUNC_VASNPRINTF.
43878         (gl_FUNC_VASNPRINTF): Invoke it.
43879         * m4/vasnprintf-posix.m4: New file.
43880         * m4/printf.m4: New file.
43881
43882 2007-03-04  Bruno Haible  <bruno@clisp.org>
43883
43884         Compile progreloc.c only if --enable-relocatable is specified.
43885         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
43886         if --enable-relocatable was specified.
43887         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
43888         lib_SOURCES.
43889
43890 2007-03-04  Jim Meyering  <jim@meyering.net>
43891
43892         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
43893         Use it consistently, rather than enumerating errno constants.
43894
43895 2007-03-04  Bruno Haible  <bruno@clisp.org>
43896
43897         * modules/xvasprintf-tests: New file.
43898         * tests/test-xvasprintf.c: New file.
43899
43900         * modules/vasprintf-tests: New file.
43901         * tests/test-vasprintf.c: New file.
43902
43903         * modules/vasnprintf-tests: New file.
43904         * tests/test-vasnprintf.c: New file.
43905
43906         * modules/vsnprintf-tests: New file.
43907         * tests/test-vsnprintf.c: New file.
43908
43909         * modules/snprintf-tests: New file.
43910         * tests/test-snprintf.c: New file.
43911
43912 2007-03-04  Bruno Haible  <bruno@clisp.org>
43913
43914         Compile relocatable.c only if --enable-relocatable is specified.
43915         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
43916         gl_RELOCATABLE_LIBRARY.
43917         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
43918         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
43919         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
43920         gl_RELOCATABLE_LIBRARY.
43921         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
43922         (Makefile.am): Remove lib_SOURCES.
43923         * modules/relocatable-lib-lgpl (configure.ac): Invoke
43924         gl_RELOCATABLE_LIBRARY.
43925         (Makefile.am): Remove lib_SOURCES.
43926         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
43927         always.
43928         * modules/relocatable-prog-wrapper (configure.ac): Invoke
43929         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
43930
43931 2007-03-04  Bruno Haible  <bruno@clisp.org>
43932
43933         * modules/argmatch-tests: New file.
43934         * tests/test-argmatch.c: New file.
43935
43936         * tests/test-allocsa.c (main): Halve the number of loop runs.
43937
43938         * modules/alloca-opt-tests: New file.
43939         * tests/test-alloca-opt.c: New file.
43940
43941 2007-03-04  Jim Meyering  <jim@meyering.net>
43942
43943         Work around difference between Linux ACLs and Solaris 10 ZFS.
43944         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
43945         for EINVAL.
43946
43947 2007-03-03  Bruno Haible  <bruno@clisp.org>
43948
43949         * modules/relocatable-prog (Depends-on): Add back progreloc's
43950         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
43951
43952 2007-03-03  Bruno Haible  <bruno@clisp.org>
43953
43954         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
43955         * modules/relocatable-lib: New file.
43956
43957 2007-03-03  Bruno Haible  <bruno@clisp.org>
43958
43959         * modules/relocatable-prog: Renamed from modules/relocatable.
43960         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
43961
43962 2007-03-03  Bruno Haible  <bruno@clisp.org>
43963
43964         * modules/relocatable-script (Files): Add doc/relocatable.texi,
43965         m4/relocatable-lib.m4.
43966         (Depends-on): Remove 'relocatable'.
43967         (configure.ac): Add gl_RELOCATABLE_NOP.
43968
43969 2007-03-03  Bruno Haible  <bruno@clisp.org>
43970
43971         * modules/relocatable-prog-wrapper: New file.
43972         * modules/relocatable (Depends-on): Add it. Remove all other
43973         dependencies except progname.
43974         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
43975
43976         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
43977         (gl_FUNC_STRERROR): Nop.
43978         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
43979
43980         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
43981         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
43982
43983         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
43984         (gl_FUNC_READLINK): Update.
43985
43986         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
43987
43988 2007-03-03  Bruno Haible  <bruno@clisp.org>
43989
43990         * lib/xreadlink.c: Include <unistd.h> unconditionally.
43991         * modules/xreadlink (Depends-on): Add unistd.
43992         * modules/xreadlink-with-size (Depends-on): Likewise.
43993
43994 2007-03-03  Bruno Haible  <bruno@clisp.org>
43995
43996         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
43997         extracted from gt_FUNC_SETENV.
43998         (gt_FUNC_SETENV): Remove macro.
43999         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
44000         remove gt_FUNC_SETENV.
44001
44002 2007-03-03  Bruno Haible  <bruno@clisp.org>
44003
44004         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
44005         ENABLE_RELOCATABLE here.
44006         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
44007
44008 2007-03-03  Bruno Haible  <bruno@clisp.org>
44009
44010         * modules/rbtreehash-list-tests (Depends-on): Add progname.
44011         * tests/test-rbtreehash_list.c: Include progname.h.
44012         (main): Call set_program_name.
44013
44014         * modules/rbtree-oset-tests (Depends-on): Add progname.
44015         * tests/test-rbtree_oset.c: Include progname.h.
44016         (main): Call set_program_name.
44017
44018         * modules/rbtree-list-tests (Depends-on): Add progname.
44019         * tests/test-rbtree_list.c: Include progname.h.
44020         (main): Call set_program_name.
44021
44022         * modules/linked-list-tests (Depends-on): Add progname.
44023         * tests/test-linked_list.c: Include progname.h.
44024         (main): Call set_program_name.
44025
44026 2007-03-03  Bruno Haible  <bruno@clisp.org>
44027
44028         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
44029         All uses of __restrict changed to _Restrict_.
44030         * lib/glob_.h (__restrict): Remove macro.
44031
44032 2007-03-02  Bruno Haible  <bruno@clisp.org>
44033
44034         * modules/gettext (configure.ac): Require gettext infrastructure
44035         from version 0.16.1.
44036
44037 2007-03-02  Bruno Haible  <bruno@clisp.org>
44038
44039         * modules/linkedhash-list-tests (Depends-on): Add progname.
44040         * tests/test-linkedhash_list.c: Include progname.h.
44041         (main): Call set_program_name.
44042
44043         * modules/carray-list-tests (Depends-on): Add progname.
44044         * tests/test-carray_list.c: Include progname.h.
44045         (main): Call set_program_name.
44046
44047         * modules/avltreehash-list-tests (Depends-on): Add progname.
44048         * tests/test-avltreehash_list.c: Include progname.h.
44049         (main): Call set_program_name.
44050
44051         * modules/avltree-oset-tests (Depends-on): Add progname.
44052         * tests/test-avltree_oset.c: Include progname.h.
44053         (main): Call set_program_name.
44054
44055         * modules/avltree-list-tests (Depends-on): Add progname.
44056         * tests/test-avltree_list.c: Include progname.h.
44057         (main): Call set_program_name.
44058
44059         * modules/array-oset-tests (Depends-on): Add progname.
44060         * tests/test-array_oset.c: Include progname.h.
44061         (main): Call set_program_name.
44062
44063         * modules/array-list-tests (Depends-on): Add progname.
44064         * tests/test-array_list.c: Include progname.h.
44065         (main): Call set_program_name.
44066
44067         * modules/argp-tests (Depends-on): Add progname.
44068         * tests/test-argp.c: Include argp.h first. Include progname.h.
44069         (main): Call set_program_name.
44070
44071 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
44072
44073         * doc/gnulib-tool.texi (Initial import): Reword description of
44074         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
44075         limited effect even if defined after the first system include.
44076
44077 2007-03-01  Bruno Haible  <bruno@clisp.org>
44078
44079         * build-aux/config.libpath: Update to libtool-1.5.22.
44080         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44081
44082 2007-03-01  Bruno Haible  <bruno@clisp.org>
44083
44084         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
44085         foo_CFLAGS.
44086         Reported by Ralf Wildenhues.
44087
44088 2007-03-01  Bruno Haible  <bruno@clisp.org>
44089
44090         * build-aux/install-reloc: Remove object files left over by some
44091         compilers.
44092         Reported by Ralf Wildenhues.
44093
44094 2007-03-01  Bruno Haible  <bruno@clisp.org>
44095
44096         * build-aux/install-reloc: Break long lines.
44097
44098 2007-03-01  Bruno Haible  <bruno@clisp.org>
44099
44100         * doc/relocatable.texi: Document that it may not work on OpenBSD.
44101         Reported by Ralf Wildenhues.
44102
44103 2007-03-01  Bruno Haible  <bruno@clisp.org>
44104
44105         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
44106         include ordering constraints.
44107
44108 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44109
44110         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
44111         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
44112         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
44113         as another example.
44114         * lib/time_.h: Fix misspelling.
44115         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
44116         Require gl_HEADER_TIME_H_DEFAULTS.
44117         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
44118         * m4/time_r.m4 (gl_TIME_R): Likewise.
44119         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
44120
44121 2007-03-01  Bruno Haible  <bruno@clisp.org>
44122
44123         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
44124         * m4/utimens.m4 (gl_UTIMENS): Likewise.
44125
44126 2007-03-01  Jim Meyering  <jim@meyering.net>
44127
44128         * modules/xreadlink (Maintainer): Add my name.
44129         * modules/xreadlink-with-size (Depends-on): Alphabetize.
44130
44131 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
44132             Bruno Haible  <bruno@clisp.org>
44133
44134         * build-aux/install-reloc: Compile also c-ctype.c.
44135         * build-aux/relocatable.sh.in: New file.
44136         * doc/relocatable.texi: New file.
44137         * doc/relocatable-maint.texi: New file.
44138         * doc/gnulib.texi: Include relocatable-maint.texi.
44139         * lib/progreloc.c: Include unistd.h unconditionally.
44140         * lib/relocwrapper.c: Include unistd.h unconditionally.
44141         Include c-ctype.h.
44142         (add_dotbin): Use c_tolower.
44143         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
44144         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
44145         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
44146         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
44147         to m4/relocatable-lib.m4.
44148         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
44149         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
44150         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
44151         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
44152         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
44153         * modules/relocatable: New file.
44154         * modules/relocatable-lib: New file.
44155         * modules/relocatable-script: New file.
44156
44157 2007-02-28  Bruno Haible  <bruno@clisp.org>
44158
44159         Import --enable-relocatable infrastructure.
44160         * build-aux/config.libpath: New file, from GNU gettext.
44161         * build-aux/install-reloc: New file, from GNU gettext.
44162         * build-aux/reloc-ldflags: New file, from GNU gettext.
44163         * lib/relocatable.h: New file, from GNU gettext.
44164         * lib/relocatable.c: New file, from GNU gettext.
44165         * lib/relocwrapper.c: New file, from GNU gettext.
44166         * m4/relocatable.m4: New file, from GNU gettext.
44167
44168 2007-02-28  Bruno Haible  <bruno@clisp.org>
44169
44170         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
44171
44172         * modules/xreadlink: New file, from GNU gettext with modifications.
44173         * lib/xreadlink.c: New file, from GNU gettext.
44174         * lib/xreadlink.h: Add comments.
44175         (xreadlink): New declaration.
44176
44177         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
44178         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
44179         lib/xreadlink-with-size.c.
44180         (configure.ac): Remove gl_XREADLINK invocation.
44181         (Makefile.am): Augment lib_SOURCES.
44182         * m4/xreadlink.m4: Remove file.
44183         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
44184         (xreadlink_with_size): Renamed from xreadink.
44185         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
44186         * modules/canonicalize (Depends-on): Replace xreadlink with
44187         xreadlink-with-size.
44188         * lib/canonicalize.c (canonicalize_filename_mode): Update.
44189
44190 2007-02-25  Jim Meyering  <jim@meyering.net>
44191
44192         * build-aux/announce-gen: When complaining about excess arguments,
44193         list them.
44194
44195 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
44196
44197         * README: Document signed integer overflow situation more
44198         accurately.
44199
44200 2007-02-25  Bruno Haible  <bruno@clisp.org>
44201
44202         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
44203         'a' or 'A' conversion.
44204
44205 2007-02-25  Bruno Haible  <bruno@clisp.org>
44206
44207         * modules/filename: Renamed from modules/pathname.
44208         (Files): Replace lib/pathname.h with lib/filename.h. Replace
44209         lib/concatpath.c with lib/concat-filename.c.
44210         (Makefile.am): Update.
44211         (Include): Replace pathname.h with filename.h.
44212         * lib/filename.h: Renamed from lib/pathname.h.
44213         (concatenated_filename): Renamed from concatenated_pathname.
44214         * lib/concat-filename.c: Renamed from lib/concatpath.c.
44215         (concatenated_filename): Renamed from concatenated_pathname.
44216         * lib/findprog.c: Include filename.h instead of pathname.h.
44217         (find_in_path): Update.
44218         * lib/javacomp.c: Include filename.h instead of pathname.h.
44219         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44220         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44221         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44222         is_oldgcj_14_13_usable, is_javac_usable): Update.
44223         * lib/javaexec.c: Include filename.h instead of pathname.h.
44224         (execute_java_class): Update.
44225         * modules/findprog: Update.
44226         * modules/javacomp: Update.
44227         * modules/javaexec: Update.
44228         * MODULES.html.sh (File system functions): Add 'filename', remove
44229         'pathname'.
44230
44231 2007-02-25  Bruno Haible  <bruno@clisp.org>
44232
44233         * modules/printf-frexpl-tests: New file.
44234         * tests/test-printf-frexpl.c: New file.
44235
44236         * modules/printf-frexpl: New file.
44237         * lib/printf-frexpl.h: New file.
44238         * lib/printf-frexpl.c: New file.
44239         * m4/printf-frexpl.m4: New file.
44240
44241 2007-02-25  Bruno Haible  <bruno@clisp.org>
44242
44243         * modules/printf-frexp-tests: New file.
44244         * tests/test-printf-frexp.c: New file.
44245
44246         * modules/printf-frexp: New file.
44247         * lib/printf-frexp.h: New file.
44248         * lib/printf-frexp.c: New file.
44249         * m4/printf-frexp.m4: New file.
44250
44251 2007-02-25  Bruno Haible  <bruno@clisp.org>
44252
44253         Assume automake >= 1.10 for the tests.
44254         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
44255         * modules/arctwo-tests: Likewise.
44256         * modules/argp-tests: Likewise.
44257         * modules/avltree-list-tests: Likewise.
44258         * modules/avltree-oset-tests: Likewise.
44259         * modules/avltreehash-list-tests: Likewise.
44260         * modules/carray-list-tests: Likewise.
44261         * modules/crc-tests: Likewise.
44262         * modules/des-tests: Likewise.
44263         * modules/gc-arcfour-tests: Likewise.
44264         * modules/gc-arctwo-tests: Likewise.
44265         * modules/gc-des-tests: Likewise.
44266         * modules/gc-hmac-md5-tests: Likewise.
44267         * modules/gc-hmac-sha1-tests: Likewise.
44268         * modules/gc-md2-tests: Likewise.
44269         * modules/gc-md4-tests: Likewise.
44270         * modules/gc-md5-tests: Likewise.
44271         * modules/gc-pbkdf2-sha1-tests: Likewise.
44272         * modules/gc-rijndael-tests: Likewise.
44273         * modules/gc-sha1-tests: Likewise.
44274         * modules/gc-tests: Likewise.
44275         * modules/getaddrinfo-tests: Likewise.
44276         * modules/hmac-md5-tests: Likewise.
44277         * modules/hmac-sha1-tests: Likewise.
44278         * modules/linked-list-tests: Likewise.
44279         * modules/linkedhash-list-tests: Likewise.
44280         * modules/lock-tests: Likewise.
44281         * modules/md2-tests: Likewise.
44282         * modules/md4-tests: Likewise.
44283         * modules/md5-tests: Likewise.
44284         * modules/rbtree-list-tests: Likewise.
44285         * modules/rbtree-oset-tests: Likewise.
44286         * modules/rbtreehash-list-tests: Likewise.
44287         * modules/read-file-tests: Likewise.
44288         * modules/rijndael-tests: Likewise.
44289         * modules/stdint-tests: Likewise.
44290         * modules/tls-tests: Likewise.
44291
44292 2007-02-24  Bruno Haible  <bruno@clisp.org>
44293
44294         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
44295         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
44296         function; instead check whether isnan with a double argument links.
44297         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
44298         function; instead check whether isnan with a 'long double' argument
44299         links.
44300         Reported by Eric Blake <ebb9@byu.net>.
44301
44302 2007-02-24  Bruno Haible  <bruno@clisp.org>
44303
44304         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
44305         defined.
44306         * lib/isnanl.c: Remove all code. Just include isnan.c.
44307         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
44308
44309 2007-02-25  Jim Meyering  <jim@meyering.net>
44310
44311         Avoid conflicting types for 'unsetenv' on FreeBSD.
44312         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
44313         conflicting with FreeBSD's (5.0 and 6.1) function declaration
44314         in stdlib.h.
44315
44316 2007-02-24  Bruno Haible  <bruno@clisp.org>
44317
44318         * modules/isnanl-nolibm-tests: New file.
44319         * tests/test-isnanl.c: New file.
44320
44321         * modules/isnanl-nolibm: New file.
44322         * lib/isnanl.h: New file.
44323         * lib/isnanl.c: New file.
44324         * m4/isnanl.m4: New file.
44325
44326 2007-02-24  Bruno Haible  <bruno@clisp.org>
44327
44328         * modules/isnan-nolibm-tests: New file.
44329         * tests/test-isnan.c: New file.
44330
44331         * modules/isnan-nolibm: New file.
44332         * lib/isnan.h: New file.
44333         * lib/isnan.c: New file.
44334         * m4/isnan.m4: New file.
44335
44336 2007-02-24  Bruno Haible  <bruno@clisp.org>
44337
44338         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
44339         assume that an exponent fits in 20 bits.
44340
44341 2007-02-24  Jim Meyering  <jim@meyering.net>
44342
44343         * m4/regex.m4: Update the description of the configure-time option,
44344         --without-included-regex, to state accurately what the defaults are,
44345         and perhaps to give people an idea why using this option is risky.
44346
44347 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44348
44349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
44350         loops on small arguments.  This attempts to avoid the problem
44351         Bruno Haible reported for AIX 4.3.2 in
44352         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
44353
44354 2007-02-23  Bruno Haible  <bruno@clisp.org>
44355
44356         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
44357         Needed for help2man.
44358
44359 2007-02-23  Karl Berry  <karl@gnu.org>
44360
44361         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
44362         exists, foo.h should be cvs-ignored, not committed.
44363
44364 2007-02-23  Eric Blake  <ebb9@byu.net>
44365
44366         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
44367         * lib/stat-time.h (includes): Likewise.
44368         * lib/utimecmp.c (includes): Likewise.
44369         * lib/utimens.h (includes): Likewise.
44370         * lib/getdate.y (includes): Also include "timespec.h" for use
44371         internal to the module.
44372         * modules/utimens (Depends-on): Revert yesterday's patch.
44373         * modules/nanosleep (Depends-on): Add missing dependency.
44374
44375 2007-02-22  Bruno Haible  <bruno@clisp.org>
44376
44377         * lib/glob.c: Don't include getlogin_r.h.
44378
44379 2007-02-22  Jim Meyering  <jim@meyering.net>
44380
44381         * modules/utimens (Depends-on): Add timespec, required for
44382         utimens.h's inclusion of timespec.h.
44383
44384 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
44385
44386         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
44387         long unreadable paths in GNU/Linux.  Problem reported by Andreas
44388         Schwab in
44389         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
44390         I'll try to think of a better way to fix the Solaris problem.
44391
44392         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
44393         like glibc; on Solaris 10, it fails with errno == EINVAL.
44394         POSIX says the behavior is unspecified if the first argument is NULL,
44395         so play it safe and never pass NULL to the system getcwd.
44396
44397 2007-02-21  Jim Meyering  <jim@meyering.net>
44398
44399         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
44400         of gettimeofday.  It would conflict with the one now always
44401         provided via sys_time_.h.  Reported by Matthew Woehlke, as
44402         an IRIX 6.5 build failure.
44403
44404 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
44405
44406         Minor fixups to port to Solaris 10 with Sun C 5.8.
44407         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
44408         * modules/getcwd (Depends-on): Add dirfd.
44409         * lib/putenv.c (putenv): #undef it.
44410         (rpl_putenv): New decl.
44411         (malloc, free): Include <stdlib.h> rather than prototyping separately.
44412
44413 2007-02-20  Bruno Haible  <bruno@clisp.org>
44414
44415         * modules/stdio-tests: New file.
44416         * tests/test-stdio.c: New file.
44417
44418         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
44419         (Depends-on): Add stdio.
44420         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44421         (Include): Use <stdio.h> instead of vsnprintf.h.
44422         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44423         HAVE_DECL_VSNPRINTF.
44424         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
44425
44426         * modules/snprintf (Files): Remove lib/snprintf.h.
44427         (Depends-on): Add stdio.
44428         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
44429         (Include): Use <stdio.h> instead of snprintf.h.
44430         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
44431         HAVE_DECL_SNPRINTF.
44432         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
44433         * lib/getaddrinfo.c: Likewise.
44434
44435         * modules/stdio: New file.
44436         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
44437         * lib/snprintf.h: Remove file.
44438         * lib/vsnprintf.h: Remove file.
44439         * lib/.cppi-disable: Remove snprintf.h.
44440         * m4/stdio_h.m4: New file.
44441         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
44442
44443 2007-02-20  Jim Meyering  <jim@meyering.net>
44444
44445         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
44446         used by e.g., mingw.  From Bruno Haible.
44447
44448 2007-02-19  Bruno Haible  <bruno@clisp.org>
44449
44450         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
44451         warnings.
44452         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44453
44454 2007-02-19  Bruno Haible  <bruno@clisp.org>
44455
44456         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
44457         from mingw users.
44458
44459 2007-02-19  Bruno Haible  <bruno@clisp.org>
44460
44461         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
44462         warnings.
44463         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
44464
44465 2007-02-19  Jim Meyering  <jim@meyering.net>
44466
44467         Don't use FD after a successful "fdopendir (fd)".
44468         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
44469         Reset it by calling dirfd on the just-obtained DIR*.
44470
44471         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
44472         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
44473
44474 2007-02-18  Bruno Haible  <bruno@clisp.org>
44475
44476         * lib/readlink.c: Include <unistd.h>.
44477         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
44478         HAVE_READLINK.
44479         * modules/readlink (Depends-on): Add unistd.
44480         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44481         (Include): Add <unistd.h>.
44482
44483         * lib/getlogin_r.h: Remove file.
44484         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
44485         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
44486         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
44487         HAVE_DECL_GETLOGIN_R.
44488         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
44489         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44490         (Include): Use <unistd.h> instead of getlogin_r.h.
44491
44492         * lib/getcwd.h: Remove file.
44493         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
44494         * lib/xgetcwd.c: Likewise.
44495         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
44496         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
44497         * modules/getcwd (Files): Remove lib/getcwd.h.
44498         (Depends-on): Add unistd.
44499         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44500         (Include): Use <unistd.h> instad of getcwd.h.
44501
44502         * lib/ftruncate.c: Include <unistd.h> first.
44503         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
44504         Set HAVE_FTRUNCATE.
44505         * modules/ftruncate (Depends-on): Add unistd.
44506         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44507
44508         * lib/fchdir.c: Include <unistd.h> first.
44509         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
44510         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
44511         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
44512         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44513         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
44514
44515         * lib/dup2.c: Include <unistd.h> first.
44516         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
44517         HAVE_DUP2.
44518         * modules/dup2 (Depends-on): Add unistd.
44519         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44520
44521         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
44522         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
44523         REPLACE_CHOWN. Don't define chown as a macro here.
44524         * modules/chown (Depends-on): Add unistd.
44525         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44526
44527         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
44528         Add definition for GL_LINK_WARNING.
44529         (chown, dup2): New declarations.
44530         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
44531         link warning.
44532         (ftruncate): New declaration.
44533         (getcwd): New declaration, taken from old getcwd.h.
44534         (getlogin_r): New declaration, taken from old getlogin_r.h.
44535         (readlink): New declaration.
44536         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
44537         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
44538         (gl_PREREQ_UNISTD): Remove macro.
44539         (gl_UNISTD_MODULE_INDICATOR): New macro.
44540         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
44541         many new variables. Don't set UNISTD_H.
44542         * modules/unistd (Description): Change.
44543         (Depends-on): Add link-warning.
44544         (configure.ac): Update.
44545         (Makefile.am): Create unistd.h always. Substitute many new variables
44546         into it.
44547
44548 2007-02-18  Bruno Haible  <bruno@clisp.org>
44549
44550         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
44551         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
44552         HAVE_GETSUBOPT.
44553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
44554         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
44555         * lib/getsubopt.h: Remove file.
44556         * modules/getsubopt (Files): Remove lib/getsubopt.h.
44557         (Depends-on): Add stdlib.
44558         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44559         (Includes): Use <stdlib.h> instead of getsubopt.h.
44560         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
44561         Set HAVE_GETSUBOPT.
44562         * lib/getsubopt.c: Don't include getsubopt.h.
44563
44564 2007-02-18  Bruno Haible  <bruno@clisp.org>
44565
44566         * modules/fchdir (Depends-on): Add dup2.
44567
44568 2007-02-18  Bruno Haible  <bruno@clisp.org>
44569
44570         * lib/stdlib_.h: Handle glibc's special invocation convention
44571         specially.
44572
44573 2007-02-18  Bruno Haible  <bruno@clisp.org>
44574
44575         * modules/stdlib-tests: New file.
44576         * tests/test-stdlib.c: New file.
44577
44578         * modules/mkstemp (Files): Remove lib/mkstemp.h.
44579         (Depends-on): Add stdlib.
44580         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44581         (Includes): Use <stdlib.h> instead of mkstemp.h.
44582         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44583         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
44584         * lib/mkstemp.c: Don't include mkstemp.h.
44585         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
44586         * lib/stdlib--.h: Don't include mkstemp.h.
44587
44588         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
44589         (Depends-on): Add stdlib.
44590         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
44591         (Includes): Use <stdlib.h> instead of mkdtemp.h.
44592         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
44593         HAVE_MKDTEMP.
44594         * lib/mkdtemp.c: Don't include mkdtemp.h.
44595         * lib/clean-temp.c: Don't include mkdtemp.h.
44596
44597         * modules/exit (Files): Remove lib/exit.h.
44598         (Depends-on): Add stdlib.
44599         (Makefile.am): Remove lib_SOURCES.
44600         (Include): Use <stdlib.h> instead of exit.h.
44601         * lib/argmatch.c: Don't include exit.h.
44602         * lib/execute.c: Likewise.
44603         * lib/pagealign_alloc.c: Likewise.
44604         * lib/pipe.c: Likewise.
44605         * lib/wait-process.c: Likewise.
44606         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
44607         * lib/exitfail.c: Likewise.
44608         * lib/savewd.c: Likewise.
44609         * lib/xsetenv.c: Likewise.
44610
44611         * modules/stdlib: New file.
44612         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
44613         and extra comments about mkstemp().
44614         * lib/exit.h: Remove file.
44615         * lib/mkdtemp.h: Remove file.
44616         * lib/mkstemp.h: Remove file.
44617         * m4/stdlib_h.m4: New file.
44618         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
44619
44620 2007-02-18  Bruno Haible  <bruno@clisp.org>
44621
44622         * modules/math-tests: New file.
44623         * tests/test-math.c: New file.
44624
44625         * modules/math: New file.
44626         * modules/mathl (Files): Remove lib/mathl.h.
44627         (Depends-on): Add math.
44628         (Makefile.am): Don't mention mathl.h.
44629         (Include): Use <math.h> instead of mathl.h.
44630         * lib/math_.h: New file.
44631         * lib/mathl.h: Remove file.
44632         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
44633         mathl.h.
44634         * lib/asinl.c: Likewise.
44635         * lib/atanl.c: Likewise.
44636         * lib/ceill.c: Likewise.
44637         * lib/cosl.c: Likewise.
44638         * lib/expl.c: Likewise.
44639         * lib/floorl.c: Likewise.
44640         * lib/frexpl.c: Likewise.
44641         * lib/ldexpl.c: Likewise.
44642         * lib/logl.c: Likewise.
44643         * lib/sincosl.c: Likewise.
44644         * lib/sinl.c: Likewise.
44645         * lib/sqrtl.c: Likewise.
44646         * lib/tanl.c: Likewise.
44647         * lib/trigl.c: Likewise.
44648         * m4/math_h.m4: New file.
44649         * MODULES.html.sh (Mathematics): Add math.
44650
44651 2007-02-17  Bruno Haible  <bruno@clisp.org>
44652
44653         * modules/wctype-tests: New file.
44654         * tests/test-wctype.c: New file.
44655
44656         * modules/wchar-tests: New file.
44657         * tests/test-wchar.c: New file.
44658
44659         * modules/unistd-tests: New file.
44660         * tests/test-unistd.c: New file.
44661
44662         * modules/time-tests: New file.
44663         * tests/test-time.c: New file.
44664
44665         * modules/sysexits-tests: New file.
44666         * tests/test-sysexits.c: New file.
44667
44668         * modules/sys_time-tests: New file.
44669         * tests/test-sys_time.c: New file.
44670
44671         * modules/sys_stat-tests: New file.
44672         * tests/test-sys_stat.c: New file.
44673
44674         * modules/sys_socket-tests: New file.
44675         * tests/test-sys_socket.c: New file.
44676
44677         * modules/sys_select-tests: New file.
44678         * tests/test-sys_select.c: New file.
44679
44680         * modules/string-tests: New file.
44681         * tests/test-string.c: New file.
44682
44683         * modules/stdbool-tests: New file.
44684         * tests/test-stdbool.c: New file.
44685
44686         * modules/netinet_in-tests: New file.
44687         * tests/test-netinet_in.c: New file.
44688
44689         * modules/inttypes-tests: New file.
44690         * tests/test-inttypes.c: New file.
44691
44692         * modules/fcntl-tests: New file.
44693         * tests/test-fcntl.c: New file.
44694
44695         * modules/byteswap-tests: New file.
44696         * tests/test-byteswap.c: New file.
44697
44698         * modules/arpa_inet-tests: New file.
44699         * tests/test-arpa_inet.c: New file.
44700
44701 2007-02-17  Bruno Haible  <bruno@clisp.org>
44702
44703         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
44704         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
44705         if the corresponding module is not enabled. Emit link warnings if
44706         the function is used nevertheless.
44707         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
44708         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
44709         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
44710         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
44711         * modules/inttypes (Depends-on): Add link-warning.
44712         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44713         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
44714         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
44715         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
44716         * modules/imaxdiv (configure.ac): Likewise.
44717         * modules/strtoimax (configure.ac): Likewise.
44718         * modules/strtoumax (configure.ac): Likewise.
44719
44720 2007-02-17  Bruno Haible  <bruno@clisp.org>
44721
44722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
44723         gl_STRING_MODULE_INDICATOR_DEFAULTS.
44724         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
44725         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
44726
44727 2007-02-17  Bruno Haible  <bruno@clisp.org>
44728
44729         * modules/link-warning: New file.
44730         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
44731         * lib/string_.h (GL_LINK_WARNING): Remove definition.
44732         * modules/string (Depends-on): Add link-warning.
44733         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44734         string.h.
44735         * MODULES.html.sh (Support for building libraries and executables): Add
44736         link-warning.
44737
44738 2007-02-17  Bruno Haible  <bruno@clisp.org>
44739
44740         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
44741         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
44742         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
44743         long lines.
44744
44745 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
44746             Bruno Haible  <bruno@clisp.org>
44747
44748         * modules/tmpfile: New file.
44749         * lib/tmpfile.c: New file.
44750         * m4/tmpfile.m4: New file.
44751         * MODULES.html.sh (func_all_modules): New section "Input/output".
44752
44753 2007-02-15  Bruno Haible  <bruno@clisp.org>
44754
44755         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
44756         (supports_delete_on_close): New function.
44757         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
44758
44759 2007-02-14  Bruno Haible  <bruno@clisp.org>
44760
44761         * modules/mbspcasecmp-tests: New file.
44762         * tests/test-mbspcasecmp.sh: New file.
44763         * tests/test-mbspcasecmp.c: New file.
44764
44765         New module mbspcasecmp.
44766         * modules/mbspcasecmp: New file.
44767         * lib/mbspcasecmp.c: New file.
44768         * lib/string_.h (strncasecmp): Change warning message.
44769         (mbspcasecmp): New declaration.
44770         * m4/mbspcasecmp.m4: New file.
44771         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44772         GNULIB_MBSPCASECMP.
44773         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
44774         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
44775
44776 2007-02-14  Bruno Haible  <bruno@clisp.org>
44777
44778         * modules/mbsncasecmp-tests: New file.
44779         * tests/test-mbsncasecmp.sh: New file.
44780         * tests/test-mbsncasecmp.c: New file.
44781
44782         New module mbsncasecmp.
44783         * modules/mbsncasecmp: New file.
44784         * lib/mbsncasecmp.c: New file.
44785         * lib/string_.h (mbsncasecmp): New declaration.
44786         * m4/mbsncasecmp.m4: New file.
44787         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44788         GNULIB_MBSNCASECMP.
44789         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
44790         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
44791
44792 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
44793
44794         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
44795         Verify that it doesn't overlap with our flags.
44796         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
44797         do not have the desired effect in multibyte locales; instead, use
44798         mbscasecmp.
44799         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
44800         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
44801         we don't require GNU fnmatch ourselves (if our users require it, they
44802         should do so explicitly).
44803
44804         Fix regex code so it doesn't rely on strcasecmp.
44805         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
44806         Otherwise, include gnulib's langinfo.h.
44807         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
44808         undesirable behavior in non-C locales.  Instead, rely on localecharset.
44809         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
44810         * modules/regex (FILES): Remove m4/codeset.m4.
44811         (Depends-on): Add localcharset.  Remove strcase.
44812
44813 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44814
44815         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
44816         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
44817
44818 2007-02-13  Bruno Haible  <bruno@clisp.org>
44819
44820         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
44821         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44822
44823 2007-02-12  Bruno Haible  <bruno@clisp.org>
44824
44825         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
44826         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
44827         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
44828         time warning rather than a link error.
44829
44830 2007-02-12  Bruno Haible  <bruno@clisp.org>
44831
44832         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
44833         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44834         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44835
44836 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44837
44838         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
44839         args, not 2.
44840
44841 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44842
44843         New module 'time', so that apps can include <time.h> as per
44844         POSIX and GNU instead of separate include files like time_r.h
44845         and timegm.h.  This implementation tries out a simpler approach
44846         for replacing decls in standard include files (as compared to
44847         the string module), somewhat as an experiment.
44848
44849         * config/srclist.txt: Comment out mktime.c for now.
44850         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
44851         since it doesn't apply any more.  Use generic wording instead.
44852         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
44853         'time'.
44854         * lib/time_.h, m4/time_h.m4, modules/time: New files.
44855         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
44856         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
44857         Don't include <sys/types.h>; no longer needed since we assume C89.
44858         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
44859         * lib/strftime.c: Likewise.
44860         * lib/time_r.c: Likewise.
44861         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
44862         * lib/nanosleep.c: Include <time.h> first, to check interface.
44863         * lib/strptime.c: Likewise.
44864         * lib/time_r.c: Likewise.
44865         * lib/timegm.c: Likewise.
44866         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
44867         needed.
44868         * lib/timegm.c: Don't include timegm.h; no longer needed.
44869         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
44870         time.h now handles any problems in that area.
44871         (struct timespec, nanosleep): Remove; time.h now arranges for these.
44872         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
44873         that time.h defines struct timespec.
44874         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
44875         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
44876         handles that.
44877         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
44878         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
44879         needed.  Set REPLACE_LOCALTIME.
44880         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
44881         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
44882         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
44883         nanosleep; time_h.m4 now does that.  Don't require
44884         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
44885         module handles this now.
44886         * modules/getdate (Depends-on): Remove timespec.  Add time.
44887         * modules/nanosleep (Depends-on): Likewise.
44888         * modules/stat-time (Depends-on): Likewise.
44889         * modules/nanosleep (Include): Include time.h, not timespec.h.
44890         * modules/strptime (Files): Remove lib/strptime.h.
44891         (Depends-on): Add extensions, time.
44892         (Include): Include time.h, not strptime.h.
44893         * modules/time_r (Files): Remove lib/time_r.h.
44894         (Depends-on): Add time.
44895         (Include): Include time.h, not time_r.h.
44896         * modules/timegm: Likewise.
44897         * modules/timespec (Description): Now does timespec-related decls
44898         of our own, instead of struct timespec itself.
44899         (Depends-on): Add time; remove extensions.
44900         (Maintainer): Add self.
44901         * modules/utimecmp (Depends-on): Add time; remove timespec.
44902         * modules/utimens (Depends-on): Likewise.
44903         * modules/xnanosleep (Depends-on): Likewise.
44904
44905 2007-02-11  Bruno Haible  <bruno@clisp.org>
44906
44907         * lib/c-strstr.c: Include allocsa.h.
44908         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44909         * lib/c-strcasestr.c: Include allocsa.h.
44910         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44911         * lib/strcasestr.c: Include allocsa.h.
44912         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44913         * lib/mbsstr.c: Include allocsa.h.
44914         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
44915         allocsa/freesa instead of malloc/free.
44916         * lib/mbscasestr.c: Include allocsa.h.
44917         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
44918         allocsa/freesa instead of malloc/free.
44919         * modules/c-strstr (Depends-on): Add allocsa.
44920         * modules/c-strcasestr (Depends-on): Likewise.
44921         * modules/strcasestr (Depends-on): Likewise.
44922         * modules/mbsstr (Depends-on): Likewise.
44923         * modules/mbscasestr (Depends-on): Likewise.
44924
44925 2007-02-11  Bruno Haible  <bruno@clisp.org>
44926
44927         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
44928
44929         * modules/mbsspn-tests: New file.
44930         * tests/test-mbsspn.sh: New file.
44931         * tests/test-mbsspn.c: New file.
44932
44933 2007-02-11  Bruno Haible  <bruno@clisp.org>
44934
44935         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
44936
44937         * modules/mbspbrk-tests: New file.
44938         * tests/test-mbspbrk.sh: New file.
44939         * tests/test-mbspbrk.c: New file.
44940
44941 2007-02-11  Bruno Haible  <bruno@clisp.org>
44942
44943         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
44944         unneeded cast.
44945
44946         * modules/mbscspn-tests: New file.
44947         * tests/test-mbscspn.sh: New file.
44948         * tests/test-mbscspn.c: New file.
44949
44950 2007-02-11  Bruno Haible  <bruno@clisp.org>
44951
44952         * modules/mbscasecmp-tests: New file.
44953         * tests/test-mbscasecmp.sh: New file.
44954         * tests/test-mbscasecmp.c: New file.
44955
44956 2007-02-11  Bruno Haible  <bruno@clisp.org>
44957
44958         Ensure O(n) worst-case complexity of mbscasestr.
44959         * lib/mbscasestr.c: Include stdbool.h.
44960         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
44961         functions.
44962         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
44963         the bookkeeping indicates that it's worth it.
44964         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
44965
44966         * modules/mbscasestr-tests: New file.
44967         * tests/test-mbscasestr1.c: New file.
44968         * tests/test-mbscasestr2.sh: New file.
44969         * tests/test-mbscasestr2.c: New file.
44970         * tests/test-mbscasestr3.sh: New file.
44971         * tests/test-mbscasestr3.c: New file.
44972         * tests/test-mbscasestr4.sh: New file.
44973         * tests/test-mbscasestr4.c: New file.
44974         * m4/locale-tr.m4: New file.
44975
44976 2007-02-11  Bruno Haible  <bruno@clisp.org>
44977
44978         Ensure O(n) worst-case complexity of mbsstr.
44979         * lib/mbsstr.c: Include stdbool.h.
44980         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
44981         functions.
44982         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
44983         bookkeeping indicates that it's worth it.
44984         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
44985
44986         * modules/mbsstr-tests: New file.
44987         * tests/test-mbsstr1.c: New file.
44988         * tests/test-mbsstr2.sh: New file.
44989         * tests/test-mbsstr2.c: New file.
44990         * tests/test-mbsstr3.sh: New file.
44991         * tests/test-mbsstr3.c: New file.
44992         * m4/locale-fr.m4: New file.
44993
44994 2007-02-11  Bruno Haible  <bruno@clisp.org>
44995
44996         * lib/mbsrchr.c (mbsrchr): Fix bug.
44997
44998         * modules/mbsrchr-tests: New file.
44999         * tests/test-mbsrchr.sh: New file.
45000         * tests/test-mbsrchr.c: New file.
45001
45002 2007-02-11  Bruno Haible  <bruno@clisp.org>
45003
45004         * lib/mbschr.c (mbschr): Fix bug.
45005
45006         * modules/mbschr-tests: New file.
45007         * tests/test-mbschr.sh: New file.
45008         * tests/test-mbschr.c: New file.
45009         * m4/locale-zh.m4: New file.
45010
45011 2007-02-11  Bruno Haible  <bruno@clisp.org>
45012
45013         Support for copying multibyte string iterators.
45014         * lib/mbiter.h: Include <string.h>.
45015         (mbiter_multi_copy): New function.
45016         (mbi_copy): New macro.
45017         * lib/mbuiter.h: Include <string.h>.
45018         (mbuiter_multi_copy): New function.
45019         (mbui_copy): New macro.
45020
45021 2007-02-11  Bruno Haible  <bruno@clisp.org>
45022
45023         New module mbslen.
45024         * modules/mbslen: New file.
45025         * lib/mbslen.c: New file.
45026         * lib/string_.h (mbslen): New declaration.
45027         * m4/mbslen.m4: New file.
45028         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45029         GNULIB_MBSLEN.
45030         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
45031         * MODULES.html.sh (Internationalization functions): Add mbslen.
45032
45033 2007-02-11  Bruno Haible  <bruno@clisp.org>
45034
45035         Ensure O(n) worst-case complexity of strcasestr substitute.
45036         * lib/strcasestr.c: Include stdbool.h.
45037         (knuth_morris_pratt): New function.
45038         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
45039         bookkeeping indicates that it's worth it.
45040         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
45041
45042         * modules/strcasestr-tests: New file.
45043         * tests/test-strcasestr.c: New file.
45044
45045 2007-02-11  Bruno Haible  <bruno@clisp.org>
45046
45047         Ensure O(n) worst-case complexity of c_strcasestr.
45048         * lib/c-strcasestr.c: Include stdbool.h, string.h.
45049         (knuth_morris_pratt): New function.
45050         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
45051         the bookkeeping indicates that it's worth it.
45052         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
45053
45054         * modules/c-strcasestr-tests: New file.
45055         * tests/test-c-strcasestr.c: New file.
45056
45057 2007-02-11  Bruno Haible  <bruno@clisp.org>
45058
45059         Ensure O(n) worst-case complexity of c_strstr.
45060         * lib/c-strstr.c: Include stdbool.h, string.h.
45061         (knuth_morris_pratt): New function.
45062         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
45063         bookkeeping indicates that it's worth it.
45064         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
45065
45066         * lib/c-strstr.c: Complete rewrite for maintainability.
45067
45068         * modules/c-strstr-tests: New file.
45069         * tests/test-c-strstr.c: New file.
45070
45071 2007-02-11  Bruno Haible  <bruno@clisp.org>
45072
45073         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
45074         5.2.1 and earlier, whereby \055 was treated just like the range
45075         delimiter '-'.
45076         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
45077
45078 2007-02-08  Bruno Haible  <bruno@clisp.org>
45079
45080         * modules/regex (Depends-on): Add stdbool.
45081         Reported by Dalibor Topic <robilad@kaffe.org>.
45082
45083 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
45084
45085         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
45086         Prefer returning from main to exiting from it.
45087         Remove unnecessary parens after sizeof.
45088
45089 2007-02-05  Bruno Haible  <bruno@clisp.org>
45090
45091         New module mbssep.
45092         * modules/mbssep: New file.
45093         * lib/mbssep.c: New file.
45094         * lib/string_.h (strsep): Add a conditional link warning.
45095         (mbssep): New declaration.
45096         * m4/mbssep.m4: New file.
45097         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45098         GNULIB_MBSSEP.
45099         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
45100         * MODULES.html.sh (Internationalization functions): Add mbssep.
45101
45102 2007-02-05  Bruno Haible  <bruno@clisp.org>
45103
45104         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
45105         Optimize search in case of 1 delimiter.
45106
45107 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45108
45109         * lib/acl.h: Include sys/types.h before sys/acl.h.
45110
45111 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
45112
45113         Merge upstream fix for glibc bugzilla #3957:
45114
45115         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
45116
45117         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
45118         bit for RE_HAT_LISTS_NOT_NEWLINE.
45119         (build_charclass_op): Remove bogus comment.
45120
45121 2007-02-05  Simon Josefsson  <simon@josefsson.org>
45122
45123         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
45124
45125 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45126
45127         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
45128         * lib/memmem.c [!defined _LIBC]: Include config.h.
45129
45130 2007-02-04  Bruno Haible  <bruno@clisp.org>
45131
45132         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
45133         warning message.
45134
45135 2007-02-04  Bruno Haible  <bruno@clisp.org>
45136
45137         New module mbstok_r.
45138         * modules/mbstok_r: New file.
45139         * lib/mbstok_r.c: New file.
45140         * lib/string_.h (strtok_r): Change argument names to match the
45141         comments. Add a conditional link warning.
45142         (mbstok_r): New declaration.
45143         * m4/mbstok_r.m4: New file.
45144         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45145         GNULIB_MBSTOK_R.
45146         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
45147         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
45148
45149 2007-02-04  Bruno Haible  <bruno@clisp.org>
45150
45151         New module mbsspn.
45152         * modules/mbsspn: New file.
45153         * lib/mbsspn.c: New file.
45154         * lib/string_.h (strspn): Add a conditional link warning.
45155         (mbsspn): New declaration.
45156         * m4/mbsspn.m4: New file.
45157         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45158         GNULIB_MBSSPN.
45159         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
45160         * MODULES.html.sh (Internationalization functions): Add mbsspn.
45161
45162 2007-02-04  Bruno Haible  <bruno@clisp.org>
45163
45164         New module mbspbrk.
45165         * modules/mbspbrk: New file.
45166         * lib/mbspbrk.c: New file.
45167         * lib/string_.h (strpbrk): Add a conditional link warning.
45168         (mbspbrk): New declaration.
45169         * m4/mbspbrk.m4: New file.
45170         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45171         GNULIB_MBSPBRK.
45172         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
45173         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
45174
45175 2007-02-04  Bruno Haible  <bruno@clisp.org>
45176
45177         New module mbscspn.
45178         * modules/mbscspn: New file.
45179         * lib/mbscspn.c: New file.
45180         * lib/string_.h (strcspn): Add a conditional link warning.
45181         (mbscspn): New declaration.
45182         * m4/mbscspn.m4: New file.
45183         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45184         GNULIB_MBSCSPN.
45185         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
45186         * MODULES.html.sh (Internationalization functions): Add mbscspn.
45187
45188 2007-02-04  Bruno Haible  <bruno@clisp.org>
45189
45190         New module mbscasestr, reduced goal of strcasestr.
45191         * modules/mbscasestr: New file.
45192         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
45193         (mbscasestr): Renamed from strcasestr.
45194         * lib/strcasestr.c: Don't include mbuiter.h.
45195         (strcasestr): Remove support for multibyte locales.
45196         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
45197         Change the conditional link warning.
45198         (mbscasestr): New declaration.
45199         * m4/mbscasestr.m4: New file.
45200         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
45201         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
45202         REPLACE_STRCASESTR.
45203         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
45204         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45205         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45206         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
45207         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
45208         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
45209         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
45210         (Depends-on): Remove mbuiter.
45211         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
45212
45213 2007-02-04  Bruno Haible  <bruno@clisp.org>
45214
45215         Simplify handling of strncasecmp.
45216         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
45217         the conditional link warning.
45218         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45219         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
45220         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
45221         * modules/strcase (configure.ac): Don't invoke
45222         gl_STRING_MODULE_INDICATOR.
45223         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
45224
45225 2007-02-04  Bruno Haible  <bruno@clisp.org>
45226
45227         New module mbscasecmp, reduced goal of strcasecmp.
45228         * modules/mbscasecmp: New file.
45229         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
45230         (mbscasecmp): Renamed from strcasecmp.
45231         * lib/strcasecmp.c: Don't include mbuiter.h.
45232         (strcasecmp): Remove support for multibyte locales.
45233         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
45234         Change the conditional link warning.
45235         (mbscasecmp): New declaration.
45236         * m4/mbscasecmp.m4: New file.
45237         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
45238         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
45239         REPLACE_STRCASECMP.
45240         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
45241         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45242         GNULIB_MBSCASECMP.
45243         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
45244         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
45245         * modules/strcase (Files): Remove m4/mbrtowc.m4.
45246         (Depends-on): Remove mbuiter.
45247         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
45248
45249 2007-02-04  Bruno Haible  <bruno@clisp.org>
45250
45251         New module mbsstr. Remove module strstr.
45252         * modules/mbsstr: New file.
45253         * modules/strstr: Remove file.
45254         * lib/mbsstr.c: Renamed from lib/strstr.c.
45255         (mbsstr): Renamed from strstr.
45256         * lib/string_.h (strstr): Remove declaration. Change the conditional
45257         link warning.
45258         (mbsstr): New declaration.
45259         * m4/mbsstr.m4: New file.
45260         * m4/strstr.m4: Remove file.
45261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
45262         REPLACE_STRSTR.
45263         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
45264         Don't initialize GNULIB_STRSTR.
45265         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
45266         substitute GNULIB_STRSTR and REPLACE_STRSTR.
45267         * MODULES.html.sh (Internationalization functions): Add mbsstr.
45268         (Support for systems lacking ANSI C 89): Remove strstr.
45269
45270 2007-02-04  Bruno Haible  <bruno@clisp.org>
45271
45272         New module mbsrchr.
45273         * modules/mbsrchr: New file.
45274         * lib/mbsrchr.c: New file.
45275         * lib/string_.h (strrchr): Add a conditional link warning.
45276         (mbsrchr): New declaration.
45277         * m4/mbsrchr.m4: New file.
45278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45279         GNULIB_MBSRCHR.
45280         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
45281         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
45282
45283 2007-02-04  Bruno Haible  <bruno@clisp.org>
45284
45285         New module mbschr.
45286         * modules/mbschr: New file.
45287         * lib/mbschr.c: New file.
45288         * lib/string_.h (strchr): Add a conditional link warning.
45289         (mbschr): New declaration.
45290         * m4/mbschr.m4: New file.
45291         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
45292         GNULIB_MBSCHR.
45293         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
45294         * MODULES.html.sh (Internationalization functions): Add mbschr.
45295
45296 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
45297
45298         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
45299
45300         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
45301
45302 2007-02-04  Bruno Haible  <bruno@clisp.org>
45303
45304         New module description section 'configure.ac-early'.
45305         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
45306         (func_get_autoconf_early_snippet): New function.
45307         (func_import, func_create_testdir): Use it. Remove special cases for
45308         modules 'extensions' and 'lock'.
45309         * modules/extensions (configure.ac-early): Require
45310         gl_USE_SYSTEM_EXTENSIONS.
45311         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
45312
45313 2007-02-04  Bruno Haible  <bruno@clisp.org>
45314
45315         Make use of gcj-4.3's -fsource and -ftarget option.
45316         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
45317         and if so try the options -fsource and -ftarget.
45318         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
45319         source_version, ftarget_option, target_version arguments.
45320         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
45321         (is_envjavac_oldgcj_14_14_usable): Renamed from
45322         is_envjavac_gcj_14_14_usable.
45323         (is_envjavac_oldgcj_14_13_usable): Renamed from
45324         is_envjavac_gcj_14_13_usable.
45325         (is_gcj_present): Update.
45326         (is_gcj_43, is_gcj43_usable): New functions.
45327         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
45328         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
45329         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
45330         try the options -fsource and -ftarget.
45331
45332 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
45333
45334         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
45335         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
45336         larger value.
45337
45338 2007-02-03  Jim Meyering  <jim@meyering.net>
45339
45340         Give tools a better chance to allocate space for very large buffers.
45341         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
45342
45343         Make pwd and readlink work also when run with an unreadable parent dir
45344         on systems with openat support.
45345         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
45346         provided getcwd function, even when we have openat support.
45347         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
45348
45349 2007-02-02  Bruno Haible  <bruno@clisp.org>
45350
45351         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
45352         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
45353         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
45354         portability problems if one of these functions is only used on specific
45355         platforms.
45356         Reported by Paul Eggert.
45357
45358 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
45359
45360         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
45361         is causing more trouble than it's curing.
45362         * lib/regex_internal.h (__mempcpy): Remove.
45363         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
45364         (and make the code a tad smaller to boot).
45365         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
45366
45367 2007-02-02  Jim Meyering  <jim@meyering.net>
45368
45369         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
45370         section, not in the Makefile.am: one.
45371
45372 2007-02-02  Eric Blake  <ebb9@byu.net>
45373
45374         * lib/strchrnul.c: Always include config.h first.
45375
45376         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
45377         gnulib strstr is not necessary here.
45378
45379 2007-02-02  Simon Josefsson  <simon@josefsson.org>
45380
45381         * m4/socklen.m4: Fix typo.
45382
45383 2007-02-02  Eric Blake  <ebb9@byu.net>
45384
45385         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
45386         * modules/netinet_in (Makefile.am): Likewise.
45387
45388 2007-02-01  Bruno Haible  <bruno@clisp.org>
45389
45390         * lib/string_.h (GL_LINK_WARNING): New macro.
45391         (strcasecmp, strstr, strcasestr): If provided by the system,
45392         conditionally define as a macro that leads to a warning instead of to
45393         an error.
45394         (strncasecmp): Conditionally define as a macro that leads to a warning.
45395
45396 2007-02-01  Karl Berry  <karl@gnu.org>
45397
45398         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
45399
45400 2007-02-01  Bruno Haible  <bruno@clisp.org>
45401
45402         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
45403         renamings.
45404
45405 2007-02-01  Eric Blake  <ebb9@byu.net>
45406
45407         * modules/regex (Depends-on): Revert dependence on mempcpy.
45408         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
45409         module's definition of mempcpy.
45410         Reported by Paul Eggert.
45411
45412 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
45413
45414         * lib/string_.h: If the gnulib module XYZ is not present, undefine
45415         the symbol XYZ before redefining it.  This fixes a problem with
45416         programs that don't use XYZ, when compiled on systems that define
45417         XYZ to something else.
45418
45419 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
45420
45421         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
45422         occurs when "mkdir -m foo" creates a setgid directory that is (1)
45423         writeable to group or other and (2) is intended to have a special
45424         mode bit that is set or cleared.  In such a case, the directory
45425         should be neither group- nor other-writeable until the special
45426         mode bits are right.
45427
45428 2007-01-31  Eric Blake  <ebb9@byu.net>
45429
45430         * modules/mountlist (Depends-on): Add strstr.
45431
45432         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
45433         bug.
45434         * modules/string (Makefile.am): Remove redundant replacement.
45435         * modules/regex (Depends-on): Add mempcpy.
45436
45437 2007-01-31  Bruno Haible  <bruno@clisp.org>
45438
45439         New module description field 'Link'.
45440         * gnulib-tool (func_usage): Document --extract-link-directive.
45441         (sed_extract_prog): Recognize 'Link' directive.
45442         (func_get_link_directive): New function.
45443         (func_import): Show summary of link directives.
45444         Handle --extract-link-directive option.
45445         * modules/acl (Link): New section.
45446         * modules/clock-time (Link): New section.
45447         * modules/euidaccess (Link): New section.
45448         * modules/gettext (Link): New section.
45449         * modules/iconv (Link): New section.
45450         * modules/lock (Link): New section.
45451         * modules/nanosleep (Link): New section.
45452         * modules/readline (Link): New section.
45453
45454 2007-01-27  Bruno Haible  <bruno@clisp.org>
45455
45456         Enforce the use of gnulib modules for unportable <string.h> functions.
45457         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
45458         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
45459         (gl_HEADER_STRING_H_BODY): Require it.
45460         * lib/string_.h: If the gnulib module XYZ is not present, redefine
45461         the symbol XYZ to one that gives a link error.
45462         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
45463         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
45464         * modules/mempcpy (configure.ac): Likewise.
45465         * modules/memrchr (configure.ac): Likewise.
45466         * modules/stpcpy (configure.ac): Likewise.
45467         * modules/stpncpy (configure.ac): Likewise.
45468         * modules/strcase (configure.ac): Likewise.
45469         * modules/strcasestr (configure.ac): Likewise.
45470         * modules/strchrnul (configure.ac): Likewise.
45471         * modules/strdup (configure.ac): Likewise.
45472         * modules/strndup (configure.ac): Likewise.
45473         * modules/strnlen (configure.ac): Likewise.
45474         * modules/strpbrk (configure.ac): Likewise.
45475         * modules/strsep (configure.ac): Likewise.
45476         * modules/strstr (configure.ac): Likewise.
45477         * modules/strtok_r (configure.ac): Likewise.
45478
45479 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
45480
45481         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
45482
45483 2007-01-30  Jim Meyering  <jim@meyering.net>
45484
45485         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
45486
45487 2007-01-29  Bruno Haible  <bruno@clisp.org>
45488
45489         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
45490         * lib/execute.c: Likewise.
45491         * lib/pipe.c: Likewise.
45492         * lib/printf-args.h: Likewise.
45493         * lib/printf-args.c: Likewise.
45494         * lib/printf-parse.c: Likewise.
45495         * lib/vasnprintf.c: Likewise.
45496
45497 2007-01-29  Eric Blake  <ebb9@byu.net>
45498
45499         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
45500         declaration.
45501
45502 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
45503
45504         * lib/strptime.h (strptime): Use 'restrict' for args where
45505         POSIX requires this.
45506         * lib/strptime.c (strptime): Likewise.
45507         Change license notice from LGPL to GPL, since gnulib-tool will
45508         change this as needed.
45509         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
45510         defined.
45511         Include "strptime.h" first, to check interface.
45512         Do not #undef _LIBC and _NL_CURRENT.
45513         Do not include <stdlib.h>; no longer needed.
45514         Include "time_r.h" and declare ptime_locale_status
45515         only if _LIBC is not defined.
45516         (__P): Remove unused macro.
45517         (match_string): Bring back glibc version, but use it only if _LIBC
45518         is defined.
45519         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
45520         Remove unnecessary assertion and abort() call.
45521         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
45522         * m4/strptime.m4: Fix serial number comment.
45523         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
45524         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
45525         (Depends-on): Add time_r.
45526
45527 2007-01-29  Bruno Haible  <bruno@clisp.org>
45528
45529         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45530         strptime.
45531         * modules/strptime (Depends-on): Add stdbool.
45532         * lib/strptime.h: Include <time.h> always. Add comments.
45533
45534 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45535
45536         * modules/strptime: New file.
45537         * lib/strptime.h: New file.
45538         * lib/strptime.c: New file.
45539         * m4/strptime.m4: New file.
45540
45541 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
45542
45543         * MODULES.html.sh: New module mpsort.
45544         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
45545
45546         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
45547         a circularity problem with HP-UX ia64 reported by Bob Proulx in
45548         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
45549         All uses changed.
45550         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
45551         All uses changed.
45552         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
45553         to _Restrict_.
45554         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
45555         the parameter matches the prototype.
45556
45557 2007-01-28  Jim Meyering  <jim@meyering.net>
45558
45559         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
45560         sys/time.h here, reverting that part of the previous patch:
45561         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
45562
45563 2007-01-28  Bruno Haible  <bruno@clisp.org>
45564
45565         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
45566         value of $(SYS_TIME_H).
45567         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
45568         remove it conditionally, too. [added by Jim Meyering]
45569         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
45570         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
45571         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
45572         GETTIMEOFDAY_REPLACEMENT to 1.
45573
45574 2007-01-28  Bruno Haible  <bruno@clisp.org>
45575
45576         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
45577         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
45578         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
45579         Set UNISTD_H instead of UNISTD_H2.
45580         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
45581
45582 2007-01-28  Bruno Haible  <bruno@clisp.org>
45583
45584         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
45585         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
45586
45587 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45588
45589         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
45590         (func_create_testdir): Ensure C locale for `grep' and `tr'
45591         character ranges.
45592         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
45593         ACLOCAL_AMFLAGS parsing state machine.
45594
45595 2007-01-27  Bruno Haible  <bruno@clisp.org>
45596
45597         * modules/unistr/base: Update.
45598
45599 2007-01-27  Bruno Haible  <bruno@clisp.org>
45600
45601         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
45602         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
45603         * modules/unistr/u32-mbtouc-unsafe: Renamed from
45604         modules/unistr/u32-mbtouc.
45605         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
45606         * lib/unistr.h: Update.
45607         * lib/linebreak.c: Update.
45608         * modules/unistr/u32-mbtouc: Renamed from
45609         modules/unistr/u32-mbtouc-safe.
45610         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
45611         * lib/unistr.h: Update.
45612         * lib/unistr/u32-to-u8.c: Update.
45613         * lib/unistr/u32-to-u16.c: Update.
45614
45615 2007-01-27  Bruno Haible  <bruno@clisp.org>
45616
45617         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
45618         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
45619         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
45620         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
45621         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
45622         * modules/unistr/u16-mbtouc-unsafe: Renamed from
45623         modules/unistr/u16-mbtouc.
45624         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
45625         * lib/unistr.h: Update.
45626         * lib/linebreak.c: Update.
45627         * modules/linebreak: Update.
45628         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
45629         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
45630         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
45631         * modules/unistr/u16-mbtouc: Renamed from
45632         modules/unistr/u16-mbtouc-safe.
45633         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
45634         * lib/unistr.h: Update.
45635         * lib/unistr/u16-to-u8.c: Update.
45636         * modules/unistr/u16-to-u8: Update.
45637         * lib/unistr/u16-to-u32.c: Update.
45638         * modules/unistr/u16-to-u32: Update.
45639
45640 2007-01-27  Bruno Haible  <bruno@clisp.org>
45641
45642         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
45643         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
45644         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
45645         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
45646         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
45647         * modules/unistr/u8-mbtouc-unsafe: Renamed from
45648         modules/unistr/u8-mbtouc.
45649         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
45650         * lib/unistr.h: Update.
45651         * lib/striconveh.c: Update.
45652         * modules/striconveh: Update.
45653         * lib/linebreak.c: Update.
45654         * modules/linebreak: Update.
45655         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
45656         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
45657         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
45658         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
45659         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
45660         * lib/unistr.h: Update.
45661         * lib/striconveh.c: Update.
45662         * modules/striconveh: Update.
45663         * lib/unistr/u8-to-u16.c: Update.
45664         * modules/unistr/u8-to-u16: Update.
45665         * lib/unistr/u8-to-u32.c: Update.
45666         * modules/unistr/u8-to-u32: Update.
45667
45668 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45669
45670         Sync from Libtool.
45671         * lib/argz.c: Do not include strings.h nor memory.h, include
45672         string.h unconditionally.  Patch by Simon Josefsson.
45673
45674 2007-01-27  Bruno Haible  <bruno@clisp.org>
45675
45676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
45677         from gl_HEADER_STRING_H_BODY.
45678         (gl_HEADER_STRING_H_BODY): Require it.
45679         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
45680         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
45681         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
45682         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
45683         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
45684         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
45685         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45686         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
45687         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
45688         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
45689         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
45690         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
45691         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
45692         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45693         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
45694
45695 2007-01-27  Bruno Haible  <bruno@clisp.org>
45696
45697         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
45698         check_PROGRAMS into noinst_PROGRAMS.
45699         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
45700         check_PROGRAMS in this case.
45701         (func_import): Set for_test to false.
45702         (func_create_testdir): Set for_test to true.
45703
45704 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45705             Bruno Haible  <bruno@clisp.org>
45706
45707         * modules/strcasestr (Files): Remove lib/strcasestr.h.
45708         (Depends-on): Add string.
45709         (Includes): Use <string.h> instead of strcasestr.h.
45710         * modules/string (Makefile.am): Also substitute the value of
45711         REPLACE_STRCASESTR.
45712         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
45713         assume strcasestr is declared in <string.h> not <strings.h>. Also
45714         set REPLACE_STRCASESTR.
45715         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
45716         REPLACE_STRCASESTR.
45717         * lib/strcasestr.h: Remove file.
45718         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
45719         * lib/string_.h (strcasestr): New declaration.
45720
45721 2007-01-27  Bruno Haible  <bruno@clisp.org>
45722
45723         * lib/string_.h: Use 'extern'.
45724
45725 2007-01-27  Jim Meyering  <jim@meyering.net>
45726
45727         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
45728         of set-but-not-used local, "q".
45729
45730         * lib/mempcpy.c: Include <config.h> before <string.h>.
45731         This fixes a compilation error on HP-UX, due to the system's
45732         "restrict"-using mempcpy prototype.
45733
45734 2007-01-26  Bruno Haible  <bruno@clisp.org>
45735
45736         Small optimization.
45737         * lib/javacomp.c: Include c-strstr.h.
45738          (is_envjavac_gcj): Use c_strstr instead of strstr.
45739         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
45740
45741 2007-01-26  Bruno Haible  <bruno@clisp.org>
45742
45743         * MODULES.html.sh (Unicode string functions): Add the new modules.
45744
45745         * modules/uniconv/u32-strconv-to-locale: New file.
45746         * lib/uniconv/u32-strconv-to-locale.c: New file.
45747
45748         * modules/uniconv/u16-strconv-to-locale: New file.
45749         * lib/uniconv/u16-strconv-to-locale.c: New file.
45750
45751         * modules/uniconv/u8-strconv-to-locale: New file.
45752         * lib/uniconv/u8-strconv-to-locale.c: New file.
45753
45754         * modules/uniconv/u32-strconv-from-locale: New file.
45755         * lib/uniconv/u32-strconv-from-locale.c: New file.
45756
45757         * modules/uniconv/u16-strconv-from-locale: New file.
45758         * lib/uniconv/u16-strconv-from-locale.c: New file.
45759
45760         * modules/uniconv/u8-strconv-from-locale: New file.
45761         * lib/uniconv/u8-strconv-from-locale.c: New file.
45762
45763         * modules/uniconv/u32-strconv-to-enc: New file.
45764         * lib/uniconv/u32-strconv-to-enc.c: New file.
45765         * modules/uniconv/u32-strconv-to-enc-tests: New file.
45766         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
45767
45768         * modules/uniconv/u16-strconv-to-enc: New file.
45769         * lib/uniconv/u16-strconv-to-enc.c: New file.
45770         * lib/uniconv/u-strconv-to-enc.h: New file.
45771         * modules/uniconv/u16-strconv-to-enc-tests: New file.
45772         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
45773
45774         * modules/uniconv/u8-strconv-to-enc: New file.
45775         * lib/uniconv/u8-strconv-to-enc.c: New file.
45776         * modules/uniconv/u8-strconv-to-enc-tests: New file.
45777         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
45778
45779         * modules/uniconv/u32-strconv-from-enc: New file.
45780         * lib/uniconv/u32-strconv-from-enc.c: New file.
45781         * modules/uniconv/u32-strconv-from-enc-tests: New file.
45782         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
45783
45784         * modules/uniconv/u16-strconv-from-enc: New file.
45785         * lib/uniconv/u16-strconv-from-enc.c: New file.
45786         * modules/uniconv/u16-strconv-from-enc-tests: New file.
45787         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
45788
45789         * modules/uniconv/u8-strconv-from-enc: New file.
45790         * lib/uniconv/u8-strconv-from-enc.c: New file.
45791         * lib/uniconv/u-strconv-from-enc.h: New file.
45792         * modules/uniconv/u8-strconv-from-enc-tests: New file.
45793         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
45794
45795         * modules/uniconv/u32-conv-from-enc: New file.
45796         * lib/uniconv/u32-conv-from-enc.c: New file.
45797         * modules/uniconv/u32-conv-from-enc-tests: New file.
45798         * tests/uniconv/test-u32-conv-from-enc.c: New file.
45799
45800         * modules/uniconv/u16-conv-from-enc: New file.
45801         * lib/uniconv/u16-conv-from-enc.c: New file.
45802         * lib/uniconv/u-conv-from-enc.h: New file.
45803         * modules/uniconv/u16-conv-from-enc-tests: New file.
45804         * tests/uniconv/test-u16-conv-from-enc.c: New file.
45805
45806         * modules/uniconv/u8-conv-from-enc: New file.
45807         * lib/uniconv/u8-conv-from-enc.c: New file.
45808         * modules/uniconv/u8-conv-from-enc-tests: New file.
45809         * tests/uniconv/test-u8-conv-from-enc.c: New file.
45810
45811         * modules/uniconv/base: New file.
45812         * lib/uniconv.h: New file.
45813
45814 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45815
45816         * doc/gnulib-tool.texi (Initial import): Update to match current
45817         behavior with strdup module.
45818         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
45819         * lib/memmem.h: Remove; all uses removed.  This is now done
45820         by <string.h>.
45821         * lib/mempcpy.h: Likewise.
45822         * lib/memrchr.h: Likewise.
45823         * lib/stpcpy.h: Likewise.
45824         * lib/stpncpy.h: Likewise.
45825         * lib/strcase.h: Likewise.
45826         * lib/strchrnul.h: Likewise.
45827         * lib/strdup.h: Likewise.
45828         * lib/strndup.h: Likewise.
45829         * lib/strnlen.h: Likewise.
45830         * lib/strpbrk.h: Likewise.
45831         * lib/strsep.h: Likewise.
45832         * lib/strstr.h: Likewise.
45833         * lib/strtok_r.h: Likewise.
45834         * lib/string_.h: New file.
45835         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
45836         Rely on <string.h> instead.
45837         * lib/canon-host.c: Likewise.
45838         * lib/chdir-long.c: Likewise.
45839         * lib/concatpath.c: Likewise.
45840         * lib/exclude.c: Likewise.
45841         * lib/fchdir.c: Likewise.
45842         * lib/getaddrinfo.c: Likewise.
45843         * lib/getcwd.c: Likewise.
45844         * lib/getsubopt.c: Likewise.
45845         * lib/glob.c: Likewise.
45846         * lib/hard-locale.c: Likewise.
45847         * lib/iconvme.c: Likewise.
45848         * lib/javacomp.c: Likewise.
45849         * lib/mempcpy.c: Likewise.
45850         * lib/memrchr.c: Likewise.
45851         * lib/regex_internal.h: Likewise.
45852         * lib/stpncpy.c: Likewise.
45853         * lib/strcasecmp.c: Likewise.
45854         * lib/strchrnul.c: Likewise.
45855         * lib/strdup.c: Likewise.
45856         * lib/striconv.c: Likewise.
45857         * lib/striconveh.c: Likewise.
45858         * lib/striconveha.c: Likewise.
45859         * lib/strncasecmp.c: Likewise.
45860         * lib/strndup.c: Likewise.
45861         * lib/strnlen.c: Likewise.
45862         * lib/strsep.c: Likewise.
45863         * lib/strstr.c: Likewise.
45864         * lib/strtok_r.c: Likewise.
45865         * lib/userspec.c: Likewise.
45866         * lib/w32spawn.h: Likewise.
45867         * lib/xstrndup.c: Likewise.
45868         * lib/mountlist.c (strstr): Remove decl.
45869         * m4/string_h.m4: New file.
45870         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
45871         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
45872         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
45873         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
45874         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
45875         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
45876         Set REPLACE_STRCASECMP if necessary.
45877         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
45878         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
45879         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
45880         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
45881         HAVE_DECL_STRDUP if necessary.
45882         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
45883         since gl_FUNC_STRNDUP does that now.
45884         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
45885         Check for decl here...
45886         (gl_PREREQ_STRNLEN): ... not here.
45887         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
45888         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
45889         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
45890         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
45891         necessary.
45892         * modules/string: New file.
45893         * modules/memmem (Files): Remove special-purpose include file.
45894         (Depends-on): Add string.
45895         (Include): Include <string.h>, not the removed file.
45896         * modules/mempcpy: Likewise.
45897         * modules/memrchr: Likewise.
45898         * modules/stpcpy: Likewise.
45899         * modules/stpncpy: Likewise.
45900         * modules/strcase: Likewise.
45901         * modules/strchrnul: Likewise.
45902         * modules/strdup: Likewise.
45903         * modules/strndup: Likewise.
45904         * modules/strnlen: Likewise.
45905         * modules/strpbrk: Likewise.
45906         * modules/strsep: Likewise.
45907         * modules/strstr: Likewise.
45908         * modules/strtok_r: Likewise.
45909         * tests/test-dirname.c: Don't include "strdup.h", since
45910         <string.h> now suffices.
45911         * tests/test-memmem.c: Don't include "memmem.h", since
45912         <string.h> now suffices.
45913
45914 2007-01-25  Bruno Haible  <bruno@clisp.org>
45915
45916         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
45917         *resultp is 0.
45918
45919         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
45920         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
45921         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
45922         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
45923
45924         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
45925         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
45926         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
45927         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
45928         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
45929         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
45930
45931 2007-01-24  Bruno Haible  <bruno@clisp.org>
45932
45933         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
45934         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
45935         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
45936         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
45937         gl_FUNC_FTS_CORE.
45938         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
45939         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
45940         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45941         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
45942         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
45943         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
45944         gl_FUNC_FCHOWNAT.
45945         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
45946         gl_FUNC_STRFTIME.
45947         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
45948         Reported by Ralf Wildenhues.
45949
45950 2007-01-24  Bruno Haible  <bruno@clisp.org>
45951
45952         Drop AC_REQUIRE calls that are redundant with the module dependencies.
45953         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
45954         gl_GETADDRINFO.
45955         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
45956         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
45957         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
45958
45959 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
45960
45961         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
45962         Don't use 'exit'; just return from 'main'.
45963         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
45964
45965         * lib/fnmatch_.h: Readjust white space and comments to match
45966         glibc, to avoid spurious diffs.
45967
45968 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45969
45970         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
45971         2004-12-01 change by Jakub Jelinek, since this code won't compile
45972         if !LIBC.  Problem reported by Bob Proulx.
45973
45974 2007-01-23  Bruno Haible  <bruno@clisp.org>
45975
45976         * lib/striconveh.c: Include c-strcaseeq.h.
45977         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
45978         * modules/striconveh (Depends-on): Add c-strcaseeq.
45979
45980 2007-01-23  Bruno Haible  <bruno@clisp.org>
45981
45982         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
45983
45984         * modules/c-strcaseeq: New file.
45985         * lib/c-strcaseeq.h: New file.
45986
45987         * modules/streq: New file.
45988         * lib/streq.h: New file.
45989
45990 2007-01-23  Bruno Haible  <bruno@clisp.org>
45991
45992         * modules/striconveha-tests: New file.
45993         * tests/test-striconveha.c: New file.
45994
45995         * lib/striconveha.h: Include <stdbool.h>.
45996         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
45997         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
45998         (mem_iconveha_notranslit): Renamed from mem_iconveha.
45999         (mem_iconveha): New function.
46000         (str_iconveha_notranslit): Renamed from str_iconveha.
46001         (str_iconveha): New function.
46002         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
46003         c-strcase.
46004
46005 2007-01-23  Bruno Haible  <bruno@clisp.org>
46006
46007         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
46008         encodings without forgiving before trying any encoding with handler.
46009         (str_iconveha): Try all encodings without forgiving before trying any
46010         encoding with handler.
46011
46012 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
46013
46014         Import the following changes from libc.
46015
46016         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
46017
46018         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
46019
46020         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
46021
46022         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
46023         normal_bracket label.
46024
46025         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
46026
46027         [BZ #361]
46028         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
46029         to normal_bracket after fetching the next character.
46030
46031 2007-01-22  Bruno Haible  <bruno@clisp.org>
46032
46033         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
46034         argument.
46035         * lib/striconveh.c (iconv_carefully_1): New function.
46036         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
46037         argument.
46038         (str_cd_iconveh): Update.
46039         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
46040         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
46041         * tests/test-striconveh.c (MAGIC): New macro.
46042         (new_offsets): New function.
46043         (main): Test call with and without offsets.
46044
46045 2007-01-22  Bruno Haible  <bruno@clisp.org>
46046
46047         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
46048         * modules/sys_select (Makefile.am): Likewise.
46049         * modules/sys_socket (Makefile.am): Likewise.
46050         * modules/sys_time (Makefile.am): Likewise.
46051
46052 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
46053
46054         * modules/gettimeofday (License): Change from GPL to LGPL, since
46055         gettimeofday is a library function.
46056
46057 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46058
46059         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
46060
46061 2007-01-21  Bruno Haible  <bruno@clisp.org>
46062
46063         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
46064
46065 2007-01-21  Bruno Haible  <bruno@clisp.org>
46066
46067         * modules/striconveha: New file.
46068         * lib/striconveha.h: New file.
46069         * lib/striconveha.c: New file.
46070         * MODULES.html.sh (Internationalization functions): Add striconveha.
46071         * lib/striconv.c (str_iconv): Optimize the case of an empty input
46072         string.
46073         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
46074
46075 2007-01-21  Bruno Haible  <bruno@clisp.org>
46076
46077         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
46078         * lib/striconveh.c (str_iconveh): Likewise.
46079
46080 2007-01-21  Bruno Haible  <bruno@clisp.org>
46081
46082         * lib/striconveh.h (mem_iconveh): New declaration.
46083         * lib/striconveh.c (mem_iconveh): New function.
46084         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
46085
46086 2007-01-21  Bruno Haible  <bruno@clisp.org>
46087
46088         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
46089
46090         * lib/striconveh.h (mem_cd_iconveh): Change specification.
46091         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
46092         original result buffer.
46093         (str_cd_iconveh): Update.
46094         * tests/test-striconveh.c (main): Update.
46095
46096         * lib/striconv.h (mem_cd_iconv): Change specification.
46097         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
46098         result buffer.
46099         (str_cd_iconv): Update.
46100         * tests/test-striconv.c (main): Update.
46101
46102 2007-01-21  Bruno Haible  <bruno@clisp.org>
46103
46104         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
46105
46106 2007-01-20  Jim Meyering  <jim@meyering.net>
46107
46108         * lib/userspec.c (parse_with_separator): If a user or group string
46109         starts with "+", skip the corresponding name-to-ID look-up, since
46110         such a look-up must fail: user and group names may not include "+".
46111
46112 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
46113
46114         * lib/poll.c: Include sys/time.h and time.h unconditionally,
46115         since we now assume the sys_time module.
46116         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
46117         check for sys/time.h; no longer needed.
46118         * modules/poll (Depends-on): Depend on sys_time.
46119
46120 2007-01-18  Bruno Haible  <bruno@clisp.org>
46121
46122         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
46123         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46124
46125         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
46126         gettimeofday.
46127
46128         * tests/test-gettimeofday.c: Include <time.h>.
46129         (dummy): Remove variable.
46130
46131         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
46132         gl_HEADER_SYS_TIME_H.
46133         (gl_HEADER_SYS_TIME_H): New macro.
46134
46135         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
46136         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46137         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
46138         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
46139         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46140         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
46141         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
46142         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46143         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
46144         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
46145         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46146
46147         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
46148         last change; it caused a compilation error when cross-compiling to
46149         Cygwin.
46150
46151 2007-01-18  Jim Meyering  <jim@meyering.net>
46152
46153         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
46154         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
46155         than the race-prone "test -d sys || mkdir sys".
46156         (configure.ac): Use AC_PROG_MKDIR_P.
46157         * modules/sys_select: Likewise.
46158         * modules/sys_socket: Likewise.
46159         * modules/sys_time: Likewise.
46160
46161 2007-01-18  Eric Blake  <ebb9@byu.net>
46162
46163         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
46164         replace gettimeofday.
46165         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
46166         name, to avoid infinite recursion.
46167
46168 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
46169
46170         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
46171         module sys_time.
46172         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
46173         assume timespec.h defines struct timeval.
46174         * lib/settime.c: Likewise.
46175         * lib/utimens.c: Likewise.
46176         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
46177         since we now assume the gettimeofday module.
46178         * lib/tempname.c (__gen_tempname): Likewise.
46179         * lib/gettimeofday.h: Remove.
46180         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
46181         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
46182         Include <time.h>, for 'time()'.
46183         (localtime_buffer_addr): Also use this workaround if
46184         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
46185         to simplify the uses.  All uses changed.
46186         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
46187         that #undef is inside {}, and 'const' follows type name consistently.
46188         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
46189         (gettimeofday): Do not use the maximum possible value for
46190         tv->tv_usec, since that might break usages other than ls.c.
46191         Instead, we'll leave ls.c alone.  This undoes today's patch
46192         by Bruno.  Add a compile-time warning for 1s-clock resolution;
46193         we've never observed the problem but might as well keep the
46194         canary.
46195         * lib/nanosleep.c: Include timespec.h first, for interface check.
46196         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
46197         now assume the sys_time module.
46198         * lib/tempname.c: Likewise.
46199         * lib/timespec.h: Likewise.
46200         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
46201         needed.
46202         * lib/strftime.c: Likewise.
46203         * lib/timespec.h: Likewise.
46204         * lib/posixtm.c: Include posixtm.h first, for interface check.
46205         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
46206         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
46207         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
46208         * lib/sys_time_.h: New file.
46209         * lib/timespec.h (struct timespec): Use long int, not long.
46210         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46211         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
46212         Remove obsolescent call to AC_HEADER_TIME.
46213         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
46214         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
46215         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
46216         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
46217         Likewise.
46218         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
46219         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
46220         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
46221         into the sys_time module.  Check for gettimeofday just once.
46222         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
46223         for gettimeofday signature to just check the signature.  Merely
46224         compile it, since linking doesn't test signature.  Improve test for
46225         whether gettimeofday.o is actually needed.
46226         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
46227         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
46228         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
46229         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46230         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
46231         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
46232         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
46233         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
46234         than worrying about sys/time.h.
46235         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
46236         Don't bother worrying about TIME_WITH_SYS_TIME.
46237         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
46238         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
46239         * m4/sys_time_h.m4: New file.
46240         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
46241         Don't include sys/time.h.  Return from main rather than exiting.
46242         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
46243         all uses changed.
46244         * modules/gethrxtime (Depends-on): Add sys_time.
46245         * modules/gettime (Depends-on): Likewise.
46246         * modules/gettimeofday (Depends-on): Likewise.
46247         * modules/nanosleep (Depends-on): Likewise.
46248         * modules/settime (Depends-on): Likewise.
46249         * modules/tempname (Depends-on): Likewise.
46250         * modules/utimens (Depends-on): Likewise.
46251         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
46252         (Include:) Change back to <sys/time.h>.
46253         (Maintainer:) Add self.
46254         * modules/sys_time: New file.
46255         * modules/tempname (Depends-on): Add gettimeofday.
46256         * tests/test-gettimeofday.c: Include <sys/time.h>
46257         rather than gettimeofday.h.
46258
46259 2007-01-17  Bruno Haible  <bruno@clisp.org>
46260
46261         * gnulib-tool (func_get_license): Revert last patch. Instead, let
46262         the license default to GPL.
46263         (func_create_testdir): Don't complain if a module is LGPL and its
46264         tests module depends on GPLed modules.
46265
46266 2007-01-17  Bruno Haible  <bruno@clisp.org>
46267
46268         * lib/gettimeofday.c (gettimeofday): Add code for the case
46269         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
46270         maximum possible value for tv->tv_usec, rather than the minimum one.
46271
46272 2005-10-08  Martin Lambers  <marlam@marlam.de>
46273 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46274 2007-01-16  Bruno Haible  <bruno@clisp.org>
46275
46276         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
46277         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
46278         gl_FUNC_GETTIMEOFDAY.
46279         (Include): Add gettimeofday.h.
46280         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
46281         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
46282         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
46283         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
46284         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
46285         * lib/gettimeofday.h: New file.
46286         * lib/gettimeofday.c: Include <sys/timeb.h>.
46287         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
46288         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
46289         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
46290         fall back on time().
46291
46292         * tests/test-gettimeofday.c: New file.
46293         * modules/gettimeofday-tests: New file.
46294
46295 2007-01-16  Eric Blake  <ebb9@byu.net>
46296
46297         * modules/fnmatch (Depends-on): Depend on wchar.
46298         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
46299         * m4/fnmatch.m4: Likewise.
46300         * modules/mbchar (Makefile.am): Assume <wchar.h>.
46301         * m4/mbchar.m4: Likewise.
46302         * modules/mbswidth (Depends-on): Depend on wchar.
46303         * lib/mbswidth.c: Assume <wchar.h>.
46304         * m4/mbswidth.m4: Likewise.
46305         * modules/quotearg (Depends-on): Depend on wchar.
46306         * lib/quotearg.c: Assume <wchar.h>.
46307         * m4/quotearg.m4: Likewise.
46308         * modules/regex (Depends-on): Depend on wchar.
46309         * lib/regex_internal.h: Assume <wchar.h>.
46310         * m4/regex.m4: Likewise.
46311         * modules/stdint (Depends-on): Depend on wchar.
46312         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
46313         * m4/stdint.m4: Likewise.
46314         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
46315         * modules/strftime (Depends-on): Depend on wchar.
46316         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
46317         * modules/strtol (Depends-on): Depend on wchar.
46318         * lib/strtol.c: Assume <wchar.h>.
46319         * modules/wcwidth (Depends-on): Depend on wchar.
46320         * lib/wcwidth.h: Assume <wchar.h>.
46321         * m4/wcwidth.m4: Likewise.
46322
46323 2007-01-16  Bruno Haible  <bruno@clisp.org>
46324
46325         * modules/csharpexec-script: New, created from...
46326         * modules/csharpexec: ... this.
46327
46328 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
46329
46330         * modules/javaexec-script: New, created from...
46331         * modules/javaexec: ... this.
46332
46333 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46334
46335         * modules/poll (Dependencies): Add sys_select.
46336
46337 2007-01-15  Jim Meyering  <jim@meyering.net>
46338
46339         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
46340         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
46341         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
46342         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
46343
46344 2007-01-15  Bruno Haible  <bruno@clisp.org>
46345
46346         * modules/striconveh: New file.
46347         * lib/striconveh.h: New file.
46348         * lib/striconveh.c: New file.
46349         * MODULES.html.sh (Internationalization functions): Add striconveh.
46350
46351         * modules/striconveh-tests: New file.
46352         * tests/test-striconveh.c: New file.
46353
46354 2007-01-15  Bruno Haible  <bruno@clisp.org>
46355
46356         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
46357         not from GNU libiconv or GNU libc.
46358
46359 2007-01-15  Bruno Haible  <bruno@clisp.org>
46360
46361         * doc/gnulib-intro.texi (Copyright): Explain the different license
46362         terms for module descriptions, autoconf macros, tests, documentation.
46363
46364 2007-01-14  Bruno Haible  <bruno@clisp.org>
46365
46366         * modules/striconv-tests: New file.
46367         * tests/test-striconv.c: New file.
46368
46369 2007-01-14  Bruno Haible  <bruno@clisp.org>
46370
46371         * modules/iconv-tests: New file.
46372         * tests/test-iconv.c: New file.
46373
46374 2007-01-14  Bruno Haible  <bruno@clisp.org>
46375
46376         * gnulib-tool (func_get_license): For test modules, use the license of
46377         the main module.
46378
46379 2007-01-14  Bruno Haible  <bruno@clisp.org>
46380
46381         * modules/iconv (Include): Clarify that <iconv.h> can only be included
46382         if iconv is found to exist.
46383
46384 2007-01-14  Bruno Haible  <bruno@clisp.org>
46385
46386         * modules/c-ctype-tests: New file.
46387         * tests/test-c-ctype.c: New file.
46388
46389 2007-01-14  Bruno Haible  <bruno@clisp.org>
46390
46391         * modules/binary-io-tests: New file.
46392         * tests/test-binary-io.sh: New file.
46393         * tests/test-binary-io.c: New file.
46394
46395 2007-01-14  Bruno Haible  <bruno@clisp.org>
46396
46397         * modules/array-oset-tests: New file.
46398         * tests/test-array_oset.c: New file.
46399
46400 2007-01-14  Bruno Haible  <bruno@clisp.org>
46401
46402         * modules/array-list-tests: New file.
46403         * tests/test-array_list.c: New file.
46404
46405 2007-01-14  Bruno Haible  <bruno@clisp.org>
46406
46407         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
46408         and make.
46409         Reported by Simon Josefsson in
46410         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
46411
46412 2007-01-14  Bruno Haible  <bruno@clisp.org>
46413
46414         * modules/allocsa-tests: New file.
46415         * tests/test-allocsa.c: New file.
46416
46417 2007-01-14  Bruno Haible  <bruno@clisp.org>
46418
46419         * modules/fchdir (Depends-on): Add absolute-header.
46420         * modules/unistd (Depends-on): Likewise.
46421
46422 2006-12-30  Bruno Haible  <bruno@clisp.org>
46423
46424         * modules/fchdir: New file.
46425         * modules/unistd (Files): Add lib/unistd_.h.
46426         (Makefile.am): Generate unistd.h from unistd_.h.
46427         * lib/fchdir.c: New file.
46428         * lib/dirent_.h: New file.
46429         * lib/unistd_.h: New file.
46430         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
46431         * m4/fchdir.m4: New file.
46432         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
46433         (gl_HEADER_UNISTD): Invoke it.
46434         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
46435         function.
46436         * lib/backupfile.c (opendir, closedir): Undefine.
46437         * lib/chown.c (open, close): Undefine.
46438         * lib/clean-temp.c (open, close): Undefine.
46439         * lib/copy-file.c (open, close): Undefine.
46440         * lib/execute.c (open, close): Undefine.
46441         * lib/fsusage.c (open, close): Undefine.
46442         * lib/gc-gnulib.c (open, close): Undefine.
46443         * lib/getcwd.c (opendir, closedir): Undefine.
46444         * lib/glob.c (opendir, closedir): Undefine.
46445         * lib/javacomp.c (open, close): Undefine.
46446         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
46447         * lib/openat-proc.c (open, close): Undefine.
46448         * lib/pagealign_alloc.c (open, close): Undefine.
46449         * lib/pipe.c (open, close): Undefine.
46450         * lib/progreloc.c (open, close): Undefine.
46451         * lib/savedir.c (opendir, closedir): Undefine.
46452         * lib/utime.c (open, close): Undefine.
46453         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
46454
46455 2007-01-10  Bruno Haible  <bruno@clisp.org>
46456
46457         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
46458
46459 2007-01-12  Eric Blake  <ebb9@byu.net>
46460
46461         Provide a robust <wchar.h>.  Further simplifications are now
46462         possible in other modules, but not included here.
46463         * modules/wchar: New module.
46464         * m4/wchar.m4: New file.
46465         * lib/wchar_.h: Likewise.
46466         * modules/mbchar (Depends-on): Depend on wchar, as the first use
46467         of the new module.
46468         * MODULES.html.sh (Extended multibyte and wide character utilities):
46469         New section.
46470
46471 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
46472
46473         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
46474         to a reasonable default for memory allocation.
46475         (xreadlink): Don't allocate a huge buffer, to work around a buggy
46476         file system that reports garbage st_size values for symlinks.
46477         Problem reported by Liyang Hu.
46478
46479 2007-01-11  Simon Josefsson  <simon@josefsson.org>
46480
46481         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
46482         Emacs .#* auto-save files).
46483
46484 2007-01-11  Bruno Haible  <bruno@clisp.org>
46485
46486         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
46487         directory.
46488
46489 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
46490
46491         Use @...@ consistently in lib/wctype_.h.
46492         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
46493         on it being set to 1 or 0.
46494         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
46495         go back to AC_SUBSTing it.
46496         * modules/wctype (Makefile.am): Undo previous change.
46497
46498 2007-01-10  Eric Blake  <ebb9@byu.net>
46499
46500         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
46501         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
46502         * modules/wctype (Makefile.am): Likewise.
46503         Reported by Chris McGuire.
46504
46505 2007-01-10  Jim Meyering  <jim@meyering.net>
46506
46507         fts.c: a small readability/maintainability improvement
46508         * lib/fts.c (fts_read): Make this code slightly more readable and
46509         maintainable by hoisting the "sp->fts_cur = p" assignments to
46510         immediately follow the statements that set P.  Derived from
46511         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
46512
46513 2007-01-10  Eric Blake  <ebb9@byu.net>
46514
46515         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
46516         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
46517         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46518         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
46519         Reported by Chris McGuire.
46520
46521 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46522
46523         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
46524         in sed script.
46525
46526 2007-01-09  Bruno Haible  <bruno@clisp.org>
46527
46528         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
46529         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
46530         variables.
46531         (func_module): Use them.
46532
46533 2007-01-09  Bruno Haible  <bruno@clisp.org>
46534
46535         * modules/unistr/base: New file.
46536         * lib/unistr.h: New file.
46537
46538         * modules/unistr/u8-to-u16: New file.
46539         * lib/unistr/u8-to-u16.c: New file.
46540
46541         * modules/unistr/u8-to-u32: New file.
46542         * lib/unistr/u8-to-u32.c: New file.
46543
46544         * modules/unistr/u16-to-u8: New file.
46545         * lib/unistr/u16-to-u8.c: New file.
46546
46547         * modules/unistr/u16-to-u32: New file.
46548         * lib/unistr/u16-to-u32.c: New file.
46549
46550         * modules/unistr/u32-to-u8: New file.
46551         * lib/unistr/u32-to-u8.c: New file.
46552
46553         * modules/unistr/u32-to-u16: New file.
46554         * lib/unistr/u32-to-u16.c: New file.
46555
46556         * modules/unistr/u8-check: New file.
46557         * modules/unistr/u16-check: New file.
46558         * modules/unistr/u32-check: New file.
46559         * lib/unistr/u8-check.c: New file.
46560         * lib/unistr/u16-check.c: New file.
46561         * lib/unistr/u32-check.c: New file.
46562
46563         * modules/unistr/u8-chr: New file.
46564         * modules/unistr/u16-chr: New file.
46565         * modules/unistr/u32-chr: New file.
46566         * lib/unistr/u8-chr.c: New file.
46567         * lib/unistr/u16-chr.c: New file.
46568         * lib/unistr/u32-chr.c: New file.
46569
46570         * modules/unistr/u8-cmp: New file.
46571         * modules/unistr/u16-cmp: New file.
46572         * modules/unistr/u32-cmp: New file.
46573         * lib/unistr/u8-cmp.c: New file.
46574         * lib/unistr/u16-cmp.c: New file.
46575         * lib/unistr/u32-cmp.c: New file.
46576
46577         * modules/unistr/u8-cpy: New file.
46578         * modules/unistr/u16-cpy: New file.
46579         * modules/unistr/u32-cpy: New file.
46580         * lib/unistr/u8-cpy.c: New file.
46581         * lib/unistr/u16-cpy.c: New file.
46582         * lib/unistr/u32-cpy.c: New file.
46583         * lib/unistr/u-cpy.h: New file.
46584
46585         * modules/unistr/u8-cpy-alloc: New file.
46586         * modules/unistr/u16-cpy-alloc: New file.
46587         * modules/unistr/u32-cpy-alloc: New file.
46588         * lib/unistr/u8-cpy-alloc.c: New file.
46589         * lib/unistr/u16-cpy-alloc.c: New file.
46590         * lib/unistr/u32-cpy-alloc.c: New file.
46591         * lib/unistr/u-cpy-alloc.h: New file.
46592
46593         * modules/unistr/u8-endswith: New file.
46594         * modules/unistr/u16-endswith: New file.
46595         * modules/unistr/u32-endswith: New file.
46596         * lib/unistr/u8-endswith.c: New file.
46597         * lib/unistr/u16-endswith.c: New file.
46598         * lib/unistr/u32-endswith.c: New file.
46599         * lib/unistr/u-endswith.h: New file.
46600
46601         * modules/unistr/u8-mblen: New file.
46602         * modules/unistr/u16-mblen: New file.
46603         * modules/unistr/u32-mblen: New file.
46604         * lib/unistr/u8-mblen.c: New file.
46605         * lib/unistr/u16-mblen.c: New file.
46606         * lib/unistr/u32-mblen.c: New file.
46607
46608         * modules/unistr/u8-mbtouc: New file.
46609         * modules/unistr/u16-mbtouc: New file.
46610         * modules/unistr/u32-mbtouc: New file.
46611         * lib/unistr/u8-mbtouc.c: New file.
46612         * lib/unistr/u16-mbtouc.c: New file.
46613         * lib/unistr/u32-mbtouc.c: New file.
46614
46615         * modules/unistr/u8-mbtouc-safe: New file.
46616         * modules/unistr/u16-mbtouc-safe: New file.
46617         * modules/unistr/u32-mbtouc-safe: New file.
46618         * lib/unistr/u8-mbtouc-safe.c: New file.
46619         * lib/unistr/u16-mbtouc-safe.c: New file.
46620         * lib/unistr/u32-mbtouc-safe.c: New file.
46621
46622         * modules/unistr/u8-move: New file.
46623         * modules/unistr/u16-move: New file.
46624         * modules/unistr/u32-move: New file.
46625         * lib/unistr/u8-move.c: New file.
46626         * lib/unistr/u16-move.c: New file.
46627         * lib/unistr/u32-move.c: New file.
46628         * lib/unistr/u-move.h: New file.
46629
46630         * modules/unistr/u8-next: New file.
46631         * modules/unistr/u16-next: New file.
46632         * modules/unistr/u32-next: New file.
46633         * lib/unistr/u8-next.c: New file.
46634         * lib/unistr/u16-next.c: New file.
46635         * lib/unistr/u32-next.c: New file.
46636
46637         * modules/unistr/u8-prev: New file.
46638         * modules/unistr/u16-prev: New file.
46639         * modules/unistr/u32-prev: New file.
46640         * lib/unistr/u8-prev.c: New file.
46641         * lib/unistr/u16-prev.c: New file.
46642         * lib/unistr/u32-prev.c: New file.
46643
46644         * modules/unistr/u8-set: New file.
46645         * modules/unistr/u16-set: New file.
46646         * modules/unistr/u32-set: New file.
46647         * lib/unistr/u8-set.c: New file.
46648         * lib/unistr/u16-set.c: New file.
46649         * lib/unistr/u32-set.c: New file.
46650         * lib/unistr/u-set.h: New file.
46651
46652         * modules/unistr/u8-startswith: New file.
46653         * modules/unistr/u16-startswith: New file.
46654         * modules/unistr/u32-startswith: New file.
46655         * lib/unistr/u8-startswith.c: New file.
46656         * lib/unistr/u16-startswith.c: New file.
46657         * lib/unistr/u32-startswith.c: New file.
46658         * lib/unistr/u-startswith.h: New file.
46659
46660         * modules/unistr/u8-stpcpy: New file.
46661         * modules/unistr/u16-stpcpy: New file.
46662         * modules/unistr/u32-stpcpy: New file.
46663         * lib/unistr/u8-stpcpy.c: New file.
46664         * lib/unistr/u16-stpcpy.c: New file.
46665         * lib/unistr/u32-stpcpy.c: New file.
46666         * lib/unistr/u-stpcpy.h: New file.
46667
46668         * modules/unistr/u8-stpncpy: New file.
46669         * modules/unistr/u16-stpncpy: New file.
46670         * modules/unistr/u32-stpncpy: New file.
46671         * lib/unistr/u8-stpncpy.c: New file.
46672         * lib/unistr/u16-stpncpy.c: New file.
46673         * lib/unistr/u32-stpncpy.c: New file.
46674         * lib/unistr/u-stpncpy.h: New file.
46675
46676         * modules/unistr/u8-strcat: New file.
46677         * modules/unistr/u16-strcat: New file.
46678         * modules/unistr/u32-strcat: New file.
46679         * lib/unistr/u8-strcat.c: New file.
46680         * lib/unistr/u16-strcat.c: New file.
46681         * lib/unistr/u32-strcat.c: New file.
46682         * lib/unistr/u-strcat.h: New file.
46683
46684         * modules/unistr/u8-strchr: New file.
46685         * modules/unistr/u16-strchr: New file.
46686         * modules/unistr/u32-strchr: New file.
46687         * lib/unistr/u8-strchr.c: New file.
46688         * lib/unistr/u16-strchr.c: New file.
46689         * lib/unistr/u32-strchr.c: New file.
46690
46691         * modules/unistr/u8-strcmp: New file.
46692         * modules/unistr/u16-strcmp: New file.
46693         * modules/unistr/u32-strcmp: New file.
46694         * lib/unistr/u8-strcmp.c: New file.
46695         * lib/unistr/u16-strcmp.c: New file.
46696         * lib/unistr/u32-strcmp.c: New file.
46697
46698         * modules/unistr/u8-strcpy: New file.
46699         * modules/unistr/u16-strcpy: New file.
46700         * modules/unistr/u32-strcpy: New file.
46701         * lib/unistr/u8-strcpy.c: New file.
46702         * lib/unistr/u16-strcpy.c: New file.
46703         * lib/unistr/u32-strcpy.c: New file.
46704         * lib/unistr/u-strcpy.h: New file.
46705
46706         * modules/unistr/u8-strcspn: New file.
46707         * modules/unistr/u16-strcspn: New file.
46708         * modules/unistr/u32-strcspn: New file.
46709         * lib/unistr/u8-strcspn.c: New file.
46710         * lib/unistr/u16-strcspn.c: New file.
46711         * lib/unistr/u32-strcspn.c: New file.
46712         * lib/unistr/u-strcspn.h: New file.
46713
46714         * modules/unistr/u8-strdup: New file.
46715         * modules/unistr/u16-strdup: New file.
46716         * modules/unistr/u32-strdup: New file.
46717         * lib/unistr/u8-strdup.c: New file.
46718         * lib/unistr/u16-strdup.c: New file.
46719         * lib/unistr/u32-strdup.c: New file.
46720         * lib/unistr/u-strdup.h: New file.
46721
46722         * modules/unistr/u8-strlen: New file.
46723         * modules/unistr/u16-strlen: New file.
46724         * modules/unistr/u32-strlen: New file.
46725         * lib/unistr/u8-strlen.c: New file.
46726         * lib/unistr/u16-strlen.c: New file.
46727         * lib/unistr/u32-strlen.c: New file.
46728         * lib/unistr/u-strlen.h: New file.
46729
46730         * modules/unistr/u8-strmblen: New file.
46731         * modules/unistr/u16-strmblen: New file.
46732         * modules/unistr/u32-strmblen: New file.
46733         * lib/unistr/u8-strmblen.c: New file.
46734         * lib/unistr/u16-strmblen.c: New file.
46735         * lib/unistr/u32-strmblen.c: New file.
46736
46737         * modules/unistr/u8-strmbtouc: New file.
46738         * modules/unistr/u16-strmbtouc: New file.
46739         * modules/unistr/u32-strmbtouc: New file.
46740         * lib/unistr/u8-strmbtouc.c: New file.
46741         * lib/unistr/u16-strmbtouc.c: New file.
46742         * lib/unistr/u32-strmbtouc.c: New file.
46743
46744         * modules/unistr/u8-strncat: New file.
46745         * modules/unistr/u16-strncat: New file.
46746         * modules/unistr/u32-strncat: New file.
46747         * lib/unistr/u8-strncat.c: New file.
46748         * lib/unistr/u16-strncat.c: New file.
46749         * lib/unistr/u32-strncat.c: New file.
46750         * lib/unistr/u-strncat.h: New file.
46751
46752         * modules/unistr/u8-strncmp: New file.
46753         * modules/unistr/u16-strncmp: New file.
46754         * modules/unistr/u32-strncmp: New file.
46755         * lib/unistr/u8-strncmp.c: New file.
46756         * lib/unistr/u16-strncmp.c: New file.
46757         * lib/unistr/u32-strncmp.c: New file.
46758
46759         * modules/unistr/u8-strncpy: New file.
46760         * modules/unistr/u16-strncpy: New file.
46761         * modules/unistr/u32-strncpy: New file.
46762         * lib/unistr/u8-strncpy.c: New file.
46763         * lib/unistr/u16-strncpy.c: New file.
46764         * lib/unistr/u32-strncpy.c: New file.
46765         * lib/unistr/u-strncpy.h: New file.
46766
46767         * modules/unistr/u8-strnlen: New file.
46768         * modules/unistr/u16-strnlen: New file.
46769         * modules/unistr/u32-strnlen: New file.
46770         * lib/unistr/u8-strnlen.c: New file.
46771         * lib/unistr/u16-strnlen.c: New file.
46772         * lib/unistr/u32-strnlen.c: New file.
46773         * lib/unistr/u-strnlen.h: New file.
46774
46775         * modules/unistr/u8-strpbrk: New file.
46776         * modules/unistr/u16-strpbrk: New file.
46777         * modules/unistr/u32-strpbrk: New file.
46778         * lib/unistr/u8-strpbrk.c: New file.
46779         * lib/unistr/u16-strpbrk.c: New file.
46780         * lib/unistr/u32-strpbrk.c: New file.
46781         * lib/unistr/u-strpbrk.h: New file.
46782
46783         * modules/unistr/u8-strrchr: New file.
46784         * modules/unistr/u16-strrchr: New file.
46785         * modules/unistr/u32-strrchr: New file.
46786         * lib/unistr/u8-strrchr.c: New file.
46787         * lib/unistr/u16-strrchr.c: New file.
46788         * lib/unistr/u32-strrchr.c: New file.
46789
46790         * modules/unistr/u8-strspn: New file.
46791         * modules/unistr/u16-strspn: New file.
46792         * modules/unistr/u32-strspn: New file.
46793         * lib/unistr/u8-strspn.c: New file.
46794         * lib/unistr/u16-strspn.c: New file.
46795         * lib/unistr/u32-strspn.c: New file.
46796         * lib/unistr/u-strspn.h: New file.
46797
46798         * modules/unistr/u8-strstr: New file.
46799         * modules/unistr/u16-strstr: New file.
46800         * modules/unistr/u32-strstr: New file.
46801         * lib/unistr/u8-strstr.c: New file.
46802         * lib/unistr/u16-strstr.c: New file.
46803         * lib/unistr/u32-strstr.c: New file.
46804         * lib/unistr/u-strstr.h: New file.
46805
46806         * modules/unistr/u8-strtok: New file.
46807         * modules/unistr/u16-strtok: New file.
46808         * modules/unistr/u32-strtok: New file.
46809         * lib/unistr/u8-strtok.c: New file.
46810         * lib/unistr/u16-strtok.c: New file.
46811         * lib/unistr/u32-strtok.c: New file.
46812         * lib/unistr/u-strtok.h: New file.
46813
46814         * modules/unistr/u8-uctomb: New file.
46815         * modules/unistr/u16-uctomb: New file.
46816         * modules/unistr/u32-uctomb: New file.
46817         * lib/unistr/u8-uctomb.c: New file.
46818         * lib/unistr/u16-uctomb.c: New file.
46819         * lib/unistr/u32-uctomb.c: New file.
46820
46821         * MODULES.html.sh (Unicode string functions): Add the new modules.
46822
46823 2007-01-08  Bruno Haible  <bruno@clisp.org>
46824
46825         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
46826         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
46827         subdirectories.
46828
46829 2007-01-08  Karl Berry  <karl@gnu.org>
46830
46831         * doc/error.texi: mention that main() fns must set program_name
46832         when progname is used.
46833
46834 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
46835
46836         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
46837         WCTYPE_H is empty, for the benefit of builds from non-distclean
46838         directories.  Problem reported by Eric Blake in
46839         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
46840
46841 2007-01-08  Bruno Haible  <bruno@clisp.org>
46842
46843         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
46844         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
46845         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
46846         PROVIDE_CANONICALIZE_FILENAME_MODE.
46847         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
46848
46849 2007-01-08  Bruno Haible  <bruno@clisp.org>
46850
46851         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
46852         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
46853         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
46854         * lib/fts.c: Likewise.
46855         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
46856
46857 2006-12-25  Bruno Haible  <bruno@clisp.org>
46858
46859         * modules/utf8-ucs4-safe: New file.
46860         * lib/utf8-ucs4-safe.h: New file.
46861         * lib/unistr/utf8-ucs4-safe.c: New file.
46862
46863         * modules/utf16-ucs4-safe: New file.
46864         * lib/utf16-ucs4-safe.h: New file.
46865         * lib/unistr/utf16-ucs4-safe.c: New file.
46866
46867         * MODULES.html.sh (Unicode string functions): Add the new modules.
46868
46869 2007-01-08  Bruno Haible  <bruno@clisp.org>
46870
46871         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
46872         (Depends-on): Add unitypes.
46873         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46874         (u8_mbtouc_aux): Move out to separate file.
46875         (u8_mbtouc): Use ucs4_t, uint8_t types.
46876         * lib/unistr/utf8-ucs4.c: New file.
46877
46878         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
46879         (Depends-on): Add unitypes.
46880         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46881         (u16_mbtouc_aux): Move out to separate file.
46882         (u16_mbtouc): Use ucs4_t, uint16_t types.
46883         * lib/unistr/utf16-ucs4.c: New file.
46884
46885         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
46886         (Depends-on): Add unitypes.
46887         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
46888         (u8_uctomb_aux): Move out to separate file.
46889         (u8_uctomb): Use ucs4_t, uint8_t types.
46890         * lib/unistr/ucs4-utf8.c: New file.
46891
46892         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
46893         (Depends-on): Add unitypes.
46894         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
46895         (u16_uctomb_aux): Move out to separate file.
46896         (u16_uctomb): Use ucs4_t, uint16_t types.
46897         * lib/unistr/ucs4-utf16.c: New file.
46898
46899 2006-12-25  Bruno Haible  <bruno@clisp.org>
46900
46901         * modules/unitypes: New file.
46902         * lib/unitypes.h: New file.
46903         * MODULES.html.sh (func_all_modules): New section "Unicode string
46904         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
46905         this section. Add unitypes.
46906
46907 2007-01-08  Bruno Haible  <bruno@clisp.org>
46908
46909         Avoid variable names that conflict with those from libtool.
46910         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
46911         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
46912         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
46913         library_names_spec to acl_library_names_spec, hardcode_* to
46914         acl_hardcode_*.
46915         Reported by Ralf Wildenhues.
46916
46917 2007-01-08  Bruno Haible  <bruno@clisp.org>
46918
46919         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
46920         definition.
46921         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
46922         definition.
46923         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
46924         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
46925         definition.
46926         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
46927         definition.
46928         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
46929         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
46930         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
46931         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
46932         definition.
46933         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
46934         definition.
46935         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
46936         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
46937         GC_USE_<algorithm>.
46938         * lib/gc-libgcrypt.c: Likewise.
46939         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
46940         * modules/gc-arctwo (configure.ac): Likewise.
46941         * modules/gc-des (configure.ac): Likewise.
46942         * modules/gc-hmac-md5 (configure.ac): Likewise.
46943         * modules/gc-hmac-sha1 (configure.ac): Likewise.
46944         * modules/gc-md2 (configure.ac): Likewise.
46945         * modules/gc-md4 (configure.ac): Likewise.
46946         * modules/gc-md5 (configure.ac): Likewise.
46947         * modules/gc-random (configure.ac): Likewise.
46948         * modules/gc-rijndael (configure.ac): Likewise.
46949         * modules/gc-sha1 (configure.ac): Likewise.
46950
46951 2007-01-08  Bruno Haible  <bruno@clisp.org>
46952
46953         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
46954         macro definition.
46955         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
46956         definition.
46957         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
46958         definition.
46959         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
46960         * modules/fcntl-safer (configure.ac): Likewise.
46961         * modules/fopen-safer (configure.ac): Likewise.
46962         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
46963         GNULIB_FWRITEERROR macro definition.
46964
46965 2007-01-08  Bruno Haible  <bruno@clisp.org>
46966
46967         * m4/gnulib-common.m4: New file.
46968         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
46969         (func_get_filelist): Add m4/gnulib-common.m4.
46970
46971 2007-01-08  Bruno Haible  <bruno@clisp.org>
46972
46973         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
46974         command.
46975
46976 2007-01-08  Jim Meyering  <jim@meyering.net>
46977
46978         Use a more robust test for a "can't happen" condition.
46979         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
46980         narrowed the st_size value.  Presuming the "can't happen" condition
46981         is true, that narrowing could conceivably convert an invalid st_size
46982         value into a valid one.  Instead, use a change based on Matthew
46983         Woehlke's original patch.
46984
46985         Slight readability improvement: use an assert-like macro
46986         in place of literal "abort ()" uses.
46987         * lib/fts.c (fts_assert): Define.
46988         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
46989         Use this macro instead of a bare 'abort'.
46990
46991 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
46992
46993         Don't worry about using IRIX 5.3's wctype.h broken definitions;
46994         simply work around them.
46995         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
46996         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
46997         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
46998         declaring.
46999         Don't bother to define as macros, since the standard doesn't require it.
47000         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
47001         longer worry about IRIX 5.3.
47002         (HAVE_WCTYPE_CTMP_BUG): Remove.
47003
47004 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
47005
47006         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
47007         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
47008         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
47009         Problems reported by Georg Schwarz for IRIX 5.3.
47010
47011         * gnulib-tool (autoconf_minversion): Take the maximum version number
47012         found, not the minimum.  Problem reported by James Youngman.
47013
47014 2007-01-03  Karl Berry  <karl@gnu.org>
47015
47016         * doc/error.texi: new file, explaining interaction with progname.
47017         * doc/gnulib.texi: include it.  Update copyright.
47018
47019 2007-01-03  Simon Josefsson  <simon@josefsson.org>
47020
47021         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
47022         AC_CANONICAL_HOST, to improve autobuild outputs.
47023
47024 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
47025             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
47026
47027         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
47028         sockets, server sockets, and other file descriptors.  Count errors
47029         to compute the return value.  Reorder the code a bit to be easier
47030         to follow.  Don't set event bits that were not requested (except
47031         POLLERR and POLLHUP).
47032
47033 2007-01-01  Bruno Haible  <bruno@clisp.org>
47034
47035         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
47036
47037 2007-01-03  Jim Meyering  <jim@meyering.net>
47038
47039         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
47040
47041 2007-01-02  Bruno Haible  <bruno@clisp.org>
47042
47043         * modules/settime (Include): Require timespec.h.
47044         * modules/nanosleep (Include): Likewise.
47045
47046 2007-01-01  Bruno Haible  <bruno@clisp.org>
47047
47048         * gnulib-tool (func_emit_copyright_notice): Bump year.
47049         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
47050
47051 2007-01-01  Bruno Haible  <bruno@clisp.org>
47052
47053         Improve support for OpenBSD.
47054         * build-aux/config.rpath (libname_spec): Export.
47055         (library_names_spec): New variable. Export.
47056         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
47057         library_names_spec from the config.rpath output. Locate shared library
47058         through the name pattern in library_names_spec.
47059
47060 2007-01-01  Eric Blake  <ebb9@byu.net>
47061
47062         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
47063
47064 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
47065
47066         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
47067         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
47068         assume the C locale, and avoid an "eval" that could cause trouble.
47069         Problem with SORT reported by Bob Proulx.
47070
47071         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
47072         Define.  Trivial patch from Henning Nielsen Lund, originally
47073         sent to bug-grep@gnu.org today.
47074
47075 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
47076
47077         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
47078         struct stat.  Problem reported by Henning Nielsen Lund.
47079         * lib/acl.c: Include acl.h first, to check interface.  Don't
47080         bother to include sys/types.h and sys/stat.h again.
47081
47082 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
47083
47084         Import the following change from libc; problem reported by
47085         Sven Verdoolaege.
47086
47087         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
47088
47089         [BZ #1373]
47090         * lib/argp.h: Remove __NTH for __argp_usage inline function.
47091
47092 2006-12-28  Jim Meyering  <jim@meyering.net>
47093
47094         * build-aux/announce-gen: Do not assume that the package
47095         builds any of tar.gz, tar.bz2, and .xdelta files.
47096         Suggestion from Simon Josefsson.
47097
47098 2006-12-28  Simon Josefsson  <simon@josefsson.org>
47099
47100         * modules/announce-gen: New file.
47101
47102 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
47103
47104         * lib/mbchar.h: Just include <wctype.h>; the wctype module
47105         handles its gotchas now.
47106         * lib/mbswidth.c: Likewise.
47107         * lib/wcwidth.h: Likewise.
47108         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
47109         and iswcntrl; the wctype module does this stuff now.
47110         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47111         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47112         * modules/mbchar (Depends-on): Add wctype.
47113         * modules/mbswidth (Depends-on): Likewise.
47114         * modules/wcwidth (Depends-on): Likewise.
47115
47116 2006-12-27  Eric Blake  <ebb9@byu.net>
47117
47118         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
47119         module uses more than what <wctype.h> is required to provide.
47120
47121 2006-12-26  Eric Blake  <ebb9@byu.net>
47122
47123         * gnulib-tool (sed_extract_prog): Avoid space-tab.
47124
47125 2006-12-26  Eric Blake  <ebb9@byu.net>
47126
47127         * modules/absolute-header: New module.
47128         * modules/fcntl (Depends-on): Depend on it.
47129         * modules/inttypes (Depends-on): Likewise.
47130         * modules/stdint (Depends-on): Likewise.
47131         * modules/sys_stat (Depends-on): Likewise.
47132         * modules/wctype (Depends-on): Likewise.
47133         * MODULES.html.sh (Support for building libraries and
47134         executables): Document it.
47135
47136 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
47137
47138         * gnulib-tool (SED): Remove, undoing previous change.
47139         The problem was that it broke coreutils on Solaris, because
47140         "sed --posix" leaked into a makefile.
47141         (sed): New alias, if 'alias' and GNU sed.
47142
47143 2006-12-24  Jim Meyering  <jim@meyering.net>
47144
47145         Work around an fchownat bug in glibc-2.4:
47146         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
47147         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
47148         in spite of the -P option.
47149         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
47150         New macros.
47151         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
47152         * modules/openat (Files): Add lib/fchownat.c.
47153         * lib/openat.c (fchownat): Don't define here.  Move to...
47154         * lib/fchownat.c: ...this new file.
47155
47156 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
47157
47158         Fix bug reported by Bruno Haible in
47159         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
47160         where quotearg.c didn't compile on Mac OS X 10.2 because it
47161         lacks <wchar.h> and wint_t.
47162         * lib/wctype_.h (__wctype_wint_t): New type.
47163         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
47164         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
47165         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
47166         Arg is now of type __wctype_wint_t, not wint_t.
47167         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
47168         substitute HAVE_WINT_T.
47169         * modules/wctype (Files): Add m4/wint_t.m4.
47170         (wctype.h): Substitute HAVE_WINT_T.
47171
47172 2006-12-23  Bruno Haible  <bruno@clisp.org>
47173
47174         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
47175
47176 2006-12-23  Bruno Haible  <bruno@clisp.org>
47177
47178         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
47179         S_ISLNK.
47180         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
47181         mingw.
47182
47183 2006-12-22  Bruno Haible  <bruno@clisp.org>
47184
47185         * lib/copy-file.c: Include acl.h.
47186         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
47187         Close the file descriptors only after being done with copy_acl.
47188         * modules/copy-file (Depends-on): Add acl.
47189
47190 2006-12-22  Bruno Haible  <bruno@clisp.org>
47191
47192         * gnulib-tool (SED): New variable.
47193         Use $SED instead of sed everywhere.
47194
47195 2006-12-22  Bruno Haible  <bruno@clisp.org>
47196
47197         * modules/no-c++: New file.
47198         * m4/no-c++.m4: New file.
47199         * MODULES.html.sh (Support for building libraries and executables):
47200         Add no-c++.
47201
47202 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
47203
47204         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
47205         Include <limits.h>, and use its INT_MAX to rewrite the
47206         j loop so that it does not overflow 'int'.  Problem reported by
47207         Ralf Wildenhues in
47208         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
47209         Play it safe by shifting left by 1 rather than multiplying by 2,
47210         as GCC is less likely to optimize this away when the value
47211         is signed (when it assumes overflow leads to undefined behavior).
47212         Also, don't assume time_t uses two's complement.
47213
47214 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
47215
47216         * MODULES.html.sh: New module wctype.
47217         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
47218         * lib/fnmatch.c: Don't bother to include <wchar.h> before
47219         <wctype.h>, since the new wctype module should fix this.
47220         * lib/quotearg.c: Include <wctype.h> unconditionally, since
47221         the wctype module should arrange for it.
47222         * lib/regex_internal.h: Likewise.
47223         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
47224         since the wctype module should handle this now.
47225         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
47226         * modules/fnmatch (Depends-on): Add wctype.
47227         * modules/quotearg (Depends-on): Likewise.
47228         * modules/regex (Depends-on): Likewise.
47229
47230 2006-12-19  Bruno Haible  <bruno@clisp.org>
47231
47232         * lib/strdup.h [C++]: Wrap definitions in extern "C".
47233         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
47234
47235 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47236
47237         * modules/savewd (Depends-on): Fix dependency on fcntl.
47238
47239 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47240
47241         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
47242         conforms to C99, rather than relying on the user's environment
47243         setting of STDINT_H.
47244
47245 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47246         and Eric Blake  <ebb9@byu.net>
47247
47248         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
47249         This is more consistent with the other defines here.
47250         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
47251         Port to z/OS.  Problem reported by Paul Gilmartin.
47252         Change local vars to use gl_ prefix rather than ac_.
47253         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
47254         with other defines.
47255         * modules/double-slash-root: New module.
47256         * modules/dirname (Files): Remove m4/double-slash-root.m4.
47257         (Depends-on): Add double-slash-root.
47258         * MODULES.html.sh (File system functions): Mention new module.
47259
47260 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
47261
47262         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
47263         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
47264         This is for the benefit of gzip, which doesn't do i18n.
47265
47266 2006-12-12  Jim Meyering  <jim@meyering.net>
47267
47268         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
47269         Reported by Andreas Schwab <schwab@suse.de>.
47270
47271 2006-12-12  Bruno Haible  <bruno@clisp.org>
47272
47273         Merge these changes.
47274         2006-09-05  Bruno Haible  <bruno@clisp.org>
47275         * lib/iconvme.c (iconv_string): No need to save and restore errno when
47276         iconv_alloc succeeded.
47277         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
47278         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
47279         test for " && dest " at the end - dest is always != NULL there. Call
47280         iconv with 4xNULL arguments initially, to reset the state. Call iconv
47281         with 2xNULL arguments, also to flush the state storage. Handle the
47282         IRIX iconv behaviour. Realloc the final result, to throw away unused
47283         memory.
47284
47285 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
47286
47287         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
47288         and fchmodat unconditionally, since glibc 2.4 has them.
47289         Problem reported by Arkadiusz Miskiewicz.
47290
47291 2006-12-10  Bruno Haible  <bruno@clisp.org>
47292
47293         * gnulib-tool (func_import): Show the include files only for those
47294         modules that are copied and specified.
47295         Reported by Karl Berry.
47296
47297 2006-12-08  Jim Meyering  <jim@meyering.net>
47298
47299         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
47300         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
47301
47302         * build-aux/announce-gen: Add two new options, both optional:
47303         --bootstrap-tools=TOOL_LIST
47304               a comma-separated list of tools, e.g.,
47305               autoconf,automake,bison,gnulib
47306         --gnulib-snapshot-date=DATE
47307               if gnulib is in the bootstrap tool list,
47308               then report this as the snapshot date.
47309               If not specified, use the current date/time.
47310               If you specify a date here, be sure it's UTC.
47311
47312 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47313
47314         * tests/test-argp-2.sh: Fix test to match actual output.
47315         (func_compare): Fix sed script to be portable.
47316
47317 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
47318
47319         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
47320         workaround for this case.  It is not autoconfigured now; offhand
47321         it's hard to see how to autoconfigure it.
47322
47323 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
47324
47325         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
47326         a directory that is about to be chowned.  Such a directory's
47327         initial file permissions should permit the owner only and this
47328         should not be changed until after the chown, since the group and
47329         other bits would be incorrect if they granted permission before
47330         the chown.
47331
47332         Fix porting problem for iswctype reported by Georg Schwarz in:
47333         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
47334         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
47335         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
47336         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
47337         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
47338
47339 2006-12-03  Jim Meyering  <jim@meyering.net>
47340
47341         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
47342         p->fts_statp may not yet be defined.
47343         (fts_read): Instead, set it in the caller, once p->fts_statp is
47344         sure to be defined, and corresponds to a top-level directory.
47345         This bug made du -x fail.  Here's the coreutils test case:
47346         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
47347         Reported by Mike Frysinger.
47348
47349 2006-12-01  Jim Meyering  <jim@meyering.net>
47350
47351         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
47352         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
47353         Reported by Simon Josefsson.
47354
47355 2006-11-30  Jim Meyering  <jim@meyering.net>
47356
47357         * m4/warning.m4: Use the all-permissive copyright notice
47358         recommended by RMS (rather than LGPL).
47359         * m4/vararrays.m4: Likewise.
47360         * m4/flexmember.m4: Likewise.
47361
47362 2006-11-29  Bruno Haible  <bruno@clisp.org>
47363
47364         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47365         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
47366         using +=.
47367         Reported by Simon Josefsson <simon@josefsson.org>.
47368
47369 2006-11-28  James Youngman <jay@gnu.org>
47370
47371         * README: Advise users that they might find the bug-gnulib@gnu.org
47372         and autotools-announce@gnu.org mailing lists useful.
47373
47374 2006-11-28  Bruno Haible  <bruno@clisp.org>
47375
47376         * m4/ptrdiff_max.m4: Remove file.
47377
47378 2006-11-21  Bruno Haible  <bruno@clisp.org>
47379
47380         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
47381         _AC_COMPUTE_INT.
47382         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47383         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
47384         _AC_COMPUTE_INT.
47385         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47386         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
47387         _AC_COMPUTE_INT.
47388         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47389
47390 2006-11-28  Jim Meyering  <jim@meyering.net>
47391
47392         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
47393         warning from "gcc -Wshadow" about shadowing the builtin.
47394
47395 2006-11-27  Bruno Haible  <bruno@clisp.org>
47396
47397         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
47398         _AC_COMPUTE_INT.
47399         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
47400
47401 2006-11-27  Bruno Haible  <bruno@clisp.org>
47402             Paul Eggert  <eggert@cs.ucla.edu>
47403
47404         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
47405
47406 2006-11-26  Bruno Haible  <bruno@clisp.org>
47407
47408         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
47409         noinst_LTLIBRARIES.
47410
47411 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
47412             Bruno Haible  <bruno@clisp.org>
47413
47414         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
47415         if compiling with "gcc -ansi".
47416
47417 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
47418
47419         Fix some incompatibilities with gcc -ansi -pedantic.
47420         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
47421         if compiling pedantically with GCC, unless it's C99 or later.
47422         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
47423         it mishandles gcc -ansi -pedantic as well.
47424         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
47425         if gcc -pedantic.
47426         * lib/regexec.c (check_node_accept_bytes): Don't use auto
47427         initializers for struct if -pedantic, unless it's C99 or later.
47428
47429 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
47430
47431         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
47432         Don't close an fd more than once. Identical atimes indicate
47433         success, not failure.
47434
47435 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
47436
47437         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
47438
47439 2006-11-23  Jim Meyering  <jim@meyering.net>
47440
47441         * build-aux/announce-gen: New file.  From coreutils.
47442
47443 2006-11-22  Jim Meyering  <jim@meyering.net>
47444
47445         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
47446         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
47447         (fts_read): Use a temporary to narrow the overused st_size member
47448         before using it in a switch statement.  Reported by Matthew Woehlke.
47449
47450         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
47451         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
47452
47453 2006-11-20  Bruno Haible  <bruno@clisp.org>
47454
47455         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
47456         changequote instead of pairs of brackets.
47457         Reported by Andreas Schwab <schwab@suse.de>.
47458
47459 2006-11-21  Jim Meyering  <jim@meyering.net>
47460
47461         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
47462         so as to remain compatible with older compilers.
47463         Patch from Michael Deutschmann.
47464
47465 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47466
47467         * MODULES.html.sh (File system functions): Add openat.
47468
47469         * lib/openat.h (rpl_fstatat): New macro, if
47470         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
47471         (fstatat): Define to rpl_fstatat under the same conditions,
47472         unless COMPILING_FSTATAT.
47473         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
47474         seems to have the bug.
47475         * lib/fstatat.c: New file.
47476         * modules/openat (Files): Add it.
47477
47478 2006-11-20  Bruno Haible  <bruno@clisp.org>
47479
47480         * Makefile: New file.
47481
47482 2006-11-20  Jim Meyering  <jim@meyering.net>
47483
47484         The beginnings of syntax-related checks for gnulib.
47485         * lib/Makefile: New file.
47486         * lib/t-idcache: New script.  Ensure that the two halves of
47487         idcache.c stay in sync.
47488
47489         * lib/idcache.c: Adjust comments in user- and group- portions to
47490         be more accurate, and to be consistent with one another.
47491
47492 2006-11-20  Jim Meyering  <jim@meyering.net>
47493
47494         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
47495         continue using the flexible array member (thus, this module performs
47496         half as many malloc calls), with the addition that...
47497         (getgroup, getuser): Consistently record a non-match via an empty
47498         "name" string, and map an empty string match to a NULL return value.
47499         * modules/idcache (Depends-on): Re-add flexmember.
47500
47501         * lib/idcache.c (getuser): Remove all uses of the register keyword.
47502         (getuidbyname, getgroup, getgidbyname): Likewise.
47503
47504         Use cleaner syntax: NULL rather than 0.
47505         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
47506
47507 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
47508
47509         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
47510         It mishandled the case where the group was missing.
47511         Problem reported by Greg Schafer.
47512         * modules/idcache: Likewise.
47513
47514 2006-11-18  Jim Meyering  <jim@meyering.net>
47515
47516         * check-module (%exempt_header): Add exception for some
47517         conditionally-included headers.
47518
47519         * modules/i-ring (Depends-on): Add verify.
47520         (License): Change to LGPL.
47521
47522 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
47523
47524         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
47525         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
47526         and inttostr.h.  Use snprintf rather than uinttostr, so that
47527         LGPLed code doesn't depend on GPLed.
47528
47529 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47530
47531         * modules/inline (License): Change from GPL to LGPL.
47532
47533 2006-11-17  Jim Meyering  <jim@meyering.net>
47534
47535         * modules/d-type (License): Switch to LGPL.
47536
47537 2006-11-15  Bruno Haible  <bruno@clisp.org>
47538
47539         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
47540
47541 2006-11-15  Eric Blake  <ebb9@byu.net>
47542
47543         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
47544         the module dependency.
47545
47546 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47547             Bruno Haible  <bruno@clisp.org>
47548
47549         * gnulib-tool (func_create_testdir): Add license consistency check.
47550
47551 2006-11-15  Eric Blake  <ebb9@byu.net>
47552
47553         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
47554         random "(cached)" in configure output.
47555
47556 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47557
47558         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
47559         test for conforming inttypes.h is both announced and cached.
47560
47561         * MODULES.html.sh (seen_modules, seen_files): New variables.
47562         (func_module): Rewrite to use a few less gnulib-tool and sed
47563         invocations.  Avoid a couple of quadratic algorithms for ...
47564         (missed_modules, missed_files): ... these, with ...
47565         (func_append, func_tmpdir): ... these new functions, from
47566         gnulib-tool.  Analogously, install traps for cleanup.
47567
47568         * tests/test-gc.c (main): Remove unused variables.
47569         * tests/test-read-file.c: Include stdlib.h, for 'free'.
47570
47571 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
47572
47573         * modules/inttostr (License): Change to LGPL.
47574
47575 2006-11-14  Eric Blake  <ebb9@byu.net>
47576
47577         * modules/tempname (License): Change to LGPL.
47578
47579 2006-11-14  Eric Blake  <ebb9@byu.net>
47580
47581         * doc/functions.texi (Function Portability): *printf functions on
47582         Cygwin now understand all POSIX size specifiers.
47583
47584 2006-11-14  Bruno Haible  <bruno@clisp.org>
47585
47586         * modules/c-ctype (License): Change to LGPL.
47587
47588 2006-11-12  Bruno Haible  <bruno@clisp.org>
47589
47590         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47591         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
47592         for GNOME libraries, for which the include files are installed in
47593         subdirectories of $prefix/include.
47594
47595 2006-11-12  Bruno Haible  <bruno@clisp.org>
47596
47597         * m4/lib-link.m4: Require at least autoconf-2.54.
47598         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
47599         name to underscores for the --with option.
47600
47601 2006-11-13  Bruno Haible  <bruno@clisp.org>
47602
47603         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
47604         the tests directory.
47605         Reported by Ralf Wildenhues.
47606
47607 2006-11-13  Bruno Haible  <bruno@clisp.org>
47608
47609         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
47610         (func_emit_initmacro_end): Undo the override here.
47611         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
47612         Works around the famous automake error in coreutils.
47613
47614 2006-11-13  Eric Blake  <ebb9@byu.net>
47615
47616         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
47617         element, not its node.
47618
47619 2006-11-12  Bruno Haible  <bruno@clisp.org>
47620
47621         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
47622         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
47623
47624 2006-11-12  Bruno Haible  <bruno@clisp.org>
47625
47626         * gnulib-tool: New option --local-symlink.
47627         (func_usage): Document it.
47628         (lsymbolic): New variable.
47629         (func_import, func_create_testdir): If --symlink was not specified,
47630         test whether --local-symlink was specified and the file comes from
47631         the local_gnulib_dir.
47632
47633 2006-11-12  Bruno Haible  <bruno@clisp.org>
47634
47635         * gnulib-tool (func_ln): New function.
47636         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
47637
47638 2006-11-12  Bruno Haible  <bruno@clisp.org>
47639
47640         Finish support for source files in subdirectories.
47641         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
47642         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
47643         AUTOMAKE_OPTIONS.
47644         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
47645
47646 2006-11-12  Bruno Haible  <bruno@clisp.org>
47647
47648         * gnulib-tool (func_get_automake_snippet): Synthesize also an
47649         EXTRA_lib_SOURCES augmentation.
47650         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
47651
47652 2006-11-12  Jim Meyering  <jim@meyering.net>
47653
47654         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
47655         file descriptors.  This also averts a failure on systems with
47656         native openat support when a traversed directory lacks "x" access.
47657         * lib/fts_.h: Include "i-ring.h"
47658         (struct FTS) [fts_fd_ring]: New member.
47659         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
47660         (FCHDIR): Add parentheses.
47661         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
47662         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
47663         When descending, rather than simply closing the previous
47664         fts_cwd_fd value, push that file descriptor onto the ring.
47665         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
47666         (fts_open): Initialize the new fd_ring member.
47667         (fts_close): Clear the ring.
47668         (fts_safe_changedir): When possible, use our new fd_ring to skip
47669         the diropen and fstat and dev/ino comparison that would normally
47670         accompany a virtual `chdir ("..")'.
47671
47672         * modules/fts (Depends-on): Add i-ring.
47673         * modules/i-ring: New module.
47674         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
47675         * m4/i-ring.m4: New file.
47676
47677 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47678
47679         * gnulib-tool (func_create_testdir): Fix replacement of
47680         `build-aux' in configure.ac.  Run autotools in gltests
47681         subdirectory.
47682         (func_create_testdir, func_create_megatestdir, test): There is
47683         no need for '--force' in most autotool invocations in a new
47684         tree.  Actually fail the whole test if any of the tools, or the
47685         configure or make stages fail.
47686
47687         Sync from Automake.
47688         * build-aux/gnupload: Revert last change.  Add pointer to upload
47689         instructions of the GNU Maintenance Instructions.
47690         Suggestion by Karl Berry.
47691
47692 2006-11-10  Jim Meyering  <jim@meyering.net>
47693
47694         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
47695
47696 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47697
47698         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
47699         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
47700         (bind_textdomain_codeset) [! ENABLE_NLS]:
47701         Evaluate all the arguments.  That way, callers get compatible behavior
47702         if the arguments have side effects.  Also, it avoids some GCC
47703         diagnostics in some cases; Joel E. Denny reported problems when Bison
47704         was configured with --enable-gcc-warnigs.
47705
47706 2006-11-10  Jim Meyering  <jim@meyering.net>
47707
47708         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
47709         relevant options in CFLAGS (like -O, -fno-inline) are taken into
47710         account.
47711
47712 2006-11-10  Jim Meyering  <jim@meyering.net>
47713
47714         * modules/inline: New file/module.
47715         * modules/xalloc (Files): Remove m4/inline.m4.
47716         (Depends-on): Add inline, instead.
47717         * modules/oset: Likewise.
47718         * modules/list: Likewise.
47719
47720 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47721
47722         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
47723         Problem reported by Matthew Woehlke.
47724
47725 2006-11-09  Bruno Haible  <bruno@clisp.org>
47726
47727         * lib/tempname.c (gen_tempname): Remove variant that invokes
47728         __gen_tempname.
47729         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
47730         __gen_tempname.
47731
47732 2006-11-08  Bruno Haible  <bruno@clisp.org>
47733
47734         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
47735         to 'yes' instead of 'cross-compiling'.
47736
47737 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
47738
47739         * lib/quotearg.h (quotearg_free): New decl.
47740         * lib/quotearg.c (quotearg_free): New function.
47741         (slot0, nslots, slotvec0, slotvec):
47742         Now file-scope so that quotearg_free can get at them.
47743
47744 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47745
47746         Sync from Automake.
47747         * build-aux/gnupload: Add missing 'gnu' to example URL.
47748         Report by Karl Berry.
47749
47750 2006-11-08  Bruno Haible  <bruno@clisp.org>
47751
47752         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
47753         Suggested by Paul Eggert.
47754
47755 2006-11-08  Jim Meyering  <jim@meyering.net>
47756
47757         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
47758         It's already included if !_LIBC.
47759         (fts_safe_changedir): Add a comment.
47760
47761 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47762
47763         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
47764         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
47765         Matthew Woehlke.
47766
47767         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
47768         definitions up, to avoid colliding with change below.
47769         (static_inline) [HAVE_INLINE]: New macro.
47770         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
47771         Provide extern decls when !HAVE_INLINE.  Do not define unless
47772         static_inline is defined, either by us or by xmalloc.c.  Use
47773         static_inline rather than static inline.
47774         (XCALLOC): Optimize sizeof(T) = 1 case.
47775         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
47776
47777 2006-11-07  Bruno Haible  <bruno@clisp.org>
47778
47779         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
47780         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
47781         AC_C_INLINE.
47782         * modules/xalloc (Files): Add m4/inline.m4.
47783
47784 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47785
47786         * README: Fix typo.
47787         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
47788         (Miscellanous Notes): ...from this.
47789
47790 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47791
47792         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
47793         Mention that offsetof should be used instead of sizeof.
47794         From Bruno Haible.
47795
47796 2006-11-07  Bruno Haible  <bruno@clisp.org>
47797
47798         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
47799
47800 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47801
47802         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47803         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
47804         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47805         (gl_tree_add_before, gl_tree_add_after):
47806         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
47807         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
47808         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47809         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
47810         (gl_linked_add_after, gl_linked_add_at): Likewise.
47811         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
47812         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47813         (gl_tree_add_before, gl_tree_add_after): Likewise.
47814         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
47815         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
47816         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
47817
47818 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47819
47820         * lib/gl_oset.h: Use C comment style, not C++ comment style.
47821
47822 2006-11-06  Bruno Haible  <bruno@clisp.org>
47823
47824         * m4/inline.m4: New file.
47825         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
47826         * modules/list (Files): Add m4/inline.m4.
47827         * modules/oset (Files): Likewise.
47828
47829 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47830
47831         * lib/idcache.c: Include <stddef.h>, for offsetof.
47832         (struct userid.name): Change from char * to a flexible array member.
47833         All uses changed.
47834         * modules/idcache (Depends-on): Add flexmember.
47835
47836         * MODULES.html.sh (Core language properties): New module flexmember.
47837         * modules/flexmember, m4/flexmember.m4: New files.
47838
47839         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
47840         inline functions that are identical with the old xnmalloc_inline,
47841         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
47842         that we can avoid some unnecessary integer multiplications and
47843         divisions in the common case where the element size is known at
47844         compile time.
47845         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
47846         needed.
47847         (xnboundedmalloc): Remove.
47848         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
47849         arguments, for consistency with rest of this header.
47850         (xcharalloc): Rewrite using XNMALLOC.
47851         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
47852         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
47853         versions have been moved to lib/xalloc.h and renamed to be the
47854         non-*_inline versions.
47855         (xmalloc, xrealloc): Implement without reference to the xnmalloc
47856         and xnrealloc functions, since those functions are now inline and
47857         now call us.
47858         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
47859         renaming described above.
47860         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
47861         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
47862         captures the dependency in AC_C_INLINE.
47863
47864         New module canonicalize-lgpl, proposed by Charles Wilson in
47865         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
47866         with a few small changes afterwards.
47867         * MODULES.html.sh (File system functions): New module
47868         canonicalize-lgpl.
47869         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
47870         and canonicalize_file_name.
47871         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
47872         * modules/canonicalize-lgpl: New files.
47873
47874 2006-11-05  Bruno Haible  <bruno@clisp.org>
47875
47876         * gnulib-tool (func_import, func_create_testdir): Create directories
47877         also for files in subdirectories of lib/.
47878
47879 2006-11-05  Bruno Haible  <bruno@clisp.org>
47880
47881         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
47882         ANSI C compliant.
47883
47884 2006-11-03  Bruno Haible  <bruno@clisp.org>
47885
47886         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47887         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
47888         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
47889         (xnboundedmalloc): New inline function.
47890         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
47891         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
47892         xmalloc.
47893         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
47894         xmalloc.
47895         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
47896         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
47897         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
47898         xmalloc.
47899         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47900         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
47901         xmalloc.
47902         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
47903         gl_tree_add_after): Use XMALLOC instead of xmalloc.
47904         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
47905         xmalloc.
47906         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47907         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
47908         gl_tree_add_after): Use XMALLOC instead of xmalloc.
47909         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
47910         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
47911         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
47912         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
47913
47914 2006-11-03  Bruno Haible  <bruno@clisp.org>
47915
47916         * lib/c-ctype.h [C++]: Define functions without name mangling.
47917         * lib/fwriteerror.h [C++]: Likewise.
47918         * lib/gcd.h [C++]: Likewise.
47919         * lib/linebreak.h [C++]: Likewise.
47920
47921 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
47922
47923         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
47924         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
47925         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
47926         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
47927         Check for functions and headers just once.
47928         Check for declaration of canonicalize_file_name.
47929         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
47930
47931 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
47932
47933         * gnulib-tool (func_import): Fix typo in actioncmd.
47934
47935 2006-11-02  Bruno Haible  <bruno@clisp.org>
47936
47937         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
47938         newline sequence in the Makefile.am snippet as a space, like "make"
47939         does.
47940         Reported by Roger Persson <perrog@gmail.com>.
47941
47942 2006-11-01  Bruno Haible  <bruno@clisp.org>
47943
47944         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
47945         already declared in <string.h>.
47946         * lib/strcase.h (strncasecmp): Don't declare it if yes.
47947
47948 2006-11-01  Bruno Haible  <bruno@clisp.org>
47949
47950         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
47951         * lib/strcase.h: Include <string.h>.
47952         (strcasecmp): Define to rpl_strcasecmp here.
47953
47954 2006-11-01  Bruno Haible  <bruno@clisp.org>
47955
47956         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
47957
47958 2006-11-01  Eric Blake  <ebb9@byu.net>
47959
47960         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
47961
47962         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
47963
47964 2006-10-29  Bruno Haible  <bruno@clisp.org>
47965
47966         Make it compile in C++ mode.
47967         * lib/full-write.c (full_rw): Add a cast.
47968
47969 2006-11-01  Bruno Haible  <bruno@clisp.org>
47970
47971         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
47972         be POSIX compliant.
47973         Reported by Roger Persson <perrog@gmail.com>.
47974
47975 2006-11-01  Eric Blake  <ebb9@byu.net>
47976
47977         * lib/getopt_.h: Fix comments.
47978
47979 2006-10-31  Eric Blake  <ebb9@byu.net>
47980
47981         * modules/tmpdir (Depends-on): Add sys_stat.
47982         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
47983         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
47984         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
47985         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
47986         tempname.
47987
47988 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
47989
47990         Avoid some C++ diagnostics reported by Bruno Haible.
47991         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
47992         xmalloc.
47993         (quotearg_alloc): Use xcharalloc rather than xmalloc.
47994         (struct slotvec): Move to top level.
47995         (quotearg_n_options): Rewrite to avoid xmalloc.
47996         * lib/xalloc.h (xcharalloc): New function.
47997         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
47998         [defined __cplusplus]: Add function template that provides result
47999         type propagation.  This part of the change is from Bruno Haible.
48000
48001 2006-10-29  Bruno Haible  <bruno@clisp.org>
48002
48003         Make it compile in C++ mode.
48004         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
48005         * lib/strnlen1.c (strnlen1): Cast memchr result.
48006         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
48007         * lib/clean-temp.c (string_equals, string_hash): Add casts.
48008         (create_temp_dir): Rename local variable 'template'.
48009         (compile_csharp_using_sscli): Add cast.
48010         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
48011         * lib/findprog.c (find_in_path): Likewise.
48012         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
48013         * lib/wait-process.c (register_slave_subprocess): Likewise.
48014
48015 2006-10-22  Bruno Haible  <bruno@clisp.org>
48016
48017         * modules/tsearch: New file.
48018         * lib/tsearch.h: New file.
48019         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
48020         * m4/tsearch.m4: New file.
48021         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
48022
48023 2006-10-29  Eric Blake  <ebb9@byu.net>
48024
48025         * lib/arcfour.c: Assume config.h.
48026         * lib/arctwo.c: Likewise.
48027         * lib/base64.c: Likewise.
48028         * lib/check-version.c: Likewise.
48029         * lib/crc.c: Likewise.
48030         * lib/des.c: Likewise.
48031         * lib/gc-gnulib.c: Likewise.
48032         * lib/gc-libgcrypt.c: Likewise.
48033         * lib/gc-pbkdf2-sha1.c: Likewise.
48034         * lib/getaddrinfo.c: Likewise.
48035         * lib/getdelim.c: Likewise.
48036         * lib/getline.c: Likewise.
48037         * lib/hmac-md5.c: Likewise.
48038         * lib/hmac-sha1.c: Likewise.
48039         * lib/iconvme.c: Likewise.
48040         * lib/md2.c: Likewise.
48041         * lib/md4.c: Likewise.
48042         * lib/memxor.c: Likewise.
48043         * lib/read-file.c: Likewise.
48044         * lib/readline.c: Likewise.
48045         * lib/rijndael-alg-fst.c: Likewise.
48046         * lib/rijndael-api-fst.c: Likewise.
48047         * lib/xgetdomainname.c: Likewise.
48048
48049 2006-10-28  Eric Blake  <ebb9@byu.net>
48050
48051         * lib/xstrndup.c: Assume config.h.
48052
48053 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
48054
48055         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
48056         stat-macros.h is now for our own macros, whereas stat_h is for
48057         macros in the <sys/stat.h> name space.
48058         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
48059         (STAT_MACROS_H): Remove.
48060         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
48061         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
48062         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
48063         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
48064         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
48065         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
48066         Move these macros to ...
48067         * lib/stat_.h: here.  Don't include stat-macros.h.
48068         * lib/canonicalize.c: Don't include stat-macros.h.
48069         * lib/chown.c: Likewise.
48070         * lib/euidaccess.c: Likewise.
48071         * lib/file-type.c: Likewise.
48072         * lib/filemode.c: Likewise.
48073         * lib/glob.c: Likewise.
48074         * lib/isapipe.c: Likewise.
48075         * lib/lchown.c: Likewise.
48076         * lib/lstat.c: Likewise.
48077         * lib/mkdir-p.c: Likewise.
48078         * lib/rmdir.c: Likewise.
48079         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
48080         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
48081         unless mkdir isn't declared, to speed up 'configure'.
48082         Always create sys/stat.h, since it's unlikely any real sys/stat.h
48083         would define all the S_* symbols.
48084         * modules/canonicalize (Depends-on):
48085         Depend on sys_stat, not stat-macros.
48086         * modules/chown: Likewise.
48087         * modules/euidaccess: Likewise.
48088         * modules/filemode: Likewise.
48089         * modules/file-type: Likewise.
48090         * modules/glob: Likewise.
48091         * modules/isapipe: Likewise.
48092         * modules/lchown: Likewise.
48093         * modules/lstat: Likewise.
48094         * modules/mkancesdirs: Likewise.
48095         * modules/rmdir: Likewise.
48096         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
48097         * modules/modechange: Likewise.
48098         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
48099         (configure.ac): Remove gl_STAT_MACROS.
48100         * modules/sys_stat (Depends-on): Remove stat-macros.
48101
48102 2006-10-27  Bruno Haible  <bruno@clisp.org>
48103
48104         * m4/signed.m4: Remove file.
48105         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
48106         invocation.
48107         * modules/vasnprintf (Files): Remove m4/signed.m4.
48108
48109 2006-10-27  Bruno Haible  <bruno@clisp.org>
48110
48111         Update to GNU gettext 0.16.
48112         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
48113         m4/inttypes-h.m4, m4/signed.m4.
48114         * m4/gettext.m4: Update to GNU gettext 0.16.
48115         * m4/intl.m4: New file, from GNU gettext.
48116         * m4/intldir.m4: New file, from GNU gettext.
48117         * config/srclist.txt: Update
48118
48119 2006-10-27  Eric Blake  <ebb9@byu.net>
48120
48121         * MODULES.html.sh: Document tempname.
48122         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
48123         dependencies.
48124         (Files): Move lib/tempname.c...
48125         * modules/tempname: ...to this new module.
48126         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
48127         (gl_PREREQ_TEMPNAME): Move...
48128         * m4/tempname.m4: ...to this new file.
48129         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
48130         * modules/sys_stat (Depends-on): Add stat-macros.
48131         * lib/stat_.h (includes): Pick up stat macros.
48132         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
48133         if stat macros are broken.
48134         * lib/tempname.c (includes): No need to include "stat-macros.h".
48135         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
48136         (direxists, __path_search) [!_LIBC]: Don't compile these in
48137         gnulib; the tmpdir module covers that.
48138         * lib/tempname.h: New file.
48139
48140 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
48141
48142         * COPYING: Explain how gnulib-tool converts licence headers.
48143         Almost all wording by Eric Blake.
48144
48145 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
48146
48147         * lib/mbchar.h (is_basic_table): Make read-only.
48148         * lib/mbchar.c (is_basic_table): Likewise.
48149         Reported by John Darrington.
48150
48151 2006-10-25  Bruno Haible  <bruno@clisp.org>
48152
48153         * lib/progname.h (set_program_name): Undefine before defining.
48154
48155 2006-10-25  Bruno Haible  <bruno@clisp.org>
48156
48157         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
48158         false for non-gcc C++ compilers.
48159         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
48160
48161 2006-10-24  Bruno Haible  <bruno@clisp.org>
48162
48163         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
48164         iconv implementations like Irix iconv.
48165
48166 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48167
48168         * modules/vararrays: New file.
48169         * m4/vararrays.m4: New file, taken from diffutils.
48170         * MODULES.html.sh: New module vararrays.
48171
48172 2006-10-24  Karl Berry  <karl@gnu.org>
48173
48174         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
48175         Don't call GNU Unix.
48176
48177 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48178
48179         * users.txt: Add Libtool.
48180
48181         Sync from Libtool:
48182
48183         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48184
48185         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
48186         to gnulib's policy of including config.h unconditionally.
48187
48188 2006-10-24  Bruno Haible  <bruno@clisp.org>
48189
48190         * modules/wcwidth (Files): Add m4/wint_t.m4.
48191         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
48192         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
48193
48194 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
48195
48196         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
48197         to pacify GCC with some -W flags enabled.  Problem reported by
48198         Bruno Haible.
48199
48200 2006-10-24  Jim Meyering  <jim@meyering.net>
48201
48202         * MODULES.html.sh: Remove uinttostr.  It's not a module.
48203         Reported by Karl Berry.
48204
48205 2006-10-23  Bruno Haible  <bruno@clisp.org>
48206
48207         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
48208
48209 2006-10-24  Bruno Haible  <bruno@clisp.org>
48210
48211         * lib/gl_list.h: Use C comment style, not C++ comment style.
48212
48213 2006-10-23  Eric Blake  <ebb9@byu.net>
48214
48215         * lib/getaddrinfo.c (includes): Add missing include.
48216
48217 2006-10-23  Bruno Haible  <bruno@clisp.org>
48218             Paul Eggert  <eggert@cs.ucla.edu>
48219
48220         Ability to rename obstack_free.
48221         * lib/obstack.h (__obstack_free): New macro. Declare instead of
48222         obstack_free.
48223         (obstack_free): Invoke the __obstack_free macro.
48224         * lib/obstack.c (obstack_free): Use __obstack_free macro.
48225
48226 2006-10-23  Bruno Haible  <bruno@clisp.org>
48227             Paul Eggert  <eggert@cs.ucla.edu>
48228
48229         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
48230         __argc, __argv from the declaration. (They are defined as macros on
48231         mingw.)
48232
48233 2006-10-22  Bruno Haible  <bruno@clisp.org>
48234
48235         * doc/gnulib-intro.texi: New file.
48236         * doc/gnulib.texi: Include it.
48237
48238 2006-10-21  Bruno Haible  <bruno@clisp.org>
48239
48240         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
48241         "Introduction", "Miscellanous Notes", "Particular Modules".
48242
48243 2006-10-21  Bruno Haible  <bruno@clisp.org>
48244
48245         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48246         Change mostlyclean-local rule to avoid sh syntax error from bash
48247         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
48248
48249 2006-10-23  Jim Meyering  <jim@meyering.net>
48250
48251         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
48252         in place of snprintf.
48253
48254         * modules/inttostr (Files): Add lib/uinttostr.c.
48255         * lib/uinttostr.c (inttostr): New file/function.
48256         * lib/inttostr.h (uinttostr): Declare.
48257         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
48258         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
48259         Add uinttostr.
48260         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
48261
48262 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48263
48264         * lib/canonicalize.c (ELOOP): Define if not already defined.
48265         Problem reported by Bruno Haible in
48266         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
48267
48268 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
48269
48270         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
48271         Problem reported by Perry Smith and Ville Laurikari.
48272
48273         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
48274         uses.
48275
48276 2006-10-19  Bruno Haible  <bruno@clisp.org>
48277
48278         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
48279         for mingw.
48280
48281 2006-10-19  Bruno Haible  <bruno@clisp.org>
48282
48283         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
48284         Needed for mingw.
48285
48286 2006-10-19  Bruno Haible  <bruno@clisp.org>
48287
48288         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
48289
48290 2006-10-19  Bruno Haible  <bruno@clisp.org>
48291
48292         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
48293         it.
48294
48295 2006-10-19  Bruno Haible  <bruno@clisp.org>
48296
48297         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
48298         invocation.
48299
48300 2006-10-19  Bruno Haible  <bruno@clisp.org>
48301
48302         * gnulib-tool (func_create_testdir): Don't include ftruncate and
48303         mountlist by default.
48304
48305 2006-10-16  Bruno Haible  <bruno@clisp.org>
48306
48307         * lib/c-strstr.c: Include c-strstr.h.
48308
48309 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
48310
48311         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
48312         in a slash.
48313
48314 2006-10-18  Bruno Haible  <bruno@clisp.org>
48315
48316         * lib/lock.h [C++]: Wrap definitions in extern "C".
48317
48318 2006-10-18  Bruno Haible  <bruno@clisp.org>
48319
48320         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
48321         gl_LIBOBJS list.
48322
48323 2006-10-18  Bruno Haible  <bruno@clisp.org>
48324
48325         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
48326
48327 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
48328
48329         * lib/xstrtol.h: Include gettext.h.
48330         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
48331         Problem reported by Eric Blake.
48332         * modules/xstrtol (Depends-on): Add gettext-h.
48333
48334 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
48335
48336         * lib/strftime.c (advance): New macro.
48337         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
48338         incomplete type, so you can't add 0 to it.  Problem and patch
48339         reported by Eelco Dolstra for dietlibc.
48340
48341 2006-10-18  Jim Meyering  <jim@meyering.net>
48342
48343         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
48344         type for a local, and rename it: s/up/user_proc/.
48345
48346 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
48347
48348         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
48349         READ_UTMP_USER_PROCESS.
48350         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
48351
48352 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
48353
48354         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
48355         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
48356
48357 2006-10-17  Eric Blake  <ebb9@byu.net>
48358
48359         * lib/sigprocmask.c (sigprocmask): Fix typo.
48360
48361         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
48362
48363         * modules/clean-temp (Makefile.am): Don't add to make output...
48364         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
48365         config.h.
48366
48367 2006-10-17  Bruno Haible  <bruno@clisp.org>
48368
48369         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
48370         differently if DEFAULT_TEXT_DOMAIN is set.
48371
48372 2006-10-16  Bruno Haible  <bruno@clisp.org>
48373
48374         * lib/clean-temp.c: Include fwriteerror.h.
48375
48376 2006-10-16  Bruno Haible  <bruno@clisp.org>
48377
48378         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
48379
48380 2006-10-16  Bruno Haible  <bruno@clisp.org>
48381
48382         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
48383         * lib/sigprocmask.h: Include <sys/types.h>.
48384         (sigset_t): Use the system's definition if present.
48385
48386 2006-10-17  Eric Blake  <ebb9@byu.net>
48387
48388         * lib/xvasprintf.c (includes): Assume config.h.
48389         * lib/xasprintf.c (includes): Likewise.
48390
48391 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
48392
48393         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
48394         at least as wide as intmax_t.
48395
48396 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
48397
48398         (Imported from Automake.)
48399         * build-aux/gnupload: Update to version 1.1 of directive file.
48400
48401 2006-10-16  Eric Blake  <ebb9@byu.net>
48402
48403         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
48404         match Automake 1.10a.
48405
48406 2006-10-14  Bruno Haible  <bruno@clisp.org>
48407
48408         * modules/sigprocmask: New file.
48409         * lib/sigprocmask.h: New file.
48410         * lib/sigprocmask.c: New file.
48411         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
48412         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
48413         request sigprocmask.o.
48414         (gl_PREREQ_SIGPROCMASK): New macro.
48415         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
48416         (Depends-on): Add sigprocmask.
48417         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
48418         gt_SIGNALBLOCKING. Test for 'raise' only once.
48419         * lib/fatal-signal.c: Include sigprocmask.h.
48420         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
48421         unblock_fatal_signals): Define always.
48422         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48423         sigprocmask.
48424
48425 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
48426
48427         Sync from Automake.
48428         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
48429         which incorrectly sets the mode of an existing destination
48430         directory.  In some cases the unpatched install-sh could do the
48431         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
48432         system.  We hope this is rare in practice, but it's clearly worth
48433         fixing.  Problem reported by Alex Unleashed in
48434         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
48435         Also, don't bother to check for -m bugs unless we're using -m;
48436         suggested by Stepan Kasal.
48437
48438 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48439
48440         Sync from Automake.
48441         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
48442         `-c' flag, so they appear at the same position as in %FASTDEP%
48443         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
48444         which ignores unknown options only after the first non-option.
48445         Bug report against M4 by Nelson H. F. Beebe.
48446
48447 2006-10-13  Jim Meyering  <jim@meyering.net>
48448
48449         Fix a bug in yesterday's change.
48450         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
48451         p->fts_statp->st_dev would be used uninitialized.
48452         Ensures that we always call fts_stat on the very first entry.
48453         Miklos Szeredi reported that find -xdev stopped working.
48454
48455 2006-10-12  Bruno Haible  <bruno@clisp.org>
48456
48457         * gnulib-tool (func_get_automake_snippet): Append an automatically
48458         computed EXTRA_DIST augmentation.
48459         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
48460         * modules/alloca-opt (Makefile.am): Likewise.
48461         * modules/allocsa (Makefile.am): Likewise.
48462         * modules/arcfour (Makefile.am): Likewise.
48463         * modules/arctwo (Makefile.am): Likewise.
48464         * modules/argmatch (Makefile.am): Likewise.
48465         * modules/argz (Makefile.am): Likewise.
48466         * modules/atexit (Makefile.am): Likewise.
48467         * modules/backupfile (Makefile.am): Likewise.
48468         * modules/byteswap (Makefile.am): Likewise.
48469         * modules/c-strtod (Makefile.am): Likewise.
48470         * modules/c-strtold (Makefile.am): Likewise.
48471         * modules/calloc (Makefile.am): Likewise.
48472         * modules/canon-host (Makefile.am): Likewise.
48473         * modules/canonicalize (Makefile.am): Likewise.
48474         * modules/chdir-long (Makefile.am): Likewise.
48475         * modules/chdir-safer (Makefile.am): Likewise.
48476         * modules/check-version (Makefile.am): Likewise.
48477         * modules/chown (Makefile.am): Likewise.
48478         * modules/cloexec (Makefile.am): Likewise.
48479         * modules/close-stream (Makefile.am): Likewise.
48480         * modules/closeout (Makefile.am): Likewise.
48481         * modules/crc (Makefile.am): Likewise.
48482         * modules/csharpexec (Makefile.am): Likewise.
48483         * modules/cycle-check (Makefile.am): Likewise.
48484         * modules/des (Makefile.am): Likewise.
48485         * modules/dev-ino (Makefile.am): Likewise.
48486         * modules/dirfd (Makefile.am): Likewise.
48487         * modules/dirname (Makefile.am): Likewise.
48488         * modules/dup2 (Makefile.am): Likewise.
48489         * modules/eealloc (Makefile.am): Likewise.
48490         * modules/error (Makefile.am): Likewise.
48491         * modules/euidaccess (Makefile.am): Likewise.
48492         * modules/exclude (Makefile.am): Likewise.
48493         * modules/exitfail (Makefile.am): Likewise.
48494         * modules/fcntl-safer (Makefile.am): Likewise.
48495         * modules/fcntl (Makefile.am): Likewise.
48496         * modules/file-type (Makefile.am): Likewise.
48497         * modules/fileblocks (Makefile.am): Likewise.
48498         * modules/filemode (Makefile.am): Likewise.
48499         * modules/filenamecat (Makefile.am): Likewise.
48500         * modules/fnmatch (Makefile.am): Likewise.
48501         * modules/fopen-safer (Makefile.am): Likewise.
48502         * modules/fpending (Makefile.am): Likewise.
48503         * modules/fprintftime (Makefile.am): Likewise.
48504         * modules/free (Makefile.am): Likewise.
48505         * modules/fsusage (Makefile.am): Likewise.
48506         * modules/ftruncate (Makefile.am): Likewise.
48507         * modules/fts (Makefile.am): Likewise.
48508         * modules/gc-arcfour (Makefile.am): Likewise.
48509         * modules/gc-des (Makefile.am): Likewise.
48510         * modules/gc-hmac-md5 (Makefile.am): Likewise.
48511         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
48512         * modules/gc-md4 (Makefile.am): Likewise.
48513         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48514         * modules/gc-sha1 (Makefile.am): Likewise.
48515         * modules/gc (Makefile.am): Likewise.
48516         * modules/getaddrinfo (Makefile.am): Likewise.
48517         * modules/getcwd (Makefile.am): Likewise.
48518         * modules/getdelim (Makefile.am): Likewise.
48519         * modules/getdomainname (Makefile.am): Likewise.
48520         * modules/getgroups (Makefile.am): Likewise.
48521         * modules/gethostname (Makefile.am): Likewise.
48522         * modules/gethrxtime (Makefile.am): Likewise.
48523         * modules/getline (Makefile.am): Likewise.
48524         * modules/getloadavg (Makefile.am): Likewise.
48525         * modules/getlogin_r (Makefile.am): Likewise.
48526         * modules/getndelim2 (Makefile.am): Likewise.
48527         * modules/getopt (Makefile.am): Likewise.
48528         * modules/getpagesize (Makefile.am): Likewise.
48529         * modules/getpass-gnu (Makefile.am): Likewise.
48530         * modules/getpass (Makefile.am): Likewise.
48531         * modules/getsubopt (Makefile.am): Likewise.
48532         * modules/gettime (Makefile.am): Likewise.
48533         * modules/gettimeofday (Makefile.am): Likewise.
48534         * modules/getugroups (Makefile.am): Likewise.
48535         * modules/getusershell (Makefile.am): Likewise.
48536         * modules/glob (Makefile.am): Likewise.
48537         * modules/group-member (Makefile.am): Likewise.
48538         * modules/hard-locale (Makefile.am): Likewise.
48539         * modules/hash (Makefile.am): Likewise.
48540         * modules/hmac-md5 (Makefile.am): Likewise.
48541         * modules/hmac-sha1 (Makefile.am): Likewise.
48542         * modules/human (Makefile.am): Likewise.
48543         * modules/idcache (Makefile.am): Likewise.
48544         * modules/imaxabs (Makefile.am): Likewise.
48545         * modules/imaxdiv (Makefile.am): Likewise.
48546         * modules/inet_ntop (Makefile.am): Likewise.
48547         * modules/inet_pton (Makefile.am): Likewise.
48548         * modules/intprops (Makefile.am): Likewise.
48549         * modules/inttostr (Makefile.am): Likewise.
48550         * modules/inttypes (Makefile.am): Likewise.
48551         * modules/isapipe (Makefile.am): Likewise.
48552         * modules/javaversion (Makefile.am): Likewise.
48553         * modules/lchmod (Makefile.am): Likewise.
48554         * modules/lchown (Makefile.am): Likewise.
48555         * modules/localcharset (Makefile.am): Likewise.
48556         * modules/long-options (Makefile.am): Likewise.
48557         * modules/lstat (Makefile.am): Likewise.
48558         * modules/malloc (Makefile.am): Likewise.
48559         * modules/mathl (Makefile.am): Likewise.
48560         * modules/mbchar (Makefile.am): Likewise.
48561         * modules/md2 (Makefile.am): Likewise.
48562         * modules/md4 (Makefile.am): Likewise.
48563         * modules/md5 (Makefile.am): Likewise.
48564         * modules/memcasecmp (Makefile.am): Likewise.
48565         * modules/memchr (Makefile.am): Likewise.
48566         * modules/memcmp (Makefile.am): Likewise.
48567         * modules/memcoll (Makefile.am): Likewise.
48568         * modules/memcpy (Makefile.am): Likewise.
48569         * modules/memmem (Makefile.am): Likewise.
48570         * modules/memmove (Makefile.am): Likewise.
48571         * modules/mempcpy (Makefile.am): Likewise.
48572         * modules/memrchr (Makefile.am): Likewise.
48573         * modules/memset (Makefile.am): Likewise.
48574         * modules/memxor (Makefile.am): Likewise.
48575         * modules/mkancesdirs (Makefile.am): Likewise.
48576         * modules/mkdir-p (Makefile.am): Likewise.
48577         * modules/mkdir (Makefile.am): Likewise.
48578         * modules/mkdtemp (Makefile.am): Likewise.
48579         * modules/mkstemp (Makefile.am): Likewise.
48580         * modules/mktime (Makefile.am): Likewise.
48581         * modules/modechange (Makefile.am): Likewise.
48582         * modules/mountlist (Makefile.am): Likewise.
48583         * modules/nanosleep (Makefile.am): Likewise.
48584         * modules/obstack (Makefile.am): Likewise.
48585         * modules/openat (Makefile.am): Likewise.
48586         * modules/pagealign_alloc (Makefile.am): Likewise.
48587         * modules/pathmax (Makefile.am): Likewise.
48588         * modules/physmem (Makefile.am): Likewise.
48589         * modules/poll (Makefile.am): Likewise.
48590         * modules/posixtm (Makefile.am): Likewise.
48591         * modules/posixver (Makefile.am): Likewise.
48592         * modules/putenv (Makefile.am): Likewise.
48593         * modules/quote (Makefile.am): Likewise.
48594         * modules/quotearg (Makefile.am): Likewise.
48595         * modules/raise (Makefile.am): Likewise.
48596         * modules/read-file (Makefile.am): Likewise.
48597         * modules/readline (Makefile.am): Likewise.
48598         * modules/readlink (Makefile.am): Likewise.
48599         * modules/readtokens (Makefile.am): Likewise.
48600         * modules/readutmp (Makefile.am): Likewise.
48601         * modules/realloc (Makefile.am): Likewise.
48602         * modules/regex (Makefile.am): Likewise.
48603         * modules/rename-dest-slash (Makefile.am): Likewise.
48604         * modules/rename (Makefile.am): Likewise.
48605         * modules/rijndael (Makefile.am): Likewise.
48606         * modules/rmdir (Makefile.am): Likewise.
48607         * modules/rpmatch (Makefile.am): Likewise.
48608         * modules/safe-read (Makefile.am): Likewise.
48609         * modules/safe-write (Makefile.am): Likewise.
48610         * modules/same-inode (Makefile.am): Likewise.
48611         * modules/same (Makefile.am): Likewise.
48612         * modules/save-cwd (Makefile.am): Likewise.
48613         * modules/savedir (Makefile.am): Likewise.
48614         * modules/setenv (Makefile.am): Likewise.
48615         * modules/settime (Makefile.am): Likewise.
48616         * modules/sha1 (Makefile.am): Likewise.
48617         * modules/sig2str (Makefile.am): Likewise.
48618         * modules/snprintf (Makefile.am): Likewise.
48619         * modules/stat-macros (Makefile.am): Likewise.
48620         * modules/stat-time (Makefile.am): Likewise.
48621         * modules/stdbool (Makefile.am): Likewise.
48622         * modules/stdint (Makefile.am): Likewise.
48623         * modules/stdlib-safer (Makefile.am): Likewise.
48624         * modules/stpcpy (Makefile.am): Likewise.
48625         * modules/stpncpy (Makefile.am): Likewise.
48626         * modules/strcase (Makefile.am): Likewise.
48627         * modules/strcasestr (Makefile.am): Likewise.
48628         * modules/strchrnul (Makefile.am): Likewise.
48629         * modules/strcspn (Makefile.am): Likewise.
48630         * modules/strdup (Makefile.am): Likewise.
48631         * modules/strerror (Makefile.am): Likewise.
48632         * modules/strftime (Makefile.am): Likewise.
48633         * modules/strndup (Makefile.am): Likewise.
48634         * modules/strnlen (Makefile.am): Likewise.
48635         * modules/strpbrk (Makefile.am): Likewise.
48636         * modules/strsep (Makefile.am): Likewise.
48637         * modules/strstr (Makefile.am): Likewise.
48638         * modules/strtod (Makefile.am): Likewise.
48639         * modules/strtoimax (Makefile.am): Likewise.
48640         * modules/strtok_r (Makefile.am): Likewise.
48641         * modules/strtol (Makefile.am): Likewise.
48642         * modules/strtoll (Makefile.am): Likewise.
48643         * modules/strtoul (Makefile.am): Likewise.
48644         * modules/strtoull (Makefile.am): Likewise.
48645         * modules/strtoumax (Makefile.am): Likewise.
48646         * modules/strverscmp (Makefile.am): Likewise.
48647         * modules/sys_socket (Makefile.am): Likewise.
48648         * modules/sys_stat (Makefile.am): Likewise.
48649         * modules/sysexits (Makefile.am): Likewise.
48650         * modules/time_r (Makefile.am): Likewise.
48651         * modules/timegm (Makefile.am): Likewise.
48652         * modules/timespec (Makefile.am): Likewise.
48653         * modules/tmpfile-safer (Makefile.am): Likewise.
48654         * modules/trim (Makefile.am): Likewise.
48655         * modules/unistd-safer (Makefile.am): Likewise.
48656         * modules/unlinkdir (Makefile.am): Likewise.
48657         * modules/unlocked-io (Makefile.am): Likewise.
48658         * modules/userspec (Makefile.am): Likewise.
48659         * modules/utime (Makefile.am): Likewise.
48660         * modules/utimecmp (Makefile.am): Likewise.
48661         * modules/utimens (Makefile.am): Likewise.
48662         * modules/vasnprintf (Makefile.am): Likewise.
48663         * modules/vasprintf (Makefile.am): Likewise.
48664         * modules/vsnprintf (Makefile.am): Likewise.
48665         * modules/xalloc (Makefile.am): Likewise.
48666         * modules/xgetcwd (Makefile.am): Likewise.
48667         * modules/xnanosleep (Makefile.am): Likewise.
48668         * modules/xreadlink (Makefile.am): Likewise.
48669         * modules/xstrtod (Makefile.am): Likewise.
48670         * modules/xstrtol (Makefile.am): Likewise.
48671         * modules/xstrtold (Makefile.am): Likewise.
48672         * modules/yesno (Makefile.am): Likewise.
48673         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
48674
48675 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48676
48677         * modules/error (Makefile.am): Distribute files through
48678         EXTRA_DIST, not lib_SOURCES.
48679
48680 2006-10-12  Eric Blake  <ebb9@byu.net>
48681
48682         * modules/error (Makefile.am): Distribute files in /lib.
48683         * modules/obstack (Makefile.am): Likewise.
48684
48685 2006-10-12  Bruno Haible  <bruno@clisp.org>
48686
48687         * modules/acl (Makefile.am): Distribute all files in lib/ through
48688         EXTRA_DIST.
48689         * modules/arcfour (Makefile.am): Likewise.
48690         * modules/arctwo (Makefile.am): Likewise.
48691         * modules/argmatch (Makefile.am): Likewise.
48692         * modules/argz (Makefile.am): Likewise.
48693         * modules/atexit (Makefile.am): Likewise.
48694         * modules/backupfile (Makefile.am): Likewise.
48695         * modules/c-strtod (Makefile.am): Likewise.
48696         * modules/c-strtold (Makefile.am): Likewise.
48697         * modules/calloc (Makefile.am): Likewise.
48698         * modules/canon-host (Makefile.am): Likewise.
48699         * modules/canonicalize (Makefile.am): Likewise.
48700         * modules/chdir-long (Makefile.am): Likewise.
48701         * modules/chdir-safer (Makefile.am): Likewise.
48702         * modules/check-version (Makefile.am): Likewise.
48703         * modules/chown (Makefile.am): Likewise.
48704         * modules/cloexec (Makefile.am): Likewise.
48705         * modules/close-stream (Makefile.am): Likewise.
48706         * modules/closeout (Makefile.am): Likewise.
48707         * modules/crc (Makefile.am): Likewise.
48708         * modules/cycle-check (Makefile.am): Likewise.
48709         * modules/des (Makefile.am): Likewise.
48710         * modules/dirfd (Makefile.am): Likewise.
48711         * modules/dirname (Makefile.am): Likewise.
48712         * modules/dup2 (Makefile.am): Likewise.
48713         * modules/euidaccess (Makefile.am): Likewise.
48714         * modules/exclude (Makefile.am): Likewise.
48715         * modules/exitfail (Makefile.am): Likewise.
48716         * modules/fcntl-safer (Makefile.am): Likewise.
48717         * modules/file-type (Makefile.am): Likewise.
48718         * modules/fileblocks (Makefile.am): Likewise.
48719         * modules/filemode (Makefile.am): Likewise.
48720         * modules/filenamecat (Makefile.am): Likewise.
48721         * modules/fnmatch (Makefile.am): Likewise.
48722         * modules/fopen-safer (Makefile.am): Likewise.
48723         * modules/fpending (Makefile.am): Likewise.
48724         * modules/fprintftime (Makefile.am): Likewise.
48725         * modules/free (Makefile.am): Likewise.
48726         * modules/fsusage (Makefile.am): Likewise.
48727         * modules/ftruncate (Makefile.am): Likewise.
48728         * modules/fts (Makefile.am): Likewise.
48729         * modules/gc (Makefile.am): Likewise.
48730         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48731         * modules/getaddrinfo (Makefile.am): Likewise.
48732         * modules/getcwd (Makefile.am): Likewise.
48733         * modules/getdelim (Makefile.am): Likewise.
48734         * modules/getdomainname (Makefile.am): Likewise.
48735         * modules/getgroups (Makefile.am): Likewise.
48736         * modules/gethostname (Makefile.am): Likewise.
48737         * modules/gethrxtime (Makefile.am): Likewise.
48738         * modules/getline (Makefile.am): Likewise.
48739         * modules/getloadavg (Makefile.am): Likewise.
48740         * modules/getlogin_r (Makefile.am): Likewise.
48741         * modules/getopt (Makefile.am): Likewise.
48742         * modules/getpass (Makefile.am): Likewise.
48743         * modules/getpass-gnu (Makefile.am): Likewise.
48744         * modules/getsubopt (Makefile.am): Likewise.
48745         * modules/gettime (Makefile.am): Likewise.
48746         * modules/gettimeofday (Makefile.am): Likewise.
48747         * modules/getugroups (Makefile.am): Likewise.
48748         * modules/getusershell (Makefile.am): Likewise.
48749         * modules/glob (Makefile.am): Likewise.
48750         * modules/group-member (Makefile.am): Likewise.
48751         * modules/hard-locale (Makefile.am): Likewise.
48752         * modules/hash (Makefile.am): Likewise.
48753         * modules/hmac-md5 (Makefile.am): Likewise.
48754         * modules/hmac-sha1 (Makefile.am): Likewise.
48755         * modules/human (Makefile.am): Likewise.
48756         * modules/idcache (Makefile.am): Likewise.
48757         * modules/imaxabs (Makefile.am): Likewise.
48758         * modules/imaxdiv (Makefile.am): Likewise.
48759         * modules/inet_ntop (Makefile.am): Likewise.
48760         * modules/inet_pton (Makefile.am): Likewise.
48761         * modules/inttostr (Makefile.am): Likewise.
48762         * modules/isapipe (Makefile.am): Likewise.
48763         * modules/lchown (Makefile.am): Likewise.
48764         * modules/long-options (Makefile.am): Likewise.
48765         * modules/lstat (Makefile.am): Likewise.
48766         * modules/malloc (Makefile.am): Likewise.
48767         * modules/mathl (Makefile.am): Likewise.
48768         * modules/mbchar (Makefile.am): Likewise.
48769         * modules/md2 (Makefile.am): Likewise.
48770         * modules/md4 (Makefile.am): Likewise.
48771         * modules/md5 (Makefile.am): Likewise.
48772         * modules/memcasecmp (Makefile.am): Likewise.
48773         * modules/memchr (Makefile.am): Likewise.
48774         * modules/memcmp (Makefile.am): Likewise.
48775         * modules/memcoll (Makefile.am): Likewise.
48776         * modules/memcpy (Makefile.am): Likewise.
48777         * modules/memmem (Makefile.am): Likewise.
48778         * modules/memmove (Makefile.am): Likewise.
48779         * modules/mempcpy (Makefile.am): Likewise.
48780         * modules/memrchr (Makefile.am): Likewise.
48781         * modules/memset (Makefile.am): Likewise.
48782         * modules/memxor (Makefile.am): Likewise.
48783         * modules/mkancesdirs (Makefile.am): Likewise.
48784         * modules/mkdir (Makefile.am): Likewise.
48785         * modules/mkdir-p (Makefile.am): Likewise.
48786         * modules/mkdtemp (Makefile.am): Likewise.
48787         * modules/mkstemp (Makefile.am): Likewise.
48788         * modules/mktime (Makefile.am): Likewise.
48789         * modules/modechange (Makefile.am): Likewise.
48790         * modules/mountlist (Makefile.am): Likewise.
48791         * modules/nanosleep (Makefile.am): Likewise.
48792         * modules/openat (Makefile.am): Likewise.
48793         * modules/pagealign_alloc (Makefile.am): Likewise.
48794         * modules/physmem (Makefile.am): Likewise.
48795         * modules/poll (Makefile.am): Likewise.
48796         * modules/posixtm (Makefile.am): Likewise.
48797         * modules/posixver (Makefile.am): Likewise.
48798         * modules/putenv (Makefile.am): Likewise.
48799         * modules/quote (Makefile.am): Likewise.
48800         * modules/quotearg (Makefile.am): Likewise.
48801         * modules/raise (Makefile.am): Likewise.
48802         * modules/read-file (Makefile.am): Likewise.
48803         * modules/readline (Makefile.am): Likewise.
48804         * modules/readlink (Makefile.am): Likewise.
48805         * modules/readtokens (Makefile.am): Likewise.
48806         * modules/readutmp (Makefile.am): Likewise.
48807         * modules/realloc (Makefile.am): Likewise.
48808         * modules/regex (Makefile.am): Likewise.
48809         * modules/rename (Makefile.am): Likewise.
48810         * modules/rename-dest-slash (Makefile.am): Likewise.
48811         * modules/rijndael (Makefile.am): Likewise.
48812         * modules/rmdir (Makefile.am): Likewise.
48813         * modules/rpmatch (Makefile.am): Likewise.
48814         * modules/safe-read (Makefile.am): Likewise.
48815         * modules/safe-write (Makefile.am): Likewise.
48816         * modules/same (Makefile.am): Likewise.
48817         * modules/save-cwd (Makefile.am): Likewise.
48818         * modules/savedir (Makefile.am): Likewise.
48819         * modules/setenv (Makefile.am): Likewise.
48820         * modules/settime (Makefile.am): Likewise.
48821         * modules/sha1 (Makefile.am): Likewise.
48822         * modules/sig2str (Makefile.am): Likewise.
48823         * modules/snprintf (Makefile.am): Likewise.
48824         * modules/stdlib-safer (Makefile.am): Likewise.
48825         * modules/stpcpy (Makefile.am): Likewise.
48826         * modules/stpncpy (Makefile.am): Likewise.
48827         * modules/strcase (Makefile.am): Likewise.
48828         * modules/strcasestr (Makefile.am): Likewise.
48829         * modules/strchrnul (Makefile.am): Likewise.
48830         * modules/strcspn (Makefile.am): Likewise.
48831         * modules/strdup (Makefile.am): Likewise.
48832         * modules/strerror (Makefile.am): Likewise.
48833         * modules/strftime (Makefile.am): Likewise.
48834         * modules/strndup (Makefile.am): Likewise.
48835         * modules/strnlen (Makefile.am): Likewise.
48836         * modules/strpbrk (Makefile.am): Likewise.
48837         * modules/strsep (Makefile.am): Likewise.
48838         * modules/strstr (Makefile.am): Likewise.
48839         * modules/strtod (Makefile.am): Likewise.
48840         * modules/strtoimax (Makefile.am): Likewise.
48841         * modules/strtok_r (Makefile.am): Likewise.
48842         * modules/strtol (Makefile.am): Likewise.
48843         * modules/strtoll (Makefile.am): Likewise.
48844         * modules/strtoul (Makefile.am): Likewise.
48845         * modules/strtoull (Makefile.am): Likewise.
48846         * modules/strtoumax (Makefile.am): Likewise.
48847         * modules/strverscmp (Makefile.am): Likewise.
48848         * modules/time_r (Makefile.am): Likewise.
48849         * modules/timegm (Makefile.am): Likewise.
48850         * modules/tmpfile-safer (Makefile.am): Likewise.
48851         * modules/unistd-safer (Makefile.am): Likewise.
48852         * modules/unlinkdir (Makefile.am): Likewise.
48853         * modules/userspec (Makefile.am): Likewise.
48854         * modules/utime (Makefile.am): Likewise.
48855         * modules/utimecmp (Makefile.am): Likewise.
48856         * modules/utimens (Makefile.am): Likewise.
48857         * modules/vasnprintf (Makefile.am): Likewise.
48858         * modules/vasprintf (Makefile.am): Likewise.
48859         * modules/vsnprintf (Makefile.am): Likewise.
48860         * modules/xalloc (Makefile.am): Likewise.
48861         * modules/xgetcwd (Makefile.am): Likewise.
48862         * modules/xnanosleep (Makefile.am): Likewise.
48863         * modules/xreadlink (Makefile.am): Likewise.
48864         * modules/xstrtod (Makefile.am): Likewise.
48865         * modules/xstrtol (Makefile.am): Likewise.
48866         * modules/xstrtold (Makefile.am): Likewise.
48867         * modules/yesno (Makefile.am): Likewise.
48868
48869 2006-10-12  Jim Meyering  <jim@meyering.net>
48870
48871         * m4/getloadavg.m4: Revert the change below.
48872
48873         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
48874         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
48875         fail with a symlink, which is what coreutils' ./bootstrap now
48876         creates by default.
48877
48878 2006-10-12  Bruno Haible  <bruno@clisp.org>
48879
48880         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
48881         mingw.
48882         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
48883         MSVC and mingw explicitly.
48884
48885 2006-10-11  Simon Josefsson  <jas@extundo.com>
48886             Bruno Haible  <bruno@clisp.org>
48887
48888         Add support for multiple gnulib-tool invocations in the scope of a
48889         single configure.ac file.
48890         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
48891         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
48892         with the same contents as the _LIBADD variable.
48893         (func_emit_initmacro_start, func_emit_initmacro_end,
48894         func_emit_initmacro_done): New functions.
48895         (func_import, func_create_testdir): Invoke them. Allow the identifiers
48896         gl_LIBOBJS and gl_LTLIBOBJS.
48897
48898 2006-10-11  Bruno Haible  <bruno@clisp.org>
48899
48900         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
48901         (func_create_testdir): Don't create po/Makefile.am, don't invoke
48902         autoreconf. Instead, invoke autopoint explicitly but move back the
48903         *.m4 files from gnulib.
48904
48905 2006-10-11  Bruno Haible  <bruno@clisp.org>
48906
48907         * gnulib-tool (func_usage): Make module names after --create-testdir
48908         optional.
48909         (func_create_testdir): If no module was specified, use nearly all
48910         modules.
48911
48912 2006-10-12  Jim Meyering  <jim@meyering.net>
48913
48914         Big performance improvement for fts-based tools that use FTS_NOSTAT.
48915         Avoid spurious inode-mismatch problems on non-POSIX file systems.
48916         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
48917         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
48918         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
48919         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
48920         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
48921         (fts_set_stat_required): New function.
48922         (fts_open): Defer the calls to fts_stat, if possible or requested.
48923         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
48924         into fts_stat itself.
48925         (fts_read): Perform any required (deferred) fts_stat call.
48926         (fts_build): Likewise, for the directory we're about to open and read.
48927         In the readdir loop, carefully decide whether each entry will require
48928         an eventual call to fts_stat, using dirent.d_type info if available.
48929         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
48930         a command line argument into this function.  Update all callers.
48931         Map a return value of FTS_DOT to FTS_D for a command line argument.
48932         * modules/fts (Depends-on): Add d-type.  Alphabetize.
48933         Thanks to Miklos Szeredi for his tenacity and for the initial
48934         bug report about "find" failing on a FUSE-based file system.
48935
48936         * lib/fts.c (fts_open): Use consistent indentation.
48937
48938 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48939
48940         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
48941         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
48942         reported by Jim Meyering.  All uses of cache variables renamed
48943         to match Autoconf's.
48944         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
48945         the other one.
48946
48947         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
48948         Fix misspelling in diagnostic.
48949
48950 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48951
48952         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
48953         defined.  Problem reported by Matthew Woehlke.
48954
48955         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
48956         Add support for Tandem NonStop R series.
48957         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
48958         Use new macro.
48959
48960         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
48961         (has_trailing_slash): Omit size arg; all callers changed.
48962         Omit 'inline', since it doesn't help performance and we'd
48963         need to configure it.
48964         Don't count //, ///, etc. as having a trailing slash.
48965         As a side effect, this removes a C99ism reported by Matthew Woehlke.
48966         (rpl_rename_dest_slash): On failure, use rename's errno rather
48967         than (in some cases) an incorrect or junk errno.
48968         Simplify code by removing need to compute length; this does
48969         cause it to make two passes instead of one over the file name,
48970         but it's worth it.
48971
48972         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
48973         change, since Autoconf's version may no longer be appropriate now
48974         that we are using CVS Autoconf's version.  Add support for Tandem.
48975
48976 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48977             Bruno Haible  <bruno@clisp.org>
48978
48979         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
48980         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
48981         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
48982         gl_AC_TYPE_LONG_LONG.
48983
48984         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
48985         instead of HAVE_LONG_LONG.
48986         * lib/printf-args.c (printf_fetchargs): Likewise.
48987         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
48988         * lib/vasnprintf.c (VASNPRINTF): Likewise.
48989         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
48990         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
48991         gl_AC_TYPE_LONG_LONG.
48992
48993 2006-10-11  Bruno Haible  <bruno@clisp.org>
48994
48995         * m4/longlong.m4: Add comments.
48996         * m4/ulonglong.m4: Likewise.
48997
48998 2006-10-10  Bruno Haible  <bruno@clisp.org>
48999
49000         Make it possible to #define stpcpy, strdup to aliases.
49001         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
49002         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
49003
49004 2006-10-10  Bruno Haible  <bruno@clisp.org>
49005
49006         Make it possible to #define gcd to an alias.
49007         * lib/gcd.c: Include config.h.
49008
49009 2006-10-10  Bruno Haible  <bruno@clisp.org>
49010
49011         Make it possible to #define c_isascii to an alias.
49012         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
49013         defined. Undefine the macros before defining them, to avoid gcc
49014         warnings.
49015         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
49016         define NO_C_CTYPE_MACROS early.
49017
49018 2006-10-10  Bruno Haible  <bruno@clisp.org>
49019
49020         Make it possible to #define set_program_name to an alias.
49021         * lib/progname.c: Don't undefine set_program_name; instead, undefine
49022         ENABLE_RELOCATABLE early.
49023
49024 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
49025
49026         Port to Tandem NSK OSS, which has 64-bit signed int but at most
49027         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
49028         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
49029         More generally, don't assume that 64-bit signed int is available
49030         if unsigned int is, and vice versa.
49031         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
49032         unsigned symbols, not on their signed counterparts.
49033         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
49034         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
49035         (UINT64_C, UINTMAX_C):
49036         Likewise.
49037         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
49038         unsigned counterparts.
49039         (Have_long_long, Unsigned): New macros.
49040         (Int): Renamed from INT.
49041         (strtoimax): Use the new macros.
49042         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
49043         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
49044         * modules/inttypes (inttypes.h): Substitute
49045         HAVE_UNSIGNED_LONG_LONG_INT.
49046         * modules/stdint (stdint.h): Likewise.
49047         (Files): Add m4/ulonglong.m4.
49048
49049 2006-10-10  Bruno Haible  <bruno@clisp.org>
49050
49051         Fix a gcc -Wshadow warning.
49052         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
49053         to 'bucket'.
49054         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
49055         gl_linked_indexof_from_to): Likewise.
49056         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
49057         Likewise.
49058         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
49059         Likewise.
49060         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
49061         Reported by Eric Blake.
49062
49063 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
49064
49065         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
49066         for NetBSD.  Problem reported by Bruno Haible.
49067
49068 2006-10-09  Jim Meyering  <jim@meyering.net>
49069
49070         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
49071         Patch from Bruno Haible.
49072
49073 2006-10-09  Jim Meyering  <jim@meyering.net>
49074
49075         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
49076         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
49077         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
49078
49079 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
49080
49081         Don't include <config.h> twice; this doesn't work in some cases,
49082         e.g., when config.h has "#define intmax_t long long int" and
49083         we include <config.h>, <inttypes.h>, <config.h> in that order.
49084         Problem reported by Matthew Woehlke in:
49085         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
49086         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
49087         * lib/fts-cycle.c: Don't include config.h.
49088         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
49089         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
49090         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
49091         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
49092         inttypes.h.
49093         * lib/xstrtoumax.c: Likewise.
49094         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
49095         __strtol and the like, so that this module is more like its siblings.
49096         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
49097         Remove; no longer needed now that we assume gnulib inttypes.h.
49098
49099 2006-10-08  Bruno Haible  <bruno@clisp.org>
49100
49101         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
49102         option.
49103
49104 2006-10-07  Jim Meyering  <jim@meyering.net>
49105
49106         * modules/inttypes (inttypes.h): Revert what seems to have been
49107         an inadvertent part of today's change: use "|", not "/" in the
49108         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
49109
49110 2006-10-07  Bruno Haible  <bruno@clisp.org>
49111
49112         * modules/sublist: New file.
49113
49114 2006-10-07  Bruno Haible  <bruno@clisp.org>
49115
49116         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
49117         * modules/argz (argz.h): Likewise.
49118         * modules/arpa_inet (arpa/inet.h): Likewise.
49119         * modules/byteswap (byteswap.h): Likewise.
49120         * modules/configmake (configmake.h): Likewise.
49121         * modules/fcntl (fcntl.h): Likewise.
49122         * modules/fnmatch (fnmatch.h): Likewise.
49123         * modules/getopt (getopt.h): Likewise.
49124         * modules/glob (glob.h): Likewise.
49125         * modules/inttypes (inttypes.h): Likewise.
49126         * modules/netinet_in (netinet/in.h): Likewise.
49127         * modules/poll (poll.h): Likewise.
49128         * modules/stdbool (stdbool.h): Likewise.
49129         * modules/stdint (stdint.h): Likewise.
49130         * modules/sys_select (sys/select.h): Likewise.
49131         * modules/sys_socket (sys/socket.h): Likewise.
49132         * modules/sys_stat (sys/stat.h): Likewise.
49133         * modules/sysexits (sysexits.h): Likewise.
49134         * modules/unistd (unistd.h): Likewise.
49135         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49136         Add a "DO NOT EDIT" comment to the generated file.
49137         (func_import): Likewise for gnulib-comp.m4.
49138
49139 2006-10-07  Bruno Haible  <bruno@clisp.org>
49140
49141         * lib/gl_sublist.h: New file.
49142         * lib/gl_sublist.c: New file.
49143
49144 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
49145
49146         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
49147         name (relative to the original working directory) and the file
49148         name component (relative to the temporary working directory).  All
49149         callers changed.
49150         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
49151         * lib/mkdir-p.c (make_dir_parents): Likewise.
49152         * lib/mkdir-p.h (make_dir_parents): Likewise.
49153
49154 2006-10-06  Eric Blake  <ebb9@byu.net>
49155
49156         Define several macros for use by the clean-temp module.
49157         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
49158         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
49159         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
49160
49161         * lib/clean-temp.h (close_stream_temp): New declaration.
49162         * lib/clean-temp.c (includes): Pull in headers according to what
49163         other modules are in use.
49164         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
49165
49166 2006-10-06  Bruno Haible  <bruno@clisp.org>
49167
49168         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
49169         instead of fopen, fwriteerror.
49170
49171 2006-10-06  Bruno Haible  <bruno@clisp.org>
49172
49173         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
49174         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
49175         int.
49176         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
49177         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
49178         Return an error indicator.
49179         Suggested by Eric Blake.
49180
49181 2006-10-06  Bruno Haible  <bruno@clisp.org>
49182
49183         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
49184         Reported by Eric Blake.
49185
49186 2006-10-06  Bruno Haible  <bruno@clisp.org>
49187
49188         * modules/closeout (Description): Mention stderr too.
49189
49190 2006-10-06  Bruno Haible  <bruno@clisp.org>
49191         and Paul Eggert  <eggert@cs.ucla.edu>
49192
49193         * lib/closeout.c (close_stdout): Also close stderr.
49194         * lib/closeout.h: Update comment.
49195
49196 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
49197
49198         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
49199         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
49200         * lib/dirchownmod.c: Include lchown.h.
49201         * lib/lchown.c: Don't include files that lchown.h now includes.
49202         Don't declare chown, since lchown.h now does that.
49203         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
49204         (lchown): Define to rpl_chown if lchown is declared but
49205         does not exist.  Declare using a prototype if lchown is not
49206         declared.  Add a copyright notice.
49207         * lib/mkstemp.h: Include <unistd.h>.
49208         * lib/openat.c: Include lchown.h.
49209
49210         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
49211         we now test for that separately.
49212         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
49213         rather than O_NOFOLLOW, when testing whether it's possible to
49214         avoid a race condition reliably.
49215         * lib/savewd.c (savewd_chdir): Likewise.
49216
49217         Remove macros that are no longer needed now that stdint.h is
49218         reliable.
49219         * lib/fsusage.c (UINTMAX_MAX): Remove.
49220         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
49221         * lib/utimecmp.c (SIZE_MAX): Remove.
49222
49223         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
49224
49225         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
49226         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
49227         O_NOATIME works.
49228
49229 2006-10-05  Bruno Haible  <bruno@clisp.org>
49230
49231         * lib/gl_list.h (gl_sortedlist_search_from_to,
49232         gl_sortedlist_indexof_from_to): New declarations.
49233         (gl_list_implementation): New fields sortedlist_search_from_to,
49234         sortedlist_indexof_from_to.
49235         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
49236         inline functions.
49237         * lib/gl_list.c (gl_sortedlist_search_from_to,
49238         gl_sortedlist_indexof_from_to): New functions.
49239         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
49240         function.
49241         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
49242         (gl_array_sortedlist_search_from_to): New function.
49243         (gl_array_list_implementation): Update.
49244         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
49245         function.
49246         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
49247         (gl_carray_sortedlist_search_from_to): New function.
49248         (gl_carray_list_implementation): Update.
49249         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
49250         gl_linked_sortedlist_indexof_from_to): New functions.
49251         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49252         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49253         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
49254         gl_tree_sortedlist_indexof_from_to): New functions.
49255         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49256         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49257         Update.
49258         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49259         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
49260         Update.
49261
49262 2006-10-05  Bruno Haible  <bruno@clisp.org>
49263
49264         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
49265         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
49266         (struct gl_list_implementation): Add fields search_from_to,
49267         indexof_from_to. Remove fields search, indexof.
49268         (gl_list_search): Use the search_from_to method.
49269         (gl_list_search_from, gl_list_search_from_to): New functions.
49270         (gl_list_indexof): Use the indexof_from_to method.
49271         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49272         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
49273         (gl_list_search_from, gl_list_search_from_to): New functions.
49274         (gl_list_indexof): Use the indexof_from_to method.
49275         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
49276         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
49277         gl_array_indexof. Add start_index, end_index arguments.
49278         (gl_array_search_from_to): Renamed from gl_array_search. Add
49279         start_index, end_index arguments.
49280         (gl_array_remove, gl_array_list_implementation): Update.
49281         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
49282         gl_carray_indexof. Add start_index, end_index arguments.
49283         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
49284         start_index, end_index arguments.
49285         (gl_carray_remove, gl_carray_list_implementation): Update.
49286         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
49287         gl_linked_search. Add start_index, end_index arguments.
49288         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
49289         start_index, end_index arguments.
49290         (gl_linked_remove): Update.
49291         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
49292         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
49293         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
49294         field to 'size_t'.
49295         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
49296         gl_tree_search. Add start_index, end_index arguments.
49297         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49298         start_index, end_index arguments.
49299         (gl_tree_remove): Update.
49300         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
49301         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
49302         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
49303         function.
49304         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
49305         gl_tree_search. Add start_index, end_index arguments.
49306         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
49307         start_index, end_index arguments.
49308         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
49309         Update.
49310         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
49311
49312 2006-10-05  Bruno Haible  <bruno@clisp.org>
49313
49314         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
49315
49316         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
49317         fwriteerror_temp): New declarations.
49318         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
49319         (descriptors): New variable.
49320         (cleanup): First, close the descriptors.
49321         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
49322         fclose_temp, fwriteerror_temp): New functions.
49323
49324 2006-10-04  Jim Meyering  <jim@meyering.net>
49325
49326         * lib/fts.c (fts_open): Tiny comment change.
49327
49328 2006-10-04  Bruno Haible  <bruno@clisp.org>
49329
49330         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
49331         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
49332         gl_LOCK_BODY.
49333         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
49334         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
49335         gl_LOCK_EARLY_BODY.
49336         (gl_LOCK): Require gl_LOCK_BODY.
49337
49338 2006-10-04  Bruno Haible  <bruno@clisp.org>
49339
49340         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
49341         (gl_oset_search_atleast): New declaration.
49342         (struct gl_oset_implementation): Add field 'search_atleast'.
49343         (gl_oset_search_atleast): New inline function.
49344         * lib/gl_oset.c (gl_oset_search_atleast): New function.
49345         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
49346         (gl_array_oset_implementation): Update.
49347         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
49348         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
49349         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
49350
49351 2006-10-04  Bruno Haible  <bruno@clisp.org>
49352
49353         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
49354
49355 2006-10-03  Bruno Haible  <bruno@clisp.org>
49356
49357         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
49358         from gl_avltreehash_list_implementation.
49359
49360 2006-10-03  Bruno Haible  <bruno@clisp.org>
49361
49362         * lib/gl_oset.c (gl_oset_add): Fix return type.
49363
49364 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
49365
49366         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
49367
49368 2006-10-02  Eric Blake  <ebb9@byu.net>
49369
49370         * modules/strnlen (Depends-on): Add extensions.
49371
49372 2006-10-02  Eric Blake  <ebb9@byu.net>
49373
49374         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
49375         definition in 2.60+.
49376
49377 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
49378
49379         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
49380         checks.
49381
49382 2006-10-02  Bruno Haible  <bruno@clisp.org>
49383
49384         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
49385         to the AUTOMAKE_OPTIONS.
49386         Reported by Jim Meyering.
49387
49388 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
49389
49390         Work around bug in Solaris 10 /proc file system:
49391         /proc/self/fd/NNN/.. isn't the parent directory of
49392         the directory whose file descriptor is NNN.  This needs to
49393         be worked around at run time, not compile time, since a
49394         program might be built on Solaris 8, where things work, and
49395         run on Solaris 10.
49396         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
49397         to use the following interface instead:
49398         (OPENAT_BUFFER_SIZE): New macro.
49399         (openat_proc_name): New function.
49400         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
49401         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
49402         Likewise.
49403         * lib/openat-proc.c: New file.
49404         * modules/openat (Files): Add lib/openat-proc.c.
49405         (Depends-on): Add same-inode, stdbool.
49406         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
49407
49408 2006-09-29  Bruno Haible  <bruno@clisp.org>
49409
49410         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
49411         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
49412         argument. Set stdout_closed before testing for ferror, not after.
49413         (fwriteerror, fwriteerror_no_ebadf): New functions.
49414
49415 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49416
49417         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
49418
49419 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
49420
49421         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
49422         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
49423
49424 2006-09-28  Jim Meyering  <jim@meyering.net>
49425
49426         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
49427         Include <unistd.h>.
49428
49429 2006-09-28  Bruno Haible  <bruno@clisp.org>
49430
49431         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
49432         * modules/linkedhash-list (Depends-on): Likewise.
49433         * modules/rbtreehash-list (Depends-on): Likewise.
49434
49435 2006-09-28  Bruno Haible  <bruno@clisp.org>
49436
49437         * lib/strndup.h: Simplify the redefinition of strndup.
49438         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
49439         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
49440
49441 2006-09-28  Bruno Haible  <bruno@clisp.org>
49442
49443         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
49444         * lib/gl_linkedhash_list.c: Likewise.
49445         * lib/gl_rbtreehash_list.c: Likewise.
49446
49447 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
49448
49449         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
49450         getaddrinfo.
49451
49452         * lib/__fpending.h: Don't include <stdio_ext.h> unless
49453         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
49454         it causes <stdio_ext.h> to cause a compile-time error.
49455         Problem reported by Nelson H. F. Beebe.
49456         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
49457         of HAVE_DECL___PENDING.
49458
49459         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
49460         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
49461         declaration.
49462
49463 2006-09-27  Jim Meyering  <jim@meyering.net>
49464
49465         This file could end up with a definition for a function
49466         named __strndup, rather than rpl_strndup on a system with
49467         incomplete weak_alias support.
49468         * lib/strndup.c (strndup): Rename from __strndup.
49469         Remove #defines that used to map __strndup to strndup.
49470         Don't use K&R prototypes.
49471         Remove LIBC-related code, since this file is not sync'd with glibc.
49472         * lib/strndup.h: Revamp, accordingly.
49473         * m4/strndup.m4: Modernize.
49474
49475 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
49476
49477         * modules/savewd (Depends-on): Add 'raise'.
49478         * lib/savewd.c: Include <signal.h>, for 'raise'.
49479
49480 2006-09-26  Jim Meyering  <jim@meyering.net>
49481
49482         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
49483         when we detect Darwin 8.7.0's acl_get_file bug.
49484         Rearrange to perform the new (below) run-test while $LIBS
49485         contains any acl-related library.  Set USE_ACL at the end.
49486         (gl_ACL_GET_FILE): New function.
49487
49488 2006-09-26  Eric Blake  <ebb9@byu.net>
49489
49490         * lib/verror.c: Include <config.h> unconditionally.
49491
49492 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
49493
49494         * modules/clock-time (Maintainer): Add self.
49495         * modules/getlogin_r (Depends-on): Add extensions.
49496
49497 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49498
49499         * modules/clock-time: New module.
49500         * modules/nanosleep (Depends-on): Add clock-time.
49501         * modules/gethrxtime (Depends-on): Likewise.
49502         * modules/gettime (Depends-on): Likewise.
49503         * modules/settime (Depends-on): Likewise.
49504
49505         * modules/fts-lgpl: Depend on openat.
49506         * modules/mkancesdirs: Depend on savewd.
49507         * modules/mkdir-p: Likewise.
49508
49509 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49510
49511         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
49512
49513         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
49514         `gl_have_arbitrary_file_name_length_limit' to
49515         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
49516         actually works between configure runs.
49517
49518 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49519             Bruno Haible  <bruno@clisp.org>
49520
49521         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
49522
49523 2006-09-25  Jim Meyering  <jim@meyering.net>
49524
49525         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
49526         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
49527
49528 2006-09-25  Eric Blake  <ebb9@byu.net>
49529
49530         * gnulib-tool (func_import, func_create_testdir): Fix typos in
49531         exec's in 2006-09-18 patch when shuffling fds.
49532
49533 2006-09-25  Bruno Haible  <bruno@clisp.org>
49534
49535         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
49536         Reported by Jim Meyering.
49537
49538 2006-09-24  Jim Meyering  <jim@meyering.net>
49539
49540         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
49541         compare a pointer against a literal "0".  That caused failures with
49542         at least HP-UX's hpcc.
49543
49544 2006-09-22  Simon Josefsson  <jas@extundo.com>
49545
49546         * modules/gc-sha1:
49547         * modules/gc-md4:
49548         * modules/gc-hmac-sha1:
49549         * modules/gc-hmac-md5:
49550         * modules/gc-des:
49551         * modules/gc-arcfour: Distribute more files.
49552
49553 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49554
49555         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
49556         (gl_linked_iterator_from_to): Initialize struct completely.
49557         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
49558         (gl_tree_iterator_from_to): Likewise
49559         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
49560         * lib/gl_array_list.c [lint] (gl_array_iterator)
49561         (gl_array_iterator_from_to): Likewise.
49562         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
49563         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
49564         (gl_carray_iterator_from_to): Likewise.
49565
49566         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
49567         * lib/md4.c (md4_process_block): Remove unused variable.
49568         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
49569         parentheses for clarity.
49570
49571 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49572
49573         * modules/bison-i18n (Depends-on): Add gettext.
49574
49575 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49576
49577         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
49578         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
49579         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
49580         also add missing comma that caused broken test.
49581         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
49582         stdlib.h, for `abort'.
49583         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
49584         variables.
49585         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
49586         include unistd.h if present, for `rmdir'.
49587         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
49588         variables.
49589         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
49590         in the process include standard headers for prototypes.
49591         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
49592         gets declared on GNU/Linux.
49593         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
49594         unistd.h, for `rmdir'.
49595         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
49596
49597         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
49598         always true.
49599         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
49600
49601         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
49602
49603 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49604
49605         * gnulib-tool (func_version): Create output all at once.  This
49606         may help avoid triggering unnecessary SIGPIPEs, and at any
49607         rate it doesn't hurt.
49608
49609 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49610             Bruno Haible  <bruno@clisp.org>
49611
49612         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
49613         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49614         * m4/signed.m4 (bh_C_SIGNED): Likewise.
49615
49616         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
49617         (gl_FUNC_VASPRINTF): Invoke it.
49618
49619 2006-09-22  Bruno Haible  <bruno@clisp.org>
49620
49621         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
49622         getloadavg.c as first argument.
49623
49624 2006-09-22  Bruno Haible  <bruno@clisp.org>
49625
49626         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
49627         at the beginning of the gl_INIT macro.
49628         * modules/getloadavg (configure.ac): Pass $gl_source_base to
49629         gl_GETLOADAVG.
49630
49631 2006-09-22  Bruno Haible  <bruno@clisp.org>
49632
49633         * gnulib-tool (func_create_megatestdir): Don't include the config-h
49634         module.
49635         Suggested by Ralf Wildenhues.
49636
49637 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
49638
49639         Import this patch from libc:
49640
49641         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
49642
49643         * lib/regex_internal.c (re_string_reconstruct): Handle
49644         offset < pstr->valid_raw_len && pstr->offsets_needed case.
49645         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
49646         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
49647         re_string_context_at.
49648
49649         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
49650         now requires it.
49651         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
49652         gl_REGEX now does it for us.
49653         (gl_REGEX): Add test taken from
49654         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
49655
49656         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
49657         Check that large offsets work.  Modernize Autoconf usages.
49658         Prefer "yes" to mean a good thing rather than a bad.
49659         Don't put "#define mkstemp" in config.h, as this might interfere
49660         with standard system headers that "#define mkstemp mkstemp64".
49661
49662         * modules/mkstemp (Depends-on): Add extensions, so that
49663         mkstemp is visible on some platforms.
49664         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
49665         (Include): Change to "mkstemp.h" from <stdlib.h>.
49666         (Files): Add mkstemp.h.
49667
49668         * lib/mkstemp.h: New file, since some standard headers
49669         #define mkstemp.
49670         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
49671         Include "mkstemp.h".
49672         Make the _LIBC code resemble glibc original more,
49673         e.g., use K&R style.
49674         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
49675         (mkstemp): Remove, since mkstemp.h does this for us.
49676         * lib/stdlib--.h: Include mkstemp.h.
49677
49678         Import this patch from libc:
49679
49680         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49681
49682         * lib/tempname.c (__gen_tempname): Change attempts_min
49683         into a macro.  Use preprocessor to decide how to initialize
49684         attempts [Coverity CID 67].
49685
49686 2006-09-20  Bruno Haible  <bruno@clisp.org>
49687
49688         * lib/mkdtemp.c: Import from libc.
49689         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
49690                 * sysdeps/posix/tempname.c (__gen_tempname): Change
49691                 attempts_min into a macro.  Use preprocessor to decide how to
49692                 initialize attempts [Coverity CID 67].
49693         2001-11-27  Paul Eggert  <eggert@twinsun.com>
49694                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
49695                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
49696
49697 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49698
49699         * gnulib-tool (func_exit): New function, to allow to pass the
49700         exit status portably through the trap.  Use everywhere.
49701         (--help, --version): Signal a write error.
49702         (trap): catch SIGPIPE, for write errors.
49703         Exit at the end of the trap, with the correct exit status.
49704
49705 2006-09-19  Karl Berry  <karl@gnu.org>
49706
49707         * doc/gnulib.texi: note about the license texinfo files.
49708
49709 2006-09-19  Eric Blake  <ebb9@byu.net>
49710
49711         * gnulib-tool: Avoid space-tab.
49712
49713 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49714
49715         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
49716         that prevented coreutils 6.1 from building.  Problem reported
49717         by Petter Reinholdtsen.
49718
49719 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49720
49721         * gnulib-tool (avoidlist): Fix typo that broke options like
49722         --avoid=lock that are used by coreutils bootstrap.
49723
49724 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
49725
49726         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
49727         more systematically.
49728
49729 2006-09-18  Jim Meyering  <jim@meyering.net>
49730
49731         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
49732
49733 2006-09-18  Bruno Haible  <bruno@clisp.org>
49734
49735         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
49736
49737 2006-09-18  Bruno Haible  <bruno@clisp.org>
49738
49739         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
49740         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
49741         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
49742         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
49743         * m4/gettext.m4: Require autoconf >= 2.52.
49744         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
49745         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
49746         of gl_cv_header_inttypes_h.
49747
49748 2006-09-18  Bruno Haible  <bruno@clisp.org>
49749
49750         * lib/javaversion.c: Include configmake.h.
49751
49752 2006-09-18  Bruno Haible  <bruno@clisp.org>
49753
49754         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
49755         avoid that the while loops be executed in a subshell.
49756
49757 2006-09-18  Bruno Haible  <bruno@clisp.org>
49758
49759         * MODULES.html.sh (func_module): Break long lines.
49760         Suggested by Bruce Korb <bkorb@gnu.org>.
49761
49762 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49763
49764         Speed up by a factor of 1.12.
49765         * gnulib-tool (nl): New variable.
49766         (func_import): Rewrite include directive extraction to only read each
49767         directive once.
49768
49769 2006-09-17  Bruno Haible  <bruno@clisp.org>
49770
49771         * modules/javaversion (Makefile.am): Remove DEFS setting.
49772         (Depends-on): Add configmake, for PKGDATADIR definition.
49773
49774 2006-09-17  Bruno Haible  <bruno@clisp.org>
49775
49776         * gnulib-tool (func_create_testdir): Rewrite all files at once.
49777
49778 2006-09-17  Bruno Haible  <bruno@clisp.org>
49779
49780         * gnulib-tool (func_append): New function, stolen from libtool.m4.
49781         (func_modules_transitive_closure, func_modules_add_dummy,
49782         func_modules_to_filelist, func_import, func_create_testdir,
49783         func_create_megatestdir, ...): Use it wherever possible.
49784         Suggested by Ralf Wildenhues.
49785
49786 2006-09-16  Karl Berry  <karl@gnu.org>
49787
49788         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
49789         to avoid sectioning errors.
49790         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
49791         [ifinfo]: blank line after @center-ed titles.
49792         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
49793         Spell FSF address consistently with others.
49794         (These changes approved by rms.)
49795
49796 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49797
49798         Speed up by a factor of 1.61.
49799         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
49800         already checked module names again.
49801
49802 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49803
49804         Speed up by a factor of 1.13.
49805         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
49806         for new_files, and the input to func_add_or_update.
49807
49808 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49809
49810         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
49811         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
49812
49813 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49814
49815         * modules/mkancesdirs (Depends-on): Add fcntl.
49816         * modules/savewd: New file.
49817         * MODULES.html.sh (File system functions): Add savewd.
49818
49819         * modules/configmake (Makefile.am): Add support for the
49820         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
49821
49822 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49823
49824         * m4/savewd.m4: New file.
49825
49826 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49827
49828         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
49829         (dirchownmod): New arg FD.  All callers changed.
49830         Use FD rather than opening the directory ourself, as opening is
49831         now the caller's responsibility.
49832         * lib/dirchownmod.h: Likewise.
49833         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
49834         hosts that require <sys/types.h> before <sys/stat.h>.  Include
49835         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
49836         (test_dir): Remove.
49837         (mkancesdirs): Return length of prefix of FILE that has already
49838         been made, or -2 if there is a child doing the work.  Redo
49839         algorithm so that it is O(N) rather than O(N**2).  Optimize away
49840         ".", and treat ".." specially since it might stray back into
49841         already-created areas.  Use a subprocess if necessary.  New arg
49842         WD; all users changed.  MAKE_DIR function should now return 1
49843         if it creates a directory that is not readable.  Return -2 if
49844         a child process is spun off.
49845         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
49846         Adjust signature to match code.
49847         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
49848         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
49849         all users changed.
49850         * lib/savewd.c, lib/savewd.h: New files.
49851
49852 2006-09-15  Jim Meyering  <jim@meyering.net>
49853
49854         * modules/rename-dest-slash: New module.
49855         * MODULES.html.sh (posix_compat): Add it here.
49856
49857         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
49858
49859 2006-09-15  Jim Meyering  <jim@meyering.net>
49860
49861         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
49862         file.
49863
49864         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
49865
49866 2006-09-15  Jim Meyering  <jim@meyering.net>
49867
49868         * lib/rename-dest-slash.c (has_trailing_slash): Use
49869         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
49870         (rpl_rename_dest_slash): Perform the cheaper trailing slash
49871         test before testing whether SRC is a directory.
49872         Suggestions from Bruno Haible.
49873
49874         Avoid a warning about an unused variable.
49875         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
49876         into the #ifdef block where it's used.
49877
49878         * lib/rename-dest-slash.c: New file.
49879
49880 2006-09-14  Bruno Haible  <bruno@clisp.org>
49881
49882         * lib/allocsa.c: Include <config.h> unconditionally.
49883         * lib/asnprintf.c: Likewise.
49884         * lib/asprintf.c: Likewise.
49885         * lib/c-strcasecmp.c: Likewise.
49886         * lib/c-strcasestr.c: Likewise.
49887         * lib/c-strncasecmp.c: Likewise.
49888         * lib/c-strstr.c: Likewise.
49889         * lib/classpath.c: Likewise.
49890         * lib/clean-temp.c: Likewise.
49891         * lib/concatpath.c: Likewise.
49892         * lib/copy-file.c: Likewise.
49893         * lib/csharpcomp.c: Likewise.
49894         * lib/csharpexec.c: Likewise.
49895         * lib/execute.c: Likewise.
49896         * lib/fatal-signal.c: Likewise.
49897         * lib/findprog.c: Likewise.
49898         * lib/fwriteerror.c: Likewise.
49899         * lib/gl_array_list.c: Likewise.
49900         * lib/gl_array_oset.c: Likewise.
49901         * lib/gl_avltree_list.c: Likewise.
49902         * lib/gl_avltree_oset.c: Likewise.
49903         * lib/gl_avltreehash_list.c: Likewise.
49904         * lib/gl_carray_list.c: Likewise.
49905         * lib/gl_linked_list.c: Likewise.
49906         * lib/gl_linkedhash_list.c: Likewise.
49907         * lib/gl_list.c: Likewise.
49908         * lib/gl_oset.c: Likewise.
49909         * lib/gl_rbtree_list.c: Likewise.
49910         * lib/gl_rbtree_oset.c: Likewise.
49911         * lib/gl_rbtreehash_list.c: Likewise.
49912         * lib/imaxabs.c: Likewise.
49913         * lib/imaxdiv.c: Likewise.
49914         * lib/javacomp.c: Likewise.
49915         * lib/javaexec.c: Likewise.
49916         * lib/javaversion.c: Likewise.
49917         * lib/linebreak.c: Likewise.
49918         * lib/localcharset.c: Likewise.
49919         * lib/lock.c: Likewise.
49920         * lib/mbchar.c: Likewise.
49921         * lib/mbswidth.c: Likewise.
49922         * lib/mkdtemp.c: Likewise.
49923         * lib/pipe.c: Likewise.
49924         * lib/printf-args.c: Likewise.
49925         * lib/printf-parse.c: Likewise.
49926         * lib/progname.c: Likewise.
49927         * lib/progreloc.c: Likewise.
49928         * lib/readlink.c: Likewise.
49929         * lib/sh-quote.c: Likewise.
49930         * lib/stpcpy.c: Likewise.
49931         * lib/stpncpy.c: Likewise.
49932         * lib/strcasecmp.c: Likewise.
49933         * lib/strcasestr.c: Likewise.
49934         * lib/strcspn.c: Likewise.
49935         * lib/striconv.c: Likewise.
49936         * lib/strncasecmp.c: Likewise.
49937         * lib/strnlen1.c: Likewise.
49938         * lib/strstr.c: Likewise.
49939         * lib/strtok_r.c: Likewise.
49940         * lib/tls.c: Likewise.
49941         * lib/tmpdir.c: Likewise.
49942         * lib/unicodeio.c: Likewise.
49943         * lib/unsetenv.c: Likewise.
49944         * lib/vasnprintf.c: Likewise.
49945         * lib/vasprintf.c: Likewise.
49946         * lib/wait-process.c: Likewise.
49947         * lib/xallocsa.c: Likewise.
49948         * lib/xsetenv.c: Likewise.
49949         * lib/xstriconv.c: Likewise.
49950
49951 2006-09-13  Simon Josefsson  <jas@extundo.com>
49952
49953         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
49954         that internally, suggested by Ralf Wildenhues
49955         <Ralf.Wildenhues@gmx.de>.
49956
49957 2006-09-13  Simon Josefsson  <jas@extundo.com>
49958
49959         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
49960         @LIBOBJS@.
49961         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49962
49963 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49964
49965         * lib/_fpending.c: Include <config.h> unconditionally, since we no
49966         longer worry about uses that don't define HAVE_CONFIG_H.
49967         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
49968         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
49969         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
49970         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
49971         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
49972         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
49973         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
49974         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
49975         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
49976         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
49977         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
49978         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
49979         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
49980         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
49981         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
49982         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
49983         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
49984         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
49985         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
49986         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
49987         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
49988         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
49989         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
49990         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
49991         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
49992         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
49993         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
49994         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
49995         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
49996         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
49997         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
49998         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
49999         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
50000         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
50001         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
50002         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
50003         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
50004         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
50005         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
50006         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
50007         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
50008         Likewise.
50009
50010 2006-09-13  Eric Blake  <ebb9@byu.net>
50011
50012         * lib/getopt.c: Fix typo in last commit.
50013
50014 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50015
50016         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
50017         dgettext.
50018
50019 2006-09-12  Jim Meyering  <jim@meyering.net>
50020
50021         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
50022         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
50023         Reported by Nelson H. F. Beebe.
50024
50025 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
50026
50027         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
50028         program_invocation_name and program_invocation_short_name are
50029         initialized.
50030         * lib/argp-namefrob.h: Move declarations of program_invocation_name
50031         and program_invocation_short_name to argp.h, so they are visible
50032         to user programs.
50033         * lib/argp.h: Likewise
50034
50035 2006-09-10  Bruno Haible  <bruno@clisp.org>
50036
50037         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
50038         m4/inttypes_h.m4, m4/uintmax_t.m4.
50039
50040 2006-09-10  Bruno Haible  <bruno@clisp.org>
50041
50042         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
50043         gl_AC_TYPE_UINTMAX_T.
50044
50045 2006-09-10  Bruno Haible  <bruno@clisp.org>
50046
50047         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
50048
50049 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
50050
50051         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
50052         convention.  Text proposed by Bruno Haible.
50053         (struct argp_option): Document the use of N_() wrappers.
50054
50055         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
50056         '\v', and translate the two parts separately, instead of feeding
50057         the whole string to gettext.  This allows to exclude
50058         '\v' from the strings visible to the translator by writing doc
50059         strings as N_("..") "\v" N_("..").
50060
50061 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
50062
50063         * config/srclist.txt: Undo latest change; the bug was fixed.
50064
50065 2006-09-09  Bruno Haible  <bruno@clisp.org>
50066
50067         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
50068         assignments if building a library without libtool.
50069         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
50070         in func_emit_lib_Makefile_am.
50071         (func_import): When building a static library libfoo.a, arrange to
50072         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
50073         (func_create_testdir): Likewise.
50074         * modules/gc (configure.ac, Makefile.am): If building statically,
50075         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
50076         * modules/iconvme (configure.ac, Makefile.am): Likewise.
50077         * modules/striconv (configure.ac, Makefile.am): Likewise.
50078         Based on a suggestion by Ralf Wildenhues.
50079
50080 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50081
50082         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
50083         Check for unistd.h too, since Autoconf doesn't assume POSIX.
50084         Also:
50085
50086         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50087         Add year_2050_test to catch glibc bug 2821
50088         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50089
50090         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50091         Prefer #ifdef to #if.
50092
50093         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
50094         Return from 'main' instead of calling 'exit'.
50095
50096 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50097
50098         * lib/mktime.c (guess_time_tm): Fix bug where mktime
50099         returned the maximum time_t value rather than (time_t) -1.
50100         Problem originally reported by William Bardwell
50101         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
50102
50103         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50104         Moved to here ...
50105         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
50106         ... from here.
50107
50108 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
50109
50110         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
50111         2821 is fixed.
50112
50113 2006-09-08  Jim Meyering  <jim@meyering.net>
50114
50115         Don't make generated files read-only.  That would bother too many
50116         people.  However, do retain the ability to work when targets are
50117         read-only: remove the destination and temporary files before writing
50118         them (when generated via sed or echo), or by using the -f option for
50119         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
50120         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50121         * modules/byteswap, modules/configmake, modules/fcntl:
50122         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50123         * modules/localcharset, modules/netinet_in, modules/poll:
50124         * modules/stdbool, modules/stdint, modules/sys_select:
50125         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50126
50127 2006-09-08  Jim Meyering  <jim@meyering.net>
50128
50129         Avoid new build failure on FreeBSD 6.0.
50130         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
50131         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
50132         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
50133
50134 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50135
50136         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
50137
50138 2006-09-07  Jim Meyering  <jim@meyering.net>
50139
50140         Fix global typo in last change: use chmod u-w, not chmod u-x.
50141         Spotted by Paul Eggert and Bruce Korb.
50142         * modules/alloca-opt, modules/argz, modules/arpa_inet:
50143         * modules/byteswap, modules/configmake, modules/fcntl:
50144         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
50145         * modules/localcharset, modules/netinet_in, modules/poll:
50146         * modules/stdbool, modules/stdint, modules/sys_select:
50147         * modules/sys_socket, modules/sys_stat, modules/sysexits:
50148
50149 2006-09-06  Jim Meyering  <jim@meyering.net>
50150
50151         Make generated files be read-only.
50152         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
50153         Ensure that each generated file is now read-only.
50154         * modules/argz: Likewise.
50155         * modules/arpa_inet: Likewise.
50156         * modules/byteswap: Likewise.
50157         * modules/configmake: Likewise.
50158         * modules/fcntl: Likewise.
50159         * modules/fnmatch: Likewise.
50160         * modules/getopt: Likewise.
50161         * modules/glob: Likewise.
50162         * modules/inttypes: Likewise.
50163         * modules/netinet_in: Likewise.
50164         * modules/poll: Likewise.
50165         * modules/stdbool: Likewise.
50166         * modules/stdint: Likewise.
50167         * modules/sys_select: Likewise.
50168         * modules/sys_socket: Likewise.
50169         * modules/sys_stat: Likewise.
50170         * modules/sysexits: Likewise.
50171         * modules/localcharset: Same as above, but continue using temporary
50172         file named "t-$@" (why different?) rather than the "$@-t" used
50173         everywhere else.
50174
50175         * modules/sysexits (Makefile.am): Replace literal occurrences
50176         of "sysexit.h" more readable, and more consistent, "$@".
50177
50178 2006-09-06  Bruno Haible  <bruno@clisp.org>
50179
50180         * modules/striconv: New file.
50181         * modules/xstriconv: New file.
50182         * MODULES.html.sh (Internationalization functions): Add striconv,
50183         xstriconv.
50184
50185 2006-09-06  Bruno Haible  <bruno@clisp.org>
50186
50187         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
50188         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
50189         not using libtool correctly.
50190
50191 2006-09-06  Bruno Haible  <bruno@clisp.org>
50192
50193         * lib/striconv.h: New file.
50194         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
50195         iconvstring.c.
50196         * lib/xstriconv.h: New file.
50197         * lib/xstriconv.c: New file.
50198
50199 2006-09-06  Bruno Haible  <bruno@clisp.org>
50200
50201         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
50202         lib_..._LDFLAGS.
50203
50204 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50205
50206         * lib/argz_.h: Sync from Libtool.
50207
50208         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
50209                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50210
50211         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
50212
50213 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50214
50215         * modules/trim: New file.
50216
50217 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
50218
50219         * lib/trim.h: New file.
50220         * lib/trim.c: New file.
50221
50222 2006-09-05  Bruno Haible  <bruno@clisp.org>
50223
50224         * MODULES.html.sh (String handling): Add trim.
50225
50226 2006-09-04  Karl Berry  <karl@gnu.org>
50227
50228         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
50229         until next release.
50230
50231 2006-09-03  Bruno Haible  <bruno@clisp.org>
50232
50233         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
50234         correctly.
50235
50236 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50237
50238         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
50239         not gl_GETLOADAVG.  Omit unneeded semicolons.
50240         Problems reported by Ralf Wildenhues in
50241         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50242         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
50243         at the end, which is the usual gnulib style.
50244
50245         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
50246         of doing all the work ourselves.
50247         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
50248         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
50249
50250 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50251
50252         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
50253         Problem reported by Ralf Wildenhues in
50254         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
50255
50256         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
50257         HAVE_STRUCT_STATFS_F_FSTYPENAME.
50258
50259 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
50260
50261         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
50262         yesterday's patch by changing test -n to test -z.
50263
50264 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50265
50266         * modules/getloadavg (Files): Add m4/getloadavg.m4.
50267         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
50268         the former is now obsolescent.
50269
50270         * modules/chdir-long (Depends-on): Add fcntl.
50271
50272 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50273
50274         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
50275         obsolescent, and programs should use gnulib instead.
50276         * m4/getloadavg.m4: New file, with contents taken from Autoconf
50277         but with prefixes changed.
50278
50279 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
50280
50281         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
50282         or stdbool.h, because they might not exist while configuring.
50283
50284         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
50285         Don't include unistd.h or limits.h; not needed, since chdir-long.h
50286         does that for us.
50287         (O_DIRECTORY): Remove.
50288
50289 2006-08-31  Eric Blake  <ebb9@byu.net>
50290
50291         * gnulib-tool: Don't let emacs change spaces to TAB.
50292
50293 2006-08-31  Bruno Haible  <bruno@clisp.org>
50294
50295         * gnulib-tool: When calling func_import more than once, do it in a
50296         subshell.
50297         Reported by Eric Blake <ebb9@byu.net>.
50298
50299 2006-08-31  Bruno Haible  <bruno@clisp.org>
50300
50301         * gnulib-tool (nl): Remove variable.
50302         (sed_transform_lib_file): Use more robust test for config-h module.
50303         (func_import): Fix typo in 2006-08-25 patch.
50304
50305 2006-08-31  Bruno Haible  <bruno@clisp.org>
50306
50307         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
50308         specified, augment Makefile.am variables instead of assigning them.
50309
50310 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50311
50312         Work around a bug in both the Linux and SunOS 64-bit kernels:
50313         nanosleep mishandles sleeps for longer than 2**31 seconds.
50314         Problem reported by Frank v Waveren in
50315         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50316         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
50317         Check for nanosleep bug.
50318         (LIB_NANOSLEEP): Append clock_gettime library if needed.
50319
50320 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50321
50322         Work around a bug in both the Linux and SunOS 64-bit kernels:
50323         nanosleep mishandles sleeps for longer than 2**31 seconds.
50324         Problem reported by Frank v Waveren in
50325         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
50326         * lib/nanosleep.c (BILLION): New constant.
50327         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
50328         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
50329         implementation.
50330
50331 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50332
50333         * modules/nanosleep (Depends-on): Add gettime.
50334
50335 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
50336         and Simon Josefsson  <jas@extundo.com>
50337         and Oskar Liljeblad  <oskar@osk.mine.nu>
50338
50339         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
50340         * gnulib-tool (func_import): New license type 'unmodifiable license
50341         text'.
50342         * modules/fdl: Use it.  Longer description.
50343         * module/gpl, module/lgpl: New files.
50344
50345 2006-08-30  Jim Meyering  <jim@meyering.net>
50346
50347         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
50348         shadowing the parameter.
50349
50350 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50351
50352         Sync from Libtool:
50353
50354         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50355
50356         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
50357         sharing with gnulib.  Report by Eric Blake.
50358
50359 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50360
50361         * modules/isapipe: New file.
50362         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
50363
50364 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50365
50366         * modules/configmake (Makefile.am): Add a comment, and omit
50367         the CONFIGMAKE_ prefix from generated macro names.  Suggested
50368         by Bruno Haible.
50369
50370 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50371
50372         * m4/isapipe.m4: New file.
50373
50374 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
50375
50376         * lib/isapipe.c, lib/isapipe.h: New files.
50377
50378 2006-08-29  Jim Meyering  <jim@meyering.net>
50379
50380         * modules/configmake (Makefile.am): Make configmake.h depend on
50381         Makefile.  Otherwise, a stale configmake.h could hang around.
50382
50383 2006-08-29  Eric Blake  <ebb9@byu.net>
50384
50385         * lib/error.c (error_at_line, print_errno_message): Match libc, after
50386         resolution of upstream bug 3044.
50387
50388 2006-08-29  Bruno Haible  <bruno@clisp.org>
50389
50390         * modules/localcharset (Depends-on): Add configmake.
50391         (Makefile.am): Remove setting of LIBDIR through DEFS.
50392
50393 2006-08-29  Bruno Haible  <bruno@clisp.org>
50394
50395         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
50396         defined.
50397
50398 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50399
50400         * modules/fcntl: New file.
50401         * modules/chdir-safer (Depends-on): Add fcntl.
50402         * modules/fts: Likewise.
50403         * modules/mkdir-p: Likewise.
50404
50405         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
50406         This undoes the most recent change, since we're now addressing the
50407         problem in a different way.
50408
50409         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
50410         into output, since the output might be called Makefile.am even
50411         if $makefile_name is something different.
50412         (func_import): Use $makefile_am rather than
50413         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
50414         empty.
50415
50416         * modules/inttypes (Files): Add m4/inttypes-h.m4.
50417
50418 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50419
50420         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
50421         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
50422         recent change to stdint.m4, since we're now addressing the problem in a
50423         different way.
50424
50425 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50426
50427         * m4/fcntl_h.m4: New file.
50428
50429 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
50430
50431         * lib/fcntl_.h: New file.
50432         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
50433         the fcntl module.
50434         * lib/dirchownmod.c: Likewise.
50435         * lib/fts.c: Likewise.
50436
50437         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
50438         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
50439         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
50440         just before including <inttypes.h>, to avoid circular inclusion.
50441
50442 2006-08-28  Jim Meyering  <jim@meyering.net>
50443
50444         * doc/visibility.texi: Actually read and correct the grammar of the
50445         sentence affected by yesterday's change.
50446
50447 2006-08-28  Eric Blake  <ebb9@byu.net>
50448
50449         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
50450         needs wrapper.
50451
50452 2006-08-28  Eric Blake  <ebb9@byu.net>
50453
50454         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
50455
50456 2006-08-28  Eric Blake  <ebb9@byu.net>
50457
50458         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
50459
50460 2006-08-28  Bruno Haible  <bruno@clisp.org>
50461
50462         * modules/c-strstr: New file, from GNU gettext.
50463         * MODULES.html.sh (String handling): Add c-strstr.
50464
50465 2006-08-28  Bruno Haible  <bruno@clisp.org>
50466
50467         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
50468         macros.
50469         Reported by Eric Blake.
50470
50471 2006-08-28  Bruno Haible  <bruno@clisp.org>
50472
50473         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
50474         (VASNPRINTF): Return a string of length > INT_MAX without failing.
50475         * lib/vasprintf.c: Include errno.h, limits.h.
50476         (EOVERFLOW): New fallback definition.
50477         (vasprintf): Test here whether the string length is > INT_MAX.
50478         * lib/vsnprintf.c: Include errno.h, limits.h.
50479         (EOVERFLOW): New fallback definition.
50480         (vsnprintf): Fix bug when generated string was too long for the buffer.
50481         Test here whether the string length is > INT_MAX.
50482
50483 2006-08-28  Bruno Haible  <bruno@clisp.org>
50484
50485         * lib/inttypes_.h (SCNX*): Remove definitions.
50486         Reported by Eric Blake.
50487
50488 2006-08-28  Bruno Haible  <bruno@clisp.org>
50489
50490         * lib/c-strstr.h: New file, from GNU gettext.
50491         * lib/c-strstr.c: New file, from GNU gettext.
50492
50493 2006-08-28  Bruno Haible  <bruno@clisp.org>
50494
50495         * gnulib-tool: Reorder some statements.
50496
50497 2006-08-28  Bruno Haible  <bruno@clisp.org>
50498
50499         * gnulib-tool: New option --makefile-name.
50500         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
50501         $makefile_name.
50502         (func_import): Write $makefile_name to the cache file, and read it from
50503         there unless explicitly specified. Use $makefile_name as file name
50504         instead of Makefile.am. Adjust the recommendations accordingly.
50505
50506 2006-08-28  Bruno Haible  <bruno@clisp.org>
50507
50508         * gnulib-tool (func_verify_module): Check against misapplying patch.
50509
50510 2006-08-28  Bruno Haible  <bruno@clisp.org>
50511
50512         * gnulib-tool (func_relativize, func_relconcat): New functions.
50513         Give an error if --local-dir is given with --update.
50514         Remove trailing slashes from $local_gnulib_dir.
50515         (func_import): Store the relativized $local_gnulib_dir in
50516         gnulib-cache.m4, and read it from there if not specified explicitly.
50517
50518 2006-08-28  Bruno Haible  <bruno@clisp.org>
50519
50520         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
50521         is the current directory. Respect also $local_gnulib_dir.
50522
50523 2006-08-28  Bruno Haible  <bruno@clisp.org>
50524             Simon Josefsson  <jas@extundo.com>
50525
50526         BeOS portability.
50527         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
50528
50529 2006-08-27  Jim Meyering  <jim@meyering.net>
50530
50531         * doc/visibility.texi: Remove duplicate word: "pointer".
50532
50533 2006-08-26  Bruno Haible  <bruno@clisp.org>
50534
50535         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
50536         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
50537         (Makefile.am): Create inttypes.h from inttypes_.h.
50538         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
50539
50540         * modules/imaxabs: New file.
50541
50542         * modules/imaxdiv: New file.
50543
50544 2006-08-26  Bruno Haible  <bruno@clisp.org>
50545
50546         * m4/inttypes.m4: New file.
50547         * m4/_inttypes_h.m4: Remove file.
50548         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
50549         PRI_MACROS_BROKEN.
50550         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
50551
50552         * m4/imaxabs.m4: New file.
50553
50554         * m4/imaxdiv.m4: New file.
50555
50556 2006-08-26  Bruno Haible  <bruno@clisp.org>
50557
50558         * lib/inttypes_.h: New file.
50559         * lib/inttypes.h: Remove file.
50560         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
50561
50562         * lib/imaxabs.c: New file.
50563
50564         * lib/imaxdiv.c: New file.
50565
50566 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50567
50568         New config-h module, so that "make" output needn't be cluttered
50569         by -DHAVE_CONFIG_H.
50570         * MODULES.html.sh (Support for building libraries and executables):
50571         Add config-h.
50572         * modules/config-h: New file.
50573         * gnulib-tool (nl, sed_transform_lib_file): New vars.
50574         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
50575         the config-h module is used.
50576
50577         New configmake module, so that "make" output needn't be cluttered
50578         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
50579         * MODULES.html.sh (Support for building libraries and executables):
50580         Add configmake.
50581         * modules/configmake: New file.
50582
50583 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
50584
50585         * m4/config-h.m4: New file.
50586
50587 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50588
50589         * config/srclist.txt: Add elisp-comp.
50590
50591 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50592
50593         * MODULES.html.sh (Support for building libraries and executables):
50594         Add elisp-comp.
50595         * build-aux/elisp-comp: New file.
50596         * modules/elisp-comp: New file.
50597
50598 2006-08-24  Bruno Haible  <bruno@clisp.org>
50599
50600         * gnulib-tool (func_create_testdir): Use non-default values of
50601         sourcebase and m4base.
50602
50603 2006-08-24  Bruno Haible  <bruno@clisp.org>
50604
50605         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
50606         HTML structure.
50607
50608 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50609
50610         * modules/openat (Depends-on): Add lchown.
50611
50612 2006-08-23  Bruno Haible  <bruno@clisp.org>
50613
50614         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
50615         of gl_LOCK_EARLY instead of gl_LOCK.
50616
50617 2006-08-23  Bruno Haible  <bruno@clisp.org>
50618
50619         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
50620         on OSF/1 to no.
50621         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
50622
50623 2006-08-23  Bruno Haible  <bruno@clisp.org>
50624
50625         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
50626         as unusable.
50627
50628         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
50629         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
50630         (gl_LOCK): New macro.
50631
50632 2006-08-22  Simon Josefsson  <jas@extundo.com>
50633
50634         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
50635         to md5 module.
50636
50637 2006-08-22  Simon Josefsson  <jas@extundo.com>
50638
50639         * MODULES.html.sh: Add "Support for maintaining and release
50640         projects".
50641
50642         * build-aux/gnupload: New file, from coreutils.
50643
50644 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50645
50646         Avoid the need for AC_LIBSOURCES in m4 macros.
50647         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
50648         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
50649         * modules/check-version (EXTRA_DIST): Add check-version.h.
50650         * modules/crc (EXTRA_DIST): Add crc.h.
50651         * modules/des (EXTRA_DIST): Add des.h.
50652         * modules/gc (EXTRA_DIST): Add gc.h.
50653         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
50654         * modules/getline (EXTRA_DIST): Add getline.h.
50655         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
50656         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
50657         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
50658         * modules/md2 (EXTRA_DIST): Add md2.h.
50659         * modules/md4 (EXTRA_DIST): Add md4.h.
50660         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
50661         * modules/read-file (EXTRA_DIST): Add read-file.h.
50662         * modules/readline (EXTRA_DIST): Add readline.h.
50663         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
50664         rijndael-api-fst.h.
50665
50666 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50667
50668         * m4/rijndael.m4 (gl_ARCFOUR):
50669         * m4/arctwo.m4 (gl_ARCTWO):
50670         * m4/check-version.m4 (gl_CHECK_VERSION):
50671         * m4/crc.m4 (gl_CRC):
50672         * m4/des.m4 (gl_DES):
50673         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
50674         * m4/gc.m4 (gl_GC):
50675         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
50676         * m4/getline.m4 (gl_FUNC_GETLINE):
50677         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
50678         * m4/hmac-md5.m4 (gl_HMAC_MD5):
50679         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
50680         * m4/md2.m4 (gl_MD2):
50681         * m4/md4.m4 (gl_MD4):
50682         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
50683         * m4/read-file.m4 (gl_FUNC_READ_FILE):
50684         * m4/readline.m4 (gl_FUNC_READLINE):
50685         * m4/rijndael.m4 (gl_RIJNDAEL):
50686         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50687         to get the necessary .h files and whatnot.
50688
50689 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
50690
50691         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
50692         gnulib rather than the other way around.
50693         * config/srclistvars.sh (COREUTILS): Remove.
50694
50695 2006-08-22  Jim Meyering  <jim@meyering.net>
50696
50697         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
50698
50699         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
50700
50701 2006-08-22  Eric Blake  <ebb9@byu.net>
50702
50703         * modules/regexprops-generic: New file.
50704         * MODULES.html.sh (Support for building documentation): List it.
50705
50706 2006-08-22  Eric Blake  <ebb9@byu.net>
50707
50708         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
50709         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50710         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
50711         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
50712
50713 2006-08-22  Bruno Haible  <bruno@clisp.org>
50714
50715         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
50716         and lib_LTLIBRARIES like the other lib_* variables.
50717
50718 2006-08-22  Bruno Haible  <bruno@clisp.org>
50719
50720         * build-aux/x-to-1.in: New file, from GNU gettext.
50721
50722 2006-08-22  Bruno Haible  <bruno@clisp.org>
50723
50724         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
50725         <utmpx.h> exists.
50726
50727 2006-08-22  Bruno Haible  <bruno@clisp.org>
50728
50729         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
50730         <utmpx.h> exists.
50731
50732 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50733
50734         BeOS portability.
50735         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
50736         exist.
50737         Problem reported by Bruno Haible.
50738
50739 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50740
50741         Avoid the need for AC_LIBSOURCES in m4 macros.
50742         * modules/acl (EXTRA_DIST): Add acl.h.
50743         * modules/argmatch (Files): Add m4/argmatch.m4.
50744         (configure.ac): Add gl_ARGMATCH.
50745         (EXTRA_DIST): Renamed from lib_SOURCES, for
50746         consistency with the other modules.  Remove argmatch.c.
50747         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
50748         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
50749         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
50750         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
50751         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
50752         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
50753         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
50754         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
50755         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
50756         * modules/closeout (EXTRA_DIST): Add closeout.h.
50757         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
50758         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
50759         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
50760         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
50761         dirname.h; remove basename.c and stripslash.c.
50762         * modules/exclude (EXTRA_DIST): Add exclude.h.
50763         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
50764         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
50765         * modules/file-type (EXTRA_DIST): Add file-type.h.
50766         * modules/filemode (EXTRA_DIST): Add filemode.h.
50767         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
50768         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50769         * modules/fpending (EXTRA_DIST): Add __fpending.h.
50770         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
50771         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
50772         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
50773         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
50774         * modules/getdate (EXTRA_DIST): Add getdate.c.
50775         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
50776         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
50777         * modules/getpass (EXTRA_DIST): Add getpass.h.
50778         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
50779         * modules/group-member (EXTRA_DIST): Add group-member.h.
50780         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
50781         * modules/hash (EXTRA_DIST): Add hash.h.
50782         * modules/human (EXTRA_DIST): Add human.h.
50783         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
50784         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
50785         * modules/lchown (EXTRA_DIST): Add lchown.h.
50786         * modules/long-options (EXTRA_DIST): Add long-options.h.
50787         * modules/lstat (EXTRA_DIST): Add lstat.h.
50788         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
50789         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
50790         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
50791         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
50792         * modules/memxor (EXTRA_DIST): Add memxor.h.
50793         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
50794         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
50795         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
50796         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
50797         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
50798         * modules/physmem (EXTRA_DIST): Add physmem.h.
50799         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
50800         * modules/posixver (EXTRA_DIST): Add posixver.h.
50801         * modules/quote (EXTRA_DIST): Add quote.h.
50802         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
50803         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
50804         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
50805         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
50806         regex_internal.h regexec.c.
50807         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
50808         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
50809         * modules/same (EXTRA_DIST): Add same.h.
50810         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
50811         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
50812         * modules/savedir (EXTRA_DIST): Add savedir.h.
50813         * modules/sha1 (EXTRA_DIST): Add sha1.h.
50814         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
50815         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
50816         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
50817         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
50818         * modules/strdup (EXTRA_DIST): Add strdup.h.
50819         * modules/strftime (EXTRA_DIST): Add strftime.h.
50820         * modules/strndup (EXTRA_DIST): Add strndup.h.
50821         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
50822         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
50823         * modules/time_r (EXTRA_DIST): Add time_r.h.
50824         * modules/timespec (EXTRA_DIST): Add timespec.h.
50825         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50826         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
50827         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
50828         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
50829         * modules/userspec (EXTRA_DIST): Add userspec.h.
50830         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
50831         * modules/utimens (EXTRA_DIST): Add utimens.h.
50832         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
50833         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
50834         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
50835         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
50836         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
50837         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
50838         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
50839         * modules/yesno (EXTRA_DIST): Add yesno.h.
50840
50841 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50842
50843         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
50844
50845         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
50846         * m4/dev-ino.m4, same-inode.m4: Remove.
50847
50848         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
50849         * m4/acl.m4 (AC_FUNC_ACL):
50850         * m4/backupfile.m4 (gl_BACKUPFILE):
50851         * m4/c-strtod.m4 (gl_C99_STRTOLD):
50852         * m4/canon-host.m4 (gl_CANON_HOST):
50853         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50854         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
50855         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
50856         * m4/cloexec.m4 (gl_CLOEXEC):
50857         * m4/close-stream.m4 (gl_CLOSE_STREAM):
50858         * m4/closeout.m4 (gl_CLOSEOUT):
50859         * m4/dirfd.m4 (gl_FUNC_DIRFD):
50860         * m4/dirname.m4 (gl_DIRNAME):
50861         * m4/exclude.m4 (gl_EXCLUDE):
50862         * m4/exitfail.m4 (gl_EXITFAIL):
50863         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
50864         * m4/file-type.m4 (gl_FILE_TYPE):
50865         * m4/filemode.m4 (gl_FILEMODE):
50866         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
50867         * m4/fpending.m4 (gl_FUNC_FPENDING):
50868         * m4/fprintftime.m4 (gl_FPRINTFTIME):
50869         * m4/fts.m4 (gl_FUNC_FTS):
50870         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
50871         * m4/getdate.m4 (gl_GETDATE):
50872         * m4/gethrxtime.m4 (gl_GETHRXTIME):
50873         * m4/getpagesize.m4 (gl_GETPAGESIZE):
50874         * m4/getpass.m4 (gl_FUNC_GETPASS):
50875         * m4/gettime.m4 (gl_GETTIME):
50876         * m4/getugroups.m4 (gl_GETUGROUPS):
50877         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
50878         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
50879         * m4/hard-locale.m4 (gl_HARD_LOCALE):
50880         * m4/hash.m4 (gl_HASH):
50881         * m4/idcache.m4 (gl_IDCACHE):
50882         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
50883         * m4/lchown.m4 (gl_FUNC_LCHOWN):
50884         * m4/long-options.m4 (gl_LONG_OPTIONS):
50885         * m4/lstat.m4 (gl_FUNC_LSTAT):
50886         * m4/md5.m4 (gl_MD5):
50887         * m4/memcasecmp.m4 (gl_MEMCASECMP):
50888         * m4/memcoll.m4 (gl_MEMCOLL):
50889         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
50890         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
50891         * m4/memxor.m4 (gl_MEMXOR):
50892         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
50893         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
50894         * m4/modechange.m4 (gl_MODECHANGE):
50895         * m4/mountlist.m4 (gl_MOUNTLIST):
50896         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50897         * m4/openat.m4 (gl_FUNC_OPENAT):
50898         * m4/pathmax.m4 (gl_PATHMAX):
50899         * m4/physmem.m4 (gl_PHYSMEM):
50900         * m4/posixtm.m4 (gl_POSIXTM):
50901         * m4/posixver.m4 (gl_POSIXVER):
50902         * m4/quote.m4 (gl_QUOTE):
50903         * m4/quotearg.m4 (gl_QUOTEARG):
50904         * m4/readtokens.m4 (gl_READTOKENS):
50905         * m4/readutmp.m4 (gl_READUTMP):
50906         * m4/regex.m4 (gl_REGEX):
50907         * m4/safe-read.m4 (gl_SAFE_READ):
50908         * m4/safe-write.m4 (gl_SAFE_WRITE):
50909         * m4/same.m4 (gl_SAME):
50910         * m4/save-cwd.m4 (gl_SAVE_CWD):
50911         * m4/savedir.m4 (gl_SAVEDIR):
50912         * m4/settime.m4 (gl_SETTIME):
50913         * m4/sha1.m4 (gl_SHA1):
50914         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
50915         * m4/stat-macros.m4 (gl_STAT_MACROS):
50916         * m4/stat-time.m4 (gl_STAT_TIME):
50917         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
50918         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
50919         * m4/strdup.m4 (gl_FUNC_STRDUP):
50920         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
50921         * m4/strndup.m4 (gl_FUNC_STRNDUP):
50922         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
50923         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
50924         * m4/time_r.m4 (gl_TIME_R):
50925         * m4/timespec.m4 (gl_TIMESPEC):
50926         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
50927         * m4/unlinkdir.m4 (gl_UNLINKDIR):
50928         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
50929         * m4/userspec.m4 (gl_USERSPEC):
50930         * m4/utimecmp.m4 (gl_UTIMECMP):
50931         * m4/utimens.m4 (gl_UTIMENS):
50932         * m4/xalloc.m4 (gl_XALLOC):
50933         * m4/xgetcwd.m4 (gl_XGETCWD):
50934         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
50935         * m4/xreadlink.m4 (gl_XREADLINK):
50936         * m4/xstrtod.m4 (gl_XSTRTOD):
50937         * m4/yesno.m4 (gl_YESNO):
50938         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50939         to get the necessary .h files and whatnot.
50940
50941 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
50942             Bruno Haible  <bruno@clisp.org>
50943
50944         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
50945         /bin/sh understanding of '!' conditional negation.
50946
50947 2006-08-21  Jim Meyering  <jim@meyering.net>
50948
50949         * modules/openat (Depends-on): Really alphabetize.
50950
50951         * modules/acl (Depends-on): Add error and quote.
50952
50953         * check-module (find_included_lib_files): Add at-func.c to the
50954         ok-to-include-more-than-once white list.
50955
50956         * modules/openat (Depends-on): Add lstat.  Alphabetize.
50957
50958 2006-08-21  Bruno Haible  <bruno@clisp.org>
50959
50960         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50961         Emit a pkgdata_DATA variable only if some snippets add contents to it.
50962         Reported by Martin Lambers <marlam@marlam.de>.
50963
50964 2006-08-21  Bruno Haible  <bruno@clisp.org>
50965
50966         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
50967         specify an installation location, don't emit a noinst_LIBRARIES or
50968         noinst_LTLIBRARIES assignment.
50969
50970 2006-08-21  Bruno Haible  <bruno@clisp.org>
50971
50972         BeOS portability.
50973         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
50974         BeOS has mbrtowc() but no <wctype.h>.
50975
50976 2006-08-21  Bruno Haible  <bruno@clisp.org>
50977
50978         BeOS portability.
50979         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
50980         exist.
50981
50982 2006-08-21  Bruno Haible  <bruno@clisp.org>
50983
50984         BeOS portability.
50985         * lib/mbchar.h: Include <wctype.h> only if it exists.
50986
50987 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50988
50989         Remove files that are no longer needed by their respective modules.
50990         * m4/obstack.m4: Remove.
50991         * m4/strerror_r.m4: Remove.
50992         * m4/uint32_t.m4: Remove.
50993         * m4/uintptr_t.m4: Remove.
50994         * m4/ullong_max.m4: Remove.
50995         * m4/xstrtoimax.m4: Remove.
50996         * m4/xstrtoumax.m4: Remove.
50997
50998         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
50999         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
51000         dependencies now capture this.
51001
51002         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
51003         Do not use AC_LIBSOURCES, since gnulib modules now do this.
51004         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
51005         * m4/human.m4 (gl_HUMAN): Likewise.
51006         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
51007         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
51008
51009         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
51010
51011         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
51012         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
51013         stdint.
51014         * m4/human.m4 (gl_HUMAN): Likewise.
51015         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
51016         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
51017         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
51018         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
51019         * m4/xstrtol (gl_XSTRTOL): Likewise.
51020
51021         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
51022         AC_TYPE_LONG_LONG_INT.
51023         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
51024         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
51025         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
51026         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
51027
51028         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
51029         on stdbool.
51030
51031         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
51032         (gl_PREREQ_XSTRTOUL): Remove.
51033
51034         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
51035
51036         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
51037         mode.
51038
51039 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51040
51041         Add and change modules to make it easier for coreutils to use
51042         gnulib-tool.
51043         * modules/backupfile (Files): Remove m4/d-ino.m4.
51044         (Depends-on): Add d-ino.
51045         * modules/cycle-check (Depends-on): Add stdint.
51046         (lib_SOURCES): Add cycle-check.h.
51047         * modules/d-ino: New module.
51048         * modules/d-type: New module.
51049         * modules/error (Files): Remove m4/strerror_r.m4.
51050         * modules/filemode (Files): Add m4/st_dm_mode.m4.
51051         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51052         m4/inttypes_h.m4, m4/uintmax_t.m4.
51053         (Depends-on): Add stdint.
51054         (lib_SOURCES): Add fsusage.h.
51055         * modules/getcwd (Files): Remove d-ino.m4.
51056         (Depends-on): Add d-ino.
51057         * modules/getndelim2 (Depends-on): Add stdint.
51058         * modules/glob (Files): Remove m4/d-type.m4.
51059         (Depends-on): Add d-type.
51060         * modules/host-os: New module.
51061         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
51062         m4/inttypes_h.m4, m4/uintmax_t.m4.
51063         * Depends-on: Add stdint.
51064         (lib_SOURCES): Add human.h.
51065         * modules/inttostr (Files): Remove m4/intmax_t.m4,
51066         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
51067         m4/uintmax_t.m4, m4/ulonglong.m4.
51068         (Depends-on): Add stdint.
51069         (EXTRA_DIST): Add inttostr.h.
51070         * modules/lchmod: New module.
51071         * modules/link-follow: New module.
51072         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
51073         (Depends-on): Add lchmod.
51074         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
51075         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
51076         (Depends-on): Add stdint.
51077         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
51078         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
51079         (Depends-on): Add stdint.
51080         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
51081         * modules/perl: New module.
51082         * modules/regex (Depends-on): Add stdint.
51083         * modules/rmdir-errno: New module.
51084         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51085         m4/intmax_t.m4.
51086         (Depends-on): Add stdint.
51087         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
51088         m4/uintmax_t.m4.
51089         (Depends-on): Add stdint.
51090         * modules/unlink-busy: New module.
51091         * modules/utimecmp (Depends-on): Add stdint.
51092         * modules/uptime: New module.
51093         * modules/winsz-ioctl: New module.
51094         * modules/winsz-termios: New module.
51095         * modules/xnanosleep (Depends-on): Add nanosleep.
51096         * modules/ullong_max: Remove.
51097         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
51098         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
51099         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
51100         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
51101         (Depends-on): Add inttypes.
51102         (lib_SOURCES): Add xstrtol.h.
51103         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
51104         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
51105         * MODULES.html.sh: Move 'assert' into the assert section.
51106         Move 'dummy' into the linking section.
51107         Remove ullong_max.
51108         Add section for compatibility checks for POSIX:2001 functions,
51109         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
51110         winsz-ioctl, and winsz-termios into it.
51111         Add lchmod.
51112         Add top-level Misc section and put host-os, perl, and uptime
51113         into it.
51114
51115 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
51116
51117         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
51118         now assume the stdint module.  Do not include inttypes.h.
51119         * lib/fsusage.h: Likewise.
51120         * lib/getndelim2.c: Likewise.
51121         * lib/human.h: Likewise.
51122         * lib/inttostr.h: Likewise.
51123         * lib/obstack.c: Likewise.
51124         * lib/regex_internal.h: Likewise.
51125         * lib/tempname.c: Likewise.
51126         * lib/utimecmp.c: Likewise.
51127         * lib/xstrtol.h: Likewise.
51128
51129         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
51130
51131         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
51132         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
51133         * lib/xtime.h: Likewise.
51134
51135 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51136
51137         * modules/openat (Files): Add lib/fchmodat.c.
51138         Fixes problem reported by Jay Youngman.
51139
51140 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51141
51142         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
51143         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
51144
51145 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
51146             Bruno Haible  <bruno@clisp.org>
51147
51148         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
51149         and is a script that invokes bison. Tighten the code. Add comments.
51150
51151 2006-08-18  Jim Meyering  <jim@meyering.net>
51152
51153         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
51154         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
51155         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
51156         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
51157
51158 2006-08-18  Bruno Haible  <bruno@clisp.org>
51159
51160         * modules/bison-i18n: New file.
51161         * MODULES.html.sh (Internationalization functions): Add it.
51162
51163 2006-08-18  Bruno Haible  <bruno@clisp.org>
51164
51165         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
51166         sys/statvfs.h. When getmntinfo was found, check its declaration and
51167         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
51168
51169 2006-08-18  Bruno Haible  <bruno@clisp.org>
51170
51171         * m4/bison-i18n.m4: New file, from bison.
51172
51173 2006-08-18  Bruno Haible  <bruno@clisp.org>
51174
51175         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
51176         (ME_DUMMY): Treat "kernfs" as a dummy.
51177         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
51178
51179 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51180
51181         Update from coreutils.
51182
51183         2006-08-15  Jim Meyering  <jim@meyering.net>
51184
51185         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
51186
51187         2006-01-17  Jim Meyering  <jim@meyering.net>
51188
51189         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
51190
51191         2006-01-11  Jim Meyering  <jim@meyering.net>
51192
51193         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
51194         Check for the lchmod function.
51195
51196 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51197
51198         Update from coreutils.
51199
51200         * lib/__fpending.h: Add copyright notice.
51201         * lib/fprintftime.h: Likewise.
51202         * lib/savedir.c: Use (C) in copyright notice.
51203         * lib/savedir.h: Likewise.
51204
51205         2006-08-15  Jim Meyering  <jim@meyering.net>
51206
51207         * lib/at-func.c: New file, with the logic of all emulated at-functions.
51208         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
51209         in support of the EXPECTED_ERRNO macro.
51210         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
51211         definitions.  Instead, define the appropriate symbols and include
51212         "at-func.c".
51213         * lib/mkdirat.c (mkdirat): Likewise.
51214         * lib/fchmodat.c (fchmodat): Likewise.
51215         (ENOSYS): Remove definition.
51216         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
51217         it.  Don't include "unistd--.h" -- it wasn't ever used.
51218
51219         2006-01-17  Jim Meyering  <jim@meyering.net>
51220
51221         Rewrite fts.c not to change the current working directory,
51222         by using openat, fstatat, fdopendir, etc..
51223
51224         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
51225         (HAVE_OPENAT_SUPPORT): Define.
51226         [_LIBC] (fchdir): Don't undef or define; no longer used.
51227         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
51228         Now, this `function' always succeeds, and consumes its file descriptor
51229         parameter -- so callers must not close such FDs.  Update callers.
51230         (diropen_fd, opendirat, cwd_advance_fd): New functions.
51231         (diropen): Add parameter, SP.  Adjust all callers.
51232         Implement using diropen_fd, rather than open.
51233         (fts_open): Initialize new member, fts_cwd_fd.
51234         Remove fts_rft-setting code.
51235         (fts_close): Close fts_cwd_fd, if necessary.
51236         (__opendir2): Define in terms of opendir or opendirat,
51237         depending on whether the FST_NOCHDIR flag is set.
51238         (fts_build): Since fts_safe_changedir consumes its FD, and since
51239         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
51240         and close the dup'd file descriptor upon failure.
51241         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
51242         (fts_safe_changedir): Tweak semantics to reflect that this function
51243         now calls cwd_advance_fd and hence consumes its FD argument.
51244         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
51245         [struct FTS] (fts_rft): Remove now-unused member.
51246         [struct FTS] (fts_cycle.state): Improve comment.
51247
51248         * lib/openat.c (openat_needs_fchdir): New function.
51249         * lib/openat.h (openat_needs_fchdir): Declare it.
51250
51251 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
51252
51253         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
51254         Problem and fix reported by Pádraig Brady in
51255         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
51256
51257 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51258
51259         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
51260
51261 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51262
51263         * lib/memcoll.c (memcoll): Optimize for the common case where the
51264         arguments are bytewise equal.
51265
51266 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51267
51268         * doc/regexprops-generic.texi: Add a copyright notice.
51269
51270 2006-08-15  Bruno Haible  <bruno@clisp.org>
51271
51272         * modules/tmpdir (License): Change to LGPL.
51273
51274 2006-08-15  Bruno Haible  <bruno@clisp.org>
51275
51276         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
51277         module.
51278
51279 2006-08-14  Simon Josefsson  <jas@extundo.com>
51280
51281         * config/srclist.txt: Add gnupload.
51282
51283 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51284
51285         Change copyright notice from LGPL 2 to GPL 2, since that's the
51286         standard form used in the gnulib repository.
51287         * tests/test-lock.c: Likewise.
51288         * tests/test-stdint.c: Likewise.
51289         * tests/test-tls.c: Likewise.
51290
51291         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
51292         prelude-manager.  User shorter URLs for GNU projects, without '?'.
51293         Add copyright notice.
51294
51295         * check-module: Add copyright notice.  Output a copyright
51296         notice if "--version" is specified.
51297         * modules/COPYING: New file.
51298         * tests/test-getaddrinfo.c: Add copyright notice.
51299         * tests/test-verify.c: Likewise.
51300
51301 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51302
51303         Change copyright notice from LGPL 2 to GPL 2, since that's the
51304         standard form used in the gnulib repository.
51305         * lib/lock.c: LGPL -> GPL.
51306         * lib/lock.h: Likewise.
51307         * lib/strnlen1.c: Likewise.
51308         * lib/strnlen1.h: Likewise.
51309         * lib/tls.c: Likewise.
51310         * lib/tls.h: Likewise.
51311         * lib/tmpdir.c: Likewise.
51312
51313         * lib/TODO: Remove; this belongs only in coreutils.
51314
51315 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51316
51317         Add copyright notices to long-enough files that lack them, since
51318         otherwise the files aren't clearly free.  Use the same notice that
51319         getdate.texi already uses.
51320         * doc/alloca-opt.texi: Add copyright notice.
51321         * doc/alloca.texi: Likewise.
51322         * doc/ctime.texi: Likewise.
51323         * doc/functions.texi: Likewise.
51324         * doc/gcd.texi: Likewise.
51325         * doc/gnulib-tool.texi: Likewise.
51326         * doc/inet_ntoa.texi: Likewise.
51327         * doc/visibility.texi: Likewise.
51328
51329         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
51330         * doc/quote.texi: Add copyright notice.
51331
51332         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
51333         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
51334         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
51335         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
51336         is now obsolete, and give a pointer to the Sun list.
51337         Add copyright notice.
51338
51339 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
51340
51341         * config/srclistvars.sh: Add copyright notice.
51342
51343 2006-08-14  Eric Blake  <ebb9@byu.net>
51344
51345         Import the following change from libc:
51346
51347         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
51348
51349         Upstream bug 2997.
51350         * lib/misc/error.c: Add space between program name and message if file
51351         name is missing.
51352
51353 2006-08-12  Karl Berry  <karl@gnu.org>
51354
51355         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
51356         remove, these originate in gnulib now.
51357
51358 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51359
51360         * doc/Makefile (standards.info standards.html standards.dvi):
51361         Also depend on make-stds.texi.
51362
51363 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51364
51365         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
51366         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
51367
51368         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
51369         in wchar_t.  Problem reported by Eric Blake.
51370
51371         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
51372         LEN is smaller than SIZE.  Suggested by Bruno Haible.
51373         Also, help the compiler to keep LEN in a register.
51374
51375 2006-08-11  Eric Blake  <ebb9@byu.net>
51376
51377         * users.txt: Sort.  Add tar.
51378
51379 2006-08-11  Bruno Haible  <bruno@clisp.org>
51380
51381         * users.txt: New file.
51382
51383 2006-08-11  Bruno Haible  <bruno@clisp.org>
51384
51385         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
51386         before <wchar.h>. Needed for OSF/1 and BSD/OS.
51387
51388 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51389
51390         * modules/snprintf (Depends-on): Remove minmax.
51391         (Maintainer): Add self and Bruno.
51392
51393 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
51394
51395         * lib/.cppi-disable: Add snprintf.h, socket_.h.
51396         * lib/snprintf.c: Include <errno.h> and <limits.h>.
51397         (EOVERFLOW): Define if the system does not.
51398         Do not include "minmax.h"; it wasn't used.
51399         (snprintf): Don't assume size_t promotes to an unsigned type.
51400         Fix bug when generated string was too long for the buffer: the
51401         buffer's contents are supposed to be the initial prefix of the
51402         output.  Don't assume vasnprintf returns EOVERFLOW if the size
51403         exceeds INT_MAX; do the check ourselves.
51404
51405         Import the following changes from libc:
51406
51407         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
51408
51409         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
51410         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
51411         set wc to the byte which couldn't be converted.
51412         (re_string_reconstruct): Don't clear valid_raw_len before calling
51413         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
51414         tip_context using re_string_context_at.
51415
51416         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
51417
51418         * lib/posix/regex.h: g++ still cannot handled [restrict].
51419
51420         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
51421
51422         * lib/posix/regex.h: Remove special handling for VMS.
51423
51424 2006-08-10  Jim Meyering  <jim@meyering.net>
51425
51426         * modules/same-inode: New module.
51427         * modules/dev-ino: New module.
51428         * modules/cycle-check: Depend on these modules, rather than simply
51429         including their .h files.
51430         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
51431         required via m4/cycle-check.m4.
51432         * modules/same: Depend on new same-inode module, rather than
51433         including same-inode.h.
51434         * modules/chdir-safer: New file.
51435
51436         * modules/chown (Depends-on): Add stat-macros.
51437
51438 2006-08-10  Jim Meyering  <jim@meyering.net>
51439
51440         * m4/cycle-check.m4: New file.
51441         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
51442         * m4/dev-ino.m4, m4/same-inode.m4: New files.
51443
51444 2006-08-10  Eric Blake  <ebb9@byu.net>
51445
51446         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
51447         in from original proposal.
51448
51449 2006-08-10  Eric Blake  <ebb9@byu.net>
51450         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51451
51452         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
51453         namespace.
51454
51455 2006-08-10  Bruno Haible  <bruno@clisp.org>
51456
51457         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
51458         as well.
51459
51460 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51461
51462         Sync from coreutils.
51463
51464         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
51465
51466         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
51467         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
51468
51469 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51470
51471         * modules/restrict: Remove; no longer needed now that we assume
51472         Autoconf 2.59 or later.
51473         * MODULES.html.sh: Remove 'restrict'.
51474         * modules/argp (Depends-on): Remove 'restrict'.
51475         * modules/base64 (Depends-on): Likewise.
51476         * modules/gc (Depends-on): Likewise.
51477         * modules/getaddrinfo (Depends-on): Likewise.
51478         * modules/glob (Depends-on): Likewise.
51479         * modules/inet_ntop (Depends-on): Likewise.
51480         * modules/inet_pton (Depends-on): Likewise.
51481         * modules/memxor (Depends-on): Likewise.
51482         * modules/regex (Depends-on): Likewise.
51483         * modules/strtok_r (Depends-on): Likewise.
51484         * modules/time_r (Depends-on): Likewise.
51485
51486 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51487
51488         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
51489         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
51490         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51491         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
51492         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
51493         * m4/memxor.m4 (gl_MEMXOR): Likewise.
51494         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
51495         gl_C_RESTRICT replaced by AC_C_RESTRICT.
51496
51497         Merge from coreutils.
51498         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
51499         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
51500         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
51501         * m4/time_r.m4 (gl_TIME_R): Likewise.
51502
51503 2006-08-09  Karl Berry  <karl@gnu.org>
51504
51505         * config/srclist.txt: no more gettext-tools, per Bruno.
51506
51507 2006-08-08  Eric Blake  <ebb9@byu.net>
51508
51509         * modules/verror: New module.
51510         * MODULES.html.sh: Document it.
51511
51512 2006-08-08  Eric Blake  <ebb9@byu.net>
51513
51514         * lib/verror.h, lib/verror.c: New files.
51515
51516 2006-08-08  Eric Blake  <ebb9@byu.net>
51517
51518         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
51519         verror_at_line output complies with GNU Coding Standards even when
51520         file is NULL.
51521
51522 2006-08-07  Bruno Haible  <bruno@clisp.org>
51523
51524         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
51525         versions of AIX.
51526         Reported by Ralf Wildenhues.
51527
51528 2006-08-07  Bruno Haible  <bruno@clisp.org>
51529
51530         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
51531         in an AC_DEFUN. Needed so that the autoconf snippets can use
51532         AC_REQUIRE.
51533
51534 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51535
51536         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51537         Initialize pkgdata_DATA.
51538         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
51539         overriding it.
51540
51541 2006-08-06  Eric Blake  <ebb9@byu.net>
51542
51543         * lib/error.h: Fold in some upstream changes from glibc.
51544         * lib/error.c: Likewise.
51545
51546 2006-08-04  Bruno Haible  <bruno@clisp.org>
51547
51548         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51549         Make the mostlyclean-local rule depend on mostlyclean-generic.
51550         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
51551
51552 2006-07-31  Bruno Haible  <bruno@clisp.org>
51553
51554         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
51555         <stdlib.h>, <string.h>.
51556
51557 2006-07-30  Bruno Haible  <bruno@clisp.org>
51558
51559         * modules/readlink (License): Change to LGPL.
51560
51561 2006-07-30  Bruno Haible  <bruno@clisp.org>
51562
51563         * modules/javaversion (Makefile.am): Distribute javaversion.java and
51564         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
51565         set PKGDATADIR to point to it.
51566
51567 2006-07-30  Bruno Haible  <bruno@clisp.org>
51568
51569         * modules/csharpexec (configure.ac): Comment out macro invocation.
51570         * modules/javaexec (configure.ac): Likewise.
51571         * modules/javacomp-script (configure.ac): Likewise.
51572
51573         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
51574
51575 2006-07-30  Bruno Haible  <bruno@clisp.org>
51576
51577         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
51578         linked-list.
51579
51580 2006-07-30  Bruno Haible  <bruno@clisp.org>
51581
51582         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
51583
51584 2006-07-30  Bruno Haible  <bruno@clisp.org>
51585
51586         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
51587         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
51588         get removed.
51589
51590 2006-07-29  Bruno Haible  <bruno@clisp.org>
51591
51592         Make it possible for gnulib-tool to work with locally modified or
51593         augmented gnulib repositories.
51594         * gnulib-tool (func_usage): Document --local-dir option.
51595         (local_gnulib_dir): New variable.
51596         Handle --local-dir option.
51597         (func_lookup_file): New function.
51598         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
51599         (func_get_description, func_get_filelist, func_get_description,
51600         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
51601         func_get_automake_snippet, func_get_include_directive,
51602         func_get_license, func_get_maintainer): Use func_lookup_file.
51603         (func_import, func_create_testdir): Use func_lookup_file.
51604
51605 2006-07-29  Bruno Haible  <bruno@clisp.org>
51606
51607         * modules/setenv (Depends-on): Add unistd.
51608
51609 2006-07-29  Bruno Haible  <bruno@clisp.org>
51610
51611         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
51612
51613 2006-07-29  Bruno Haible  <bruno@clisp.org>
51614
51615         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
51616
51617 2006-07-29  Bruno Haible  <bruno@clisp.org>
51618
51619         * gnulib-tool (import, update): If there is no Makefile.am, look at
51620         aclocal.m4, instead of bailing out.
51621
51622 2006-07-29  Bruno Haible  <bruno@clisp.org>
51623
51624         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
51625         Categorize the options by when they are useful.
51626
51627 2006-07-29  Bruno Haible  <bruno@clisp.org>
51628
51629         * gnulib-tool (func_usage): Document option --no-libtool.
51630         Handle option --no-libtool.
51631         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
51632         for changed semantics of $libtool variable.
51633         (func_import): Likewise. If libtool is not used, show this through
51634         an option --no-libtool.
51635         (func_create_testdir): Update.
51636
51637 2006-07-29  Bruno Haible  <bruno@clisp.org>
51638
51639         * gnulib-tool (func_import): Extend error message about missing
51640         --doc-base.
51641
51642 2006-07-29  Bruno Haible  <bruno@clisp.org>
51643
51644         * gnulib-tool (func_import): Don't create the $docbase directory if
51645         there is no file to store there.
51646
51647 2006-07-29  Bruno Haible  <bruno@clisp.org>
51648
51649         * gnulib-tool (autoconf_minversion): If a --dir option is given and
51650         relevant, look for configure.ac there, not in the current directory.
51651         Also use a simple search for AC_PREREQ, not "autoconf --trace".
51652
51653 2006-07-29  Bruno Haible  <bruno@clisp.org>
51654
51655         * gnulib-tool (SORT): New variable.
51656         (func_usage): Undocument --assume-autoconf option.
51657         Remove --assume-autoconf option handling.
51658         (autoconf_minversion): Determine from the contents of configure.ac.
51659         (func_import): Remove autoconf_minversion handling.
51660         Suggested by Eric Blake.
51661
51662 2006-07-29  Bruno Haible  <bruno@clisp.org>
51663
51664         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
51665
51666 2006-07-29  Bruno Haible  <bruno@clisp.org>
51667
51668         * config/srclist.txt (*setenv.[ch]): Remove rules.
51669
51670 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51671
51672         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
51673
51674 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51675
51676         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
51677         arpa/inet.h.
51678
51679 2006-07-28  Simon Josefsson  <jas@extundo.com>
51680
51681         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
51682         * modules/inet_pton (Depends-on): Likewise.
51683
51684 2006-07-28  Simon Josefsson  <jas@extundo.com>
51685
51686         * m4/netinet_in_h.m4: New file.
51687
51688 2006-07-28  Simon Josefsson  <jas@extundo.com>
51689
51690         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
51691         #include's.
51692
51693 2006-07-28  Simon Josefsson  <jas@extundo.com>
51694
51695         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
51696         #include's.
51697
51698 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
51699
51700         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
51701         setgid on directories only if they set these bits.
51702         * lib/modechange.h: Remove obsolete comment about masks.
51703
51704 2006-07-28  Eric Blake  <ebb9@byu.net>
51705
51706         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
51707         macro expansion.
51708
51709 2006-07-28  Bruno Haible  <bruno@clisp.org>
51710
51711         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
51712
51713 2006-07-28  Bruno Haible  <bruno@clisp.org>
51714
51715         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
51716
51717 2006-07-28  Bruno Haible  <bruno@clisp.org>
51718
51719         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51720         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51721         Define fallbacks.
51722         Avoids link error on FreeBSD 4.x.
51723         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51724
51725         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
51726         encoding.
51727         * lib/mbswidth.c (iswcntrl): Likewise.
51728
51729 2006-07-27  Bruno Haible  <bruno@clisp.org>
51730
51731         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
51732         test.
51733
51734 2006-07-27  Bruno Haible  <bruno@clisp.org>
51735
51736         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
51737         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
51738         defined.
51739
51740 2006-07-26  Eric Blake  <ebb9@byu.net>
51741
51742         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
51743
51744 2006-07-26  Eric Blake  <ebb9@byu.net>
51745
51746         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
51747         like mingw that lack mkstemp.
51748         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
51749         avoid compilation warning on mingw.
51750
51751 2006-07-26  Bruno Haible  <bruno@clisp.org>
51752
51753         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
51754         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
51755         INT_FAST*_MIN, INTPTR_MIN.
51756
51757 2006-07-25  Bruno Haible  <bruno@clisp.org>
51758
51759         * modules/version-etc (Depends-on): Add stdarg.
51760
51761 2006-07-25  Bruno Haible  <bruno@clisp.org>
51762
51763         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
51764         complex commands.
51765
51766 2006-07-25  Bruno Haible  <bruno@clisp.org>
51767
51768         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
51769         defined in <stdarg.h> or config.h.
51770
51771 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51772
51773         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
51774         (gl_STDIO_SAFER): Remove.
51775
51776 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51777
51778         * MODULES.html.sh (File stream based Input/Output):
51779         Add fopen-safer, tmpfile-safer; remove stdio-safer.
51780         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
51781         * modules/fopen-safer, modules/tmpfile-safer: New files.
51782         * modules/stdio-safer: Remove.
51783
51784 2006-07-24  Bruno Haible  <bruno@clisp.org>
51785
51786         * modules/tmpdir: New file.
51787         * MODULES.html.sh (File system functions): Add it.
51788
51789 2006-07-24  Bruno Haible  <bruno@clisp.org>
51790
51791         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
51792         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
51793
51794 2006-07-24  Bruno Haible  <bruno@clisp.org>
51795
51796         * modules/clean-temp: New file.
51797
51798 2006-07-24  Bruno Haible  <bruno@clisp.org>
51799
51800         * m4/tmpdir.m4: New file, from GNU gettext.
51801
51802 2006-07-24  Bruno Haible  <bruno@clisp.org>
51803
51804         * lib/tmpdir.h: New file, from GNU gettext.
51805         * lib/tmpdir.c: New file, from GNU gettext.
51806
51807 2006-07-24  Bruno Haible  <bruno@clisp.org>
51808
51809         * lib/clean-temp.h: New file, from GNU gettext.
51810         * lib/clean-temp.c: New file, from GNU gettext.
51811
51812 2006-07-23  Eric Blake  <ebb9@byu.net>
51813
51814         * modules/stdio-safer (Files): Add tmpfile-safer.c.
51815         (Depends-on): Add binary-io.
51816
51817 2006-07-23  Eric Blake  <ebb9@byu.net>
51818
51819         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
51820
51821 2006-07-23  Eric Blake  <ebb9@byu.net>
51822
51823         * lib/tmpfile-safer.c: New file.
51824         * lib/stdio-safer.h (fopen_safer): Add prototype.
51825         * lib/stdio--.h (tmpfile): Make safer.
51826
51827 2006-07-23  Bruno Haible  <bruno@clisp.org>
51828
51829         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
51830         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
51831         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
51832         gl_linked_remove_at): Use it.
51833
51834 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51835         and Simon Josefsson <jas@extundo.com>
51836
51837         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
51838
51839         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
51840
51841 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51842
51843         * modules/close-stream: New file.
51844         * modules/closeout (Description): Make it clear that it exits
51845         with a diagnostic on error.
51846         (Depends-on): Add close-stream.  Remove fpending, stdbool.
51847         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
51848
51849 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51850
51851         * m4/close-stream.m4: New file.
51852
51853 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51854
51855         * lib/close-stream.c, lib/close-stream.h: New files.
51856
51857 2006-07-22  Bruno Haible  <bruno@clisp.org>
51858
51859         Merge from GNU gettext 0.15.
51860
51861         2006-05-01  Bruno Haible  <bruno@clisp.org>
51862
51863                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
51864
51865         2006-07-22  Bruno Haible  <bruno@clisp.org>
51866
51867                 * modules/javaversion: New file.
51868                 * MODULES.html.sh (Java): Add javaversion.
51869
51870         2006-03-12  Bruno Haible  <bruno@clisp.org>
51871
51872                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
51873
51874         2005-12-04  Bruno Haible  <bruno@clisp.org>
51875
51876                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
51877                 (untested).
51878
51879         2006-06-21  Bruno Haible  <bruno@clisp.org>
51880
51881                 Avoid warnings from recent versions of mcs.
51882                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
51883                 -o, -L, -r any more. Use options documented since mcs-1.0
51884                 instead. Similarly for -g.
51885
51886         2005-12-04  Bruno Haible  <bruno@clisp.org>
51887
51888                 * build-aux/csharpcomp.sh.in: Suffix for resources is
51889                 .resources, not .resource.
51890
51891         2005-07-09  Bruno Haible  <bruno@clisp.org>
51892
51893                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
51894                 add a .dll suffix.
51895                 Reported by Mark Junker <mjscod@gmx.de>.
51896
51897         2006-07-22  Bruno Haible  <bruno@clisp.org>
51898
51899                 * modules/gettext: Upgrade to gettext-0.15.
51900                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
51901                 m4/visibility.m4.
51902                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
51903
51904 2006-07-22  Bruno Haible  <bruno@clisp.org>
51905
51906         Merge from GNU gettext 0.15.
51907
51908         2006-03-25  Bruno Haible  <bruno@clisp.org>
51909
51910                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
51911
51912         2006-07-21  Bruno Haible  <bruno@clisp.org>
51913
51914                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
51915                 "1.1".
51916
51917         2006-05-09  Bruno Haible  <bruno@clisp.org>
51918
51919                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
51920                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
51921                 for the conftestver execution.
51922
51923         2006-05-01  Bruno Haible  <bruno@clisp.org>
51924
51925                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
51926                 optional target-version argument. Verify that the compiler
51927                 groks source of the specified source-version, or add -source
51928                 option as necessary. Verify that the compiler produces
51929                 bytecode in the specified target-version, or add -target and
51930                 -source options as necessary. Make the result of the test
51931                 available as variable CONF_JAVAC. Also log error output in
51932                 config.log.
51933
51934         2006-03-11  Bruno Haible  <bruno@clisp.org>
51935
51936                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
51937
51938         2006-05-09  Bruno Haible  <bruno@clisp.org>
51939
51940                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
51941                 CLASSPATH_SEPARATOR to a semicolon.
51942
51943         2006-03-12  Bruno Haible  <bruno@clisp.org>
51944
51945                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
51946                 available as variable CONF_JAVA, for subsequent autoconf
51947                 tests. Also log error output in config.log.
51948
51949         2006-07-19  Bruno Haible  <bruno@clisp.org>
51950
51951                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
51952                 that getline works on glibc2 systems. Needed to avoid trouble
51953                 in relocatable.c.
51954                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
51955
51956         2005-12-04  Bruno Haible  <bruno@clisp.org>
51957
51958                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
51959                 launcher (untested).
51960
51961         2005-12-04  Bruno Haible  <bruno@clisp.org>
51962
51963                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
51964
51965         2006-07-22  Bruno Haible  <bruno@clisp.org>
51966
51967                 * gettext.m4: Update from GNU gettext-0.15.
51968                 * nls.m4: Likewise.
51969                 * po.m4: Likewise.
51970                 * inttypes-pri.m4: Likewise.
51971                 * inttypes-h.m4: Renamed from inttypes.m4.
51972                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
51973
51974 2006-07-22  Bruno Haible  <bruno@clisp.org>
51975
51976         Merge from GNU gettext 0.15.
51977
51978         2005-07-05  Bruno Haible  <bruno@clisp.org>
51979
51980                 * printf-args.c (printf_fetchargs): Work around broken
51981                 definition of wint_t on mingw.
51982
51983         2005-02-12  Bruno Haible  <bruno@clisp.org>
51984
51985                 * xallocsa.h: Add extern "C" for C++.
51986
51987         2006-05-17  Bruno Haible  <bruno@clisp.org>
51988
51989                 Cygwin portability.
51990                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
51991
51992         2006-04-30  Bruno Haible  <bruno@clisp.org>
51993
51994                 * progreloc.c: Include <mach-o/dyld.h> if available.
51995                 (find_executable): Use _NSGetExecutablePath when possible.
51996
51997         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51998
51999                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
52000                 function.
52001
52002         2005-12-29  Bruno Haible  <bruno@clisp.org>
52003
52004                 * progreloc.c (set_program_name_and_installdir): Fix
52005                 compilation error.
52006
52007         2005-12-04  Bruno Haible  <bruno@clisp.org>
52008
52009                 Cygwin portability.
52010                 * progreloc.c: Include <windows.h> also on Cygwin.
52011                 (find_executable): Add support for Cygwin.
52012                 (set_program_name_and_installdir): Handle also platforms with
52013                 nonempty EXEEXT.
52014
52015         2006-07-11  Bruno Haible  <bruno@clisp.org>
52016
52017                 * javacomp.c: Fix a comment.
52018                 Reported by Jim Meyering.
52019
52020         2006-04-30  Bruno Haible  <bruno@clisp.org>
52021
52022                 * javacomp.h (compile_java_class): Add source_version,
52023                 target_version arguments.
52024                 * javacomp.c: Rewritten to choose only a compiler that
52025                 respects the specified source_version and target_version.
52026
52027         2006-06-27  Bruno Haible  <bruno@clisp.org>
52028
52029                 Assume correct S_ISDIR macro.
52030                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
52031
52032         2006-07-22  Bruno Haible  <bruno@clisp.org>
52033
52034                 * javaversion.h: New file, from GNU gettext.
52035                 * javaversion.c: New file, from GNU gettext.
52036                 * javaversion.java: New file, from GNU gettext.
52037                 * javaversion.class: New file, from GNU gettext.
52038
52039         2006-05-17  Bruno Haible  <bruno@clisp.org>
52040
52041                 Cygwin portability.
52042                 * javaexec.c (execute_java_class): Test for jview program
52043                 also on Cygwin.
52044
52045         2006-04-09  Bruno Haible  <bruno@clisp.org>
52046
52047                 * fatal-signal.c: Don't include string.h.
52048                 (at_fatal_signal): Use a copying loop instead of memcpy.
52049
52050         2005-12-04  Bruno Haible  <bruno@clisp.org>
52051
52052                 * csharpexec.c: Add support for 'clix' launcher (untested).
52053                 (execute_csharp_using_sscli): New function.
52054                 (execute_csharp_program): Call it.
52055
52056         2006-06-21  Bruno Haible  <bruno@clisp.org>
52057
52058                 Avoid warnings from recent versions of mcs.
52059                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
52060                 -o, -L, -r any more. Use options documented since mcs-1.0
52061                 instead. Similarly for -g.
52062
52063         2005-07-09  Bruno Haible  <bruno@clisp.org>
52064
52065                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
52066                 add a .dll suffix.
52067                 Reported by Mark Junker <mjscod@gmx.de>.
52068
52069         2006-06-17  Bruno Haible  <bruno@clisp.org>
52070
52071                 * config.charset: Update for NetBSD 3.0.
52072
52073         2006-05-17  Bruno Haible  <bruno@clisp.org>
52074
52075                 Cygwin portability.
52076                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
52077
52078         2006-05-16  Bruno Haible  <bruno@clisp.org>
52079
52080                 * localcharset.c [CYGWIN]: Include <windows.h>.
52081                 (get_charset_aliases): For Cygwin, return the same CPxxx
52082                 aliases list as under WIN32.
52083                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
52084                 the environment variables. Fall back to GetACP().
52085
52086         2006-04-05  Bruno Haible  <bruno@clisp.org>
52087
52088                 * config.charset: Update Juan Manuel Guerrero's address.
52089
52090         2005-02-12  Bruno Haible  <bruno@clisp.org>
52091
52092                 * allocsa.h: Add extern "C" for C++.
52093
52094         2005-02-10  Bruno Haible  <bruno@clisp.org>
52095
52096                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
52097                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
52098
52099         2006-07-22  Bruno Haible  <bruno@clisp.org>
52100
52101                 * gettext.h: Update to GNU gettext-0.15.
52102
52103 2006-07-22  Bruno Haible  <bruno@clisp.org>
52104
52105         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
52106         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
52107         lib-prefix.m4, longdouble.m4, ssize_t.m4.
52108
52109 2006-07-21  Eric Blake  <ebb9@byu.net>
52110
52111         * modules/stdlib-safer: New file.
52112         * MODULES.html.sh (File stream based Input/Output): Add
52113         stdlib-safer.
52114
52115 2006-07-21  Eric Blake  <ebb9@byu.net>
52116
52117         * lib/stdlib-safer.h: New file from coreutils, required by
52118         stdlib--.h.
52119
52120 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
52121
52122         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
52123
52124 2006-07-20  Bruno Haible  <bruno@clisp.org>
52125
52126         * gnulib-tool: Recognize new option --assume-autoconf.
52127         (autoconf_minversion): New variable.
52128         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
52129
52130 2006-07-20  Bruno Haible  <bruno@clisp.org>
52131
52132         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
52133
52134 2006-07-19  Derek R. Price  <derek@ximbiot.com>
52135
52136         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
52137         Reindent and repaginate.
52138
52139 2006-07-19  Derek Price  <derek@ximbiot.com>
52140
52141         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
52142         Correct grammar.
52143
52144 2006-07-17  Bruno Haible  <bruno@clisp.org>
52145
52146         * modules/list: New file.
52147         * modules/array-list: New file.
52148         * modules/carray-list, modules/carray-list-tests: New files.
52149         * modules/linked-list, modules/linked-list-tests: New files.
52150         * modules/avltree-list, modules/avltree-list-tests: New files.
52151         * modules/rbtree-list, modules/rbtree-list-tests: New files.
52152         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
52153         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
52154         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
52155         * modules/oset: New file.
52156         * modules/array-oset: New file.
52157         * modules/avltree-oset, modules/avltree-oset-tests: New files.
52158         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
52159         * tests/test-carray_list.c: New file.
52160         * tests/test-linked_list.c: New file.
52161         * tests/test-avltree_list.c: New file.
52162         * tests/test-rbtree_list.c: New file.
52163         * tests/test-linkedhash_list.c: New file.
52164         * tests/test-avltreehash_list.c: New file.
52165         * tests/test-rbtreehash_list.c: New file.
52166         * tests/test-avltree_oset.c: New file.
52167         * tests/test-rbtree_oset.c: New file.
52168         * MODULES.html.sh (Container data structures): New section.
52169
52170 2006-07-17  Bruno Haible  <bruno@clisp.org>
52171
52172         * m4/gl_list.m4: New file.
52173
52174 2006-07-17  Bruno Haible  <bruno@clisp.org>
52175
52176         * lib/gl_list.h: New file.
52177         * lib/gl_list.c: New file.
52178         * lib/gl_array_list.h: New file.
52179         * lib/gl_array_list.c: New file.
52180         * lib/gl_carray_list.h: New file.
52181         * lib/gl_carray_list.c: New file.
52182         * lib/gl_linked_list.h: New file.
52183         * lib/gl_linked_list.c: New file.
52184         * lib/gl_anylinked_list1.h: New file.
52185         * lib/gl_anylinked_list2.h: New file.
52186         * lib/gl_avltree_list.h: New file.
52187         * lib/gl_avltree_list.c: New file.
52188         * lib/gl_anyavltree_list1.h: New file.
52189         * lib/gl_anyavltree_list2.h: New file.
52190         * lib/gl_rbtree_list.h: New file.
52191         * lib/gl_rbtree_list.c: New file.
52192         * lib/gl_anyrbtree_list1.h: New file.
52193         * lib/gl_anyrbtree_list2.h: New file.
52194         * lib/gl_anytree_list1.h: New file.
52195         * lib/gl_anytree_list2.h: New file.
52196         * lib/gl_linkedhash_list.h: New file.
52197         * lib/gl_linkedhash_list.c: New file.
52198         * lib/gl_anyhash_list1.h: New file.
52199         * lib/gl_anyhash_list2.h: New file.
52200         * lib/gl_avltreehash_list.h: New file.
52201         * lib/gl_avltreehash_list.c: New file.
52202         * lib/gl_rbtreehash_list.h: New file.
52203         * lib/gl_rbtreehash_list.c: New file.
52204         * lib/gl_anytreehash_list1.h: New file.
52205         * lib/gl_anytreehash_list2.h: New file.
52206
52207         * lib/gl_oset.h: New file.
52208         * lib/gl_oset.c: New file.
52209         * lib/gl_array_oset.h: New file.
52210         * lib/gl_array_oset.c: New file.
52211         * lib/gl_avltree_oset.h: New file.
52212         * lib/gl_avltree_oset.c: New file.
52213         * lib/gl_rbtree_oset.h: New file.
52214         * lib/gl_rbtree_oset.c: New file.
52215         * lib/gl_anytree_oset.h: New file.
52216
52217 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52218
52219         * m4/mkancesdirs.m4: New file.
52220         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
52221         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
52222         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
52223         it.
52224
52225 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52226
52227         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
52228         * lib/mkancesdirs.h: New files.
52229         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
52230         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
52231         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
52232         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
52233         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
52234         callers changed.  Revamp internals significantly, by not
52235         attempting to create directories that are temporarily more
52236         permissive than the final results.  Do not attempt to use
52237         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
52238         This removes some race conditions, fixes some bugs, and simplifies
52239         things.  Use new dirchownmod function to do owner and mode changes.
52240         * lib/mkdir-p.h: Likewise.
52241         * lib/modechange.c (octal_to_mode): New function.
52242         (struct mode_change): New member mentioned.
52243         (make_node_op_equals): New arg mentioned.  All callers changed.
52244         (mode_compile): Keep track of which mode bits the user has explicitly
52245         mentioned.
52246         (mode_adjust): New arg DIR, so that we implement the X op correctly.
52247         New arg PMODE_BITS, to keep track of which mode bits the user
52248         mentioned; it treats S_ISUID and S_ISGID speciall.
52249         All callers changed.
52250         * lib/modechange.h: Likewise.
52251
52252 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
52253
52254         * MODULES.html.sh: Add mkancestors.
52255         * modules/mkancesdirs: New module.
52256         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
52257         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
52258         The chdir-safer and afs files are now orphans; I'll remove them
52259         unless someone speaks up.
52260         Add lib/dirchownmod.c, lib/dirchownmod.h.
52261         (Depends-on): Remove alloca, chown, save-cwd, dirname.
52262         Add lchown, mkancesdirs.
52263         (Maintainer): Add self.
52264
52265 2006-07-15  Karl Berry  <karl@gnu.org>
52266
52267         * gnulib-tool: help message wording/arrangement.
52268
52269 2006-07-14  Simon Josefsson  <jas@extundo.com>
52270
52271         * doc/gnulib.texi (Libtool and Windows): New section.
52272
52273 2006-07-12  Simon Josefsson  <jas@extundo.com>
52274
52275         * modules/gendocs (License): Fix license, approved by Karl.
52276
52277 2006-07-12  Eric Blake  <ebb9@byu.net>
52278
52279         * MODULES.html.sh: Add gendocs.
52280
52281 2006-07-11  Eric Blake  <ebb9@byu.net>
52282
52283         * modules/fdl: New module, to install doc/fdl.texi.
52284         * MODULES.html.sh: Add new section for documentation modules.
52285         * gnulib-tool: Avoid space-tab.
52286         (--doc-base): New option, to manage files from doc.
52287
52288 2006-07-11  Eric Blake  <ebb9@byu.net>
52289
52290         * m4/absolute-header.m4: Fix comments to match recent change.
52291
52292 2006-07-11  Eric Blake  <ebb9@byu.net>
52293
52294         * gnulib-tool: List --doc-base before --tests-base.
52295
52296 2006-07-11  Derek R. Price  <derek@ximbiot.com>
52297
52298         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
52299
52300 2006-07-11  Bruno Haible  <bruno@clisp.org>
52301
52302         * README: Mention where to put documentation.
52303
52304 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52305
52306         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
52307
52308 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52309
52310         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
52311         to stdint.m4.
52312
52313 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
52314
52315         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
52316         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
52317         "no/such/file/stdint.h" when there is no such file, so that
52318         the resulting C code can be parsed by dodgy compilers.
52319         Problems reported by Bob Proulx.
52320
52321 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52322
52323         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
52324         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52325         macros into the GNU _D_EXACT_NAMLEN.
52326         * lib/savedir.c:  Likewise.
52327         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
52328
52329 2006-07-10  Derek R. Price  <derek@ximbiot.com>
52330         and Paul Eggert  <eggert@cs.ucla.edu>
52331
52332         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
52333         * m4/savedir.m4:
52334         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
52335         macros into the GNU _D_EXACT_NAMLEN.
52336
52337 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52338
52339         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
52340         around the absolute name, to work around a problem with the HP-UX
52341         11.23 native C compiler, reported by Bob Proulx.
52342
52343 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52344
52345         * doc/maintain.texi, make-stds.texi: Sync from
52346         <http://savannah.gnu.org/projects/gnustandards>.
52347
52348 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
52349
52350         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
52351
52352 2006-07-09  Jim Meyering  <jim@meyering.net>
52353
52354         * m4/glob.m4: Remove a doubled word in a comment.
52355
52356 2006-07-09  Jim Meyering  <jim@meyering.net>
52357
52358         * lib/argp-pv.c: Remove a doubled word in a comment.
52359         * lib/check-version.c (check_version): Likewise.
52360         * lib/javacomp.c (compile_java_class): Likewise.
52361
52362 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
52363
52364         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
52365         for the benefit of people using Autoconf 2.60.  If you want to
52366         support older Autoconf versions you can copy m4/onceonly_2_57.m4
52367         (or m4/onceonly.m4, if pre-2.57) manually.
52368
52369 2006-07-08  Jim Meyering  <jim@meyering.net>
52370
52371         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
52372         comment.
52373         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
52374         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
52375         comment.
52376
52377 2006-07-08  Jim Meyering  <jim@meyering.net>
52378
52379         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
52380
52381 2006-07-07  Simon Josefsson  <jas@extundo.com>
52382
52383         * tests/test-crc.c: Change expected crc value, the test vector
52384         were probably computed using the old broken crc.c?
52385
52386 2006-07-06  Simon Josefsson  <jas@extundo.com>
52387
52388         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
52389         now the canonical place for the M4 file).
52390
52391         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
52392         from the sys_socket dependency now.
52393
52394         * modules/inet_pton (Files): Ditto.
52395
52396         * modules/inet_ntop (Files): Ditto.
52397
52398 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
52399
52400         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
52401         not gl_PREREQ_GETUSERSHELL.
52402
52403 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52404
52405         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
52406         with only one argument, for Autoconf 2.60.
52407         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
52408         expand to nothing, so add a shell command to avoid syntax error.
52409         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52410
52411 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52412
52413         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
52414
52415 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52416
52417         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
52418         no longer needed.  Check for isblank decl.
52419         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
52420         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
52421         of existence.
52422
52423 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52424
52425         * lib/getloadavg.c: Use __VMS, not VMS.
52426         * lib/getopt.c: Likewise.
52427         * lib/getpagesize.h: Likewise.
52428         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
52429         and probably does not work.
52430
52431 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
52432
52433         * lib/.cppi-disable: Add wcwidth.
52434         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
52435         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
52436         (ISGRAPH): Remove.  All uses changed to isgraph.
52437         (FOLD) [!defined _LIBC]: Remove special case.
52438         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
52439         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
52440         HAVE_ISBLANK.
52441         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
52442         case.
52443
52444 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52445
52446         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
52447         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
52448         brackets.  Other minor changes to suppress some compiler
52449         warnings.
52450
52451 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52452         and Paul Eggert  <eggert@cs.ucla.edu>
52453
52454         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
52455         of invoking obsolescent AC_HEADER_DIRENT macro.
52456         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
52457         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
52458         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
52459         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
52460         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
52461         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52462         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
52463         * m4/readdir.m4: Remove; no longer needed.
52464
52465 2006-07-06  Derek R. Price  <derek@ximbiot.com>
52466         and Paul Eggert  <eggert@cs.ucla.edu>
52467
52468         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
52469         Don't worry about this obsolete case any more.
52470         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
52471         directories.
52472         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
52473         worry about this obsolete case any more.
52474         * lib/fts.c: Likewise.
52475         * lib/getcwd.c: Likewise.
52476         * lib/glob.h: Likewise.
52477         * lib/savedir.c: Likewise.
52478
52479 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52480
52481         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
52482         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
52483         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
52484         needed.
52485         All uses removed.
52486         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52487         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52488         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
52489         needed.
52490         * m4/getdate.m4 (gl_GETDATE): Likewise.
52491         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52492         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52493         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52494         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52495         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
52496         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52497         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
52498         needed.
52499
52500 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
52501
52502         * lib/memcasecmp.c: Include <limits.h>.
52503         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
52504         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
52505         Don't assume isdigit succeeds only on '0' through '9'.
52506
52507 2006-07-05  Eric Blake  <ebb9@byu.net>
52508
52509         * modules/getaddrinfo (Depends-on): Add snprintf.
52510
52511 2006-07-05  Eric Blake  <ebb9@byu.net>
52512
52513         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
52514         to avoid 'header present but could not be compiled' on cygwin.
52515
52516 2006-07-05  Eric Blake  <ebb9@byu.net>
52517
52518         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
52519         missing from netdb.h.
52520         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
52521
52522 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52523
52524         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
52525         no longer needed.
52526         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
52527         * m4/getdate.m4 (gl_GETDATE): Likewise.
52528         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
52529         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
52530         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
52531         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
52532         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52533
52534 2006-07-05  Derek R. Price  <derek@ximbiot.com>
52535
52536         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
52537         All uses of is_space replaced by isspace.
52538         * lib/exit.h: Don't talk about STDC_HEADERS.
52539         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
52540         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
52541         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
52542         replaced by isprint etc.
52543         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
52544         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52545         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
52546         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
52547         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
52548         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
52549
52550 2006-07-05  Bruno Haible  <bruno@clisp.org>
52551
52552         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
52553         the function exists, before testing against AIX.
52554         Reported by Martin Lambers <marlam@marlam.de>.
52555
52556 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52557
52558         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
52559         From Mark D. Baushke.
52560
52561 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
52562
52563         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
52564         to the absolute name, not just one, to bypass Sun C 5.8's
52565         "warning: #include of /usr/include/... may be non-portable".
52566
52567 2006-07-04  Eric Blake  <ebb9@byu.net>
52568
52569         * modules/dirname-tests: New test module.
52570         * tests/test-dirname.c: New file, replacing dirname.c
52571         TEST_DIRNAME section that was recently deleted.
52572
52573 2006-07-04  Bruno Haible  <bruno@clisp.org>
52574
52575         Assume ANSI C header files and <ctype.h> functions.
52576         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
52577         (mbsnwidth): Use isprint, iscntrl instead.
52578
52579 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52580
52581         Merge from coreutils.
52582         * MODULES.html.sh: Add xstrtold.
52583         * modules/xstrtold: New file.
52584         * modules/cycle-check (Files): Add lib/same-inode.h.
52585         * modules/dirname (Files): Add m4/double-slash-root.m4.
52586         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
52587         * modules/mkdir-p (Files): Add lib/same-inode.h.
52588         * modules/same (Files): Add lib/same-inode.h.
52589
52590 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52591
52592         * m4/absolute-header.m4: Renamed from full-header-path.m4.
52593         This is to keep the terminology clean; POSIX talks about
52594         "absolute pathnames", not "full pathnames", but the GNU
52595         Coding Standards say to use "path" for something else;
52596         so use "absolute" to keep both sides happy.
52597         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
52598         Set gl_absolute_header, not gl_full_header_path.
52599         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
52600         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
52601         All uses changed.
52602
52603         Merge from coreutils.
52604
52605         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52606
52607         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
52608         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
52609         want to require the building of c-strtod.o.
52610         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
52611         needs -lm directly.
52612         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
52613
52614         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
52615
52616         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
52617         --as-needed option if available.  Problem reported by Albert Chin in
52618         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
52619         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
52620         cc merely issues a bunch of annoying warnings for --as-needed
52621         (this problem was reported by Bob Proulx).  Also, try linking with
52622         -lm to detect a bug in binutils 2.16 (this problem was reported
52623         by Ralf Wildenhues).
52624
52625         2006-06-18  Jim Meyering  <jim@meyering.net>
52626
52627         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
52628         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
52629         macro.
52630         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
52631         also check for glibc-2.4's abort-inducing bug.
52632
52633         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
52634         Low-probability clean-up should be to use rmdir to get rid of
52635         the just-created directory, not unlink.
52636
52637         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
52638         configure fail, and request a bug report to inform us about it.
52639         Add a comment that, barring reports to the contrary, in 2007 we'll
52640         assume ftruncate is universally available.
52641
52642         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52643
52644         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
52645
52646         2006-03-12  Jim Meyering  <jim@meyering.net>
52647
52648         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
52649         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
52650         * m4/same.m4 (gl_SAME): Likewise.
52651         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
52652
52653         2006-03-11  Eric Blake  <ebb9@byu.net>
52654
52655         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
52656         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
52657         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
52658         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
52659
52660 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
52661
52662         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
52663         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
52664         reported by Mark D. Baushke, one in
52665         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
52666
52667         Merge from coreutils.
52668
52669         * lib/.cppi-disable: Add stdint_.h.
52670         * lib/.cvsignore: Add stdint.h.
52671
52672         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
52673
52674         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
52675         both double and long double versions.
52676         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
52677         * lib/xstrtold.c: New file.
52678         * lib/xstrtod.h (xstrtold): New decl.
52679
52680         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
52681
52682         * lib/filemode.c (setst): Remove.
52683         (strmode): Rewrite to avoid setst.  This makes the code shorter,
52684         (arguably) clearer, and the generated code is a bit smaller on my
52685         Debian GNU/Linux stable x86 host.
52686
52687         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
52688
52689         * lib/filemode.c: Include "filemode.h" first, to test the interface.
52690         Assume that filemode.h includes sys/types.h and sys/stat.h.
52691         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
52692         (ftypelet): Reorder to put common cases first, for efficiency.
52693         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
52694         to do 'M'.
52695         (strmode): Renamed from mode_string, and now stores 12 bytes instead
52696         of 10, for compatibility with FreeBSD.  All callers changed.
52697         (filemodestring): Now stores 12 bytes instead of 10, and sets file
52698         types that can't be deduced solely from st_mode.  First arg is now a
52699         const pointer.
52700         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
52701         (strmode): Renamed from mode_string.
52702         (filemodestring): New decl.
52703         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
52704         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
52705         needed.
52706         (S_ISPORT, S_ISWHT): New macros, if not already defined.
52707
52708         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
52709
52710         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
52711         fsusage.h now does that.  Include fsusage.h first, to test interface.
52712         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
52713         at most one method (the old code could have generated decls that
52714         didn't conform to C89, not that this was ever exercised).
52715         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
52716
52717         2006-03-19  Jim Meyering  <jim@meyering.net>
52718
52719         Work even in a chroot where d_ino values for entries in "/"
52720         don't match the stat.st_ino values for the same names.
52721         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
52722         number, iterate through all entries again, using lstat instead.
52723         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
52724         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
52725
52726         * lib/getcwd.c (__getcwd): Clarify a comment.
52727         Use memcpy in place of a call to strcpy.
52728
52729         2006-03-12  Jim Meyering  <jim@meyering.net>
52730
52731         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
52732         matches that of the current directory (which we're about to chdir ".."
52733         out of), then save the dev-ino of the parent, instead.
52734
52735         * lib/same-inode.h (SAME_INODE): New file/macro.
52736         * lib/chdir-safer.c (SAME_INODE): Remove definition.
52737         Include "same-inode.h", instead.
52738         * lib/same.c: Likewise.
52739         * lib/cycle-check.h: Include "same-inode.h".
52740         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
52741         * lib/cycle-check.c (SAME_INODE): Remove definition.
52742         * lib/root-dev-ino.h: Include "same-inode.h".
52743
52744         2006-03-11  Eric Blake  <ebb9@byu.net>
52745
52746         * lib/same.c (same_name): s/base_name/last_component/
52747         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
52748         * lib/filenamecat.c (file_name_concat): Likewise.
52749
52750         2006-03-11  Eric Blake  <ebb9@byu.net>,
52751                     Paul Eggert  <eggert@cs.ucla.edu>
52752
52753         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
52754         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
52755         drive prefix.
52756         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
52757         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
52758         (last_component): New method.
52759         * lib/dirname.c (dir_len): Determine when drive letters need a
52760         subsequent slash.  Preserve // when it is special.
52761         (dir_name): Don't append dot when drive letter is absolute.
52762         [TEST_DIRNAME]: Move into a full-blown gnulib test.
52763         * lib/basename.c (base_name): New semantics - malloc the result.
52764         Preserve // when it is special.  Preserve relative files that look
52765         like drive letters.
52766         (base_len): Preserve // when it is special.
52767         (last_component): New method, similar to old base_name semantics.
52768         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
52769         base_name.  Strip redundant slashes from ///.
52770
52771 2006-07-03  Jim Meyering  <jim@meyering.net>
52772
52773         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
52774         macro is used before the first cycle_check call.
52775
52776 2006-07-03  Eric Blake  <ebb9@byu.net>
52777
52778         * modules/dirname (Depends-on): Add xstrndup.
52779
52780 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52781
52782         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
52783         test cases, so that config.log is a bit easier to follow.
52784
52785 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52786
52787         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
52788         both are 64 bits, since this seems to be the tradition, and this
52789         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
52790         we ever run into a host that prefers long long to long in this
52791         case, we'll need another configure-time test.  Problem reported by
52792         Jim Meyering.
52793
52794 2006-07-02  Eric Blake  <ebb9@byu.net>
52795
52796         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
52797
52798 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52799
52800         * modules/inttypes (Depends-on): No longer depends on stdint.
52801         * modules/stdint (Description): Say more about assumptions.
52802         Say that the fast types might differ.  Say macros are used.
52803         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
52804         (Makefile.am): Revise list of substituted symbols to match
52805         new stdint.m4.
52806         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
52807         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
52808         * tests/test-stdint.c (verify_same_types)
52809         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
52810         the code conforms to C99/C89.
52811         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
52812         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
52813
52814 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52815
52816         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
52817         but fix a bug, by requiring at least 64 bits.
52818         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52819         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
52820         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
52821         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
52822
52823         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
52824         changes.  Make 2.59 a prerequisite.  Check and substitute for
52825         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
52826         inttypes.h.  Do not use special include files; just use the
52827         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
52828         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
52829         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
52830         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
52831         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
52832         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
52833         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
52834         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
52835         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
52836         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
52837         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
52838         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
52839         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
52840         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
52841         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
52842         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
52843         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
52844         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
52845         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
52846         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
52847         WINT_MAX.  Check for C99 conformance more strictly, by detecting
52848         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
52849         not check for things that C99 does not require, e.g., int8_t.  If
52850         a test isn't needed unless <stdint.h> isn't working, and is
52851         unlikely to be needed for any other reason, then don't do it
52852         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
52853         size_t, since we assume C89 freestanding at least.  Do not check
52854         for sig_atomic_t, wchar_t, or wint_t, since the code now does
52855         the right thing even if the types are not defined.  Instead use:
52856         (gl_STDINT_TYPE_PROPERTIES): New macro.
52857         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
52858         testing whether <sys/types.h> clashes, as Autoconf does this for
52859         us now.  All uses removed.
52860         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
52861         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
52862         (gl_CHECK_TYPE_SAME):
52863         Remove; no longer needed.
52864         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
52865         exists, since we'll return 0 anyway in that case.
52866         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
52867
52868 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52869
52870         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
52871         possible collision with system files.
52872         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
52873         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
52874         WCHAR_MIN and WCHAR_MAX in this case.
52875         (<stddef.h>): Do not include; no longer needed.
52876         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
52877         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
52878         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
52879         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
52880         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
52881         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
52882         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
52883         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
52884         !defined(__c99))]: Include in this case too, since it's harmless
52885         now.
52886         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
52887         dangerous to do so.
52888         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
52889         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
52890         (_STDINT_MIN, _STDINT_MAX): New macros.
52891         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
52892         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
52893         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
52894         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
52895         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
52896         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
52897         macros, not typedefs; this simplifies things quite a bit.
52898         Use long int for all types narrower than int64_t.
52899         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
52900         Define in terms of long long int or int64_t or long int,
52901         not int64_t or int32_t.  This saves some compile-time testing.
52902         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
52903         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
52904         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
52905         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
52906         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
52907         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
52908         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
52909         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
52910         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
52911         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
52912         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
52913         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
52914         undef any previous version and define our own version, for
52915         simplicity and consistency with the new macros for types.
52916         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
52917         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
52918         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
52919         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
52920         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
52921         @WINT_T_SUFFIX@ to keep things simple here.
52922         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
52923         Simplify by assuming typical 8/16/32/64 host, since we're
52924         already doing that elsewhere anyway.
52925         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
52926         and assume long long int is 64 bits if available.  This
52927         speeds up 'configure'.
52928
52929 2006-07-01  Eric Blake  <ebb9@byu.net>
52930
52931         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
52932         Reported by Andreas Buening.
52933
52934 2006-07-01  Eric Blake  <ebb9@byu.net>
52935
52936         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
52937
52938 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52939
52940         * lib/getaddrinfo.c: fixed typo
52941
52942 2006-06-29  Jim Meyering  <jim@meyering.net>
52943
52944         * modules/strftime (Maintainer): Add my name, since with the
52945         FPRINTFTIME changes strftime.c has forked from glibc.
52946
52947 2006-06-29  Eric Blake  <ebb9@byu.net>
52948
52949         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
52950
52951 2006-06-29  Eric Blake  <ebb9@byu.net>
52952
52953         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
52954
52955 2006-06-29  Eric Blake  <ebb9@byu.net>
52956
52957         * lib/stat_.h: New file.
52958
52959 2006-06-29  Eric Blake  <ebb9@byu.net>
52960
52961         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
52962         unused static function.
52963
52964 2006-06-29  Eric Blake  <ebb9@byu.net>
52965
52966         * doc/functions.texi (Function Portability): Document missing lstat
52967         on mingw.
52968
52969 2006-06-29  Eric Blake  <ebb9@byu.net>
52970
52971         * MODULES.html.sh: Add sys_stat.
52972         * modules/sys_stat: New module.
52973         * modules/mkstemp (Depends-on): Add sys_stat.
52974
52975 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52976
52977         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
52978
52979 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52980
52981         * m4/c-bs-a.m4: Removed.
52982
52983 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52984
52985         * lib/strftime.c: Assume strftime() exists.
52986
52987 2006-06-29  Derek Price  <derek@ximbiot.com>
52988
52989         * modules/c-bs-a: Removed - \a is C89.
52990         * MODULES.html.sh: Remove c-bs-a.
52991
52992 2006-06-29  Bruno Haible  <bruno@clisp.org>
52993
52994         * modules/wcwidth (License): Change to LGPL.
52995
52996 2006-06-28  Simon Josefsson  <jas@extundo.com>
52997
52998         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
52999         on _WIN32.
53000
53001         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
53002         getnameinfo.
53003
53004 2006-06-28  Simon Josefsson  <jas@extundo.com>
53005
53006         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
53007
53008 2006-06-28  Simon Josefsson  <jas@extundo.com>
53009
53010         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
53011         functions there.  It will succeed on Windows XP, but on Windows
53012         2000 and (presumably) earlier, it will fail, and use the internal
53013         re-implementation.
53014         (use_win32_p): New function.
53015         (getaddrinfo): Use strtoul on servname, to support numeric ports.
53016         Support AI_NUMERICSERV to disable getservbyname.
53017         (getnameinfo): New function, only supports
53018         NI_NUMERICHOST|NI_NUMERICSERV for now.
53019
53020         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
53021         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
53022         getnameinfo.
53023
53024 2006-06-28  Eric Blake  <ebb9@byu.net>
53025
53026         * modules/wcwidth: New file.
53027         * modules/mbchar (Depends-on): Add wcwidth.
53028         * modules/mbswidth (Depends-on): Add wcwidth.
53029         * MODULES.html.sh: Add wcwidth.
53030
53031 2006-06-28  Eric Blake  <ebb9@byu.net>
53032
53033         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
53034         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
53035
53036 2006-06-28  Eric Blake  <ebb9@byu.net>
53037
53038         * lib/xvasprintf.h: Fix comments.
53039
53040 2006-06-28  Eric Blake  <ebb9@byu.net>
53041
53042         * lib/mbchar.h (wcwidth): Include wcwidth.h.
53043         * lib/mbswidth.c (wcwidth): Move from here...
53044         * lib/wcwidth.h: ...to this new file.
53045
53046 2006-06-28  Derek R. Price  <derek@ximbiot.com>
53047
53048         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
53049
53050         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
53051         it's obsolete.
53052         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
53053
53054 2006-06-28  Derek R. Price  <derek@ximbiot.com>
53055
53056         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
53057         Autoconf 2.60 says this stuff was obsolete.
53058
53059 2006-06-28  Bruno Haible  <bruno@clisp.org>
53060
53061         * modules/wcwidth (Files): Add m4/wchar_t.m4.
53062
53063 2006-06-28  Bruno Haible  <bruno@clisp.org>
53064
53065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
53066         gt_TYPE_WCHAR_T.
53067
53068 2006-06-28  Bruno Haible  <bruno@clisp.org>
53069
53070         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
53071         declaration for wcwidth.
53072         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
53073
53074 2006-06-28  Bruno Haible  <bruno@clisp.org>
53075
53076         * lib/mkdtemp.c [MINGW]: Include <io.h>.
53077         (mkdir): Define using _mkdir.
53078
53079 2006-06-28  Bruno Haible  <bruno@clisp.org>
53080
53081         * lib/getaddrinfo.h: Fix POSIX URL.
53082         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
53083         _WIN32.
53084         (use_win32_p): Make static.
53085         (getaddrinfo): Reject service name if it is empty or does not consist
53086         solely of decimal digits, or if its value is > 65535.
53087         (getnameinfo): Remove useless casts.
53088
53089 2006-06-27  Simon Josefsson  <jas@extundo.com>
53090
53091         * modules/sys_select: New file, suggested by Bruno Haible, Paul
53092         Eggert and Martin Lambers.
53093
53094 2006-06-27  Simon Josefsson  <jas@extundo.com>
53095
53096         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
53097         Eggert and Martin Lambers.
53098
53099 2006-06-27  Bruno Haible  <bruno@clisp.org>
53100
53101         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
53102         result to 0, not to empty.
53103         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
53104
53105 2006-06-27  Bruno Haible  <bruno@clisp.org>
53106
53107         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
53108
53109 2006-06-26  Simon Josefsson  <jas@extundo.com>
53110
53111         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
53112         present.
53113
53114 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
53115
53116         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
53117         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
53118         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
53119
53120 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
53121
53122         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
53123
53124 2006-06-26  Bruno Haible  <bruno@clisp.org>
53125
53126         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
53127
53128 2006-06-26  Bruno Haible  <bruno@clisp.org>
53129
53130         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
53131
53132 2006-06-26  Bruno Haible  <bruno@clisp.org>
53133
53134         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
53135         SGI C compiler in pre-C99 mode.
53136         Suggested by Mark D. Baushke and Larry Jones.
53137
53138 2006-06-26  Bruno Haible  <bruno@clisp.org>
53139
53140         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
53141         WCHAR_MAX.
53142         Reported by Mark D. Baushke and Larry Jones.
53143
53144 2006-06-26  Bruno Haible  <bruno@clisp.org>
53145
53146         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
53147         in pre-C99 mode.
53148         Suggested by Mark D. Baushke and Larry Jones.
53149
53150 2006-06-23  Simon Josefsson  <jas@extundo.com>
53151             Bruno Haible  <bruno@clisp.org>
53152
53153         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
53154         Emit mostlyclean-local rule.
53155         (func_emit_tests_Makefile_am): Likewise.
53156         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
53157
53158 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
53159
53160         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
53161
53162 2006-06-23  Bruno Haible  <bruno@clisp.org>
53163
53164         * tests/test-stdint.c: Update to match ISO C 99 Technical
53165         Corrigendum 1.
53166
53167 2006-06-23  Bruno Haible  <bruno@clisp.org>
53168
53169         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
53170
53171 2006-06-23  Bruno Haible  <bruno@clisp.org>
53172
53173         * lib/stdint_.h: Treat IRIX like OpenBSD.
53174
53175 2006-06-23  Bruno Haible  <bruno@clisp.org>
53176
53177         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
53178         ISO C 99 Technical Corrigendum 1.
53179
53180 2006-06-22  Simon Josefsson  <jas@extundo.com>
53181
53182         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
53183         MinGW.
53184
53185 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
53186
53187         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
53188         needed.  Some compiler complained about some of them.  Problem reported
53189         by Larry Jones in
53190         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
53191
53192 2006-06-21  Simon Josefsson  <jas@extundo.com>
53193
53194         * tests/test-getaddrinfo.c: New file.
53195
53196         * modules/getaddrinfo-tests: New file.
53197
53198         * MODULES.html.sh: Add inet_pton.
53199
53200         * modules/inet_pton: New file.
53201
53202 2006-06-21  Simon Josefsson  <jas@extundo.com>
53203
53204         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
53205         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
53206         of using the (limited) gnulib implementation on Windows XP.
53207
53208         * m4/inet_pton.m4: New file.
53209
53210 2006-06-21  Simon Josefsson  <jas@extundo.com>
53211
53212         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
53213         variable.
53214
53215         * lib/socket_.h: Don't define WINVER.
53216
53217         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
53218         slightly modified to work in gnulib.
53219
53220 2006-06-21  Simon Josefsson  <jas@extundo.com>
53221
53222         * doc/gnulib.texi (Windows sockets): Add.
53223
53224 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
53225
53226         * lib/read-file.c (fread_file): Start with buffer allocation of
53227         0 bytes rather than 1 byte; this simplifies the code.
53228         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
53229         code to free buffer and save/restore errno.
53230         (internal_read_file): Remove unused local.
53231
53232 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
53233
53234         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
53235         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
53236         Problem reported by Denis Excoffier in
53237         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
53238
53239 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53240
53241         * modules/sys_socket, modules/socklen: Include sys/types since
53242         FreeBSD 4.x's sys/socket.h needs it.
53243
53244 2006-06-19  Simon Josefsson  <jas@extundo.com>
53245
53246         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
53247
53248 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53249
53250         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
53251
53252 2006-06-19  Bruno Haible  <bruno@clisp.org>
53253
53254         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
53255         and FULL_PATH_INTTYPES_H in angle brackets.
53256         Reported by Mark D. Baushke <mdb@gnu.org>.
53257
53258 2006-06-17  Eric Blake  <ebb9@byu.net>
53259
53260         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
53261         errno.
53262
53263 2006-06-17  Bruno Haible  <bruno@clisp.org>
53264
53265         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
53266         <sys/inttypes.h>.
53267
53268 2006-06-17  Bruno Haible  <bruno@clisp.org>
53269
53270         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
53271         whether errno is declared. Assume <errno.h> declares errno.
53272
53273 2006-06-17  Bruno Haible  <bruno@clisp.org>
53274
53275         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
53276
53277 2006-06-17  Bruno Haible  <bruno@clisp.org>
53278
53279         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
53280         problem on Solaris 2.5.1.
53281
53282 2006-06-16  Eric Blake  <ebb9@byu.net>
53283
53284         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
53285         * lib/unicodeio.c [!defined errno]: Likewise.
53286         * lib/strtol.c [!defined errno]: Likewise.
53287         * lib/strtod.c [!defined errno]: Likewise.
53288
53289 2006-06-15  Eric Blake  <ebb9@byu.net>
53290
53291         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
53292
53293 2006-06-15  Eric Blake  <ebb9@byu.net>
53294
53295         * config/srclist.txt (ssize_t.m4): Lose sync.
53296
53297 2006-06-15  Bruno Haible  <bruno@clisp.org>
53298
53299         * modules/stdint (Files): Include m4/full-header-path.m4,
53300         m4/size_max.m4, m4/wchar_t.m4.
53301         (Makefile.am): Many more substitutions.
53302         * modules/stdint-tests: New file.
53303         * tests/test-stdint.c: New file.
53304
53305 2006-06-15  Bruno Haible  <bruno@clisp.org>
53306
53307         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
53308         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
53309         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
53310         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
53311         gl_CHECK_TYPE_SAME): New macros.
53312
53313 2006-06-15  Bruno Haible  <bruno@clisp.org>
53314
53315         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
53316
53317 2006-06-15  Bruno Haible  <bruno@clisp.org>
53318
53319         * lib/stdint_.h: Rewritten to be fully auto-configured.
53320         Fixes bug on HP-UX/IA64.
53321
53322 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
53323
53324         * lib/getdate.y (__attribute__): Don't define if already defined.
53325         Problem reported by Larry Jones.
53326         * lib/utimens.c (__attribute__): Likewise.
53327
53328 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
53329
53330         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
53331         reported by Andreas Schwab.
53332
53333 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53334             Bruno Haible  <bruno@clisp.org>
53335
53336         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
53337         check for the declaration of strnlen and a run test that exposes the
53338         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
53339         rpl_strndup.
53340
53341 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53342             Bruno Haible  <bruno@clisp.org>
53343
53344         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
53345
53346 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53347
53348         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
53349         compile test, for Tru64 4.0D.
53350
53351 2006-05-28  Karl Berry  <karl@gnu.org>
53352
53353         * config/srclist.txt (printf-args.c): lose sync.
53354
53355 2006-05-26  Martin Lambers  <marlam@marlam.de>
53356
53357         * lib/getpass.c: Updates the test for the native W32 API, and adds
53358         missing includes, thus fixing compilation warnings.
53359
53360 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
53361
53362         * lib/exclude.c (exclude_fnmatch): New function.
53363         (excluded_file_name): Call exclude_fnmatch.
53364         * lib/exclude.h (excluded_file_name): New prototype
53365
53366 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
53367
53368         * lib/tempname.c (small_open, large_open): New macros.
53369         (__open, __open64) [!_LIBC]: Remove.
53370         (__gen_tempname): Use small_open and large_open instead of __open
53371         and __open64.  This fixes a portability bug on HP-UX 11.11i
53372         reported by Simon Wing-Tang in
53373         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
53374
53375 2006-05-24  Bruno Haible  <bruno@clisp.org>
53376
53377         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
53378         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
53379         Reported by Thorsten Maerz <torte@netztorte.de> via
53380         Aaron Stone <aaron@serendipity.cx>.
53381
53382 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53383
53384         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
53385         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
53386         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
53387         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
53388         not really conditional on the cache.
53389         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
53390
53391 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
53392
53393         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
53394         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
53395         (my_usleep): Don't mishandle maximum value.
53396
53397 2006-05-19  Jim Meyering  <jim@meyering.net>
53398
53399         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
53400
53401 2006-05-17  Bruno Haible  <bruno@clisp.org>
53402
53403         Cygwin portability.
53404         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
53405
53406 2006-05-17  Bruno Haible  <bruno@clisp.org>
53407
53408         * lib/stdint_.h: Fix recognition of Cygwin.
53409
53410 2006-05-15  Bruno Haible  <bruno@clisp.org>
53411
53412         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
53413         on libtool patch by Ralf Wildenhues.
53414
53415 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
53416
53417         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
53418         test for C99 conformance; (bool) 0.5 is an integer constant
53419         expression, but (bool) -0.5 is not.  Problem reported by Fedor
53420         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
53421
53422 2006-05-11  Simon Josefsson  <jas@extundo.com>
53423
53424         * m4/xvasprintf.m4: Fix obvious typo.
53425
53426 2006-05-11  Jim Meyering  <jim@meyering.net>
53427
53428         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
53429         James Lemley.
53430
53431 2006-05-10  Simon Josefsson  <jas@extundo.com>
53432
53433         * lib/md4.c: Typo fix, update copyright years.
53434         (K1, K2): Don't use L because it turn computations into 64-bit on
53435         64-bit platforms.
53436
53437 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
53438
53439         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
53440         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
53441         unwanted sign propagation, e.g., on hosts with 64-bit int.
53442         There still are some problems with reeelly weird theoretical hosts
53443         (e.g., 33-bit int) but it's not worth worrying about now.
53444         * lib/sha1.c (rol): Likewise.
53445         (K1, K2, K3, K4): Remove unnecessary L suffix.
53446
53447 2006-05-10  Bruno Haible  <bruno@clisp.org>
53448
53449         * lib/des.c: Cast to avoid warnings.
53450
53451 2006-05-09  Bruno Haible  <bruno@clisp.org>
53452
53453         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
53454         (Depends-on): Depend also on xsize, stdarg.
53455         (configure.ac): Add gl_XVASPRINTF.
53456
53457 2006-05-09  Bruno Haible  <bruno@clisp.org>
53458
53459         * m4/xvasprintf.m4: New file.
53460
53461 2006-05-09  Bruno Haible  <bruno@clisp.org>
53462
53463         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
53464         (EOVERFLOW): Define fallback value.
53465         (xstrcat): New function.
53466         (xvasprintf): Recognize the special case of a string concatenation.
53467
53468 2006-05-08  Eric Blake  <ebb9@byu.net>
53469
53470         * gnulib-tool (func_version): Base copyright year on CVS date.
53471         (func_emit_copyright_notice): New function.
53472         (func_emit_lib_Makefile_am): Use it.
53473         (func_emit_tests_Makefile_am): Likewise.
53474         (func_import): Likewise.
53475
53476 2006-05-08  Bruno Haible  <bruno@clisp.org>
53477
53478         * modules/stdarg: New file.
53479         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
53480
53481 2006-05-08  Bruno Haible  <bruno@clisp.org>
53482
53483         * m4/stdarg.m4: New file, from GNU gettext.
53484
53485 2006-05-08  Bruno Haible  <bruno@clisp.org>
53486
53487         * config/srclist.txt (build-aux/config.rpath): different from latest
53488         release.
53489
53490 2006-05-08  Bruno Haible  <bruno@clisp.org>
53491
53492         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
53493
53494 2006-05-05  Jim Meyering  <jim@meyering.net>
53495
53496         * m4/warning.m4: New file, derived from bison's file by the same name.
53497
53498 2006-05-03  Bruno Haible  <bruno@clisp.org>
53499
53500         * lib/stdint_.h: Shorter URL.
53501         * lib/inttypes.h: Likewise.
53502
53503 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53504
53505         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
53506
53507 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53508
53509         * lib/verify.h: Document the internals better.  Most of this change
53510         was written by Bruno Haible.
53511
53512 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
53513
53514         * doc/verify.texi: New file, partly based on a proposal by
53515         Bruno Haible.
53516
53517 2006-05-02  Bruno Haible  <bruno@clisp.org>
53518
53519         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
53520         test from here...
53521         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
53522
53523 2006-04-29  Bruno Haible  <bruno@clisp.org>
53524
53525         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
53526         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
53527
53528 2006-04-29  Bruno Haible  <bruno@clisp.org>
53529
53530         * gnulib-tool: Make --update option actually work.
53531
53532 2006-04-29  Bruno Haible  <bruno@clisp.org>
53533
53534         * doc/gcd.texi: New file.
53535         * doc/gnulib.texi: Include it.
53536
53537 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
53538
53539         * lib/getdate.y (get_date): When adding relative date, start with the
53540         initial time, not with the result of the first mktime call.
53541
53542 2006-04-25  Bruno Haible  <bruno@clisp.org>
53543
53544         * gnulib-tool (func_import): Output the include directives in three
53545         blocks, sorted separately.
53546         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53547
53548 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53549
53550         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
53551         to define main with arguments, for C++.  Reported by Eric Blake.
53552         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
53553         Prefer 'int main ()' to 'int main (void)', for C++.
53554         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
53555         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
53556         for 'main', for C99 and C++.
53557
53558 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
53559
53560         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
53561         Don't assume that exit status -1 is valid.
53562         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53563         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53564         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
53565         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
53566         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
53567         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
53568         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
53569         functions can be used without declaring them, or that you can
53570         exit with status -1.
53571         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
53572
53573 2006-04-24  Karl Berry  <karl@gnu.org>
53574
53575         * config/srclist.txt (longdouble.m4): sync lost.
53576
53577 2006-04-24  Eric Blake  <ebb9@byu.net>
53578
53579         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
53580
53581 2006-04-24  Bruno Haible  <bruno@clisp.org>
53582
53583         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
53584         poll() implementation in AIX.
53585         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53586
53587 2006-04-24  Bruno Haible  <bruno@clisp.org>
53588
53589         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
53590         assigned exactly once.
53591
53592 2006-04-23  Claudio Fontana  <claudio@gnu.org>
53593             Bruno Haible  <bruno@clisp.org>
53594
53595         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
53596         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
53597         for AM_CPPFLAGS.
53598
53599 2006-04-23  Bruno Haible  <bruno@clisp.org>
53600
53601         * modules/copy-file: Depend on unistd.
53602         * modules/execute: Likewise.
53603         * modules/fatal-signal: Likewise.
53604         * modules/findprog: Likewise.
53605         * modules/mkdtemp : Likewise.
53606         * modules/pipe: Likewise.
53607         * modules/wait-process: Likewise.
53608
53609 2006-04-23  Bruno Haible  <bruno@clisp.org>
53610
53611         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
53612         condition was already detected.
53613         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53614
53615 2006-04-23  Bruno Haible  <bruno@clisp.org>
53616
53617         * lib/copy-file.c: Include <unistd.h> unconditionally.
53618         * lib/execute.c: Likewise.
53619         * lib/fatal-signal.c: Likewise.
53620         * lib/findprog.c: Likewise.
53621         * lib/mkdtemp.c: Likewise.
53622         * lib/pipe.h: Likewise.
53623         * lib/pipe.c: Likewise.
53624         * lib/wait-process.h: Likewise.
53625
53626 2006-04-23  Bruno Haible  <bruno@clisp.org>
53627
53628         * gnulib-tool (func_usage): Fix --import description. Document
53629         --update.
53630         (func_import): Create temporary file in a temporary directory, if
53631         --dry-run is specified. Silence errors from 'grep' when there are no
53632         m4 files in $m4dir.
53633         (func_create_testdir): Silence errors from 'grep' when there are no
53634         m4 files in $m4dir.
53635         Reported by Karl Berry <karl@freefriends.org>.
53636
53637 2006-04-20  Bruno Haible  <bruno@clisp.org>
53638
53639         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
53640         one argument, so that the code will be portable to Autoconf 2.60.
53641         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
53642         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53643         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
53644
53645 2006-04-19  Derek Price  <derek@ximbiot.com>
53646             Eric Blake  <ebb9@byu.net>
53647
53648         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
53649         rather than "/full/path.h".  Update comment to match.  Shorten &
53650         generalize m4_translit call via AS_TR_CPP.
53651
53652 2006-04-19  Derek Price  <derek@ximbiot.com>
53653             Eric Blake  <ebb9@byu.net>
53654
53655         * lib/inttypes.h: Correct grammar in comment.
53656
53657 2006-04-18  Derek Price  <derek@ximbiot.com>
53658             Paul Eggert  <eggert@cs.ucla.edu>
53659
53660         * modules/inttypes: New file.
53661         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
53662
53663 2006-04-18  Derek Price  <derek@ximbiot.com>
53664             Paul Eggert  <eggert@cs.ucla.edu>
53665
53666         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
53667         New files.
53668
53669 2006-04-18  Derek Price  <derek@ximbiot.com>
53670             Paul Eggert  <eggert@cs.ucla.edu>
53671
53672         * lib/inttypes.h: New file.
53673         * lib/strtoimax.c: Assume <inttypes.h>.
53674
53675 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
53676
53677         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
53678         isn't mounted.  Problem reported by Kir Kolyshkin.
53679
53680 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
53681
53682         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
53683         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
53684         Derek R. Price.
53685         * lib/regex.h (RE_DUP_MAX): Update comment to match current
53686         implementation.
53687
53688 2006-04-12  Eric Blake  <ebb9@byu.net>
53689
53690         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
53691         is now done automatically by the corresponding Autoconf macro.
53692
53693 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
53694
53695         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
53696         time_r.h.
53697
53698 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53699
53700         Merge regex changes from libc, removing some of our
53701         POSIX-conformance changes that were rejected and redoing them in a
53702         less-intrusive way.
53703
53704         * lib/regcomp.c (re_compile_internal, init_dfa):
53705         Length arg is now size_t, not Idx.  All uses changed.
53706         (peek_token): Forward decl now says internal_function.
53707         (__re_error_msgid, __re_error_msgid_idx):
53708         Now static rather than extern with attribute_hidden.
53709         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
53710         For some reason libc prefers K&R style defns for external functions.
53711         (regerror) [!defined _LIBC]: Likewise.
53712         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
53713         (seek_collating_symbol_entry, lookup_collation_sequence_value):
53714         (build_range_exp, build_collating_symbol):
53715         Use K&R-style defn.
53716         (re_compile_fastmap): Use '\0' to memset, not 0.
53717         (utf8_sb_map): Make the calculations more obvious.
53718         (init_dfa, parse_bracket_exp, build_charclass_op):
53719         Call calloc and cast result, as glibc does.
53720         (init_word_char, fetch_token, peek_token, peek_token_bracket):
53721         (build_range_exp, build_collating_symbol):
53722         Now internal functions.
53723
53724         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
53725
53726         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
53727         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
53728         Don't depend on VMS; depend on __VMS instead, for POSIX
53729         namespace cleanness.
53730         (regoff_t): Define to ssize_t, not long int.
53731
53732         Remove the REG_ macros named below.  Instead, make the old names
53733         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
53734         __USE_GNU_REGEX.
53735         (REG_BACKSLASH_ESCAPE_IN_LISTS):
53736         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
53737         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
53738         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
53739         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
53740         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
53741         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
53742         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
53743         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
53744         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
53745         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
53746         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
53747         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
53748         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
53749         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
53750         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
53751         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
53752         (REG_NREGS):
53753         Remove.  All uses replaced by the old RE_* names.
53754         (RE_BACKSLASH_ESCAPE_IN_LISTS):
53755         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
53756         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
53757         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
53758         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
53759         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
53760         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
53761         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
53762         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
53763         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
53764         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
53765         Don't bother having these macros be independent of each others'
53766         values, since they no longer exist in the POSIX name space.
53767
53768         Rename the following member names back to their old names,
53769         unless !__USE_GNU_REGEX.  All uses changed back.
53770         (buffer): Renamed from re_buffer.
53771         (allocated): Renamed from re_allocated.
53772         (used): Renamed from re_used.
53773         (syntax): Renamed from re_syntax.
53774         (fastmap): Renamed from re_fastmap.
53775         (translate): Renamed from re_translate.
53776         (can_be_null): Renamed from re_can_be_null.
53777         (regs_allocated): Renamed from re_regs_allocated.
53778         (fastmap_accurate): Renamed from re_fastmap_accurate.
53779         (no_sub): Renamed from re_no_sub.
53780         (not_bol): Renamed from re_not_bol.
53781         (not_eol): Renamed from re_not_eol.
53782         (newline_anchor): Renamed from re_newline_anchor.
53783         (num_regs): Renamed from rm_num_regs.
53784         (start): Renamed from rm_start.
53785         (end): Renamed from rm_end.
53786
53787         (free_state): Move up a bit.
53788
53789         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
53790         #define to be empty.
53791         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
53792         when that is what is intended.
53793         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
53794         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
53795         (MAX): New macro.
53796         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
53797         All uses changed back to re_malloc, etc.  It's now the caller's
53798         responsibility to check for overflow; all callers changed.
53799         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
53800         (re_x2nrealloc): Remove.
53801         (free_state): Remove decl.
53802
53803         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
53804         (re_set_registers, re_exec):
53805         Use K&R-style defn.
53806
53807         2006-01-31  Roland McGrath  <roland@redhat.com>
53808
53809         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
53810         Reported by Mike Frysinger <vapier@gentoo.org>.
53811
53812         2006-01-15  Andreas Jaeger  <aj@suse.de>
53813
53814         [BZ #1950]
53815         * lib/regex_internal.c (re_string_reconstruct): Adjust for
53816         build_wcs_upper_buffer change.
53817         (build_wcs_upper_buffer): Change return type.
53818
53819         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
53820
53821         * lib/regex_internal.h: Include <stdint.h> if available.
53822
53823         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
53824
53825         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
53826
53827         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53828
53829         * lib/regcomp.c: Adjust for changed secondary hash function.
53830
53831         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
53832
53833         * lib/regex.h: Pretty printing.
53834         Clean up namespace a bit.
53835
53836         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
53837
53838         * lib/regexec.c (update_cur_sifted_state, check_arrival,
53839         check_arrival_add_next_nodes): Avoid using uninitialized variable.
53840
53841         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53842                     Ulrich Drepper  <drepper@redhat.com>
53843
53844         [BZ #1302]
53845         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
53846         changed.
53847         (bitset_word_t): Renamed from bitset_word.  All uses changed.
53848
53849         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
53850
53851         [BZ #281]
53852         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
53853         * lib/regcomp.c: Remove unnecessary uses of
53854         unsigned RE_TRANSLATE_TYPE.
53855         * lib/regex_internal.h: Likewise.
53856         * lib/regex_internal.c: Likewise.
53857         * lib/regexec.c: Likewise.
53858         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
53859
53860         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
53861
53862         * lib/regexec.c (find_recover_state): Remove unnecessary
53863         initialization.
53864         (transit_state_bkref): Make DFA a const pointer.
53865         (get_subexp): Likewise.
53866         (check_arrival): Likewise.
53867         (update_cur_sifted_state): Likewise.
53868         (re_search_internal): Likewise.
53869         (prune_impossible_nodes): Likewise.
53870         (acquire_init_state_context): Likewise.
53871         (proceed_next_node): Likewise.
53872         (set_regs): Likewise.
53873         (free_fail_stack_return): Likewise.
53874         (check_arrival_expand_ecl): Mark DFA parameter as const.
53875         (check_arrival_expand_ecl_sub): Likewise.
53876         (check_subexp_limits): Likewise.
53877         (sub_epsilon_src_nodes):  Likewise.
53878         (add_epsilon_src_nodes):  Likewise.
53879         (merge_state_array): Likewise.
53880         (update_regs): Likewise.
53881         (build_trtable): Likewise.
53882         (sift_states_backward): Mark MCTX parameter as const.
53883         (build_sifted_states): Likewise.
53884         (update_cur_sifted_state): Likewise.
53885         (sift_states_mkref): Likewise.
53886         (check_arrival_expand_ecl): Mark eclosure as const.
53887         (check_dst_limits_calc_pos_1): Likewise.
53888         * lib/regex_internal.h (re_match_context_t): Make dfa a const
53889         pointer.
53890
53891         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
53892
53893         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
53894         (transit_state_sb): Likewise.
53895         (transit_state_mb): Likewise.
53896         (sift_states_iter_mb): Likewise.
53897         (check_arrival_add_next_nodes): Likewise.
53898         (check_node_accept_bytes): Change first parameter to pointer-to-const.
53899         [_LIBC] (re_search_2_stub): Use mempcpy.
53900
53901         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
53902         mbrtowc for very simple UTF-8 case.
53903
53904         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
53905         a pointer-to-const.
53906         (re_acquire_state_context): Likewise.
53907         * lib/regex_internal.h: Adjust prototypes.
53908
53909         * lib/regex.c: Prevent using C++ compilers.
53910
53911         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
53912         (re_acquire_state_context): Likewise.
53913
53914 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53915
53916         * modules/regex (Depends-on): Add ssize_t.
53917
53918 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53919
53920         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
53921         translation table.
53922
53923 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53924
53925         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
53926
53927 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
53928             Bruno Haible  <bruno@clisp.org>
53929
53930         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
53931         <sys/types.h> and <inttypes.h>.
53932
53933 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53934
53935         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
53936         `__error_t_defined', so argp.h will not typedef the former.
53937
53938 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
53939
53940         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
53941         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
53942         glibc names.  Even if glibc is changed to conform to POSIX, the
53943         traditional names will be available anyway, since regex depends on
53944         the extensions module.  Also, fix a longstanding typo in the
53945         implementation of Spencer ERE test #75 from grep 2.3.  Problems
53946         reported by Emanuele Giaquinta.  Also, change sense of cached
53947         variable, so that the message makes sense.
53948
53949 2006-03-24  Simon Josefsson  <jas@extundo.com>
53950
53951         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
53952         including some doc fixes.
53953         (base64_encode_alloc): Fix +1 bug on allocation failures.
53954
53955 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53956
53957         * lib/base64.c (base64_encode): Do not read past end of array with
53958         unsanitized input on systems with CHAR_BIT > 8.
53959
53960 2006-03-24  Eric Blake  <ebb9@byu.net>
53961
53962         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
53963
53964 2006-03-22  Karl Berry  <karl@gnu.org>
53965
53966         * config/srclist.txt (*setenv.[ch]): get from coreutils.
53967         * config/srclistvars.sh (COREUTILS): new var.
53968
53969 2006-03-17  Jim Meyering  <jim@meyering.net>
53970
53971         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
53972         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
53973
53974 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
53975
53976         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
53977         no longer needs it.  Instead, check that regoff_t is as least
53978         as wide as ptrdiff_t.
53979
53980         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
53981         so that our regex.h stays compatible with the installed regex.
53982         This is helpful for installers who configure --without-included-regex.
53983         Problem reported by Emanuele Giaquinta.
53984
53985 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
53986
53987         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
53988         Typedef to long int, not to off_, as POSIX will likely change
53989         in that direction.
53990
53991 2006-03-15  Eric Blake  <ebb9@byu.net>
53992
53993         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
53994
53995 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
53996
53997         * lib/argp-help.c (validate_uparams): Fix typo
53998         * lib/argp-parse.c (argp_default_options): Consistently begin help
53999         messages with a lowercase letter.
54000
54001 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
54002
54003         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
54004         overrun buffers and shouldn't be used (much as gets shouldn't be
54005         used).
54006         * lib/time_r.c (asctime_r, ctime_r): Likewise.
54007
54008 2006-03-08  Simon Josefsson  <jas@extundo.com>
54009
54010         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
54011         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54012
54013 2006-03-08  Simon Josefsson  <jas@extundo.com>
54014
54015         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
54016         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54017
54018 2006-03-08  Simon Josefsson  <jas@extundo.com>
54019
54020         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
54021         signal that configure disabled the device.
54022
54023 2006-03-08  Simon Josefsson  <jas@extundo.com>
54024
54025         * build-aux/maint.mk: Fix refresh-po, to handle no translated
54026         languages.
54027
54028 2006-03-07  Simon Josefsson  <jas@extundo.com>
54029
54030         * modules/getopt (Depends-on): Add unistd.
54031
54032         * modules/unistd: New file.
54033
54034 2006-03-07  Simon Josefsson  <jas@extundo.com>
54035
54036         * modules/gc-random: New file.
54037
54038 2006-03-07  Simon Josefsson  <jas@extundo.com>
54039
54040         * m4/unistd_h.m4: New file.
54041
54042 2006-03-07  Simon Josefsson  <jas@extundo.com>
54043
54044         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
54045         test to be side-effect free by storing the result in the cache
54046         variable gl_cv_lib_readline, and moving the assignment of
54047         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
54048         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54049
54050 2006-03-07  Simon Josefsson  <jas@extundo.com>
54051
54052         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
54053         error on missing devices (the functions will return an error).
54054
54055         * m4/gc.m4: Move random stuff to gc-random.m4
54056
54057 2006-03-07  Simon Josefsson  <jas@extundo.com>
54058
54059         * lib/unistd_.h: New file.
54060
54061 2006-03-07  Simon Josefsson  <jas@extundo.com>
54062
54063         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
54064
54065 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54066
54067         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
54068         Problem reported by Juan Manuel Guerrero.
54069
54070 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54071
54072         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
54073         the unistd module.
54074         * lib/getlogin_r.c: Likewise.
54075         * lib/getlogin_r.h: Likewise.
54076         * lib/glob.c: Likewise.
54077         * lib/pagealign_alloc.c: Likewise.
54078         * lib/unistd_.h: Remove; no longer needed.
54079
54080 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
54081
54082         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54083         Add unistd.
54084         * modules/c-stack (Depends-on): Add unistd.
54085         * modules/getlogin_r: Likewise.
54086         * modules/glob: Likewise.
54087         * modules/pagealign_alloc: Likewise.
54088         * modules/unistd (Files): Remove lib/unistd_.h.
54089         (EXTRA_DIST): Remove.
54090         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
54091         need unistd_.h.
54092         (MOSTLYCLEANFILES): Remove unistd.h-t.
54093
54094 2006-03-03  Simon Josefsson  <jas@extundo.com>
54095
54096         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
54097
54098 2006-03-03  Simon Josefsson  <jas@extundo.com>
54099
54100         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
54101         libidn and bison.
54102
54103 2006-03-03  Simon Josefsson  <jas@extundo.com>
54104
54105         * build-aux/maint.mk: Add indent target.
54106
54107 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
54108
54109         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
54110         our replacement poll.h in any case, to avoid a differing
54111         declaration from a system header.  Seen on AIX.
54112
54113 2006-03-01  Simon Josefsson  <jas@extundo.com>
54114
54115         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
54116         <kasal@ucw.cz>.
54117
54118 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54119
54120         * modules/gettime (Depends-on): Add extensions module.
54121         * modules/nanosleep (Depends-on): Likewise.
54122         * modules/settime (Depends-on): Likewise.
54123
54124 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
54125
54126         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
54127         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
54128         pedantically.
54129         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54130         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
54131
54132         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
54133         not "==".  Reported by Ralf Wildenhues.
54134
54135 2006-03-01  Karl Berry  <karl@gnu.org>
54136
54137         * doc/Copyright/request-*: new files, synced from gnuorg.
54138
54139 2006-03-01  Karl Berry  <karl@gnu.org>
54140
54141         * config/srclist.txt (Copyright/*): new entries.
54142
54143 2006-02-28  Simon Josefsson  <jas@extundo.com>
54144
54145         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
54146
54147 2006-02-27  Simon Josefsson  <jas@extundo.com>
54148
54149         * lib/base64.h: Indent #define's.  From Jim Meyering
54150         <jim@meyering.net>.
54151
54152 2006-02-27  Jim Meyering  <jim@meyering.net>
54153
54154         Revert the change of 2006-02-24, so these files can continue
54155         to be sync'd from gettext.
54156         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
54157         of `config.h'.
54158
54159 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
54160
54161         * modules/intprops: New file.
54162         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
54163         Add intprops.
54164         * modules/getloadavg (Files): Remove lib/intprops.h.
54165         (Depends-on): Add intprops.
54166         * modules/human: Likewise.
54167         * modules/inttostr: Likewise.
54168         * modules/openat: Likewise.
54169         * modules/sig2str: Likewise.
54170         * modules/userspec: Likewise.
54171         * modules/utimecmp: Likewise.
54172         * modules/xnanosleep: Likewise.
54173         * modules/xstrtol: Likewise.
54174
54175 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
54176
54177         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
54178         * modules/lock-tests (TESTS): Use $(EXEEXT).
54179         * modules/tls-tests: Likewise.
54180         * modules/argp-tests: Likewise.
54181         (check_PROGRAMS): New var, replacing...
54182         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
54183
54184 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54185
54186         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
54187         `config.h'.
54188
54189 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
54190
54191         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
54192
54193 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54194
54195         Sync from coreutils.
54196         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
54197         gl_CHDIR_SAFER.
54198
54199 2006-02-22  Jim Meyering  <jim@meyering.net>
54200
54201         Sync from coreutils.
54202         * m4/chdir-safer.m4: New file.
54203
54204 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
54205
54206         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
54207         AT_FDCWD exceeds INT_MAX.
54208         * lib/openat.h (AT_FDCWD): Likewise.
54209
54210 2006-02-17  Eric Blake  <address@hidden>
54211
54212         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
54213
54214 2006-02-16  Simon Josefsson  <jas@extundo.com>
54215
54216         * modules/getaddrinfo (Depends-on): Add sys_socket.
54217
54218 2006-02-15  Simon Josefsson  <jas@extundo.com>
54219
54220         * build-aux/maint.mk: Add dsyntax-check rule.
54221
54222 2006-02-15  Eric Blake  <ebb9@byu.net>
54223
54224         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
54225         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
54226         'present but cannot compile' warnings on cygwin.
54227         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
54228         use ws2tcpip.h if sys/socket.h works.
54229         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
54230         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
54231
54232 2006-02-14  Simon Josefsson  <jas@extundo.com>
54233
54234         * modules/maintainer-makefile (Files): Rename.
54235
54236         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
54237         and (the local) Makefile.cfg to maint-cfg.mk.
54238
54239         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
54240         to the latter.
54241
54242         * modules/maintainer-makefile: New module.
54243
54244         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
54245         severaly stripped to make it possible to build it up from scratch
54246         with reliable tests.
54247
54248         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
54249         fixes to permit overriding the default actions when configure and
54250         makefile are not available.
54251
54252 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54253
54254         Sync from coreutils.
54255         * modules/lstat (Depends-on): Don't depend on xalloc.
54256         (License): Change from GPL to LGPL, since this is now simply a
54257         replacement for a libc function.
54258
54259 2006-02-14  Jim Meyering  <jim@meyering.net>
54260
54261         Sync from coreutils.
54262
54263         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
54264         failure on deficient systems, and simplify gnulib lgpl dependencies.
54265         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
54266         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
54267
54268         * lib/xalloc-die.c: Remove unused definition of N_.
54269
54270 2006-02-14  Jim Meyering  <jim@meyering.net>
54271
54272         Sync from coreutils.
54273         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
54274         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
54275         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
54276         double-quote uses of that variable, to accommodate the rare case in
54277         which getmntent is available in none of the libraries checked.  This
54278         happens at least on FreeBSD 5.0.
54279
54280 2006-02-13  Simon Josefsson  <jas@extundo.com>
54281
54282         * gnulib-tool (Usage): Fix --import, from
54283         karl@freefriends.org (Karl Berry).
54284
54285 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
54286
54287         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
54288
54289 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
54290
54291         * lib/argp-namefrob.h: Restore changes accidentally lost during the
54292         "autoupdate" on 2005-12-12.
54293
54294 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54295
54296         * modules/closeout (Depends-on): Remove atexit.
54297
54298 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
54299
54300         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
54301         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
54302
54303 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54304
54305         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
54306         __EXTENSIONS__ if this causes compilation to fail.  Problem
54307         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
54308         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
54309
54310 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
54311
54312         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
54313         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
54314         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
54315         All uses changed.
54316
54317 2006-01-26  Simon Josefsson  <jas@extundo.com>
54318
54319         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
54320         prototype is visible on mingw32.
54321
54322         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
54323         for mingw32.
54324
54325         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
54326         mingw32).
54327
54328 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
54329
54330         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
54331         attempt to open for write; this always fails, at least on POSIX
54332         hosts.  This reinstates the 2006-01-09 change, which was
54333         inadvertently removed.
54334
54335 2006-01-26  Bruno Haible  <bruno@clisp.org>
54336
54337         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
54338         Reported by Paul Eggert.
54339
54340 2006-01-26  Bruno Haible  <bruno@clisp.org>
54341             Paul Eggert  <eggert@cs.ucla.edu>
54342
54343         * lib/stdbool_.h (_Bool)
54344         [(! (defined __cplusplus || defined __BEOS__)
54345           && !defined __GNUC__
54346           && !(defined __HP_cc || defined __xlc__
54347                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
54348                || defined __sgi))]:
54349         #define to signed char in these cases too; this simplifies
54350         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
54351         etc., separately) and makes it more conservative.
54352
54353 2006-01-25  Simon Josefsson  <jas@extundo.com>
54354
54355         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
54356         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
54357         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
54358
54359 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54360
54361         * lib/argp-namefrob.h: Bugfix. Remove stray #
54362
54363 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54364
54365         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
54366         so that we test the test.
54367         Check for yet another HP-UX cc bug involving *bool |= bool.
54368
54369 2006-01-25  Karl Berry  <karl@gnu.org>
54370
54371         * config/srclist.txt (vasnprintf.c): sync lost.
54372
54373 2006-01-25  Jim Meyering  <jim@meyering.net>
54374
54375         Sync from the stable (b5) branch of coreutils:
54376
54377         * lib/fts.c (fts_children): Don't let close() clobber errno from
54378         failed fchdir().
54379
54380         * lib/fts.c (fts_stat): When following a symlink-to-directory,
54381         don't necessarily interpret stat-fails+lstat-succeeds as indicating
54382         a dangling symlink.  That can also happen at least for ELOOP.
54383         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
54384         FYI, this bug predates the inclusion of fts.c in coreutils.
54385
54386         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
54387         in their own block, so pre-c99 compilers don't object.
54388
54389         Avoid the double-free (first in fts_read, second in fts_close) that
54390         would occur when an `active' directory is made inaccessible (e.g.,
54391         via chmod a-x) during a traversal.
54392         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54393         before returning.  Reproduce this failure by
54394         mkdir -p a/b; cd a; chmod a-x . b
54395         Reported by Stavros Passas.
54396
54397 2006-01-25  Jim Meyering  <jim@meyering.net>
54398
54399         * lib/fileblocks.c: Remove more useless parentheses.
54400         * lib/readutmp.h: Likewise.
54401
54402 2006-01-25  Bruno Haible  <bruno@clisp.org>
54403
54404         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
54405         warnings.
54406         Reported by Paul Eggert.
54407
54408 2006-01-25  Bruno Haible  <bruno@clisp.org>
54409
54410         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
54411         rid of a trap command. For Solaris sh.
54412         Reported by Mark D. Baushke <mdb@gnu.org>.
54413
54414 2006-01-24  Simon Josefsson  <jas@extundo.com>
54415
54416         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
54417         Bruno.
54418
54419 2006-01-24  Karl Berry  <karl@gnu.org>
54420
54421         * config/srclist.txt (argp-namefrob.h): sync lost.
54422
54423 2006-01-24  Jim Meyering  <jim@meyering.net>
54424
54425         * modules/openat (Files): Add lib/intprops.h.
54426         From Mark D. Baushke.
54427
54428 2006-01-24  Jim Meyering  <jim@meyering.net>
54429
54430         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
54431         Reported by Mark D. Baushke.
54432
54433 2006-01-24  Jim Meyering  <jim@meyering.net>
54434
54435         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
54436
54437 2006-01-24  Bruno Haible  <bruno@clisp.org>
54438
54439         * modules/strnlen (Maintainer): Change from glibc to all.
54440
54441 2006-01-24  Bruno Haible  <bruno@clisp.org>
54442
54443         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
54444         Patch by Paul Eggert.
54445
54446 2006-01-24  Bruno Haible  <bruno@clisp.org>
54447
54448         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
54449         already has it.
54450         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
54451         2005-11-26.
54452
54453         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
54454         'signed char' to avoid problems with the built-in _Bool type.
54455         Reported by Paul Eggert on 2005-11-26.
54456
54457 2006-01-24  Bruno Haible  <bruno@clisp.org>
54458
54459         * gnulib-tool (func_import): Avoid constructing complicated sed
54460         expressions inside backquote.
54461         Report and solution by Mark D. Baushke <mdb@gnu.org>.
54462
54463 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
54464
54465         These changes imported from libc.
54466         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
54467         test and two separate function calls.
54468         * lib/strndup.c (__strndup): Add libc_hidden_def.
54469
54470 2006-01-23  Simon Josefsson  <jas@extundo.com>
54471
54472         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
54473         Remove the test_*_SOURCES variable: automake infers it by default.
54474         * modules/tls-tests: Likewise.
54475
54476 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54477
54478         Work around porting bugs reported by Dieter in
54479         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
54480         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
54481         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
54482         Include "getopt.h" first, to check interface.
54483         (getenv): Declare only if defined HAVE_DECL_GETENV &&
54484         !HAVE_DECL_GETENV.
54485         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
54486         (__strndup): Revert to K&R-style function dfns, the glibc style.
54487         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
54488         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
54489         Include strnlen.h first, to get prototype properly.
54490         (strnlen): Renamed from __strnlen.
54491         Remove weak alias.
54492
54493 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54494
54495         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
54496
54497 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
54498
54499         * config/srclist.txt: Adjust to reflect glibc reorganization.
54500         This affects only comments.
54501
54502 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
54503
54504          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
54505          Reported by Bruce Korb <bkorb@gnu.org>.
54506
54507 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
54508
54509         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
54510         to pacify gcc -Wswitch-default.
54511
54512 2006-01-22  Bruno Haible  <bruno@clisp.org>
54513
54514         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
54515         temporary buffer for sprintf, take into account the precision also
54516         for 'd', 'i', 'u', 'o', 'x', 'X'.
54517
54518 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54519
54520         * modules/argp-tests: New module
54521         * tests/test-argp.c: New file
54522         * tests/test-argp-2.sh: New file
54523
54524 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
54525
54526         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
54527         (__argp_base_name): Removed
54528         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
54529         typo.
54530         (__argp_base_name): Provide macro definition or extern declaration
54531         depending on the configuration
54532
54533 2006-01-20  Simon Josefsson  <jas@extundo.com>
54534
54535         * modules/inet_ntop (Depends-on): Depend on sys_socket.
54536
54537 2006-01-20  Simon Josefsson  <jas@extundo.com>
54538
54539         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
54540
54541 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
54542
54543         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
54544         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
54545         Suggested by Bruno Haible.
54546
54547 2006-01-20  Karl Berry  <karl@gnu.org>
54548
54549         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
54550         until changes propagate, I guess.
54551
54552 2006-01-19  Simon Josefsson  <jas@extundo.com>
54553
54554         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
54555
54556 2006-01-19  Simon Josefsson  <jas@extundo.com>
54557
54558         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
54559
54560 2006-01-19  Simon Josefsson  <jas@extundo.com>
54561
54562         * gnulib-tool: Set check_PROGRAMS.
54563
54564         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54565         modules/des-tests, modules/gc-arcfour-tests,
54566         modules/gc-arctwo-tests, modules/gc-des-tests,
54567         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54568         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54569         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54570         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54571         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54572         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
54573         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
54574         test_*_SOURCES.
54575
54576 2006-01-18  Simon Josefsson  <jas@extundo.com>
54577
54578         * modules/socklen (Depends-on): Depend on sys_socket.
54579
54580 2006-01-18  Simon Josefsson  <jas@extundo.com>
54581
54582         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
54583         modules/des-tests, modules/gc-arcfour-tests,
54584         modules/gc-arctwo-tests, modules/gc-des-tests,
54585         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
54586         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
54587         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
54588         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
54589         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
54590         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
54591         $(EXEEXT) to automake TESTS variable, for mingw32.
54592
54593 2006-01-17  Simon Josefsson  <jas@extundo.com>
54594
54595         * modules/socklen (Include): Need sys/socket.h.
54596
54597 2006-01-17  Bruno Haible  <bruno@clisp.org>
54598
54599         * modules/ssize_t (Include): Add <sys/types.h>.
54600
54601 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
54602
54603         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
54604         it's not portable and it doesn't work with cross-compiles.
54605         Problem reported by Bruno Haible.  Fix missing-$ typo in
54606         'test "gl_cv_ignore_unused_libraries" ...' that prevented
54607         -zignore from being used with Sun's C compiler.
54608
54609 2006-01-12  Simon Josefsson  <jas@extundo.com>
54610
54611         * lib/base64.c: Fix warning, reported by Bruno Haible
54612         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
54613
54614 2006-01-12  Bruno Haible  <bruno@clisp.org>
54615
54616         * modules/ldd: New file.
54617         * build-aux/ldd.sh.in: New file.
54618         * MODULES.html.sh (Support for building libraries and executables): Add
54619         ldd.
54620
54621 2006-01-12  Bruno Haible  <bruno@clisp.org>
54622
54623         * m4/ldd.m4: New file.
54624
54625 2006-01-12  Bruno Haible  <bruno@clisp.org>
54626
54627         * gnulib-tool (func_import, func_create_testdir): Don't go into an
54628         endless loop while replacing $auxdir with build-aux.
54629
54630 2006-01-11  Simon Josefsson  <jas@extundo.com>
54631
54632         * lib/stdint_.h (SIZE_MAX): Add missing (.
54633
54634 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
54635
54636         Sync from coreutils.
54637         * lib/md5.c: Fix commentary typos.
54638         (alignof, UNALIGNED_P): No need for a GCC-specific version.
54639         * lib/md5.h (__attribute__): Remove; unused.
54640         * lib/sha1.c: Fix commentary to match md5 better.
54641         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
54642         so that we don't need to worry about alignment.  All uses changed.
54643         This merges the 2005-10-28 md5 change into sha1.
54644
54645 2006-01-11  Jim Meyering  <jim@meyering.net>
54646
54647         Sync from coreutils.
54648         * lib/md5.c (OP): Fix spacing.
54649
54650 2006-01-11  Bruno Haible  <bruno@clisp.org>
54651
54652         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54653         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
54654         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
54655
54656 2006-01-11  Bruno Haible  <bruno@clisp.org>
54657
54658         Ensure automatic ordering between gl_LOCK and gl_ARGP.
54659         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
54660         the "early" section as well.
54661
54662 2006-01-11  Bruno Haible  <bruno@clisp.org>
54663
54664         Avoid "ar: no archive members specified" error on MacOS X.
54665         * gnulib-tool (func_modules_add_dummy): New function.
54666         (func_import, func_create_testdir): Invoke it.
54667
54668 2006-01-11  Bruno Haible  <bruno@clisp.org>
54669
54670         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
54671         with $auxdir in AC_CONFIG_FILES statements.
54672
54673 2006-01-11  Bruno Haible  <bruno@clisp.org>
54674
54675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54676         Initialize also noinst_HEADERS to empty.
54677
54678 2006-01-11  Bruno Haible  <bruno@clisp.org>
54679
54680         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
54681         variables.
54682         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
54683         autoreconf.
54684
54685 2006-01-11  Bruno Haible  <bruno@clisp.org>
54686
54687         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
54688         overridable by the user.
54689         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54690
54691 2006-01-10  Simon Josefsson  <jas@extundo.com>
54692
54693         * modules/sys_socket: New file.
54694
54695 2006-01-10  Simon Josefsson  <jas@extundo.com>
54696
54697         * m4/sys_socket_h.m4: New file.
54698
54699 2006-01-10  Simon Josefsson  <jas@extundo.com>
54700
54701         * lib/socket_.h: New file.
54702
54703 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54704
54705         * modules/readutmp (Maintainer): Add myself.
54706
54707 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54708
54709         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
54710         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
54711         People who are still concerned with buggy memcmp implementations
54712         can invoke gl_FUNC_MEMCMP themselves.
54713
54714 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
54715
54716         * lib/regex_internal.h (BITSET_WORD_BITS):
54717         Work around a bug in 64-bit PGC (before version 6.1-2), where the
54718         preprocessor mishandles large unsigned values as if they were signed.
54719         Problem reported by Claudio Fontana in
54720         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
54721
54722 2006-01-10  Jim Meyering  <jim@meyering.net>
54723
54724         Avoid the double-free (first in fts_read, second in fts_close) that
54725         would occur when an `active' directory is made inaccessible (e.g.,
54726         via chmod a-x) during a traversal.
54727         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54728         before returning.  Reproduce this failure by
54729         mkdir -p a/b; cd a; chmod a-x . b
54730         Reported by Stavros Passas.
54731
54732         Sync from coreutils.
54733         * lib/sha1.c: Tweak grammar in a comment.
54734
54735 2006-01-10  Jim Meyering  <jim@meyering.net>
54736
54737         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
54738         Patch by Joerg Sonnenberger.
54739
54740 2006-01-10  Bruno Haible  <bruno@clisp.org>
54741
54742         * modules/readutmp: Depend on module free.
54743         * modules/strtok_r: Depend on module restrict.
54744
54745 2006-01-10  Bruno Haible  <bruno@clisp.org>
54746
54747         * modules/gettext (configure.ac): Add an invocation of
54748         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
54749
54750 2006-01-10  Bruno Haible  <bruno@clisp.org>
54751
54752         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
54753         Reported by Werner Lemberg <wl@gnu.org>.
54754
54755 2006-01-10  Bruno Haible  <bruno@clisp.org>
54756
54757         * lib/localcharset.c: Update from GNU gettext.
54758
54759 2006-01-10  Bruno Haible  <bruno@clisp.org>
54760
54761         * lib/argp.h (__const): Remove macro. Use const instead.
54762         * lib/argp-fmtstream.h (__const): Likewise.
54763         * lib/glob_.h (__const): Remove macro.
54764         * lib/glob-libc.h: Use const instead of __const.
54765
54766 2006-01-10  Bruno Haible  <bruno@clisp.org>
54767
54768         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
54769         variable.
54770         Needed to avoid an automake error regarding the 'gettext' module.
54771
54772 2006-01-09  Simon Josefsson  <jas@extundo.com>
54773
54774         * modules/inet_ntop (Depends-on): Add restrict.
54775
54776 2006-01-09  Simon Josefsson  <jas@extundo.com>
54777
54778         * modules/gc-rijndael-tests (License): Put under LGPL.
54779
54780         * modules/gc-des-tests (License): Likewise.
54781
54782         * modules/gc-arcfour-tests (License): Likewise.
54783
54784         * modules/gc-arctwo-tests (License): Likewise.
54785
54786         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
54787
54788         * modules/gc-hmac-sha1-tests (Files): Likewise.
54789
54790         * modules/gc-hmac-md5-tests (License): Likewise.
54791
54792         * modules/gc-sha1-tests (License): Likewise.
54793
54794         * modules/gc-md5-tests (License): Likewise.
54795
54796         * modules/gc-md4-tests (License): Likewise.
54797
54798         * modules/gc-md2-tests (License): Likewise.
54799
54800         * modules/gc-tests (License): Likewise.
54801
54802         * modules/des-tests (License): Likewise.
54803
54804         * modules/md4-tests (License): Likewise.
54805
54806         * modules/md2-tests (License): Likewise.
54807
54808 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54809
54810         Sync from coreutils:
54811
54812         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
54813         * modules/lib-ignore: New file.
54814         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
54815         chdir-safer.m4, lchmod.m4.
54816         * modules/openat: Add mkdirat.c, openat-priv.h.
54817
54818 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54819
54820         Sync from coreutils.
54821         * m4/lib-ignore.m4: New file.
54822         * m4/lchmod.m4: New file.
54823
54824 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54825
54826         Sync from coreutils.
54827         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
54828         for write access: POSIX says that must fail.
54829         * lib/fts.c (diropen): Likewise.
54830         * lib/save-cwd.c (save_cwd): Likewise.
54831         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
54832         well, for minor improvements on hosts that lack O_DIRECTORY.
54833         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
54834         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
54835         Fall back on chown if open failed with EACCES.
54836
54837         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
54838         Report an error at compile-time if only a 1-second nominal clock
54839         resolution is found.
54840
54841         * lib/lchmod.h: New file.
54842         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
54843         (make_dir_parents): Use lchown rather than chown, and
54844         lchmod rather than chmod.
54845
54846         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
54847         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
54848         "proc" reported by n0dalus.
54849
54850         * lib/mountlist.c: Include <limits.h>.
54851         (dev_from_mount_options)
54852         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
54853         New function.  It no longer assumes "dev=" has the System V meaning
54854         on Linux (since it doesn't).  It also parses "dev=" more carefully.
54855         (read_file_system_list)
54856         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
54857         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
54858         dev= in that case.
54859
54860         * lib/posixtm.h (PDS_PRE_2000): New macro.
54861         * lib/posixtm.c (year): Arg is now syntax_bits rather than
54862         allow_century.  All usages changed.  Reject dates outside the range
54863         1969-1999 if PDS_PRE_2000 is used.
54864
54865 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54866
54867         Sync from coreutils.
54868         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
54869         (Time of day items): Mention the possibility of leap seconds.
54870         Problem reported by Dr. David Alan Gilbert.
54871
54872 2006-01-09  Jim Meyering  <jim@meyering.net>
54873
54874         Sync from coreutils.
54875
54876         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
54877
54878         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
54879
54880         * lib/modechange.c (mode_compile): Reject an invalid mode string
54881         that starts with an octal digit.  From Andreas Gruenbacher.
54882
54883         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
54884         and dup to open_safer and dup_safer, respectively.
54885         (openat_permissive): Fix typo in comment.
54886
54887         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
54888         "gettext.h"; either no longer needed or are guaranteed by openat.h.
54889         (_): Remove; no longer needed.
54890         (openat): Renamed from rpl_openat; no need for rpl_openat
54891         since openat.h renames openat for us.
54892         Replace most of the body with a call to openat_permissive,
54893         to avoid duplicate code.
54894         Port to (probably hypothetical) environments were mode_t is
54895         wider than int.
54896         (openat_permissive): Require mode arg, so that we can check
54897         types better.  Put it just after flags.  Change cwd failure
54898         indicator from pointer-to-bool to pointer-to-errno-value.
54899         All callers changed.
54900         Invoke openat_save_fail and/or openat_restore_fail if
54901         cwd_errno is null, so that openat can call us.
54902         (openat_permissive, fdopendir, fstatat, unlinkat):
54903         Simplify errno handling to avoid some duplicate code,
54904         as it's OK to set errno on success.
54905         * lib/openat.h: Revamp code so that function macros depend on
54906         __OPENAT_PREFIX only, not also on AT_FDCWD.
54907         (openat_ro): Remove.  Caller changed to use openat_permissive.
54908         (openat_permissive): Now a macro, if not a function.
54909         (openat_restore_fail, openat_save_fail): Now always functions,
54910         since mkdirat needs them even if __OPENAT_PREFIX is defined.
54911
54912         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
54913         and openat.c.
54914         * lib/mkdirat.c: Include openat-priv.h.
54915         Remove definitions of macros defined therein.
54916         * lib/openat.c: Likewise.
54917
54918         * lib/mkdirat.c (mkdirat): New file and function.
54919         * lib/openat.h (mkdirat): Declare.
54920
54921         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
54922
54923         * lib/openat.h (openat_permissive): Declare.
54924         (openat_ro): Define.
54925
54926         * lib/openat.c (EXPECTED_ERRNO): New macro.
54927         (openat_permissive): New function -- used in remove.c rewrite.
54928         (all functions): Set errno just before returning, only if there
54929         was an actual failure.
54930         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
54931
54932         Emulate openat-family functions using Linux's procfs, if possible.
54933         Idea and some code based on Ulrich Drepper's glibc changes.
54934
54935         * lib/openat.c: (BUILD_PROC_NAME): New macro.
54936         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
54937         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
54938         before falling back on save_cwd and restore_cwd.
54939         (fdopendir, fstatat, unlinkat): Likewise.
54940
54941         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
54942         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
54943
54944         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
54945         as second argument to va_arg.  Otherwise, some versions of gcc
54946         warn that `if this code is reached, the program will abort'.
54947
54948 2006-01-09  Jim Meyering  <jim@meyering.net>
54949
54950         Sync from coreutils.
54951         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
54952         Require openat-priv.h.
54953
54954 2006-01-09  Bruno Haible  <bruno@clisp.org>
54955
54956         * modules/strnlen (Include): Use strnlen.h.
54957
54958 2006-01-09  Bruno Haible  <bruno@clisp.org>
54959
54960         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
54961
54962 2006-01-09  Bruno Haible  <bruno@clisp.org>
54963
54964         * lib/sysexit_.h (EX_OK): New macro.
54965         Suggested by Martin Lambers <marlam@marlam.de>.
54966
54967 2006-01-09  Bruno Haible  <bruno@clisp.org>
54968
54969         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
54970         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
54971
54972 2006-01-09  Bruno Haible  <bruno@clisp.org>
54973
54974         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
54975         numbers.
54976
54977 2006-01-09  Bruno Haible  <bruno@clisp.org>
54978
54979         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
54980         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
54981         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
54982         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
54983
54984 2006-01-09  Bruno Haible  <bruno@clisp.org>
54985
54986         * build-aux/javacomp.sh.in: New file, moved from lib/.
54987         * modules/javacomp-script (Files): Update.
54988         (configure.ac): Add AC_CONFIG_FILES invocation.
54989         (EXTRA_DIST): Remove variable.
54990
54991         * build-aux/javaexec.sh.in: New file, moved from lib/.
54992         * modules/javaexec (Files): Update.
54993         (configure.ac): Add AC_CONFIG_FILES invocation.
54994         (EXTRA_DIST): Remove javaexec.sh.in.
54995
54996         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
54997         * modules/csharpcomp-script (Files): Update.
54998         (configure.ac): Add AC_CONFIG_FILES invocation.
54999         (EXTRA_DIST): Remove variable.
55000
55001         * build-aux/csharpexec.sh.in: New file, moved from lib/.
55002         * modules/csharpexec (Files): Update.
55003         (configure.ac): Add AC_CONFIG_FILES invocation.
55004         (EXTRA_DIST): Remove csharpexec.sh.in.
55005
55006 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
55007
55008         Sync from coreutils.
55009
55010         Add POSIX ACL support
55011         * lib/acl.h (copy_acl, set_acl): Add declarations.
55012         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
55013         systems other than Linux.
55014         (chmod_or_fchmod): New function: use fchmod when possible,
55015         and chmod otherwise.
55016         (file_has_acl): Add a POSIX ACL implementation, with a
55017         Linux-specific subcase.
55018         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
55019         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
55020         acls are unsupported.
55021         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
55022         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
55023         are unsupported.
55024
55025 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
55026
55027         Sync from coreutils.
55028         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
55029
55030 2006-01-07  Bruno Haible  <bruno@clisp.org>
55031
55032         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
55033         gl_EARLY.
55034
55035 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55036
55037         * lib/strftime.c (tzname): Don't declare if it is already #defined.
55038         Problem reported for Mingw by Mark Junker.
55039
55040 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
55041
55042         * README: Gnulib normally doesn't generate a tarball.
55043
55044 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
55045
55046         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
55047         long int, not int, for nanosecond counts, so that people who are
55048         used to POSIX struct timespec won't be surprised.  Reported by Jim
55049         Meyering.
55050
55051 2005-12-28  Bruno Haible  <bruno@clisp.org>
55052
55053         * build-aux/config.rpath: Update from GNU gettext.
55054
55055 2005-12-16  Jim Meyering  <jim@meyering.net>
55056
55057         * modules/fprintftime: New module.
55058         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
55059
55060 2005-12-16  Jim Meyering  <jim@meyering.net>
55061
55062         * m4/fprintftime.m4: New file.
55063
55064 2005-12-16  Jim Meyering  <jim@meyering.net>
55065
55066         * lib/fprintftime.c, lib/fprintftime.h: New files.
55067
55068 2005-12-15  Simon Josefsson  <jas@extundo.com>
55069
55070         * modules/socklen (configure.ac): Fix M4 macro name, to align with
55071         new m4/socklen.m4.
55072
55073 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55074
55075         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
55076         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
55077
55078 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
55079
55080         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
55081         * lib/argp-help.c (fill_in_uparams): Check if the constructed
55082         struct uparams is valid. Fall back to the default values if it is
55083         not.
55084
55085 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55086
55087         * modules/argp (Files): Add argp-pin.c
55088         (Depends-on): dirname
55089         (lib_SOURCES): Add argp-pin.c
55090
55091 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55092
55093         * m4/argp.m4:  Check if program_invocation_name and
55094         program_invocation_short_name are declared and define appropriate
55095         macros if they are not.
55096
55097 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
55098
55099         * lib/argp-help.c (__argp_base_name): New function
55100         (__argp_short_program_name): Rewrite using __argp_base_name
55101         * lib/argp-namefrob.h: Define program_invocation_name and
55102         program_invocation_short_name if requested
55103         (__argp_base_name): Add prototype
55104         * lib/argp-parse.c (argp_def): Use gettext wrappers
55105         (argp_default_parser): Use __argp_base_name
55106         * lib/argp-pin.c: New file. Defines program_invocation_name and
55107         program_invocation_short_name on systems that lack them.
55108
55109 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55110
55111         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
55112         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55113         porting problem reported by Georg Schwarz in
55114         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55115
55116 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
55117
55118         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
55119         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
55120         porting problem reported by Georg Schwarz in
55121         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
55122
55123 2005-12-05  Bruno Haible  <bruno@clisp.org>
55124
55125         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
55126         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
55127         Reported by Mark Junker <mjscod@gmx.de>.
55128
55129 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
55130
55131         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
55132         Use implementation from Albert Chin, with some
55133         comments/corrections by Stepan Kasal and myself.
55134
55135 2005-12-02  Bruno Haible  <bruno@clisp.org>
55136
55137         * gnulib-tool (func_import): Accept GPLed build tool modules when
55138         --lgpl is given.
55139         * modules/csharpcomp-script: New file.
55140         * modules/csharpcomp: Depend on it.
55141         * modules/javacomp-script: New file.
55142         * modules/javacomp: Depend on it.
55143         Suggested by Simon Josefsson.
55144
55145 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
55146
55147         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
55148         statement, to work around an HP-UX 10.20 compiler bug reported by
55149         Peter O'Gorman.
55150
55151 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55152
55153         * modules/savedir (Depends-on): Add openat.
55154
55155 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
55156
55157         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
55158         (uintmax_t) [defined uintmax_t]: Do not declare.
55159         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
55160         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
55161         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
55162         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
55163         sake of portability to weird hosts that C allows (though we don't
55164         know of any practical examples).
55165
55166         * lib/savedir.h (fdsavedir): New decl.
55167         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
55168         contains most of the former guts of savedir.
55169         (savedir): Use savedirstream.
55170         Include "openat.h".
55171
55172 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
55173
55174         * modules/obstack (Files): Add m4/ulonglong.m4.
55175         Problem reported by Davide Angelocola.
55176
55177 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55178
55179         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
55180         coreutils no longer futzes with rounding modes.
55181
55182 2005-11-14  Jim Meyering  <jim@meyering.net>
55183
55184         * lib/mkstemp-safer.c: Include <config.h>, required for possible
55185         replacement of mkstemp.
55186
55187 2005-11-10  Simon Josefsson  <jas@extundo.com>
55188
55189         * lib/readline.c: Remove EOL.
55190
55191 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55192
55193         * modules/gethrxtime (Depends-on): Add gettime.
55194
55195 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55196
55197         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
55198         or gettimeofday; no longer needed.
55199
55200 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
55201
55202         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
55203         time business.
55204         (gethrxtime) [! (HAVE_NANOUPTIME
55205         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
55206         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
55207         our own approximation.
55208
55209 2005-11-08  Eric Blake  <ebb9@byu.net>
55210
55211         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55212
55213 2005-11-08  Eric Blake  <ebb9@byu.net>
55214
55215         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
55216
55217 2005-11-04  Bruno Haible  <bruno@clisp.org>
55218
55219         * gnulib-tool: Implement --update mode.
55220
55221 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55222
55223         Fix porting problem reported by Theodoros V. Kalamatianos.
55224         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
55225         Don't assume that futimes failing means we must fail.
55226
55227 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
55228
55229         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
55230         variables to suggest the intended function of the PATH_MAX check.
55231
55232 2005-10-30  Kean Johnston  <jkj@sco.com>
55233
55234         Trivial changes to support SCO systems.
55235         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
55236         as PATH_MAX.
55237         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
55238         where __ptr is null when no I/O is pending.
55239
55240 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
55241
55242         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
55243         leave errno alone.  Problem reported by Dmitry V. Levin.
55244
55245 2005-10-28  Simon Josefsson  <jas@extundo.com>
55246
55247         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
55248         Test more.
55249
55250         * tests/test-gc-md2.c, tests/test-md2.c: New files.
55251
55252         * modules/md2, modules/md2-tests: New files.
55253
55254 2005-10-28  Simon Josefsson  <jas@extundo.com>
55255
55256         * m4/inet_ntop.m4: More tests.
55257
55258         * m4/gc-md2.m4, md2.m4: New file.
55259
55260 2005-10-28  Simon Josefsson  <jas@extundo.com>
55261
55262         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
55263         "restrict" keywords, as per POSIX.  Protect the function
55264         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
55265         Don't use K&R prototypes.  Check the sprintf return values.
55266         Re-define EAFNOSUPPORT if not present.  Indent.
55267
55268         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
55269         suggested by Bruno Haible <bruno@clisp.org>.
55270
55271         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
55272
55273         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
55274
55275         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
55276         libgcrypt).
55277
55278         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
55279
55280         * lib/md2.h, lib/md2.c: New files.
55281
55282 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
55283
55284         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
55285         errno alone.  Problem reported by Frederic Jolliton.
55286
55287 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
55288
55289         * modules/verify (License): Change from GPL to LGPL.  This is a
55290         tiny module and there are apparently near-equivalents that are
55291         under the BSD license.
55292
55293 2005-10-24  Simon Josefsson  <jas@extundo.com>
55294
55295         * modules/sha1: Relicense to LGPL.
55296
55297 2005-10-24  Simon Josefsson  <jas@extundo.com>
55298
55299         * lib/md4.h: Shrink buffer size, now that we changed the type.
55300
55301 2005-10-23  Simon Josefsson  <jas@extundo.com>
55302
55303         * gnulib-tool (func_import): Fix --tests-base.
55304
55305 2005-10-22  Simon Josefsson  <jas@extundo.com>
55306
55307         * modules/arcfour (Depends-on): Need stdint.
55308
55309 2005-10-22  Simon Josefsson  <jas@extundo.com>
55310
55311         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
55312         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
55313
55314 2005-10-22  Simon Josefsson  <jas@extundo.com>
55315
55316         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
55317         suggested by Bruno Haible <bruno@clisp.org>.
55318
55319 2005-10-22  Simon Josefsson  <jas@extundo.com>
55320
55321         * lib/crc.h: Include stddef.h, for size_t.
55322
55323 2005-10-22  Simon Josefsson  <jas@extundo.com>
55324
55325         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
55326         arcfour_context struct (simplify test vector testing in GNU
55327         Shishi).
55328
55329 2005-10-21  Simon Josefsson  <jas@extundo.com>
55330
55331         * modules/des, modules/des-tests: New files.
55332
55333         * modules/gc-des, modules/gc-des-tests: New files.
55334
55335         * tests/test-des.c, tests/test-gc-des.c: New file.
55336
55337 2005-10-21  Simon Josefsson  <jas@extundo.com>
55338
55339         * modules/arctwo, modules/arctwo-tests: New files.
55340
55341         * tests/test-arctwo.c: New file.
55342
55343         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
55344
55345         * tests/test-gc-arctwo.c: New file.
55346
55347 2005-10-21  Simon Josefsson  <jas@extundo.com>
55348
55349         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
55350         Bruno Haible <bruno@clisp.org>.
55351
55352         * m4/gc-des.m4: New file.
55353
55354 2005-10-21  Simon Josefsson  <jas@extundo.com>
55355
55356         * m4/arctwo.m4: New file.
55357
55358         * m4/gc-arctwo.m4: New file.
55359
55360 2005-10-21  Simon Josefsson  <jas@extundo.com>
55361
55362         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
55363         block.
55364
55365 2005-10-21  Simon Josefsson  <jas@extundo.com>
55366
55367         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
55368         <bruno@clisp.org>.
55369
55370         * lib/hmac-sha1.c (hmac_sha1): Likewise.
55371
55372         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
55373         Bruno Haible <bruno@clisp.org>.
55374
55375         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
55376         <bruno@clisp.org>.
55377
55378 2005-10-21  Simon Josefsson  <jas@extundo.com>
55379
55380         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
55381
55382 2005-10-21  Simon Josefsson  <jas@extundo.com>
55383
55384         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
55385
55386 2005-10-21  Simon Josefsson  <jas@extundo.com>
55387
55388         * lib/des.h, lib/des.c: New files.
55389
55390         * lib/gc-gnulib.c: Support DES.c
55391
55392 2005-10-21  Simon Josefsson  <jas@extundo.com>
55393
55394         * lib/arctwo.h, lib/arctwo.c: New files.
55395
55396         * lib/gc-gnulib.c: Support ARCTWO.
55397
55398 2005-10-21  Simon Josefsson  <jas@extundo.com>
55399
55400         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
55401         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55402
55403 2005-10-21  Simon Josefsson  <jas@extundo.com>
55404
55405         * gnulib-tool (func_import, func_create_testdir): Define automake
55406         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
55407         Makefile.am snippet),
55408         suggested by Bruno Haible <bruno@clisp.org>.
55409
55410         * modules/gc (Makefile.am): Use it.
55411
55412 2005-10-21  Bruno Haible  <bruno@clisp.org>
55413
55414         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
55415         patch.
55416
55417 2005-10-19  Simon Josefsson  <jas@extundo.com>
55418
55419         * tests/test-gc-rijndael.c: New file.
55420
55421         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
55422
55423 2005-10-19  Simon Josefsson  <jas@extundo.com>
55424
55425         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
55426         interface too.
55427
55428 2005-10-19  Simon Josefsson  <jas@extundo.com>
55429
55430         * tests/test-gc-arcfour.c: New file.
55431
55432         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
55433
55434 2005-10-19  Simon Josefsson  <jas@extundo.com>
55435
55436         * modules/gc-md4, modules/gc-md4-tests: New file.
55437
55438         * tests/test-gc-md4.c: New file.
55439
55440 2005-10-19  Simon Josefsson  <jas@extundo.com>
55441
55442         * m4/gc-md4.m4: New file.
55443
55444 2005-10-19  Simon Josefsson  <jas@extundo.com>
55445
55446         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
55447         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
55448         <kasal@ucw.cz>.
55449
55450 2005-10-19  Simon Josefsson  <jas@extundo.com>
55451
55452         * m4/gc-arcfour.m4: New file.
55453
55454         * m4/gc-rijndael.m4: New file.
55455
55456 2005-10-19  Simon Josefsson  <jas@extundo.com>
55457
55458         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
55459
55460 2005-10-19  Simon Josefsson  <jas@extundo.com>
55461
55462         * lib/gc-gnulib.c: Support ARCFOUR.
55463
55464 2005-10-19  Simon Josefsson  <jas@extundo.com>
55465
55466         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
55467         support.
55468
55469         * lib/gc.h: Add ECB enum type.
55470
55471         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
55472
55473 2005-10-18  Simon Josefsson  <jas@extundo.com>
55474
55475         * tests/test-md5.c: New file.
55476
55477         * modules/md5-tests: New file.
55478
55479 2005-10-18  Simon Josefsson  <jas@extundo.com>
55480
55481         * tests/test-md4.c: New file.
55482
55483         * modules/md4, modules/md4-tests: New files.
55484
55485 2005-10-18  Simon Josefsson  <jas@extundo.com>
55486
55487         * m4/md4.m4: New file.
55488
55489 2005-10-18  Simon Josefsson  <jas@extundo.com>
55490
55491         * lib/md4.h, lib/md4.c: New files, based on md5.?.
55492
55493 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
55494
55495         * gnulib-tool (func_create_testdir): Omit the second check whether
55496         BUILT_SOURCES in nonempty.
55497
55498 2005-10-17  Simon Josefsson  <jas@extundo.com>
55499
55500         * tests/test-rijndael.c: New file.
55501
55502 2005-10-17  Simon Josefsson  <jas@extundo.com>
55503
55504         * modules/sha1: Depend on stdint instead of md5.
55505
55506         * modules/md5: Depend on stdint, remove uint32_t.
55507
55508 2005-10-17  Simon Josefsson  <jas@extundo.com>
55509
55510         * modules/gc-sha1-tests: New file.
55511
55512         * tests/test-gc-sha1.c: New file.
55513
55514 2005-10-17  Simon Josefsson  <jas@extundo.com>
55515
55516         * m4/md5.m4: Remove call to uint32_t.m4.
55517
55518 2005-10-17  Simon Josefsson  <jas@extundo.com>
55519
55520         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
55521
55522         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
55523         md5.h.
55524
55525         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
55526
55527         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
55528
55529 2005-10-17  Simon Josefsson  <jas@extundo.com>
55530
55531         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
55532
55533 2005-10-17  Simon Josefsson  <jas@extundo.com>
55534
55535         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
55536
55537 2005-10-17  Simon Josefsson  <jas@extundo.com>
55538
55539         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
55540
55541         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
55542
55543 2005-10-17  Bruno Haible  <bruno@clisp.org>
55544
55545         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
55546         that it can also be used in a test.
55547
55548 2005-10-16  Bruno Haible  <bruno@clisp.org>
55549
55550         * gnulib-tool (func_emit_tests_Makefile_am): Also define
55551         TESTS_ENVIRONMENT, so that individual tests can augment it.
55552
55553         * gnulib-tool (func_create_testdir): Use an intermediate target for
55554         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
55555         macros, like $(ALLOCA_H), which cannot be passed through the command
55556         line.
55557
55558 2005-10-15  Simon Josefsson  <jas@extundo.com>
55559
55560         * modules/rijndael-tests: New file.
55561
55562         * modules/rijndael: New file.
55563
55564 2005-10-15  Simon Josefsson  <jas@extundo.com>
55565
55566         * m4/rijndael.m4: New file.
55567
55568 2005-10-15  Simon Josefsson  <jas@extundo.com>
55569
55570         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
55571
55572         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
55573
55574 2005-10-14  Simon Josefsson  <jas@extundo.com>
55575
55576         * tests/test-arcfour.c: New file.
55577
55578         * modules/arcfour, modules/arcfour-tests: New files.
55579
55580 2005-10-14  Simon Josefsson  <jas@extundo.com>
55581
55582         * m4/arcfour.m4: New file.
55583
55584 2005-10-14  Simon Josefsson  <jas@extundo.com>
55585
55586         * lib/arcfour.h, lib/arcfour.c: New files.
55587
55588 2005-10-14  Roland McGrath  <roland@redhat.com>
55589
55590         Import from libc.  [BZ #1331]
55591         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
55592         macro argument.
55593         Reported by Matej Vela <vela@debian.org>.
55594
55595 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55596
55597         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
55598         include <wchar.h>; no longer needed.
55599
55600 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
55601
55602         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
55603
55604 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
55605         and  Ulrich Drepper  <drepper@redhat.com>
55606
55607         Import from libc.
55608         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
55609         instead of inline stream orientation test and two separate
55610         function calls.  Pay no attention to USE_IN_LIBIO.
55611
55612 2005-10-13  Simon Josefsson  <jas@extundo.com>
55613
55614         * modules/gc-hmac-md5-tests: New file.
55615
55616         * tests/test-gc-hmac-sha1.c: New file.
55617
55618         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
55619
55620         * modules/gc-hmac-md5-tests: New file.
55621
55622         * tests/test-gc-md5.c: New file.
55623
55624         * modules/gc-md5-tests: New file.
55625
55626 2005-10-13  Simon Josefsson  <jas@extundo.com>
55627
55628         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
55629         Move memory allocation outside of loop.
55630
55631 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
55632
55633         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
55634         intermediate directory is in a read-only file system.  Problem
55635         reported by Eric Blake.
55636
55637 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
55638
55639         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
55640
55641 2005-10-12  Simon Josefsson  <jas@extundo.com>
55642
55643         * tests/test-hmac-sha1.c: New file.
55644
55645         * modules/hmac-sha1-tests: New file.
55646
55647         * modules/hmac-sha1: New file.
55648
55649 2005-10-12  Simon Josefsson  <jas@extundo.com>
55650
55651         * modules/gc-sha1: New file.
55652
55653 2005-10-12  Simon Josefsson  <jas@extundo.com>
55654
55655         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
55656
55657         * tests/test-gc-pbkdf2-sha1.c: New file.
55658
55659 2005-10-12  Simon Josefsson  <jas@extundo.com>
55660
55661         * modules/gc-md5, modules/gc-hmac-md5: New files.
55662
55663         * modules/gc (Files): Remove md5, memxor and hmac files.
55664
55665 2005-10-12  Simon Josefsson  <jas@extundo.com>
55666
55667         * m4/gc-pbkdf2-sha1.m4: New file.
55668
55669         * m4/gc-hmac-sha1.m4: New file.
55670
55671         * m4/gc-sha1: New file.
55672
55673         * m4/hmac-sha1.m4: New file.
55674
55675 2005-10-12  Simon Josefsson  <jas@extundo.com>
55676
55677         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
55678
55679         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
55680
55681 2005-10-12  Simon Josefsson  <jas@extundo.com>
55682
55683         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
55684         suggested by Bruno Haible <bruno@clisp.org>.
55685
55686 2005-10-12  Simon Josefsson  <jas@extundo.com>
55687
55688         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
55689
55690 2005-10-12  Simon Josefsson  <jas@extundo.com>
55691
55692         * lib/gc-pbkdf2-sha1.c: New file.
55693
55694         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
55695
55696 2005-10-12  Simon Josefsson  <jas@extundo.com>
55697
55698         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
55699
55700         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
55701
55702 2005-10-12  Simon Josefsson  <jas@extundo.com>
55703
55704         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
55705         GC_USE_HMAC_MD5, respectively.
55706
55707         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
55708         (gc_md5): Fix typo.
55709
55710         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
55711
55712         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
55713
55714         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
55715
55716 2005-10-12  Bruno Haible  <bruno@clisp.org>
55717
55718         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
55719         Reported by Stepan Kasal <kasal@ucw.cz>.
55720
55721 2005-10-11  Simon Josefsson  <jas@extundo.com>
55722
55723         * tests/test-crc.c: New file.
55724
55725         * modules/crc, modules/crc-tests: New files.
55726
55727 2005-10-11  Simon Josefsson  <jas@extundo.com>
55728
55729         * m4/crc.m4: New file.
55730
55731 2005-10-11  Simon Josefsson  <jas@extundo.com>
55732
55733         * lib/gc.h: Add gc_hash and gc_hash_buffer.
55734
55735         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
55736
55737         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
55738
55739 2005-10-11  Simon Josefsson  <jas@extundo.com>
55740
55741         * lib/crc.h, lib/crc.c: New files.
55742
55743         * lib/gc.h (gc_hash_buffer): Add doc.
55744
55745 2005-10-11  Bruno Haible  <bruno@clisp.org>
55746
55747         * modules/c-strcasestr: New file.
55748         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
55749
55750 2005-10-11  Bruno Haible  <bruno@clisp.org>
55751
55752         * modules/c-strcase: New file.
55753         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
55754
55755 2005-10-11  Bruno Haible  <bruno@clisp.org>
55756
55757         * lib/strcasecmp.c: Include limits.h.
55758         (strcasecmp): Avoid integer overflow on exotic platforms.
55759         * lib/strncasecmp.c: Include limits.h.
55760         (strncasecmp): Avoid integer overflow on exotic platforms.
55761         Reported by Paul Eggert.
55762
55763 2005-10-11  Bruno Haible  <bruno@clisp.org>
55764
55765         * lib/c-strcasestr.h: New file, from GNU gettext.
55766         * lib/c-strcasestr.c: New file, from GNU gettext.
55767
55768 2005-10-11  Bruno Haible  <bruno@clisp.org>
55769
55770         * lib/c-strcase.h: New file, from GNU gettext.
55771         * lib/c-strcasecmp.c: New file, from GNU gettext.
55772         * lib/c-strncasecmp.c: New file, from GNU gettext.
55773
55774 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55775
55776         * modules/mempcpy (License): GPL -> LGPL.
55777         * modules/strchrnul (License): Likewise.
55778         * modules/sysexits (License): Likewise.
55779
55780 2005-10-08  Simon Josefsson  <jas@extundo.com>
55781
55782         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
55783
55784 2005-10-07  Simon Josefsson  <jas@extundo.com>
55785
55786         * m4/memxor.m4: Remove gl_C_RESTRICT call.
55787
55788 2005-10-06  Simon Josefsson  <jas@extundo.com>
55789
55790         * tests/test-hmac-md5.c: New file.
55791
55792         * modules/hmac-md5-tests: New file.
55793
55794         * modules/hmac-md5: New file.
55795
55796 2005-10-06  Simon Josefsson  <jas@extundo.com>
55797
55798         * m4/hmac-md5.m4: New file.
55799
55800         * m4/memxor.m4: Require gl_C_RESTRICT.
55801
55802 2005-10-06  Simon Josefsson  <jas@extundo.com>
55803
55804         * lib/memxor.c (memxor): Avoid casts and warnings.
55805
55806 2005-10-06  Simon Josefsson  <jas@extundo.com>
55807
55808         * lib/hmac-md5.c: New file.
55809
55810         * lib/hmac.h: New file.
55811
55812 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55813
55814         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
55815         promotes to int, not unsigned int, to catch the AIX 5.3
55816         compiler bug.
55817
55818 2005-10-05  Simon Josefsson  <jas@extundo.com>
55819
55820         * modules/memxor: New file.
55821
55822         * modules/iconv (Files): Move config.rpath to havelib, it is used
55823         there.
55824
55825         * modules/havelib (Files): Add config.rpath.
55826
55827 2005-10-05  Simon Josefsson  <jas@extundo.com>
55828
55829         * m4/memxor.m4: New file.
55830
55831 2005-10-05  Simon Josefsson  <jas@extundo.com>
55832
55833         * lib/memxor.c (memxor): Fix compiler error.
55834
55835         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
55836         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
55837
55838         * lib/memxor.h, lib/memxor.c: New files.
55839
55840         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
55841         we assume all systems have it, suggested by Jim Meyering
55842         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
55843         any systems lack sys/socket.h; mingw32 is known to lack it, but we
55844         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
55845         same reasons.
55846
55847 2005-10-05  Simon Josefsson  <jas@extundo.com>
55848
55849         * config/srclist.txt: Add glibc bug 1423 for md5.h.
55850
55851 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55852
55853         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
55854         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
55855         needed, since the source code now assumes these .h files.
55856
55857 2005-10-05  Derek Price  <derek@ximbiot.com>
55858
55859         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
55860
55861 2005-10-05  Bruno Haible  <bruno@clisp.org>
55862
55863         * modules/stdint (License): Change to LGPL.
55864
55865 2005-10-04  Simon Josefsson  <jas@extundo.com>
55866
55867         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
55868         D. Baushke" <mdb@gnu.org>.
55869
55870 2005-10-04  Bruno Haible  <bruno@clisp.org>
55871
55872         * lib/verify.h (verify_true): Provide alternative definition for C++.
55873
55874 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
55875
55876         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
55877         (SSIZE_MAX): New macro, if not already defined.
55878         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
55879         than 2 GiB.
55880
55881 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55882
55883         Sync from coreutils.
55884         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
55885         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
55886         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
55887         ULLONG_MAX doesn't work with 2.7.2.1.
55888
55889 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55890
55891         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
55892         From Ben Pfaff.
55893
55894         * modules/exclude (Depends-on): Depend on verify.
55895         * modules/strtoimax (Depends-on): Likewise.
55896         * modules/utimecmp (Depends-on): Likewise.
55897
55898 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55899
55900         * lib/exclude.c: Include verify.h.
55901         (verify): Remove.  All callers changed to use verify.h's version.
55902         * lib/strtoimax.c: Likewise.
55903         * lib/utimecmp.c: Likewis.e
55904
55905         Sync from coreutils.
55906         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
55907         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
55908         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
55909         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
55910         bother returning ENOSYS if settimeofday or stime fails; just let
55911         them return whatever errno they want to return.
55912         * lib/utimens.c: Include unistd.h, for dup2.
55913         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
55914         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
55915
55916 2005-10-02  Jim Meyering  <jim@meyering.net>
55917
55918         Sync from coreutils.
55919         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
55920         from glibc-2.2.5 that fails for read-only files.
55921
55922 2005-10-02  Jim Meyering  <jim@meyering.net>
55923
55924         Sync from coreutils.
55925         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
55926         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
55927         `#if HAVE_CONFIG_H'.
55928         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
55929         Remove AT_FDCWD test.
55930         Do not consume the fd unless successful.
55931         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
55932         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
55933         block, so that we don't even try to compile it if settimeofday is
55934         available.  This works around a compilation failure on OSF1 V5.1,
55935         due to stime requiring a `long int*' while tv_sec is `int'.
55936
55937 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
55938
55939         Sync from coreutils.
55940         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
55941         against `yes', rather than just testing for nonempty.
55942
55943 2005-10-01  Simon Josefsson  <jas@extundo.com>
55944
55945         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
55946         and Darwin.
55947
55948         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
55949         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
55950         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
55951         freeaddrinfo and gai_strerror are declared by the POSIX headers.
55952         Check if struct addrinfo is declared.
55953
55954 2005-10-01  Simon Josefsson  <jas@extundo.com>
55955
55956         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
55957         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
55958         AI_* and EAI_* definitions.  Protect function declarations.
55959
55960 2005-10-01  Jim Meyering  <jim@meyering.net>
55961
55962         Sync from coreutils.
55963
55964         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
55965         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
55966         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
55967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
55968         in the inet and nsl libraries.  Required on Solaris 5.7.
55969
55970 2005-10-01  Jim Meyering  <jim@meyering.net>
55971
55972         Sync from coreutils.
55973         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
55974         in the inet and nsl libraries.  Required on Solaris 5.7.
55975
55976 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
55977
55978         * lib/getdelim.c (getdelim): Remove unused variables.
55979
55980 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
55981
55982         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
55983         so that the code works even with ancient cpp.  Portability problem
55984         with GCC 2.7.2.1 reported by Thomas M.Ott.
55985
55986 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
55987
55988         * modules/regex (Depends-on): Add strcase.
55989
55990         * modules/gethostname (Licence): Change from GPL to LGPL, since
55991         gethostname.c is a trivial implementation of a standard library
55992         function.
55993         * modules/poll (License): Change from GPL to LGPL, since it's
55994         derived from LGPL code.
55995
55996 2005-09-27  Jim Meyering  <jim@meyering.net>
55997
55998         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
55999         HAVE_CONFIG_H.
56000
56001         * lib/intprops.h (signed_type_or_expr__): Define.
56002         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
56003         for unsigned types.
56004
56005 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
56006
56007         * lib/verify.h (verify_expr): Remove, replacing with:
56008         (verify_true): New macro that returns true instead of void.
56009         (verify_type__): Remove.
56010         (verify): Use verify_true rather than verify_type__.
56011
56012 2005-09-26  Bruno Haible  <bruno@clisp.org>
56013
56014         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
56015         is necessary.
56016         (lib_SOURCES): Remove mbchar.c.
56017         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
56018         (Files): Add m4/mbrtowc.m4.
56019         * modules/mbiter: Likewise.
56020         * modules/mbuiter: Likewise.
56021
56022 2005-09-26  Bruno Haible  <bruno@clisp.org>
56023
56024         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
56025         compile mbchar.c if they are not both present.
56026         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
56027         * m4/mbiter.m4 (gl_MBITER): Likewise.
56028         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
56029         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
56030         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
56031
56032 2005-09-25  Jim Meyering  <jim@meyering.net>
56033
56034         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
56035         also uses socklen_t.
56036
56037 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
56038
56039         * lib/utimens.c (ENOSYS): Define if not already defined.
56040         (futimens): Support having a null PATH if the file descriptor
56041         is nonnegative.
56042
56043         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
56044         Remove.
56045         (__attribute): Define to empty unless GCC 3.1 or later.
56046         This works around a core dump on OpenBSD 3.4, which has GCC
56047         2.95.3, which dumps core when given __attribute__(()).  It also
56048         simplifies other tests, since we really don't want to bother with
56049         worrying about which ancient version of GCC supported what.
56050         Original problem reported by Yoann Vandoorselaere, with part of
56051         the fix suggested by Derek Price.
56052
56053 2005-09-24  Jim Meyering  <jim@meyering.net>
56054
56055         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
56056         so we can once again use a positive bitfield width of 1 -- now we
56057         don't have to explain why we were using a bitfield width of 2.
56058
56059 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
56060
56061         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
56062         and similarly for the other external symbols.  Problem reported
56063         by James Gallager.
56064
56065         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
56066         bug reported by Jim Meyering.
56067
56068         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
56069         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
56070         not needed, since socklen is a prerequisite module.
56071
56072 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
56073
56074         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
56075         Problem reported by Eric Blake.
56076         (getaddrinfo): Initialize se so that it's not garbage.
56077         Redo internal storage allocation so that it doesn't make unportable
56078         assumptions about alignment.
56079         Fix a memory leak.
56080
56081         * lib/utimens.c (futimens): Use futimesat if available.
56082         Prefer it to futimes since it doesn't have the futimes bug.
56083
56084         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
56085         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
56086         Instead, declare a function that returns a pointer to an array,
56087         and use verify_type__ to declare the size of the array.
56088         Problem and germ of a solution reported by Bruno Haible.
56089         (verify_type__): Use 2, not 1, for bitfield size, to avoid
56090         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
56091
56092 2005-09-23  Jim Meyering  <jim@meyering.net>
56093
56094         Sync from coreutils.
56095         Correct build failure (socklen_t not defined) on at least
56096         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
56097         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
56098
56099 2005-09-23  Jim Meyering  <jim@meyering.net>
56100
56101         * modules/getaddrinfo (Depends-on): Add socklen.
56102
56103 2005-09-23  Bruno Haible  <bruno@clisp.org>
56104
56105         * tests/test-verify.c: New file.
56106
56107 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56108
56109         Sync from coreutils.
56110
56111         * modules/argmatch (Depends-on): Add verify.
56112         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
56113         unistd-safer.
56114         * modules/save-cwd (Depends-on): Likewise.
56115
56116         * modules/openat (Files): Add lib/openat-die.c.
56117         (Depends-on): Remove error, exitfail.
56118         Add dirname.
56119
56120         * modules/verify: New file.
56121         * MODULES.html.sh (Diagnostics <assert.h>): New section,
56122         with "verify" module.
56123
56124 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56125
56126         Sync from coreutils.
56127
56128         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
56129         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
56130         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
56131         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
56132         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
56133         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
56134         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
56135         Don't bother checking for string.h, stdlib.h, unistd.h.
56136         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
56137         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
56138         module's job.
56139         * m4/jm-macros.m4 (gl_MACROS): Likewise.
56140         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
56141
56142         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
56143         (gl_GETDATE): Use it.
56144
56145         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
56146
56147 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56148
56149         Sync from coreutils.
56150
56151         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
56152         stat-time.h.
56153         * lib/argmatch.h: Include verify.h
56154         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
56155         (ARGMATCH_ASSERT): Remove; unused.
56156         * lib/canonicalize.c: Assume STDC_HEADERS.
56157         * lib/exclude.c: Include "strcase.h".
56158         * lib/regex_internal.h [!defined _LIBC]: Likewise.
56159         * lib/getusershell.c: Include stdio--.h rather than stdio.h
56160         and stdio-safer.h.
56161         (getusershell): Call fopen, not fopen_safer.
56162         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
56163         Do not include unistd-safer.h.
56164         (save_cwd): Don't call fd_safer; no longer needed
56165         now that we include fcntl--.h.
56166
56167         * lib/getdate.y (relative_time): New type.
56168         (RELATIVE_TIME_0): New constant.
56169         (parser_control): Use relative_time instead of doing it ourselves.
56170         (%union): Add new relative_time rel member.
56171         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
56172         Now typeless.
56173         (relunit, relunit_snumber): Now of type rel.
56174         (zone, rel, relunit, get_date): Adjust to above changes.
56175
56176         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
56177         Do not include unistd-safer.h.
56178         (getloadavg): Don't call fd_safer; no longer needed
56179         now that we include fcntl--.h.
56180
56181         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
56182         (make_dir_parents): Treat ENOSYS like EEXIST.
56183
56184         Improve quality of diagnostics on restore_cwd failure.
56185         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
56186         (make_dir_parents): Last arg is now int * (for errno), not bool *.
56187         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
56188         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
56189         each time through the loop.  Do not diagnose restore_cwd failure;
56190         that is the caller's job (and perhaps the caller does not care).
56191
56192         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
56193         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
56194         If the file already exists but is not a directory, don't bother
56195         to try to make its parents.
56196         Close potential file descriptor leak if we can't chdir("/") (!).
56197         Don't always return true if chdir($PWD) fails; return true only
56198         if the requested action was done successfully (except for the
56199         chdir($PWD)).
56200         Don't log final directory unless we actually made it.
56201         Refactor to avoid duplicate code to fix up permissions.
56202         Don't attempt to fix up parent permissions if chdir($PWD) fails.
56203
56204         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
56205         to make it a bit faster and (I hope) clearer.
56206         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
56207         Fix bug in formats like %2N.
56208
56209         * lib/verify.h: New file.
56210
56211 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
56212
56213         Sync from coreutils.
56214         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
56215
56216 2005-09-22  Jim Meyering  <jim@meyering.net>
56217
56218         Sync from coreutils.
56219
56220         * m4/lstat.m4 (gl_FUNC_LSTAT):
56221         Use AC_LIBSOURCES to require lstat.c and lstat.h.
56222         Remove obsolete comment.
56223         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
56224         * m4/xstrtod.m4: Likewise.
56225
56226         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
56227
56228 2005-09-22  Jim Meyering  <jim@meyering.net>
56229
56230         Sync from coreutils.
56231
56232         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
56233
56234         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
56235         the .tm_year member, since otherwise gcc-4.0 would now warn about
56236         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
56237
56238         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
56239         order to avoid an unsuppressible warning from gcc on 64-bit systems.
56240
56241         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
56242         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
56243         when run in a time zone for which daylight savings time is in effect
56244         for the starting date.
56245
56246         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
56247         stop us from restricting permissions of just-created absolute-named
56248         directories.
56249         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
56250         to restore initial working directory.
56251         * lib/mkdir-p.c (make_dir_parents): New parameter:
56252         different_working_dir, to tell caller if/when we change the working
56253         directory and are unable to return to the initial one.
56254         * lib/mkdir-p.h (make_dir_parents): Update prototype.
56255         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
56256         `return false'.  This fixes a bug introduced on 2004-07-30.
56257
56258         * lib/openat.c (fdopendir): Be sure to close the supplied
56259         file descriptor before returning.  This makes our replacement
56260         implementation a little closer to Solaris's, where fdopendir
56261         ties the file descriptor to the returned DIR* pointer.
56262         * lib/openat.c (unlinkat): New function.
56263         * lib/openat.h (unlinkat): Add prototype.
56264         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
56265         (openat_restore_fail): Rename from openat_restore_die.
56266         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
56267
56268         Provide an alternative to exiting immediately upon save_cwd or
56269         restore_cwd failure.  Now, an application can arrange e.g.,
56270         to perform a longjump in that case.
56271         * lib/openat.c: Include dirname.h.
56272         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
56273         (rpl_openat, fdopendir, fstatat): Call openat_save_die
56274         and openat_restore_die rather than calling error directly.
56275         Don't include "error.h" or "exitfail.h"; they're no longer needed.
56276
56277         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
56278         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
56279         define.
56280
56281         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
56282         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
56283                             int utc, int nanoseconds);
56284         Background:
56285         date should not have to allocate a megabyte of virtual memory to
56286         handle a format argument like +%1048575T.  When implemented with
56287         strftime, it must allocate such a buffer, use strftime to fill it
56288         in, print it, then free it.
56289         With fprintftime, it simply prints everything and exits.
56290         With no need for memory allocation, that's one fewer way to fail.
56291         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
56292         optional field width, not before, so we accept %9:z, not %:9z.
56293         (my_strftime): Be sure to use L_('x') for literals.
56294
56295         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
56296         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
56297         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
56298         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
56299         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
56300         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
56301         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
56302         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
56303         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
56304         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
56305         * lib/xgethostname.c, lib/xreadlink.c:
56306         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
56307
56308         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
56309         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
56310         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
56311         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
56312         and don't include <sys/file.h>).
56313
56314 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
56315
56316         Sync from coreutils.
56317
56318         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
56319         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
56320         [!LDAV_DONE]: Avoid unused variable warning.
56321
56322 2005-09-21  Bruno Haible  <bruno@clisp.org>
56323
56324         * lib/unicodeio.h (unicode_to_mb): New declaration.
56325
56326 2005-09-20  Derek Price  <derek@ximbiot.com>
56327
56328         * lib/getaddrinfo.c: Don't include <netdb.h> included from
56329         getaddrinfo.h.
56330
56331 2005-09-20  Bruno Haible  <bruno@clisp.org>
56332
56333         * gnulib-tool: Remove trailing slashes from the values specified for
56334         --source-base, --m4-base, --tests-base, --aux-dir.
56335         Suggested by Simon Josefsson <jas@extundo.com>.
56336
56337 2005-09-20  Bruno Haible  <bruno@clisp.org>
56338
56339         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
56340         func_modules_to_filelist, func_import, func_create_testdir): Make all
56341         sorting results locale-independent, so that gnulib-cache.m4 doesn't
56342         change when gnulib-tool is invoked in a different locale.
56343
56344 2005-09-19  Simon Josefsson  <jas@extundo.com>
56345
56346         * m4/socklen.m4: Fix typo.
56347
56348 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56349
56350         Use a consistent style for including <config.h>.
56351         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
56352         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
56353         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
56354         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
56355         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
56356         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
56357         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
56358         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
56359         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
56360         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
56361         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
56362         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
56363         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
56364         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
56365         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
56366         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
56367         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
56368         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
56369         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
56370         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
56371         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
56372         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
56373         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
56374         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
56375         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
56376         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
56377         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
56378         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
56379         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
56380         lib/xstrtoumax.c, lib/yesno.c:
56381         Standardize inclusion of config.h.
56382         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
56383         lib/inttostr.h:  Removed inclusion of config.h from header files.
56384         * lib/inttostr.c:  Adjusted in-tree users.
56385         * lib/timespec.h: Remove superfluous warning to include config.h.
56386         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
56387         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
56388         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
56389         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
56390         config.h with HAVE_CONFIG_H.
56391
56392 2005-09-19  Jim Meyering  <jim@meyering.net>
56393
56394         * modules/pathmax (License): Change to LGPL.
56395
56396 2005-09-19  Derek Price  <derek@ximbiot.com>
56397
56398         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
56399
56400 2005-09-19  Bruno Haible  <bruno@clisp.org>
56401
56402         * gnulib-tool (import): Provide default for --tests-base.
56403
56404 2005-09-19  Bruno Haible  <bruno@clisp.org>
56405
56406         * doc/quote.texi: New file, extracted from gnulib.texi.
56407         * doc/ctime.texi: New file, extracted from gnulib.texi.
56408         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
56409         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
56410         * doc/gnulib.texi: Include them.
56411
56412 2005-09-18  Bruno Haible  <bruno@clisp.org>
56413
56414         Portability fix.
56415         * gnulib-tool (func_readlink): New function.
56416         (func_ln_if_changed): Use it.
56417
56418 2005-09-18  Bruno Haible  <bruno@clisp.org>
56419
56420         * gnulib-tool: Support --with-tests also with --import.
56421         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
56422         (func_import): Use variables $testsbase and $inctests. Emit a
56423         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
56424         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
56425         SUBDIRS += $testsdir.
56426         (func_create_testdir): Update.
56427
56428 2005-09-18  Bruno Haible  <bruno@clisp.org>
56429
56430         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
56431         instead of $dry_run.
56432         (func_cp_if_changed, func_mv_if_changed): Remove functions.
56433         (func_ln_if_changed): Don't handle dry-run here.
56434         (func_import): In dry-run mode, detect more precisely which actions
56435         would be performed, and don't use "...ing" verbs.
56436
56437 2005-09-18  Bruno Haible  <bruno@clisp.org>
56438
56439         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
56440         (func_import): Use join on two temporary files instead of three nested
56441         loops, in order to determine which files are new or old.
56442
56443 2005-09-18  Bruno Haible  <bruno@clisp.org>
56444
56445         * gnulib-tool (func_import): Comment out code that spits out the
56446         new files with --dry-run.
56447
56448 2005-09-18  Bruno Haible  <bruno@clisp.org>
56449
56450         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
56451
56452 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56453
56454         * lib/stat-time.h: New file.
56455         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
56456         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
56457         in a different way.
56458         (timespec_cmp): New function.
56459         * lib/utimecmp.c: Include stat-time.h.
56460         (SYSCALL_RESOLUTION): Depend on whether various struct stat
56461         members exist, not on the obsolescent ST_MTIM_NSEC.
56462         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
56463
56464 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56465
56466         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
56467
56468 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
56469
56470         * MODULES.html.sh (File system functions): Add stat-time.
56471         * modules/stat-time: New file.
56472         * modules/timespec (Files): Remove m4/st_mtim.m4; this
56473         is now done in a different way, by the stat-time module.
56474         * modules/utimecmp (Depends-on): Add stat-time.
56475
56476 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
56477
56478         * m4/st_mtim.m4: Remove.  Superseded by...
56479         * m4/stat-time.m4: New file.
56480         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
56481         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
56482
56483 2005-09-15  Derek Price  <derek@ximbiot.com>
56484
56485         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
56486
56487 2005-09-15  Derek Price  <derek@ximbiot.com>
56488
56489         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
56490         * lib/regex_internal.c: Ditto, using this...
56491         (__GNUC_PREREQ): ...new macro.
56492         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
56493         using...
56494         (__GNUC_PREREQ): ...this new macro.
56495
56496         * lib/strstr.h: Include string.h. Define strstr as a macro here.
56497
56498 2005-09-15  Derek Price  <derek@ximbiot.com>
56499             Paul Eggert  <eggert@cs.ucla.edu>
56500
56501         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
56502         changes, consolidating in...
56503         * lib/regex_internal.h: ...this file.
56504
56505 2005-09-13  Jim Meyering  <jim@meyering.net>
56506
56507         * lib/canon-host.c: Filter through gnu indent and reword comments
56508         slightly.
56509         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
56510
56511 2005-09-13  Derek Price  <derek@ximbiot.com>
56512
56513         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
56514         failure.
56515         Reported by Jim Meyering  <jim@meyering.net>.
56516
56517 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56518
56519         * lib/base64.c: Typo.
56520         (base64_encode): Put b64str in initialized data section.
56521
56522 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
56523
56524         Merge glibc and coreutils changes into gnulib, plus a few
56525         extra fixes.
56526         * lib/md5.c: Use #error rather than a string.
56527         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
56528         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
56529         (__attribute__): Define to empty for non recent-GCC.
56530         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
56531         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
56532         Renamed from their non-__ counterparts, with new macros replacing
56533         them if not _LIBC.  Add __THROW attribute.
56534         (rol): Remove.
56535         (struct md5_ctx): Align buffer if using GCC.
56536         * lib/sha1.h (struct sha1_ctx): Likewise.
56537         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
56538         The old name was backwards.
56539         (NOTSWAP): Remove; not used.
56540         (rol): New macro, moved here from md5.h.
56541         (sha1_process_block): Remove a FIXME that doesn't make sense.
56542
56543 2005-09-12  Derek Price  <derek@ximbiot.com>
56544
56545         Return usable errors from canon-host.
56546         * lib/canon-host.h: New file.
56547         * lib/canon-host.c (canon_host): Wrap...
56548         (canon_host_r): ...this new function, which now relies exclusively on
56549         getaddrinfo.
56550         (ch_strerror): New function.
56551         (last_cherror): New global.
56552         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
56553         interface.
56554         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
56555         void *.
56556         (freeaddrinfo): Free ai->ai_canonname when set.
56557
56558 2005-09-12  Derek Price  <derek@ximbiot.com>
56559
56560         Make canon-host require getaddrinfo.
56561         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
56562         AC_LIBSOURCE canon-host.h.  Call...
56563         (gl_PREREQ_CANON_HOST): ...this new function, which requires
56564         gl_GETADDRINFO.
56565         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
56566
56567 2005-09-12  Derek Price  <derek@ximbiot.com>
56568
56569         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
56570         LGPL.
56571         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
56572
56573 2005-09-12  Derek Price  <derek@ximbiot.com>
56574
56575         * lib/gai_strerror.c: Include config.h when available.  Include
56576         getaddrinfo.h before other headers to test interface.
56577         Reported by Larry Jones <lawrence.jones@ugs.com>.
56578
56579 2005-09-12  Derek Price  <derek@ximbiot.com>
56580             Paul Eggert  <eggert@cs.ucla.edu>
56581
56582         * modules/glob (Files): Add glob-libc.h.
56583
56584 2005-09-12  Derek Price  <derek@ximbiot.com>
56585             Paul Eggert  <eggert@cs.ucla.edu>
56586
56587         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
56588         glob_.h, glob-libc.h.
56589         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
56590
56591 2005-09-12  Derek Price  <derek@ximbiot.com>
56592             Paul Eggert  <eggert@cs.ucla.edu>
56593
56594         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
56595         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
56596         protecting things that should be done only in gnulib contexts.
56597         * lib/glob_.h: New file, containing only the glob things needed for
56598         gnulib.
56599         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
56600         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
56601         (glob, globfree, glob_pattern_p): Now defined simply in terms of
56602         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
56603         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
56604         and to respect the namespace rules better.
56605
56606 2005-09-08  Simon Josefsson  <jas@extundo.com>
56607
56608         * modules/socklen: New file.
56609
56610 2005-09-08  Simon Josefsson  <jas@extundo.com>
56611
56612         * m4/socklen.m4: New file.
56613
56614 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56615
56616         * modules/utimens (Files): Add m4/utimbuf.m4, since
56617         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
56618         Reported by Sergey Poznyakoff.
56619
56620 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56621
56622         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
56623         definitions, since that's the preferred style in glibc.
56624         Fix a minor spacing issue, and update copyright notice to match
56625         glibc's.
56626
56627 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
56628
56629         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
56630
56631 2005-09-06  Simon Josefsson  <jas@extundo.com>
56632
56633         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
56634         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
56635
56636 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56637
56638         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
56639         warning.
56640
56641 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
56642
56643         * config/srclist.txt: Add glibc bug 1302.
56644
56645 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
56646
56647         Change bitset word type from unsigned int to unsigned long int,
56648         as this has better performance on typical 64-bit hosts.
56649         Port bitset code to hosts with unusual word sizes.
56650         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
56651         (build_collating_symbol):
56652         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
56653         argument is a bitset.  This is merely a style issue, but it makes
56654         it clearer that an entire array is expected.
56655         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
56656         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
56657         Port to the case where bitset_word is not the same as unsigned int.
56658         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56659         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
56660         Likewise.
56661         * lib/regexec.c (check_dst_limits_calc_pos_1,
56662         check_subexp_matching_top):
56663         (build_trtable, group_nodes_into_DFAstates):
56664         Likewise.
56665         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
56666         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
56667         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
56668         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
56669         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
56670         * lib/regcomp.c (optimize_subexps, lower_subexp):
56671         Work even if bitset_word has holes in its bitwise representation.
56672         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
56673         * lib/regexec.c (check_dst_limits_calc_pos_1,
56674         check_subexp_matching_top):
56675         Likewise.
56676         * lib/regex_internal.c (re_string_reconstruct):
56677         Don't assume UCHAR_MAX == 255.
56678         * lib/regex_internal.h (bitset_set_all): Likewise.
56679         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
56680         All uses changed.
56681         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
56682         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
56683         All uses changed.
56684         (BITSET_WORD_MAX): New macro.
56685         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
56686         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
56687         (bitset_empty, bitset_copy):
56688         Prefer sizeof (bitset) to multiplying it out ourselves.
56689         (bitset_not_merge): Remove; unused.
56690         (bitset_contain): Return bool, not unsigned int with one bit on.
56691         All callers changed.
56692         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
56693         alignment than re_node_set; do this by defining a new internal
56694         type struct dests_alloc and using it to allocate memory.
56695
56696 2005-09-05  Bruno Haible  <bruno@clisp.org>
56697
56698         * gnulib-tool (func_import): Fix comparison in handling of symbolic
56699         links.
56700
56701 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
56702
56703         * modules/size_max (Makefile.am): Add size_max.h
56704
56705 2005-09-04  Derek Price  <derek@ximbiot.com>
56706
56707         * gnulib-tool (func_import): Fix reversed $symbolic logic.
56708
56709 2005-09-03  Simon Josefsson  <jas@extundo.com>
56710
56711         * gnulib-tool: Fix typo.
56712
56713 2005-09-03  Simon Josefsson  <jas@extundo.com>
56714
56715         * config/srclist.txt: Add glibc bug 1293.
56716
56717 2005-09-03  Derek Price  <derek@ximbiot.com>
56718
56719         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
56720         From Larry Jones <lawrence.jones@ugs.com>.
56721
56722 2005-09-02  Simon Josefsson  <jas@extundo.com>
56723
56724         * modules/socklen: New file.
56725
56726 2005-09-02  Simon Josefsson  <jas@extundo.com>
56727
56728         * modules/havelib: New module.
56729
56730         * modules/gettext, modules/iconv, modules/lock, modules/readline:
56731         Use havelib.
56732
56733 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56734
56735         Check for arithmetic overflow when calculating sizes, to prevent
56736         some buffer-overflow issues.  These patches are conservative, in the
56737         sense that when I couldn't determine whether an overflow was possible,
56738         I inserted a run-time check.
56739         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
56740         macros.
56741         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
56742         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
56743         (re_xnrealloc, re_x2nrealloc): New inline functions.
56744         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
56745         parse_bracket_exp):
56746         (build_equiv_class, build_charclass): Check for arithmetic overflow
56747         in size expression calculations.
56748         * lib/regex_internal.c (re_string_realloc_buffers):
56749         (build_wcs_upper_buffer, re_node_set_add_intersect):
56750         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
56751         (re_dfa_add_node, register_state): Likewise.
56752         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
56753         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
56754         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
56755         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
56756
56757 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56758
56759         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
56760         m4/ulonglong.m4.  Problem reported by Martin Lambers.
56761
56762 2005-09-02  Bruno Haible  <bruno@clisp.org>
56763
56764         Support for lib vs. lib64 distinction on biarch platforms.
56765         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
56766         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
56767         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
56768
56769 2005-09-02  Bruno Haible  <bruno@clisp.org>
56770
56771         * gnulib-tool (import): In the other first-use case, provide defaults
56772         as well.
56773
56774 2005-09-02  Bruno Haible  <bruno@clisp.org>
56775
56776         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
56777         patches not yet found in the latest gettext release.
56778
56779 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56780
56781         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
56782         to avoid a collision with bits/local_lim.h in glibc.
56783         All uses changed.  Problem reported by Dmitry V. Levin in
56784         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
56785
56786         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
56787         bugs in int versus size_t comparisons.
56788         (re_string_context_at): Fix bug where the code assumed that
56789         Idx is signed.
56790
56791         Use bool where appropriate.
56792         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
56793         All callers changed.
56794         (calc_eclosure_iter): Likewise, for ROOT arg.
56795         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
56796         (build_charclass_op): Likewise, for NON_MATCH arg.
56797         * lib/regex_internal.c (re_string_allocate, re_string_construct):
56798         (re_string_construct_common): Likewise, for ICASE arg.
56799         * lib/regexec.c (re_search_2_stub, re_search_stub):
56800         Likewise, for RET_LEN arg.
56801         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
56802         (set_regs): Likewise, for FL_BACKTRACK arg.
56803         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
56804         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
56805         (calc_eclosure_iter, parse_bracket_exp):
56806         Use bool for internal variables that are booleans.
56807         * lib/regexec.c (re_search_internal, check_matching,
56808         proceed_next_node):
56809         (set_regs, build_sifted_states, sift_states_bkref):
56810         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
56811         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56812         (find_collation_sequence_value):
56813         Likewise.
56814         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
56815         (re_node_set_compare):
56816         Return bool, not int. All callers changed.
56817         * lib/regexec.c (check_halt_node_context, check_dst_limits):
56818         (build_trtable, check_node_accept): Likewise.
56819         * lib/regex_internal.h: Include stdbool.h.
56820
56821         Fix bugs uncovered when converting to bool.
56822         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
56823         failure instead of charging ahead blindly.
56824         * lib/regex_internal.c (register_state): Likewise.
56825         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
56826         for freeing internal storage.
56827         (group_nodes_into_DFA_states): Use unsigned int, not int, for
56828         bitset pieces used as boolean, to avoid undefined behavior
56829         on hosts that do int overflow checking.
56830
56831 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56832
56833         * config/srclist.txt: Add glibc bugs 1285-1287.
56834
56835 2005-09-01  Jim Meyering  <jim@meyering.net>
56836
56837         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
56838         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
56839         Require gl_STAT_MACROS, too.
56840
56841 2005-09-01  Bruno Haible  <bruno@clisp.org>
56842
56843         * gnulib-tool (import): In the first-use case, provide defaults.
56844
56845 2005-09-01  Bruno Haible  <bruno@clisp.org>
56846
56847         * gnulib-tool (func_import): Remove the .tmp files.
56848
56849 2005-09-01  Bruno Haible  <bruno@clisp.org>
56850
56851         * gnulib-tool (func_import): Fix handling of symbolic links.
56852
56853 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56854
56855         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
56856         old glibc regex code mishandles strings longer than 2**31 bytes.
56857         This patch fixes this when the regex code is used in gnulib
56858         (i.e., outside glibc).
56859
56860         This patch should not affect the use of the regex code inside
56861         glibc.  No doubt this problem also needs to be handled for glibc
56862         as well, but the result will be an incompatible change to the
56863         glibc ABI, and the old ABI will have to be supported too.  That
56864         can be the the subject for another patch.
56865
56866         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
56867         governing whether the rest of this patch is active.  By default,
56868         the macro is disabled and the patch has no effect.
56869         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
56870         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
56871         (struct re_pattern_buffer, re_search, re_search_2, re_match):
56872         (re_match_2, re_set_registers): Use the new types.
56873         * lib/regex_internal.h (Idx, re_hashval_t): New types.
56874         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
56875         New macros.
56876         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
56877         (re_string_context_at, bin_tree_t, re_dfastate_t):
56878         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
56879         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
56880         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
56881         (re_string_char_size_at, re_string_wchar_at):
56882         (re_string_elem_size_at):
56883         Use the new types and macros to port to 64-bit hosts.
56884         Use unsigned types for internal values, so that the code
56885         mostly works even for arrays larger than SSIZE_MAX.
56886         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
56887         (search_duplicated_node, calc_eclosure_iter, fetch_number):
56888         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
56889         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
56890         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
56891         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
56892         (calc_inveclosure, parse_dup_op, build_range_exp):
56893         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
56894         (fetch_number, create_token_tree, mark_opt_subexp):
56895         Likewise.
56896         * lib/regex_internal.c (re_string_construct_common,
56897         create_ci_newstate):
56898         (create_cd_newstate, re_string_allocate, re_string_construct):
56899         (re_string_realloc_buffers, build_wcs_upper_buffer):
56900         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56901         (re_string_reconstruct, re_string_peek_byte_case):
56902         (re_string_fetch_byte_case, re_string_context_at):
56903         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56904         (re_node_set_init_copy, re_node_set_add_intersect):
56905         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56906         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56907         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56908         (re_acquire_state, re_acquire_state_context, register_state):
56909         Likewise.
56910         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
56911         search_cur_bkref_entry):
56912         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
56913         (re_search_internal, re_search_2_stub, re_search_stub)
56914         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
56915         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
56916         (update_cur_sifted_state, check_dst_limits):
56917         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
56918         (check_subexp_limits, sift_states_bkref, merge_state_array):
56919         (check_subexp_matching_top, get_subexp, get_subexp_sub):
56920         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
56921         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56922         (expand_bkref_cache, check_node_accept_bytes):
56923         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
56924         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
56925         (acquire_init_state_context, check_halt_node_context):
56926         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
56927         (sift_states_backward, clean_state_log_if_needed):
56928         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
56929         (find_recover_state, transit_state_sb, transit_state_mb):
56930         (transit_state_bkref, build_trtable, match_ctx_clean):
56931         Likewise.
56932         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
56933         to work around an assumption that REG_MISSING is negative.
56934
56935         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
56936         (seek_collating_symbol_entry) [defined _LIBC]:
56937         (lookup_collation_sequence_value) [defined _LIBC]:
56938         (build_range_exp, build_collating_symbol) [defined _LIBC]:
56939         Use prototypes rather than old-style function definitions.
56940         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
56941         (transit_state_sb) [0]:
56942         (find_collation_sequence_value) [defined _LIBC]: Likewise.
56943
56944         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
56945         rm_eo.
56946
56947         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
56948         (optimize_subexps, lower_subexp):
56949         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
56950         since the signed shift might overflow.  Use 1u<<31 instead.
56951         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56952         Likewise.
56953         * lib/regexec.c (check_dst_limits_calc_pos_1,
56954         check_subexp_matching_top): Likewise.
56955
56956         * lib/regcomp.c (optimize_subexps, lower_subexp):
56957         Use CHAR_BIT rather than 8, for clarity.
56958         * lib/regexec.c (check_dst_limits_calc_pos_1):
56959         (check_subexp_matching_top): Likewise.
56960         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
56961         have to worry about portability issues when shifting it left.
56962         Remove no-longer-needed test for table_size > 0.
56963         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
56964         in a word, as the resulting behavior is undefined.
56965         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
56966         in one case, a <= should have been an <, and in another case the
56967         whole test was missing.
56968         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
56969         the standard name CHAR_BIT.
56970         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
56971         this is not true on one's complement and signed-magnitude hosts.
56972
56973         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
56974         next_last_offset.
56975         (struct re_dfa_t): Remove unused member states_alloc.
56976         * lib/regcomp.c (init_dfa): Don't initialize unused members.
56977
56978 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56979
56980         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
56981         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
56982         and large-file glibc and in 32-bit large-file Solaris.
56983
56984 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56985
56986         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
56987         lengths fit in regoff_t; this isn't true if regoff_t is the same
56988         width as size_t.
56989         * lib/regex.c (re_search_internal): 5th arg is LAST_START
56990         (= START + RANGE) instead of RANGE.  This avoids overflow
56991         problems when regoff_t is the same width as size_t.
56992         All callers changed.
56993         (re_search_2_stub): Check for overflow when adding the
56994         sizes of the two strings.
56995         (re_search_stub): Check for overflow when adding START
56996         to RANGE; if it occurs, substitute the extreme value.
56997
56998 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56999
57000         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
57001
57002 2005-08-31  Jim Meyering  <jim@meyering.net>
57003
57004         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
57005         a pointer-to-const.
57006         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
57007         (register_state): Likewise.
57008         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
57009         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
57010         (group_nodes_into_DFAstates): Likewise.
57011
57012 2005-08-31  Jim Meyering  <jim@meyering.net>
57013
57014         * check-module: Add a FIXME comment.
57015
57016 2005-08-31  Eric Blake  <ebb9@byu.net>
57017
57018         * modules/unistd-safer (Files): Add unistd--.h.
57019         * modules/stdio-safer (Files): Add stdio--.h.
57020
57021 2005-08-31  Derek Price  <derek@ximbiot.com>
57022
57023         * lib/getdelim.c (getdelim): Return EOF on EOF.
57024         Reported by Larry Jones <lawrence.jones@ugs.com>.
57025
57026 2005-08-31  Bruno Haible  <bruno@clisp.org>
57027
57028         Avoid unnecessary diffs in the generated lib/Makefile.am.
57029         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
57030         the generated files.
57031         (func_import): Don't set cmd.
57032
57033 2005-08-31  Bruno Haible  <bruno@clisp.org>
57034
57035         * lib/strstr.c: Include <stddef.h>, for NULL.
57036         * lib/strcasestr.c: Likewise.
57037         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57038
57039 2005-08-31  Bruno Haible  <bruno@clisp.org>
57040
57041         * gnulib-tool: New option --macro-prefix.
57042         (func_import): Use macro_prefix.
57043         (import): Handle option --macro-prefix.
57044
57045 2005-08-31  Bruno Haible  <bruno@clisp.org>
57046
57047         * gnulib-tool (import): Rename most ac_* variables to cached_*.
57048         Also use new variables cached_lgpl, cached_libtool.
57049
57050 2005-08-31  Bruno Haible  <bruno@clisp.org>
57051
57052         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
57053         always instantiating them.
57054
57055 2005-08-31  Bruno Haible  <bruno@clisp.org>
57056
57057         * gnulib-tool (func_import): Read the previous cached settings
57058         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
57059         earlier added by gnulib but are now dropped. Warn when a gnulib file
57060         overwrites a non-gnulib file.
57061
57062 2005-08-31  Bruno Haible  <bruno@clisp.org>
57063
57064         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
57065         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
57066         projects that don't keep autogenerated files in CVS. Put into
57067         actioncmd only the specified modules, not the transitive closure.
57068
57069 2005-08-31  Bruno Haible  <bruno@clisp.org>
57070
57071         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
57072         Create directories that shall be filled.
57073         (import): Don't look for gl_* macros in configure.ac. Recurse across
57074         all directories containing a gnulib-cache.m4 files, if meaningful.
57075
57076 2005-08-31  Bruno Haible  <bruno@clisp.org>
57077
57078         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
57079         (import): Set seen_libtool when we see gl_LIBTOOL.
57080
57081 2005-08-31  Bruno Haible  <bruno@clisp.org>
57082
57083         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
57084         declaration macro definitions from generated gnulib.m4.
57085
57086 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
57087
57088         * lib/iconvme.h: Add prototype for iconv_alloc.
57089
57090 2005-08-29  Simon Josefsson  <jas@extundo.com>
57091
57092         * lib/iconvme.c: Fix errno.
57093
57094 2005-08-29  Bruno Haible  <bruno@clisp.org>
57095
57096         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
57097         that it works when the directory contains spaces.
57098
57099 2005-08-29  Bruno Haible  <bruno@clisp.org>
57100
57101         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
57102
57103 2005-08-29  Bruno Haible  <bruno@clisp.org>
57104
57105         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
57106         Emit more advice.
57107
57108 2005-08-29  Bruno Haible  <bruno@clisp.org>
57109         and Stepan Kasal  <kasal@ucw.cz>
57110
57111         * check-module: If more parameters are given, check each of them
57112         separately; add more exceptions, as noted by Jim Meyering.
57113         (check_module): New procedure.
57114         (%exempt_header): Now contains all exceptions.
57115
57116 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
57117
57118         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
57119
57120 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
57121
57122         * lib/iconvme.c: Split iconv_string into iconv_alloc.
57123
57124 2005-08-28  Bruno Haible  <bruno@clisp.org>
57125
57126         * m4/gnulib-tool.m4: New file.
57127
57128 2005-08-27  Jim Meyering  <jim@meyering.net>
57129
57130         * modules/unistd-safer (Files): Add pipe-safer.c.
57131         * modules/fcntl-safer (Files): Add creat-safer.c.
57132
57133 2005-08-27  Jim Meyering  <jim@meyering.net>
57134
57135         * m4/stdlib-safer.m4: New file.  From coreutils.
57136         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
57137         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
57138         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
57139         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
57140         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
57141
57142 2005-08-27  Jim Meyering  <jim@meyering.net>
57143
57144         * lib/fopen-safer.c: Merge minor changes from coreutils.
57145         * lib/dup-safer.c: Likewise.
57146         * lib/fd-safer.c: Likewise.
57147
57148         Merge from coreutils.
57149         * lib/stdio--.h: New file.
57150         * lib/stdlib--.h: New file.
57151         * lib/mkstemp-safer.c: New file.
57152
57153         GNU tar needs these.
57154         * lib/pipe-safer.c: New file.
57155         * lib/creat-safer.c: New file.
57156         * lib/fcntl--.h (creat): Define to creat_safer.
57157         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
57158         * lib/unistd--.h (pipe): Define to pipe_safer.
57159         * lib/unistd-safer.h: Declare pipe_safer.
57160
57161 2005-08-26  Simon Josefsson  <jas@extundo.com>
57162
57163         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
57164         Haible <bruno@clisp.org>.
57165
57166 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
57167
57168         * lib/regex_internal.h: Remove all references to
57169         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
57170         or better.
57171         (bitset_not, bitset_merge, bitset_not_merge):
57172         (bitset_mask, re_string_allocate, re_string_construct):
57173         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
57174         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
57175         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
57176         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
57177         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57178         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57179         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
57180         (re_acquire_state_context):
57181         Remove unnecessary forward decls.
57182         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
57183         Put __attribute at function definition,
57184         now that the function decl has been removed.
57185         * lib/regex_internal.c (re_string_peek_byte_case):
57186         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
57187         Likewise.
57188
57189 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
57190
57191         * m4/regex.m4: Add AC_PREREQ(2.50).
57192         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
57193
57194 2005-08-25  Simon Josefsson  <jas@extundo.com>
57195
57196         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
57197         __fsetlocking.
57198
57199 2005-08-25  Simon Josefsson  <jas@extundo.com>
57200
57201         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
57202         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
57203         GLIBC specific code.
57204
57205 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57206
57207         Make regex safe for g++.  This fixes one real bug (an "err"
57208         that should have been "*err").  g++ problem reported by
57209         Sam Steingold.
57210         * lib/regex_internal.h (re_calloc): New macro, consistent with
57211         re_malloc etc.  All callers of calloc changed to use re_calloc.
57212         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
57213         not int.  All callers changed.
57214         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
57215         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
57216         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
57217         (find_recover_state): Change "err" to "*err"; this fixes what
57218         appears to be a real bug.
57219         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
57220         versus int.
57221
57222 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57223
57224         * modules/regex (Depends-on): Add malloc, since the code
57225         assumes that !malloc(0) means failure.
57226
57227 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57228
57229         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
57230
57231         alloca modernization/simplification for regex.
57232         * lib/regex.c: Remove portability cruft for alloca.  This no longer
57233         needs to be at the start of the file, and can be moved into
57234         regex_internal.h and simplified.
57235         * lib/regex_internal.h: Include <alloca.h>.
57236         (__libc_use_alloca) [!defined _LIBC]: New macro.
57237         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
57238         now works outside glibc.
57239
57240 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
57241
57242         * config/srclist.txt: Add glibc bugs 1241, 1245.
57243
57244 2005-08-25  Jim Meyering  <jim@meyering.net>
57245
57246         * lib/open-safer.c: Include <config.h>.
57247         Otherwise, we'd lose LARGEFILE support in any file using
57248         e.g. "fcntl--.h"
57249
57250 2005-08-25  Bruno Haible  <bruno@clisp.org>
57251
57252         * m4/minmax.m4: Require autoconf 2.52.
57253         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
57254         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
57255         alternatives of translit over the alphabet.
57256         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
57257
57258 2005-08-24  Simon Josefsson  <jas@extundo.com>
57259
57260         * tests/test-getpass.c: New file.
57261
57262 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57263
57264         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
57265         for GNU regex features.
57266
57267 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57268
57269         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
57270         * lib/regex.h (regerror): Likewise.
57271
57272         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
57273         requires this.  (The code never needed it.)
57274
57275         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
57276         All uses of recently-renamed identifiers changed to use the new,
57277         POSIX-compliant names.  The code will build and run just fine
57278         without these changes, but it's better to eat our own dog food
57279         and use the standard-conforming names.
57280
57281         * lib/regex.h: Fix a multitude of POSIX name space violations.
57282         These changes have an effect only for programs that define
57283         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
57284         do not change anything for programs compiled in the normal way.
57285         Also, there is no effect on the ABI.
57286
57287         (_REGEX_SOURCE): New macro.
57288         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
57289         defined and _GNU_SOURCE is not; this fixes a name space violation.
57290
57291         Rename the following macros to obey POSIX requirements.
57292         The old names are still visible as macros if _REGEX_SOURCE is defined.
57293         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
57294         RE_BACKSLASH_ESCAPE_IN_LISTS.
57295         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
57296         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
57297         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
57298         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
57299         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
57300         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
57301         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
57302         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
57303         (REG_INTERVALS): renamed from RE_INTERVALS.
57304         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
57305         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
57306         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
57307         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
57308         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
57309         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
57310         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
57311         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
57312         RE_UNMATCHED_RIGHT_PAREN_ORD.
57313         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
57314         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
57315         (REG_DEBUG): renamed from RE_DEBUG.
57316         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
57317         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
57318         unusual, since we can't clash with the POSIX REG_ICASE.
57319         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
57320         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
57321         (REG_NO_SUB): renamed from RE_NO_SUB.
57322         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
57323         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
57324         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
57325         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
57326         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
57327         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
57328         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
57329         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
57330         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
57331         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
57332         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
57333         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
57334         RE_SYNTAX_POSIX_MINIMAL_BASIC.
57335         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
57336         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
57337         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
57338         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
57339         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
57340         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
57341         (REG_FIXED): Renamed from REGS_FIXED.
57342         (REG_NREGS): Renamed from RE_NREGS.
57343
57344         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
57345         of other REG_* macros, since POSIX says the user is allowed to
57346         #undef these macros selectively.
57347
57348         (reg_errcode_t): Update comment stating what other tables need
57349         to be consistent.
57350
57351         Rename the following enum values to obey POSIX requirements.
57352         The old names are still visible as macros.
57353         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
57354         is not defined, since GNU is supposed to be a superset of POSIX as
57355         much as possible, and since we want reg_errcode_t to be a signed
57356         type for implementation consistency.
57357         (_REG_NOERROR): Renamed from REG_NOERROR.
57358         (_REG_NOMATCH): Renamed from REG_NOMATCH.
57359         (_REG_BADPAT): Renamed from REG_BADPAT.
57360         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
57361         (_REG_ECTYPE): Renamed from REG_ECTYPE.
57362         (_REG_EESCAPE): Renamed from REG_EESCAPE.
57363         (_REG_ESUBREG): Renamed from REG_ESUBREG.
57364         (_REG_EBRACK): Renamed from REG_EBRACK.
57365         (_REG_EPAREN): Renamed from REG_EPAREN.
57366         (_REG_EBRACE): Renamed from REG_EBRACE.
57367         (_REG_BADBR): Renamed from REG_BADBR.
57368         (_REG_ERANGE): Renamed from REG_ERANGE.
57369         (_REG_ESPACE): Renamed from REG_ESPACE.
57370         (_REG_BADRPT): Renamed from REG_BADRPT.
57371         (_REG_EEND): Renamed from REG_EEND.
57372         (_REG_ESIZE): Renamed from REG_ESIZE.
57373         (_REG_ERPAREN): Renamed from REG_ERPAREN.
57374         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
57375         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
57376         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
57377         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
57378
57379         (_REG_RE_NAME, _REG_RM_NAME): New macros.
57380         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
57381         changed.  But support the old name if the new one is not defined
57382         and if _REGEX_SOURCE.
57383
57384         Change the following member names in struct re_pattern_buffer.
57385         The old names are still supported if !_REGEX_SOURCE.
57386         The new names are always supported, regardless of _REGEX_SOURCE.
57387         (re_buffer): Renamed from buffer.
57388         (re_allocated): Renamed from allocated.
57389         (re_used): Renamed from used.
57390         (re_syntax): Renamed from syntax.
57391         (re_fastmap): Renamed from fastmap.
57392         (re_translate): Renamed from translate.
57393         (re_can_be_null): Renamed from can_be_null.
57394         (re_regs_allocated): Renamed from regs_allocated.
57395         (re_fastmap_accurate): Renamed from fastmap_accurate.
57396         (re_no_sub): Renamed from no_sub.
57397         (re_not_bol): Renamed from not_bol.
57398         (re_not_eol): Renamed from not_eol.
57399         (re_newline_anchor): Renamed from newline_anchor.
57400
57401         Change the following member names in struct re_registers.
57402         The old names are still supported if !_REGEX_SOURCE.
57403         The new names are always supported, regardless of _REGEX_SOURCE.
57404         (rm_num_regs): Renamed from num_regs.
57405         (rm_start): Renamed from start.
57406         (rm_end): Renamed from end.
57407
57408         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
57409         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
57410         Prepend __ to parameter names.
57411
57412         Undo yesterday's changes.
57413
57414 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
57415
57416         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
57417         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
57418         lib/regex.c.
57419
57420 2005-08-24  Jim Meyering  <jim@meyering.net>
57421
57422         Sync from coreutils.
57423         * m4/fcntl-safer.m4: New file.
57424
57425         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
57426         and object files for this module.
57427
57428 2005-08-24  Jim Meyering  <jim@meyering.net>
57429
57430         Sync from coreutils.
57431         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
57432
57433 2005-08-24  Jim Meyering  <jim@meyering.net>
57434
57435         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
57436         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
57437
57438 2005-08-24  Jim Meyering  <jim@meyering.net>
57439
57440         * modules/fcntl-safer: New module.
57441         * modules/fts (Depends-on): Add fcntl-safer.
57442         * MODULES.html.sh (File descriptor based Input/Output):
57443         Add fcntl-safer.
57444
57445 2005-08-24  Bruno Haible  <bruno@clisp.org>
57446
57447         Support for unit test modules.
57448         * modules/README: Mention tests modules.
57449         * modules/TEMPLATE-TESTS: New file.
57450         * gnulib-tool: New options --extract-tests-module, --with-tests and
57451         --tests-base (unused for the moment).
57452         (testsbase, inctests): New variables.
57453         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
57454         (func_verify_module): Exclude TEMPLATE-TESTS.
57455         (func_verify_nontests_module, func_verify_tests_module): New functions.
57456         (func_get_dependencies): Add implicit dependency for tests modules.
57457         (func_get_tests_module): New function.
57458         (func_modules_transitive_closure): When --with-tests was specified,
57459         include the unit tests as well, unless explicitly avoided.
57460         (func_emit_lib_Makefile_am): Ignore the tests modules here.
57461         (func_emit_tests_Makefile_am): New function.
57462         (func_create_testdir): When --with-tests was specified, emit a
57463         tests/ directory.
57464         * MODULES.html.sh (Future developments): Update.
57465
57466 2005-08-24  Bruno Haible  <bruno@clisp.org>
57467
57468         * modules/tls-tests: New file.
57469         * tests/test-tls.c: New file, from GNU gettext.
57470
57471 2005-08-24  Bruno Haible  <bruno@clisp.org>
57472
57473         * modules/lock-tests: New file.
57474         * tests/test-lock.c: New file, from GNU gettext.
57475
57476 2005-08-24  Bruno Haible  <bruno@clisp.org>
57477
57478         * lib/lock.h: Add multiple inclusion guard.
57479         * lib/tls.h: Add multiple inclusion guard.
57480
57481 2005-08-24  Bruno Haible  <bruno@clisp.org>
57482
57483         * gnulib-tool: Add support for the --aux-dir option to
57484         --create-testdir, --create-megatestdir, --test, --megatest.
57485         (func_create_testdir, func_create_megatestdir): Optionally emit a
57486         AC_CONFIG_AUX_DIR directive.
57487         (create-testdir, create-megatestdir, test, megatest): Provide a
57488         default value for $auxdir.
57489
57490 2005-08-24  Bruno Haible  <bruno@clisp.org>
57491
57492         * gnulib-tool (import): Use compound statement instead of subshell
57493         where possible.
57494
57495 2005-08-24  Bruno Haible  <bruno@clisp.org>
57496
57497         * gnulib-tool (import): Change --aux-dir default to "build-aux".
57498
57499 2005-08-24  Bruno Haible  <bruno@clisp.org>
57500
57501         * gnulib-tool (func_version): Update.
57502
57503 2005-08-24  Bruno Haible  <bruno@clisp.org>
57504
57505         * gnulib-tool (func_import, func_create_testdir,
57506         func_create_megatestdir): Quote all autoconf macro arguments.
57507
57508 2005-08-24  Bruno Haible  <bruno@clisp.org>
57509
57510         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
57511         option --force, because --force causes the aclocal.m4 of each
57512         subdirectory to be newer than the corresponding config.h.in.
57513
57514 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57515
57516         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
57517         All contents moved to gl_REGEX.
57518         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
57519         assume that it does.
57520
57521 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57522
57523         * lib/regex.h (REG_NOSYS)
57524         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
57525         Define, since POSIX requires it as of 2001.
57526         (_REG_ENOSYS)
57527         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
57528         New private symbol, used to keep the enum signed in all cases.
57529         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
57530         Youngman in
57531         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
57532
57533         * lib/regex_internal.c (re_string_skip_chars, register_state):
57534         (calc_state_hash):
57535         Remove forward decls; no longer needed now that we use prototypes.
57536         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
57537         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
57538         (clean_state_log_if_needed): Likewise.
57539
57540 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
57541
57542         * config/srclist.txt: Add glibc bugs 1231-1233.
57543
57544 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57545
57546         Fix problems reported by Sam Steingold in
57547         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
57548         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
57549         assumed that reg_errcode_t is a signed type, which is not
57550         necessarily true if _XOPEN_SOURCE is not defined.
57551         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
57552         since some compilers warn about it otherwise.
57553
57554 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57555
57556         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
57557         (init_word_char, create_initial_state, duplicate_node_closure):
57558         (fetch_token, peek_token_bracket, build_range_exp):
57559         (build_collating_symbol): Remove forward decls; no longer needed
57560         now that we use prototypes.
57561
57562         * lib/regcomp.c:
57563         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
57564         (re_compile_fastmap_iter, regcomp, regerror, regfree):
57565         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
57566         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
57567         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
57568         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
57569         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
57570         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
57571         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
57572         (build_range_exp, build_collating_symbol, parse_bracket_exp):
57573         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
57574         (build_charclass, build_charclass_op, fetch_number, create_tree):
57575         (create_token_tree, mark_opt_subexp, duplicate_tree):
57576         Use prototypes rather than old-style definitions.
57577
57578         * lib/regex_internal.c:
57579         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
57580         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
57581         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
57582         (re_string_reconstruct, re_string_peek_byte_case):
57583         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
57584         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
57585         (re_node_set_init_copy, re_node_set_add_intersect):
57586         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
57587         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
57588         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
57589         (re_acquire_state, re_acquire_state_context, register_state):
57590         (create_ci_newstate, create_cd_newstate, free_state):
57591         Likewise.
57592         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
57593         re_search_2):
57594         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
57595         (re_search_internal, prune_impossible_nodes):
57596         (acquire_init_state_context, check_matching, static):
57597         (check_halt_node_context, check_halt_state_context, proceed_next_node):
57598         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
57599         (update_regs, sift_states_backward, build_sifted_states):
57600         (clean_state_log_if_needed, merge_state_array):
57601         (update_cur_sifted_state, add_epsilon_src_nodes):
57602         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
57603         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
57604         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
57605         (find_recover_state, check_subexp_matching_top, transit_state_mb):
57606         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
57607         (check_arrival, check_arrival_add_next_nodes):
57608         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
57609         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
57610         (check_node_accept_bytes, check_node_accept, extend_buffers):
57611         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
57612         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
57613         (sift_ctx_init):
57614         Likewise.
57615
57616         * lib/regex_internal.h:
57617         (re_string_allocate, re_string_construct, re_string_reconstruct):
57618         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
57619         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
57620         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
57621         (re_string_context_at, re_string_peek_byte_case):
57622         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
57623         is defined, since we now use prototypes always.
57624
57625         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
57626         C89 or better.  All uses removed.
57627
57628 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
57629
57630         * config/srclist.txt: Add glibc bugs 1220-1227.
57631
57632 2005-08-20  Jim Meyering  <jim@meyering.net>
57633
57634         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
57635         of unused local, dfa.
57636
57637 2005-08-20  Bruno Haible  <bruno@clisp.org>
57638
57639         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
57640
57641 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57642
57643         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
57644         (re_node_set_insert_last, re_dfa_add_node):
57645         Rename local variables to avoid GCC shadowing warnings.
57646
57647 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57648
57649         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
57650         [defined lint]: Suppress bogus uninitialized-variable warnings.
57651
57652         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
57653         and let the caller return REG_ESPACE if out of space.  This
57654         removes an uninitialied-variable warning with GCC 4.0.1, and also
57655         avoids taking the address of a local variable.  All callers
57656         changed.
57657
57658 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
57659
57660         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
57661         $LIBCSRC/posix/regexec.c.
57662         Add glibc bug 1217 for regcomp.c.
57663
57664 2005-08-19  Jim Meyering  <jim@meyering.net>
57665
57666         * lib/regexec.c (proceed_next_node): Redo local variables to
57667         avoid GCC shadowing warnings.
57668
57669 2005-08-18  Bruno Haible  <bruno@clisp.org>
57670
57671         * lib/strstr.c (strstr): Fix return value in multibyte case.
57672         * lib/strcasestr.c (strcasestr): Likewise.
57673
57674 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
57675
57676         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
57677
57678 2005-08-17  Jim Meyering  <jim@meyering.net>
57679
57680         Make the %s format (seconds since the epoch) work for a negative
57681         number and when used with a zero-padded field width, e.g. %015s.
57682
57683         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
57684         label so that it precedes the code to set `digits'.  Otherwise,
57685         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
57686         print `00-22'.  Now, it prints `-0022', as it should.
57687
57688 2005-08-17  Bruno Haible  <bruno@clisp.org>
57689
57690         * modules/strstr (Files): Add m4/mbrtowc.m4.
57691         (Depends-on): Add mbuiter.
57692
57693 2005-08-17  Bruno Haible  <bruno@clisp.org>
57694
57695         * modules/strcasestr: New file.
57696         * MODULES.html.sh (String handling, based on ANSI C 89): Add
57697         strcasestr.
57698
57699 2005-08-17  Bruno Haible  <bruno@clisp.org>
57700
57701         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
57702
57703 2005-08-17  Bruno Haible  <bruno@clisp.org>
57704
57705         * modules/mbuiter: New file.
57706         * MODULES.html.sh (Extended multibyte and wide character utilities):
57707         Add mbuiter.
57708
57709 2005-08-17  Bruno Haible  <bruno@clisp.org>
57710
57711         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
57712         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
57713
57714 2005-08-17  Bruno Haible  <bruno@clisp.org>
57715
57716         * m4/strcasestr.m4: New file.
57717
57718 2005-08-17  Bruno Haible  <bruno@clisp.org>
57719
57720         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
57721         * lib/strstr.c: Completely rewritten, with multibyte locale support.
57722
57723 2005-08-17  Bruno Haible  <bruno@clisp.org>
57724
57725         * lib/strcasestr.h: New file.
57726         * lib/strcasestr.c: New file.
57727
57728 2005-08-17  Bruno Haible  <bruno@clisp.org>
57729
57730         * lib/strcasecmp.c: Use mbuiter.h.
57731
57732 2005-08-17  Bruno Haible  <bruno@clisp.org>
57733
57734         * lib/mbuiter.h: New file.
57735
57736 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57737
57738         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
57739         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
57740         and gl_GETOPT are both invoked via different paths (as happens
57741         with GNU tar CVS because it uses both argp and getopt), the former
57742         wins.
57743
57744 2005-08-16  Bruno Haible  <bruno@clisp.org>
57745
57746         * modules/tls: New file.
57747         * MODULES.html.sh (Multithreading): Add tls.
57748
57749 2005-08-16  Bruno Haible  <bruno@clisp.org>
57750
57751         * modules/strnlen1: New file.
57752         * MODULES.html.sh (String handling): Add strnlen1.
57753
57754 2005-08-16  Bruno Haible  <bruno@clisp.org>
57755
57756         * modules/strcase (Files): Add m4/mbrtowc.m4.
57757         (Depends-on): Add strnlen1, mbchar.
57758
57759 2005-08-16  Bruno Haible  <bruno@clisp.org>
57760
57761         * modules/mbiter: New file.
57762         * MODULES.html.sh (Extended multibyte and wide character utilities):
57763         Add mbiter.
57764
57765 2005-08-16  Bruno Haible  <bruno@clisp.org>
57766
57767         * modules/mbfile: New file.
57768         * MODULES.html.sh (Extended multibyte and wide character utilities):
57769         Add mbfile.
57770
57771 2005-08-16  Bruno Haible  <bruno@clisp.org>
57772
57773         * modules/mbchar: New file.
57774         * MODULES.html.sh (Extended multibyte and wide character utilities):
57775         New section.
57776
57777 2005-08-16  Bruno Haible  <bruno@clisp.org>
57778
57779         * m4/tls.m4: New file, from GNU gettext.
57780
57781 2005-08-16  Bruno Haible  <bruno@clisp.org>
57782
57783         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
57784         always.
57785         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
57786
57787 2005-08-16  Bruno Haible  <bruno@clisp.org>
57788
57789         * m4/mbiter.m4: New file.
57790
57791 2005-08-16  Bruno Haible  <bruno@clisp.org>
57792
57793         * m4/mbfile.m4: New file.
57794
57795 2005-08-16  Bruno Haible  <bruno@clisp.org>
57796
57797         * m4/mbchar.m4: New file.
57798
57799 2005-08-16  Bruno Haible  <bruno@clisp.org>
57800
57801         * lib/tls.h: New file, from GNU gettext.
57802         * lib/tls.c: New file, from GNU gettext.
57803
57804 2005-08-16  Bruno Haible  <bruno@clisp.org>
57805
57806         * lib/strnlen1.h: New file.
57807         * lib/strnlen1.c: New file.
57808
57809 2005-08-16  Bruno Haible  <bruno@clisp.org>
57810
57811         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
57812         (mbi_init): Update.
57813         (mbi_avail, mbi_advance): Let the iteration end before the terminating
57814         NUL byte, not after it.
57815
57816 2005-08-16  Bruno Haible  <bruno@clisp.org>
57817
57818         * lib/strcase.h (strcasecmp): Add note in comments.
57819         * lib/strncasecmp.c: Use code from strcasecmp.c.
57820         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
57821         (strcasecmp): Work correctly in multibyte locales.
57822
57823 2005-08-16  Bruno Haible  <bruno@clisp.org>
57824
57825         * lib/mbiter.h: New file.
57826
57827 2005-08-16  Bruno Haible  <bruno@clisp.org>
57828
57829         * lib/mbfile.h: New file.
57830
57831 2005-08-16  Bruno Haible  <bruno@clisp.org>
57832
57833         * lib/mbchar.h: New file.
57834         * lib/mbchar.c: New file.
57835
57836 2005-08-16  Bruno Haible  <bruno@clisp.org>
57837
57838         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
57839         the valid ones. Makes the comparison operations transitive:
57840         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
57841         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
57842
57843 2005-08-15  Simon Josefsson  <jas@extundo.com>
57844
57845         * modules/ssize_t (License): Change to 'unlimited'.
57846
57847         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
57848
57849 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57850
57851         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
57852         Add comments for each pending glibc patch.
57853
57854 2005-08-15  Bruno Haible  <bruno@clisp.org>
57855
57856         * lib/regex.h (__restrict_arr): Don't define to __restrict if
57857         __cplusplus is defined.
57858
57859 2005-08-14  Jim Meyering  <jim@meyering.net>
57860
57861         Sync from coreutils.
57862
57863         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
57864         Use the hash-table-based cycle-detection code not just when
57865         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
57866         Reported by James Youngman in
57867         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
57868         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
57869         FTS_TIGHT_CYCLE_CHECK.
57870         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
57871         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
57872         once again.
57873         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
57874         * lib/fts.c (fd_safer): Remove decl.
57875         Include fcntl--.h rather than unistd-safer.h
57876         (fts_safe_changedir): Don't call fd_safer; no longer needed
57877         now that we include fcntl--.h.
57878
57879 2005-08-12  Simon Josefsson  <jas@extundo.com>
57880
57881         * modules/getndelim2: Use ssize_t module.
57882         * modules/getnline: Likewise.
57883         * modules/safe-read: Likewise.
57884         * modules/xreadlink: Likewise.
57885
57886         * modules/ssize_t: New file.
57887
57888 2005-08-12  Simon Josefsson  <jas@extundo.com>
57889
57890         * m4/readline.m4: Look for termcap, curses or ncurses if required.
57891
57892 2005-08-12  Simon Josefsson  <jas@extundo.com>
57893
57894         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57895         ssize_t.
57896
57897 2005-08-12  Simon Josefsson  <jas@extundo.com>
57898
57899         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
57900         readline, getdelim and check_version.
57901         (Support for systems lacking ISO C 99: Sizes of integer types):
57902         Add size_max.
57903
57904 2005-08-12  Bruno Haible  <bruno@clisp.org>
57905
57906         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
57907
57908 2005-08-11  Simon Josefsson  <jas@extundo.com>
57909
57910         * modules/readline: New file.
57911
57912         * modules/strnlen (Files): Add strnlen.h.
57913
57914 2005-08-11  Simon Josefsson  <jas@extundo.com>
57915
57916         * m4/readline.m4: New file.
57917
57918 2005-08-11  Simon Josefsson  <jas@extundo.com>
57919
57920         * lib/readline.h, readline.c: New file.
57921
57922 2005-08-11  Simon Josefsson  <jas@extundo.com>
57923
57924         * doc/gnulib.texi (Initial import, Finishing touches): Mention
57925         gl_AVOID.
57926
57927 2005-08-11  Bruno Haible  <bruno@clisp.org>
57928
57929         * lib/strnlen.h (strnlen): Change parameter name to match comment.
57930
57931 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
57932
57933         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
57934
57935 2005-08-10  Simon Josefsson  <jas@extundo.com>
57936
57937         * tests/test-iconvme.c: New file.
57938
57939 2005-08-10  Simon Josefsson  <jas@extundo.com>
57940
57941         * m4/strnlen.m4: New file.
57942
57943         * m4/strndup.m4: Don't check for strnlen declaration, done in
57944         strnlen.m4.
57945
57946 2005-08-10  Simon Josefsson  <jas@extundo.com>
57947
57948         * lib/strndup.c: Use strnlen.h.
57949
57950         * lib/strnlen.h: New file.
57951
57952 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57953
57954         * README: Typos.
57955
57956 2005-08-02  Simon Josefsson  <jas@extundo.com>
57957
57958         * modules/readline: New file.
57959
57960 2005-08-02  Simon Josefsson  <jas@extundo.com>
57961
57962         * modules/getdelim: New file.
57963
57964         * modules/getline: Rewrite, don't use getndelim2.
57965
57966 2005-08-02  Simon Josefsson  <jas@extundo.com>
57967
57968         * m4/getline.m4: Separate out getdelim stuff into separate module.
57969
57970         * m4/getdelim.m4: New file.
57971
57972 2005-08-02  Simon Josefsson  <jas@extundo.com>
57973
57974         * lib/getline.h, getline.c: Rewrite.
57975
57976         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
57977
57978 2005-07-31  Bruno Haible  <bruno@clisp.org>
57979
57980         * lib/lock.h (gl_lock_initializer): New macro.
57981         (gl_lock_define_initialized): Use it.
57982         (gl_rwlock_initializer): New macro.
57983         (gl_rwlock_define_initialized): Use it.
57984         (gl_recursive_lock_initializer): New macro.
57985         (gl_recursive_lock_define_initialized): Use it.
57986
57987 2005-07-30  Karl Berry  <karl@gnu.org>
57988
57989         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
57990         Report from Ben Pfaff, regarding getopt.
57991
57992 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
57993
57994         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
57995         normal way.
57996         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
57997         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
57998         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
57999         (gl_GETOPT): Use the new macros.  Most of the implementation
58000         is moved to the new macros.  This is for programs like Emacs
58001         that don't want all the functionality of gl_GETOPT.
58002
58003 2005-07-26  Bruno Haible  <bruno@clisp.org>
58004
58005         * m4/lock.m4: Update from GNU gettext.
58006
58007 2005-07-26  Bruno Haible  <bruno@clisp.org>
58008
58009         * lib/lock.h: Update from GNU gettext.
58010         * lib/lock.c: Update from GNU gettext.
58011
58012 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
58013
58014         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
58015         obsolescent AC_TRY_RUN.  Include the default includes files, for
58016         'exit'.
58017
58018 2005-07-24  Bruno Haible  <bruno@clisp.org>
58019
58020         * modules/visibility: New file.
58021         * MODULES.html.sh (Misc): Add visibility.
58022
58023 2005-07-24  Bruno Haible  <bruno@clisp.org>
58024
58025         * m4/visibility.m4: New file.
58026
58027 2005-07-24  Bruno Haible  <bruno@clisp.org>
58028
58029         * doc/visibility.texi: New file.
58030
58031 2005-07-22  Bruno Haible  <bruno@clisp.org>
58032
58033         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
58034         $(ALLOCA_H), redundant through BUILT_SOURCES.
58035         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
58036         redundant through BUILT_SOURCES.
58037         * modules/byteswap (Makefile.am): Remove explicit dependency on
58038         $(BYTESWAP_H), redundant through BUILT_SOURCES.
58039         * modules/fnmatch (Makefile.am): Remove explicit dependency on
58040         $(FNMATCH_H), redundant through BUILT_SOURCES.
58041         * modules/getopt (Makefile.am): Remove explicit dependency on
58042         $(GETOPT_H), redundant through BUILT_SOURCES.
58043         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
58044         redundant through BUILT_SOURCES.
58045         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
58046         redundant through BUILT_SOURCES.
58047         * modules/stdbool (Makefile.am): Remove explicit dependency on
58048         $(STDBOOL_H), redundant through BUILT_SOURCES.
58049         * modules/stdint (Makefile.am): Remove explicit dependency on
58050         $(STDINT_H), redundant through BUILT_SOURCES.
58051         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
58052         Remove explicit dependency on $(SYSEXITS_H).
58053         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
58054
58055 2005-07-18  Simon Josefsson  <jas@extundo.com>
58056
58057         * lib/check-version.c (check_version): Accept identical versions too.
58058
58059 2005-07-18  Bruno Haible  <bruno@clisp.org>
58060
58061         * modules/lock: New file.
58062         * MODULES.html.sh (Multithreading): New section.
58063
58064 2005-07-18  Bruno Haible  <bruno@clisp.org>
58065
58066         * m4/lock.m4: New file, from GNU gettext.
58067
58068 2005-07-18  Bruno Haible  <bruno@clisp.org>
58069
58070         * lib/lock.h: New file, from GNU gettext.
58071         * lib/lock.c: New file, from GNU gettext.
58072
58073 2005-07-18  Bruno Haible  <bruno@clisp.org>
58074
58075         * lib/lock.h (gl_once_t): New type.
58076         (gl_once_define, gl_once): New macros.
58077         * lib/lock.c (fresh_once): New variable.
58078         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
58079         functions.
58080
58081 2005-07-16  Simon Josefsson  <jas@extundo.com>
58082
58083         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
58084         workaround, suggested by Bruno.
58085
58086 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58087
58088         * modules/xalloc (Depends-on): Add xalloc-die.
58089         * modules/xvasprintf (Depends-on): Add xalloc-die.
58090
58091 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
58092
58093         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
58094         with a minor change.
58095
58096 2005-07-15  Bruno Haible  <bruno@clisp.org>
58097
58098         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
58099         When using lib/poll.c, define poll as rpl_poll.
58100
58101 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
58102
58103         * modules/argp (Depends-on): Remove unlocked-io.
58104
58105 2005-07-14  Derek Price  <derek@ximbiot.com>
58106
58107         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
58108         for glob symlink bug.
58109
58110 2005-07-14  Bruno Haible  <bruno@clisp.org>
58111
58112         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
58113         Instead, test for *_unlocked function declarations directly.
58114
58115 2005-07-11  Simon Josefsson  <jas@extundo.com>
58116
58117         * modules/size_max: New file.
58118
58119         * modules/xsize: Depend on size_max module for size_max.m4.
58120
58121 2005-07-11  Simon Josefsson  <jas@extundo.com>
58122
58123         * lib/size_max.h: New file.
58124
58125 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
58126
58127         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
58128         copyright symbol and the year.
58129         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
58130         (version_etc_va): Use parameterized copyright notice.
58131         Reword to conform to the current GNU coding standards.
58132
58133 2005-07-11  Karl Berry  <karl@gnu.org>
58134
58135         * doc/gnulib.texi (Quoting): new node.
58136         (Initial import): more info, from Patrice.
58137
58138 2005-07-11  Bruno Haible  <bruno@clisp.org>
58139
58140         * gnulib-tool (func_usage): Document option --avoid.
58141         (Command line options): Handle --avoid.
58142         (func_acceptable): New function.
58143         (func_modules_transitive_closure): Use it.
58144
58145 2005-07-11  Bruno Haible  <bruno@clisp.org>
58146
58147         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
58148         Reported by Jim Meyering.
58149
58150 2005-07-10  Bruno Haible  <bruno@clisp.org>
58151
58152         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
58153         Needed when size_t is smaller than 'unsigned int'.
58154         Reported by Paul Eggert.
58155
58156 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58157
58158         * modules/argp (Depends-on): Add unlocked-io
58159
58160 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
58161
58162         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
58163         block of defines.
58164
58165 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
58166
58167         * config/srclist.txt: Comment out regcomp.c, since we have a porting
58168         fix now.
58169
58170 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
58171         and Paul Eggert  <eggert@cs.ucla.edu>
58172
58173         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
58174         in wint_t, not wchar_t.  Remove now-unnecessary cast.
58175
58176 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58177
58178         * modules/regex (Files): Add lib/regex_internal.c,
58179         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
58180         (Depends-on): Add extensions.
58181         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
58182
58183 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58184
58185         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
58186         pathconf.
58187         * m4/same.m4 (gl_SAME): Likewise.
58188         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
58189
58190         * m4/regex.m4: Adjust to new libc regex implementation.
58191         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
58192         all the .c and .h parts of (the new) regex.
58193         Quote the m4 stuff better.
58194         Check for RE_ICASE bug of old gnulib.
58195         Check for REG_STARTEND of recent libc.
58196         Rename local variables from jm_* to gl_*.
58197         Quote operand of "test -f".
58198         Say "recent enough" version of libc, not "version 2".
58199         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
58200         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
58201         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
58202         Remove check for btowc, isascii.
58203         Require AM_LANGINFO_CODESET.
58204
58205 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58206
58207         * lib/regex.c, regex.h: Sync from libc.
58208         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
58209         * lib/regexec.c:
58210         New files, synced from libc, except that regex_internal.h
58211         currently has a small porting fix.
58212
58213 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
58214
58215         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
58216         regex_internal.c, regexec.c.
58217         Add regex_internal.h too, but as a comment, since the libc version
58218         is currently broken in gnulib mode.
58219
58220 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
58221
58222         Support programs like Emacs that use gnulib but not gettext.
58223         * MODULES.html.sh (Internationalization functions): Add gettext-h.
58224         * modules/gettext-h: New file.
58225         * modules/gettext (Files): Remove lib/gettext.h.
58226         (Depends-on): Add gettext-h.
58227         (Makefile.am): Remove lib_SOURCES.
58228         * modules/argmatch, modules/c-stack, modules/closeout:
58229         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
58230         * modules/execute, modules/file-type, modules/getaddrinfo:
58231         * modules/getopt, modules/human, modules/javacomp:
58232         * modules/javaexec, modules/mkdir-p, modules/obstack:
58233         * modules/openat, modules/pagealign_alloc, modules/pipe:
58234         * modules/quotearg, modules/regex, modules/rpmatch:
58235         * modules/unicodeio, modules/userspec, modules/version-etc:
58236         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
58237         * modules/xsetenv:
58238         Depend on gettext-h, not gettext.
58239
58240 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
58241
58242         * gnulib-tool (func_import): Add support for 'public domain' license.
58243         * modules/alloca, modules/atexit, modules/memmove:
58244         Now public domain, not GPL.
58245         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
58246         * modules/realloc, modules/strerror, modules/strtod:
58247         Now LGPL, not GPL.
58248
58249 2005-07-05  Bruno Haible  <bruno@clisp.org>
58250
58251         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
58252         autoconf CVS. Needed for mingw.
58253
58254 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58255
58256         Remove the dependency of the strftime module on the tzset module.
58257         * modules/strftime (Depends-on): Remove dependency on tzset.
58258
58259 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58260
58261         Remove the dependency of the strftime module on the tzset module.
58262         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
58263         gl_FUNC_TZSET_CLOBBER.
58264
58265 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
58266
58267         Remove the dependency of the strftime module on the tzset module.
58268         * lib/strftime.c (my_strftime)
58269         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
58270         Copy the input structure, to work around some of the bug with
58271         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
58272         Solaris releases, you should also use the tzset module, but we won't
58273         require it as a dependency any more since we don't want LGPLed code
58274         to depend on GPLed code.
58275
58276 2005-07-02  Jim Meyering  <jim@meyering.net>
58277
58278         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
58279         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
58280         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
58281         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
58282
58283 2005-07-02  Jim Meyering  <jim@meyering.net>
58284
58285         * lib/backupfile.c (backup_args): Change a `0' to NULL.
58286
58287 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
58288
58289         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
58290         declares only 'struct timespec;' (!).
58291
58292 2005-07-01  Jim Meyering  <jim@meyering.net>
58293
58294         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
58295         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
58296         * lib/save-cwd.c, tempname.c:
58297         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
58298         and don't include <sys/file.h>).
58299
58300 2005-06-29  Jim Meyering  <jim@meyering.net>
58301
58302         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
58303         type name.  Use the variable name instead.
58304         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
58305         Likewise.
58306
58307 2005-06-28  Simon Josefsson  <jas@extundo.com>
58308
58309         * modules/check-version (Files): Add check-version.m4.
58310
58311 2005-06-28  Simon Josefsson  <jas@extundo.com>
58312
58313         * m4/check-version.m4: New file, suggested by Jim Meyering
58314         <jim@meyering.net>.
58315
58316 2005-06-28  Simon Josefsson  <jas@extundo.com>
58317
58318         * lib/check-version.h, lib/check-version.c: New files.
58319
58320 2005-06-28  Simon Josefsson  <jas@extundo.com>
58321
58322         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
58323         collision with global variable.  Better indentation.  Don't
58324         increment buffer pointer beyond buffer end.  Based on comments
58325         from Paul Eggert <eggert@cs.ucla.edu>.
58326
58327         * lib/base64.h: Indent.
58328
58329 2005-06-28  Simon Josefsson  <jas@extundo.com>
58330
58331         * doc/gnulib.texi (Library version handling): New section.
58332
58333 2005-06-28  Jim Meyering  <jim@meyering.net>
58334
58335         * check-module (find_included_lib_files): Hard-code another
58336         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
58337         but modules/fts-lgpl (correctly) does not list those files.
58338
58339         * modules/canonicalize (Files): Add lib/pathmax.h.
58340
58341 2005-06-25  Simon Josefsson  <jas@extundo.com>
58342
58343         * modules/check-version: New file.
58344
58345 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
58346
58347         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
58348         initializer of struct addrinfo, as an indication that we don't
58349         care how many members the structure has.
58350
58351 2005-06-24  Derek Price  <derek@ximbiot.com>
58352         and Bruno Haible  <bruno@clisp.org>
58353
58354         Remove stat module & update lstat.
58355         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
58356         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58357         * m4/stat.m4: Remove this file.
58358
58359 2005-06-24  Derek Price  <derek@ximbiot.com>
58360         and Bruno Haible  <bruno@clisp.org>
58361
58362         Remove stat module & update lstat.
58363         * lib/stat.c: Remove this file...
58364         (slash_aware_lstat): ...moving this content and its support...
58365         * lib/lstat.c (rpl_lstat): ...into here.
58366         * lib/lstat.h: New file.
58367
58368 2005-06-24  Derek Price  <derek@ximbiot.com>
58369         and Bruno Haible  <bruno@clisp.org>
58370
58371         Remove stat module & update lstat.
58372         * config/srclist.txt (libc sources): Remove stat.
58373
58374 2005-06-24  Derek Price  <derek@ximbiot.com>
58375         and Bruno Haible  <bruno@clisp.org>
58376
58377         Remove stat module & update lstat.
58378         * MODULES.html.sh (stat): Remove.
58379         * MODULES.html: Regenerated.
58380         * modules/lstat (Description): Correct function name.
58381         (Files): Add "lstat.h".
58382         (Depends-on): Remove stat, add xalloc, stat-macros.
58383         * modules/stat: Remove this file.
58384         (Include): Add "lstat.h", remove <sys/stat.h>.
58385
58386 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58387
58388         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
58389         (ranged_convert): Don't save conversion in a temporary struct.
58390         This causes a warning with GCC 4.0.0, and anyway in the typical
58391         case it's not worth the extra 100 bytes or so of code.
58392         (ranged_convert, __mktime_internal): When calling a function via a
58393         pointer P, use P () rather than (*P) (), as we now assume C89 or
58394         better.
58395
58396 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
58397
58398         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
58399         "who -r" failed to give output.  Problem reported by Tim Waugh.
58400
58401         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
58402         (xcalloc): Use it to avoid needless tests.
58403         Problem reported by Jim Meyering.
58404
58405 2005-06-20  Derek Price  <derek@ximbiot.com>
58406
58407         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
58408         unnecessary for Autoconfs > 2.59c.
58409
58410 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58411
58412         * lib/argp.h (__option_is_short): Check upper limit of
58413         __key. Isprint() requires its argument to have the value
58414         of an unsigned char or EOF.
58415
58416 2005-06-16  Jim Meyering  <jim@meyering.net>
58417
58418         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
58419         when either N or S is zero.
58420
58421 2005-06-16  Derek Price  <derek@ximbiot.com>
58422
58423         * m4/bison.m4: Declare YACC & YFLAGS precious.
58424
58425 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
58426
58427         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
58428         multibyte string or pattern, fall back on unibyte matching.
58429         Problem reported by James Youngman.
58430
58431 2005-06-08  Bruno Haible  <bruno@clisp.org>
58432
58433         * modules/csharpcomp: New file.
58434         * MODULES.html.sh (C#): Add csharpcomp.
58435
58436 2005-06-08  Bruno Haible  <bruno@clisp.org>
58437
58438         * m4/csharpcomp.m4: New file, from GNU gettext.
58439
58440 2005-06-08  Bruno Haible  <bruno@clisp.org>
58441
58442         * lib/csharpcomp.h: New file, from GNU gettext.
58443         * lib/csharpcomp.c: New file, from GNU gettext.
58444         * lib/csharpcomp.sh.in: New file, from GNU gettext.
58445
58446 2005-06-08  Bruno Haible  <bruno@clisp.org>
58447
58448         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
58449         warning on mingw.
58450
58451 2005-06-07  Derek Price  <derek@ximbiot.com>
58452
58453         Sync from CVS.
58454         * lib/glob_.h: Indent nested #ifdef.
58455
58456 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58457
58458         Sync from coreutils.
58459         Use "file name" when talking about file names, instead of "filename"
58460         or "path", as per the GNU coding standards.
58461         * lib/mkdir-p.c: Renamed from makepath.c.
58462         (make_dir_parents): Renamed from make_path.  All callers changed.
58463         * lib/mkdir-p.h: Likewise.  All includers changed.
58464         * lib/filenamecat.c: Renamed from path-concat.c.
58465         (file_name_concat): Renamed from path_concat.  All callers changed.
58466         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
58467         * lib/filenamecat.h: Likewise.  All includers changed.
58468         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
58469         in comments or local variable names.
58470         * lib/basename.c: Likewise.
58471         * lib/canonicalize.c, canonicalize.h: Likewise.
58472         * lib/dirname.c, dirname.h: Likewise.
58473         * lib/euidaccess.c: Likewise.
58474         * lib/exclude.c: Likewise
58475         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
58476         * lib/fsusage.c, fsuage.h: Likewise.
58477         * lib/fts.c, fts_.h: Likewise.
58478         * lib/getcwd.c: Likewise.
58479         * lib/getloadavg.c: Likewise.
58480         * lib/mkstemp.c: Likewise.
58481         * lib/mountlist.c, mountlist.h: Likewise.
58482         * lib/openat.c, openat.h: Likewise.
58483         * lib/readlink-stub.c: Likewise.
58484         * lib/readutmp.c, readutmp.h: Likewise.
58485         * lib/rename.c: Likewise.
58486         * lib/rmdir.c: Likewise.
58487         * lib/same.c: Likewise.
58488         * lib/savedir.c: Likewise.
58489         * lib/stripslash.c: Likewise.
58490         * lib/tempname.c: Likewise.
58491         * lib/xreadlink.c: Likewise.
58492         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
58493         All uses changed.
58494         * lib/exclude.h: Likewise.
58495
58496         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
58497         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58498         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
58499         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58500         * lib/pathmax.h: Include <limits.h> unconditionally, since other
58501         files have been getting away with it for years (MORE/BSD 4.3
58502         is extinct now).
58503         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
58504         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
58505
58506         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
58507         Define to 256, not 255, as per modern POSIX.
58508
58509 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58510
58511         Sync from coreutils.
58512         Use "file name" when talking about file names, instead of "filename"
58513         or "path", as per the GNU coding standards.
58514         * MODULES.html.sh: mkdir-p renamed from makepath.
58515         filenamecat renamed from path-concat.
58516         * modules/filenamecat: Renamed from modules/path-concat.
58517         (Files): filenamecat.h and filenamecat.c renamed from
58518         path-concat.h and path-concat.c.
58519         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
58520         (Include): filenamecat.h, not path-concat.h.
58521         * modules/mkdir-p: Renamed from modules/makepath.
58522         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
58523         makepath.c.
58524         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
58525         (Include): mkdir-p.h, not makepath.h.
58526
58527 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
58528
58529         Sync from coreutils.
58530         * m4/mkdir-p.m4: Renamed from makepath.m4.
58531         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
58532         Rename files from makepath.c to mkdir-p.c, and from
58533         makepath.h to mkdir-p.h.
58534         * m4/filenamecat.m4: Renamed from path-concat.m4.
58535         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
58536         Rename files from path-concat.c to filenamecat.c,
58537         and from path-concat.h to filenamecat.h.
58538         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
58539         "file name" in local variables or comments.
58540         * m4/rename.m4: Likewise.
58541
58542 2005-06-01  Bruno Haible  <bruno@clisp.org>
58543
58544         * modules/csharpexec: New file.
58545         * MODULES.html.sh (C#): New section.
58546
58547 2005-06-01  Bruno Haible  <bruno@clisp.org>
58548
58549         * m4/csharp.m4: New file, from GNU gettext.
58550         * m4/csharpexec.m4: New file, from GNU gettext.
58551
58552 2005-06-01  Bruno Haible  <bruno@clisp.org>
58553
58554         * lib/csharpexec.h: New file, from GNU gettext.
58555         * lib/csharpexec.c: New file, from GNU gettext.
58556         * lib/csharpexec.sh.in: New file, from GNU gettext.
58557
58558 2005-05-31  Derek Price  <derek@ximbiot.com>
58559             Paul Eggert  <eggert@cs.ucla.edu>
58560
58561         Sync from cvs.
58562         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58563
58564 2005-05-31  Derek Price  <derek@ximbiot.com>
58565             Paul Eggert  <eggert@cs.ucla.edu>
58566
58567         Sync from cvs.
58568         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
58569
58570 2005-05-29  Derek Price  <derek@ximbiot.com>
58571
58572         * config/srclist.txt (glob_.h, glob.c): Add these files.
58573
58574 2005-05-29  Derek Price  <derek@ximbiot.com>
58575
58576         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
58577         * modules/glob: New file.
58578         * modules/getlogin_r: Add link to POSIX spec in description.
58579
58580 2005-05-29  Derek Price  <derek@ximbiot.com>
58581             Paul Eggert  <eggert@cs.ucla.edu>
58582
58583         * m4/glob.m4: New file.
58584
58585 2005-05-29  Derek Price  <derek@ximbiot.com>
58586             Paul Eggert  <eggert@cs.ucla.edu>
58587
58588         * lib/glob_.h, lib/glob.c: New files.
58589
58590 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58591
58592         * modules/fts (Files): Remove m4/inttypes-pri.m4.
58593         * modules/fts-lgpl (Depends-on): Remove gettext.
58594
58595 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58596
58597         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
58598         and don't require gt_INTTYPES_PRI.
58599
58600 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
58601
58602         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
58603
58604         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
58605         the configuration hassle isn't worth it.
58606         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
58607         (LONGEST_MODIFIER, PRIuMAX): Remove.
58608
58609 2005-05-27  Bruno Haible  <bruno@clisp.org>
58610
58611         * lib/getlogin_r.h: Remove second include of <stddef.h>.
58612
58613 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
58614
58615         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
58616         _POSIX_PTHREAD_SEMANTICS for Solaris.
58617
58618 2005-05-25  Derek Price  <derek@ximbiot.com>
58619
58620         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
58621
58622 2005-05-25  Derek Price  <derek@ximbiot.com>
58623             Paul Eggert  <eggert@cs.ucla.edu>
58624
58625         * modules/getlogin_r, m4/getlogin_r.m4: New files.
58626         * lib/getlogin_r.c, getlogin_r.h: New files.
58627
58628 2005-05-25  Bruno Haible  <bruno@clisp.org>
58629             Derek Price  <derek@ximbiot.com>
58630
58631         * lib/getlogin_r.h: Simplify API documentation.
58632
58633 2005-05-23  Derek Price  <derek@ximbiot.com>
58634
58635         * modules/minmax (Files): Add m4/minmax.m4.
58636         (configure.ac): Add gl_MINMAX.
58637
58638 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
58639
58640         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
58641         so that unistd-safer.h (GPL'ed code) need not be included.
58642
58643 2005-05-22  Bruno Haible  <bruno@clisp.org>
58644
58645         * m4/minmax.m4: New file.
58646         Based on a patch by Derek Price <derek@ximbiot.com>.
58647
58648 2005-05-22  Bruno Haible  <bruno@clisp.org>
58649
58650         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
58651         (INT64_MIN): Fix definition.
58652         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
58653
58654         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
58655         NEED_SIGNED_INT_TYPES.
58656
58657         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
58658         HAVE_SYSTEM_INTTYPES.
58659
58660 2005-05-22  Bruno Haible  <bruno@clisp.org>
58661
58662         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
58663         Also include <sys/param.h> if it defines MIN, MAX.
58664         Based on a patch by Derek Price <derek@ximbiot.com>.
58665
58666 2005-05-21  Jim Meyering  <jim@meyering.net>
58667
58668         * modules/fts (Files): Add m4/inttypes-pri.m4.
58669         (Depends-on): Add lstat and remove gettext.  Alphabetize.
58670
58671 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58672
58673         New fts module.
58674         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
58675         (setup_dir, free_dir): New functions.
58676         (enter_dir, leave_dir): Define trivial
58677         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
58678         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
58679         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
58680         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
58681         Move to fts-cycle.c.
58682         (fts_open): Use setup_dir.
58683         (fts_close): Use free_dir.
58684         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
58685         This adds a label and some gotos, but the alternatives were messier.
58686         Check for memory allocation failure when entering a dir.
58687         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
58688         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
58689         (FTS): New member fts_cycle, that is a union that contains the
58690         old active_dir_ht and cycle_state.  All uses changed to mention
58691         fts_cycle.ht and fts_cycle.state.
58692         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
58693         fts.c, with the following changes:
58694         (setup_dir, free_dir): New functions.
58695         (enter_dir): Now returns bool.  Return true if successful, false
58696         if memory exhausted.  All callers changed.
58697         Do not bother partly cleaning up on
58698         memory allocation failure; that is free_dir's job.
58699         However, free ad if hash_insert fails, to avoid memory leak.
58700         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
58701         fts->fts_options to see which union member to use.
58702
58703 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58704
58705         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
58706         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
58707
58708 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
58709
58710         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
58711
58712 2005-05-20  Jim Meyering  <jim@meyering.net>
58713
58714         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
58715         Now a macro, to pacify GCC.
58716
58717 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58718
58719         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
58720         of -1.
58721
58722 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58723
58724         * lib/chown.c (rpl_chown): Return -1 on failure.
58725
58726 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58727
58728         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
58729         Don't check for stddef.h.
58730         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
58731         don't use its results.
58732         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
58733         since we include them unconditionally.  Don't require
58734         AM_STDBOOL_H, since stdbool is a prerequisite.
58735         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
58736         since we assume C89 or better.
58737         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
58738         as we don't use their results.
58739         Don't check for fchdir, memmove, memset, strrchr, as we use
58740         them unconditionally.
58741         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
58742         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
58743
58744 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58745
58746         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
58747         Include <stddef.h> unconditionally, since we assume C89 now.
58748         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
58749         * lib/fts.c: Include fts_.h first, to check interface.
58750         Do not include intprops.h; no longer needed.
58751         Include cycle-check.h and hash.h, since fts_.h no longer does.
58752         Remove unnecessary casts of closedir to void.
58753         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
58754         decide whether to decrement nlinks.
58755         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
58756         (FTS): Use struct hash_table * instead of Hash_table, so that
58757         we no longer need to include hash.h here.
58758
58759 2005-05-18  Jim Meyering  <jim@meyering.net>
58760
58761         * modules/dirfd (License): Change to LGPL.  Most of the code
58762         is already in the public domain.
58763
58764 2005-05-18  Jim Meyering  <jim@meyering.net>
58765
58766         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
58767         Reported by Yoann Vandoorselaere.
58768
58769 2005-05-17  Jim Meyering  <jim@meyering.net>
58770
58771         * m4/fts.m4: New file, from coreutils.
58772
58773 2005-05-17  Jim Meyering  <jim@meyering.net>
58774
58775         * lib/fts.c, lib/fts_.h: New files, from coreutils.
58776
58777 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58778
58779         Sync from coreutils.
58780         * m4/unlinkdir.m4: New file.
58781
58782 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58783
58784         Sync from coreutils.
58785         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
58786         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
58787         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
58788         White space changes only.
58789         * lib/makepath.c (make_path): Port to hosts where leading "//" is
58790         special.
58791         * lib/yesno.c: Include getline.h, not ctype.h.
58792         (yesno): Don't remove leading white space; POSIX doesn't allow it.
58793         Use getline to remove arbitrary restriction on response length.
58794
58795 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58796
58797         * config/srclist-update: Spell out "Street" in FSF postal
58798         mail address; this is the style the FSF seems to prefer.
58799
58800         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
58801         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
58802         this updates FSF postal mail address.
58803
58804         Sync from coreutils.
58805         * modules/unlinkdir: New file.
58806         * modules/yesno (Depends-on): Add getline.
58807         * MODULES.html.sh (File system functions): Add unlinkdir.
58808
58809 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58810
58811         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
58812         lib/strsep.h:
58813         Change the initial comment to refer to GPL, not LGPL.
58814         gnulib-tool will change it to LGPL as needed.
58815
58816         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
58817         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
58818         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
58819         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
58820         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
58821         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
58822         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
58823         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
58824         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
58825         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
58826         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
58827         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
58828         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
58829         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
58830         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
58831         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
58832         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
58833         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
58834         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
58835         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
58836         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
58837         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
58838         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
58839         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
58840         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
58841         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
58842         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
58843         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
58844         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
58845         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
58846         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
58847         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
58848         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
58849         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
58850         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
58851         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
58852         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
58853         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
58854         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
58855         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
58856         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
58857         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
58858         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
58859         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
58860         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
58861         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
58862         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
58863         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
58864         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
58865         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
58866         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58867         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
58868         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
58869         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
58870         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
58871         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
58872         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
58873         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
58874         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
58875         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
58876         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
58877         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
58878         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
58879         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
58880         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
58881         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
58882         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
58883         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
58884         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
58885         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
58886         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
58887         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
58888         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
58889         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
58890         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
58891         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
58892         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
58893         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
58894         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
58895         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
58896         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
58897         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
58898         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
58899         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
58900         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
58901         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
58902         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
58903         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
58904         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
58905         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
58906         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
58907         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
58908         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
58909         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
58910         lib/yesno.c, lib/yesno.h:
58911         Update FSF postal mail address.
58912
58913 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58914
58915         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
58916         tests/test-memmem.c, tests/test-stpncpy.c:
58917         Update FSF postal mail address.
58918
58919 2005-05-13  Bruno Haible  <bruno@clisp.org>
58920
58921         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
58922         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
58923         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
58924         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
58925         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
58926         Add support for 64-bit integers in the MSVC compiler.
58927
58928 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58929
58930         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
58931
58932 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
58933
58934         * gnulib-tool (func_import): Sort and uniquify recommended includes.
58935
58936 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
58937
58938         * doc/getdate.texi (General date syntax): Don't say that date
58939         date --iso-8601=ns generates acceptable dates; it doesn't yet.
58940         Problem reported by Nic Ferrier.
58941
58942 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58943
58944         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
58945         specified in ai_socktype. Fix invalid ai_protocol
58946         check. ai_protocol is usually set to 0 or depending on
58947         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
58948         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
58949         ai_socktype / ai_protocol in the returned addrinfo structure.
58950
58951 2005-05-10  Simon Josefsson  <jas@extundo.com>
58952
58953         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
58954         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58955
58956 2005-05-10  Karl Berry  <karl@gnu.org>
58957
58958         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
58959         (from http://www.gnu.org/licenses).
58960         * doc/COPYING.LIB: also rename to COPYING.LESSER.
58961         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
58962         fdl.texi suffices.
58963
58964 2005-05-10  Karl Berry  <karl@gnu.org>
58965
58966         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
58967         (COPYING.DOC): remove.
58968
58969         * config/srclist-update: new FSF address.
58970
58971 2005-05-10  Derek Price  <derek@ximbiot.com>
58972
58973         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
58974         possible.
58975
58976 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58977             Bruno Haible  <bruno@clisp.org>
58978
58979         * modules/inet_ntop: New file.
58980         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58981         inet_ntop.
58982
58983 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58984             Bruno Haible  <bruno@clisp.org>
58985
58986         * m4/inet_ntop.m4: New file.
58987
58988 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58989             Bruno Haible  <bruno@clisp.org>
58990
58991         * lib/inet_ntop.h: New file.
58992         * lib/inet_ntop.c: New file, from glibc with modifications.
58993
58994 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
58995
58996         * modules/time_r (License): Change to LGPL.
58997         * modules/extensions (License): Change to LGPL.  Actually,
58998         the license is more permissive than that, but currently gnulib-tool
58999         doesn't know how to handle more-permissive licenses.
59000
59001         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
59002         Problem reported by Dave Love.
59003
59004 2005-05-08  Jim Meyering  <jim@meyering.net>
59005
59006         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
59007         blank.
59008
59009 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
59010
59011         * modules/argmatch (Depends-on): Add stdbool.
59012         * modules/backupfile (Depends-on): Likewise.
59013         * modules/chdir-long (Depends-on): Likewise.
59014         * modules/closeout (Depends-on): Likewise.
59015         * modules/cycle-check (Depends-on): Likewise.
59016         * modules/dirname (Depends-on): Likewise.
59017         * modules/fnmatch (Depends-on): Likewise.
59018         * modules/fsusage (Depends-on): Likewise.
59019         * modules/fwriteerror (Depends-on): Likewise.
59020         * modules/getcwd (Depends-on): Likewise.
59021         * modules/getloadavg (Depends-on): Likewise.
59022         * modules/hard-locale (Depends-on): Likewise.
59023         * modules/makepath (Depends-on): Likewise.
59024         * modules/mountlist (Depends-on): Likewise.
59025         * modules/nanosleep (Depends-on): Likewise.
59026         * modules/posixtm (Depends-on): Likewise.
59027         * modules/quotearg (Depends-on): Likewise.
59028         * modules/readtokens (Depends-on): Likewise.
59029         * modules/readtokens0 (Depends-on): Likewise.
59030         * modules/readutmp (Depends-on): Likewise.
59031         * modules/save-cwd (Depends-on): Likewise.
59032         * modules/strftime (Depends-on): Likewise.
59033         * modules/userspec (Depends-on): Likewise.
59034         * modules/utimecmp (Depends-on): Likewise.
59035         * modules/xgetcwd (Depends-on): Likewise.
59036         * modules/xnanosleep (Depends-on): Likewise.
59037         * modules/xstrtod (Depends-on): Likewise.
59038         * modules/yesno (Depends-on): Likewise.
59039
59040 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
59041
59042         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
59043         needless checks.
59044
59045 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59046
59047         Merge from coreutils.  Among other things,
59048         add bulletproofing for cases where stdin, stdout, or stderr are closed.
59049         * lib/fd-safer.c: New file.
59050         * lib/fcntl-safer.h, open-safer.c: Remove.
59051         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
59052         * lib/dup-safer.c: Include unistd-safer.h first.
59053         Don't include errno.h.
59054         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
59055         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
59056         * lib/file-type.c: Rely on file-type.h change.
59057         * lib/getloadavg.c: Include unistd-safer.h.
59058         (getloadavg): Use safer open.
59059         * lib/getusershell.c: Include "stdio-safer.h".
59060         (getusershell): Use safer fopen.
59061         * lib/long-options.c (long_options): Use NULL rather than 0.
59062         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
59063         'free'.
59064         * lib/modechange.c: Likewise.
59065         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
59066         (MODE_DONE): New constant.
59067         (struct mode_change): Remove 'next' member.
59068         (make_node_op_equals): New function; like the old one of the
59069         same name, except it allocates an array.
59070         (mode_compile, mode_create_from_ref): Use it.
59071         (mode_compile): Allocate result as an array, not a linked list.
59072         Parse octal string ourself, so that we catch mistakes like "+0".
59073         (mode_adjust): Arg is an array, not a linked list.
59074         * lib/modechange.c: Include stat-macros.h, xalloc.h.
59075         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
59076         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
59077         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
59078         Remove.  This is now stat-macros.h's job.
59079         (talloc): Remove.  All callers replaced by xalloc, so that
59080         our invokers don't have to worry about reporting memory failures.
59081         (make_node_op_equals): Remove.
59082         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59083         New constants.
59084         (struct mode_change): Moved here from modechange.h.
59085         (mode_append_entry): Remove.
59086         (mode_compile): Remove MASKED_OPS arg, since it encouraged
59087         apps to have incorrect behavior.  Use simpler algorithm for head
59088         and tail.  Don't futz with umask; that's now the job of mode_adjust.
59089         Detect more invalid usages rather than having somewhat-random behavior.
59090         Don't insert an "a=" action, as that leads to incorrect behavior.
59091         (mode_compile, mode_create_from_ref): Return NULL on error instead
59092         of an enum, since now there's only one way to have an error.  All
59093         callers changed.
59094         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
59095         at the correct time.  Simplify calculation of "+u" and its ilk.
59096         Don't mishandle "+X".
59097         (mode_free): Remove "register" and localize decls.
59098         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
59099         (struct mode_change): Move to modechange.c; callers don't
59100         need to see this stuff.
59101         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
59102         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
59103         (mode_change, mode_adjust): Reflect the new signatures noted above.
59104         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
59105         that might redefine system include files.
59106         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
59107         (my_usleep): Use NULL rather than (void *) 0.
59108         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
59109         Use siginterrupt to specify that system calls should be interrupted.
59110         (rpl_nanosleep): Move initialization of suspended closer to call of
59111         my_usleep.
59112         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
59113         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
59114         (desirable_utmp_entry): New function.
59115         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
59116         using x2nrealloc, to simplify logic.
59117         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
59118         size calculation.  Do not assume utmp file is a regular file.
59119         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
59120         (READ_UTMP_CHECK_PIDS): New constant.
59121         * lib/save-cwd.c: Include unistd-safer.h.
59122         (save_cwd): Use fd_safer.
59123         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
59124         [!_LIBC] Include "stat-macros.h" instead.
59125         * lib/unistd-safer.h (fd_safer): New decl.
59126
59127 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59128
59129         * modules/getloadavg (Depends-on): Add unistd-safer.
59130         * modules/getusershell (Depends-on): Add stdio-safer.
59131         * modules/lstat (Depends-on): Remove xalloc.
59132         * modules/mkstemp (Depends-on): Add stat-macros.
59133         * modules/modechange (Depends-on): Remove xstrtol.
59134         Add stat-macros, xalloc.
59135         * modules/save-cwd (Depends-on): Add unistd-safer.
59136         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
59137         * modules/unistd-safer (Files): Add lib/fd-safer.c
59138         (Makefile.am): Remove lib_SOURCES.
59139
59140         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
59141         Remove fcntl-safer; unistd-safer supersedes it.
59142
59143 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59144
59145         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
59146         AC_HEADER_STAT.
59147         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
59148         (gl_PREREQ_CHOWN): Remove.
59149         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
59150         it.  Don't require AC_HEADER_STAT.
59151         (gl_PREREQ_LSTAT): Remove.
59152         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
59153         Don't require AC_HEADER_STAT.
59154         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
59155         (gl_PREREQ_RMDIR): Remove.
59156         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
59157         mention stat-macros.h or AC_HEADER_STAT, since we'll make
59158         the stat-macros module a prerequisite.
59159         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
59160         * m4/filemode.m4 (gl_FILEMODE): Likewise.
59161         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
59162         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
59163         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
59164         variable names.
59165         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
59166         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
59167         variable prefixes.
59168         * m4/fcntl-safer.m4: Remove.
59169         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
59170         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
59171         Invoke gl_PREREQ_FD_SAFER.
59172         (gl_PREREQ_FD_SAFER): New macro.
59173         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
59174         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
59175         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
59176         Remove duplicate call to AC_LIBOBJ(readutmp).
59177         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
59178
59179         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
59180         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
59181
59182 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
59183
59184         * MODULES.html.sh (Misc): Add byteswap.
59185
59186 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59187
59188         * modules/getcwd (Depends-on): Add extensions.
59189         * modules/openat (Depends-on): Likewise.
59190
59191 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59192
59193         * modules/byteswap: New file.
59194
59195 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59196
59197         * m4/byteswap.m4: New file.
59198
59199 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
59200
59201         * lib/byteswap_.h: New file.
59202
59203 2005-04-25  Karl Berry  <karl@gnu.org>
59204
59205         * m4/gettext.m4: Update from GNU gettext 0.14.4.
59206
59207 2005-04-25  Albert Chin  <china@thewrittenword.com>
59208
59209         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
59210         Toolkit C bug.
59211
59212 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
59213
59214         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
59215         (func_ln_if_changed) Remove forcibly for no error message
59216         in case file does not exist.
59217
59218 2005-04-19  Simon Josefsson  <jas@extundo.com>
59219
59220         * gnulib-tool (Options): Make --symlink mean --symbolic.
59221
59222 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
59223
59224         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
59225
59226 2005-04-16  Simon Josefsson  <jas@extundo.com>
59227
59228         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
59229
59230 2005-04-15  Simon Josefsson  <jas@extundo.com>
59231
59232         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
59233
59234 2005-04-15  Simon Josefsson  <jas@extundo.com>
59235
59236         * gnulib-tool: Rename --symlink to --symbolic.
59237
59238 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
59239
59240         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
59241         symbolic links to files instead of copying/moving.  Add --aux-dir,
59242         specifying directory relative --dir where auxiliary build tools
59243         are placed.
59244
59245 2005-04-14  Bruno Haible  <bruno@clisp.org>
59246
59247         * modules/allocsa (License): Change to LGPL.
59248         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59249
59250 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
59251
59252         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
59253         that "UTC +1 second" continues to work.  Problem reported
59254         by Dmitry V. Levin.
59255         (relunit_snumber): New rule.
59256         (relunit): Use it.
59257
59258 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
59259
59260         * lib/getdate.y (universal_time_zone_table): New constant.
59261         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
59262         universal_time_zone_table.
59263         (lookup_zone): Prefer universal_time_zone_table to
59264         local_time_zone_table, so that "GMT" time stamps are allowed in
59265         London during the summer.  Problem reported by Ian Abbott.
59266
59267 2005-04-12  Jim Meyering  <jim@meyering.net>
59268
59269         * lib/human.c (humblock): Set *options even when returning due to
59270         xstrtoumax conversion failure.  Thanks to a used-uninitialized
59271         warning from gcc-4.
59272
59273 2005-04-09  Jim Meyering  <jim@meyering.net>
59274
59275         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
59276         -Wuninitialized: initialize tm0.tm_year.
59277
59278 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
59279
59280         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
59281         count, since there's no maximum.  All uses changed.
59282         Add member dsts_seen.
59283         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
59284         not being INT_MAX.
59285         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
59286         Use pc_rels_seen to decide whther a date is absolute.
59287
59288         * lib/getdate.y (number): Don't overwrite year.
59289         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
59290         check.
59291
59292 2005-04-02  Simon Josefsson  <jas@extundo.com>
59293
59294         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
59295         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
59296
59297 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
59298
59299         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
59300         where no absolute path name can be longer than PATH_MAX.
59301
59302 2005-03-27  Jim Meyering  <jim@meyering.net>
59303
59304         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
59305
59306 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
59307
59308         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
59309         "one's complement" -> "ones' complement" in comment, as per Knuth.
59310         "value of type" -> "type or expression" in comment.
59311         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
59312
59313 2005-03-26  Jim Meyering  <jim@meyering.net>
59314
59315         Comment nits.
59316         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
59317         Correct typos: s/or/of/.
59318
59319 2005-03-26  Jim Meyering  <jim@meyering.net>
59320
59321         * modules/check-include-files: Move to ../ and rename to...
59322         * check-module: ...this.
59323
59324 2005-03-25  Jim Meyering  <jim@meyering.net>
59325
59326         * modules/xvasprintf (Files): Add xalloc.h.
59327
59328 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
59329
59330         * modules/gettext (Files): config/config.rpath ->
59331         build-aux/config.rpath
59332         * modules/iconv (Files): Likewise.
59333         Problem reported by Oskar Liljeblad.
59334
59335 2005-03-23  Jim Meyering  <jim@meyering.net>
59336
59337         * modules/check-include-files: New script to check for
59338         missing dependencies, multiple includes, etc.
59339
59340         * modules/c-strtold (Depends-on): Add xalloc.
59341         * modules/c-strtod (Depends-on): Add xalloc.
59342         * modules/hash (Depends-on): Add xalloc.
59343         (Files): Remove lib/xalloc.h.
59344
59345         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
59346         * modules/userspec (Files): Add lib/inttostr.h.
59347
59348 2005-03-23  Jim Meyering  <jim@meyering.net>
59349
59350         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
59351
59352 2005-03-22  Jim Meyering  <jim@meyering.net>
59353
59354         * modules/stat-macros: New module.
59355         * modules/canonicalize, modules/euidaccess, modules/file-type,
59356         * modules/filemode, modules/lchown, modules/makepath,
59357         * modules/rmdir, modules/stat: Depend on new stat-macros module
59358         rather than listing lib/stat-macros.h manually.
59359         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
59360
59361 2005-03-22  Jim Meyering  <jim@meyering.net>
59362
59363         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
59364
59365 2005-03-22  Bruno Haible  <bruno@clisp.org>
59366
59367         * config/srclist.txt: Replace target directory 'config' with
59368         'build-aux'.
59369         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
59370         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
59371         ../build-aux/.
59372
59373 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
59374
59375         * modules/chdir-long (Depends-on): Add mempcpy.
59376
59377         * modules/acl, modules/backupfile, modules/c-strtod,
59378         modules/c-strtold, modules/canon-host, modules/canonicalize,
59379         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
59380         modules/exclude, modules/exitfail, modules/file-type,
59381         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
59382         modules/getdate, modules/getline, modules/getpagesize,
59383         modules/getpass, modules/getugroups, modules/group-member,
59384         modules/hard-locale, modules/hash, modules/human, modules/idcache,
59385         modules/inttostr, modules/long-options, modules/makepath,
59386         modules/md5, modules/memcasecmp, modules/memcoll,
59387         modules/modechange, modules/mountlist, modules/path-concat,
59388         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
59389         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
59390         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
59391         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
59392         modules/strftime, modules/strndup, modules/strverscmp,
59393         modules/timespec, modules/unlocked-io, modules/userspec,
59394         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
59395         modules/yesno:
59396         Remove lib_SOURCES line from Makefile.am section, as this is now
59397         done automatically by the corresponding Autoconf macro.
59398
59399 2005-03-21  Jim Meyering  <jim@meyering.net>
59400
59401         Changes imported from coreutils.
59402
59403         * lib/cycle-check.c: Don't include xalloc.h.
59404
59405         * lib/path-concat.c: Don't include assert.h.
59406         (path_concat): Remove assertion that would have triggered
59407         for ABASE starting with more than one slash.
59408         Reported by Andreas Schwab.
59409
59410         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
59411         properly when ABASE is an absolute file name.
59412         Correct the description of this function.
59413         Include <assert.h>.
59414         Add an assertion and a test driver.
59415         This fixes a bug introduced on 2004-07-02.
59416         Andreas Schwab reported the resulting failure of cp --parents:
59417         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
59418
59419 2005-03-21  Jim Meyering  <jim@meyering.net>
59420
59421         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
59422         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
59423
59424 2005-03-21  Jim Meyering  <jim@meyering.net>
59425         and  Paul Eggert  <eggert@cs.ucla.edu>
59426
59427         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
59428         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
59429         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
59430         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
59431         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
59432         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
59433         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
59434         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
59435         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
59436         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
59437         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
59438         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
59439         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
59440         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
59441         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
59442         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
59443         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
59444         for these modules.
59445
59446 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
59447
59448         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
59449         (which shouldn't happen), generate nothing instead of returning 0
59450         immediately, so that nstrftime (NULL, ...) doesn't return 0.
59451
59452 2005-03-16  Bruno Haible  <bruno@clisp.org>
59453
59454         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
59455         HAVE_LONGLONG_64BIT.
59456
59457 2005-03-16  Bruno Haible  <bruno@clisp.org>
59458
59459         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
59460         HAVE_LONGLONG_64BIT.
59461
59462 2005-03-16  Bruno Haible  <bruno@clisp.org>
59463
59464         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
59465         HAVE_LONGLONG_64BIT.
59466
59467 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59468
59469         * lib/strftime.c (my_strftime): Prepend space to format so that we can
59470         reliably distinguish strftime failure from empty output on POSIX
59471         hosts.
59472
59473 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
59474
59475         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
59476         (iconv_string): Don't guess a size-zero buffer, as that might cause
59477         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
59478         result would be 'too large', where 'too large' is (heuristically)
59479         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
59480         overflow concerns.  This will prevent some unwanted malloc failures
59481         when the inputs are very large.
59482
59483 2005-03-15  Karl Berry  <karl@gnu.org>
59484
59485         * config/srclist.txt (config.rpath): from gettext.
59486         * config/config.rpath: update.
59487
59488 2005-03-15  Bruno Haible  <bruno@clisp.org>
59489
59490         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
59491         to 'negate'.
59492
59493         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
59494         variable.
59495
59496         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
59497         results.
59498
59499 2005-03-14  Simon Josefsson  <jas@extundo.com>
59500
59501         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
59502         <fx@gnu.org>.
59503
59504 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
59505
59506         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
59507         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
59508         intprops.h.
59509         * lib/strtol.c: Likewise.
59510
59511 2005-03-14  Jim Meyering  <jim@meyering.net>
59512
59513         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
59514         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
59515         to be nonzero so that we (and caller) can detect the difference
59516         between a valid zero-length expansion and an error return, even
59517         when the underlying strftime fails before writing anything into
59518         that location.
59519
59520 2005-03-14  Bruno Haible  <bruno@clisp.org>
59521
59522         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
59523         Update from GNU gettext 0.14.3.
59524
59525 2005-03-10  Jim Meyering  <jim@meyering.net>
59526
59527         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
59528
59529 2005-03-10  Jim Meyering  <jim@meyering.net>
59530
59531         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
59532         so that this module works on systems without fchdir.
59533
59534 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
59535
59536         Factor int-properties macros into a single file, except for
59537         glibc-related files.
59538         * lib/intprops.h: New file.
59539         * lib/getloadavg.c: Include it instead of limits.h.
59540         (INT_STRLEN_BOUND): Remove.
59541         * lib/human.c: Include intprops.h.
59542         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
59543         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
59544         302/1000.
59545         * lib/inttostr.h: Include intprops.h instead of limits.h.
59546         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
59547         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
59548         for consistency with intprops.h.
59549         (time_t_is_integer, twos_complement_arithmetic): Use them.
59550         * lib/sig2str.h: Include <signal.h>, intprops.h.
59551         (INT_STRLEN_BOUND): Remove.
59552         * lib/strftime.c (TYPE_SIGNED): Remove.
59553         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
59554         * lib/strtol.c: Adjust comments to match intprops.h.
59555         * lib/userspec.c: Include intprops.h.
59556         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
59557         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
59558         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
59559         instead of rolling our own expressions.
59560         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
59561
59562         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
59563         instead of int.
59564         (my_strftime): Do not mishandle years close to INT_MAX, by doing
59565         the right thing even if adding 1900 would overflow.  Similarly
59566         for tm_mon + 1 and tm_yday + 1.
59567         Make %Y always equivalent to %C%y, and similarly for %G and %g.
59568         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
59569         (DO_SIGNED_NUMBER): New macro.
59570         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
59571
59572 2005-03-07  Bruno Haible  <bruno@clisp.org>
59573
59574         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
59575
59576 2005-03-07  Bruno Haible  <bruno@clisp.org>
59577
59578         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
59579
59580 2005-03-04  Derek R. Price  <derek@ximbiot.com>
59581
59582         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
59583         (func_import): Only replace files via --import when they have actually
59584         changed.
59585
59586 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59587
59588         * m4/mmap-anon.m4: New file.
59589         * m4/pagealign_alloc.m4: New file.
59590
59591 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59592             Bruno Haible  <bruno@clisp.org>
59593
59594         * modules/pagealign_alloc: New file.
59595         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
59596
59597 2005-03-03  Derek R. Price  <derek@ximbiot.com>
59598             Bruno Haible  <bruno@clisp.org>
59599
59600         * lib/pagealign_alloc.h: New file.
59601         * lib/pagealign_alloc.c: New file.
59602
59603 2005-03-03  Bruno Haible  <bruno@clisp.org>
59604
59605         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
59606         Use an all-permissive copyright notice, recommended by RMS.
59607
59608 2005-03-02  Bruno Haible  <bruno@clisp.org>
59609
59610         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
59611         of AIX, the replacement has to be done only after <string.h> is
59612         included, therefore not in config.h. stpncpy.h does the replacement,
59613         and stpncpy.c uses it.
59614
59615 2005-03-02  Bruno Haible  <bruno@clisp.org>
59616
59617         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
59618         stpncpy.c uses it.
59619
59620 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59621
59622         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
59623         The workaround isn't strictly needed for POSIX conformance, and
59624         it's too much of a pain to configure and maintain.  We'll ask
59625         people to fix their kernels instead.
59626         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
59627         (NANOSLEEP_BUG_WORKAROUND): Remove.
59628         (xnanosleep): Remove the workaround.
59629
59630 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59631
59632         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
59633         Reported by Derek Price.
59634         (Include): Add "timespec.h".
59635
59636         * modules/xnanosleep (Depends-on): Remove gethrxtime.
59637
59638 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59639
59640         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
59641         to detect nanosleep bug.
59642
59643 2005-03-01  Bruno Haible  <bruno@clisp.org>
59644
59645         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
59646
59647 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
59648
59649         * modules/gethrxtime: New file.
59650         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
59651         (Depends-on): Add gethrxtime.
59652         (configure.ac): Add gl_XNANOSLEEP.
59653         (Makefile.am): Remove lib_SOURCES line.
59654
59655 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59656
59657         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
59658         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
59659
59660 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59661
59662         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
59663         * lib/timespec.h (gettime): Return void, since it always
59664         succeeds now.  All uses changed.
59665         * lib/gettime.c (gettime) Likewise.
59666         [HAVE_NANOTIME]: Prefer nanotime.
59667         Assume gettimeofday succeeds, as POSIX requires.
59668         Assime time () succeeds, since other code already does.
59669         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
59670         (timespec_subtract): Remove.
59671         (NANOSLEEP_BUG_WORKAROUND): New constant.
59672         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
59673         things considerably.  Use it only on GNU/Linux hosts, since the
59674         workaround shouldn't be needed elsewhere.
59675
59676 2005-02-24  Bruno Haible  <bruno@clisp.org>
59677
59678         * modules/gettext (Files): Add m4/glibc2.m4.
59679
59680 2005-02-24  Bruno Haible  <bruno@clisp.org>
59681
59682         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
59683         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
59684         * m4/progtest.m4:
59685         Update from GNU gettext 0.14.2.
59686         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
59687
59688 2005-02-24  Bruno Haible  <bruno@clisp.org>
59689
59690         * lib/localcharset.c: Update from GNU gettext 0.14.2.
59691         * lib/config.charset: Update from GNU gettext 0.14.2.
59692
59693 2005-02-24  Bruno Haible  <bruno@clisp.org>
59694
59695         * lib/gettext.h: Update from GNU gettext 0.14.2.
59696
59697 2005-02-23  Simon Josefsson  <jas@extundo.com>
59698
59699         * m4/iconvme.m4: New file.
59700
59701 2005-02-23  Jim Meyering  <jim@meyering.net>
59702
59703         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
59704         change.
59705         Thanks to Bruno Haible for catching it.
59706
59707 2005-02-22  Simon Josefsson  <jas@extundo.com>
59708
59709         * modules/iconvme: New file.
59710
59711         * MODULES.html.sh: Add iconvme.
59712
59713 2005-02-22  Simon Josefsson  <jas@extundo.com>
59714
59715         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
59716
59717 2005-02-22  Simon Josefsson  <jas@extundo.com>
59718
59719         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
59720
59721 2005-02-22  Jim Meyering  <jim@meyering.net>
59722
59723         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
59724         s/ifndef/ifdef/.
59725
59726 2005-02-20  Neil Conway  <neilc@samurai.com>
59727
59728         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
59729         returned by OSX/Darwin if the specified buffer is not large
59730         enough for the hostname.
59731
59732 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59733
59734         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
59735         pass it to _help, otherwise the latter coredumps trying to
59736         dereference state.root_argp.
59737
59738 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59739
59740         * modules/chdir-long (Depends-on): Add memrchr.
59741         * modules/memrchr (Files): Add lib/memrchr.h.
59742         (Include): "memrchr.h".
59743
59744 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59745
59746         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
59747
59748 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59749
59750         * lib/memrchr.h: New file.
59751         * lib/chdir-long.c: Include it.
59752         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
59753         Don't bother including stddef.h.
59754
59755 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59756
59757         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
59758         inclusion.
59759         Include <sys/types.h>, for dev_t.
59760         (ME_DUMMY, ME_REMOTE): Move from here....
59761         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
59762         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
59763         Dmitry V. Levin.
59764         Include mountlist.h first, to test the interface.
59765
59766 2005-01-29  Bruno Haible  <bruno@clisp.org>
59767
59768         * lib/progname.c (program_name): Initialize.
59769         Needed when linking statically on MacOS X.
59770
59771 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59772
59773         Sync from coreutils.
59774         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
59775         (Depends-on): Add c-strtod.
59776         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
59777
59778 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59779
59780         Sync from coreutils.
59781         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
59782
59783         Remove files that are specific to coreutils.
59784         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
59785
59786 2005-01-28  Bruno Haible  <bruno@clisp.org>
59787
59788         * modules/javacomp: New file.
59789         * MODULES.html.sh (Java): Add javacomp.
59790
59791 2005-01-28  Bruno Haible  <bruno@clisp.org>
59792
59793         * m4/javacomp.m4: New file, from GNU gettext.
59794
59795 2005-01-28  Bruno Haible  <bruno@clisp.org>
59796
59797         * lib/javacomp.sh.in: New file, from GNU gettext.
59798         * lib/javacomp.h: New file, from GNU gettext.
59799         * lib/javacomp.c: New file, from GNU gettext.
59800
59801 2005-01-26  Simon Josefsson  <jas@extundo.com>
59802
59803         * lib/gai_strerror.c: Use GPL in header.
59804
59805 2005-01-26  Bruno Haible  <bruno@clisp.org>
59806
59807         * modules/javaexec: New file.
59808         * MODULES.html.sh (Java): Add javaexec.
59809
59810 2005-01-26  Bruno Haible  <bruno@clisp.org>
59811
59812         * m4/javaexec.m4: New file, from GNU gettext.
59813
59814 2005-01-26  Bruno Haible  <bruno@clisp.org>
59815
59816         * lib/javaexec.sh.in: New file, from GNU gettext.
59817         * lib/javaexec.h: New file, from GNU gettext.
59818         * lib/javaexec.c: New file, from GNU gettext.
59819
59820 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59821
59822         * modules/lchown (Depends-on): Remove lchown.h
59823
59824 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59825
59826         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
59827         must be defined if the header file was not found, in order
59828         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
59829
59830 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59831
59832         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
59833         initializers for struct pentry_state.
59834         (__argp_error): Check return value of __asprintf
59835         (__argp_failure): Translate error message
59836
59837         * lib/argp-parse.c: Removed braces around the expansion of N_()
59838
59839 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59840
59841         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
59842         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
59843         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
59844         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
59845         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
59846         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
59847         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
59848         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
59849         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
59850         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
59851         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
59852         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
59853         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
59854         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
59855         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
59856         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
59857         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
59858         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
59859         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
59860         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
59861         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
59862         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
59863         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
59864         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
59865         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
59866         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
59867         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
59868         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
59869         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
59870         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
59871         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
59872         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
59873         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
59874         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
59875         xstrtol.m4, xstrtoumax.m4, yesno.m4:
59876         Use an all-permissive copyright notice, recommended by RMS.
59877
59878 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59879
59880         * modules/chdir-long (Depends-on): Remove mempcpy.
59881
59882 2005-01-21  Jim Meyering  <jim@meyering.net>
59883
59884         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
59885         same value as for Solaris 9.
59886
59887         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
59888         component length.  This included changing the parameter to be
59889         of type `char *' rather than `char const *'.
59890         * lib/chdir-long.h (chdir_long): Update prototype.
59891
59892         * lib/openat.c (fdopendir, fstatat): New functions.
59893         * lib/openat.h: Include headers required for use of DIR and struct
59894         stat.
59895         [AT_SYMLINK_NOFOLLOW]: Define.
59896         (fdopendir, fstatat): Add prototypes.
59897
59898 2005-01-21  Bruno Haible  <bruno@clisp.org>
59899
59900         * modules/classpath: New file.
59901         * MODULES.html.sh (Java): Add classpath.
59902
59903 2005-01-21  Bruno Haible  <bruno@clisp.org>
59904
59905         * lib/classpath.h: New file, from GNU gettext.
59906         * lib/classpath.c: New file, from GNU gettext.
59907
59908 2005-01-20  Simon Josefsson  <jas@extundo.com>
59909
59910         * modules/version-etc-fsf: New file.
59911
59912 2005-01-20  Simon Josefsson  <jas@extundo.com>
59913
59914         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
59915         * lib/version-etc.c: Remove version_etc_copyright.
59916         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
59917         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
59918
59919 2005-01-20  Simon Josefsson  <jas@extundo.com>
59920
59921         * lib/base64.h (isbase64): Add.
59922
59923         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
59924         using a unsigned prototype, don't inline.
59925         (base64_decode): Use it.
59926
59927 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59928
59929         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
59930         it.
59931
59932 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59933
59934         * lib/save-cwd.c (save_cwd): Remove code to support the case
59935         where fchdir is missing or flaky.
59936
59937 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59938
59939         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
59940
59941 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59942
59943         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
59944         AC_LIBSOURCES now does this.
59945         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
59946         with new ullong_max module.
59947
59948 2005-01-19  Bruno Haible  <bruno@clisp.org>
59949
59950         * modules/sh-quote: New file.
59951         * MODULES.html.sh (Executing programs): Add sh-quote.
59952
59953 2005-01-19  Bruno Haible  <bruno@clisp.org>
59954
59955         * lib/sh-quote.h: New file, from GNU gettext.
59956         * lib/sh-quote.c: New file, from GNU gettext.
59957
59958 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59959
59960         Merge from coreutils.
59961         * m4/ullong_max.m4: New file.
59962         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
59963         (gl_MACROS): Assume localeconv exists.
59964
59965 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59966
59967         Merge changes from coreutils, as described below in several
59968         changelogs dated today.
59969
59970         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
59971         (O_DIRECTORY): Remove; not needed here, since "." must be
59972         a directory.  All uses removed.
59973         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
59974         universal on Suns, and we also need to test for IRIX.
59975         Revamp code to use 'if' rather than '#if'.
59976         Avoid unnecessary comparison of cwd->desc to 0.
59977
59978         * lib/utimens.c (futimens): Robustify the previous patch, by checking
59979         for known valid error numbers rather than observed invalid ones.
59980
59981 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59982
59983         * modules/ullong_max: New file.
59984
59985         * modules/chdir-long, modules/openat: New files.
59986         * modules/save-cwd (Depends-on): Depend on chdir-long.
59987         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
59988
59989 2005-01-18  Jim Meyering  <jim@meyering.net>
59990
59991         Merge from coreutils.
59992         * m4/chdir-long.m4, m4/openat.m4: New files.
59993         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
59994         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
59995         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
59996         is sane and DOES follow symlinks.  Besides, testing 20 different
59997         systems found no broken chown implementations.
59998         Prompted by a change in rsync's copy of this macro.
59999         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
60000
60001         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
60002
60003         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
60004         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
60005         NULL-means-set-to-current-time semantics.
60006         Remove temporary file immediately, rather than waiting
60007         for configure's at-exit trap code to do it.
60008
60009 2005-01-18  Jim Meyering  <jim@meyering.net>
60010
60011         * lib/version-etc.c (version_etc_copyright): Update copyright date.
60012
60013         * lib/utimens.c (futimens): Account for the fact that futimes
60014         can also fail with errno == ENOSYS or errno == ENOENT.
60015         Patch from Dmitry V. Levin.
60016
60017         Change the name of the robust chdir function from chdir to chdir_long.
60018         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
60019         (restore_cwd): Use chdir_long, not chdir.
60020         * lib/chdir-long.c: Renamed from chdir.c.
60021         * lib/chdir-long.h: Renamed from chdir.h.
60022         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
60023         Hurd.
60024
60025 2005-01-18  Bruno Haible  <bruno@clisp.org>
60026
60027         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
60028         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
60029         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
60030         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
60031         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
60032         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
60033         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
60034         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
60035         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
60036         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
60037         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
60038         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
60039         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
60040         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
60041         Use an all-permissive copyright notice, recommended by RMS.
60042
60043 2005-01-18  Bob Proulx  <bob@proulx.com>
60044
60045         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
60046         simplify offsetof() macro construct to avoid compile failure with
60047         native HP-UX 11.0 ANSI C compiler.
60048
60049 2005-01-17  Bruno Haible  <bruno@clisp.org>
60050
60051         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
60052         redundant because stpncpy.m4 takes care of it.
60053
60054 2005-01-17  Bruno Haible  <bruno@clisp.org>
60055
60056         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
60057
60058 2005-01-17  Bruno Haible  <bruno@clisp.org>
60059
60060         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
60061         used.
60062
60063 2005-01-17  Bruno Haible  <bruno@clisp.org>
60064
60065         * lib/fwriteerror.h (fwriteerror): Change specification to include
60066         fclose.
60067         * lib/fwriteerror.c: Include <stdbool.h>.
60068         (fwriteerror): At the end, close the file stream. Record whether
60069         stdout was already closed.
60070
60071 2005-01-17  Bruno Haible  <bruno@clisp.org>
60072
60073         * lib/execute.c (environ): Declare if needed.
60074         * lib/pipe.c (environ): Likewise.
60075         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
60076
60077 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60078
60079         * modules/argp: Depend on vsnprintf
60080
60081 2005-01-10  Jim Meyering  <jim@meyering.net>
60082
60083         * modules/closeout (Depends-on): Add atexit.
60084
60085 2005-01-06  Bruno Haible  <bruno@clisp.org>
60086
60087         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
60088
60089 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
60090
60091         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
60092         definitions to be after all include files, to avoid collisions.
60093         Problem reported by Bob Proulx.
60094
60095 2005-01-04  Jim Meyering  <jim@meyering.net>
60096
60097         Changes imported from coreutils.
60098         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
60099         as the mkstemp template, use a temporary directory and an
60100         8.3-friendly template to avoid trouble on systems like DJGPP.
60101         Reported by Juan M. Guerrero via Stepan Kasal.
60102         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
60103         close. Remove the temporary directory right away, rather than waiting
60104         for configure's at-exit trap code to do it.
60105         Suggestion from Stepan Kasal.
60106
60107 2005-01-01  Simon Josefsson  <jas@extundo.com>
60108
60109         * gnulib-tool: Print #include directives when --import'ing.
60110
60111 2004-12-28  Simon Josefsson  <jas@extundo.com>
60112
60113         * tests/test-base64.c: Include required header files.  Remove
60114         unused variables.
60115
60116 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60117
60118         * modules/error (Depends-on): Remove gettext.
60119
60120 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
60121
60122         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
60123         not needed.  This removes a dependency on the gettext module.
60124         [defined _LIBC]: Do not include <libintl.h>; not needed.
60125
60126 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60127
60128         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
60129         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
60130
60131 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
60132
60133         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
60134         HAVE_DECL_STRTOLD.
60135
60136 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60137
60138         * modules/getdate (Depends-on): Remove alloca-opt.
60139
60140 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60141
60142         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
60143
60144 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
60145
60146         * lib/argp-parse.c: Include <stddef.h>.
60147         (alignof, alignto): New macros.
60148         (parser_init): Don't assume that void * is aligned sufficiently
60149         for struct option.
60150
60151         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
60152         need to extend the stack.
60153         (YYINITDEPTH): New macro, so that the initial stack isn't overly
60154         large.
60155
60156 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60157
60158         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
60159
60160 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60161
60162         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
60163         (2004-10-24) change.  Apparently this was a false alarm.
60164
60165         * modules/getdate: Depend on alloca-opt, not alloca.
60166
60167 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
60168
60169         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
60170         Remove now-obsolete comment about AIX.
60171         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
60172         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
60173         (YYMAXDEPTH): New macro.
60174
60175 2004-12-18  Simon Josefsson  <jas@extundo.com>
60176
60177         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
60178
60179 2004-12-18  Bruno Haible  <bruno@clisp.org>
60180
60181         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
60182
60183 2004-12-18  Bruno Haible  <bruno@clisp.org>
60184
60185         * lib/fatal-signal.c (fatal_signals): Make non-const.
60186         (init_fatal_signals): New function.
60187         (uninstall_handlers, install_handlers): Ignore signals that were set to
60188         SIG_IGN.
60189         (at_fatal_signal): Call init_fatal_signals.
60190         (init_fatal_signal_set): Likewise. Ignore signals that were set to
60191         SIG_IGN.
60192         Reported by Paul Eggert.
60193
60194 2004-12-18  Bruno Haible  <bruno@clisp.org>
60195
60196         * doc/alloca.texi: New file.
60197         * doc/alloca-opt.texi: New file.
60198
60199 2004-12-17  Jim Meyering  <jim@meyering.net>
60200
60201         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
60202         Otherwise, install-sh could exit with improper exit status when
60203         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
60204
60205 2004-12-16  Simon Josefsson  <jas@extundo.com>
60206
60207         * tests/test-base64.c: Add license.
60208
60209 2004-12-15  Stepan Kasal  <address@hidden>
60210
60211         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
60212
60213 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
60214
60215         * modules/getcwd (Files): Add m4/d-ino.m4.
60216         Suggested by Mark D. Baushke.
60217
60218 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60219
60220         * lib/getdate.y (textint): New member "negative".
60221         (time_zone_hhmm): New function.
60222         Expect 14 shift-reduce conflicts, not 13.
60223         (o_colon_minutes): New rule.
60224         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
60225         (yylex): Set the "negative" member of signed numbers.
60226
60227 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
60228
60229         * doc/getdate.texi (Time of day items, Time zone items):
60230         Describe new formats +00:00, UTC+00:00.
60231
60232 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
60233
60234         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
60235         spurious "-l"s.  Problem reported by Stepan Kasal.
60236
60237 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
60238
60239         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
60240         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
60241
60242 2004-12-04  Simon Josefsson  <jas@extundo.com>
60243
60244         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
60245         Vandoorselaere <yoann@prelude-ids.org>.
60246
60247 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60248
60249         Changes imported from coreutils.
60250         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
60251         exist.
60252         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
60253
60254 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60255
60256         Changes imported from coreutils.
60257         * lib/hard-locale.c: Assume <locale.h> exists.
60258         Include "strdup.h".
60259         (GLIBC_VERSION): New macro.
60260         (hard_locale): Assume setlocale exists.
60261         Rewrite to avoid #ifdef.
60262         Use strdup rather than malloc + strcpy.
60263         * lib/human.c: Assume <locale.h> exists.
60264         (human_readable): Assume localeconv exists.
60265
60266 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
60267
60268         * modules/hard-locale (Depends-on): Add strdup.
60269
60270 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60271
60272         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
60273         convert T2, not T.  (Imported from libc.)
60274
60275 2004-11-30  Simon Josefsson  <jas@extundo.com>
60276
60277         * modules/restrict (License): Change to LGPL.
60278
60279 2004-11-30  Simon Josefsson  <jas@extundo.com>
60280
60281         * m4/restrict.m4: Add copyright and copying conditions.
60282
60283 2004-11-30  Simon Josefsson  <jas@extundo.com>
60284
60285         * m4/base64.m4: New file.
60286
60287 2004-11-30  Simon Josefsson  <jas@extundo.com>
60288
60289         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
60290         base64.
60291
60292         * tests/test-base64.c: New file.
60293
60294         * modules/base64: New file.
60295
60296 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60297
60298         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
60299         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
60300
60301         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
60302
60303 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
60304
60305         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
60306         (__getcwd.c): Don't restore errno; glibc doesn't.
60307         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
60308         first, falling back to our code only if its results look suspicious.
60309         Ensure that the resulting buffer is only as large as necessary.
60310
60311         * lib/readutmp.c: Include readutmp.h first.
60312         Include <errno.h>, since readutmp.h no longer does that.
60313         * lib/readutmp.h: Don't include <errno.h>,
60314         <sys/param.h>, <time.h>; not needed to establish interface.
60315         (errno): Remove decl.
60316         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
60317         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
60318         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
60319
60320 2004-11-28  Simon Josefsson  <jas@extundo.com>
60321
60322         * lib/base64.h, base64.c: New file.
60323
60324 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
60325
60326         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
60327
60328 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
60329
60330         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
60331         (Depends-on): Remove pathmax, same.  Add mempcpy.
60332         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
60333         (Makefile.am): Append getcwd.h to lib_SOURCES.
60334         (Include): Add getcwd.h.
60335         (Maintainer): Change from Jim Meyering to "all, glibc",
60336         since getdate now uses intended-for-glibc code.
60337         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
60338         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
60339
60340 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60341
60342         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
60343         HP's ANSI C compiler.
60344         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
60345         Declaring int functions causes warnings on some modern systems and
60346         shouldn't be needed to compile on ancient ones.
60347         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
60348         defined.
60349
60350         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
60351         with the following changes.
60352         (__set_errno): Parenthesize properly.
60353         Include <stdbool.h>.
60354         (MIN, MAX, MATCHING_INO): New macros.
60355         (__getcwd): Define with prototype, not K&R form.
60356         Use heuristics to allocate default buffer on stack if possible.
60357         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
60358         behavior, and to avoid the PATH_MAX limit when computing
60359         ../../../../...
60360         Use MATCHING_INO to compare inode number to file.
60361         Check for arithmetic overflow in size calculations.
60362         Fix bug in reallocation of dot array that caused getcwd to fail
60363         on directories nested deeper than 75.
60364         Be more careful about saving errno on error.
60365         Do not use realloc; use only free+malloc, as this is a bit
60366         more flexible and avoids a needless copy operation.
60367         Do not inspect st_dev and st_ino for symbolic links; POSIX
60368         doesn't specify the latter.
60369         Check for closedir errors.
60370         Avoid needless casts.
60371         Use "#ifdef weak_alias" around weak_alias, to be like other
60372         glibc code.
60373         The following changes to getcwd.c have effect only when used in
60374         gnulib; they have no effect inside glibc proper.
60375         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
60376         as alloca isn't used.
60377         (alloca, __alloca): Likewise.
60378         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
60379         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
60380         unconditionally, as gnulib assumes C89 or better.
60381         Do not include <sys/param.h>.
60382         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
60383         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
60384         better.
60385         (NULL) [!defined NULL]: Remove; we assume C89 or better.
60386         Include <dirent.h> in a way that is compatible with modern Autoconf.
60387         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
60388         New macros, if not already defined.
60389         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
60390         Use "_LIBC", not "defined _LIBC", for consistency.
60391         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
60392         a mempcpy module.
60393         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
60394         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
60395         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
60396         credit only to Jim Meyering and adjust the copyright dates.
60397         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
60398         <stdlib.h>, <unistd.h>, "pathmax.h".
60399         Instead, include "xgetcwd.h" (first) and "getcwd.h".
60400         (INITIAL_BUFFER_SIZE): Remove.
60401         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
60402
60403 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
60404
60405         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
60406         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
60407         Use the _ONCE methods, for efficiency.
60408         Check for fcntl.h.  In test program, include <errno.h>
60409         and <fcntl.h> if available.  Remove old K&R cruft from
60410         test program.  Check for common errors in GNU/Linux,
60411         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
60412         don't do AC_LIBOBJ, as that's getcwd.m4's job.
60413         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
60414         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
60415         name accordingly.
60416         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
60417         accommodate new getcwd.c.
60418         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
60419         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
60420         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
60421         that's all we need now.
60422
60423 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60424
60425         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
60426         argp-parse.c depends on getopt internals, that means we should
60427         always use our getopt, to be on the safe side.
60428         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
60429         order not to spoil the result of an eventual previous invocation
60430         of gl_GETOPT_SUBSTITUTE.
60431
60432 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60433
60434         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
60435         redefinition warnings. To avoid them, include the defines
60436         in `#if !defined __need_getopt ... #endif'. The only place
60437         where __getopt_argv_const is used is in definitions
60438         of getopt_long and getopt_long_only below, which are as well
60439         protected by `#ifndef __need_getopt'.
60440         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
60441         __need_getopt after including <stdio.h> and <unistd.h> These
60442         headers might have defined it.
60443
60444 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60445
60446         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
60447
60448 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
60449
60450         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
60451         (futimens): New function, which uses futimes if available.
60452         (futimens, utimens): Support timespec==NULL, with same semantics
60453         as utime and utimens.
60454         * lib/utimens.h (futimens): New decl.
60455
60456 2004-11-23  Jim Meyering  <jim@meyering.net>
60457
60458         * lib/getopt_.h: Remove trailing blanks.
60459
60460 2004-11-23  Jim Meyering  <jim@meyering.net>
60461
60462         * lib/__fpending.c: Add comment.
60463
60464 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
60465
60466         * modules/canonicalize (Depends-on): Add xreadlink.
60467         Problem reported by James Youngman.
60468
60469 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
60470
60471         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
60472         New macros.
60473         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
60474         optopt): Use them instead of invoking ## directly; otherwise, the
60475         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
60476
60477 2004-11-19  Bruno Haible  <bruno@clisp.org>
60478
60479         * lib/strtok_r.c: Move comments from here...
60480         * lib/strtok_r.h: ... to here.
60481
60482 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60483
60484         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
60485         implementations that mishandle size_t overflow.
60486
60487 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
60488
60489         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
60490         might fail.  Problem reported by Yoann Vandoorselaere.
60491         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
60492         implementations that mishandle size_t overflow.
60493
60494 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60495
60496         * modules/canon-host (Depends-on): Add strdup.
60497
60498 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60499
60500         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
60501
60502 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60503
60504         * lib/canon-host.c: Include "strdup.h".
60505         (canon_host): Use getaddrinfo if available, so that IPv6 works.
60506         Use strdup instead of malloc/strcpy to duplicate strings.
60507
60508         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
60509         (human_space_before_unit): New constant.
60510         * lib/human.c (human_readable): Support it.
60511
60512         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
60513         (xgetcwd): Set errno correctly when failing.
60514         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
60515         the failure is actually due to a PATH_MAX problem.
60516
60517         Further getopt changes to make it more likely that glibc will
60518         buy the changes back.
60519         * lib/getopt.c (POSIXLY_CORRECT): New constant.
60520         (getopt): Use it, so to preserve glibc semantic
60521         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
60522         when compiling for libc.
60523         * lib/getopt_.h (__getopt_argv_const): Bring it back.
60524         (getopt_long, getopt_long_only): Use it.
60525
60526         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60527         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
60528         (getopt): Argv is now char * const *, as per standard.
60529         (_getopt_internal_r, _getopt_internal): Argv is now char **,
60530         not char *__getopt_argv_const *.
60531         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60532         _getopt_long_only_r): Likewise.
60533         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
60534         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60535         _getopt_long_r, _getopt_long_only_r): Likewise.
60536         * lib/getopt_.h (__getopt_argv_const): Remove.
60537         (getopt): Argv is now char * const *, as per standard.
60538
60539         * lib/getdate.y (tORDINAL): New token.
60540         (day, relunit): Allow it for relative times.
60541         (relative_time_table): Use tORDINAL for ordinals.
60542
60543 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60544
60545         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
60546         Document that "second" isn't allowed as an ordinal number.
60547
60548 2004-11-16  Jim Meyering  <jim@meyering.net>
60549
60550         * modules/closeout (Depends-on): Add fpending.
60551
60552 2004-11-15  Jim Meyering  <jim@meyering.net>
60553
60554         * lib/closeout.c: Include "__fpending.h" once again.
60555         Include <stdbool.h>.
60556         (close_stdout): Don't fail just because stdout was closed initially,
60557         since some programs don't write to stdout in the normal course of
60558         operation (other than --version and --help), and we don't want this
60559         function to make e.g. `touch file >&-' fail.
60560         But do fail if it was closed and someone has tried to write to it.
60561         E.g., `printf foo >&-' must fail.
60562
60563 2004-11-13  Jim Meyering  <jim@meyering.net>
60564
60565         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
60566
60567 2004-11-12  Simon Josefsson  <jas@extundo.com>
60568
60569         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
60570         small doc fix is still pending.
60571
60572 2004-11-11  Simon Josefsson  <jas@extundo.com>
60573
60574         * modules/strtok_r: New file.
60575
60576         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60577         strtok_r.
60578
60579 2004-11-11  Simon Josefsson  <jas@extundo.com>
60580
60581         * m4/strtok_r.m4: New file.
60582
60583         * m4/getopt.m4: Replace opterr.
60584
60585 2004-11-11  Simon Josefsson  <jas@extundo.com>
60586
60587         * lib/strtok_r.h, strtok_r.c: New file.
60588
60589 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60590
60591         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
60592         of replacing opterr, getopt, etc.  This should handle the
60593         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
60594
60595 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
60596
60597         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
60598         we can stop lying to compilers about the constness of argv when we
60599         are compiled outside glibc.
60600         (getopt, getopt_long, getopt_long_only): Use it.
60601         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
60602         _getopt_internal, getopt): Likewise.
60603         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
60604         _getopt_long_only_r): Likewise.
60605         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
60606         _getopt_long_r, _getopt_long_only_r): Likewise.
60607
60608         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
60609         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
60610         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
60611         the other external symbols.
60612         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
60613         declaration, since the above renaming now works around collisions.
60614
60615 2004-11-11  Jim Meyering  <jim@meyering.net>
60616
60617         * lib/linebreak.c: Remove trailing blanks.
60618         * lib/alloca_.h: Likewise.
60619         * lib/acosl.c: Likewise.
60620         * lib/euidaccess.c: Likewise.
60621         * lib/allocsa.h: Likewise.
60622
60623 2004-11-10  Simon Josefsson  <jas@extundo.com>
60624
60625         * m4/getaddrinfo.m4: New file.
60626
60627 2004-11-10  Simon Josefsson  <jas@extundo.com>
60628
60629         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
60630
60631 2004-11-10  Simon Josefsson  <jas@extundo.com>
60632
60633         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60634         getaddrinfo.
60635
60636         * modules/getaddrinfo: New file.
60637
60638 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60639
60640         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
60641
60642 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
60643
60644         * lib/mktime.c (SHR): New macro, which is a portable
60645         substitute for >> that should work even on Crays.
60646         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
60647         Problem reported by Mark D. Baushke in
60648         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
60649         * lib/getdate.y (SHR): Likewise.
60650         (tm_diff): Use it.
60651         * lib/strftime.c (SHR): Likewise.
60652         (tm_diff): Use it.
60653         * lib/quotearg.c (struct quoting_options): Use unsigned int for
60654         quote_these_too, so that right shifts are well defined.  All uses
60655         changed.
60656
60657 2004-11-10  Jim Meyering  <jim@meyering.net>
60658
60659         Ensure that no close failure goes unreported.
60660         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
60661         return early when it seems there's nothing to flush.
60662         Don't include __fpending.h.
60663
60664 2004-11-10  Jim Meyering  <jim@meyering.net>
60665
60666         * modules/closeout (Depends-on): Remove fpending.
60667
60668 2004-11-10  Jim Meyering  <jim@meyering.net>
60669
60670         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
60671
60672 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60673
60674         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
60675         gl_FUNC_STRFTIME.
60676         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
60677         and AC_REQUIRE when possible, to avoid duplicate checks.
60678         Check for <wchar.h>.
60679
60680 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
60681
60682         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
60683
60684 2004-11-09  Bruno Haible  <bruno@clisp.org>
60685
60686         * m4/sockpfaf.m4: New file.
60687
60688 2004-11-05  Bruno Haible  <bruno@clisp.org>
60689
60690         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
60691         Reported by Mark D. Baushke <mdb@cvshome.org>.
60692
60693 2004-11-04  Bruno Haible  <bruno@clisp.org>
60694
60695         2004-09-11  Bruno Haible  <bruno@clisp.org>
60696                 * allocsa.valgrind: New file.
60697         2004-02-06  Bruno Haible  <bruno@clisp.org>
60698                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
60699                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
60700                 Reported by Christopher Seip <chris.seip@hp.com>.
60701
60702 2004-11-04  Bruno Haible  <bruno@clisp.org>
60703
60704         * modules/allocsa (Files): Add lib/allocsa.valgrind.
60705         (Makefile.am): Distribute it.
60706
60707 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
60708
60709         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
60710         with errno == ERANGE if the buffer is too small.
60711         Problem reported by Mark D. Baushke.
60712
60713 2004-11-03  Albert Chin  <china@thewrittenword.com>
60714             Paul Eggert  <eggert@cs.ucla.edu>
60715
60716         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
60717         equivalent, substitute $ac_type for equivalent type rather than
60718         blindly using uint32_t *always* which won't work if uint32_t is not
60719         available.  Define _UINT32_T to work around typedef of uint32_t if
60720         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
60721         2.5.1.
60722
60723 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60724
60725         * m4/jm-macros.m4: Sync from coreutils.
60726         (gl_MACROS): Check for mbrlen, for pathchk.
60727         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
60728
60729 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60730
60731         * lib/xreadlink.c (MAXSIZE): New macro.
60732         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
60733         size does not exceed MAXSIZE.  Avoid cast.
60734         As suggested by Mark D. Baushke in
60735         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
60736         if readlink fails with buffer size just under MAXSIZE, try again
60737         with MAXSIZE.
60738
60739 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60740
60741         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
60742
60743 2004-11-02  Derek R. Price  <derek@ximbiot.com>
60744         and  Paul Eggert  <eggert@cs.ucla.edu>
60745
60746         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
60747         (get_date): Overparenthesize to avoid GCC warning.
60748
60749 2004-11-02  Bruno Haible  <bruno@clisp.org>
60750
60751         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
60752         returns void.
60753
60754 2004-11-02  Bruno Haible  <bruno@clisp.org>
60755
60756         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
60757         function returns void.
60758
60759 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60760
60761         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
60762         fflush_unlocked, flockfile, funlockfile, funlockfile,
60763         fputs_unlocked, putc_unlocked.
60764
60765 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60766
60767         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60768         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
60769         already declared.
60770
60771 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60772
60773         * modules/getdate (Files): Add doc/getdate.texi.
60774         (Depends-on): Add setenv, xalloc.
60775
60776 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60777
60778         * lib/getdate.y: Add support for TZ="foo" within a date string.
60779         Fix some bugs near time_t boundaries.  Reject dates with
60780         out-of-range components, e.g., "Sept 31".
60781         Include <stdlib.h>, "setenv.h", "xalloc.h".
60782         (ISDIGIT_LOCALE): Remove; unused.
60783         Note that the TZ and time functions used here are not reentrant.
60784         (mktime_ok, get_tz): New functions.
60785         (TZBUFSIZE): New constant.
60786         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
60787         This requires that we sometimes generate our own TZ="XXX..." setting.
60788
60789 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60790
60791         * doc/getdate.texi: New file, from coreutils with modifications for
60792         the new TZ parsing.
60793
60794 2004-10-27  Derek R. Price  <derek@ximbiot.com>
60795
60796         * lib/mktime.c (not_equal_tm): Remove redundant check.
60797
60798 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60799
60800         * modules/regex (lib_SOURCES): Add regex.c.
60801         Reported by James Youngman in
60802         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
60803
60804 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60805
60806         * lib/getdate.y: Use Bison 1.875 features, and some minor
60807         code cleanups.  This change does not affect semantics.
60808         Don't include <stdlib.h>; no longer needed.
60809         Don't include unlocked-io.h; only the "#if TEST" code uses
60810         stdio, and performance isn't crucial there.
60811         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
60812         Bison 1.875 features as described below.
60813         All uses of "PC." replaced by "pc->".
60814         (YYSTYPE): Add a forward declaration.
60815         (yylex, yyerror): Use full prototypes in forward decls.
60816         Use "%pure-parser" rather than obsolescent "%pure_parser".
60817         Use %parse-param and %lex-param instead of obsolescent
60818         YYPARSE_PARAM and YYLEX_PARAM.
60819         (meridian_table, month_and_day_table, time_units_table,
60820         relative_time_table, time_zone_table, military_table,
60821         lookup_zone, lookup_word, get_date):
60822         Use NULL instead of 0 where appropriate.
60823         (to_hour): Avoid abort (), to avoid a dependency on
60824         stdlib.h.
60825         (yyerror, yylex): Now accepts parser_control * arg.
60826         (main) [TEST]: Use '\0' rather than 0 for char.
60827
60828 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60829
60830         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
60831
60832 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60833
60834         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
60835         It's now the caller's responsibility to handle the case where
60836         !HAVE_GETPAGESIZE && !defined getpagesize.
60837
60838         * lib/mktime.c (leapyear): Arg is long int, not int.
60839
60840 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
60841
60842         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
60843
60844 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60845
60846         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
60847         missing.  Problem reported by James Youngman.
60848
60849 2004-10-16  Simon Josefsson  <jas@extundo.com>
60850
60851         * gnulib-tool: Fix comments.  Fix parse problem.
60852         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
60853
60854 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
60855
60856         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
60857         implementation of getopt_long.  Problem reported by Alexander Taler in:
60858         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
60859
60860 2004-10-15  Bruno Haible  <bruno@clisp.org>
60861
60862         * gnulib-tool: Untabify. Initialize supplied_libname.
60863         (func_usage): More homogenous output.
60864         (func_modules_transitive_closure, func_modules_to_filelist,
60865         func_emit_lib_Makefile_am): New functions.
60866         (func_import): New function, extracted from big case statement. Use
60867         func_get_license, func_modules_transitive_closure,
60868         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
60869         opt_lgpl. Don't use test -a, as it's not portable.
60870         (func_create_testdir): Use func_modules_transitive_closure,
60871         func_modules_to_filelist, func_emit_lib_Makefile_am.
60872
60873 2004-10-15  Bruno Haible  <bruno@clisp.org>
60874
60875         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
60876
60877 2004-10-15  Bruno Haible  <bruno@clisp.org>
60878
60879         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
60880         the portions belonging to each module.
60881         Suggested by Derek Robert Price <derek@ximbiot.com>.
60882
60883 2004-10-12  Simon Josefsson  <jas@extundo.com>
60884
60885         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60886         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
60887         to real functions.
60888
60889 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60890
60891         * modules/vsnprintf: New file.
60892
60893 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60894
60895         * m4/vsnprintf.m4: New file.
60896
60897 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60898
60899         * lib/vsnprintf.h: New file.
60900         * lib/vsnprintf.c: New file.
60901
60902 2004-10-11  Bruno Haible  <bruno@clisp.org>
60903
60904         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
60905         vsnprintf.
60906
60907 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60908
60909         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
60910
60911 2004-10-07  Bruno Haible  <bruno@clisp.org>
60912
60913         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
60914         fits into the provided buffer.
60915
60916 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60917
60918         * lib/diacrit.c, diacrit.h: Add GPL notice.
60919
60920         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
60921         notice.
60922         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
60923         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
60924         This avoids a potential constant-folding bug.
60925
60926 2004-10-05  Bruno Haible  <bruno@clisp.org>
60927
60928         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
60929         for the declaration of strsep.
60930
60931 2004-10-05  Bruno Haible  <bruno@clisp.org>
60932
60933         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
60934
60935 2004-10-04  Simon Josefsson  <jas@extundo.com>
60936
60937         * modules/memmem: New file.
60938         * tests/test-memmem.c: New file.
60939         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
60940
60941 2004-10-04  Simon Josefsson  <jas@extundo.com>
60942
60943         * m4/memmem.m4: New file.
60944
60945 2004-10-04  Simon Josefsson  <jas@extundo.com>
60946
60947         * lib/memmem.h: New file.
60948         * lib/memmem.c: New file, taken from glibc.
60949
60950 2004-10-04  Simon Josefsson  <jas@extundo.com>
60951
60952         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
60953         '#ifdef USE_UNLOCKED_IO'.
60954
60955 2004-10-04  Simon Josefsson  <jas@extundo.com>
60956
60957         * config/srclist.txt: Add memmem from glibc.
60958
60959 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60960
60961         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
60962
60963         * modules/argmatch, modules/argp, modules/closeout, modules/error,
60964         modules/exclude, modules/getdate, modules/getline,
60965         modules/getndelim2, modules/getpass, modules/getpass-gnu,
60966         modules/getusershell, modules/linebuffer, modules/md5,
60967         modules/mountlist, modules/posixtm, modules/readtokens,
60968         modules/readutmp, modules/regex, modules/sha1,
60969         modules/version-etc, modules/yesno:
60970         Remove dependency on unlocked-io.
60971
60972 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60973
60974         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
60975
60976         * m4/unlocked-io.m4: Add copyright notice.
60977         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
60978
60979 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60980
60981         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
60982         * lib/xmalloc.c (xmemdup): Likewise.
60983         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
60984         XFREE): Remove these long-obsolescent macros.
60985         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
60986         * lib/xstrdup.c: Remove.
60987
60988         * lib/regex.c (re_comp): Cast gettext return value to char *,
60989         Problem reported by Martin Neitzel via Mark D. Baushke.
60990
60991 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60992
60993         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
60994         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
60995         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
60996         regex.c, sha1.c, version-etc.c, yesno.c:
60997         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
60998         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
60999         the includer's responsibility.
61000
61001         Sync from coreutils.
61002
61003         * lib/modechange.c (mode_compile): Don't decrement a pointer that
61004         points to the start of a string, as the C Standard says the
61005         resulting behavior is undefined.
61006
61007         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
61008         simple -> simple_backups, numbered_existing ->
61009         numbered_existing_backups, numbered -> numbered_backups
61010         to avoid shadowing problems.  All uses changed.
61011         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
61012         * lib/backupfile.c (check_extension, numbered_backup):
61013         Rename locals to avoid shadowing 'basename'.
61014         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
61015         once.
61016
61017         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
61018         * lib/.cvsignore: Add getopt.h.
61019
61020 2004-10-04  Bruno Haible  <bruno@clisp.org>
61021
61022         * modules/README: New file.
61023         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
61024         not a module.
61025
61026 2004-10-02  Jim Meyering  <jim@meyering.net>
61027
61028         * lib/dirfd.h, getpagesize.h: Add copyright notice.
61029
61030 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61031
61032         * modules/strsep: New file.
61033
61034 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61035
61036         * m4/strsep.m4: New file.
61037
61038 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
61039
61040         * lib/strsep.h: New file.
61041         * lib/strsep.c: New file.
61042
61043 2004-10-01  Simon Josefsson  <jas@extundo.com>
61044
61045         * lib/snprintf.c (snprintf): Handle size==0.
61046
61047 2004-10-01  Simon Josefsson  <jas@extundo.com>
61048             Bruno Haible  <bruno@clisp.org>
61049
61050         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
61051         (snprintf): Declare 'args'.
61052
61053 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
61054
61055         * lib/snprintf.c: Remove comments as to why each header is needed.
61056
61057 2004-10-01  Bruno Haible  <bruno@clisp.org>
61058
61059         * MODULES.html.sh: Add strsep.
61060
61061 2004-09-30  Simon Josefsson  <jas@extundo.com>
61062
61063         * modules/snprintf: New file.
61064
61065 2004-09-30  Simon Josefsson  <jas@extundo.com>
61066
61067         * m4/snprintf.m4: New file.
61068
61069 2004-09-30  Simon Josefsson  <jas@extundo.com>
61070
61071         * lib/snprintf.h, lib/snprintf.c: New files.
61072
61073 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61074
61075         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
61076         (hol_entry_help): Never translate an empty string.
61077         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
61078         * lib/argp.h (OPTION_NO_TRANS): New option.
61079
61080 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61081
61082         * modules/argp (Maintainer): Replace Simon Josefsson
61083         by Sergey Poznyakoff.
61084
61085 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61086
61087         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
61088         changes merged back into glibc.
61089
61090 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
61091
61092         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
61093
61094 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
61095
61096         * lib/xvasprintf.c: Include xalloc.h.
61097         (xvasprintf): Use xalloc_die, not xmalloc_die.
61098
61099 2004-09-29  Bruno Haible  <bruno@clisp.org>
61100
61101         * modules/alloca-opt: New file, derived from modules/alloca.
61102         * modules/allocsa: Depend on alloca-opt instead of alloca.
61103         * modules/setenv: Likewise.
61104         * modules/vasnprintf: Likewise.
61105         * MODULES.html.sh: Add alloca-opt.
61106
61107 2004-09-28  Simon Josefsson  <jas@extundo.com>
61108
61109         * gnulib-tool: New parameter --lgpl, to asseert that modules are
61110         LGPL, and to replace license template from GPL to LGPL.
61111
61112 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61113
61114         * modules/dummy: Change license to LGPL.
61115
61116 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
61117
61118         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
61119
61120 2004-09-24  Simon Josefsson  <jas@extundo.com>
61121
61122         * modules/minmax (License): Change from GPL to LGPL.
61123
61124 2004-09-23  Simon Josefsson  <jas@extundo.com>
61125
61126         * gnulib-tool (--import): Typo.
61127
61128 2004-09-23  Simon Josefsson  <jas@extundo.com>
61129
61130         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
61131
61132 2004-09-22  Bruno Haible  <bruno@clisp.org>
61133
61134         * modules/*: Add 'License' field.
61135         * gnulib-tool: Accept --extract-license option.
61136         (func_get_license): New function.
61137
61138 2004-09-21  Bruno Haible  <bruno@clisp.org>
61139
61140         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
61141         Reported by Simon Josefsson.
61142
61143 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61144
61145         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
61146         gl_AC_TYPE_LONG_LONG.
61147
61148 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
61149
61150         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
61151
61152 2004-09-18  Simon Josefsson  <jas@extundo.com>
61153         and  Paul Eggert  <eggert@cs.ucla.edu>
61154
61155         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
61156         calls with autoreconf.  Define GL_LIB.
61157
61158 2004-09-14  Karl Berry  <karl@gnu.org>
61159
61160         * config/srclist.txt: unsync setenv.c, sigh.
61161
61162 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61163
61164         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
61165         Problem reported by Bruno Haible in:
61166         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
61167
61168 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
61169
61170         * config/srclist.txt: Comment out argp-pvh.c.
61171
61172 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
61173
61174         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
61175         in case some system header has #define'd it.  Problem reported by
61176         Soeren D. Schulze in
61177         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
61178
61179 2004-09-09  Karl Berry  <karl@gnu.org>
61180
61181         * regex.[ch]: delete from the root.  These were supposed to be
61182                 synced with emacs cvs, but this has not happened for about
61183                 a year, and anyway nothing else uses emacs regex.[ch].
61184                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
61185                 lib/regex[.ch] is untouched.
61186
61187 2004-09-09  Bruno Haible  <bruno@clisp.org>
61188
61189         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
61190
61191 2004-09-09  Bruno Haible  <bruno@clisp.org>
61192
61193         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
61194         modifications.
61195         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
61196
61197 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61198
61199         * modules/xvasprintf: New file.
61200         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
61201
61202 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
61203
61204         * lib/xvasprintf.h: New file.
61205         * lib/xvasprintf.c: New file.
61206         * lib/xasprintf.c: New file.
61207
61208 2004-09-08  Bruno Haible  <bruno@clisp.org>
61209
61210         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
61211
61212 2004-09-08  Bruno Haible  <bruno@clisp.org>
61213
61214         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
61215         length is > INT_MAX.
61216         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
61217         more.
61218
61219 2004-09-08  Bruno Haible  <bruno@clisp.org>
61220
61221         * lib/stdint_.h: New file, taken from GNU clisp.
61222
61223 2004-09-08  Bruno Haible  <bruno@clisp.org>
61224             Oskar Liljeblad  <oskar@osk.mine.nu>
61225
61226         * modules/stdint: New file.
61227         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
61228
61229 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61230
61231         Import from coreutils.
61232         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
61233         strings on unbounded length.  alloca's performance benefits aren't
61234         that important here.
61235         (V_STRDUP): Remove.
61236         (parse_with_separator): New function, with most of the internals
61237         of the old parse_user_spec.  Allow user to omit both user and group,
61238         for compatibility with FreeBSD.
61239         Clone only the user name, not the entire spec.
61240         Do not set *uid, *gid unless entirely successful.
61241         Avoid memory leak in some failing cases.
61242         Fix regression for USER.GROUP reported by Dmitry V. Levin in
61243         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
61244         (parse_user_spec): Rewrite to use parse_with_separator.
61245
61246 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61247
61248         * modules/userspec: Don't depend on alloca.
61249
61250 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
61251
61252         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
61253
61254 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
61255
61256         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
61257         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
61258         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
61259
61260 2004-08-16  Simon Josefsson  <jas@extundo.com>
61261
61262         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
61263         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
61264         Add --dry-run for --import.
61265         Let user provided command line parameters override configure.ac
61266         settings.
61267
61268 2004-08-12  Simon Josefsson  <jas@extundo.com>
61269
61270         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
61271         as discussed with Paul Eggert in threads rooted at
61272         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
61273         and
61274         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
61275         Before, the test was empty, and relied on ELIDE_CODE in source
61276         code.)
61277         (gl_PREREQ_GETOPT): New macro.
61278         (gl_GETOPT): Use them.
61279
61280 2004-08-12  Simon Josefsson  <jas@extundo.com>
61281
61282         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
61283         * lib/getopt_.h: Renamed from getopt.h.
61284
61285 2004-08-12  Simon Josefsson  <jas@extundo.com>
61286
61287         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
61288         Change default library name from libfoo to libgnu.
61289         Now, if you have a configure.ac that says:
61290                 gl_SOURCE_BASE(gl)
61291                 gl_M4_BASE(gl/m4)
61292                 gl_MODULES(error getopt etcetera)
61293                 gl_INIT
61294         you can import all you need by running:
61295                 ../gnulib/gnulib-tool --import
61296
61297         * modules/getopt (Files): Rename getopt.h to getopt_.h.
61298         (Makefile.am): Rewrite, use logic from argz.
61299         (Include): Use <getopt.h> instead of "getopt.h".
61300
61301 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61302
61303         * modules/argp (Files): Add m4/unlocked-io.m4.
61304         (Depends-on): Add extensions.
61305
61306 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61307
61308         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
61309         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
61310         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
61311         Check for program_invocation_name, program_invocation_short_name,
61312         flockfile, funlockfile, features.h, _getopt_long_only_r.
61313
61314 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61315
61316         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
61317         its complicated substitute.
61318         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
61319         and program_invocation_name.
61320         (__argp_basename) [!_LIBC]: Remove; the only use was
61321         replaced by its body.
61322         (__argp_short_program_name): Change condition from
61323         !defined __argp_short_program_name to
61324         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
61325         to match argp-namefrob.h.
61326         (__argp_failure): Don't assume strerror_r returns char *.
61327         * lib/argp-parse.c (N_): Define unconditionally.
61328         (argp_default_options): Fill out initializers with 0 to avoid
61329         gcc warnings.
61330
61331 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
61332
61333         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
61334         getopt1.c.
61335
61336 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61337
61338         Merge from coreutils.
61339
61340         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
61341
61342         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
61343         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
61344
61345 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61346
61347         Merge from coreutils.
61348
61349         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
61350         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
61351         for Reliant Unix 5.43.
61352
61353         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
61354         (union fooround): Use uintmax_t, not long int.
61355         The rest is a merge from libc:
61356         [defined _LIBC]: Include <shlib-compat.h>.
61357         (_obstack) [defined _LIBC]: Remove after 2.3.4.
61358
61359         * lib/settime.c (settime): Recode to avoid warning with
61360         Sun Forte C 6U2.
61361
61362         * lib/strverscmp.c: Convert to UTF-8.
61363
61364 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
61365
61366         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
61367         m4/uintmax_t.m4.
61368
61369 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61370
61371         * modules/xalloc-die: New file.
61372         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
61373
61374         * modules/md5 (Files): Add m4/uint32_t.m4.
61375         * modules/sha1: Renamed from modules/sha.
61376         (Files):
61377         Rename lib/sha.h to lib/sha1.h.
61378         Rename lib/sha.c to lib/sha1.c.
61379         Rename m4/sha.m4 to m4/sha1.m4.
61380         (lib_SOURCES): Likewise.
61381         (configure.ac): Rename gl_SHA to gl_SHA1.
61382         (Include): sha.h -> sha1.h.
61383
61384 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61385
61386         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
61387         * m4/sha1.m4: Renamed from sha.m4.
61388         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
61389
61390 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
61391
61392         * lib/obstack.h (obstack_empty_p):
61393         Don't assume that chunk->contents is suitably aligned.
61394         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
61395         Likewise. Problem reported by Benno in
61396         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
61397
61398         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
61399         readable.  This could be improved further but it'd take some work.
61400
61401 2004-08-08  Simon Josefsson  <jas@extundo.com>
61402
61403         * modules/xgethostname (Depends-on): Remove exit and error (not
61404         used).
61405
61406         * modules/getpass-gnu: Add getpass.h.
61407         (Depends-on): Add stdbool.
61408         * modules/getpass: Add getpass.h.
61409
61410 2004-08-08  Simon Josefsson  <jas@extundo.com>
61411
61412         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
61413         Check getpass declaration.
61414
61415 2004-08-08  Simon Josefsson  <jas@extundo.com>
61416
61417         * lib/xgethostname.c: Don't include error.h (not used).
61418
61419         * lib/getpass.h: Add.
61420         * lib/getpass.c: Include getpass.h first.
61421
61422 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
61423
61424         * lib/xalloc-die.c: New file.
61425         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
61426         All uses removed.
61427         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
61428         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
61429         xalloc-die.c.
61430         (_, N_, xalloc_die): Move to xalloc-die.c.
61431         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
61432         so that we needn't mess with xalloc_msg_memory_exhausted.
61433
61434         * lib/sha1.h: Renamed from sha.h.
61435         (SHA1_H): Renamed from _SHA_H.
61436         (sha1_ctx): Renamed from sha_ctx.
61437         (sha1_init_ctx): Renamed from sha_init_ctx.
61438         (sha1_process_block): Renamed from sha_process_block.
61439         (sha1_process_bytes): Renamed from sha_process_bytes.
61440         (sha1_finish_ctx): Renamed from sha_finish_ctx.
61441         (sha1_read_ctx): Renamed from sha_read_ctx.
61442         (sha1_stream): Renamed from sha_stream.
61443         (sha1_buffer): Renamed from sha_buffer.
61444         * lib/sha1.c: Likewise; renamed from sha.c.
61445         Do not include <sys/types.h>.
61446         Include <stddef.h> rather than <stdlib.h>.
61447
61448 2004-08-08  Bruno Haible  <bruno@clisp.org>
61449
61450         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
61451         FILESYSTEM_PREFIX_LEN.
61452         * lib/progreloc.c: Likewise.
61453         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
61454
61455 2004-08-06  Simon Josefsson  <jas@extundo.com>
61456
61457         * modules/progname (Depends-on): Don't depend on stdbool.
61458
61459 2004-08-06  Simon Josefsson  <jas@extundo.com>
61460
61461         * modules/getsubopt: New file.
61462         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61463         getsubopt.
61464
61465 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61466
61467         More merge from coreutils.
61468
61469         * m4/utimens.m4, m4/utimecmp.m4: New files.
61470         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
61471         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
61472         prereq.m4, sha.m4: Import changes from coreutils.
61473
61474 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61475
61476         More merge from coreutils.
61477         * modules/raise, modules/readtokens0, modules/utimens:
61478         * modules/utimecmp, module/xnanosleep: New files.
61479         * modules/strftime: Add lib/strftime.h.
61480         Change include from <time.h> to "strftime.h".
61481         * modules/yesno: Add lib/yesno.h.
61482         * modules/backupfile: Remove lib/addext.c.
61483         * modules/euidaccess: Add stat-macros.h.
61484         * modules/canonicalize, modules/euidaccess,
61485         modules/filemode, modules/lchown, modules/makepath,
61486         modules/rmdir, modules/stat: Likewise.
61487
61488 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61489
61490         Merge from tar.
61491         * lib/argp-help.c (make_hol, hol_append): Don't assume that
61492         SIZE_MAX is a valid preprocessor constant.
61493         (__argp_basename): Change from "#ifndef _LIBC"
61494         to "#ifndef __argp_short_program_name", so that
61495         we don't compile these functions for tar.
61496
61497         More merges from coreutils.
61498         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
61499         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
61500         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
61501         * lib/addext.c: Remove; no longer needed.
61502         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
61503         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
61504         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
61505         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
61506         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
61507         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
61508         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
61509         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
61510         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
61511         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
61512         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
61513         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
61514         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
61515         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
61516         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
61517         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
61518         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
61519         Import changes from coreutils.
61520
61521 2004-08-05  Simon Josefsson  <jas@extundo.com>
61522
61523         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
61524
61525 2004-08-05  Simon Josefsson  <jas@extundo.com>
61526
61527         * m4/getsubopt.m4: New file.
61528
61529 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61530
61531         Merge from coreutils.
61532
61533         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
61534         * m4/getcwd-path-max.m4: New files.
61535
61536         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
61537         FILESYSTEM_PREFIX_LEN ->
61538         FILE_SYSTEM_PREFIX_LEN.
61539         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
61540         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
61541         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
61542         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
61543
61544         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
61545         prerequisite modules now handle the DOS stuff.
61546         Don't check for unistd.h.
61547
61548 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61549
61550         Merge from coreutils.
61551
61552         * lib/.gdb-history: Remove; this doesn't belong here.
61553
61554         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
61555         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
61556         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
61557         * lib/getcwd.c: New files.
61558
61559         * lib/dirname.h: Include <stdbool.h>.
61560         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
61561         for consistency with POSIX terminology.  All uses changed.
61562         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
61563         (strip_trailing_slashes): Use bool for booleans.
61564         * lib/stripslash.c (strip_trailing_slashes): Likewise.
61565
61566         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
61567         sometimes returns a positive errno value even when it succeeds.
61568         (print_errno_message) [!LIBC]: Fall back on strerror if
61569         __strerror_r fails.
61570
61571         * lib/path-concat.c (mempcpy): Don't define if a system header defines
61572         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
61573         (longest_relative_suffix): New function.
61574         (path_concat): Use it.  Assume first argument is not NULL.
61575         Port to DOS.  Omit redundant separators.
61576         Report an error instead of returning NULL.
61577         Use mempcpy instead of memcpy.
61578         (xpath_concat): Remove: not declared or used.
61579
61580         * lib/same.h: Include <stdbool.h>
61581         (same_name): Return bool, not int.
61582         * lib/same.c (same_name): Likewise.
61583         (errno): Don't declare; we assume C89 or better now.
61584
61585         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
61586         if not already defined.
61587
61588         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
61589         * lib/dup-safer.c (errno): Likewise.
61590
61591 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
61592
61593         Merge from coreutils.
61594         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
61595         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
61596         * modules/path-concat: Don't depend on strdup.
61597
61598 2004-08-03  Simon Josefsson  <jas@extundo.com>
61599
61600         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
61601         * lib/progname.h: Don't include stdbool.h.
61602
61603 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61604
61605         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
61606         * MODULES.html.sh (func_all_modules): Remove fatal.
61607
61608 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61609
61610         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
61611
61612 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
61613
61614         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
61615         working.
61616
61617 2004-08-02  Simon Josefsson  <jas@extundo.com>
61618
61619         * lib/getsubopt.h: New file, with comments from Bruno Haible.
61620         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
61621         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
61622
61623 2004-08-01  Simon Josefsson  <jas@extundo.com>
61624
61625         * lib/xgetdomainname.c: Include stdlib.h, for free().
61626
61627 2004-07-19  Bruno Haible  <bruno@clisp.org>
61628
61629         * MODULES.html.sh (func_all_modules): Add dummy.
61630
61631 2004-07-16  Simon Josefsson  <jas@extundo.com>
61632
61633         * modules/dummy: New file.
61634
61635 2004-07-16  Simon Josefsson  <jas@extundo.com>
61636
61637         * lib/dummy.c: New file.
61638
61639 2004-07-16  Bruno Haible  <bruno@clisp.org>
61640
61641         * lib/backupfile.h: Add extern "C" for C++.
61642         * lib/closeout.h: Likewise.
61643         * lib/copy-file.h: Likewise.
61644         * lib/findprog.h: Likewise.
61645         * lib/full-write.h: Likewise.
61646         * lib/pathname.h: Likewise.
61647         * lib/progname.h: Likewise.
61648         * lib/stpcpy.h: Likewise.
61649         * lib/stpncpy.h: Likewise.
61650         * lib/strcase.h: Likewise.
61651         * lib/strstr.h: Likewise.
61652         * lib/xalloc.h: Likewise.
61653
61654         * lib/mbswidth.h: Add extern "C" for C++.
61655         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
61656
61657 2004-07-13  Robert Millan  <robertmh@gnu.org>
61658
61659         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
61660
61661 2004-07-09  Simon Josefsson  <jas@extundo.com>
61662
61663         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
61664         failed without this.)
61665
61666 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61667
61668         * modules/chown (Files): Add lib/fchown-stub.c, since
61669         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
61670
61671 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61672
61673         * lib/fchown-stub.c: New file.
61674
61675 2004-06-24  Jim Meyering  <jim@meyering.net>
61676
61677         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
61678
61679 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61680
61681         * modules/argz: Omit "#include".
61682
61683         * MODULES.html.sh (func_all_modules): Add calloc, to match
61684         2004-06-01 addition of calloc module.
61685
61686 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61687
61688         * m4/argz.m4: New file, which is autoupdated from libtool.
61689
61690 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61691
61692         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
61693         libtool.
61694
61695 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
61696
61697         * config/srclist-update: Don't insist on "USA." before the
61698         close-comment, as libtool omits the period and puts the */ on a
61699         separate line.
61700         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
61701         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
61702
61703 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
61704
61705         * modules/argz: New file.
61706         * MODULES.html.sh (func_all_modules): Add argz.
61707
61708 2004-06-12  Jim Meyering  <jim@meyering.net>
61709         and  Paul Eggert  <eggert@cs.ucla.edu>
61710
61711         * modules/hash (Files): Add lib/xalloc.h.
61712         * modules/pipe (Depends-on): Add wait-process.
61713         * modules/stat (Depends-on): Add xalloc.
61714         * modules/userspec (Files): Add lib/userspec.h.
61715         * modules/xstrto
61716
61717         Upgrade from gettext-0.13.
61718         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
61719         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
61720         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
61721
61722 2004-06-10  Jim Meyering  <jim@meyering.net>
61723
61724         * lib/calloc.c: New file.
61725
61726 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61727
61728         * lib/getdate.y (yylex): Allow space between sign and number.
61729         Problem reported by Dan Jacobson.
61730
61731 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61732
61733         Merge from coreutils CVS.
61734
61735         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
61736         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
61737         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
61738         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
61739         xstrtol.m4: Fix copyright date and/or serial number.
61740
61741         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
61742         See if we need an fchown replacement.
61743         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
61744         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
61745         and use the replacement function if we detect either defect.
61746
61747         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
61748         gl_UTIMECMP.
61749
61750 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61751         and  Jim Meyering  <jim@meyering.net>
61752
61753         Merge from coreutils CVS.
61754
61755         * lib/stat-macros.h: New file, with contents from file-type.h
61756         and coreutils' system.h.
61757         * lib/file-type.c: Include "stat-macros.h".
61758         * lib/file-type.h (file_type): Move all macro definitions to new file,
61759         stat-macros.h.
61760
61761         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
61762         Wrap old code with this conditional.
61763         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
61764         function that does not dereference symlinks.
61765         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
61766
61767         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
61768         dependency problems.
61769         (xreadlink): Accept new arg SIZE, for efficiency.
61770         All decls and uses changed.
61771         * lib/xreadlink.h: Include <stddef.h>, for size_t.
61772
61773         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
61774         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
61775
61776         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
61777         sysexits.h.
61778
61779 2004-06-01  Jim Meyering  <jim@meyering.net>
61780
61781         * m4/calloc.m4: New file.
61782
61783 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
61784
61785         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
61786         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
61787         Also, fix a typo in a diagnostic.
61788
61789 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61790
61791         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
61792         or AC_FUNC_REALLOC.
61793
61794 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61795
61796         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
61797         macros to be defined.
61798         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
61799         the allocator returns NULL because the requested size is zero.
61800
61801 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61802
61803         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
61804         var.  Add comment explaining why libc still defines it.  This
61805         merges the following patch from glibc:
61806         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
61807
61808 2004-05-20  Andreas Schwab  <schwab@suse.de>
61809
61810         * m4/free.m4: Replace free if it not known to work, not the other
61811         way round.
61812
61813 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61814
61815         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
61816         present in glibc since revision 1.1 of this file.
61817         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
61818         obstack_alignment_mask, obstack_alloc, obstack_base,
61819         obstack_blank, obstack_blank_fast, obstack_chunk_size,
61820         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
61821         obstack_grow0, obstack_init, obstack_int_grow,
61822         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
61823         obstack_next_free, obstack_object_size, obstack_ptr_grow,
61824         obstack_ptr_grow_fast, obstack_room): Remove declarations of
61825         nonexistent functions.
61826
61827 2004-05-18  Karl Berry  <karl@gnu.org>
61828
61829         * config/srclist.txt: break link for vasnprintf.c.
61830
61831 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61832
61833         Port obstack to the AS/400, where pointers are 16 bytes wide and
61834         you cannot cast an integer to a valid pointer.  This patch is
61835         currently waiting to be integrated into glibc; see
61836         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
61837
61838         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
61839         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
61840         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
61841         (struct obstack): temp member is now a union of a pointer and
61842         an integer, instead of an integer.  All integer uses changed.
61843         This does not affect the physical layout of struct obstack,
61844         except on hosts (like the AS/400) where the size or alignment of
61845         void * is greater than that of ptrdiff_t.
61846         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
61847         __STDC__)]: Store temporary in pointer member of union, not
61848         integer member.
61849         * lib/obstack.c: Include <stddef.h>, for offsetof.
61850         (struct fooalign): Remove; it doesn't need a name.
61851         (union fooround): Change double to long double, and add void *.
61852         (DEFAULT_ALIGNMENT): Use offsetof to compute.
61853         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
61854         not a macro.  Hence the values are always int; so remove all
61855         casts-to-int in uses.
61856
61857 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61858
61859         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
61860         we can get this patch merged into glibc.
61861
61862 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61863             Paul Eggert  <eggert@cs.ucla.edu>
61864
61865         * m4/argp: Depend on alloca.
61866
61867 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61868             Paul Eggert  <eggert@cs.ucla.edu>
61869
61870         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
61871         freecoding.
61872
61873 2004-05-17  Bruno Haible  <bruno@clisp.org>
61874
61875         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
61876         precision that consists of a '.' followed by an empty digit string.
61877         Patch by Tor Lillqvist <tml@iki.fi>.
61878
61879 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61880
61881         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
61882         for backward compatibility with older code.  We need our own
61883         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
61884         it under some other name, and our alloca.h will define it.
61885
61886 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61887             Derek Price  <derek@ximbiot.com>
61888
61889         * lib/alloca.c: Include <alloca.h>, to get our interface.
61890         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
61891         include <alloca.h> first.  Use C89 prototype for alloca; this
61892         requires including <stddef.h> for size_t.  Use extern "C" if C++.
61893         Use #elif for simplicity, since we can assume C89 now.
61894         Don't try to source the system alloca.h since it will not be found
61895         and to prevent recursively including its replacement.
61896         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
61897         * lib/regex.c: Likewise.
61898
61899 2004-05-16  Derek Price  <derek@ximbiot.com>
61900             Paul Eggert  <eggert@cs.ucla.edu>
61901
61902         getline cleanup.  This changes the getndelim2 API: both order of
61903         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
61904         no delimiter).
61905
61906         * lib/getline.c: Don't include stddef.h or stdio.h, since our
61907         interface does that.
61908         (getline): Always use getdelim, so that we don't have two
61909         copies of this code.
61910         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
61911         if available.
61912         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
61913         (GETNDELIM2_MAXIMUM): New macro.
61914         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
61915         instead of the old practice of delim2==0.  All callers changed.
61916         Return -1 on overflow, instead of returning junk.
61917         Do not set *linesize unless allocation succeeds.
61918         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
61919         that we include sys/types.h.
61920         * lib/getnline.h: Likewise.
61921         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
61922         (getndelim2): Reorder arguments.
61923         * lib/getnline.c (getnline, getndelim):
61924         Don't discard the NMAX argument.
61925         (getnline): Invoke getndelim, to avoid code duplication.
61926         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
61927         of (size_t) -1 by callers of the getnline family.
61928
61929 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61930
61931         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
61932         Check for gettimeofday.
61933         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
61934         Check for settimeofday, stime.
61935
61936 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61937
61938         * lib/nanosleep.c (suspended): Change its type from int to
61939         sig_atomic_t volatile.
61940         (first_call): Make it private to rpl_nanosleep, and have it
61941         be zero initially as that's a bit faster.
61942         (my_usleep): Round up fractional times instead of truncating them,
61943         as this is the usual meaning for 'sleep'.
61944
61945         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
61946         doesn't work.
61947         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
61948         (ENOSYS): Define if not defined.
61949         (settime): Fall back on stime if it exists and settimeofday fails.
61950         But don't bother with fallbacks if a method fails with errno == EPERM.
61951
61952 2004-05-11  Jim Meyering  <jim@meyering.net>
61953
61954         Prior to this change, the save_cwd caller required read access to the
61955         current directory on most systems (ones with the fchdir function).
61956
61957         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
61958         fails, try write-only, and finally, resort to using xgetcwd.
61959
61960 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
61961
61962         * lib/obstack.c, obstack.h: Import changes from libc.
61963
61964 2004-04-28  Bruno Haible  <bruno@clisp.org>
61965
61966         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
61967         also implicitly appends .exe to executables.
61968         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
61969         accepts Windows pathnames.
61970         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
61971         Treat Cygwin like Windows, since it now accepts Windows pathnames.
61972         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
61973         Treat Cygwin like Windows, since it now accepts Windows pathnames.
61974         Reported by Derek Robert Price <derek@ximbiot.com>.
61975
61976 2004-04-21  Karl Berry  <karl@gnu.org>
61977
61978         * config/srclist.txt (localcharset.c): break sync.
61979
61980 2004-04-20  Paul Eggert  <eggert@twinsun.com>
61981
61982         * m4/host-os.m4: Add a copyright notice.
61983
61984 2004-04-20  Jim Meyering  <jim@meyering.net>
61985
61986         Change UTILS_ to gl_ in AC_DEFINE'd names.
61987         Change utils_- and jm_-prefixed variables, too.
61988         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
61989         UTILS_FUNC_MKDIR_TRAILING_SLASH.
61990         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
61991
61992         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
61993         Don't emit trailing blanks.
61994         Also rename jm_-prefixed variables to have gl_ prefix.
61995
61996         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
61997         Also rename jm_-prefixed variables to have gl_ prefix.
61998
61999         * m4/jm-macros.m4: Reflect the renamings.
62000         * m4/prereq.m4: Likewise.
62001
62002 2004-04-20  Jim Meyering  <jim@meyering.net>
62003
62004         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
62005         memory.
62006
62007 2004-04-20  Jim Meyering  <jim@meyering.net>
62008             Bruno Haible  <bruno@clisp.org>
62009
62010         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
62011         memory when realloc fails.
62012
62013 2004-04-19  Jim Meyering  <jim@meyering.net>
62014
62015         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
62016         now that readutmp.c may call `free (0)'.
62017
62018 2004-04-19  Bruno Haible  <bruno@clisp.org>
62019
62020         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
62021         * m4/inttypes_h.m4: Likewise.
62022         * m4/stdint_h.m4: Likewise.
62023         * m4/intmax_t.m4: Likewise.
62024         * m4/uintmax_t.m4: Likewise.
62025
62026 2004-04-18  Jim Meyering  <jim@meyering.net>
62027
62028         * m4/prereq.m4: Don't forbid jm_ prefix.
62029
62030         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
62031         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
62032         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
62033         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
62034         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
62035         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
62036         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
62037         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
62038         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
62039         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
62040         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
62041         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
62042         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
62043         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
62044         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
62045         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
62046         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
62047         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
62048         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
62049
62050 2004-04-18  Jim Meyering  <jim@meyering.net>
62051
62052         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
62053         failure, don't leak memory and do call END_UTMP_ENT.
62054
62055 2004-04-16  Jim Meyering  <jim@meyering.net>
62056
62057         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
62058         coreutils' stat program.
62059         (gl_PREREQ): Don't require jm_PREREQ_STAT.
62060
62061 2004-04-11  Paul Eggert  <eggert@twinsun.com>
62062
62063         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
62064         C89.
62065         (CHAR_BIT): Remove, since we assume C89.
62066         Include <stdint.h> if available, as per current Autoconf CVS advice.
62067
62068 2004-03-31  Jim Meyering  <jim@meyering.net>
62069
62070         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
62071         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
62072         * m4/xalloc.m4: Likewise.
62073
62074 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62075
62076         Merge from coreutils.
62077
62078         * m4/inttostr.m4: New file.
62079         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
62080         Require AM_STDBOOL_H and gl_TIMESPEC instead.
62081         Require gl_CLOCK_TIME.
62082         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
62083
62084 2004-03-30  Paul Eggert  <eggert@twinsun.com>
62085
62086         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
62087         not bool, to be more consistent with Unix conventions.
62088         Suggested by Bruno Haible.
62089
62090         Merge from coreutils.
62091
62092         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
62093         * lib/umaxtostr.c: New files.
62094
62095         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
62096         the usual <time.h> dance.
62097         (get_date): Change signature to support fractional time stamps.
62098         All callers changed.
62099         * lib/getdate.y: Include "getdate.h" first, as we can now
62100         assume C89 and don't need to worry about 'const'.
62101         Similarly, include "unlocked-io.h" near start, not in middle.
62102         Include <limits.h>.
62103         (textint.value): Use long int rather than int.
62104         (textint.digits): Use size_t rather than int.
62105         (BILLION, LOG10_BILLION): New constants.
62106         (parser_control): New member rel_ns.  Members day_ordinal,
62107         time_zone, month, day, hour, minutes, rel_year, rel_month,
62108         rel_day, rel_hour, rel_minutes, rel_seconds
62109         are now long int, not int.  Member seconds is now struct timespec,
62110         not int.  New member timespec_seen.  Members dates_seen, days_seen,
62111         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
62112         not int.
62113         (%union.intval): Now long int, not int.
62114         New member timespec.
62115         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
62116         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
62117         (spec): Now is a timespec or an item list.
62118         (timespec, items): New nonterminals.
62119         (time, rel, relunit, number, get_date):
62120         Add support for fractional seconds.
62121         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
62122         (gmtime, localtime, mktime): Remove decls; not needed with C89.
62123         (to_hour): First arg is now long int, not int.
62124         (to_year): Returns long int, not int.
62125         Don't treat year -70 like 70.
62126         (tm_diff): Returns long int, not int.
62127         (lookup_word): Use bool instead of int when appropriate.
62128         (yylex): Use size_t for count, not int.
62129         Detect overflow when parsing large integer constants.
62130         Add support for fractions.
62131         (get_date): Make pointers 'const' if possible.
62132         Use more-portable code to detect integer overflow.
62133         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
62134         Don't use ctime; it's not reliable if the year has >4 digits.
62135
62136         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
62137         This is for compatibility with BSD.
62138
62139         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
62140         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
62141         From coreutils' system.h.
62142
62143         * lib/userspec.c: Don't include "posixver.h".
62144         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
62145         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
62146         compatible extension.  Simplify code by removing a boolean int
62147         that was always nonzero if a string was nonnull.
62148
62149 2004-03-30  Jim Meyering  <jim@meyering.net>
62150
62151         Merge from coreutils.
62152
62153         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
62154         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
62155         on some systems one must include <grp.h> before it.
62156         Reported by Christian Krackowizer.
62157
62158 2004-03-30  Jim Meyering  <jim@meyering.net>
62159
62160         Merge from coreutils.
62161
62162         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
62163
62164         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
62165         an empty input stream.
62166
62167         * lib/readtokens.c: Include <stdbool.h>.
62168         (readtoken): Use `size_t' rather than int/long.
62169         All callers adjusted.
62170         Use `bool' rather than `int' where appropriate.
62171         Use memset rather than an explicit loop.
62172         Use x2nrealloc rather than xrealloc.
62173         Allow the use of `\0' as a delimiter.
62174         (readtokens): Likewise.
62175         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
62176
62177 2004-03-30  Jim Meyering  <jim@meyering.net>
62178
62179         * m4/realloc.m4: Remove file, since now it does no more than
62180         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
62181         the `configure.ac' section of module/realloc.
62182         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
62183
62184 2004-03-30  Bruno Haible  <bruno@clisp.org>
62185
62186         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
62187         nonnull.
62188
62189 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62190
62191         Merge changes to getloadavg.c from coreutils and Emacs.
62192
62193         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
62194         Define to an expression, not to the empty string.
62195         Include cloexec.h and xalloc.h.
62196         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
62197         Use set_cloexec_flag rather than rolling our own.
62198         * lib/cloexec.c, lib/cloexec.h: New files.
62199
62200 2004-03-29  Paul Eggert  <eggert@twinsun.com>
62201
62202         * m4/cloexec.m4: New file.
62203
62204 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62205
62206         * lib/getopt.h: Sync with libc CVS.
62207
62208 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62209             Bruno Haible  <bruno@clisp.org>
62210
62211         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
62212         mbswidth.
62213
62214 2004-03-18  Paul Eggert  <eggert@twinsun.com>
62215             Bruno Haible  <bruno@clisp.org>
62216
62217         * lib/mbswidth.h: Include <wchar.h> only if
62218         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
62219         <wchar.h>.
62220         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
62221
62222 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62223
62224         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
62225         Sync with libc CVS.
62226         * lib/getopt_int.h: New file, also synced from libc.
62227
62228 2004-03-09  Paul Eggert  <eggert@twinsun.com>
62229
62230         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
62231         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
62232         Bring back getopt.c, getopt.h, getopt1.c.
62233
62234 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62235
62236         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
62237         All uses changed.  Check for sa_sigaction member; this fixes
62238         a bug first reported by Jason Andrade in
62239         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62240
62241 2004-03-07  Paul Eggert  <eggert@twinsun.com>
62242
62243         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
62244         '#if' expressions.  Unlike the code it replaces, it does not
62245         depend on (defined _SC_PAGESIZE).  However, it does depend on
62246         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
62247         first reported by Jason Andrade in
62248         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
62249
62250 2004-02-25  Simon Josefsson  <jas@extundo.com>
62251
62252         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
62253
62254 2004-02-25  Simon Josefsson  <jas@extundo.com>
62255
62256         * lib/strdup.h: New file.
62257         * lib/strdup.c: Include it.
62258         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
62259         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
62260
62261 2004-02-23  Karl Berry  <karl@gnu.org>
62262
62263         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
62264         (from fencepost.gnu.org:/gd/gnuorg).
62265
62266 2004-02-23  Karl Berry  <karl@gnu.org>
62267
62268         * config/srclistvars.sh (GNUORG) [karl]: redefine.
62269         * config/srclist.txt: add maintain/standards documents.
62270
62271 2004-02-18  Bruno Haible  <bruno@clisp.org>
62272
62273         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
62274         Reported by Derek Robert Price <derek@ximbiot.com>.
62275
62276 2004-02-16  Karl Berry  <karl@gnu.org>
62277
62278         * config/mkinstalldirs, install-sh: update from automake.
62279
62280 2004-02-06  Karl Berry  <karl@gnu.org>
62281
62282         * m4/po.m4: update from gettext 0.14.1.
62283
62284 2004-02-06  Karl Berry  <karl@gnu.org>
62285
62286         * lib/config.charset: update from gettext 0.14.1.
62287
62288 2004-02-05  Paul Eggert  <eggert@twinsun.com>
62289
62290         Add comments and code, prompted by suggestions from Bruno Haible
62291         for sh-quote.
62292         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
62293         describing the enum quoting_style values.
62294         * lib/quotearg.c (quotearg_alloc): New function.
62295         (quotearg_buffer_restyled): Treat lone { and } as special.
62296         Treat = as special.  Work around bug with older shells
62297         that "see" a '\' that is really the 2nd byte of a multibyte char.
62298         Quote empty string with shell_quoting_style.
62299
62300 2004-02-03  Bruno Haible  <bruno@clisp.org>
62301
62302         * m4/pipe.m4: New file, from GNU gettext.
62303
62304 2004-02-03  Bruno Haible  <bruno@clisp.org>
62305
62306         * lib/pipe.h: New file, from GNU gettext.
62307         * lib/pipe.c: New file, from GNU gettext.
62308
62309 2004-01-27  Bruno Haible  <bruno@clisp.org>
62310
62311         * m4/execute.m4: New file, from GNU gettext.
62312
62313 2004-01-27  Bruno Haible  <bruno@clisp.org>
62314
62315         * lib/execute.h: New file, from GNU gettext.
62316         * lib/execute.c: New file, from GNU gettext.
62317         * lib/w32spawn.h: New file, from GNU gettext.
62318
62319 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62320
62321         Merge from diffutils.
62322
62323         * lib/file-type.c (file_type): Add typed memory objects.
62324         * lib/file-type.h (S_TYPEISTMO): New macro.
62325
62326         * lib/c-stack.h (c_stack_action): Remove argv argument.
62327         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
62328         (die): Don't calculate message unless segv_action returns.
62329         (get_stack_location, min_address_from_argv, max_address_from_argv,
62330         volatile stack_base, volatile_stack_size): Remove.
62331         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
62332         that every segmentation violation is a stack overflow.  (Ouch!)
62333         See Debian bug 136249 (still outstanding) for more info about why
62334         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
62335
62336 2004-01-24  Paul Eggert  <eggert@twinsun.com>
62337
62338         Exit-status fix from coreutils.
62339
62340         Use exit_failure consistently in place of EXIT_FAILURE,
62341         so that program exit statuses are consistent on failure.
62342
62343         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
62344         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
62345         * lib/argmatch.h: Comment fix to match the above.
62346         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
62347         Now a macro referring to exit_failure, instead of a separate
62348         variable.  Include "exitfail.h" to get it.
62349         * lib/xstrtol.h: Include "exitfail.h".
62350         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
62351
62352         * lib/long-options.c (parse_long_options): Use prototype
62353         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
62354         for clarity.
62355
62356 2004-01-21  Jim Meyering  <jim@meyering.net>
62357
62358         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
62359         so as not to conflict with a different-sized __mktime_internal
62360         function in GNU libc.
62361         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
62362         Problem building statically-linked `ls' reported by Michael Brunnbauer.
62363
62364 2004-01-20  Karl Berry  <karl@gnu.org>
62365
62366         * config/config.guess: update from config.
62367
62368         * config/srclistvars.sh: GNUWWWLICENSES for karl.
62369
62370 2004-01-20  Bruno Haible  <bruno@clisp.org>
62371
62372         Safer stack allocation.
62373         * lib/setenv.c: Include allocsa.h.
62374         (alloca): Remove fallback definition.
62375         (freea): Remove macro.
62376         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
62377         instead of freea.
62378
62379 2004-01-20  Bruno Haible  <bruno@clisp.org>
62380
62381         * m4/eealloc.m4: New file, from GNU gettext.
62382
62383 2004-01-20  Bruno Haible  <bruno@clisp.org>
62384
62385         * m4/allocsa.m4: New file, from GNU gettext.
62386
62387 2004-01-20  Bruno Haible  <bruno@clisp.org>
62388
62389         * lib/xallocsa.h: New file, from GNU gettext.
62390         * lib/xallocsa.c: New file, from GNU gettext.
62391
62392 2004-01-20  Bruno Haible  <bruno@clisp.org>
62393
62394         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
62395
62396 2004-01-20  Bruno Haible  <bruno@clisp.org>
62397
62398         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
62399         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
62400         specially.
62401
62402 2004-01-20  Bruno Haible  <bruno@clisp.org>
62403
62404         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
62405         patch.
62406
62407 2004-01-20  Bruno Haible  <bruno@clisp.org>
62408
62409         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
62410
62411 2004-01-20  Bruno Haible  <bruno@clisp.org>
62412
62413         * lib/eealloc.h: New file.
62414
62415 2004-01-20  Bruno Haible  <bruno@clisp.org>
62416
62417         * lib/binary-io.h: Avoid warnings on Cygwin.
62418
62419 2004-01-20  Bruno Haible  <bruno@clisp.org>
62420
62421         * lib/allocsa.h: New file, from GNU gettext.
62422         * lib/allocsa.c: New file, from GNU gettext.
62423
62424 2004-01-18  Karl Berry  <karl@gnu.org>
62425
62426         * doc/gpl.texi, doc/lgpl.texi: new files.
62427
62428 2004-01-18  Karl Berry  <karl@gnu.org>
62429
62430         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
62431         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
62432
62433 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62434
62435         Merge from coreutils.
62436
62437         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
62438         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
62439         (gl_DEFAULT_POSIX2_VERSION): Move
62440         the documentation from 'configure' into 'config.hin',
62441         so that 'configure --help' isn't burdened by it and
62442         we don't have to worry about its formatting there.
62443         Reword the documentation so that it's more succinct
62444         and can be run together into a single paragraph.
62445         * m4/same.m4 (gl_SAME): Check for pathconf.
62446
62447 2004-01-15  Paul Eggert  <eggert@twinsun.com>
62448
62449         Merge from coreutils.
62450
62451         * lib/posixver.c: Include posixver.h.
62452
62453         * lib/same.c: Include <stdbool.h>, <limits.h>.
62454         (_POSIX_NAME_MAX): Define if not defined.
62455         (MIN): New macro.
62456         (same_name): If file names are silently truncated, report
62457         that the file names are the same if they are the same after
62458         the silent truncation.
62459
62460         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
62461         conversion function.
62462         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
62463         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
62464         longer needed.
62465
62466 2004-01-15  Jim Meyering  <jim@meyering.net>
62467
62468         Merge from coreutils.
62469
62470         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
62471         if no library is required.
62472         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
62473         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
62474         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
62475         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
62476         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
62477         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
62478         value, $ac_cv_search_crypt, if it's "none required".
62479         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
62480         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
62481         not gl_FUNC_GETLOADAVG.
62482         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
62483         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
62484
62485 2004-01-15  Jim Meyering  <jim@meyering.net>
62486
62487         Merge from coreutils.
62488
62489         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
62490         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
62491         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
62492
62493         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
62494         optional configure-time default.
62495
62496         * lib/version-etc.c (version_etc_copyright): Update copyright date.
62497
62498         * lib/xreadlink.c (xreadlink): Correct outdated comment.
62499
62500 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
62501
62502         Merge from coreutils.
62503
62504         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
62505         value, $ac_cv_search_nanosleep, if it's "none required".
62506
62507 2004-01-14  Paul Eggert  <eggert@twinsun.com>
62508
62509         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
62510         with like-named macro in fnmatch.c.
62511         (EXT): Use an internal constant instead.
62512
62513         Merge fnmatch patches from glibc.
62514         * lib/fnmatch.c (mbsinit): Remove define.
62515         Add libc_hidden_ver (__fnmatch, fnmatch).
62516         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
62517         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
62518
62519 2004-01-14  Karl Berry  <karl@gnu.org>
62520
62521         * config/install-sh: update from automake.
62522
62523 2004-01-13  Karl Berry  <karl@gnu.org>
62524
62525         * config/install-sh: update from automake.
62526
62527 2004-01-09  Karl Berry  <karl@gnu.org>
62528
62529         * config/install-sh: update from automake.
62530
62531 2004-01-05  Karl Berry  <karl@gnu.org>
62532
62533         * config/config.{sub,guess}: update from config.
62534
62535 2003-12-31  Karl Berry  <karl@gnu.org>
62536
62537         * config/depcomp: update from automake.
62538
62539 2003-12-14  Karl Berry  <karl@gnu.org>
62540
62541         * lib/config.charset: update from gettext-runtime.
62542
62543 2003-12-03  Paul Eggert  <eggert@twinsun.com>
62544
62545         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
62546         Bug reported by Alfred M. Szmidt.
62547
62548 2003-12-03  Bruno Haible  <bruno@clisp.org>
62549
62550         * m4/gettext.m4: Upgrade from gettext-0.13.
62551         * m4/po.m4: Upgrade from gettext-0.13.
62552         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
62553         * m4/intmax.m4: New file, from gettext-0.13.
62554         * m4/printf-posix.m4: New file, from gettext-0.13.
62555
62556 2003-11-29  Karl Berry  <karl@gnu.org>
62557
62558         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
62559
62560 2003-11-25  Paul Eggert  <eggert@twinsun.com>
62561             Bruno Haible  <bruno@clisp.org>
62562
62563         * lib/printf-parse.h: Don't include sys/types.h.
62564         (ARG_NONE): New macro.
62565         (char_directive): Change type of *arg_index fields to size_t.
62566         * lib/printf-parse.c: Don't include sys/types.h.
62567         (SSIZE_MAX): Remove macro.
62568         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
62569         Remove unnecessary overflow check.
62570         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
62571         fields.
62572
62573 2003-11-25  Bruno Haible  <bruno@clisp.org>
62574
62575         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
62576
62577 2003-11-25  Bruno Haible  <bruno@clisp.org>
62578
62579         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
62580         gt_TYPE_SSIZE_T.
62581
62582 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62583
62584         * modules/alloca: Remove dependency on xalloc.
62585
62586 2003-11-24  Paul Eggert  <eggert@twinsun.com>
62587
62588         * lib/alloca.c: Remove dependency on xalloc module.
62589         (xalloc_die): Remove.
62590         (memory_full) [!defined emacs]: New macro.
62591         [!defined emacs]: Don't include xalloc.h.
62592         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
62593         address arithmetic overflows.  Change datatypes a bit to avoid
62594         unnecessary casts.
62595
62596 2003-11-22  Jim Meyering  <jim@meyering.net>
62597
62598         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
62599         s/size/size_t/.
62600
62601 2003-11-21  Karl Berry  <karl@gnu.org>
62602
62603         * config/config.{sub,guess}: update from config.
62604
62605 2003-11-18  Karl Berry  <karl@gnu.org>
62606
62607         * config/config.{sub,guess}: update from config.
62608
62609         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
62610
62611 2003-11-17  Paul Eggert  <eggert@twinsun.com>
62612
62613         * README: Mention that S+T cannot overflow if S is the size of
62614         an existing object and T is sufficiently small.
62615
62616 2003-11-17  Jim Meyering  <jim@meyering.net>
62617
62618         On systems without utime and without a utimes function capable of
62619         dealing with a NULL struct utimbuf* argument, this utime replacement
62620         could -- in unusual circumstances -- leak a file descriptor.
62621         * lib/utime.c: Include <unistd.h> and <errno.h>.
62622         (utime_null): Be sure to close `fd' and to preserve errno.
62623         Reported by Geoff Collyer via Arnold Robbins.
62624
62625 2003-11-17  Bruno Haible  <bruno@clisp.org>
62626
62627         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
62628         (Depends-on): Add xsize.
62629
62630 2003-11-17  Bruno Haible  <bruno@clisp.org>
62631
62632         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
62633
62634 2003-11-17  Bruno Haible  <bruno@clisp.org>
62635
62636         * lib/vasnprintf.c (alloca): Remove fallback definition.
62637         (freea): Remove definition.
62638         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
62639         Reported by Paul Eggert.
62640
62641 2003-11-16  Paul Eggert  <eggert@twinsun.com>
62642             Bruno Haible  <bruno@clisp.org>
62643
62644         Protect against address arithmetic overflow.
62645         * lib/printf-args.h: Include stddef.h.
62646         (arguments): Change type of field 'count' to size_t.
62647         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
62648         'unsigned int' where appropriate.
62649         * lib/printf-parse.h: Include sys/types.h.
62650         (char_directive): Change type of *arg_index fields to ssize_t.
62651         (char_directives): Change type of fields 'count', max_*_length to
62652         size_t.
62653         * lib/printf-parse.c: Include sys/types.h and xsize.h.
62654         (SSIZE_MAX): Define fallback value.
62655         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
62656         instead of 'int' where appropriate. Check a_allocated, d_allocated
62657         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
62658         * lib/vasnprintf.c: Include xsize.h.
62659         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
62660         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
62661         overflow. Avoid wraparound when converting a width or precision from
62662         decimal to binary.
62663
62664 2003-11-16  Bruno Haible  <bruno@clisp.org>
62665
62666         Update from GNU gettext.
62667         * lib/printf-parse.c: Generalize to it can be compiled for wide
62668         strings.
62669         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
62670         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
62671         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
62672         SNPRINTF): New macros.
62673         Don't include <alloca.h> if the file is used inside libintl.
62674         (local_wcslen): New function, for Solaris 2.5.1.
62675         (VASNPRINTF): Use it instead of wcslen.
62676
62677 2003-11-16  Bruno Haible  <bruno@clisp.org>
62678
62679         * lib/xsize.h (xmax): New function.
62680         (xsum, xsum3, xsum4): Declare as "pure" functions.
62681
62682 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62683
62684         * modules/xalloc (Files): Undo latest change, since xalloc.h
62685         no longer needs SIZE_MAX or PTRDIFF_MAX.
62686
62687 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62688
62689         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
62690         gl_PTRDIFF_MAX.
62691
62692 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62693
62694         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
62695         "return", to pacify some unknown compiler.  Problem reported
62696         by Joerg Schilling.
62697
62698 2003-11-12  Paul Eggert  <eggert@twinsun.com>
62699
62700         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
62701         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
62702         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
62703         heuristic is just as accurate as far as we know, and it removes a
62704         dependency on size_max.m4 and ptrdiff_max.m4.
62705
62706 2003-11-11  Bruno Haible  <bruno@clisp.org>
62707
62708         * modules/xsize (Files): Add m4/size_max.m4.
62709         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
62710
62711 2003-11-11  Bruno Haible  <bruno@clisp.org>
62712
62713         * m4/size_max.m4: New file.
62714         * m4/ptrdiff_max.m4: New file.
62715         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
62716         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
62717         (gl_XALLOC): Invoke it.
62718
62719 2003-11-11  Bruno Haible  <bruno@clisp.org>
62720
62721         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
62722         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
62723         defined.
62724
62725 2003-11-10  Paul Eggert  <eggert@twinsun.com>
62726
62727         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
62728         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
62729         rejected some allocations of exactly SIZE_MAX - 2 bytes.
62730         From Bruno Haible.
62731         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
62732         not (size_t) -1, since it's defined here.
62733
62734 2003-11-09  Karl Berry  <karl@gnu.org>
62735
62736         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
62737
62738 2003-11-06  Paul Eggert  <eggert@twinsun.com>
62739
62740         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
62741         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
62742         Reject sizes of exactly SIZE_MAX bytes.
62743         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
62744         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
62745
62746 2003-11-05  Bruno Haible  <bruno@clisp.org>
62747
62748         * lib/xsize.h: Include limits.h, to avoid a possible collision with
62749         SIZE_MAX defined in <limits.h> on Solaris.
62750
62751 2003-11-04  Jim Meyering  <jim@meyering.net>
62752
62753         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
62754         variable names, rather than @VAR@.
62755         * modules/poll: Likewise.
62756
62757 2003-11-04  Bruno Haible  <bruno@clisp.org>
62758
62759         * modules/xsize: New file.
62760         * modules/linebreak: Depend on xsize.
62761         * MODULES.html.sh (func_all_modules): Add xsize.
62762
62763 2003-11-04  Bruno Haible  <bruno@clisp.org>
62764
62765         * m4/xsize.m4: New file.
62766
62767 2003-11-04  Bruno Haible  <bruno@clisp.org>
62768
62769         * lib/xsize.h: New file.
62770         * lib/linebreak.c: Include xsize.h.
62771         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
62772         argument for overflow.
62773         Suggested by Paul Eggert.
62774
62775 2003-11-03  Karl Berry  <karl@gnu.org>
62776
62777         * config/config.{guess,sub}: update from config.
62778
62779 2003-11-03  Jim Meyering  <jim@meyering.net>
62780
62781         * modules/userspec (lib_SOURCES): Add userspec.h.
62782         (Include): Add "userspec.h".
62783         Improve description.
62784
62785 2003-11-03  Jim Meyering  <jim@meyering.net>
62786
62787         * lib/userspec.c: Include "userspec.h".
62788         * lib/userspec.h: New file.
62789
62790 2003-11-03  Bruno Haible  <bruno@clisp.org>
62791
62792         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
62793
62794 2003-11-03  Bruno Haible  <bruno@clisp.org>
62795
62796         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
62797         available, to avoid (extremely rare) race condition.
62798         Suggested by Paul Eggert.
62799
62800 2003-11-02  Karl Berry  <karl@gnu.org>
62801
62802         * config/srclist.txt (vasprintf.c): sync broken, sigh.
62803
62804 2003-10-31  Paul Eggert  <eggert@twinsun.com>
62805
62806         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
62807         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
62808         (read_filesystem_list): Set and use me_type_malloced.
62809         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
62810         whatever the type happens to be), for brevity and consistency.
62811         Check for size calculation overflow on Alphas running OSF/1.
62812
62813 2003-10-31  Jim Meyering  <jim@meyering.net>
62814
62815         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
62816
62817         * lib/linebuffer.c: Include <string.h> for declaration of memset.
62818
62819 2003-10-30  Paul Eggert  <eggert@twinsun.com>
62820             Bruno Haible  <bruno@clisp.org>
62821
62822         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
62823         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
62824
62825 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62826
62827         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
62828         netbsd*-gnu*.  Suggested by Robert Millan.
62829
62830 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62831
62832         * modules/group-member: Depend on stdbool.
62833
62834 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62835
62836         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
62837
62838 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62839
62840         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
62841         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
62842         after the 'gnu' in these cases.  This fixes some bugs in the
62843         previous change, and is based on suggestions by Robert Millan.
62844
62845 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62846
62847         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
62848         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
62849         no longer needed.
62850         * lib/quotearg.c (quotearg_n_options): Use it.
62851         * lib/group-member.c: Include <stdbool.h>.
62852         (free_group_info): Arg is now const *; don't free arg.
62853         (get_group_info): Now returns bool and accepts struct group_info *,
62854         rather than returning a malloc'ed struct group_info *.
62855         All uses changed.  Check for overflow in internal size calculation.
62856
62857         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
62858         rather than xmalloc/xrealloc.
62859         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
62860         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
62861         conformance bug: the old code used a pointer after freeing the
62862         storage that it addressed.
62863         * lib/hash.c (hash_initialize): Simplify the code by using
62864         xalloc_oversized rather than doing it by hand.
62865         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
62866         the buffer preserved.  Use free and xmalloc instead.
62867         * lib/quotearg.c (quotearg_n_options): Likewise.
62868         Use a simpler test for size overflow.  Don't use xalloc_oversized
62869         because unsigned int might be wider than size_t (!); this suggests
62870         that we should switch from unsigned int to size_t for slot numbers.
62871
62872 2003-10-28  Paul Eggert  <eggert@twinsun.com>
62873
62874         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
62875         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
62876         NetBSD kernels.  Requested by Richard Stallman.
62877
62878 2003-10-27  Paul Eggert  <eggert@twinsun.com>
62879
62880         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
62881         to allocate the returned structure.  Do not allocate a subarray,
62882         as x2nrealloc will do that.
62883         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
62884         instead of xnrealloc.
62885         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
62886
62887 2003-10-27  Bruno Haible  <bruno@clisp.org>
62888
62889         * lib/stdbool_.h: Better support for BeOS.
62890
62891 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62892
62893         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
62894         now uses inline.
62895
62896 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62897
62898         * lib/xalloc.h (xalloc_oversized): New static inline function, for
62899         callers that want to do their own size-overflow checking.  Include
62900         <stdbool.h>, since xalloc_oversized returns bool.
62901         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
62902         to use xalloc_oversized.
62903
62904         Add two functions x2realloc, x2nrealloc, for programs that grow
62905         arrays dynamically by doubling their sizes.
62906         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
62907         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
62908         New functions.
62909
62910         Port to C99 semantics for 'inline' of external functions.
62911         Bug reported by Bruno Haible.
62912         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
62913         with the old contents of xnmalloc.
62914         (xnmalloc, xmalloc): Use it.
62915         (xnrealloc_inline): New static inline function,
62916         with the old contents of xnrealloc.
62917         (xnrealloc, xrealloc): Use it.
62918
62919         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
62920         that.
62921
62922 2003-10-26  Karl Berry  <karl@gnu.org>
62923
62924         * config/srclist.txt (COPYING.DOC): no longer available from
62925         /gd/gnuorg; don't know where the ultimate source is.
62926
62927 2003-10-25  Paul Eggert  <eggert@twinsun.com>
62928
62929         Fix several address-calculation bugs in the hash modules,
62930         plus some minor code cleanup.
62931
62932         * lib/hash.h: Include <stdbool.h>, for bool.
62933         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
62934         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
62935         hash_get_n_entries, hash_get_max_bucket_length,
62936         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
62937         hash_rehash): Use size_t rather than unsigned.
62938         * lib/hash.c (struct hash_table, hash_get_n_buckets,
62939         hash_get_n_buckets_used, hash_get_n_entries,
62940         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
62941         hash_get_entries, hash_do_for_each, hash_string, is_prime,
62942         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
62943         Likewise.
62944         (SIZE_MAX): Define if not defined.
62945         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
62946         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
62947         hash_print):
62948         Use const * when possible.
62949         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
62950         (check_tuning): Fix bug: if tuning parameters were very close to
62951         0 or 1, rounding errors could have caused subscript violations.
62952         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
62953         (hash_initialize): Add 'fail:' label
62954         to free table and return NULL, and use it to simplify code.
62955         Use calloc rather than clearing the storage ourself.
62956         (hash_initialize, hash_rehash): Check for arithmetic overflow in
62957         buffer size calculations.
62958         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
62959         Include <stddef.h>, for size_t.
62960         * lib/hash-pjw.c (hash_pjw): Likewise.
62961         Switch to method described by Bruno Haible.
62962         Include <limits.h>, for CHAR_BIT.
62963         (SIZE_BITS): New macro.
62964
62965 2003-10-23  Paul Eggert  <eggert@twinsun.com>
62966
62967         * m4/getline.m4 (AM_FUNC_GETLINE):
62968         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
62969         hosts.  Problem reported by Derek Robert Price in
62970         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
62971         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
62972         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
62973
62974 2003-10-21  Paul Eggert  <eggert@twinsun.com>
62975
62976         * lib/getndelim2.c (getndelim2): When size calculation overflows,
62977         ceiling the allocation at NMAX bytes rather than silently
62978         discarding input bytes before NMAX is reached.  This makes
62979         a difference only if NMAX exceeds SIZE_MAX / 2.
62980
62981         * lib/obstack.c: Merge from glibc.
62982         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
62983         Add libc_hidden_def (_obstack_newchunk).
62984         (_obstack_free) [! defined _LIBC]: Remove.
62985         [defined _LIBC]: Make a strong alias from obstack_free, rather than
62986         a clone of the function body.
62987         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
62988         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
62989
62990         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
62991         glibc.
62992         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
62993         arg to memcpy.
62994
62995         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
62996         (obstack_ptr_grow_fast, obstack_int_grow_fast):
62997         Don't use lvalue casts, as GCC plans to remove support for them
62998         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
62999         was also present in the non-GCC version, indicating that this
63000         code had always been buggy and had never been widely used.
63001         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
63002         Use the fast variant of each macro, rather than copying the
63003         definiens of the fast variant; that way, we'll be more likely to
63004         catch future bugs in the fast variants.
63005
63006 2003-10-20  Bruno Haible  <bruno@clisp.org>
63007
63008         * modules/wait-process: New file.
63009         * MODULES.html.sh (func_all_modules): Add wait-process.
63010
63011 2003-10-20  Bruno Haible  <bruno@clisp.org>
63012
63013         * m4/wait-process.m4: New file.
63014
63015 2003-10-20  Bruno Haible  <bruno@clisp.org>
63016
63017         * lib/wait-process.h: New file, from GNU gettext.
63018         * lib/wait-process.c: New file, from GNU gettext.
63019
63020 2003-10-19  Jim Meyering  <jim@meyering.net>
63021
63022         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
63023         HPUX 10.20.
63024
63025 2003-10-18  Karl Berry  <karl@gnu.org>
63026
63027         * config/config.guess: update from config.
63028
63029 2003-10-16  Paul Eggert  <eggert@twinsun.com>
63030
63031         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
63032         (getgroups): First arg is int, not size_t.
63033         Don't let 'free' mangle errno.
63034
63035 2003-10-16  Paul Eggert  <eggert@twinsun.com>
63036
63037         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
63038
63039 2003-10-16  Karl Berry  <karl@gnu.org>
63040
63041         * config/config.{guess,sub}: update from config.
63042
63043 2003-10-16  Jim Meyering  <jim@meyering.net>
63044
63045         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
63046         memcpy.
63047
63048 2003-10-15  Paul Eggert  <eggert@twinsun.com>
63049
63050         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
63051         (SIZE_MAX): Remove.
63052         (new_exclude, add_exclude_file): Initial size no longer needs to
63053         be a power of 2.
63054         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
63055         our own address arithmetic overflow checking.
63056
63057         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
63058         (fnmatch): Do not alloca more than 2000 wide characters;
63059         instead, use malloc for large buffers.
63060         Check for address arithmetic overflow, and return -1
63061         with errno set to ENOMEM in that case.
63062         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
63063         (NEW_PATTERN): Do not alloca more than 8000 bytes;
63064         instead, return -1.  Check for address arithmetic overflow.
63065
63066 2003-10-14  Paul Eggert  <eggert@twinsun.com>
63067
63068         Handle invalid suffixes and overflow independently, so that
63069         callers can treat them independently as needed.  Fix some bugs in
63070         suffix handling, e.g., "100k@" was not diagnosed as an invalid
63071         suffix for a human-readable blocksize.  The major caller-visible
63072         change is the addition of a new
63073         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
63074         that both overflow and suffix chars were found.
63075
63076         * lib/human.c (humblock): Don't check separately for invalid suffix
63077         char; that is xstrtoumax's job (now that its bug is fixed).
63078         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
63079         INTMAX_MAX]: New macros.
63080         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
63081         TYPE_MAXIMUM): New macros.
63082         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
63083         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
63084         if overflow occurs, as it's what __strtol does and it's more useful
63085         in practice.
63086         (__xstrtol): If __strtol reports some error other than ERANGE,
63087         reflect it to the caller as LONGINT_INVALID.  If it reports
63088         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
63089         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
63090         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
63091         value.
63092         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
63093         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
63094         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
63095         [defined UINTMAX_MAX]: New macros.
63096
63097 2003-10-14  Bruno Haible  <bruno@clisp.org>
63098
63099         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
63100
63101 2003-10-14  Bruno Haible  <bruno@clisp.org>
63102
63103         * m4/sig_atomic_t: New file, from GNU gettext.
63104         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
63105
63106 2003-10-14  Bruno Haible  <bruno@clisp.org>
63107
63108         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
63109         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
63110         Also use volatile where needed.
63111
63112 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63113
63114         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
63115         Change maintainer from Bruno Haible to 'all'.
63116
63117 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63118
63119         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
63120
63121 2003-10-12  Paul Eggert  <eggert@twinsun.com>
63122
63123         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
63124         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
63125         and define in terms of the other primitives.
63126         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
63127         (SIZE_MAX): Define if not already defined.
63128         (array_size_overflow): New function.
63129         (xalloc_die): Abort instead of exiting if 'error' returns.
63130         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
63131         (xmalloc, xrealloc): Use them.
63132         (xcalloc): Check for address arithmetic overflow.
63133         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
63134         a bit faster than strcpy.
63135
63136 2003-10-10  Simon Josefsson  <jas@extundo.com>
63137
63138         * modules/argp (Depends-on): Add restrict and strcase.
63139
63140 2003-10-10  Simon Josefsson  <jas@extundo.com>
63141
63142         * m4/argp.m4: Add AC_C_INLINE.
63143
63144 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63145
63146         Merge getpass from libc, plus a few fixes.
63147
63148         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
63149         Include <stdbool.h>.
63150         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
63151         __fsetlocking to empty.
63152         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
63153         do include <bits/libc-lock.h>.
63154         Do not include <fcntl.h>; not needed.
63155         [_LIBC]: Include <wchar.h>.
63156         (NOTCANCEL_MODE): New macro.
63157         (flockfile, funlockfile) [_LIBC]: New macros.
63158         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
63159         [!_LIBC]: New macros.
63160         (call_fclose): New function.
63161         (getpass): Use it.  Save tty stream separately; this simplifies the
63162         code and makes it more reliable if stdin happens to equal stdout.
63163         Invoke __fsetlocking on tty.
63164         Handle thread cancellation if needed.
63165         Namespace cleanup (use __tcgetattr, __getline).
63166         Use bool for Booleans.
63167         [USE_IN_LIBIO]: Handle wide streams.
63168         [!_LIBC]: Unconditionally do the fseek, since we don't know what
63169         stream might go where.
63170
63171         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
63172         doesn't have to include <stdio.h> before us.
63173         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
63174         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
63175         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
63176         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
63177         if not declared, so that we can use getpass.c code from libc without
63178         rewriting it.
63179         (flockfile, ftrylockfile, funlockfile): New macros.
63180
63181 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63182
63183         * modules/getpass: Depend on stdbool.
63184
63185 2003-10-08  Paul Eggert  <eggert@twinsun.com>
63186
63187         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
63188
63189 2003-10-07  Karl Berry  <karl@gnu.org>
63190
63191         * config/config.{guess,sub}: update from config.
63192
63193 2003-10-06  Jim Meyering  <jim@meyering.net>
63194             Bruno Haible  <bruno@clisp.org>
63195
63196         This lets translators provide better translations for the
63197         "Written by ..." part of --version output.
63198         * lib/version-etc.h: Include stdarg.h.
63199         (version_etc_copyright): Declare as readonly.
63200         (version_etc): Make this function variadic with a NULL-terminated list
63201         of author name strings.
63202         (version_etc_va): New declaration.
63203         * lib/version-etc.c: Include stdarg.h, stdlib.h.
63204         (version_etc_copyright): Declare as readonly.
63205         (version_etc_va): New function. Provide a different translatable string
63206         for each possible number of authors < 10. Abbreviate when there are 10
63207         authors or more.
63208         (version_etc): Make this function variadic. Call version_etc_va.
63209         Suggestion from Gary V. Vaughan.
63210
63211         * lib/long-options.h (parse_long_options): Change prototype: the
63212         authors string is moved to the end and becomes variadic.
63213         * lib/long-options.c: Include stdarg.h.
63214         (parse_long_options): Make this function variadic, too.
63215         Call version_etc_va, not version_etc.
63216
63217 2003-10-06  Bruno Haible  <bruno@clisp.org>
63218
63219         * modules/version-etc-2: Remove file.
63220         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
63221
63222 2003-10-06  Bruno Haible  <bruno@clisp.org>
63223
63224         * modules/fatal-signal: New file.
63225         * MODULES.html.sh (func_all_modules): Add fatal-signal.
63226
63227 2003-10-06  Bruno Haible  <bruno@clisp.org>
63228
63229         * m4/fatal-signal.m4: New file.
63230         * m4/signalblocking.m4: New file, from GNU gettext.
63231
63232 2003-10-06  Bruno Haible  <bruno@clisp.org>
63233
63234         * lib/version-etc-2.h: Remove file.
63235         * lib/version-etc-2.c: Remove file.
63236
63237 2003-10-06  Bruno Haible  <bruno@clisp.org>
63238
63239         * lib/fatal-signal.h: New file, from GNU gettext.
63240         * lib/fatal-signal.c: New file, from GNU gettext.
63241
63242 2003-10-05  Paul Eggert  <eggert@twinsun.com>
63243
63244         * README: Rework advice for preventing empty .o files.
63245         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
63246         not <sys/types.h>.
63247
63248 2003-10-04  Karl Berry  <karl@gnu.org>
63249
63250         * lib/argp*: update from libc.
63251
63252 2003-10-04  Karl Berry  <karl@gnu.org>
63253
63254         * config/config.{guess,sub}: update from config.
63255
63256 2003-10-02  Bruno Haible  <bruno@clisp.org>
63257
63258         * modules/lchown (Include): Add lchown.h.
63259         * modules/time_r (Include): Use "..." syntax.
63260         * modules/xgetdomainname (Include): Add xgetdomainname.h.
63261
63262 2003-10-01  Simon Josefsson  <jas@extundo.com>
63263
63264         * MODULES.html.sh (func_all_modules): Move gethostname from section
63265         'based on' to section 'lacking' POSIX:2001.
63266
63267 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
63268
63269         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
63270         to output mode on the same stream.
63271
63272 2003-09-29  Paul Eggert  <eggert@twinsun.com>
63273
63274         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
63275         Fix arg typo in previous patch.
63276
63277 2003-09-28  Jim Meyering  <jim@meyering.net>
63278
63279         * lib/error.c: Correct cpp indentation.
63280
63281 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63282
63283         * modules/free: New file.
63284
63285 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63286
63287         * m4/free.m4: New file.
63288
63289 2003-09-27  Paul Eggert  <eggert@twinsun.com>
63290
63291         * lib/minmax.h (MIN, MAX)
63292         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
63293         Omit the special code that used __typeof__, since we worry that
63294         it could be more trouble than it's worth.  See:
63295         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
63296         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
63297
63298         * lib/free.c: New file.
63299
63300 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
63301
63302         Trivial fixes to Makefile.am parts of module listings.
63303         * modules/strstr: Append strstr.h to lib_SOURCES.
63304         * modules/strcase: Likewise, for strcase.h.
63305
63306 2003-09-27  Karl Berry  <karl@gnu.org>
63307
63308         * config/mkinstalldirs: update from automake.
63309
63310 2003-09-26  Paul Eggert  <eggert@twinsun.com>
63311
63312         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
63313         (error_tail): Do not loop, reallocating temporary buffer, since
63314         the output cannot contain more wide characters than the input
63315         contains bytes, the size must be big enough already.  This avoids
63316         one potential size overflow calculation.  Check for size overflow
63317         when calculating temporary buffer size.  Free temporary buffer
63318         when done, if it was allocated with malloc; this plugs a memory
63319         leak.  Remove casts from void * to pointers, that are no longer
63320         needed now that we're assuming C89 or better.
63321
63322         Merge error changes from glibc.
63323
63324         * lib/error.c, error.h: Update copyright notice header to match glibc.
63325         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
63326         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
63327         Disable cancellation while printing error.
63328         * lib/error.h: Prepend __ to parameter names.
63329
63330 2003-09-26  Jim Meyering  <jim@meyering.net>
63331
63332         * lib/error.c (error_tail): Move some declarations
63333         into inner scope where the local variables are used.
63334
63335 2003-09-26  Bruno Haible  <bruno@clisp.org>
63336
63337         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
63338         stpncpy().
63339         Don't define stpncpy through config.h; it's now done through stpncpy.h.
63340
63341 2003-09-26  Bruno Haible  <bruno@clisp.org>
63342
63343         * lib/stpncpy.h (gnu_stpncpy): New declaration.
63344         (stpncpy): Define as alias for gnu_stpncpy.
63345         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
63346
63347 2003-09-25  Simon Josefsson  <jas@extundo.com>
63348
63349         * lib/xgetdomainname.h: New file.
63350         * lib/xgetdomainname.c: New file.
63351
63352 2003-09-25  Simon Josefsson  <jas@extundo.com>
63353             Bruno Haible  <bruno@clisp.org>
63354
63355         * modules/getdomainname: New file.
63356         * modules/xgetdomainname: New file.
63357         * MODULES.html.sh (func_all_modules): Add getdomainname,
63358         xgetdomainname.
63359
63360 2003-09-25  Simon Josefsson  <jas@extundo.com>
63361             Bruno Haible  <bruno@clisp.org>
63362
63363         * m4/getdomainname.m4: New file.
63364
63365 2003-09-25  Simon Josefsson  <jas@extundo.com>
63366             Bruno Haible  <bruno@clisp.org>
63367
63368         * lib/getdomainname.h: New file.
63369         * lib/getdomainname.c: New file.
63370
63371 2003-09-25  Karl Berry  <karl@gnu.org>
63372
63373         * lib/argp-fmtstream.c, argp-help.c: update from libc.
63374
63375 2003-09-25  Karl Berry  <karl@gnu.org>
63376
63377         * config/install-sh: update from automake.
63378
63379 2003-09-25  Bruno Haible  <bruno@clisp.org>
63380
63381         * modules/version-etc-2: New file, from modules/version-etc with
63382         modifications.
63383         * MODULES.html.sh (func_all_modules): Add version-etc-2.
63384
63385 2003-09-25  Bruno Haible  <bruno@clisp.org>
63386
63387         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
63388         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
63389
63390 2003-09-24  Simon Josefsson  <jas@extundo.com>
63391
63392         * modules/xgethostname: Add xgethostname.h.
63393
63394 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63395
63396         * lib/linebuffer.c (freebuffer): Don't free the argument, just
63397         the buffer associated with the argument.  Bug reported by
63398         Simon Josefsson.
63399
63400 2003-09-24  Paul Eggert  <eggert@twinsun.com>
63401
63402         * README: Document assumptions that 'int' is at least 32 bits
63403         wide, that integer arithmetic is 2's complement without overflow,
63404         that there are no holes in integer values, that adding sizes of
63405         two nonoverlapping objects can't overflow, and that all-bits-zero
63406         yields scalar zero.  Fix spelling and capitalization typos.
63407
63408 2003-09-19  Karl Berry  <karl@gnu.org>
63409
63410         * lib/argp.h: update from libc.
63411
63412 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63413
63414         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
63415         to avoid spurious warnings like "AC_RUN_IFELSE was called before
63416         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
63417
63418 2003-09-17  Paul Eggert  <eggert@twinsun.com>
63419
63420         * gnulib-tool: Use "test -h", not "test -L", for portability
63421         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
63422         (tags_regexp): Remove, since \| doesn't conform to POSIX.
63423         (sed_extract_prog): Issue s commands one-by-one, rather than
63424         using \| in one s command.
63425
63426 2003-09-16  Paul Eggert  <eggert@twinsun.com>
63427
63428         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
63429         input error, instead of returning NULL the next time we are called
63430         (and therefore losing track of errno).
63431
63432 2003-09-16  Bruno Haible  <bruno@clisp.org>
63433
63434         * gnulib-tool (func_create_testdir): Warn about duplicated
63435         dependencies.
63436
63437 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63438
63439         * modules/argmatch, modules/fatal, modules/obstack,
63440         modules/xalloc, modules/xgethostname: Sort dependencies by
63441         importance, not alphabetically.
63442
63443 2003-09-15  Paul Eggert  <eggert@twinsun.com>
63444
63445         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
63446         fails, so that the caller gets the proper errno.
63447
63448         * lib/readutmp.c (read_utmp): Likewise.
63449         Check for fstat error.  Close stream and free storage
63450         when failing.
63451
63452 2003-09-14  Karl Berry  <karl@gnu.org>
63453
63454         * config/srclist.txt (strdup.c): disable for c89 changes.
63455
63456 2003-09-14  Jim Meyering  <jim@meyering.net>
63457
63458         * lib/getloadavg.c: Correct cpp indentation.
63459         * lib/strdup.c: Likewise.
63460         * lib/vasnprintf.c: Likewise.
63461
63462 2003-09-14  Bruno Haible  <bruno@clisp.org>
63463
63464         * modules/fwriteerror: New file.
63465         * MODULES.html.sh (func_all_modules): Add fwriteerror.
63466
63467 2003-09-14  Bruno Haible  <bruno@clisp.org>
63468
63469         * lib/fwriteerror.h: New file.
63470         * lib/fwriteerror.c: New file.
63471
63472 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63473
63474         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
63475         modules/xgethostname, modules/xalloc: Depend on exit.
63476
63477 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63478
63479         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
63480
63481         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
63482         and AC_MINIX, too, so that their extensions are available.
63483
63484         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
63485         This macro has been superseded by gl_BACKUPFILE.
63486
63487         More patches to assume C89 or better.
63488
63489         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
63490
63491         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
63492         unconditionally.
63493         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
63494         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
63495         Include <string.h>, <stdlib.h> unconditionally.
63496         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
63497         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
63498         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
63499         headers or for string.h.
63500         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
63501         or strtoul.
63502
63503         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
63504         headers.
63505         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
63506         * m4/userspec.m4 (gl_USERSPEC): Likewise.
63507         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
63508         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
63509         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
63510         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
63511         memcpy, memset.
63512         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
63513         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
63514         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
63515         strtol.
63516         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
63517         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
63518         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
63519         strtoul.
63520
63521 2003-09-12  Paul Eggert  <eggert@twinsun.com>
63522
63523         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
63524         * lib/obstack.c [!defined _LIBC]: Likewise.
63525         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
63526         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
63527         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
63528
63529         More changes to assume C89 or better.
63530
63531         * lib/error.c (error_tail): Assume vprintf.
63532
63533         * lib/argmatch.c (getenv): Remove decl.
63534         * lib/progreloc.c (get_full_program_name): Define via prototype.
63535         * lib/setenv.c (clearenv): Likewise.
63536         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
63537         needed.
63538         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
63539         (malloc, memcpy): Remove decls.
63540         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
63541         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
63542         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63543         (memcpy): Remove macro.
63544         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
63545         (__P): Remove.  All uses removed.
63546         (PTR): Remove.  All uses changed to void *.
63547         (CHAR_BIT, NULL): Remove.
63548         (spaces, zeros, memset_space, memset_zero)
63549         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
63550         Remove.
63551         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
63552         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
63553         Define with prototype.
63554         Remove now-unnecessary prototype decl.
63555         (extra_args_spec): Assume ANSI C.  All uses changed.
63556         (extra_args_spec_iso): Remove.
63557         (my_strftime, emacs_strftimeu): Define via prototype.
63558         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
63559         unconditionally.
63560         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
63561         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
63562         (strtoul, strtol): Remove decls.
63563         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
63564         LONG_MAX): Remove.
63565         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
63566         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
63567         (LOCALE_PARAM_PROTO): New macro.
63568         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
63569         (INTERNAL (strtol), strtol): Define with a prototype.
63570         (PARAMS): Remove.  All uses removed.
63571         * lib/tempname.c: Include <string.h> unconditionally.
63572         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
63573         * lib/xgethostname.c (main): Define with a prototype.
63574         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
63575         Include <stdlib.h> unconditionally.
63576         (calloc, malloc, realloc, free): Remove decls.
63577         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
63578         Include <stdlib.h> unconditionally.  Sort include file names.
63579         (strtod): Remove.
63580         (xstrtod): Define with a prototype.
63581         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
63582         (strtol, strtoul): Remove decls.
63583
63584 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63585
63586         More patches to assume C89 or better.
63587         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
63588         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
63589         string.h, memchr, STDC_HEADERS.
63590
63591 2003-09-11  Paul Eggert  <eggert@twinsun.com>
63592
63593         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
63594         Include <stdlib.h>, <string.h> unconditionally.
63595         Remove now-unnecessary cast to char *.
63596         * lib/strnlen.c: Include <string.h> unconditionally.
63597         * lib/yesno.c (yesno): Define with a prototype.
63598
63599 2003-09-11  Bruno Haible  <bruno@clisp.org>
63600
63601         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
63602
63603 2003-09-10  Jim Meyering  <jim@meyering.net>
63604
63605         * lib/error.c: Correct indentation of cpp directives.
63606
63607 2003-09-10  Bruno Haible  <bruno@clisp.org>
63608
63609         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
63610         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
63611         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
63612         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
63613         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
63614         <stdlib.h> and <string.h> checks.
63615         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
63616         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
63617
63618 2003-09-10  Bruno Haible  <bruno@clisp.org>
63619
63620         * lib/strcspn.c: Include <string.h> unconditionally.
63621         * lib/strpbrk.c: Include <string.h> unconditionally.
63622         * lib/strstr.c: Include <string.h> unconditionally.
63623         * lib/unicodeio.c: Include <string.h> unconditionally.
63624         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
63625         * lib/unsetenv.c: Likewise.
63626         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
63627         * lib/yesno.c: Include <stdlib.h> unconditionally.
63628         (rpmatch): Add prototype.
63629
63630 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63631
63632         More patches to assume C89 or better.
63633         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
63634         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
63635         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
63636         or for string.h.
63637         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
63638         stdlib.h.
63639         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
63640         C headers.
63641         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
63642         string.h.
63643         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
63644         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
63645         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
63646         or for string.h.
63647         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
63648         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
63649         C headers.
63650         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
63651         memcpy.
63652         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
63653         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
63654         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
63655         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
63656         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
63657         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
63658         string.h, free.
63659         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
63660         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
63661         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
63662         C headers, or for string.h.
63663         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
63664         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
63665         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
63666         headers, memory.h, stdlib.h, string.h, strings.h.
63667         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
63668         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
63669         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
63670         strchr.
63671         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
63672         headers, memory.h, string.h.
63673         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
63674         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
63675         free.
63676         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
63677         headers.
63678         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
63679         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
63680         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
63681         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
63682         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
63683
63684 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63685
63686         More K&R removal.
63687
63688         * lib/acosl.c (main): Use a prototype.
63689         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
63690         tanl.c: Likewise.
63691
63692         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
63693
63694         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
63695         (getopt, etopt_long, getopt_long_only, _getopt_internal)
63696         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
63697         with a prototype.
63698         * lib/getopt.c (const): Remove macro.
63699         Include <string.h> unconditionally.
63700         (my_index): Remove; all uses changed to strchr.
63701         (strlen): Remove decl.
63702         (exchange): Remove forward decl; no longer needed.
63703         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
63704         Define with prototype.
63705         * lib/getopt1.c (const): Remove macro.
63706         (getopt_long, getopt_long_only, main): Define with prototype.
63707
63708         * lib/getugroups.c: Include <string.h> unconditionally.
63709
63710         * lib/getusershell.c: Include <stdlib.h> unconditionally.
63711         (getusershell, setusershell, endusershell, readname, main):
63712         Define with prototypes.
63713
63714         * lib/group-member.c: Include group-member.h first.
63715         Include <stdlib.h> unconditionally.
63716
63717         * lib/hard-locale.c: Include hard-locale.h first.
63718         Include <stdlib.h>, <string.h> unconditionally.
63719
63720         * lib/hash.c (free, malloc): Remove decls.
63721         Include <stdlib.h> unconditionally.
63722
63723         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
63724         (getenv): Do not declare.
63725
63726         * lib/idcache.c: Include <string.h> unconditionally.
63727
63728         * lib/long-options.c: Include long-options.h first, to test interface.
63729         Include <stdlib.h> unconditionally.
63730
63731         * lib/makepath.c: Include makepath.h first, to test interface.
63732         Include <stdlib.h> and <string.h> unconditionally.
63733
63734         * lib/linebuffer.c: Include <stdlib.h>.
63735         (free): Remove decl.
63736
63737         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
63738         stddef.h. rpl_malloc returns void *, not char *.
63739         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
63740         prototype.
63741
63742         * lib/md5.h: Include <limits.h> unconditionally.
63743         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
63744         (__P): Remove; all uses removed.
63745         * lib/md5.c: Include "md5.h" first.
63746         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
63747         md5_buffer, md5_process_bytes, md5_process_block):
63748         Define with prototypes.
63749         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
63750         * lib/sha.c: Include "sha.h" first.
63751         Include <stdlib.h>, <string.h> unconditionally.
63752
63753         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
63754         * lib/memcmp.c (__ptr_t): Likewise.
63755         * lib/memrchr.c (__ptr_t): Likewise.
63756         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
63757         Include <string.h> unconditionally.
63758         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
63759         * lib/memchr.c: Include <stdlib.h> unconditionally.
63760         * lib/memchr.c (LONG_MAX): Remove.
63761         * lib/memrchr.c (LONG_MAX): Likewise.
63762         * lib/memchr.c (__memchr): Define via a prototype.
63763         * lib/memrchr.c (__memrchr): Likewise.
63764         * lib/memcmp.c (__P): Remove, and remove all uses.
63765         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
63766         Remove forward decls; no longer needed.
63767         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
63768         Use types required by C89 in prototype.
63769
63770         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
63771         * lib/savedir.c: Likewise.
63772         * lib/mkdir.c (free): Remove decl.
63773         * lib/rmdir.c (rmdir): Define with a prototype.
63774         * lib/savedir.c: Include savedir.h first, to test interface.
63775
63776         * lib/mktime.c (STDC_HEADERS): Remove.
63777         Include <stdlib.h>, <string.h> unconditionally.
63778
63779         * lib/modechange.c: Include <stdlib.h> unconditionally.
63780         (malloc): Remove decl.
63781
63782         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
63783         (free): Remove decl.
63784
63785         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
63786         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
63787         (This type really should be intptr_t, but that's a C99ism.)
63788         (_obstack_memcpy): Remove: all uses changed to memcpy.
63789         Include <string.h> unconditionally.
63790         (struct obstack): Assume __STDC__ for types of members
63791         chunkfun, freefun, extra_arg.
63792         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
63793         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
63794         obstack_begin, obstack_specify_allocation,
63795         obstack_specify_allocation_with_arg, obstack_chunkfun,
63796         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
63797         Remove unprototyped decls and the macros that use them.
63798         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
63799         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
63800         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
63801         (defined __STDC__ && __STDC__)]:
63802         Remove nonprototyped code.
63803         Include <stdlib.h> unconditionally.
63804         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
63805         _obstack_allocated_p, _obstack_free, obstack_free,
63806         _obstack_memory_used, print_and_abort):
63807         Define using prototypes.
63808         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
63809         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
63810         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
63811         obstack_next_free, obstack_object_size, obstack_room) [0]:
63812         Remove unused, unprototyped code.
63813
63814         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
63815
63816         * lib/physmem.c (physmem_total, physmem_available, main): Define
63817         with prototypes.
63818
63819         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
63820         (main): Define with a prototype.
63821
63822         * lib/posixver.c (getenv): Remove decl.
63823
63824         * lib/putenv.c (malloc): Returns void *, not char *.
63825         Include <string.h> unconditionally.
63826         (strchr, memcpy, NULL): Do not define.
63827
63828         * lib/readtokens.c: Include readtokens.h first, to test interface.
63829         Include <stdlib.h>, <string.h> unconditionally.
63830         (init_tokenbuffer): Define with a prototype.
63831
63832         * lib/regex.c (PARAMS): Remove.  All uses removed.
63833         All uses of _RE_ARGS removed, too.
63834         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63835         unconditionally.
63836         (bzero): Assume memset exists.
63837         (memcmp, memcpy, NULL): Remove.
63838         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
63839         char, or assignments to local vars of type signed char.
63840         (init_syntax_once, PREFIX(extract_number_and_incr),
63841         PREFIX(print_partial_compiled_pattern),
63842         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
63843         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
63844         PREFIX(regex_grow_registers), PREFIX(regex_compile),
63845         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
63846         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
63847         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
63848         wcs_compile_range, byte_compile_range, truncate_wchar,
63849         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
63850         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
63851         count_mbs_length, wcs_re_match_2_internal,
63852         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
63853         PREFIX(alt_match_null_string_p),
63854         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
63855         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
63856         regfree, PREFIX(extract_number)): Define with prototype.  Remove
63857         now-unnecessary declaration, if any.
63858         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
63859         regcomp, regexec):
63860         Remove now-unnecessary casts among pointer types.
63861         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
63862
63863         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
63864         (free): Remove decl.
63865
63866         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
63867
63868         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
63869         (free): Remove decl.
63870
63871         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
63872         * lib/xgetcwd.c: Likewise.
63873
63874         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
63875         (free): Remove decl.
63876
63877         * lib/strchrnul.c (strchrnul): Define with a prototype.
63878         Fix bug: c_in was not converted to char before searching.
63879
63880         The following changes are not K&R related:
63881
63882         * lib/group-member.h: Include <sys/types.h>, so that this file is
63883         self-contained.
63884         * lib/makepath.h: Likewise.
63885
63886         * lib/getusershell.c (readname, default_index, line_size, readname):
63887         Use size_t, not int, for sizes.
63888         (readname): If the size overflows, report an error instead of
63889         looping forever.
63890
63891 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63892
63893         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
63894         libc.
63895
63896 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63897
63898         * README: New section: portability guidelines.
63899
63900 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63901
63902         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
63903         C89 spec.
63904
63905 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63906
63907         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
63908
63909 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63910
63911         Assume C89 or better; remove K&R cruft.
63912         A few of these changes were first proposed by Derek Robert Price
63913         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
63914
63915         * lib/addext.c: Include <string.h> unconditionally.
63916         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
63917         Don't declare getenv or malloc.
63918
63919         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
63920         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
63921         (NULL): Remove.
63922         (find_stack_direction, alloca): Use prototypes.
63923
63924         * lib/atexit.c (atexit): Define using a prototype.
63925
63926         * lib/basename.c, dirname.c, stripslash.c:
63927         Include <string.h> unconditionally.
63928
63929         * lib/bcopy.c: Include <stddef.h>.
63930         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
63931
63932         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
63933
63934         * lib/error.h (error, error_at_line, error_print_progname)
63935         [! (defined (__STDC__) && __STDC__)]: Remove decls.
63936         * lib/error.c: Include error.h first, to check interface.
63937         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
63938         (VA_START): Remove; all uses changeed to va_start.
63939         (exit, strerror): Remove decls.
63940         (error_print_progname): Prototype uncondionally.
63941         Don't include <errno.h>; no longer needed.
63942         (private_strerror): Remove.
63943         (error_tail): Always define.
63944         (error, error_at_line): Assume C89 or better; always use prototypes.
63945         * lib/fatal.c: Include "fatal.h" first, to test interface.
63946         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
63947         (VA_START): Remove; all uses changed to va_start.
63948         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
63949         this case.
63950         (exit): Remove decl.
63951         (fatal): Prototype unconditionally.  Assume va_start works.
63952         Abort at end, to pacify gcc.
63953
63954         * lib/euidaccess.c (main): Define with a prototype.
63955
63956         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
63957
63958         * lib/exitfail.c: Include <stdlib.h> unconditionally.
63959
63960         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
63961         prototypes.
63962         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
63963         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
63964         (getenv): Remove decl.
63965         (fnmatch): Define using a prototype.
63966         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
63967         (FCT): Define using a prototype.
63968
63969         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
63970
63971         * lib/gethostname.c: Include <stddef.h>.
63972         (gethostname): Define with prototype.  Length is size_t, not int.
63973
63974 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63975
63976         Assume C89 or better; remove K&R cruft.
63977         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
63978         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
63979         string.h, getenv, malloc.
63980         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
63981         headers.
63982         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
63983         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
63984         do not check for strerror.
63985         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
63986         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
63987         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
63988         do not check for doprnt or vprintf.
63989         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
63990         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
63991
63992 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63993
63994         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
63995         getversion.c should have been removed then, but was accidentally
63996         preserved.
63997
63998         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
63999         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
64000
64001 2003-09-08  Karl Berry  <karl@gnu.org>
64002
64003         * config/config.sub, config.guess, srclistvars.sh: update from savannah
64004                 config, forget about prep.
64005
64006         * config/depcomp, missing: update from automake.
64007
64008 2003-09-07  Paul Eggert  <eggert@twinsun.com>
64009
64010         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
64011         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
64012
64013 2003-09-07  Paul Eggert  <eggert@twinsun.com>
64014
64015         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
64016         copy_tm_result.  Bug reported by Simon Josefsson in
64017         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
64018
64019 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64020
64021         * m4/time_r.m4: New file.
64022         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
64023         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
64024         is. Check for timegm declaration.
64025         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
64026         Do not check for gmtime_r.
64027         Replace mktime if __mktime_internal does not exist and if mktime
64028         hasn't been replaced already.
64029
64030 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64031
64032         * lib/time_r.c, lib/time_r.h: New files.
64033
64034         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
64035         __localtime_r.
64036         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
64037         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
64038
64039         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
64040         __gmtime_r.
64041         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
64042         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
64043         Include <time_r.h>.
64044
64045         * lib/timegm.c: Switch to glibc implementation, with the following
64046         changes:
64047         [defined HAVE_CONFIG_H]: Include <config.h>.
64048         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
64049         (__mktime_internal) [!defined _LIBC]: New decl.
64050         (__gmtime_r) [!defined _LIBC]: New macro and function.
64051         (timegm): Use a prototype, since gnulib assumes C89.
64052         Do not bother declaring tmp to be const, as it's not really usefu.
64053         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
64054         (timegm): Declare only if HAVE_DECL_TIMEGM.
64055
64056 2003-09-06  Paul Eggert  <eggert@twinsun.com>
64057
64058         * MODULES.html.sh (func_all_modules): Add time_r.
64059         * modules/time_r: New file.
64060         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
64061         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
64062
64063 2003-09-03  Paul Eggert  <eggert@twinsun.com>
64064
64065         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
64066         Bug reported by Lute Kamstra in
64067         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
64068
64069         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
64070         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
64071         course with correspondingly smaller numbers for tomorrow and
64072         yesterday.  From Tadayoshi Funaba.  Originally installed into
64073         sh-utils on 1999-08-07, but the patch got lost (I guess during the
64074         coreutils merge?).
64075
64076 2003-08-31  Simon Josefsson  <jas@extundo.com>
64077
64078         * modules/timegm: New file.
64079         * MODULES.html.sh (func_all_modules): Add timegm.
64080
64081 2003-08-31  Simon Josefsson  <jas@extundo.com>
64082
64083         * m4/timegm.m4: New file.
64084
64085 2003-08-31  Simon Josefsson  <jas@extundo.com>
64086
64087         * lib/timegm.h: New file.
64088         * lib/timegm.c: New file.  Based on
64089         wget-1.8.2/src/http.c:mktime_from_utc.
64090
64091 2003-08-31  Karl Berry  <karl@gnu.org>
64092
64093         * lib/argp.h: update from libc.
64094
64095 2003-08-28  Bruno Haible  <bruno@clisp.org>
64096
64097         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
64098         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
64099         followed by '#define fnmatch fnmatch_posix' gives an error.
64100
64101 2003-08-28  Bruno Haible  <bruno@clisp.org>
64102
64103         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
64104         warning on QNX, which defines O_BINARY to 000000.
64105
64106 2003-08-27  Jim Meyering  <jim@meyering.net>
64107
64108         * m4/mkstemp.m4: Require that the system mkstemp be able to create
64109         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
64110         would fail after 32.  Reported by Danny Levinson.  Details here:
64111         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
64112
64113 2003-08-24  Bruno Haible  <bruno@clisp.org>
64114
64115         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
64116         MSVC7 <stdio.h> is included later.
64117
64118 2003-08-22  Simon Josefsson  <jas@extundo.com>
64119
64120         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
64121
64122 2003-08-20  Karl Berry  <karl@gnu.org>
64123
64124         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
64125
64126 2003-08-20  Bruno Haible  <bruno@clisp.org>
64127
64128         * modules/progname: New file.
64129         * MODULES.html.sh (func_all_modules): Add progname.
64130
64131 2003-08-20  Bruno Haible  <bruno@clisp.org>
64132
64133         * lib/progname.h: New file, from GNU gettext.
64134         * lib/progname.c: New file, from GNU gettext.
64135         * lib/progreloc.c: New file, from GNU gettext.
64136
64137 2003-08-19  Jim Meyering  <jim@meyering.net>
64138
64139         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
64140         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
64141
64142 2003-08-19  Bruno Haible  <bruno@clisp.org>
64143
64144         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
64145         more.
64146
64147 2003-08-19  Bruno Haible  <bruno@clisp.org>
64148
64149         * lib/xstrdup.c: Assume <string.h> exists.
64150
64151 2003-08-18  Paul Eggert  <eggert@twinsun.com>
64152
64153         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
64154         in makefile rules.
64155
64156 2003-08-18  Jim Meyering  <jim@meyering.net>
64157
64158         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
64159         * m4/lib-ld.m4: Likewise.
64160
64161 2003-08-18  Jim Meyering  <jim@meyering.net>
64162
64163         * lib/setenv.h: Indent nested cpp directive.
64164         * lib/vasnprintf.c: Remove trailing blanks.
64165
64166 2003-08-17  Simon Josefsson  <jas@extundo.com>
64167
64168         * modules/xstrndup: New file.
64169         * MODULES.html.sh (func_all_modules): Add xstrndup.
64170
64171 2003-08-17  Simon Josefsson  <jas@extundo.com>
64172
64173         * modules/argp: Fix autoconf macro name. Add more dependencies.
64174
64175 2003-08-17  Simon Josefsson  <jas@extundo.com>
64176
64177         * m4/xstrndup.m4: New file.
64178
64179 2003-08-17  Simon Josefsson  <jas@extundo.com>
64180
64181         * m4/argp.m4: New file.
64182
64183 2003-08-17  Simon Josefsson  <jas@extundo.com>
64184             Bruno Haible  <bruno@clisp.org>
64185
64186         * lib/xstrndup.h: New file.
64187         * lib/xstrndup.c: New file.
64188
64189 2003-08-17  Bruno Haible  <bruno@clisp.org>
64190
64191         * modules/strndup (Files, Include): Add lib/strndup.h.
64192
64193 2003-08-17  Bruno Haible  <bruno@clisp.org>
64194
64195         * modules/euidaccess (Files): Add lib/euidaccess.h.
64196
64197 2003-08-17  Bruno Haible  <bruno@clisp.org>
64198
64199         * lib/strndup.h: New file.
64200
64201 2003-08-17  Bruno Haible  <bruno@clisp.org>
64202
64203         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
64204         like AC_GNU_SOURCE.
64205         * modules/extensions (configure.ac): Comment out the invocation of
64206         gl_USE_SYSTEM_EXTENSIONS.
64207
64208 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64209
64210         Merges from coreutils, etc.
64211         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
64212         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
64213         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
64214         fixing a typo.
64215         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
64216         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
64217
64218 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64219
64220         Document merge from coreutils.
64221         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
64222         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
64223         * modules/utime: Add m4/utimes-null.m4.
64224
64225 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64226
64227         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
64228         space, undoing this 2003-08-12 change:
64229         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64230
64231 2003-08-16  Paul Eggert  <eggert@twinsun.com>
64232
64233         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
64234         strtoul.c from libc, undoing this 2003-08-12 change:
64235         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
64236
64237 2003-08-16  Jim Meyering  <jim@meyering.net>
64238
64239         Merges from coreutils.
64240         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
64241         prefix.  Adjust cache variables similarly.  Create 500 rather than
64242         just 300 files, to exercise bug on Darwin6.5, too.
64243         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
64244         $missing_dir.
64245         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
64246         AM_SYS_POSIX_TERMIOS.
64247         Reported by mkc@mathdogs.com.
64248         Also change use of $am_cv_sys_posix_termios
64249         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
64250         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
64251         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
64252         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
64253         in /proc/mounts until it finds one with matching device number.  This
64254         is unnecessary when the FILE argument *is* a mount point.  No stat call
64255         is necessary in that case.  So, disable the statvfs-testing code on
64256         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
64257         as RedHat bug# 84846.
64258         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64259         to 1MB, so as not to render systems with no stack size limit (e.g.,
64260         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64261         Include <unistd.h>.  On some systems,
64262         it is required for the definition of _SC_PAGESIZE.
64263
64264 2003-08-16  Jim Meyering  <jim@meyering.net>
64265
64266         Merge from coreutils.
64267         * lib/xstrtoimax.c: #else #if -> #elif.
64268         * lib/xstrtoumax.c: Likewise.
64269
64270 2003-08-16  Jim Meyering  <jim@meyering.net>
64271
64272         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
64273         * m4/utimes.m4: Removed.
64274         * m4/utimes-null.m4: Renamed from utimes.m4.
64275
64276         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
64277         to 1MB, so as not to render systems with no stack size limit (e.g.,
64278         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
64279         Include <unistd.h>.  On some systems,
64280         it is required for the definition of _SC_PAGESIZE.
64281
64282 2003-08-16  Jim Meyering  <jim@meyering.net>
64283         and Paul Eggert  <eggert@cs.ucla.edu>
64284
64285         Merges from coreutils, etc.
64286
64287         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
64288         using the latest version from cvs.  This avoids problems with #line
64289         directives using a vendor (Sun) compiler.
64290         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
64291         Don't set GETGROUPS_LIB here; now it's
64292         done via getgroups.m4's wrapper function.
64293         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
64294         rather than just in sh-util/configure.in, so that the
64295         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
64296         same.
64297         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
64298         AC_FUNC_GETLOADAVG where to find getloadavg.c.
64299         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
64300         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
64301         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
64302         Remove code that is now done by the newly-required macros.
64303         Append $(EXEEXT) to DF_PROG.
64304         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
64305         Do not invoke or require the following here,
64306         since prereq.m4 or some gnulib .m4 now does this for us:
64307         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
64308         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
64309         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
64310         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
64311         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
64312         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
64313         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
64314         AC_FUNC_OBSTACK.
64315         Do not replace the following functions, as this is now the job
64316         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
64317         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
64318         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
64319         atexit getpass, strdup, getpagesize.
64320         Replace 'raise'.
64321         Do not check for the following functions, as this is now the job
64322         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
64323         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
64324         setregid.
64325         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
64326         Check for sys/sysctl.h.
64327         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
64328         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
64329         of checking for ssize_t ourselves.
64330
64331         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
64332         Require every macro that gnulib/modules/* suggests for us.
64333         (jm_PREREQ_ADDEXT): New macro.
64334         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
64335         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
64336
64337         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
64338         (gl_PHYSMEM): Use it.
64339         Also check for `table' function.
64340         Check for new headers and functions.
64341         Add check for sys/sysmp.h.
64342         With suggestions from Kaveh Ghazi.
64343         Ignore headers that are present but cannot be compiled.  This
64344         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
64345         C 5.4.
64346
64347 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64348
64349         Document merge from coreutils.
64350         * modules/userspec: Depend on posixver.
64351         * modules/strftime: Depend on tzset.
64352
64353 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64354
64355         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
64356         rather than tab, after '#' in shell-script copyright notices.
64357         Suggested by Bruno Haible.
64358
64359 2003-08-15  Paul Eggert  <eggert@twinsun.com>
64360
64361         * config/srclist-update: Use three spaces, rather than tab, after '#'
64362         in shell-script copyright notices.  Suggested by Bruno Haible.
64363         Remove unnecessary parenthesization in regular expression.
64364
64365 2003-08-15  Jim Meyering  <jim@meyering.net>
64366
64367         Merge from coreutils.
64368         * lib/xgethostname.c: Include <stdlib.h>.
64369         (xghostname): Don't exit for anything other than memory-related
64370         failure; just return NULL.
64371         * lib/userspec.c: Include "posixver.h".
64372         (parse_user_spec): Accept `.' as a separator only
64373         in pre-POSIX-200112 mode.
64374         * lib/strtoimax.c: Use #elif rather than #else #if.
64375         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
64376         Remove function, now that we can rely on a working tzset function.
64377         [!_LIBC]: Ensure that the required autoconf test has been run.
64378         [!defined _NL_CURRENT && HAVE_STRFTIME]:
64379         Use underlying_strftime for %r.
64380         * lib/sha.c: Merge in some clean-up and optimization changes from
64381         glibc.
64382         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
64383         Ensure that it is a multiple of 64.
64384         Rearrange loop exit tests so as to avoid performing an
64385         additional fread after encountering an error or EOF.
64386         * lib/realloc.c: Update copyright date.
64387
64388 2003-08-15  Jim Meyering  <jim@meyering.net>
64389         and Paul Eggert  <eggert@twinsun.com>
64390
64391         Merge from coreutils.
64392         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
64393         member but strut utmpx does not.  Needed for AIX 4.3.3.
64394         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
64395
64396 2003-08-15  Jim Meyering  <jim@meyering.net>
64397         and Paul Eggert  <eggert@cs.ucla.edu>
64398
64399         Merges from coreutils, etc.
64400         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
64401         Require gl_FUNC_TZSET_CLOBBER.
64402         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
64403         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
64404         members.
64405
64406 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64407
64408         Help the merge from coreutils.
64409         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
64410         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
64411         * m4/tzset.m4: Use it too.
64412
64413 2003-08-14  Paul Eggert  <eggert@twinsun.com>
64414
64415         * modules/tzset: New file.
64416
64417 2003-08-14  Jim Meyering  <jim@meyering.net>
64418
64419         Merges from coreutils.
64420         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
64421         variable names, rather than @FNMATCH_H@.
64422         * modules/alloca: Likewise for $(ALLOCA_H).
64423
64424         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
64425         the three copies of the literal target, `fnmatch.h'.
64426         * modules/alloca (alloca.h): Likewise.
64427
64428 2003-08-14  Jim Meyering  <jim@meyering.net>
64429
64430         Merge from coreutils.
64431         * m4/tzset.m4: New file.
64432         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
64433         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
64434         otherwise, AIX 5.1 systems would end up using the latter.
64435         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
64436         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
64437         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
64438         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
64439
64440 2003-08-14  Jim Meyering  <jim@meyering.net>
64441
64442         Merge from coreutils.
64443         * lib/obstack.h: Whitespace changes.
64444         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
64445         and xcalloc return values.
64446         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
64447         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
64448         hang on OSF/1 5.1 for DIR on both local and remote file systems.
64449         Reported by (and fix confirmed by) Nelson H. F. Beebe.
64450         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64451         error from mntctl.
64452         Use mntctl's return value to drive the entry-processing loop, since
64453         we can't rely on the value of the vmt_length member in the last
64454         entry.  On some systems doing so could result in exhausting
64455         virtual memory.  Based in part on a patch from Mike Jetzer.
64456
64457 2003-08-14  Jim Meyering  <jim@meyering.net>
64458         and Paul Eggert  <eggert@twinsun.com>
64459
64460         Merges from coreutils, plus other fixes.
64461         * lib/physmem.c: Merge in portability changes from gcc/libiberty
64462         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
64463         for credits and details.  Thanks to Kaveh Ghazi for helping
64464         to keep these files in sync.
64465         (ARRAY_SIZE): Define it.
64466         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
64467         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
64468         (memcasecmp): Don't assume size_t fits in unsigned int.
64469         Remove casts and duplicate code.
64470         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
64471         (memcpy): Remove definition.
64472         Merge in some clean-up and optimization changes from glibc.
64473         [BLOCKSIZE]: Move definition to top of file.
64474         Ensure that it is a multiple of 64.
64475         Rearrange loop exit tests so as to avoid performing an
64476         additional fread after encountering an error or EOF.
64477         * lib/md5.h (md5_uintptr): Define.
64478         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
64479         return to the initial working directory.  Preserve errno
64480         for caller.
64481         * lib/idcache.c: Include "xalloc.h".
64482         (xmalloc, xrealloc): Remove decls.
64483         (getuser): Remove casts no longer required in C89.
64484         * lib/human.c: Include stdio.h, for sprintf.
64485         * lib/group-member.c: Include "xalloc.h".
64486         (xmalloc, xrealloc): Remove decls.
64487         (get_group_info): Remove casts no longer required in C89.
64488         * lib/getusershell.c (readname): Remove casts no longer required in
64489         C89.
64490         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
64491         * lib/getline.c: Whitespace fix, from coreutils.
64492
64493 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64494
64495         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
64496         Check for isascii.
64497
64498         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64499         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64500         Undo previous (whitespace-only) change.
64501
64502 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64503
64504         * lib/exclude.c: Include <ctype.h>
64505         (IN_CTYPE_DOMAIN): New macro.
64506         (is_space): New fn.
64507         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
64508         and empty lines.
64509
64510         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64511         Undo previous (whitespace-only) change.
64512
64513 2003-08-13  Paul Eggert  <eggert@twinsun.com>
64514
64515         * config/srclist-update: Change update back to the old behavior,
64516         leaving whitespace alone.  Use one 'sed' command rather than a
64517         pipeline.
64518         (fixlicense): Now a variable, not a function.
64519         (remove_trailing_blanks): Remove.
64520         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
64521         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64522         Undo previous (whitespace-only) change.
64523
64524 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64525
64526         Merge from coreutils.
64527         * modules/euidaccess: Add lib_SOURCES, include for new
64528         file euidaccess.h
64529
64530 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64531
64532         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
64533         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
64534         Normalize leading white space and remove trailing white space.
64535
64536         Merge from coreutils
64537         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
64538
64539         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
64540         0.12.1.  These files are now being upgraded automatically by
64541         ../config/srclist-update.
64542
64543 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64544
64545         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
64546         Normalize leading white space and remove trailing white space.
64547         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
64548         notice, as per ../config/srclist-update.
64549
64550         Merge from coreutils.
64551         * lib/euidaccess.h: New file.
64552         * lib/euidaccess.c: Include it.
64553         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
64554         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
64555         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
64556
64557 2003-08-12  Paul Eggert  <eggert@twinsun.com>
64558
64559         * config/srclist-update: Add copyright notice.
64560         (remove_id_lines, remove_trailing_blanks): New constants.
64561         (fixfile): Use them to normalize spacing a bit in copied files.
64562         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
64563         Normalize leading white space and remove trailing white space.
64564
64565         * config/texinfo.tex: Sync with texinfo.
64566
64567         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
64568         strtoul.c from libc, to merge coreutils whitespace changes.
64569
64570         * config/srclist.txt: Get the following m4 files from gettext:
64571         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
64572         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
64573         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
64574         wint_t.m4.
64575
64576 2003-08-12  Karl Berry  <karl@gnu.org>
64577
64578         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
64579         been made.
64580
64581 2003-08-11  Paul Eggert  <eggert@twinsun.com>
64582
64583         * modules/gnu-source, m4/gnu-source.m4:
64584         Remove; we're assuming Autoconf 2.54 or later now.
64585         Suggested by Bruno Haible.
64586         * MODULES.html.sh (func_all_modules): Remove gnu-source.
64587
64588 2003-08-11  Bruno Haible  <bruno@clisp.org>
64589
64590         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
64591
64592 2003-08-11  Bruno Haible  <bruno@clisp.org>
64593
64594         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
64595         (vasnprintf): Use it instead of wcslen.
64596
64597 2003-08-11  Bruno Haible  <bruno@clisp.org>
64598
64599         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
64600         value to ensure that _Bool promotes to int. Use #define for _Bool when
64601         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
64602
64603 2003-08-10  Karl Berry  <karl@gnu.org>
64604
64605         * lib/regex.h: update from libc (whitespace fix).
64606
64607 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64608
64609         Merge some files from coreutils.  These changes were
64610         originally made by Jim Meyering.
64611         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
64612         many older Unixes require this.
64613         * lib/alloca.c (alloca): Remove cast to argument of free;
64614         no longer needed in C89.
64615         * lib/alloca_.h, regex.h: Fix white space to match
64616         what GNU indent does.
64617
64618 2003-08-09  Paul Eggert  <eggert@twinsun.com>
64619
64620         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
64621         apparently Emacs's Unicode mode got confused before my 2003-08-05
64622         checkin.
64623
64624 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64625
64626         * m4/extensions.m4: New file.
64627         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
64628         Require gl_USE_SYSTEM_EXTENSIONS.
64629         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
64630         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
64631
64632 2003-08-08  Paul Eggert  <eggert@twinsun.com>
64633
64634         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
64635         * modules/extensions, modules/gnu-source: New files.
64636         * modules/timespec, modules/unlocked-io: Depend on extensions.
64637
64638 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64639
64640         * modules/restrict: New file.
64641         * MODULES.html.sh (func_all_modules): Add restrict.
64642         * modules/regex: Depend on restrict.
64643
64644 2003-08-07  Paul Eggert  <eggert@twinsun.com>
64645
64646         * m4/restrict.m4: New file.
64647         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
64648
64649 2003-08-07  Bruno Haible  <bruno@clisp.org>
64650
64651         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
64652         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
64653
64654 2003-08-07  Bruno Haible  <bruno@clisp.org>
64655
64656         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
64657         makes the module 'getndelim2' compatible with the module 'getline'.
64658
64659 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64660
64661         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
64662         byte with "\201" to avoid glitches when editing that source file
64663         with multi-gnome-terminal.
64664
64665 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64666
64667         * lib/bumpalloc.h: Remove.
64668
64669 2003-08-05  Paul Eggert  <eggert@twinsun.com>
64670
64671         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
64672         * modules/bumpalloc: Remove.
64673
64674 2003-08-04  Paul Eggert  <eggert@twinsun.com>
64675
64676         * lib/getloadavg.c: Change copyright notice and spacing to conform to
64677         GNU coding style.
64678
64679         Merge from coreutils.
64680         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
64681         1. From glibc.
64682         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
64683         from Karl Berry, implemented by Jim Meyering.
64684         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
64685         from Dmitry V. Levin.
64686         Remove anachronistic cast of xrealloc.
64687         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
64688         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
64689         type. Otherwise, it wouldn't compile with at least /bin/cc on
64690         ymp-cray-unicos9.0.2.X.
64691         Combine two mostly-identical uses of alloca into one.
64692         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
64693
64694 2003-08-04  Dave Love  <d.love@dl.ac.uk>
64695
64696         [From Emacs.]
64697
64698         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
64699         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
64700         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
64701         obsolete NLIST_NAME_UNION.
64702         [__GNU__]: Undef BSD and FSCALE.
64703         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
64704
64705 2003-08-03  Paul Eggert  <eggert@twinsun.com>
64706
64707         * lib/stdbool_.h (_Bool): Make it signed char, instead of
64708         an enum type, so that it's guaranteed to promote to int.  See:
64709         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
64710
64711 2003-08-03  Karl Berry  <karl@gnu.org>
64712
64713         * config/depcomp: update from automake.
64714
64715 2003-07-31  Paul Eggert  <eggert@twinsun.com>
64716
64717         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
64718         (strerror): Don't assume that a printable int fits in 14 bytes.
64719
64720 2003-07-31  Bruno Haible  <bruno@clisp.org>
64721
64722         * modules/getpass-gnu: New file.
64723         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
64724
64725 2003-07-31  Bruno Haible  <bruno@clisp.org>
64726
64727         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
64728
64729 2003-07-24  Karl Berry  <karl@gnu.org>
64730
64731         * config/missing: update from automake.
64732
64733 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
64734             Bruno Haible  <bruno@clisp.org>
64735
64736         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
64737         * lib/getline.c (getline, getdelim): Likewise.
64738         Remove _GNU_SOURCE define; now it's defined in config.h through
64739         m4/getline.m4.
64740
64741 2003-07-23  Karl Berry  <karl@gnu.org>
64742
64743         * config/config.sub: update from prep.
64744
64745 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64746
64747         * modules/xalloc (Depends-on): Add exitfail.
64748         * modules/xmemcoll: Likewise.
64749
64750 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64751
64752         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
64753         over-parenthesization in macros.
64754
64755         Sync with coreutils.
64756
64757         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
64758         required by C99.
64759
64760         Use `exit_failure' for xalloc and xmemcoll instead of their own
64761         private exit-failure variables.
64762         * lib/xalloc.h (xalloc_exit_failure): Remove.
64763         * lib/xmalloc.c: Likewise.  Include exitfail.h.
64764         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
64765         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
64766         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
64767         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
64768
64769 2003-07-20  Jim Meyering  <jim@meyering.net>
64770
64771         * modules/closeout (Depends-on): Add exitfail.
64772         Suggestion from Bruno Haible.
64773
64774 2003-07-19  Karl Berry  <karl@gnu.org>
64775
64776         * config/config.sub: update from prep.
64777
64778 2003-07-18  Paul Eggert  <eggert@twinsun.com>
64779
64780         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
64781         Remove.
64782         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
64783         to test that it can stand by itself.  Include "exitfail.h".
64784         Clients should set exit_failure instead.
64785         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
64786
64787 2003-07-18  Bruno Haible  <bruno@clisp.org>
64788
64789         * modules/getndelim2: New file.
64790         * modules/getline: Share files with module getndelim2.
64791         * modules/getnline: Depend on getndelim2 instead of sharing files with
64792         it. Add getnline.c to lib_SOURCES.
64793         * MODULES.html.sh (func_all_modules): Add getndelim2.
64794
64795 2003-07-18  Bruno Haible  <bruno@clisp.org>
64796
64797         * m4/getndelim2.m4: New file.
64798         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
64799         invoke gl_PREREQ_GETNDELIM2.
64800         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
64801         gl_PREREQ_GETNDELIM2.
64802         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
64803         gl_GETNDELIM2.
64804
64805 2003-07-18  Bruno Haible  <bruno@clisp.org>
64806
64807         * lib/getndelim2.h: New file.
64808         * lib/getndelim2.c: Make into a module of its own. Include config.h,
64809         getndelim2.h.
64810         (getndelim2): Make non-static. Change return type to ssize_t.
64811         * lib/getline.h: Change argument names.
64812         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
64813         * lib/getnline.c: Include getndelim2.h.
64814
64815 2003-07-18  Andreas Schwab  <schwab@suse.de>
64816
64817         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
64818
64819 2003-07-17  Karl Berry  <karl@gnu.org>
64820
64821         * config/config.sub: update from prep.
64822
64823 2003-07-17  Bruno Haible  <bruno@clisp.org>
64824
64825         * modules/getnline: New file.
64826         * modules/getline: Add lib/getndelim2.c to source file list.
64827         * MODULES.html.sh (func_all_modules): Add getnline.
64828
64829 2003-07-17  Bruno Haible  <bruno@clisp.org>
64830
64831         * m4/getnline.m4: New file.
64832
64833 2003-07-17  Bruno Haible  <bruno@clisp.org>
64834
64835         * m4/Makefile.am.in: Remove file.
64836         * m4/Makefile.am: Remove file.
64837         * m4/Makefile.in: Remove file.
64838
64839 2003-07-17  Bruno Haible  <bruno@clisp.org>
64840
64841         * lib/getnline.h: New file.
64842         * lib/getnline.c: New file.
64843         * lib/getndelim2.c: New file, extracted from getline.c.
64844         (getndelim2): Renamed from getdelim2, with added nmax argument.
64845         * lib/getline.c: Include getndelim2.c.
64846         (getdelim2): Moved out to getndelim2.c.
64847         (getline, getdelim): Update.
64848
64849 2003-07-17  Bruno Haible  <bruno@clisp.org>
64850
64851         * lib/Makefile.am: Remove file.
64852         * lib/Makefile.in: Remove file.
64853
64854 2003-07-17  Bruno Haible  <bruno@clisp.org>
64855
64856         * configure.in: Remove file.
64857         * Makefile.in: Remove file.
64858
64859 2003-07-17  Bruno Haible  <bruno@clisp.org>
64860
64861         * MODULES.html.sh: Put the </BODY> right before </HTML>.
64862
64863 2003-07-16  Karl Berry  <karl@gnu.org>
64864
64865         * config/srclist-update: was running fixlicense twice, which caused
64866                 texinfo.tex to be nullified for some reason.  Simplify,
64867                 $gplsrc is no longer needed as far as I can see?
64868
64869 2003-07-16  Jim Meyering  <jim@meyering.net>
64870
64871         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
64872
64873 2003-07-15  Paul Eggert  <eggert@twinsun.com>
64874
64875         * config/srclist.txt: Get the following files from gettext-runtime/intl
64876         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
64877         ref-del.sin.  From Bruno Haible.
64878         * config/srclist-update (fixfile): Change grep pattern again, since the
64879         previous fix didn't work (there was another trailing $).  Use
64880         '[$]' to escape the $s.
64881
64882 2003-07-15  Karl Berry  <karl@gnu.org>
64883
64884         * lib/vasnprintf.c: update from gettext.
64885
64886 2003-07-15  Karl Berry  <karl@gnu.org>
64887
64888         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
64889         gets expanded when surrounded by '$'.
64890
64891 2003-07-15  Jim Meyering  <jim@meyering.net>
64892
64893         * modules/save-cwd: Don't depend on error.  From Derek Price.
64894
64895 2003-07-15  Jim Meyering  <jim@meyering.net>
64896
64897         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
64898
64899 2003-07-14  Simon Josefsson  <jas@extundo.com>
64900
64901         * modules/mempcpy: New file.
64902         * MODULES.html.sh (func_all_modules): Add mempcpy.
64903
64904 2003-07-14  Simon Josefsson  <jas@extundo.com>
64905
64906         * m4/mempcpy.m4: New file.
64907
64908 2003-07-14  Simon Josefsson  <jas@extundo.com>
64909
64910         * lib/mempcpy.h: New file.
64911         * lib/mempcpy.c: New file.
64912
64913 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64914
64915         * modules/getdate, modules/posixtm: Depend on mktime.
64916
64917 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64918
64919         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
64920         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
64921         unicodeio.c, unicodeio.h, unlocked-io.h:
64922         Switch from LGPL to GPL.
64923
64924 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64925
64926         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
64927         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
64928         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
64929         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
64930         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
64931         updated automatically by ../config/srclist-update.  This changes
64932         their license from LPGL to GPL.
64933
64934 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64935
64936         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
64937         assumed to refer to the root of the most recent stable gettext version.
64938         * config/srclistvars.sh: Add defaults for eggert.
64939         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
64940         Match "This program" as well as "The program".  This is needed
64941         for gettext.
64942
64943 2003-07-14  Jim Meyering  <jim@meyering.net>
64944
64945         Don't emit diagnostics.  Let callers do that.
64946         * lib/save-cwd.c: Don't include "error.h".
64947         (save_cwd): Don't call error.  Ensure that errno is valid
64948         when returning nonzero.
64949
64950         * lib/save-cwd.h (restore_cwd): Update prototype.
64951         * lib/save-cwd.c (restore_cwd): Remove two parameters.
64952         Simplify.  Don't call error upon failure.  Let callers do that.
64953         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
64954         when auditing is enabled.  But don't bother updating the #if.
64955
64956 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
64957
64958         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
64959         it breaks C++ compilation.
64960         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
64961
64962 2003-07-10  Simon Josefsson  <jas@extundo.com>
64963
64964         * modules/strchrnul (Makefile.am): Add strchrnul.h.
64965
64966 2003-07-10  Jim Meyering  <jim@meyering.net>
64967
64968         * m4/clock_time.m4: Remove trailing blank.
64969         * m4/intmax_t.m4: Likewise.
64970
64971 2003-07-10  Jim Meyering  <jim@meyering.net>
64972
64973         * lib/vasnprintf.c: Remove trailing blanks.
64974         Make cpp indentation consistent.
64975
64976 2003-07-09  Paul Eggert  <eggert@twinsun.com>
64977
64978         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
64979         posixver.c, strftime.c, strnlen.c, strverscmp.c:
64980         Switch from LGPL to GPL.
64981
64982 2003-07-09  Paul Eggert  <eggert@twinsun.com>
64983
64984         * config/srclist.txt: Sort sublists.  Add
64985         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
64986         that differ from gnulib for one reason or another; we'd like this list
64987         to be smaller but for now let's document what we have.
64988
64989 2003-07-08  Paul Eggert  <eggert@twinsun.com>
64990
64991         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
64992         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
64993         and sweeter "eval x=$x".
64994         * config/srclist.txt: Get lib/argp* from glibc.
64995
64996 2003-07-07  Paul Eggert  <eggert@twinsun.com>
64997
64998         * lib/mktime.c: Fix some boundary cases and remove need for floating
64999         point.
65000
65001         Issue a compile-time diagnostic if time_t is floating point, or if
65002         two's complement arithmetic is not in effect, or if arithmetic
65003         right shift does not propagate the sign.  These assumptions were
65004         all in the original code but they weren't checked.
65005
65006         (TIME_T_MIDPOINT, verify): New macros.
65007         (__isleap): Remove; it has integer overflow problems.
65008         (leapyear): New function, without those problems.
65009         (ydhms_tm_diff): Remove; splitting into two parts.
65010         (ydhms_diff): New function, containing the arithmetic part of
65011         the old ydhms_tm_diff function.  Issue a compile-time
65012         diagnostic if we are not using C99 integer division.
65013         Avoid casts when possible.
65014         (guess_time_tm): New function, containing the checking part of
65015         the old ydhms_tm_diff function.  Return the new value, rather than
65016         the difference between it and the old.  Accept a new argument T
65017         so that *T specifies the old value.  Check for overflow in the result.
65018
65019         (__mktime_internal): Use a time_t offset, not a long int offset.
65020         This undoes the 2003-06-04 change, which is no longer needed now
65021         that we have better overflow checking.
65022         (localtime_offset): Likewise.
65023
65024         (__mktime_internal): Avoid harmful overflow on hosts where time_t
65025         and long are 64-bit but int is only 32-bit.
65026         (ydhms_diff): Use long int to store year1 and yday1.
65027         Issue a compile-time diagnostic if long int is not wide enough.
65028
65029         (__mktime_internal): Use long int to store adjusted year and yday.
65030         Use plain C rather than preprocessor commands, if that doesn't
65031         affect efficiency.
65032         Check for overflow (and try to repair) after each probe
65033         rather than checking only at the very end.  This avoids some bugs
65034         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
65035         does not equal GMT offset at maximum time).
65036         Use integer to check for overflow rather than floating point; this
65037         is more portable to non-IEEE hosts, and is a tad faster.
65038         When we detect that we are oscillating between two values,
65039         don't check whether tm_isdst has the requested value, since
65040         we already know the answer.  When tm_isdst has the wrong value,
65041         use a different heuristic to find the right one, based on the
65042         extreme values actually observed in practice in tz2003a,
65043         rather than the (overly optimistic) "previous 3 calendar quarters".
65044
65045         (not_equal_tm, print_tm, check_result): Use "const T" rather than
65046         "T const" to accommodate glibc style.
65047         (check_result): Use less-confusing report format.  "long" -> "long int.
65048         (main): Likewise.
65049         Don't loop if the iteration overflows time_t.
65050         Allow a negative step in the iteration.
65051
65052 2003-07-06  Karl Berry  <karl@gnu.org>
65053
65054         * config/depcomp: update from automake.
65055         * config/config.sub: update from prep.
65056
65057 2003-07-03  Karl Berry  <karl@gnu.org>
65058
65059         * config/config.guess: update from prep.
65060
65061 2003-07-01  Paul Eggert  <eggert@twinsun.com>
65062
65063         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
65064         xreadlink.c now includes it unconditionally.
65065
65066 2003-07-01  Paul Eggert  <eggert@twinsun.com>
65067
65068         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
65069         having it depend on HAVE_SYS_TYPES_H.
65070
65071 2003-07-01  Bruno Haible  <bruno@clisp.org>
65072
65073         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
65074         <sys/types.h> should be sufficient.
65075         Reported by Paul Eggert.
65076
65077 2003-06-26  Karl Berry  <karl@gnu.org>
65078
65079         * config/depcomp: update from automake.
65080
65081 2003-06-26  Bruno Haible  <bruno@clisp.org>
65082
65083         * modules/human: Depend on module stdbool.
65084
65085 2003-06-25  Bruno Haible  <bruno@clisp.org>
65086
65087         * modules/readlink: New file.
65088         * modules/xreadlink: Depend on it.
65089         * MODULES.html.sh (func_all_modules): Add readlink.
65090
65091 2003-06-25  Bruno Haible  <bruno@clisp.org>
65092
65093         * m4/readlink.m4: New file.
65094
65095 2003-06-25  Bruno Haible  <bruno@clisp.org>
65096
65097         * lib/readlink.c: New file.
65098
65099 2003-06-22  Karl Berry  <karl@gnu.org>
65100
65101         * config/srclist.txt: update mkinstalldirs from automake.
65102         * config/mkinstalldirs: update.
65103
65104 2003-06-22  Bruno Haible  <bruno@clisp.org>
65105
65106         Portability to mingw32.
65107         * m4/ssize_t.m4: New file, from GNU gettext.
65108         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
65109         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
65110
65111 2003-06-22  Bruno Haible  <bruno@clisp.org>
65112
65113         * modules/safe-read: Add m4/ssize_t.m4.
65114         * modules/xreadlink: Add m4/ssize_t.m4.
65115
65116 2003-06-20  Bruno Haible  <bruno@clisp.org>
65117
65118         Assume C89, so PARAMS isn't needed.
65119         * lib/unicodeio.h (PARAMS): Remove.
65120         * lib/unicodeio.c: Don't use PARAMS.
65121
65122 2003-06-18  Karl Berry  <karl@gnu.org>
65123
65124         * config/config.{guess,sub}: update from prep.
65125
65126 2003-06-18  Jim Meyering  <jim@meyering.net>
65127
65128         Merge changes from coreutils.
65129         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
65130         Remove explicit declarations of xmalloc and realloc.
65131         Include xalloc.h.
65132         (read_utmp): Remove anachronistic cast of xmalloc.
65133
65134 2003-06-17  Paul Eggert  <eggert@twinsun.com>
65135
65136         Assume C89, so PARAMS isn't needed.
65137         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
65138         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
65139         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
65140         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
65141         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
65142         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
65143         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
65144         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
65145         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
65146         lib/xstrtod.h, lib/xstrtol.h: Likewise.
65147         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
65148         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
65149         no longer needed. Anyway, config.h should always be included before any
65150         other file.
65151
65152 2003-06-11  Simon Josefsson  <jas@extundo.com>
65153
65154         * modules/sysexits: New file.
65155         * MODULES.html.sh (func_all_modules): Add sysexits.
65156
65157 2003-06-11  Simon Josefsson  <jas@extundo.com>
65158
65159         * lib/sysexit_.h: New file.
65160
65161 2003-06-11  Derek Price  <derek@ximbiot.com>
65162
65163         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
65164         necessary.
65165
65166 2003-06-11  Bruno Haible  <bruno@clisp.org>
65167
65168         * m4/sysexits.m4: New file.
65169
65170 2003-06-10  Simon Josefsson  <jas@extundo.com>
65171
65172         * lib/argp.h: New file, from glibc.
65173         * lib/argp-ba.c: New file, from glibc.
65174         * lib/argp-eexst.c: New file, from glibc.
65175         * lib/argp-fmtstream.c: New file, from glibc.
65176         * lib/argp-fmtstream.h: New file, from glibc.
65177         * lib/argp-fs-xinl.c: New file, from glibc.
65178         * lib/argp-help.c: New file, from glibc.
65179         * lib/argp-namefrob.h: New file, from glibc.
65180         * lib/argp-parse.c: New file, from glibc.
65181         * lib/argp-pv.c: New file, from glibc.
65182         * lib/argp-pvh.c: New file, from glibc.
65183         * lib/argp-xinl.c: New file, from glibc.
65184
65185 2003-06-10  Simon Josefsson  <jas@extundo.com>
65186
65187         * modules/strchrnul: New file.
65188
65189 2003-06-10  Simon Josefsson  <jas@extundo.com>
65190
65191         * modules/argp: New file.
65192
65193 2003-06-10  Simon Josefsson  <jas@extundo.com>
65194
65195         * m4/strchrnul.m4: New file.
65196
65197 2003-06-10  Simon Josefsson  <jas@extundo.com>
65198
65199         * lib/strchrnul.h: New file.
65200         * lib/strchrnul.c: New file.
65201
65202 2003-06-10  Bruno Haible  <bruno@clisp.org>
65203
65204         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
65205
65206 2003-06-07  Karl Berry  <karl@gnu.org>
65207
65208         * config/config.{guess,sub}: update from prep.
65209
65210 2003-06-07  Jim Meyering  <jim@meyering.net>
65211
65212         * modules/strtod: Use $(...) notation, not @...@ for
65213         AC_REPLACE'd variables.
65214         * modules/localcharset: Likewise.
65215
65216 2003-06-07  Jim Meyering  <jim@meyering.net>
65217
65218         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
65219         in place of my name in the copyright comment.
65220         Remove definition and uses of __P.
65221
65222         From coreutils.
65223         * lib/stat.c: Don't declare xmalloc explicitly.
65224         Instead, include "xalloc.h".
65225         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
65226         xrealloc, and xcalloc return values.
65227         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
65228         Improve comment.
65229         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
65230
65231 2003-06-07  Bruno Haible  <bruno@clisp.org>
65232
65233         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
65234         avoid AC_CONFIG_LINKS.
65235         * modules/fnmatch (Makefile.am): Use explicit creation rule for
65236         fnmatch.h, to avoid AC_CONFIG_LINKS.
65237         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
65238
65239 2003-06-07  Bruno Haible  <bruno@clisp.org>
65240
65241         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
65242         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
65243         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65244         directory.
65245         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
65246         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
65247         directory.
65248
65249 2003-06-06  Jim Meyering  <jim@meyering.net>
65250
65251         Merge from coreutils.
65252         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
65253         Consolidate declarations and initializations of *_base* locals.
65254
65255         Merge from coreutils.
65256         This avoids a core dump on systems without GNU putenv,
65257         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
65258         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
65259         (unsetenv): New static function, from GNU libc.
65260         (rpl_putenv): Use it.
65261
65262         * lib/modechange.c: Remove trailing blanks.
65263
65264         Merge from coreutils.
65265         * lib/fsusage.c: Remove declaration of statfs.
65266         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
65267
65268         * lib/posixtm.c: Include <stdbool.h> unconditionally.
65269
65270 2003-06-06  Jim Meyering  <jim@meyering.net>
65271
65272         * lib/stdbool_.h: Renamed from stdbool.h.in.
65273
65274 2003-06-06  Jim Meyering  <jim@meyering.net>
65275             Bruno Haible  <bruno@clisp.org>
65276
65277         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
65278         Adjust Makefile.am snippet not to redirect directly to target.
65279         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
65280
65281 2003-06-05  Paul Eggert  <eggert@twinsun.com>
65282
65283         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
65284         mismatch, look in future quarters as well as past.  This fixes a
65285         bug when processing fall-backwards gaps immediately after a long
65286         period of daylight-saving time.
65287
65288         * lib/mktime.c: Assume freestanding C89 or better.
65289         (HAVE_LIMITS_H): Remove.  Assume it's 1.
65290         (__P): Remove; not used.
65291         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
65292         (mktime, not_equal_tm, print_tm, check_result,
65293         main): Use prototypes.  Use const * where appropriate.
65294         (main): Fix typo in testing code that uncovered by above changes.
65295         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
65296
65297 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65298
65299         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
65300         locale.h, localeconv.  This merges changes from coreutils.
65301
65302         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
65303         It can be removed after the next Autoconf is released.
65304         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
65305         needed.
65306
65307 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65308
65309         * lib/mktime.c: Fix Debian bug 177940
65310         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
65311         (localtime_offset): Now long int, not time_t, because we want it
65312         to be guaranteed to be signed.  All uses changed.
65313         (__mktime_internal): If overflow would occur when adding offset,
65314         don't add it.
65315
65316         Merge 'human' changes from coreutils.  Rewrite to support
65317         locale-specific notations like thousands separators.
65318         * lib/human.c: Simplify authorship notice.
65319         Include human.h immediately after config.h.
65320         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
65321         <limits.h>: Do not include, since human.h does.
65322         (SIZE_MAX, UINTMAX_MAX): New macros.
65323         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
65324         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
65325         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
65326         (power_letter): Renamed from suffixes.
65327         (generate_suffix_backwards): Remove.
65328         (adjust_value): Now takes int style (because of human.h changes)
65329         and long double value (for greater precision on some platforms).
65330         (group_number): New function.
65331         (human_readable): Use it.  Use integer options, not enum.
65332         Put the options before the sizes in the arg list.
65333         Support all the new options.
65334         The old human_readable function has been removed;
65335         use inttostr.h instead.
65336         (human_readable, default_block_size, humblock):
65337         Use uintmax_t, not int, for block sizes.
65338         (human_readable_inexact, block_size_types): Remove.
65339         (block_size_opts): New constant.
65340         (human_options): Renamed from human_block_size, with new signature
65341         that allows block sizes up to UINTMAX_MAX.  All callers changed.
65342         * lib/human.h: Add copyright and authorship notice.
65343         Include <limits.h> and <stdbool.h> unconditionally.
65344         (PARAMS): Remove.  All uses removed.
65345         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
65346         (enum human_inexact_style): Remove tag; now a nameless enum.
65347         (human_floor, human_ceiling, human_round_to_even): Now have
65348         values 2, 0, 1 rather than -1, 1, 0.
65349         (human_group_digits, human_suppress_point_zero, human_autoscale,
65350         human_base_1024, human_SI, human_B): New constants.
65351         (human_readable_inexact, human_block_size): Remove.
65352         (human_readable): Size args are now uintmax_t, not int.
65353         (human_options): New decl.
65354
65355         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
65356         unnecessary now that we assume C89 or better.  This change
65357         imported from coreutils.
65358
65359         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65360         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
65361         in the 2003-05-30 sync from glibc.
65362
65363         .h files should stand alone, but we shouldn't include <sys/types.h>
65364         if we can get away with just <stddef.h>.
65365
65366         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
65367         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
65368         rather than <sys/types.h>, as we merely need size_t.
65369         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
65370         to get size_t.
65371         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
65372         Include <stdio.h>, to get FILE.
65373         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
65374         memcasecmp.h has included <stddef.h> and all we need is size_t.
65375         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
65376         our interface, instead of including <sys/types.h>
65377
65378 2003-06-04  Paul Eggert  <eggert@twinsun.com>
65379
65380         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
65381         now, as glibc mktime is buggy on non-glibc systems.
65382
65383 2003-06-03  Karl Berry  <karl@gnu.org>
65384
65385         * config/config.sub: update from prep.
65386
65387 2003-06-02  Paul Eggert  <eggert@twinsun.com>
65388
65389         [from coreutils]
65390         Fix some minor time-related bugs with POSIX time arguments.
65391         Some valid time stamps were being rejected (notably -1, and
65392         time stamps before 1900 on 64-bit hosts).  And some invalid
65393         time stamps were being accepted, e.g. September 31.
65394
65395         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
65396         that we can return (time_t) -1 successfully.
65397         * lib/posixtm.c: Likewise.
65398         [HAVE_STDBOOL_H]: Include <stdbool.h>.
65399         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
65400         (t): Remove static var.
65401         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
65402         of static var.  All uses changed.
65403         (year): Do not reject years before 1900; they can occur with
65404         64-bit time_t.
65405         (posix_time_parse): Do not check for out-of-range components;
65406         that is now the caller's responsibility, since our checks were
65407         only approximations.
65408         (posixtime): Use mktime to check for out-of-range components,
65409         since it knows them exactly.
65410         If mktime returns (time_t) -1, check whether an error actually occurred
65411         by invoking localtime on -1.
65412         (main) [TEST_POSIXTIME]: Check for input data errors, and report
65413         posixtime failures better.
65414         Improve the test data (in comments only).
65415
65416 2003-06-02  Karl Berry  <karl@gnu.org>
65417
65418         * config/mkinstalldirs (version): new variable.
65419         (--version): new option.
65420         (usage): improve message.
65421
65422 2003-05-30  Karl Berry  <karl@gnu.org>
65423
65424         * lib/mktime.c: update from libc.
65425
65426 2003-05-30  Bruno Haible  <bruno@clisp.org>
65427
65428         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
65429         * config/config.rpath: Upgrade to gettext-0.12.1.
65430
65431 2003-05-30  Bruno Haible  <bruno@clisp.org>
65432
65433         * m4/gettext.m4: Upgrade to gettext-0.12.1.
65434         * m4/nls.m4: New file, from gettext-0.12.1.
65435         * m4/po.m4: New file, from gettext-0.12.1.
65436         * m4/progtest.m4: Upgrade to gettext-0.12.1.
65437
65438 2003-05-30  Bruno Haible  <bruno@clisp.org>
65439
65440         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
65441         * lib/localcharset.h: Likewise.
65442         * lib/localcharset.c: Likewise.
65443
65444 2003-05-29  Karl Berry  <karl@gnu.org>
65445
65446         * config/config.rpath: update from gettext.
65447
65448 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65449
65450         Assume the headers required for C89 freestanding compilers.
65451         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
65452         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
65453         * m4/human.m4 (gl_HUMAN): Likewise.
65454         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
65455         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
65456         * m4/userspec.m4 (gl_USERSPEC): Likewise.
65457         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
65458         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
65459         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
65460
65461 2003-05-28  Paul Eggert  <eggert@twinsun.com>
65462
65463         Assume the headers required for C89 freestanding compilers.
65464         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
65465         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
65466         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
65467         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
65468         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
65469         define, since <limits.h> is guaranteed to do that.
65470         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
65471         * lib/exclude.c: Include <stdbool.h> unconditionally.
65472         * lib/tempname.c: Include <stddef.h> unconditionally.
65473         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
65474         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
65475         <stddef.h> does that.
65476         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
65477         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
65478         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
65479         needed.
65480         * lib/xstrtol.c: Likewise.
65481         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
65482         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
65483
65484         * lib/addext.c (addext): Use assignment rather than cast, to avoid
65485         warnings on some platforms.
65486
65487         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
65488         arbitrarily.
65489
65490 2003-05-26  Jim Meyering  <jim@meyering.net>
65491
65492         Merge in a change from coreutils:
65493         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
65494         that is guaranteed to be `no'.  Use `no_such_member' to indicate
65495         that condition, rather than `-1' which is slightly misleading.
65496         Change the name of the cache variable to have the gl_ prefix.
65497         Prompted by a patch from Richard Dawe for DJGPP.
65498
65499 2003-05-24  Karl Berry  <karl@gnu.org>
65500
65501         * config/config.guess: update from prep.
65502
65503 2003-05-22  Karl Berry  <karl@gnu.org>
65504
65505         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
65506
65507 2003-05-20  Karl Berry  <karl@gnu.org>
65508
65509         * config/config.guess: update from prep.
65510
65511 2003-05-18  Karl Berry  <karl@gnu.org>
65512
65513         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
65514         might actually be set by the user.
65515
65516         * config/depcomp, install-sh, mdate-sh: update from automake.
65517
65518 2003-05-17  Bruno Haible  <bruno@clisp.org>
65519
65520         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
65521         invalid expansion for AC_EGREP_CPP.
65522         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
65523         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
65524         Suggested by Akim Demaille <akim@epita.fr> in
65525         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
65526
65527 2003-05-12  Jim Meyering  <jim@meyering.net>
65528
65529         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
65530         the space-padded-by-default conversion specifiers, %e, %k, %l.
65531
65532 2003-05-12  Bruno Haible  <bruno@clisp.org>
65533
65534         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
65535         the string is longer than 4 KB.
65536
65537 2003-05-11  Karl Berry  <karl@gnu.org>
65538
65539         * config/config.{guess,sub}: update from prep.
65540
65541 2003-05-09  Bruno Haible  <bruno@clisp.org>
65542
65543         * modules/error: Add m4/strerror_r.m4 to file list.
65544
65545 2003-05-03  Bruno Haible  <bruno@clisp.org>
65546
65547         Upgrade to Unicode-4.0.
65548         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
65549         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
65550         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
65551         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
65552         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
65553         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
65554         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
65555         Change width of U+E0100..U+E01EF from 1 to 0.
65556
65557 2003-04-25  Jim Meyering  <jim@meyering.net>
65558
65559         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
65560         of type size_t, not int.
65561
65562 2003-04-25  Bruno Haible  <bruno@clisp.org>
65563
65564         * lib/copy-file.c: Include <stddef.h>, for size_t.
65565
65566 2003-04-21  Paul Eggert  <eggert@twinsun.com>
65567
65568         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
65569         code which expansion is under static control.  Patch imported from
65570         Akim Demaille's patch to Bison; see
65571         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
65572
65573 2003-04-14  Bruno Haible  <bruno@clisp.org>
65574
65575         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
65576
65577 2003-04-11  Jim Meyering  <jim@meyering.net>
65578
65579         Merge changes from Coreutils.
65580
65581         2003-03-22  Jim Meyering  <jim@meyering.net>
65582
65583         * lib/strftime.c (widen): Cast alloca return value to proper type.
65584
65585         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
65586
65587         From GNU libc.
65588         * lib/strftime.c (my_strftime): Handle very large width
65589         specifications for numeric values correctly.  Improve checks for
65590         overflow.
65591
65592         2003-01-19  Jim Meyering  <jim@meyering.net>
65593
65594         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
65595         definitions.
65596         (nl_get_alt_digit) [! defined my_strftime]: Define.
65597         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
65598         _nl_get_alt_digit and _nl_get_walt_digit.
65599
65600         * lib/strftime.c (my_strftime): Merge in locale-related changes from
65601         libc. These changes have no effect outside of _LIBC.
65602
65603 2003-04-10  Bruno Haible  <bruno@clisp.org>
65604
65605         * modules/findprog: New file.
65606         * MODULES.html.sh (func_all_modules): Add it.
65607
65608 2003-04-10  Bruno Haible  <bruno@clisp.org>
65609
65610         * m4/findprog.m4: New file.
65611         * m4/eaccess.m4: New file.
65612
65613 2003-04-10  Bruno Haible  <bruno@clisp.org>
65614
65615         * lib/findprog.h: New file, from GNU gettext.
65616         * lib/findprog.c: New file, from GNU gettext.
65617
65618 2003-04-05  Jim Meyering  <jim@meyering.net>
65619
65620         Merge changes from Coreutils.
65621
65622         * lib/exclude.h (PARAMS): Remove definition and uses.
65623         * lib/exclude.c: Remove uses of `PARAMS'.
65624
65625         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
65626         Add test-cases for DOS filenames. Declare program_name.
65627         (main): Set up program_name.  Patch by Rich Dawe.
65628
65629         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65630         error from mntctl.
65631         Use mntctl's return value to drive the entry-processing loop, since
65632         we can't rely on the value of the vmt_length member in the last
65633         entry.  On some systems doing so could result in exhausting
65634         virtual memory.  Based in part on a patch from Mike Jetzer.
65635
65636 2003-04-04  Bruno Haible  <bruno@clisp.org>
65637
65638         * modules/linebreak: New file.
65639         * MODULES.html.sh (func_all_modules): Add it.
65640
65641 2003-04-04  Bruno Haible  <bruno@clisp.org>
65642
65643         * m4/linebreak.m4: New file.
65644
65645 2003-04-04  Bruno Haible  <bruno@clisp.org>
65646
65647         * lib/linebreak.h: New file, from GNU gettext.
65648         * lib/linebreak.c: New file, from GNU gettext with slight
65649         modifications.
65650         * lib/lbrkprop.h: New file, from GNU gettext.
65651
65652 2003-04-03  Bruno Haible  <bruno@clisp.org>
65653
65654         * modules/utf8-ucs4: New file.
65655         * modules/utf16-ucs4: New file.
65656         * modules/ucs4-utf8: New file.
65657         * modules/ucs4-utf16: New file.
65658         * MODULES.html.sh (func_all_modules): Add them.
65659
65660 2003-04-03  Bruno Haible  <bruno@clisp.org>
65661
65662         * m4/utf-ucs4.m4: New file.
65663         * m4/ucs4-utf.m4: New file.
65664
65665 2003-04-03  Bruno Haible  <bruno@clisp.org>
65666
65667         * lib/utf8-ucs4.h: New file, from GNU gettext.
65668         * lib/utf16-ucs4.h: New file, from GNU gettext.
65669         * lib/ucs4-utf8.h: New file, from GNU gettext.
65670         * lib/ucs4-utf16.h: New file, from GNU gettext.
65671
65672 2003-04-02  Bruno Haible  <bruno@clisp.org>
65673
65674         * modules/binary-io: New file.
65675         * MODULES.html.sh (func_all_modules): Add it.
65676
65677 2003-04-02  Bruno Haible  <bruno@clisp.org>
65678
65679         * lib/binary-io.h: New file, from GNU gettext.
65680
65681 2003-04-01  Bruno Haible  <bruno@clisp.org>
65682
65683         * modules/pathname: New file.
65684         * MODULES.html.sh (func_all_modules): Add it.
65685
65686 2003-04-01  Bruno Haible  <bruno@clisp.org>
65687
65688         * lib/pathname.h: New file, from GNU gettext.
65689         * lib/concatpath.c: New file, from GNU gettext.
65690
65691 2003-03-30  Bruno Haible  <bruno@clisp.org>
65692
65693         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
65694
65695 2003-03-30  Bruno Haible  <bruno@clisp.org>
65696
65697         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
65698         function chown() doesn't exist.
65699
65700 2003-03-28  Bruno Haible  <bruno@clisp.org>
65701
65702         * modules/copy-file: New file.
65703         * MODULES.html.sh (func_all_modules): Add it.
65704
65705 2003-03-28  Bruno Haible  <bruno@clisp.org>
65706
65707         * m4/copy-file.m4: New file.
65708
65709 2003-03-28  Bruno Haible  <bruno@clisp.org>
65710
65711         * lib/copy-file.h: New file, from GNU gettext.
65712         * lib/copy-file.c: New file, from GNU gettext.
65713
65714 2003-03-18  Jim Meyering  <jim@meyering.net>
65715
65716         * lib/quote.c (quote_n): Fix typo in comment.
65717
65718 2003-03-18  Bruno Haible  <bruno@clisp.org>
65719
65720         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
65721         checking.
65722         * m4/onceonly_2_57.m4: Likewise.
65723
65724 2003-03-17  Bruno Haible  <bruno@clisp.org>
65725
65726         * m4/onceonly.m4: Require autoconf 2.54 or newer.
65727         (m4_quote): Remove macro.
65728         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
65729
65730 2003-03-14  Jim Meyering  <jim@meyering.net>
65731
65732         Merge changes from Coreutils.
65733         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
65734         to be const, in order to avoid warnings.
65735         (obstack_room): Likewise.
65736         (obstack_empty_p): Likewise.
65737
65738 2003-03-14  Bruno Haible  <bruno@clisp.org>
65739
65740         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
65741         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
65742
65743 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65744
65745         Merge changes from Bison.
65746         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
65747         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
65748         when compiling Bison 1.875's `bitset bset = obstack_alloc
65749         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
65750         * lib/hash.c: Include <stdbool.h> unconditionally.
65751
65752 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65753
65754         * m4/onceonly.m4 (m4_quote): New macro.
65755         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
65756         Quote AC_FOREACH variable-expansions properly.
65757
65758 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65759
65760         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
65761
65762 2003-03-09  Paul Eggert  <eggert@twinsun.com>
65763
65764         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
65765         Reported by Bruce Becker; see:
65766         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
65767
65768 2003-03-03  Paul Eggert  <eggert@twinsun.com>
65769             Bruno Haible  <bruno@clisp.org>
65770
65771         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
65772         Reported by John Hughes, see
65773         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
65774
65775 2003-02-20  Bruno Haible  <bruno@clisp.org>
65776
65777         * MODULES.html.sh (func_all_modules): Add poll.
65778
65779 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65780
65781         * modules/poll: New file.
65782
65783 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65784
65785         * lib/poll_.h: New file.
65786         * lib/poll.c: New file.
65787
65788 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65789
65790         * m4/poll.m4: New file.
65791
65792 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65793
65794         * modules/mathl: New file.
65795
65796 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65797
65798         * lib/mathl.h: New file.
65799         * lib/acosl.c: New file.
65800         * lib/asinl.c: New file.
65801         * lib/atanl.c: New file.
65802         * lib/ceill.c: New file.
65803         * lib/cosl.c: New file.
65804         * lib/expl.c: New file.
65805         * lib/floorl.c: New file.
65806         * lib/frexpl.c: New file.
65807         * lib/ldexpl.c: New file.
65808         * lib/logl.c: New file.
65809         * lib/sincosl.c: New file.
65810         * lib/sinl.c: New file.
65811         * lib/sqrtl.c: New file.
65812         * lib/tanl.c: New file.
65813         * lib/trigl.c: New file.
65814         * lib/trigl.h: New file.
65815
65816 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65817
65818         * m4/mathl.m4: New file.
65819
65820 2003-02-18  Bruno Haible  <bruno@clisp.org>
65821
65822         * MODULES.html.sh (func_all_modules): Add mathl.
65823
65824 2003-02-17  Bruno Haible  <bruno@clisp.org>
65825
65826         * modules/mkdtemp: New module.
65827         * MODULES.html.sh (func_all_modules): Add it.
65828
65829 2003-02-17  Bruno Haible  <bruno@clisp.org>
65830
65831         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
65832
65833 2003-02-17  Bruno Haible  <bruno@clisp.org>
65834
65835         * lib/mkdtemp.h: New file, from GNU gettext.
65836         * lib/mkdtemp.c: New file, from GNU gettext.
65837
65838 2003-02-02  Jim Meyering  <jim@meyering.net>
65839
65840         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
65841         e.g. glibc-2.2.93.
65842
65843 2003-01-31  Bruno Haible  <bruno@clisp.org>
65844
65845         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
65846         'rpl_rename'.
65847         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
65848         'rpl_strnlen'.
65849         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
65850         'rpl_strtod'.
65851         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
65852         'rpl_utime'.
65853
65854 2003-01-31  Bruno Haible  <bruno@clisp.org>
65855
65856         * lib/rename.c: #undef rename before defining rpl_rename.
65857         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
65858
65859 2003-01-30  Bruno Haible  <bruno@clisp.org>
65860
65861         * modules/vasnprintf, modules/vasprintf: New modules.
65862         * MODULES.html.sh (func_all_modules): Add them.
65863
65864 2003-01-30  Bruno Haible  <bruno@clisp.org>
65865
65866         * m4/signed.m4: New file, from GNU gettext.
65867         * m4/longdouble.m4: New file, from GNU gettext.
65868         * m4/wchar_t.m4: New file, from GNU gettext.
65869         * m4/wint_t.m4: New file, from GNU gettext.
65870         * m4/vasnprintf.m4: New file.
65871         * m4/vasprintf.m4: New file.
65872
65873 2003-01-30  Bruno Haible  <bruno@clisp.org>
65874
65875         * lib/printf-args.h: New file, from GNU gettext.
65876         * lib/printf-args.c: New file, from GNU gettext.
65877         * lib/printf-parse.h: New file, from GNU gettext.
65878         * lib/printf-parse.c: New file, from GNU gettext.
65879         * lib/vasnprintf.h: New file, from GNU gettext.
65880         * lib/vasnprintf.c: New file, from GNU gettext.
65881         * lib/asnprintf.c: New file, from GNU gettext.
65882         * lib/vasprintf.h: New file, from GNU gettext with modifications.
65883         * lib/vasprintf.c: New file, from GNU gettext.
65884         * lib/asprintf.c: New file, from GNU gettext.
65885
65886 2003-01-29  Bruno Haible  <bruno@clisp.org>
65887
65888         * modules/stpncpy: New module.
65889         * MODULES.html.sh (func_all_modules): Add it.
65890
65891 2003-01-29  Bruno Haible  <bruno@clisp.org>
65892
65893         * m4/stpncpy.m4: New file.
65894
65895 2003-01-29  Bruno Haible  <bruno@clisp.org>
65896
65897         * lib/stpncpy.h: New file, from GNU gettext with modifications.
65898         * lib/stpncpy.c: New file, from GNU gettext with modifications.
65899
65900 2003-01-28  Bruno Haible  <bruno@clisp.org>
65901
65902         * modules/c-ctype: New module.
65903         * MODULES.html.sh (func_all_modules): Add it.
65904
65905 2003-01-28  Bruno Haible  <bruno@clisp.org>
65906
65907         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
65908         Paul Eggert.
65909         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
65910         Paul Eggert.
65911
65912 2003-01-27  Bruno Haible  <bruno@clisp.org>
65913
65914         * modules/xsetenv: New module.
65915         * MODULES.html.sh (func_all_modules): Add it.
65916
65917 2003-01-27  Bruno Haible  <bruno@clisp.org>
65918
65919         * lib/xsetenv.h: New file, from GNU gettext.
65920         * lib/xsetenv.c: New file, from GNU gettext.
65921
65922 2003-01-23  Jim Meyering  <jim@meyering.net>
65923
65924         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
65925         from working on systems without dirfd (at least Irix and OSF1/Tru64).
65926
65927 2003-01-23  Bruno Haible  <bruno@clisp.org>
65928
65929         * modules/minmax: New module.
65930         * MODULES.html.sh (func_all_modules): Add it.
65931
65932 2003-01-23  Bruno Haible  <bruno@clisp.org>
65933
65934         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
65935         Eggert.
65936
65937 2003-01-22  Bruno Haible  <bruno@clisp.org>
65938
65939         * modules/exit: New module.
65940         * MODULES.html.sh (func_all_modules): Add it.
65941
65942 2003-01-22  Bruno Haible  <bruno@clisp.org>
65943
65944         * lib/exit.h: New file, from GNU gettext.
65945
65946 2003-01-19  Bruno Haible  <bruno@clisp.org>
65947
65948         * gnulib-tool: Recognize option --extract-maintainer.
65949         (func_get_maintainer): New function.
65950         * modules/*: Add Maintainer entry.
65951
65952 2003-01-16  Jim Meyering  <jim@meyering.net>
65953
65954         * m4/regex.m4: The `regex' struct is both input and output.
65955         Initialize it before each use.  Patch by Tim Waugh.
65956
65957 2003-01-16  Bruno Haible  <bruno@clisp.org>
65958
65959         * MODULES.html.sh: Add a table of contents. Add the module name as
65960         leftmost column. Add hyperlinks.
65961
65962 2003-01-15  Bruno Haible  <bruno@clisp.org>
65963
65964         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
65965
65966 2003-01-15  Bruno Haible  <bruno@clisp.org>
65967
65968         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
65969         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
65970         suffix.
65971
65972 2003-01-15  Bruno Haible  <bruno@clisp.org>
65973
65974         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
65975
65976 2003-01-15  Bruno Haible  <bruno@clisp.org>
65977
65978         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
65979         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
65980
65981 2003-01-14  Jim Meyering  <jim@meyering.net>
65982
65983         * lib/same.c (same_name): Tweak a comment.
65984
65985 2003-01-14  Bruno Haible  <bruno@clisp.org>
65986
65987         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
65988         when a string comparison is sufficient.
65989
65990 2003-01-14  Bruno Haible  <bruno@clisp.org>
65991
65992         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
65993         'unsigned int'.
65994
65995 2003-01-14  Bruno Haible  <bruno@clisp.org>
65996
65997         * lib/hash-pjw.c: Add comment about low quality of this function.
65998
65999 2003-01-13  Bruno Haible  <bruno@clisp.org>
66000
66001         * modules/stpcpy: Distribute lib/stpcpy.h.
66002         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
66003
66004 2003-01-13  Bruno Haible  <bruno@clisp.org>
66005
66006         * modules/*: Add a description.
66007         * modules/strpbrk: Fix Makefile.am snippet.
66008         * modules/strtoimax: Fix dependencies.
66009         * modules/strtoumax: Likewise.
66010
66011 2003-01-13  Bruno Haible  <bruno@clisp.org>
66012
66013         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
66014         * modules/alloca (Makefile.am): All object files depend on alloca.h.
66015         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
66016
66017 2003-01-13  Bruno Haible  <bruno@clisp.org>
66018
66019         * gnulib-tool (func_create_testdir): Store config/* files in the main
66020         directory.
66021         * config.rpath: Move to ...
66022         * config/config.rpath: ... here.
66023         * modules/gettext: Contains config/config.rpath, not config.rpath.
66024         * modules/iconv: Likewise.
66025
66026 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66027
66028         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66029         to avoid collisions with libcurses and libreadline.
66030
66031         * m4/getstr.m4: Remove.
66032         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
66033
66034 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66035
66036         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66037         to avoid collisions with libcurses and libreadline.
66038
66039         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
66040         * lib/getstr.h, getstr.c: Remove.
66041         * lib/getline.c: Include "getline.h", to check interface.
66042         Move body of old getstr.c here: this defines MIN_CHUNK and
66043         declares getdelim2, which is renamed from getstr.
66044         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
66045
66046         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
66047         All uses changed.
66048         * lib/linebuffer.h: Likewise.
66049         (readline): Remove backward-compatibility macro.
66050
66051 2003-01-12  Paul Eggert  <eggert@twinsun.com>
66052
66053         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
66054         to avoid collisions with libcurses and libreadline.
66055         * getstr: Remove.
66056         * MODULES.html.sh: Remove getstr.
66057         * modules/getline: Depend on unlocked-io, not getstr.
66058
66059 2003-01-12  Jim Meyering  <jim@meyering.net>
66060
66061         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
66062
66063 2003-01-10  Bruno Haible  <bruno@clisp.org>
66064
66065         * modules/alloca: Change Makefile.am requirements. Simplify Include
66066         requirements. Add lib/alloca_.h to file list.
66067
66068 2003-01-10  Bruno Haible  <bruno@clisp.org>
66069
66070         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
66071
66072 2003-01-10  Bruno Haible  <bruno@clisp.org>
66073
66074         * lib/alloca_.h: New file.
66075         * lib/getdate.y: Unconditionally include alloca.h.
66076         * lib/makepath.c: Likewise.
66077         * lib/setenv.c: Likewise.
66078         * lib/userspec.c: Likewise.
66079
66080 2003-01-09  Karl Berry  <karl@gnu.org>
66081
66082         * MODULES.html.sh: include `dirname $0` in PATH, to find
66083         gnulib-tool.
66084
66085 2003-01-09  Bruno Haible  <bruno@clisp.org>
66086
66087         * modules/stdbool: Change configure.ac, Makefile.am requirements.
66088         Simplify Include requirements. Add lib/stdbool.h.in to file list.
66089
66090 2003-01-09  Bruno Haible  <bruno@clisp.org>
66091
66092         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
66093
66094 2003-01-09  Bruno Haible  <bruno@clisp.org>
66095
66096         * lib/stdbool.h.in: New file.
66097
66098 2003-01-09  Bruno Haible  <bruno@clisp.org>
66099
66100         * gnulib-tool (func_all_modules): Ignore files ending in ~.
66101         * MODULES.html.sh: Likewise.
66102
66103 2003-01-08  Jim Meyering  <jim@meyering.net>
66104
66105         * lib/full-write.c: Undefine and define-away `const' after inclusion
66106         of errno.h, not before.  Suggestion from Bruno Haible.
66107
66108 2003-01-08  Bruno Haible  <bruno@clisp.org>
66109
66110         * modules/full-read: Depend on full-write.
66111
66112 2003-01-08  Bruno Haible  <bruno@clisp.org>
66113
66114         * lib/safe-read.c: Include specification header first, to ensure its
66115         selfcontainedness.
66116         * lib/full-write.c: Likewise.
66117
66118 2003-01-07  Jim Meyering  <jim@meyering.net>
66119
66120         * lib/full-write.c: Rework so that it may serve to define full_read,
66121         too.
66122         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
66123
66124 2003-01-07  Bruno Haible  <bruno@clisp.org>
66125
66126         * lib/strtoimax.c: Include <stdint.h> as an alternative to
66127         <inttypes.h>.
66128         * lib/xstrtol.h: Likewise.
66129         * lib/xstrtoimax.c: Likewise.
66130         * lib/xstrtoumax.c: Likewise.
66131         * lib/human.h: Likewise.
66132
66133         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
66134         on systems that have <inttypes.h> but not <stdint.h>.
66135
66136 2003-01-07  Bruno Haible  <bruno@clisp.org>
66137
66138         * MODULES.html.sh: Add copyright notice.
66139         (missed_files): Omit CVS directory entries.
66140         (func_module): Make it work with sed-3.02.
66141         * MODULES.txt: Remove file.
66142
66143 2003-01-06  Jim Meyering  <jim@meyering.net>
66144
66145         * lib/version-etc.c: Update year in translatable copyright string.
66146
66147 2003-01-03  Karl Berry  <karl@gnu.org>
66148
66149         * config/config.{guess,sub}: update from prep.
66150
66151 2003-01-02  Karl Berry  <karl@gnu.org>
66152
66153         * doc/COPYING.DOC: belatedly updated to 1.2.
66154
66155 2003-01-01  Karl Berry  <karl@gnu.org>
66156
66157         * gnulib-tool (func_verify_module): report module name $module in
66158         error message, not $1.
66159         * gnulib-tool (create-testdir): don't complain if destdir couldn't
66160         be created, only if it doesn't exist.
66161         * gnulib-tool (last_checkin_date): don't expand the $Date here.
66162
66163 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66164
66165         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
66166
66167 2002-12-31  Paul Eggert  <eggert@twinsun.com>
66168
66169         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
66170         memcmp if strcoll doesn't work.
66171
66172 2002-12-31  Bruno Haible  <bruno@clisp.org>
66173
66174         * lib/utime.c (utime_null): No need to call ftruncate if the file was
66175         nonempty.
66176
66177 2002-12-31  Bruno Haible  <bruno@clisp.org>
66178
66179         * lib/memcoll.c (STRCOLL): New macro.
66180         (memcoll): Use it.
66181
66182 2002-12-31  Bruno Haible  <bruno@clisp.org>
66183
66184         * lib/localcharset.h: New file.
66185         * lib/localcharset.c: Include it.
66186         * lib/unicodeio.c: Likewise.
66187
66188 2002-12-31  Bruno Haible  <bruno@clisp.org>
66189
66190         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
66191         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
66192
66193 2002-12-31  Bruno Haible  <bruno@clisp.org>
66194
66195         * lib/getline.h: Include <stddef.h>, for size_t.
66196
66197         * lib/unicodeio.h: Include <stddef.h>, for size_t.
66198         * lib/unicodeio.c: Don't include <stddef.h>.
66199
66200 2002-12-31  Bruno Haible  <bruno@clisp.org>
66201
66202         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
66203         HAVE_TM_ZONE.
66204
66205 2002-12-24  Karl Berry  <karl@gnu.org>
66206
66207         * config/config.guess: update from prep.
66208
66209 2002-12-24  Bruno Haible  <bruno@clisp.org>
66210
66211         General infrasructure.
66212         * m4/README: Rewritten.
66213         * m4/onceonly.m4: New file.
66214         * m4/onceonly_2_57.m4: New file.
66215
66216         Module atexit.
66217         * m4/atexit.m4: New file.
66218
66219         Module strtod.
66220         * m4/strtod.m4: New file.
66221
66222         Module strtol.
66223         * m4/strtol.m4: New file.
66224
66225         Module strtoul.
66226         * m4/strtoul.m4: New file.
66227
66228         Module memchr.
66229         * m4/memchr.m4: New file.
66230
66231         Module memcmp.
66232         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
66233         (jm_FUNC_MEMCMP): Invoke it.
66234
66235         Module memcpy.
66236         * m4/memcpy.m4: New file.
66237
66238         Module memmove.
66239         * m4/memmove.m4: New file.
66240
66241         Module memset.
66242         * m4/memset.m4: New file.
66243
66244         Module strcspn.
66245         * m4/strcspn.m4: New file.
66246
66247         Module strpbrk.
66248         * m4/strpbrk.m4: New file.
66249
66250         Module strstr.
66251         * m4/strstr.m4: New file.
66252
66253         Module strerror.
66254         * m4/strerror.m4: New file.
66255
66256         Module mktime.
66257         * m4/mktime.m4: Renamed from jm-mktime.m4.
66258         (gl_PREREQ_MKTIME): New macro.
66259         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
66260
66261         Module malloc.
66262         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
66263         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
66264         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
66265
66266         Module realloc.
66267         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
66268         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
66269         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
66270
66271         Module strftime.
66272         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
66273         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
66274         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
66275         gl_TM_GMTOFF.
66276         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
66277
66278         Module xalloc.
66279         * m4/xalloc.m4: New file.
66280
66281         Module alloca.
66282         * m4/alloca.m4: New file.
66283
66284         Module putenv.
66285         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
66286         (jm_FUNC_PUTENV): Invoke it.
66287
66288         Module setenv.
66289         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
66290         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
66291         when invoked twice.
66292         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
66293         gt_FUNC_SETENV.
66294
66295         Module memrchr.
66296         * m4/memrchr.m4: New file.
66297
66298         Module stpcpy.
66299         * m4/stpcpy.m4: New file.
66300
66301         Module strcase.
66302         * m4/strcase.m4: New file.
66303
66304         Module strdup.
66305         * m4/strdup.m4: New file.
66306
66307         Module strnlen.
66308         * m4/strnlen.m4: New file.
66309
66310         Module strndup.
66311         * m4/strndup.m4: New file.
66312
66313         Module xstrtod.
66314         * m4/xstrtod.m4: New file.
66315
66316         Module xstrtol.
66317         * m4/xstrtol.m4: New file.
66318
66319         Module getdate.
66320         * m4/getdate.m4: New file.
66321
66322         Module unlocked-io.
66323         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
66324         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
66325         * m4/jm-glibc-io.m4n: Remove file.
66326
66327         Module long-options.
66328         * m4/long-options.m4: New file.
66329
66330         Module md5.
66331         * m4/md5.m4: New file.
66332
66333         Module sha.
66334         * m4/sha.m4: New file.
66335
66336         Module getstr.
66337         * m4/getstr.m4: New file.
66338
66339         Module getline.
66340         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
66341         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
66342         <sys/types.h>, for size_t. Use the function name gnu_getline, not
66343         simply getline. Infoke gl_PREREQ_GETLINE.
66344
66345         Module obstack.
66346         * m4/obstack.m4: New file.
66347
66348         Module hash.
66349         * m4/hash.m4: New file.
66350
66351         Module readtokens.
66352         * m4/readtokens.m4: New file.
66353
66354         Module strverscmp.
66355         * m4/strverscmp.m4: New file.
66356
66357         Module stdbool.
66358         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
66359         OSF/1.
66360
66361         Module strtoll.
66362         * m4/strtoll.m4: New file.
66363
66364         Module strtoull.
66365         * m4/strtoull.m4: New file.
66366
66367         Module strtoimax.
66368         * m4/strtoimax.m4: New file.
66369
66370         Module strtoumax.
66371         * m4/strtoumax.m4: New file.
66372
66373         Module xstrtoimax.
66374         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
66375         jm_AC_PREREQ_XSTRTOIMAX.
66376         Moved the strtol prerequisites to strtol.m4.
66377         Moved the strtoll prerequisites to strtoll.m4.
66378         Moved the strtoimax prerequisites to strtoimax.m4.
66379
66380         Module xstrtoumax.
66381         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
66382         jm_AC_PREREQ_XSTRTOUMAX.
66383         Moved the strtoul prerequisites to strtoul.m4.
66384         Moved the strtoull prerequisites to strtoull.m4.
66385         Moved the strtoumax prerequisites to strtoumax.m4.
66386
66387         Module chown.
66388         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
66389         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
66390
66391         Module dup2.
66392         * m4/dup2.m4: New file.
66393
66394         Module ftruncate.
66395         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
66396         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
66397
66398         Module getgroups.
66399         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
66400         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
66401
66402         Module gettimeofday.
66403         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
66404         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
66405         gl_PREREQ_GETTIMEOFDAY.
66406
66407         Module mkdir.
66408         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
66409         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
66410
66411         Module mkstemp.
66412         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
66413         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
66414         jm_AC_TYPE_UINTMAX_T.
66415         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
66416
66417         Module stat.
66418         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
66419         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
66420
66421         Module lstat.
66422         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
66423         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
66424
66425         Module timespec.
66426         * m4/timespec.m4 (gl_TIMESPEC): New macro.
66427         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
66428         * m4/st_mtim.m4: Indentation.
66429
66430         Module nanosleep.
66431         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
66432         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
66433         gl_PREREQ_NANOSLEEP.
66434
66435         Module regex.
66436         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
66437         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
66438         (gl_REGEX): New macro.
66439
66440         Module rename.
66441         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
66442         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
66443
66444         Module rmdir.
66445         * m4/rmdir.m4: New file.
66446
66447         Module utime.
66448         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
66449         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
66450         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
66451
66452         Module dirname.
66453         * m4/dirname.m4: New file.
66454
66455         Module getopt.
66456         * m4/getopt.m4: New file.
66457
66458         Module unistd-safer.
66459         * m4/unistd-safer.m4: New file.
66460
66461         Module fnmatch.
66462         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
66463         declaration.
66464         (gl_PREREQ_FNMATCH_EXTRA): New macro.
66465         (gl_FUNC_FNMATCH_POSIX): New macro.
66466         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
66467         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
66468         simply fnmatch.
66469
66470         Module exclude.
66471         * m4/exclude.m4: New file.
66472
66473         Module human.
66474         * m4/human.m4: New file.
66475
66476         Module acl.
66477         * m4/acl.m4: Nop.
66478
66479         Module backupfile.
66480         * m4/backupfile.m4: New file.
66481         * m4/d-ino.m4: Indentation.
66482
66483         Module fsusage.
66484         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
66485         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
66486         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
66487
66488         Module dirfd.
66489         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
66490         requirements.
66491
66492         Module euidaccess.
66493         * m4/euidaccess.m4: New file.
66494
66495         Module file-type.
66496         * m4/file-type.m4: New file.
66497
66498         Module fileblocks.
66499         * m4/fileblocks.m4: New file.
66500
66501         Module filemode.
66502         * m4/filemode.m4: New file.
66503
66504         Module isdir.
66505         * m4/isdir.m4: New file.
66506
66507         Module lchown.
66508         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
66509         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
66510
66511         Module makepath.
66512         * m4/makepath.m4: New file.
66513
66514         Module modechange.
66515         * m4/modechange.m4: New file.
66516
66517         Module mountlist.
66518         * m4/mountlist.m4: New file.
66519         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
66520         Indentation.
66521
66522         Module path-concat.
66523         * m4/path-concat.m4: New file.
66524
66525         Module pathmax.
66526         * m4/pathmax.m4: New file.
66527
66528         Module same.
66529         * m4/same.m4: New file.
66530
66531         Module save-cwd.
66532         * m4/save-cwd.m4: New file.
66533
66534         Module savedir.
66535         * m4/savedir.m4: New file.
66536
66537         Module xgetcwd.
66538         * m4/xgetcwd.m4: New file.
66539         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
66540
66541         Module xreadlink.
66542         * m4/xreadlink.m4: New file.
66543
66544         Module safe-read.
66545         * m4/safe-read.m4: New file.
66546
66547         Module safe-write.
66548         * m4/safe-write.m4: New file.
66549
66550         Module closeout.
66551         * m4/closeout.m4: New file.
66552
66553         Module stdio-safer.
66554         * m4/stdio-safer.m4: New file.
66555
66556         Module getpass.
66557         * m4/getpass.m4: New file.
66558
66559         Module getugroups.
66560         * m4/getugroups.m4: New file.
66561
66562         Module group-member.
66563         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
66564         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
66565
66566         Module idcache.
66567         * m4/idcache.m4: New file.
66568
66569         Module userspec.
66570         * m4/userspec.m4: New file.
66571
66572         Module gettime.
66573         * m4/clock_time.m4: New file.
66574         * m4/gettime.m4: New file.
66575
66576         Module settime.
66577         * m4/settime.m4: New file.
66578
66579         Module posixtm.
66580         * m4/posixtm.m4: New file.
66581
66582         Module gethostname.
66583         * m4/gethostname.m4: New file.
66584
66585         Module canon-host.
66586         * m4/canon-host.m4: New file.
66587
66588         Module gettext.
66589         * m4/codeset.m4: New file, from gettext-0.11.5.
66590         * m4/gettext.m4: New file, from gettext-0.11.5.
66591         * m4/glibc21.m4: New file, from gettext-0.11.5.
66592         * m4/iconv.m4: New file, from gettext-0.11.5.
66593         * m4/intdiv0.m4: New file, from gettext-0.11.5.
66594         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
66595         * m4/inttypes.m4: New file, from gettext-0.11.5.
66596         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
66597         * m4/isc-posix.m4: New file, from gettext-0.11.5.
66598         * m4/lcmessage.m4: New file, from gettext-0.11.5.
66599         * m4/lib-ld.m4: New file, from gettext-0.11.5.
66600         * m4/lib-link.m4: New file, from gettext-0.11.5.
66601         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
66602         * m4/progtest.m4: New file, from gettext-0.11.5.
66603         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
66604         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
66605         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
66606
66607         Module localcharset.
66608         * m4/localcharset.m4: New file.
66609
66610         Module hard-locale.
66611         * m4/hard-locale.m4: New file.
66612
66613         Module mbswidth.
66614         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
66615         onceonly macros.
66616         * m4/mbrtowc.m4: Add comment.
66617
66618         Module memcasecmp.
66619         * m4/memcasecmp.m4: New file.
66620
66621         Module memcoll.
66622         * m4/memcoll.m4: New file.
66623
66624         Module unicodeio.
66625         * m4/unicodeio.m4: New file.
66626
66627         Module rpmatch.
66628         * m4/rpmatch.m4: New file.
66629
66630         Module yesno.
66631         * m4/yesno.m4: New file.
66632
66633         Module exitfail.
66634         * m4/exitfail.m4: New file.
66635
66636         Module c-stack.
66637         * m4/c-stack.m4 (gl_C_STACK): New macro.
66638         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
66639
66640         Module error.
66641         * m4/error.m4 (gl_ERROR): New macro.
66642         (jm_PREREQ_ERROR): Use onceonly macros.
66643
66644         Module fatal.
66645         * m4/fatal.m4: New file.
66646
66647         Module getloadavg.
66648         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
66649         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
66650
66651         Module getpagesize.
66652         * m4/getpagesize.m4: New file.
66653
66654         Module getusershell.
66655         * m4/getusershell.m4: New file.
66656
66657         Module physmem.
66658         * m4/physmem.m4: New file.
66659
66660         Module posixver.
66661         * m4/posixver.m4: New file.
66662
66663         Module quotearg.
66664         * m4/quotearg.m4: New file.
66665
66666         Module quote.
66667         * m4/quote.m4: New file.
66668
66669         Module readutmp.
66670         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
66671
66672         Module sig2str.
66673         * m4/sig2str.m4: New file.
66674
66675         Other.
66676         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
66677         ulonglong.m4.
66678         * m4/intmax_t.m4: New file.
66679         * m4/d-type.m4: Indentation.
66680         * m4/jm-macros.m4: Update.
66681         * m4/prereq.m4 (jm_PREREQ): Update.
66682         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
66683         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
66684         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
66685         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
66686         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
66687         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
66688         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
66689         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
66690         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
66691         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
66692         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
66693         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
66694         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
66695         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
66696         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
66697         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
66698         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
66699         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
66700         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
66701
66702 2002-12-24  Bruno Haible  <bruno@clisp.org>
66703
66704         * MODULES.txt: Update according to m4/ changes.
66705
66706         Module gettext.
66707         * config.rpath: New file, from gettext-0.11.5.
66708
66709         * modules/*: New module descriptions.
66710         * gnulib-tool: New file.
66711         * MODULES.html.sh: New file.
66712
66713 2002-12-21  Karl Berry  <karl@gnu.org>
66714
66715         * doc/fdl.texi: update to version 1.2.
66716
66717 2002-12-19  Karl Berry  <karl@gnu.org>
66718
66719         * config/config.guess: update from prep.
66720
66721 2002-12-18  Bruno Haible  <bruno@clisp.org>
66722
66723         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
66724         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
66725
66726 2002-12-17  Bruno Haible  <bruno@clisp.org>
66727
66728         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
66729         stdlib.h, string.h.
66730
66731 2002-12-17  Bruno Haible  <bruno@clisp.org>
66732
66733         * lib/canon-host.c (strdup): Remove unused declaration.
66734
66735         * lib/fsusage.c: Include full_read.h.
66736         (get_fs_usage): Use full_read instead of safe_read.
66737
66738         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
66739
66740 2002-12-12  Karl Berry  <karl@gnu.org>
66741
66742         * config/config.guess: update from prep.
66743
66744 2002-12-11  Bruno Haible  <bruno@clisp.org>
66745
66746         * m4/setenv.m4: New file, from gettext-0.11.5.
66747
66748 2002-12-11  Bruno Haible  <bruno@clisp.org>
66749
66750         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
66751         not unsetenv().
66752         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
66753         modifications:
66754
66755         2002-12-11  Bruno Haible  <bruno@clisp.org>
66756
66757                 * setenv.c (alloca): Fall back to malloc.
66758                 (freea): New macro.
66759                 (setenv): Use freea() to free memory allocated with alloca().
66760
66761         2002-11-13  Bruno Haible  <bruno@clisp.org>
66762
66763                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
66764                 function declarations.
66765                 * unsetenv.c (unsetenv): Likewise.
66766
66767         2002-03-04  Bruno Haible  <bruno@clisp.org>
66768
66769                 Portability to AIX 4.3.3.
66770                 * unsetenv.c: New file, extracted from setenv.c.
66771                 * setenv.c: Move the unsetenv() function to unsetenv.c.
66772
66773         2001-12-20  Bruno Haible  <bruno@clisp.org>
66774
66775                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
66776                 use malloc instead. For SunOS 4.
66777
66778         2001-12-11  Bruno Haible  <bruno@clisp.org>
66779
66780                 * setenv.c: Declare alloca.
66781                 (compar_fn_t): New typedef.
66782                 (KNOWN_VALUE, STORE_VALUE): Use it.
66783
66784         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
66785         setenv.h.
66786
66787 2002-12-10  Paul Eggert  <eggert@twinsun.com>
66788
66789         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
66790         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
66791         Choose values that are less likely to collide with system fnmatch
66792         options.
66793         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
66794         defined (e.g., a pure POSIX system).
66795         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
66796         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
66797
66798 2002-12-06  Paul Eggert  <eggert@twinsun.com>
66799
66800         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
66801         a pain in practice to deal with generated m4 files.  This change
66802         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
66803
66804         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
66805         and jm-glibc-io.m4, as they are no longer a special case.
66806         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
66807         kludge and the auto-generation stuff.  Check only whether the
66808         functions are declared, not whether they exist, since older hosts
66809         that don't declare the functions can't use the optimization anyway.
66810
66811 2002-12-06  Jim Meyering  <jim@meyering.net>
66812
66813         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
66814
66815         Merge in changes from libc's misc/error.c, in preparation
66816         for the merge of gnulib's changes back into libc.
66817
66818         * lib/error.c (_): Define only if not already defined.
66819         Move definition to follow all #include directives.
66820         Include unlocked-io.h only if !_LIBC.
66821         [_LIBC]: Include <libio/libioP.h>.
66822         [USE_IN_LIBIO]: Include <libio/iolibio.h>
66823         (fflush): Tweak definition to use INTUSE.
66824         (putc): Define.
66825
66826 2002-12-05  Paul Eggert  <eggert@twinsun.com>
66827
66828         * lib/alloca.c [defined emacs]: Include "lisp.h".
66829         (xalloc_die) [defined emacs]: New macro.
66830         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
66831         [! defined emacs]: Include <xalloc.h>.
66832         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
66833         (pointer): Typedef to POINTER_TYPE *.
66834         (malloc): Remove decl; we now always use xmalloc.
66835         (alloca): Use old-style definition, since Emacs needs this.
66836         Check for arithmetic overflow when computing combined size.
66837
66838 2002-12-04  Paul Eggert  <eggert@twinsun.com>
66839
66840         Do not generate unlocked-io.h automatically, since it's easier to
66841         maintain it by hand.
66842
66843         * lib/unlocked-io.h: New file, from GNU diffutils,
66844         but with proper copyright notice and attribution.
66845         * lib/gen-uio: Remove.
66846         * lib/Makefile.am: Add copyright notice.
66847         (libfetish_a_SOURCES): Add unlocked-io.h.
66848         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
66849         (DISTCLEANFILES, io_functions): Remove macros.
66850         (EXTRA_DIST): Remove gen_uio.
66851         (unlocked-io.h): Remove rule.
66852
66853 2002-12-04  Jim Meyering  <jim@meyering.net>
66854
66855         Reflect the fact that stat.c and lstat.c are no longer generated.
66856         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
66857         (DISTCLEANFILES): Likewise.
66858         (EXTRA_DIST): Likewise.
66859         (all_local): Don't depend on stat.c or lstat.c.
66860         (stat.c, lstat.c): Remove rules.
66861         (EXTRA_DIST): Remove xstat.in.
66862
66863         * lib/xstat.in: Remove file.  Contents moved into stat.c.
66864         * lib/stat.c: New file.  Contents mostly from xstat.in.
66865         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
66866         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
66867
66868         * lib/safe-read.c: Rework so that it may serve to define safe_write,
66869         too.
66870         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
66871
66872 2002-12-03  Jim Meyering  <jim@meyering.net>
66873
66874         * lib/safe-read.c, safe-write.c: Change variable names and comments,
66875         but not semantics, to minimize the differences between these two files.
66876         (safe_read): Change comment to mention SAFE_READ_ERROR.
66877
66878         * lib/safe-read.c (IS_EINTR): Define.
66879         (safe_read): Use IS_EINTR in place of in-function cpp directives.
66880
66881 2002-12-02  Jim Meyering  <jim@meyering.net>
66882
66883         * lib/safe-read.c (EINTR): Define.
66884         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66885         (INT_MAX): Provide fallback.
66886         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
66887
66888         * lib/safe-read.h (SAFE_READ_ERROR): Define.
66889
66890 2002-12-02  Bruno Haible  <bruno@clisp.org>
66891
66892         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
66893         Define, taken from safe-read.c.
66894         (INT_MAX): Provide fallback.
66895         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
66896         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
66897
66898         * lib/safe-read.c (EINTR): Remove definition.
66899         (safe_read): Don't use EINTR if it is absent.
66900
66901 2002-12-01  Jim Meyering  <jim@meyering.net>
66902
66903         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
66904         zero.
66905         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
66906
66907 2002-11-27  Paul Eggert  <eggert@twinsun.com>
66908
66909         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
66910         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
66911         with `if (! (value < limit)) abort ();', for readability.
66912
66913 2002-11-26  Karl Berry  <karl@gnu.org>
66914
66915         * lib/strdup.c: copy from libc again, with jim's ok.
66916         * lib/.cppi-disable: re-add strdup.c
66917
66918 2002-11-25  Karl Berry  <karl@gnu.org>
66919
66920         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
66921         instead of "strtol.c".
66922
66923 2002-11-25  Karl Berry  <karl@gnu.org>
66924
66925         * config/install-sh: update from automake for variable quoting, $0 in
66926         error msgs, etc.
66927
66928         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
66929         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
66930         entry.
66931
66932 2002-11-25  Jim Meyering  <jim@meyering.net>
66933
66934         * lib/mktime.c: Sync from libc, now that it has the latest fix.
66935
66936 2002-11-24  Karl Berry  <karl@gnu.org>
66937
66938         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
66939         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
66940
66941 2002-11-24  Jim Meyering  <jim@meyering.net>
66942
66943         Update from coreutils:
66944
66945         * lib/mktime.c: Merge in changes from libc.
66946
66947         Avoid a link-time failure on some Linux systems.
66948         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
66949         (otherwise).
66950         (__mon_yday): Declare with the STATIC attribute.
66951         (__mktime_internal): Likewise.
66952         Based on a report from Greg Schafer.
66953
66954 2002-11-23  Jim Meyering  <jim@meyering.net>
66955
66956         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
66957         Use `unsigned', not `int', as type of index.
66958
66959         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
66960
66961         * lib/fsusage.c: Remove unneeded parentheses around operands of
66962         `defined'.
66963
66964 2002-11-22  Paul Eggert  <eggert@twinsun.com>
66965
66966         * lib/quotearg.h: Allow multiple inclusion by surrounding with
66967         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
66968         so that we can be included first.
66969         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
66970         * lib/quotearg.c: Include quotearg.h immediately after config.h.
66971         No need to include stddef.h or sys/types.h any more.
66972         Surround local include files with "", not "<>".
66973         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
66974         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
66975         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
66976         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
66977         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
66978         (ISPRINT): Remove; no longer needed now that we assume C89.
66979
66980         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
66981         Preserve errno.
66982
66983         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
66984         quotearg_char): Use SIZE_MAX rather than
66985         (size_t) -1 when we are talking about "infinity".
66986
66987         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
66988
66989 2002-11-22  Paul Eggert  <eggert@twinsun.com>
66990
66991         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
66992         hint that one should use `if (! x) abort ();' rather than `assert
66993         (x);', and anyway it's one less thing to worry about configuring.
66994         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
66995         hash_rehash, hash_insert): Use abort rather than assert.
66996
66997 2002-11-22  Bruno Haible  <bruno@clisp.org>
66998
66999         * lib/safe-read.h: Assume C89. Add comments.
67000         (safe_read): Change return type to size_t.
67001         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
67002         byte counts > SSIZE_MAX correctly.
67003         * lib/safe-write.h: New file.
67004         * lib/safe-write.c: New file.
67005         * lib/full-read.h: New file.
67006         * lib/full-read.c: New file.
67007         * lib/full-write.h: Assume C89. Add comments.
67008         * lib/full-write.c: Include safe-write.h.
67009         (full_write): Rewritten to use safe_write.
67010         Suggested by Jim Meyering and Paul Eggert.
67011
67012 2002-11-21  Jim Meyering  <jim@meyering.net>
67013
67014         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
67015
67016         Merge in changes from the coreutils.
67017
67018         2002-09-25  Paul Eggert  <eggert@twinsun.com>
67019         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
67020         <stdint.h>.
67021         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
67022         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
67023         int.  Work more efficiently if X is the same width as uintmax_t.
67024         Do not compare X to -1, to avoid bogus compiler warning.
67025         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
67026         Don't assume that f_frsize and f_bsize are the same type.
67027
67028         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
67029         warning on FreeBSD.
67030
67031         * lib/makepath.c (make_path): Restore umask *before* creating the final
67032         component.
67033         (make_path): Minor reformatting.
67034
67035         * lib/xmalloc.c: Adjust to work with new autoconf macros,
67036         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
67037         HAVE_MALLOC/HAVE_REALLOC.
67038
67039         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
67040         dummy ones.  At least on GNU/Linux systems, `auto' means something
67041         else.
67042         From Michael Stone.
67043
67044 2002-11-21  Bruno Haible  <bruno@clisp.org>
67045
67046         Remove case insensitive option matching.
67047         * lib/argmatch.h (argcasematch): Remove declaration.
67048         (ARGCASEMATCH): Remove macro.
67049         (__xargmatch_internal): Remove case_sensitive argument.
67050         (XARGMATCH): Update.
67051         (XARGCASEMATCH): Remove macro.
67052         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
67053         case_sensitive argument.
67054         (argcasematch): Remove function.
67055         (__xargmatch_internal): Remove case_sensitive argument.
67056         (main): Use XARGMATCH instead of XARGCASEMATCH.
67057
67058         * lib/xmalloc.c: Change compile-time error message. Add comment about
67059         required autoconf version.
67060
67061 2002-11-20  Paul Eggert  <eggert@twinsun.com>
67062
67063         Merge argmatch cleanups from Bison.  Assume C89.
67064
67065         * lib/argmatch.c: Include config.h here, not in argmatch.h.
67066         Include stdlib.h, for EXIT_FAILURE.
67067         Always include <string.h>, since we assume C89.
67068         (EXIT_FAILURE): Remove pre-C89 bug workaround.
67069         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
67070         Include <stddef.h> instead, since it's all we need for size_t.
67071         (PARAMS): Remove.  All uses removed.
67072         (ARRAY_CARDINALITY): Do not bother to #undef.
67073         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
67074         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67075         Remove unnecessary parentheses.
67076         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
67077         Insert necessary parentheses.
67078         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
67079         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
67080
67081 2002-11-19  Bruno Haible  <bruno@clisp.org>
67082
67083         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
67084         * lib/mbswidth.h: Include <stddef.h>, for size_t.
67085
67086         * lib/mbswidth.h (PARAMS): Remove macro.
67087         (mbswidth, mbsnwidth): Use ANSI C function declarations.
67088         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
67089
67090         * lib/gcd.h (PARAMS): Remove macro.
67091         (gcd): Use ANSI C function declarations.
67092         * lib/gcd.c (gcd): Likewise.
67093
67094 2002-11-15  Bruno Haible  <bruno@clisp.org>
67095
67096         * lib/strcspn.c: Include <stddef.h>.
67097         (strcspn): Use ANSI C function declaration. Change return type to
67098         size_t. Use NULL.
67099         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
67100         (strpbrk): Use NULL.
67101         * lib/strpbrk.h (PARAMS): Remove macro.
67102         (strpbrk): Use ANSI C function declaration.
67103         * lib/strstr.c: Don't include <sys/types.h>.
67104         * lib/strstr.h (PARAMS): Remove macro.
67105         (strstr): Use ANSI C function declarations.
67106
67107 2002-11-14  Karl Berry  <karl@gnu.org>
67108
67109         * config/mkinstalldirs: `do' on separate line, instead of
67110         `for var; do'.
67111
67112 2002-11-06  Bruno Haible  <bruno@clisp.org>
67113
67114         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
67115         * lib/gcd.c (gcd): Likewise.
67116
67117 2002-11-05  Bruno Haible  <bruno@clisp.org>
67118
67119         * lib/gcd.h: New file, from gettext-0.11.5.
67120         * lib/gcd.c: New file, from gettext-0.11.5.
67121
67122 2002-11-05  Bruno Haible  <bruno@clisp.org>
67123
67124         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67125         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67126         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67127         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
67128
67129         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
67130         <libintl.h>.
67131         * lib/makepath.c: Include gettext.h instead of <locale.h> and
67132         <libintl.h>.
67133
67134         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
67135         * lib/human.c: Include gettext.h instead of <libintl.h>.
67136         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
67137         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
67138         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
67139         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
67140         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
67141         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
67142         (textdomain): Remove definition.
67143         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
67144
67145         * lib/long-options.c: Remove include of <libintl.h> and definition of
67146         _.
67147         * lib/same.c: Remove include of <libintl.h> and definition of _.
67148
67149 2002-11-04  Owen Taylor  <otaylor@redhat.com>
67150
67151         * lib/config.charset: A few additions for Solaris.
67152
67153 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67154
67155         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
67156         * lib/localcharset.c (locale_charset): Declare as extern "C".
67157
67158 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
67159
67160         * lib/config.charset: msdos in uk_UA uses CP1125.
67161
67162 2002-11-04  Bruno Haible  <bruno@clisp.org>
67163
67164         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
67165         * lib/strcase.h: New file, from GNU gettext-0.11.5.
67166         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
67167         * lib/strstr.h: New file, from GNU gettext-0.11.5.
67168         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
67169
67170 2002-11-04  Bruno Haible  <bruno@clisp.org>
67171
67172         * lib/localcharset.c (locale_charset): Don't return an empty string.
67173
67174 2002-11-04  Bruno Haible  <bruno@clisp.org>
67175
67176         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
67177         aliases.
67178
67179 2002-11-04  Bruno Haible  <bruno@clisp.org>
67180
67181         * lib/config.charset: Update for newest glibc. Add canonical names
67182         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
67183
67184 2002-11-04  Bruno Haible  <bruno@clisp.org>
67185
67186         * lib/config.charset: Add support for NetBSD.
67187
67188 2002-11-04  Bruno Haible  <bruno@clisp.org>
67189
67190         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
67191
67192 2002-11-01  Bruno Haible  <bruno@clisp.org>
67193
67194         * configure.in: Add AC_CONFIG_AUX_DIR call.
67195         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
67196         test/Makefile.
67197         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
67198
67199 2002-09-28  Karl Berry  <karl@gnu.org>
67200
67201         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
67202         installed automake until the next release, since changes have been
67203         made.
67204
67205 2002-09-25  Karl Berry  <karl@gnu.org>
67206
67207         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
67208         * lib/getopt*: copy from libc/posix.
67209         * lib/gettext.h: copy from gettext.
67210         * lib/.cppi-disable: add strdup.c, gettext.h.
67211
67212 2002-09-25  Karl Berry  <karl@gnu.org>
67213
67214         * config/srclist.txt: enable gettext.h check.
67215         * config/config.{guess,sub}: update from prep.
67216         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
67217                 from automake 1.6.3.
67218         See srclist*.
67219
67220 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
67221
67222         * regex.c (PATFETCH): Remove the translating fetch.
67223         (PATFETCH_RAW): Rename to PATFETCH.
67224         (set_image_of_range): New fun.
67225         (SET_RANGE_TABLE_WORK_AREA): Use it.
67226         (regex_compile): Don't translate the pattern chars so eagerly.
67227         Only do it when inserting an `exactn' bytecode or when handling
67228         a char-range.
67229         (mutually_exclusive_p): Avoid empty statement.
67230
67231 2002-07-06  Jim Meyering  <meyering@lucent.com>
67232
67233         * m4/README: Don't mention Makefile.am.in.
67234         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
67235
67236 2002-07-01  Jim Meyering  <meyering@lucent.com>
67237
67238         * lib/c-stack.c: Include sys/time.h.
67239         From Volker Borchert.
67240
67241 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67242
67243         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
67244
67245 2002-06-26  Paul Eggert  <eggert@twinsun.com>
67246
67247         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
67248         New macro.  Use it uniformly instead of
67249         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
67250         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
67251         reported by Vin Shelton.
67252
67253 2002-06-22  Paul Eggert  <eggert@twinsun.com>
67254
67255         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
67256         Do not assume SA_SIGINFO behavior.
67257         Bug reported by Jim Meyering on NetBSD 1.5.2.
67258
67259 2002-06-22  Jim Meyering  <meyering@lucent.com>
67260
67261         * m4/c-stack.m4: New file, from diffutils-2.8.2.
67262         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
67263
67264         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
67265         now that configure.ac uses AC_GNU_SOURCE.
67266         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
67267         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
67268
67269         Update to latest tools.  Suggestions from Paul Eggert.
67270         * m4/stdbool.m4: New file, from diffutils-2.8.2.
67271         * m4/gnu-source.m4: Update from diffutils-2.8.2.
67272         * m4/fnmatch.m4: Likewise.
67273         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
67274         to AC_HEADER_STDBOOL
67275
67276 2002-06-22  Jim Meyering  <meyering@lucent.com>
67277
67278         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
67279         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
67280
67281 2002-06-22  Jim Meyering  <meyering@lucent.com>
67282
67283         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
67284
67285         * lib/exitfail.c, exitfail.h: Likewise.
67286         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
67287
67288         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
67289         of fnmatch.h.
67290         (EXTRA_DIST): Add fnmatch_loop.c.
67291         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
67292
67293         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
67294         * lib/fnmatch.c: Update from diffutils-2.8.2.
67295         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
67296         * lib/fnmatch.h: Remove file.
67297
67298 2002-06-21  Jim Meyering  <meyering@lucent.com>
67299
67300         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
67301         * m4/mbrtowc.m4: Likewise.
67302
67303         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
67304         * m4/mbswidth.m4: Reflect name change:
67305         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
67306         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67307
67308         * m4/lib-link.m4: Update from gettext-0.11.2.
67309         * m4/gettext.m4: Likewise.
67310
67311         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
67312         From Alfred M. Szmidt.
67313
67314 2002-06-18  Paul Eggert  <eggert@twinsun.com>
67315
67316         * lib/file-type.h: Report an error if neither S_ISREG nor
67317         S_IFREG is defined, instead of using a test specific to glibc
67318         2.2.  This should be safe, since POSIX requires S_ISREG and
67319         Unix Version 7 had S_IFREG.  We don't need to check for
67320         <sys/types.h> since we don't use any symbols that it defines.
67321
67322 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
67323
67324         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
67325         $@-t, so that each temporary file name is unique and valid in the first
67326         8 characters, for operation under DOS.
67327
67328 2002-06-15  Paul Eggert  <eggert@twinsun.com>
67329
67330         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
67331
67332 2002-06-15  Jim Meyering  <meyering@lucent.com>
67333
67334         Work even with DJGPP 2.03, which lacks support for symlinks.
67335         From Richard Dawe.
67336         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
67337         is defined.
67338         * lib/lchown.c (S_ISLNK): Likewise.
67339
67340 2002-06-15  Jim Meyering  <meyering@lucent.com>
67341
67342         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
67343         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
67344         have been included before this file.
67345
67346 2002-06-14  Jim Meyering  <meyering@lucent.com>
67347
67348         * lib/file-type.h: Use the version from diffutils-2.8.2.
67349         * lib/file-type.c: Likewise.
67350
67351 2002-06-07  Jim Meyering  <meyering@lucent.com>
67352
67353         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
67354         They're needed at least for NetBSD 1.5.2.
67355         ($statxfs_includes): Include those same headers.
67356         ($statxfs_includes): Include sys/vfs.h if available.
67357         ($statxfs_includes): Likewise for sys/statvfs.h.
67358         Check for the following members in both structs statfs and statvfs:
67359         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
67360
67361 2002-06-01  Jim Meyering  <meyering@lucent.com>
67362
67363         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
67364         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
67365
67366 2002-05-28  Jim Meyering  <meyering@lucent.com>
67367
67368         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
67369         Reported by Volker Borchert.
67370
67371 2002-05-27  Jim Meyering  <meyering@lucent.com>
67372
67373         Fix a problem seen only on nonconforming systems whereby ls.c's
67374         use of localtime, and then of gettimeofday would cause trouble:
67375         the localtime call used to initialize rpl_gettimeofday's save
67376         mechanism would clobber ls's current local time information so
67377         that in any long listing the first file would always be listed
67378         with date 1970-01-01.  Analysis by Volker Borchert.
67379
67380         * lib/gettimeofday.c (localtime): Undefine.
67381         (rpl_localtime): New function.
67382
67383 2002-05-27  Jim Meyering  <meyering@lucent.com>
67384
67385         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
67386         localtime.
67387
67388         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
67389         use the replacement function; it wouldn't resolve at link time.
67390         Reported by Volker Borchert.
67391
67392 2002-05-22  Jim Meyering  <meyering@lucent.com>
67393
67394         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
67395         file-type.h.
67396         * lib/file-type.h: New file.
67397         * lib/file-type.c (file_type): New file/function.  Extracted from
67398         diffutils.
67399
67400 2002-04-30  Jim Meyering  <meyering@lucent.com>
67401
67402         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
67403
67404 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67405
67406         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
67407
67408 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67409
67410         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
67411         Do not check for alloca.h (no longer used) or stdbool.h (was never
67412         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
67413
67414 2002-04-29  Paul Eggert  <eggert@twinsun.com>
67415
67416         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
67417
67418 2002-04-29  Jim Meyering  <meyering@lucent.com>
67419
67420         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
67421         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
67422         Use AC_FUNC_STRNLEN here instead.
67423
67424         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
67425         With autoconf-2.53a, it's part of AC_PROG_CC.
67426
67427 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67428
67429         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
67430         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
67431
67432 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67433
67434         * lib/sig2str.h, lib/sig2str.c: New files.
67435         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
67436
67437 2002-04-28  Paul Eggert  <eggert@twinsun.com>
67438
67439         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
67440         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
67441         of 127, since 64 is the largest conceivable number for ancient
67442         nonstandard hosts.
67443         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
67444
67445 2002-04-28  Jim Meyering  <meyering@lucent.com>
67446
67447         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
67448
67449 2002-04-24  Jim Meyering  <meyering@lucent.com>
67450
67451         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
67452         (jm_PREREQ): Use it.
67453
67454         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
67455         mach/mach.h fcntl.h.
67456         Check for this function: setlocale.
67457
67458 2002-04-24  Jim Meyering  <meyering@lucent.com>
67459
67460         * lib/gettext.h: New file, from Gettext.
67461         * lib/Makefile.am (INCLUDES): Remove -I../intl.
67462         (libfetish_a_SOURCES): Add gettext.h.
67463
67464 2002-04-16  Jim Meyering  <meyering@lucent.com>
67465
67466         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
67467         ut_pid, ut_id, ut_exit.
67468
67469 2002-04-16  Jim Meyering  <meyering@lucent.com>
67470
67471         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
67472         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
67473         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
67474
67475 2002-04-12  Jim Meyering  <meyering@lucent.com>
67476
67477         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
67478         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
67479         existence of the getmntinfo function.  Needed for Darwin 5.3.
67480
67481         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
67482         This is necessary at least on Darwin 5.3.
67483
67484         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
67485         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
67486         strnlen.o in the library, and that makes some versions of ranlib
67487         object.
67488
67489 2002-04-12  Jim Meyering  <meyering@lucent.com>
67490
67491         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
67492
67493 2002-04-09  Jim Meyering  <meyering@lucent.com>
67494
67495         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
67496         to be more precise.  Rather than saying we're checking whether the
67497         function `works', say what we're testing.
67498         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
67499         Reported by Bruno Haible.
67500
67501 2002-03-10  Jim Meyering  <meyering@lucent.com>
67502
67503         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
67504         Suggestion from Santiago Vila.
67505
67506 2002-03-08  Jim Meyering  <meyering@lucent.com>
67507
67508         * lib/rename.c: Mention that this wrapper is needed also on
67509         mips-dec-ultrix4.4 systems.
67510
67511 2002-03-02  Jim Meyering  <meyering@lucent.com>
67512
67513         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
67514         not HAVE_CLOCK_SETTIME.
67515
67516 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67517
67518         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
67519         Check for clock_settime.
67520
67521 2002-02-27  Paul Eggert  <eggert@twinsun.com>
67522
67523         * lib/nanosleep.h: Rename to....
67524         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
67525
67526         * lib/gettime.c: New file.
67527         * lib/settime.c: New file.
67528         * lib/stime.c: Remove.
67529
67530         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
67531         timespec.h.  Remove nanosleep.h.
67532
67533 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67534
67535         * m4/acl.m4: New file.
67536         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
67537         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
67538
67539 2002-02-25  Paul Eggert  <eggert@twinsun.com>
67540
67541         * lib/acl.c, lib/acl.h: New files.
67542         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
67543
67544 2002-02-24  Jim Meyering  <meyering@lucent.com>
67545
67546         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
67547         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
67548         cause trouble.  Reported by Nelson Beebe.
67549
67550 2002-02-23  Paul Eggert  <eggert@twinsun.com>
67551
67552         * lib/path-concat.c (xpath_concat): Reorder code to pacify
67553         compilers that don't know that xalloc_die never returns.
67554
67555 2002-02-20  Jim Meyering  <meyering@lucent.com>
67556
67557         * lib/getdate.c: Regenerate using bison-1.33.
67558
67559 2002-02-17  Jim Meyering  <meyering@lucent.com>
67560
67561         * config/config.guess (main): Don't use `head -1'; it's no longer
67562         portable. Use `sed 1q' instead.
67563
67564 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
67565
67566         * m4/codeset.m4: Upgrade to gettext-0.11.
67567         * m4/gettext.m4: Upgrade to gettext-0.11.
67568         * m4/glibc21.m4: Upgrade to gettext-0.11.
67569         * m4/iconv.m4: Upgrade to gettext-0.11.
67570         * m4/isc-posix.m4: Upgrade to gettext-0.11.
67571         * m4/lcmessage.m4: Upgrade to gettext-0.11.
67572         * m4/lib-ld.m4: New file, from gettext-0.11.
67573         * m4/lib-link.m4: New file, from gettext-0.11.
67574         * m4/lib-prefix.m4: New file, from gettext-0.11.
67575         * m4/progtest.m4: Upgrade to gettext-0.11.
67576
67577 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67578
67579         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
67580         (jm_PREREQ): Use it.
67581
67582 2002-02-15  Paul Eggert  <eggert@twinsun.com>
67583
67584         * lib/posixver.c, lib/posixver.h: New files.
67585         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67586
67587 2002-02-02  Paul Eggert  <eggert@twinsun.com>
67588             Bruno Haible  <bruno@clisp.org>
67589
67590         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
67591         (fwrite_success_callback): New declaration.
67592         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
67593         print_unicode_char. Call failure callback instead of error.
67594         (fwrite_success_callback): New function.
67595         (exit_failure_callback): New function.
67596         (fallback_failure_callback): New function.
67597         (print_unicode_char): Call unicode_to_mb.
67598
67599 2002-01-26  Jim Meyering  <meyering@lucent.com>
67600
67601         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
67602         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
67603
67604 2002-01-26  Jim Meyering  <meyering@lucent.com>
67605
67606         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
67607
67608 2002-01-22  Paul Eggert  <eggert@twinsun.com>
67609
67610         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
67611
67612 2002-01-22  Jim Meyering  <meyering@lucent.com>
67613
67614         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
67615         Otherwise, some versions of automake would omit the rule that makes
67616         Makefile from Makefile.in.
67617
67618 2002-01-21  Paul Eggert  <eggert@twinsun.com>
67619
67620         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
67621         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
67622         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
67623         (memcoll): Set errno to zero if there is no error.
67624
67625         * lib/quotearg.c (quotearg_buffer_restyled):
67626         Fix bug with quoting buffers containing NUL when backslashing escapes.
67627         This bug was exposed by the other changes in this patch.
67628         (quotearg_n_options): New arg ARGSIZE.
67629         All callers changed.
67630         (quoting_options_from_style): New function.
67631         (quotearg_n_style): Use it.
67632         (quotearg_n_style_mem): New function.
67633
67634         * lib/quotearg.h (quotearg_n_style_mem): New function.
67635
67636 2002-01-19  Jim Meyering  <meyering@lucent.com>
67637
67638         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
67639         Remove useless quotes: DF_PROG="df".
67640         * m4/strnlen.m4: New file.
67641
67642 2002-01-16  Paul Eggert  <eggert@twinsun.com>
67643
67644         * lib/backupfile.c (ISDIGIT): Comment fix.
67645         * lib/getdate.y (ISDIGIT): Likewise.
67646         * lib/posixtm.c (ISDIGIT, year): Likewise.
67647         * lib/strverscmp.c (ISDIGIT): Likewise.
67648         * lib/userspec.c (ISDIGIT): Likewise.
67649
67650 2002-01-16  Jim Meyering  <meyering@lucent.com>
67651
67652         * lib/getdate.y: Add three semicolons, each just before a closing
67653         brace. Bison (as of version 1.31) no longer papers over that mistake.
67654
67655 2002-01-05  Jim Meyering  <meyering@lucent.com>
67656
67657         * lib/version-etc.c (version_etc_copyright): Update copyright year.
67658
67659 2001-12-19  Paul Eggert  <eggert@twinsun.com>
67660
67661         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
67662         not silently exit merely because the output buffer happens to
67663         have nothing pending.
67664
67665 2001-12-18  Paul Eggert  <eggert@twinsun.com>
67666
67667         See the big note in ../ChangeLog.
67668         * lib/human.c (suffixes): Prefer K to k for 1024.
67669         (generate_suffix_backwards): New function.
67670         (human_readable_inexact): Use it.
67671         * lib/xstrtol.c (__xstrtol): If there is no number but there
67672         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
67673         Accept 'K' as well as 'k'.
67674
67675 2001-12-15  Jim Meyering  <meyering@lucent.com>
67676
67677         * lib/regex.h (__restrict_arr): Update from libc.
67678
67679         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
67680         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
67681         (STREQ): Define.
67682
67683 2001-12-14  Jim Meyering  <meyering@lucent.com>
67684
67685         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
67686         Suggestion from Bruno Haible.
67687
67688 2001-12-10  Jim Meyering  <meyering@lucent.com>
67689
67690         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
67691         xrealloc, Instead, include "xalloc.h".
67692         (initbuffer): Don't cast xmalloc return value to char*.
67693         (readline): Reword comment.
67694         Don't cast xrealloc return value to char*
67695         Return NULL, not 0.
67696
67697 2001-12-09  Jim Meyering  <meyering@lucent.com>
67698
67699         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
67700         about `signed and unsigned type in conditional expression'.
67701         * lib/posixtm.c (posix_time_parse): Likewise.
67702
67703         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
67704
67705         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
67706         to avoid a pedantic warning.
67707
67708         * lib/getstr.c: Don't include assert.h.
67709         (getstr): Remove warning-evoking assertions.
67710         Return -1 if offset parameter is out of bounds.
67711         Change the type of a local from int to size_t.
67712
67713         * lib/strftime.c (my_strftime_localtime_r): Include this function
67714         definition in the `#if ! HAVE_TM_GMTOFF' block.
67715
67716         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
67717         Include xalloc.h instead.
67718
67719 2001-12-02  Jim Meyering  <meyering@lucent.com>
67720
67721         * lib/tempname.c: Don't declare getenv, thus reverting the change of
67722         2001-11-18.  It's no longer necessary, now that stdlib.h is always
67723         included.
67724
67725         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
67726         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
67727
67728 2001-11-30  Akim Demaille  <akim@epita.fr>
67729
67730         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
67731         before being defined.
67732
67733 2001-11-27  Paul Eggert  <eggert@twinsun.com>
67734
67735         * lib/quotearg.h (quotearg_n, quotearg_n_style):
67736         First arg is int, not unsigned.
67737         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
67738         (SIZE_MAX, UINT_MAX): New macros.
67739         (quotearg_n_options): Abort if N is negative.
67740         Avoid overflow check on hosts where size_t is 64 bits and int
67741         is 32 bits, as overflow is impossible there.
67742         Fix off-by-one typo that caused unnecessary reallocation.
67743
67744 2001-11-27  Jim Meyering  <meyering@lucent.com>
67745
67746         * lib/tempname.c: Merge with version from libc.
67747         * lib/regex.c: Likewise.
67748
67749         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
67750         systems for which STDC_HEADERS is 0, it was not included, resulting in
67751         a warning about an integer-to-pointer conversion problem with getenv.
67752         Reported by Volker Borchert.
67753
67754 2001-11-26  Jim Meyering  <meyering@lucent.com>
67755
67756         * lib/gtod.h: Remove file.
67757         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
67758         * lib/gettimeofday.c: Don't include gtod.h.
67759         (GTOD_init): Remove function.
67760         (rpl_gettimeofday): Do its job here instead, rather than aborting.
67761         Suggestion from Volker Borchert.
67762
67763 2001-11-23  Jim Meyering  <meyering@lucent.com>
67764
67765         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
67766         it.
67767         * lib/hash.c (struct hash_table): Define it here instead.
67768
67769 2001-11-22  Jim Meyering  <meyering@lucent.com>
67770
67771         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
67772
67773 2001-11-20  Jim Meyering  <meyering@lucent.com>
67774
67775         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
67776         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
67777
67778 2001-11-19  Jim Meyering  <meyering@lucent.com>
67779
67780         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
67781         directory.  Use "conftestXXXXXX" as the template.
67782         Suggestion from Paul Eggert.
67783
67784         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
67785         immediately, so the test doesn't mistakenly hit the max-open-files
67786         limit.
67787
67788 2001-11-18  Paul Eggert  <eggert@twinsun.com>
67789
67790         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
67791         (TEMPORARIES): New macro.
67792         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
67793         removes an artificial limitation (e.g. HP-UX 10.20, where
67794         TMP_MAX is 17576).
67795
67796 2001-11-18  Jim Meyering  <meyering@lucent.com>
67797
67798         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
67799
67800 2001-11-18  Jim Meyering  <meyering@lucent.com>
67801
67802         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
67803         on SunOS 4.
67804
67805         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
67806         files will be created before anything else.
67807
67808 2001-11-17  Paul Eggert  <eggert@twinsun.com>
67809
67810         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
67811         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
67812
67813 2001-11-17  Jim Meyering  <meyering@lucent.com>
67814
67815         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
67816         Prompted by a report from Bob Proulx.
67817
67818         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
67819         Instead, require UTILS_FUNC_MKSTEMP.
67820
67821 2001-11-17  Jim Meyering  <meyering@lucent.com>
67822
67823         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
67824         Now, that's done as part of AC_FUNC_STRTOD.
67825
67826 2001-11-17  Jim Meyering  <meyering@lucent.com>
67827
67828         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
67829         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
67830         rather than group writable.  Patch by Juan F. Codagnone.
67831
67832         * lib/readtokens.c: Remove explicit declarations of xmalloc and
67833         xrealloc, Instead, include "xalloc.h".
67834
67835         * lib/mountlist.c: Include unlocked-io.h after all system headers.
67836         Remove explicit declarations of xmalloc, xrealloc,
67837         and xstrdup.  Instead, include "xalloc.h".
67838
67839         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
67840         unlocked-io.h.
67841         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
67842         Likewise.
67843         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
67844
67845         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
67846         Reported by Padraig Brady.
67847
67848         * lib/mkstemp.c: #undef mkstemp.
67849         Include config.h.
67850         (rpl_mkstemp): Rename from mkstemp.
67851         Protoize.
67852
67853 2001-11-16  Jim Meyering  <meyering@lucent.com>
67854
67855         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
67856         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
67857         determine the amount of total physical memory, use pstat_getstatic.
67858         HPUX-11 doesn't define _SC_PHYS_PAGES.
67859         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
67860         If sysconf couldn't be used to determine the amount of available
67861         physical memory, use both pstat_getstatic and pstat_getdynamic.
67862         Based on a patch from Bob Proulx.
67863
67864 2001-11-10  Jim Meyering  <meyering@lucent.com>
67865
67866         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
67867         (jm_PREREQ): Use it.
67868
67869 2001-11-09  Jim Meyering  <meyering@lucent.com>
67870
67871         * m4/jm-macros.m4: Require autoconf-2.52f.
67872         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
67873         Use these AC_-prefixed names, not the AM_-prefixed ones.
67874
67875         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
67876
67877 2001-11-05  Jim Meyering  <meyering@lucent.com>
67878
67879         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
67880
67881 2001-11-04  Jim Meyering  <meyering@lucent.com>
67882
67883         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
67884         $DEFS.
67885
67886 2001-11-03  Jim Meyering  <meyering@lucent.com>
67887
67888         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
67889         of AC_DEFUN.
67890
67891         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
67892         know the name of the variable in the macro definition.
67893
67894 2001-11-03  Jim Meyering  <meyering@lucent.com>
67895
67896         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
67897         in argmatch_to_argument call.
67898
67899         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
67900         argument.
67901
67902         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
67903         e.g., a fault due to an attempt to free a NULL pointer.
67904
67905 2001-11-01  Jim Meyering  <meyering@lucent.com>
67906
67907         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
67908         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
67909
67910 2001-11-01  Jim Meyering  <meyering@lucent.com>
67911
67912         * lib/dirfd.c, lib/dirfd.h: New files.
67913         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
67914
67915         * lib/hash.c (hash_print) [TESTING]: Clean up.
67916
67917 2001-10-22  Paul Eggert  <eggert@twinsun.com>
67918
67919         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
67920         to avoid a warning if -Wall.
67921
67922 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
67923
67924         * README: New file
67925         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
67926         (per RMS's instructions, this is now the canonical source)
67927         * lgpl/, gpl/: New directories.
67928
67929 2001-10-21  Paul Eggert  <eggert@twinsun.com>
67930
67931         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
67932
67933 2001-10-21  Jim Meyering  <meyering@lucent.com>
67934
67935         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
67936         this code would end up calling gettext even in packages built
67937         with --disable-nls.
67938         * lib/getopt.c (_): Likewise.
67939         * lib/regex.c (_): Likewise.
67940
67941 2001-10-20  Paul Eggert  <eggert@twinsun.com>
67942
67943         * m4/error.m4 (jm_PREREQ_ERROR):
67944         Do not invoke AC_CHECK_FUNCS with strerror_r, as
67945         AC_FUNC_STRERROR_R does that.
67946         Check for strerror declaration.
67947
67948         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
67949         are supposed to have them these days.
67950         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
67951         Merge changes from latest Autoconf CVS.
67952         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
67953         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
67954         POSIX decided to standardize on the int flavor of strerror_r.
67955
67956 2001-10-20  Paul Eggert  <eggert@twinsun.com>
67957
67958         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
67959         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
67960         Use strerror_r that is only a macro, even if it is not a function.
67961         (strerror): Check for HAVE_DECL_STRERROR before declaring.
67962         (private_strerror): Use prototypes, not old-style function definition.
67963         (print_errno_message): New function.
67964         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
67965         char*-flavored one.
67966         (error_tail, error, error_at_line): Use it.
67967
67968 2001-10-11  Jim Meyering  <meyering@lucent.com>
67969
67970         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
67971         and quote_n (1, ... to avoid clobbering a buffer.
67972
67973 2001-10-05  Jim Meyering  <meyering@lucent.com>
67974
67975         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
67976         hash-pjw.h.
67977         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
67978         * lib/hash-pjw.h: New file.
67979
67980 2001-09-30  Jim Meyering  <meyering@lucent.com>
67981
67982         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
67983         `struct fsstat' has the `f_fstypename' member.
67984         Use that to define FS_TYPE, which is now used to make
67985         the getfsstat link test tighter.
67986
67987 2001-09-30  Jim Meyering  <meyering@lucent.com>
67988
67989         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
67990         Include <sys/ucred.h>, for Apple Darwin.
67991         Include sys/mount.h and sys/fs_types.h only if available.
67992         (FS_TYPE): Define.
67993         (read_filesystem_list): Use FS_TYPE.
67994
67995 2001-09-29  Paul Eggert  <eggert@twinsun.com>
67996
67997         * lib/exclude.c (excluded_filename): 0 -> false, since it's
67998         a boolean context.
67999
68000 2001-09-29  Jim Meyering  <meyering@lucent.com>
68001
68002         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
68003         [one-argument getmntent function]): Include stdio.h before mntent.h.
68004         SunOS 4.1.x needs it for the declaration of `FILE'.
68005         Patch by Volker Borchert.
68006
68007         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
68008         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
68009         sys/fs_types.h, and make the link-test for getfsstat guard #include
68010         directives with appropriate #if HAVE_*_H tests so that we can
68011         detect getfsstat on Apple Darwin1.3.7 systems.
68012         Reported by Nelson Beebe.
68013         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
68014
68015 2001-09-28  Paul Eggert  <eggert@twinsun.com>
68016
68017         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
68018         #defines strtoimax.  Also treat the other strto* functions
68019         like strtoimax.
68020
68021         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68022         Check for strtoul and strtoumax,
68023         as those declarations are made even in the signed case.
68024         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
68025         Likewise, for strtol and strtoimax.
68026
68027 2001-09-28  Paul Eggert  <eggert@twinsun.com>
68028
68029         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
68030         #defines strtoimax.  Also treat the other strto* functions
68031         like strtoimax.
68032
68033         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
68034         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
68035         (strtoimax, strtoumax): Do not declare if already defined as a macro.
68036
68037 2001-09-26  Jim Meyering  <meyering@lucent.com>
68038
68039         Most macros in unlocked-io.h had the wrong number of arguments.
68040         * lib/gen-uio: New script.
68041         (USE_UNLOCKED_IO): Define to 1 if not already defined.
68042         * lib/unlocked-io.hin: Remove file.
68043         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
68044         rather than trying to embed it here.
68045         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
68046         Reported by Padraig Brady.
68047
68048 2001-09-25  Volker Borchert  <bt@teknon.de>
68049
68050         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
68051         `result'.
68052
68053 2001-09-24  Jim Meyering  <meyering@lucent.com>
68054
68055         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
68056
68057 2001-09-23  Jim Meyering  <meyering@lucent.com>
68058
68059         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
68060         instead of the mere test for existence of mntent.h.  The latter
68061         would get a false-positive on AIX 3.4 systems.
68062         In the outer getmntent if-block, don't die if neither of the getmntent
68063         tests succeeds.  Instead, just fall through and continue with the
68064         remaining tests.
68065
68066 2001-09-23  Jim Meyering  <meyering@lucent.com>
68067
68068         * lib/mountlist.c: Remove useless parentheses in #if directives.
68069         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
68070         the deprecated MOUNTED symbol is no longer defined in mntent.h.
68071
68072 2001-09-22  Jim Meyering  <meyering@lucent.com>
68073
68074         * m4/gettext.m4: New file.  From gettext.
68075         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
68076         * m4/progtest.m4: Likewise
68077         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
68078         * m4/glibc21.m4: Likewise.
68079
68080         * m4/libintl.m4: Remove.  No longer used.
68081
68082 2001-09-22  Jim Meyering  <meyering@lucent.com>
68083
68084         * lib/localcharset.c: Update from latest gettext.
68085         * lib/config.charset: Likewise.
68086
68087 2001-09-20  Jim Meyering  <meyering@lucent.com>
68088
68089         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
68090         strtoimax.
68091         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
68092         strtoumax.
68093
68094 2001-09-20  Jim Meyering  <meyering@lucent.com>
68095
68096         * lib/xstrtol.c (strtoimax): Guard declaration with
68097         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
68098         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
68099         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
68100         (strtoumax): Likewise, for completeness (it wasn't necessary).
68101
68102 2001-09-17  Paul Eggert  <eggert@twinsun.com>
68103
68104         * lib/strtoimax.c (HAVE_LONG_LONG):
68105         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
68106         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
68107         to work around bug in IBM C compiler.
68108
68109 2001-09-17  Jim Meyering  <meyering@lucent.com>
68110
68111         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
68112         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
68113         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
68114         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
68115         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
68116         whenever the right hand side need not be expanded by the shell.
68117
68118 2001-09-16  Paul Eggert  <eggert@twinsun.com>
68119
68120         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
68121         library.  It's not correct, as some older glibcs are buggy.
68122         fnmatch wasn't fixed until glibc 2.2.
68123
68124         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
68125         special shell magic here.
68126
68127 2001-09-16  Jim Meyering  <meyering@lucent.com>
68128
68129         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
68130         * m4/jm-macros.m4: Require it.
68131
68132 2001-09-16  Jim Meyering  <meyering@lucent.com>
68133
68134         * lib/mkdir.c: New file.
68135
68136 2001-09-15  Jim Meyering  <meyering@lucent.com>
68137
68138         * m4/jm-macros.m4: Check for help2man.
68139
68140 2001-09-11  Jim Meyering  <meyering@lucent.com>
68141
68142         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
68143         The body, by Paul Eggert, was moved here from configure.in.
68144         * m4/jm-macros.m4: Require UTILS_HOST_OS.
68145
68146 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68147
68148         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
68149         (jm_PREREQ): Use it.
68150
68151 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68152
68153         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
68154         Use ssize_t, not int, to store result of readlink.
68155         Check for ssize_t overflow as well as size_t overflow,
68156         as POSIX says the result of readlink is implementation-defined
68157         when ssize_t overflows.
68158         Remove unnecessary cast to char*.
68159         Use free+malloc instead of realloc, as the storage doesn't need
68160         to be preserved and it's clearer and can be more efficient that way.
68161         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
68162         * lib/xreadlink.h (xreadlink): Update prototype.
68163
68164 2001-09-04  Paul Eggert  <eggert@twinsun.com>
68165
68166         * lib/xgetcwd.c: Revert some of the previous change; intead,
68167         fix the HAVE_GETCWD_NULL code to behave more like the
68168         !HAVE_GETCWD_NULL code used to.
68169
68170         Include "xalloc.h".
68171         (xgetcwd): Do not return NULL when memory is exhausted; instead,
68172         invoke xalloc_die.
68173
68174 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68175
68176         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
68177         sys/param.h, as pathmax.h includes them.
68178
68179 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68180
68181         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
68182         (jm_PREREQ_XGETCWD): New macro.
68183
68184         * m4/getcwd.m4: New file.
68185
68186 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68187
68188         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
68189         like the HAVE_GETCWD_NULL code.
68190         Include pathmax.h if not HAVE_GETCWD.
68191         Do not include xalloc.h.
68192         (INITIAL_BUFFER_SIZE): New symbol.
68193         Do not use xmalloc / xrealloc, since the caller is responsible for
68194         handling errors.  Preserve errno around `free' during failure.
68195         Do not overrun buffer when using getwd.
68196
68197 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68198
68199         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
68200         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
68201         getcwd (NULL, 0).
68202
68203 2001-09-03  Paul Eggert  <eggert@twinsun.com>
68204
68205         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
68206         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
68207         spotted by Jim Meyering.
68208
68209 2001-09-03  Jim Meyering  <meyering@lucent.com>
68210
68211         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
68212         failure.
68213
68214 2001-09-02  Jim Meyering  <meyering@lucent.com>
68215
68216         * lib/error.c: Update from GNU libc.
68217
68218 2001-09-01  Jim Meyering  <meyering@lucent.com>
68219
68220         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
68221         Used by df.
68222
68223 2001-09-01  Jim Meyering  <meyering@lucent.com>
68224
68225         * lib/xreadlink.c: New file.
68226         * lib/xreadlink.h: New file.
68227         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
68228         xreadlink.h.
68229
68230         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
68231         doesn't conflict with sparc Solaris 7's definition in
68232         /usr/include/sys/int_types.h.
68233
68234         * lib/exclude.c: Use `""', not `<>' to #include non-system header
68235         files.
68236         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
68237         and strncasecmp as r-values.  Unixware didn't have declarations.
68238
68239 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68240
68241         * lib/xstrtol.h: Add copyright notice.
68242         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
68243         LONGINT_INVALID_SUFFIX_CHAR.
68244
68245 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68246
68247         * lib/xstrtol.c (strtoimax): New decl.
68248
68249 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68250
68251         * lib/xgetcwd.c: Don't include pathmax.h.
68252         Include stdlib.h and unistd.h if available.
68253         Include xalloc.h.
68254         (xmalloc, xstrdup, free): Remove decls.
68255         (xgetcwd): Don't assume sizes fit in unsigned.
68256         Check for overflow when computing sizes.
68257         Simplify reallocation code.
68258
68259 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68260
68261         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
68262         a directory's st_size can have an arbitrary value, so the old
68263         usage could waste an arbitrary amount of memory.  All uses
68264         changed.
68265         * lib/savedir.h: Update prototype.
68266
68267 2001-08-31  Paul Eggert  <eggert@twinsun.com>
68268
68269         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
68270
68271         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
68272         old strtoimax.c.
68273
68274         Also, make the following further changes to make this file's
68275         configuration more similar to that of strtol.c:
68276         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
68277         (strtoumax, uintmax_t, strtoull, strtol): Remove.
68278         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
68279         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
68280         changed to signed values.
68281
68282         And make the following changes as well:
68283         Fix copyright notice, as 1999 was missing.
68284         (verify): New macro.
68285         (strtoimax): Check sizes at compile-time, not run-time.
68286         Prefer strtol to strtoll if both work.
68287         (main): Remove; it was not that useful and was a pain to maintain.
68288
68289         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
68290
68291 2001-08-31  Jim Meyering  <meyering@lucent.com>
68292
68293         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
68294         Use an initial, malloc'd, buffer of length 128 rather than
68295         a statically allocated one of length 1024.
68296
68297 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68298
68299         Simplify code, partly by assuming autoconf 2.52 semantics.
68300
68301         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
68302
68303         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
68304         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
68305         All uses removed.
68306         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
68307         Move AC_REQUIRE to next-to-top level, to avoid confusion.
68308         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
68309         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
68310         jm_AC_HEADER_INTTYPES_H.
68311         * m4/jm-macros.m4 (jm_MACROS): Likewise.
68312
68313         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
68314
68315         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
68316         Quote first arg of AC_DEFUN.
68317         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
68318         since they are needed to parse the include file even if we need
68319         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
68320         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
68321         but with opposite signedness.
68322
68323 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68324
68325         Merge 'exclude' changes from tar 1.13.22.
68326         This fixes one or two unlikely storage allocation overflow bugs,
68327         but doesn't change user-visible behavior otherwise.
68328
68329 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68330
68331         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
68332         (jm_PREREQ_EXCLUDE): New macro.
68333
68334 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68335
68336         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
68337         tm to be declared.
68338
68339 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68340
68341         * lib/hash.c: Remove '2001' from copyright notice.
68342
68343 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68344
68345         * lib/full-write.h: New file.
68346         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
68347         * lib/full-write.c: Correct credits, as cccp.c no longer
68348         exists and anyway it was so heavily changed from the old cccp
68349         code as to be unrecognizable.  Include full-write.h.
68350         (full_write) Return size_t, with short writes meaning failure.
68351         All callers changed.  This fixes a bug with large buffers
68352         on 64-bit hosts.
68353         * lib/utime.c: Include full-write.h.
68354
68355 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68356
68357         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
68358         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
68359         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
68360         Include if available.
68361         (<xalloc.h>): Include
68362         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
68363         (verify): New macro.  Use it to verify that EXCLUDE macros do not
68364         collide with FNM macros.
68365         (struct patopts): New struct.
68366         (struct exclude): Use it, as exclude patterns now come with options.
68367         (new_exclude): Support above changes.
68368         (new_exclude, add_exclude_file):
68369         Initial size must now be a power of two to simplify overflow checking.
68370         (free_exclude, fnmatch_no_wildcards): New function.
68371         (excluded_filename): No longer requires options arg, as the options
68372         are determined by add_exclude.  Now returns bool, not int.
68373         (excluded_filename, add_exclude):
68374         Add support for the fancy new exclusion options.
68375         (add_exclude, add_exclude_file): Now takes int options arg.
68376         Check for arithmetic overflow when computing sizes.
68377         (add_exclude_file): xrealloc might modify errno, so don't
68378         realloc until after errno might be used.
68379
68380         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
68381         New macros.
68382         (free_exclude): New decl.
68383         (add_exclude, add_exclude_file): Now takes int options arg.
68384         (excluded_filename): No longer requires options arg, as the options
68385         are determined by add_exclude.  Now returns bool, not int.
68386
68387 2001-08-30  Paul Eggert  <eggert@twinsun.com>
68388
68389         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
68390
68391 2001-08-27  Jim Meyering  <meyering@lucent.com>
68392
68393         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
68394
68395         * lib/version-etc.c (N_): Remove definition.
68396         Revert most of last change.
68397         Instead, simply don't mark the `Copyright...' string for translation.
68398         Based on advice from Paul Eggert.
68399
68400         * lib/strtoxmax.c: Tweak comment.
68401
68402 2001-08-26  Jim Meyering  <meyering@lucent.com>
68403
68404         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
68405
68406         * m4/xstrtoimax.m4: New file.
68407         * m4/xstrtoumax.m4: Add comments explaining why we
68408         AC_REPLACE_FUNCS(strtol).
68409
68410 2001-08-26  Jim Meyering  <meyering@lucent.com>
68411
68412         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
68413         of copyright with `%s' so translators don't get an untranslated
68414         message in 2002.
68415         (COPYRIGHT_YEAR): Define.
68416         (version_etc): Use fprintf rather than fputs.
68417         Suggestion from Ulrich Drepper.
68418
68419         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
68420
68421         * lib/strtoll.c: New file, from GNU libc.
68422         * lib/xstrtoimax.c: New file.
68423
68424         * lib/xstrtol.h: Add xstrtoimax.
68425         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
68426         * lib/strtoimax.c: New file.  Likewise, but first define
68427         STRTOUXMAX_SIGNED.
68428
68429         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
68430         ...
68431         * lib/strtoxmax.c: ... then renamed to this.
68432
68433 2001-08-18  Paul Eggert  <eggert@twinsun.com>
68434
68435         * m4/inttypes.m4: Add AC_PREREQ(2.13).
68436         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
68437         (jm_AC_TYPE_INTMAX_T): New macro.
68438         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
68439
68440         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
68441
68442         * m4/longlong.m4: Renamed from ulonglong.m4.
68443         * m4/inttypes.m4: Renamed from inttypes_h.m4.
68444         * m4/uintmax_t.m4: Removed.
68445
68446 2001-08-13  Paul Eggert  <eggert@twinsun.com>
68447
68448         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
68449         Port to Solaris 8, where 'sed' requires a space after the 'r'
68450         command, and where sh dislikes "$/".  Clean up the spacing a bit.
68451         Redirect output to $tmp just once.
68452
68453 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
68454
68455         * lib/addext.c (<errno.h>): Include.
68456         (errno): Declare if not defined.
68457         (addext): Work correctly when pathconf returns -1 and leaves
68458         errno alone because there is no limit.  Also, work even if
68459         pathconf returns a value greater than SIZE_MAX.
68460
68461 2001-08-12  Jim Meyering  <meyering@lucent.com>
68462
68463         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
68464         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
68465         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
68466         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
68467         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
68468         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
68469         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
68470         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
68471         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
68472         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
68473         utime.m4, utimes.m4, xstrtoumax.m4:
68474         Quote the first argument in each use of AC_DEFUN.
68475
68476 2001-08-12  Jim Meyering  <meyering@lucent.com>
68477
68478         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
68479         Simply `return getcwd (NULL, 0);'.
68480         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
68481         Use 1300 as initial value for length, not PATH_MAX.
68482
68483         * lib/pathmax.h: Clean up cpp syntax.
68484
68485 2001-08-12  Jim Meyering  <meyering@lucent.com>
68486
68487         * lib/gettimeofday.c: New file.
68488         * lib/gtod.h: New file.
68489         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
68490
68491 2001-08-05  Jim Meyering  <meyering@lucent.com>
68492
68493         * m4/jm-macros.m4: Require autoconf-2.52.
68494
68495 2001-08-04  Jim Meyering  <meyering@lucent.com>
68496
68497         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
68498         stmt, to get in sync with glibc.
68499
68500 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68501
68502         The following changes are from gettext 0.10.39 as maintained by
68503         Bruno Haible.
68504
68505         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
68506         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
68507         with inverted sense.  All uses changed.
68508
68509         * lib/mbswidth.c: Don't include <limits.h>.
68510         Include <stdlib.h> and <string.h> unconditionally.
68511         (iswcntrl, mbsinit, ISCNTRL): New macros.
68512         (mbsnwidth): Use K&R style function declarations.
68513         Don't bother checking for MB_LEN_MAX == 1, since the compiler
68514         can optimize it when MB_CUR_MAX == 1.
68515         The width of control characters is zero, not 1.
68516
68517 2001-08-03  Paul Eggert  <eggert@twinsun.com>
68518
68519         The following changes are from gettext 0.10.39 as maintained by
68520         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
68521
68522         * m4/codeset.m4: Upgrade to serial AM1.
68523         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
68524         all uses changed.  Quote first arg of AC_DEFUN.
68525         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
68526
68527         * m4/iconv.m4: Upgrade to serial AM2.
68528         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
68529         Add --with-libconv-prefix.
68530         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
68531         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
68532         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
68533         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
68534         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
68535
68536         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
68537         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
68538         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
68539         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
68540         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
68541         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
68542         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
68543         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
68544         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
68545
68546         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
68547         string.h any more.
68548
68549         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
68550         not the default value.
68551
68552         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
68553         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
68554         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
68555         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
68556         Also check for iswcntrl, used for wcwidth fallback.
68557         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
68558         to Autoconf 2.13.
68559
68560 2001-08-03  Jim Meyering  <meyering@lucent.com>
68561
68562         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
68563         as it was in the original.  Reported by Paul Eggert.
68564
68565 2001-07-16  Jim Meyering  <meyering@lucent.com>
68566
68567         * m4/gettimeofday.m4: New file.
68568         Prompted by a report from Bernhard Baehr.
68569
68570 2001-07-15  Jim Meyering  <meyering@lucent.com>
68571
68572         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
68573         stuff. Now it's in ../Makefile.cfg.
68574
68575 2001-07-15  Jim Meyering  <meyering@lucent.com>
68576
68577         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
68578         (BUILT_SOURCES): Add unlocked-io.h.
68579         (io_functions): Define.
68580         (unlocked-io.h): New rule.
68581         (DISTCLEANFILES): Add unlocked-io.h.
68582         (all-local): Depend on unlocked-io.h, to ensure it is created.
68583
68584         * lib/unlocked-io.hin: New file
68585
68586         * lib/regex.c: Update from glibc.
68587
68588 2001-07-05  Jim Meyering  <meyering@lucent.com>
68589
68590         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
68591         recommendation.
68592         (libfetish_a_SOURCES): Put all .h files here instead.
68593         Remove a thus-exposed (better checks in automake) duplicate and
68594         two unnecessary .h files.
68595
68596 2001-07-04  Jim Meyering  <meyering@lucent.com>
68597
68598         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
68599         that generates jm-glibc-io.m4 so that it doesn't trigger any make
68600         distcheck failure.
68601
68602 2001-07-02  Jim Meyering  <meyering@lucent.com>
68603
68604         The following changes were prompted by suggestions from Bruno Haible.
68605
68606         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
68607         is now generated.
68608         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
68609         definition of EXTRA_DIST.
68610         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
68611         ensure that the generated file is created/updated whenever the list
68612         of $(unlocked_functions) is changed.
68613         (jm-glibc-io.m4): New rule.
68614         (unlocked-io.h): New rule -- currently unused.
68615
68616 2001-06-24  Jim Meyering  <meyering@lucent.com>
68617
68618         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
68619         unmatched right bracket, rather than kludging it with an extra,
68620         falsely-matching quote in a comment.  Patch by Akim Demaille.
68621
68622 2001-06-11  Jim Meyering  <meyering@lucent.com>
68623
68624         * lib/regex.c: Update from GNU libc.
68625
68626 2001-05-27  Jim Meyering  <meyering@lucent.com>
68627
68628         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
68629         Check for ut_type in struct utmp.
68630
68631 2001-05-27  Jim Meyering  <meyering@lucent.com>
68632
68633         * lib/readutmp.h (UT_TYPE): Define.
68634
68635 2001-05-24  Jim Meyering  <meyering@lucent.com>
68636
68637         * lib/argmatch.c: Include "quote.h".
68638         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
68639         quote function.  Reported by Göran Uddeborg.
68640
68641 2001-05-22  Jim Meyering  <meyering@lucent.com>
68642
68643         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
68644         now that we use the package-supplied version unconditionally.
68645         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
68646
68647 2001-05-21  Jim Meyering  <meyering@lucent.com>
68648
68649         * m4/regex.m4: Change a couple backticks to single quotes to avoid
68650         shell syntax errors.
68651
68652 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68653
68654         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
68655
68656 2001-05-20  Paul Eggert  <eggert@twinsun.com>
68657
68658         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
68659         Don't bother to check library strftime, since
68660         we'll be using our own my_strftime function anyway.
68661         Define my_strftime instead of strftime.
68662
68663 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
68664
68665         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
68666         which is not yet declared.
68667
68668 2001-05-15  Jim Meyering  <meyering@lucent.com>
68669
68670         * m4/regex.m4: Use proper quoting so brackets appear in the test
68671         program.
68672         Reported by, and with help from, Bruno Haible.
68673
68674 2001-05-13  Jim Meyering  <meyering@lucent.com>
68675
68676         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
68677         undefined.
68678
68679 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68680
68681         dirname code cleanup.  base_name now behaves more compatibly
68682         with POSIX basename when given file names that have trailing
68683         slashes, and similarly for dir_name.  Add new primitives
68684         base_len and dir_len.  Put the directory-name-related decls
68685         into dirname.h.
68686
68687         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
68688         * lib/backupfile.c (base_name): Likewise.
68689         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
68690         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
68691         * lib/makepath.c (strip_trailing_slashes): Likewise.
68692         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
68693         ISSLASH): Likewise.
68694         * lib/rename.c (strip_trailing_slashes): Likewise.
68695         * lib/same.c (base_name): Likewise.
68696         * lib/stripslash.c (ISSLASH): Likewise.
68697
68698         * lib/addext.c: Include <dirname.h> after size_t is defined.
68699         * lib/backupfile.c: Likewise.
68700
68701         * lib/addext.c (addext): Use base_len to trim redundant
68702         trailing slashes instead of doing it ourselves.
68703         But do not trim the last slash if it is not redundant.
68704
68705         * lib/backupfile.c (find_backup_file_name,
68706         max_backup_version): Use base_len instead of rolling it ourselves.
68707         Handle the case of "" and (on DOS) "C:" correctly.
68708
68709         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
68710         needed. Include <string.h>, <dirname.h>.
68711         (base_name): Allow file names ending in slashes, other than names
68712         that are all slashes.  In this case, return the basename followed
68713         by the slashes.  This is more general, and can be used in places
68714         where the original base_name purposely had an assertion failure.
68715         (base_len): New function.
68716
68717         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
68718         Do not include <assert.h>; no longer needed.
68719         Include xalloc.h.
68720         (memrchr): Remove decl.
68721         (dir_name_r): Remove.
68722         (dir_len): Renamed from dirlen.  All callers changed.
68723         Rewrite in terms of base_name, for simplicity and consistency.
68724         (dir_name): Never return NULL.  All callers changed.
68725         Do not include <stdlib.h> in test program; no longer needed.
68726         return 0; is fine for test program.
68727
68728         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
68729         New macros.
68730         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
68731
68732         * lib/path-concat.c (path_concat): Use base_len to compute
68733         base length, not strlen; this means we cannot rely on memcpy
68734         to null-terminate.
68735
68736         * lib/same.c (STREQ): Remove.
68737         (same_name): Handle the case where the basename ends in trailing '/'.
68738
68739         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
68740         a slash was stripped.  Do not strip the last slash after a
68741         file system prefix.
68742
68743 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68744
68745         * lib/Makefile.am (libfetish_a_SOURCES):
68746         Add strftime.c, since we now compile it on all hosts.
68747
68748         * lib/strftime.c (my_strftime):
68749         Define to nstrftime if emacs, but only if my_strftime is not defined.
68750         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
68751         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
68752         Add one more extra argument: a nanoseconds value.
68753         All uses changed.
68754         (ns): New macro.
68755         (my_strftime function): Add %N format.
68756         (emacs_strftimeu): Renamed from emacs_strftime,
68757         with extra ut argument.
68758
68759 2001-05-09  Paul Eggert  <eggert@twinsun.com>
68760
68761         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
68762
68763 2001-04-21  Jim Meyering  <meyering@lucent.com>
68764
68765         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
68766         doesn't interfere.
68767
68768 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68769
68770         * m4/ftruncate.m4: Check for chsize.
68771         Link with ftruncate.o unconditionally if ftruncate is missing.
68772         This was required when cross-compiling to i586-mingw32msvc.
68773
68774 2001-04-08  Jim Meyering  <meyering@lucent.com>
68775
68776         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
68777         recomputed; that's necessary when the offset spans a DST transition.
68778         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
68779
68780 2001-04-02  Jim Meyering  <meyering@lucent.com>
68781
68782         * lib/regex.h, regex.c: Update from GNU libc.
68783
68784 2001-03-24  Jim Meyering  <meyering@lucent.com>
68785
68786         * m4/jm-macros.m4: Require autoconf-2.49d.
68787
68788 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
68789
68790         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
68791
68792 2001-03-19  Paul Eggert  <eggert@twinsun.com>
68793
68794         * lib/version-etc.c (version_etc_copyright): Update to 2001.
68795
68796 2001-03-17  Jim Meyering  <meyering@lucent.com>
68797
68798         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
68799         now that the version in autoconf is equivalent.
68800         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
68801
68802         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
68803         Suggestion from Akim Demaille.
68804
68805         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
68806         (jm_PREREQ_TEMPNAME): New function.
68807
68808 2001-03-16  Paul Eggert  <eggert@twinsun.com>
68809
68810         * lib/tempname.c (uint64_t): Define to uintmax_t if
68811         not defined, and if UINT64_MAX is not defined.
68812         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
68813         Reported by John David Anglin.
68814
68815 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
68816
68817         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
68818         resolve alias if codeset is empty.
68819         * lib/config.charset (BeOS): Use wildcard syntax.
68820
68821 2001-03-13  Jim Meyering  <meyering@lucent.com>
68822
68823         * lib/path-concat.c (path_concat)
68824         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
68825         concatenating e.g., `C:' and `foo'.
68826         From Bruno Haible.
68827
68828 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68829
68830         * lib/localcharset.c (locale_charset): Don't use
68831         setlocale(LC_CTYPE,NULL). Don't return NULL.
68832         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
68833
68834 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68835
68836         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
68837         support for DOS/DJGPP.
68838
68839 2001-03-01  Paul Eggert  <eggert@twinsun.com>
68840
68841         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
68842         lacks mkstemp.  Compile our own tempname.c if we compile our own
68843         mkstemp.c, as mkstemp relies on tempname.
68844
68845 2001-03-01  Jim Meyering  <meyering@lucent.com>
68846
68847         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
68848         AH_VERBATIM really does output its argument verbatim.
68849
68850 2001-02-28  Paul Eggert  <eggert@twinsun.com>
68851
68852         * lib/Makefile.am (libfetish_a_SOURCES):
68853         Add dup-safer.c, fopen-safer.c.
68854         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
68855
68856         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
68857         * lib/unistd-safer.h: New files.
68858
68859 2001-02-25  Paul Eggert  <eggert@twinsun.com>
68860
68861         The mkstemp replacement is taken from glibc 2.2.2, with some
68862         portability fixes for use outside glibc, as follows:
68863
68864         * lib/tempname.c (struct_stat64): New macro.
68865         (direxists, __gen_tempname): Use it.
68866         This avoids a portability problem with Solaris 8.
68867
68868         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
68869         (<stddef.h>, <stdint.h>, <string.h>):
68870         Include only if STDC_HEADERS || _LIBC.
68871         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
68872         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
68873         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
68874         (__set_errno): Define this macro if <errno.h> doesn't.
68875         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
68876         Define these macros if <stdio.h> doesn't.
68877         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
68878         Define these macros if <sys/stat.h>
68879         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
68880         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
68881         __xstat64): Define if not _LIBC.
68882         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
68883         (__gen_tempname): Invoke gettimeofday only if
68884         HAVE_GETTIMEOFDAY || _LIBC;
68885         otherwise, fall back on plain "time".
68886         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
68887
68888         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
68889
68890         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
68891
68892 2001-02-18  Paul Eggert  <eggert@twinsun.com>
68893
68894         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
68895
68896 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68897
68898         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
68899         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
68900         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
68901         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
68902
68903 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68904
68905         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
68906         Remove workaround macros for hosts that have mbrtowc but not
68907         mbstate_t, as we now insist on proper declarations for both
68908         before using mbrtowc.
68909
68910 2001-02-17  Jim Meyering  <meyering@lucent.com>
68911
68912         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
68913         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
68914         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
68915         UnixWare 7.1.1.
68916
68917         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
68918         rather than AC_CACHE_VAL.
68919
68920 2001-02-17  Jim Meyering  <meyering@lucent.com>
68921
68922         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
68923         around included file name.
68924
68925         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
68926
68927         * lib/strftime.c: Update from GNU libc (the only changes were to
68928         comments).
68929
68930 2001-02-17  Jim Meyering  <meyering@lucent.com>
68931
68932         * lib/regex.c: Update from libc.
68933
68934 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
68935
68936         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
68937         clash.
68938
68939 2001-02-16  Paul Eggert  <eggert@twinsun.com>
68940
68941         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
68942         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
68943         Reported by Mark Hounschell via Paul Eggert.
68944
68945 2001-02-07  Jim Meyering  <meyering@lucent.com>
68946
68947         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
68948
68949 2001-02-05  Jim Meyering  <meyering@lucent.com>
68950
68951         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
68952         it includes the patch required for `large file' support with at least
68953         HP-UX's 10.20 /bin/cc.
68954
68955 2001-02-03  Jim Meyering  <meyering@lucent.com>
68956
68957         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
68958         AS_IF, now that it works once again (mysteriously).
68959         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
68960
68961 2001-01-30  Jim Meyering  <meyering@lucent.com>
68962
68963         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
68964         * m4/chown.m4: Rename conftestchown to conftest.chown.
68965         * m4/rename.m4: s/conftestdir/conftest.d1/ and
68966         s/conftestdir2/conftest.d2/.
68967         * m4/utimes.m4: s/conftestdata/conftest.data/
68968         Inspired by Pavel Roskin's change in autoconf.
68969
68970 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
68971
68972         * lib/config.charset: Update for FreeBSD 4.2.
68973
68974 2001-01-27  Jim Meyering  <meyering@lucent.com>
68975
68976         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
68977         a use of AS_IF.
68978         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
68979
68980 2001-01-26  Jim Meyering  <meyering@lucent.com>
68981
68982         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
68983         quotearg.c includes it.
68984
68985 2001-01-26  Jim Meyering  <meyering@lucent.com>
68986
68987         * lib/quotearg.c: Include stddef.h.
68988         * lib/quote.c: Include stddef.h.
68989         Reported by Axel Kittenberger.
68990
68991         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
68992         line in double quotes so that it evokes a better diagnostic.
68993         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
68994         Reported by Axel Kittenberger.
68995
68996 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
68997
68998         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
68999         as if it was a `charset'.
69000
69001 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
69002
69003         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
69004         has const.
69005
69006 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
69007
69008         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
69009         to avoid a warning.  Add back 'const' to inptr.
69010
69011 2001-01-20  Jim Meyering  <meyering@lucent.com>
69012
69013         Be sure that headers are checked before used in code compiled
69014         for the type checks.
69015         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
69016         In place of that, invoke jm_CHECK_ALL_TYPES.
69017         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
69018         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
69019         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
69020         The check for ssize_t was mistakenly run before the test for unistd.h.
69021
69022         The configure-time check for stdbool.h was missing.
69023         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
69024         (jm_PREREQ_HASH): New function.
69025
69026 2001-01-17  Jim Meyering  <meyering@lucent.com>
69027
69028         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
69029         for autoconf-2.49c.
69030         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
69031
69032 2001-01-16  Jim Meyering  <meyering@lucent.com>
69033
69034         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
69035         From Bruno Haible.
69036
69037 2001-01-14  Jim Meyering  <meyering@lucent.com>
69038
69039         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
69040         foo and bar.  Create conftestdir/ in the script, not in the C code.
69041         Remove directories in the script, not in the C code.
69042         Remove conftestdir{,2} before trying to create the directory.
69043         Make the entire configure script fail if the mkdir fails.
69044
69045 2001-01-14  Jim Meyering  <meyering@lucent.com>
69046
69047         * lib/rename.c: New file.  From Volker Borchert.
69048         Include stdlib.h, string.h or strings.h, and xalloc.h.
69049         Use strip_trailing_slashes rather than open-coding it.
69050
69051 2001-01-03  Paul Eggert  <eggert@twinsun.com>
69052
69053         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
69054
69055 2001-01-03  Jim Meyering  <meyering@lucent.com>
69056
69057         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
69058         of local `inptr' to avoid warning with some system declarations of
69059         iconv.
69060
69061 2001-01-02  Volker Borchert  <bt@teknon.de>
69062
69063         * m4/rename.m4: New file.
69064         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
69065
69066 2001-01-01  Jim Meyering  <meyering@lucent.com>
69067
69068         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
69069         even on systems with utmpx.h.  It's necessary for the declaration of
69070         utmp's ut_user member.  Reported by Andreas Jaeger.
69071
69072         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
69073         available. They are required for the declarations of getgrgid and
69074         getpwuid resp.
69075         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
69076         Reported by Andreas Jaeger.
69077
69078 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
69079
69080         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
69081         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
69082         so `make install' also works in VPATH builds.
69083
69084 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
69085
69086         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
69087         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
69088         can be used in subdirectories.
69089
69090 2000-12-29  Paul Eggert  <eggert@twinsun.com>
69091
69092         * lib/modechange.c: Do not assume that mode_t uses the
69093         traditional octal encoding.  E.g. "chmod 1 FOO" should set
69094         the other-execute bit of FOO even if S_IXOTH != 1.
69095
69096         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
69097         WOTH, XOTH, ALLM): New macros.
69098         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
69099          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
69100         Use them.
69101         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
69102         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
69103         (mode_compile):
69104         No need to use uintmax_t; unsigned long is long enough.
69105         Don't bother to get suffix since we don't use it.
69106
69107 2000-12-26  Jim Meyering  <meyering@lucent.com>
69108
69109         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
69110         better with autoheader.
69111
69112 2000-12-24  Jim Meyering  <meyering@lucent.com>
69113
69114         * lib/hash.c (is_prime): Return explicit boolean values.
69115         (hash_get_first): Return NULL to appease Irix5.6's 89.
69116         Reported by Nelson Beebe.
69117
69118 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
69119
69120         * lib/localcharset.c (locale_charset): Add support for Win32.
69121
69122 2000-12-18  Paul Eggert  <eggert@twinsun.com>
69123
69124         * lib/physmem.h, lib/physmem.c: New files.
69125
69126         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
69127         (noinst_HEADERS): Add physmem.h.
69128
69129         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
69130         't' for compatibility with Solaris 8 sort.
69131
69132 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
69133
69134         * lib/config.charset: Add support for BeOS.
69135
69136 2000-12-17  Jim Meyering  <meyering@lucent.com>
69137
69138         * m4/dos.m4 (jm_AC_DOS): New file and macro.
69139         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
69140
69141 2000-12-16  Jim Meyering  <meyering@lucent.com>
69142
69143         This bug had a serious impact on chown: `chown N:M FILE' (for integer
69144         N and M) would have treated it like `chown N:N FILE'.
69145
69146         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
69147
69148 2000-12-16  Jim Meyering  <meyering@lucent.com>
69149
69150         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
69151         SHELLS_FILE to a file name that's useful on djgpp systems.
69152         Include stdlib.h.
69153         (ADDITIONAL_DEFAULT_SHELLS): Define.
69154         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
69155         Based mostly on a patch from Prashant TR.
69156
69157 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
69158
69159         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
69160         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
69161         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
69162
69163 2000-12-08  Andreas Schwab  <schwab@suse.de>
69164
69165         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
69166         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
69167
69168 2000-12-07  Jim Meyering  <meyering@lucent.com>
69169
69170         * lib/stripslash.c (ISSLASH): Define.
69171         (strip_trailing_slashes): Use ISSLASH rather than comparing against
69172         `/'.
69173         From Prashant TR.
69174
69175         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
69176         (dir_name_r): Declare this function as static.
69177         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
69178         manifest itself on a name containing a mix of slashes and
69179         backslashes.
69180         Make this function work with names starting with a DOS-style
69181         drive letter and colon prefix.
69182         (dir_name): Append `.' if necessary.
69183         Based mostly on patches from Prashant TR and Eli Zaretskii.
69184
69185         * lib/dirname.h (dir_name_r): Remove prototype.
69186
69187 2000-12-06  Paul Eggert  <eggert@twinsun.com>
69188
69189         * m4/off_t-format.m4: Remove this file.
69190         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
69191
69192 2000-12-06  Jim Meyering  <meyering@lucent.com>
69193
69194         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
69195         replacement strtoull, we may well need the replacement strtoul, too.
69196         Check for declarations of strtoul and strtoull.
69197         Check for strtol.  Mainly as a cue to cause automake to include
69198         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
69199         Check for limits.h -- strtol.c needs it.
69200
69201 2000-12-05  Jim Meyering  <meyering@lucent.com>
69202
69203         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
69204
69205 2000-12-04  Jim Meyering  <meyering@lucent.com>
69206
69207         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
69208         Also include memory.h, stdlib.h, unistd.h if appropriate.
69209         Reported by Andreas Jaeger (conflicting declaration of malloc).
69210
69211 2000-12-02  Jim Meyering  <meyering@lucent.com>
69212
69213         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
69214         * m4/jm-macros.m4 (jm_MACROS): require it.
69215
69216 2000-12-02  Jim Meyering  <meyering@lucent.com>
69217
69218         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
69219
69220 2000-12-01  Paul Eggert  <eggert@twinsun.com>
69221
69222         * lib/memrchr.c: Include <config.h> before any system include file.
69223
69224 2000-11-30  Jim Meyering  <meyering@lucent.com>
69225
69226         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
69227
69228 2000-11-30  Jim Meyering  <meyering@lucent.com>
69229
69230         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
69231
69232 2000-11-29  Paul Eggert  <eggert@twinsun.com>
69233
69234         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
69235
69236 2000-11-26  Jim Meyering  <meyering@lucent.com>
69237
69238         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
69239
69240 2000-11-22  Paul Eggert  <eggert@twinsun.com>
69241
69242         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
69243         size of (size_t) -1; it's not portable.
69244
69245 2000-11-17  Jim Meyering  <meyering@lucent.com>
69246
69247         * lib/strstr.c: Update from GNU libc.
69248
69249 2000-11-17  Akim Demaille  <akim@epita.fr>
69250
69251         * lib/obstack.h: Formatting changes.
69252         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
69253         prevent type checking.
69254         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
69255         cast the value to (void *): assigning a `foo *' to a `void *'
69256         variable is valid.
69257         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
69258
69259 2000-11-16  Jim Meyering  <meyering@lucent.com>
69260
69261         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
69262
69263 2000-11-11  Jim Meyering  <meyering@lucent.com>
69264
69265         * lib/error.c: Add a couple #includes, merging from GNU libc version.
69266
69267 2000-11-10  Jim Meyering  <meyering@lucent.com>
69268
69269         * lib/obstack.h: Update from GNU libc.
69270         * lib/obstack.c: Likewise.
69271
69272 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
69273
69274         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
69275
69276 2000-11-06  Paul Eggert  <eggert@twinsun.com>
69277
69278         * lib/getusershell.c (setusershell): Use rewind rather than
69279         fseek/fseeko, to avoid configuration hassles with fseeko.
69280         Don't bother opening SHELLS_FILE if shellstream is NULL;
69281         it's not necessary.
69282
69283 2000-11-05  Jim Meyering  <meyering@lucent.com>
69284
69285         * lib/makepath.h (make_dir): Declare.
69286         * lib/makepath.c (make_dir): Remove `static' attribute.
69287         Tweak a comment.
69288
69289 2000-11-04  Jim Meyering  <meyering@lucent.com>
69290
69291         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
69292
69293 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
69294
69295         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
69296         last one in a bucket, advance to the next bucket.
69297
69298 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
69299
69300         * lib/fnmatch.c: Do not comment out all the code if we are using
69301         the GNU C library, because in some cases we are replacing buggy
69302         code in the GNU C library itself.
69303
69304 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
69305
69306         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
69307         (regex_compile): Catch bogus \(\1\).
69308
69309 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69310
69311         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
69312         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
69313         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
69314
69315 2000-10-30  Paul Eggert  <eggert@twinsun.com>
69316
69317         * lib/error.h, getline.h, modechange.h:
69318         Remove "2000" from Copyright line, as the file hasn't been
69319         changed this year other than in the copyright notice.
69320
69321         * lib/xalloc.h: Add "2000" to Copyright line, as this file
69322         was changed this year.
69323
69324 2000-10-29  Jim Meyering  <meyering@lucent.com>
69325
69326         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
69327         renaming.
69328         * m4/ls-mntd-fs.m4: Likewise
69329
69330 2000-10-29  Jim Meyering  <meyering@lucent.com>
69331
69332         * lib/xstat.in: Fix grammar in comment.
69333
69334 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
69335
69336         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
69337         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
69338         doesn't define __restrict_arr.
69339
69340 2000-10-28  Jim Meyering  <meyering@lucent.com>
69341
69342         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
69343         (jm_PREREQ_MEMCHR): New function.
69344
69345 2000-10-28  Jim Meyering  <meyering@lucent.com>
69346
69347         * lib/memchr.c: Update from libc.
69348         Adjust for portability:
69349         [HAVE_STDLIB_H]: Include stdlib.h.
69350         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
69351         Undef __memchr, too.
69352         [!weak_alias]: Define __memchr to memchr.
69353
69354         * lib/regex.c: Update from libc.
69355         * lib/regex.h: Likewise.
69356         * lib/getopt1.c: Likewise.
69357         * lib/memcmp.c: Likewise.
69358
69359         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
69360         Avoid using fseek, when possible -- it's broken by design.
69361         Patch by Ulrich Drepper.
69362
69363 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
69364
69365         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
69366         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
69367         Giving in to popular pressure to shut up the compiler with casts.
69368
69369 2000-10-26  Jim Meyering  <meyering@lucent.com>
69370
69371         * lib/strftime.c: Update from libc.
69372
69373 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
69374
69375         * regex.c: More `unsigned char' -> `re_char' changes.
69376         Also change several `int' into `re_wchar_t'.
69377         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
69378         (PUSH_FAILURE_POINTER): Don't cast any more.
69379         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
69380         We want GCC to complain, since this piece of code makes
69381         re_match non-reentrant, which *should* be fixed.
69382         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
69383         (EXTEND_BUFFER): Use RETALLOC.
69384         (SET_LIST_BIT): Don't cast.
69385         (re_wchar_t): New type.
69386         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
69387         that those two functions will always properly return.
69388         (IMMEDIATE_QUIT_CHECK): Cast to void.
69389         (analyse_first): Use recursion rather than an explicit stack.
69390         (re_compile_fastmap): Can't fail anymore.
69391         (re_search_2): Don't check re_compile_fastmap for failure.
69392         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
69393         Now also sets the new value (passed in a new argument).
69394         (re_match_2_internal): Use it.
69395         Also, use a new var `reg' of type size_t when looping through regs
69396         rather than reuse the inappropriate `mcnt'.
69397
69398 2000-10-25  Jim Meyering  <meyering@lucent.com>
69399
69400         * lib/obstack.c: Update from libc.
69401
69402 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
69403
69404         * regex.c (regex_compile): Change the way of handling a range from
69405         a char less than 256 to a char not less than 256.
69406
69407 2000-10-24  Andrew Innes  <andrewi@gnu.org>
69408
69409         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
69410         NT-Emacs only.
69411         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
69412         so that re_search functions only quit when callers expect them to.
69413
69414 2000-10-23  Jim Meyering  <meyering@lucent.com>
69415
69416         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
69417         wrong.  That set_locale call must not have any side effects.
69418         From Paul Eggert.
69419
69420 2000-10-22  Jim Meyering  <meyering@lucent.com>
69421
69422         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
69423         [CYCLIC]: Remove now-unused definition.
69424
69425         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
69426         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
69427         Suggestion from Ulrich Drepper.
69428
69429 2000-10-21  Jim Meyering  <meyering@lucent.com>
69430
69431         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
69432         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
69433         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
69434
69435 2000-10-21  Jim Meyering  <meyering@lucent.com>
69436
69437         * lib/dirname.c (memrchr): Declare if necessary.
69438         (dir_name): Remove the restriction that there be no
69439         trailing slashes.  Now, this code skips past them, effectively
69440         ignoring them.
69441         [TEST_DIRNAME] (main): New unit tests.
69442
69443         * lib/memrchr.c: New file from GNU libc.
69444         Undef __memrchr, too.
69445         [!weak_alias]: Define __memrchr to memrchr.
69446         Guard weak_alias use with `#ifdef weak_alias'.
69447
69448 2000-10-21  Jim Meyering  <meyering@lucent.com>
69449
69450         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
69451         (dir_name): Use dir_name_r.
69452         * lib/dirname.h (dir_name_r): Declare it.
69453
69454 2000-10-17  Jim Meyering  <meyering@lucent.com>
69455
69456         * lib/quote.h (PARAMS): Define and use.
69457         Reported by Akim Demaille.
69458
69459         * lib/getopt.c: Update from libc.
69460
69461 2000-10-16  Jim Meyering  <meyering@lucent.com>
69462
69463         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
69464         setlocale.
69465         From Jan Fedak.
69466
69467 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
69468
69469         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
69470
69471 2000-09-25  Jim Meyering  <meyering@lucent.com>
69472
69473         * lib/md5.h (rol): Define (from GnuPG).
69474
69475         * lib/sha.c: Give credit (GnuPG) where due.
69476         (M): Use rol rather than open-coding it.
69477         Add a FIXME comment.
69478
69479 2000-09-21  Jim Meyering  <meyering@lucent.com>
69480
69481         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
69482         Reported by Michael Stone.
69483
69484 2000-09-20  Jim Meyering  <meyering@lucent.com>
69485
69486         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
69487         (noinst_HEADERS): Add sha.h.
69488         Based on code from Scott G. Miller and from GnuPG.
69489
69490 2000-09-18  Jim Meyering  <meyering@lucent.com>
69491
69492         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
69493         LIBS. Otherwise, everyone ends up linking with -lelf for some
69494         configurations.
69495         Reported by Mike Stone.
69496
69497 2000-09-15  Jim Meyering  <meyering@lucent.com>
69498
69499         * lib/regex.c: Update from libc.
69500
69501 2000-09-10  Jim Meyering  <meyering@lucent.com>
69502
69503         * lib/getopt.c (_getopt_internal): Update from glibc.
69504
69505 2000-09-09  Jim Meyering  <meyering@lucent.com>
69506
69507         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
69508         think it should be used as a general replacement for isascii.
69509         * lib/fnmatch.c: Likewise.
69510         * lib/mbswidth.c: Likewise
69511         * lib/regex.c: Likewise.
69512
69513         Don't use atoi.
69514         * lib/userspec.c: Include sys/param.h and limits.h.
69515         Include xstrtol.h.
69516         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
69517         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
69518         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
69519         UID, GID.  Check range.
69520
69521 2000-09-06  Jim Meyering  <meyering@lucent.com>
69522
69523         * lib/getopt.c (_getopt_internal): Update from glibc.
69524
69525 2000-08-30  Jim Meyering  <meyering@lucent.com>
69526
69527         * lib/strftime.c: Merge in changes from GNU libc.
69528
69529 2000-08-26  Jim Meyering  <meyering@lucent.com>
69530
69531         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
69532         * m4/fpending.m4: New file.
69533
69534 2000-08-26  Jim Meyering  <meyering@lucent.com>
69535
69536         * lib/closeout.c: Include "__fpending.h".
69537         (close_stdout_status): Return right away if there's nothing to flush.
69538
69539         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
69540         * lib/__fpending.c: New file.
69541         * lib/__fpending.h: New file.
69542
69543 2000-08-20  Jim Meyering  <meyering@lucent.com>
69544
69545         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
69546         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
69547         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
69548
69549 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
69550
69551         Improve fileutils installation on systems where running
69552         programs (like install) can't be unlinked.
69553         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
69554         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
69555
69556 2000-08-07  Paul Eggert  <eggert@twinsun.com>
69557
69558         Standardize on "memory exhausted" instead of "Memory exhausted"
69559         or "virtual memory exhausted".
69560         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
69561         "virtual memory exhausted".
69562         * lib/same.c (same_name): Invoke xalloc_die instead of printing
69563         our own message.
69564         * lib/userspec.c (parse_user_spec): Likewise.
69565         * lib/bumpalloc.h: comment fix
69566         * lib/same.c, userspec.c: Include xalloc.h.
69567
69568         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
69569         not char *const and pointing to a constant array.
69570         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
69571         (xrealloc): Comment fix.
69572
69573         * lib/userspec.c (parse_user_spec):
69574         Don't translate a message until just before returning,
69575         to avoid unnecessary translation.
69576
69577 2000-08-07  Jim Meyering  <meyering@lucent.com>
69578
69579         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
69580         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
69581         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
69582         getgroups.c, gethostname.c, getopt.h, group-member.c,
69583         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
69584         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
69585         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
69586         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
69587         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
69588         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
69589         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
69590         yesno.c: Back out Copyright date changes for each file with no change
69591         this year.  This eases coordination with other programs using the same
69592         source code modules.  From Paul Eggert.
69593
69594 2000-08-06  Paul Eggert  <eggert@twinsun.com>
69595
69596         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
69597         not char, for compatibility with glibc 2.1.3 strftime.c.
69598
69599 2000-08-03  Greg McGary  <greg@mcgary.org>
69600
69601         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
69602         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
69603         (EXTEND_BUFFER): Use them.
69604
69605 2000-08-01  Jim Meyering  <meyering@lucent.com>
69606
69607         * lib/dirname.c (ISSLASH): Define.
69608         (BACKSLASH_IS_PATH_SEPARATOR): Define.
69609         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
69610         both `\' and `/' may be use as path separators.
69611         Based on a patch from Prashant TR.
69612
69613 2000-07-31  Paul Eggert  <eggert@twinsun.com>
69614
69615         * lib/quotearg.c (quotearg_n_options): Don't make the initial
69616         slot vector a constant, since it might get modified.
69617
69618 2000-07-31  Jim Meyering  <meyering@lucent.com>
69619
69620         * lib/xmalloc.c: Use `virtual memory exhausted', not
69621         `Memory exhausted'.
69622         * lib/obstack.c (print_and_abort): Likewise.
69623
69624 2000-07-30  Paul Eggert  <eggert@twinsun.com>
69625
69626         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
69627         buffer, so that the caller can always quote one small
69628         component of a "memory exhausted" message in slot 0.
69629         From a suggestion by Jim Meyering.
69630
69631 2000-07-30  Jim Meyering  <meyering@lucent.com>
69632
69633         * lib/makepath.c (make_path): Quote the other instance, too.
69634
69635         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
69636         (STATIC_BUF_SIZE): Define.
69637         (quotearg_n_options): Use only statically allocated storage when
69638         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
69639         than STATIC_BUF_SIZE.
69640
69641 2000-07-29  Jim Meyering  <meyering@lucent.com>
69642
69643         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
69644         * lib/dirname.c (dir_name): Likewise.
69645
69646         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
69647         `/'.
69648
69649         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
69650         (dir_name): Assert that there are no trailing slashes.
69651
69652 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
69653
69654         * lib/mbswidth.h (mbswidth): Add a flags argument.
69655         (mbswidth): New declaration.
69656         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
69657         * lib/mbswidth.c (mbswidth): Add a flags argument.
69658         (mbsnwidth): New function.
69659
69660 2000-07-24  Jim Meyering  <meyering@lucent.com>
69661
69662         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
69663
69664 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69665
69666         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
69667
69668 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69669
69670         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
69671         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
69672         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
69673         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
69674         invoke multibyte primitives.
69675
69676 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69677
69678         * lib/quotearg.c:
69679         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
69680         so that mbstate_t is always defined.
69681
69682         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
69683         be 1 in at least one GCC installation, and this configuration
69684         error is likely to be common.  Ignoring MB_LEN_MAX hurts
69685         performance on hosts that have mbrtowc but have only unibyte
69686         locales, but I assume these hosts are rare.
69687
69688 2000-07-23  Paul Eggert  <eggert@twinsun.com>
69689
69690         * lib/mbswidth.c (_XOPEN_SOURCE):
69691         Don't define; this causes problems on Solaris 7.
69692         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
69693
69694 2000-07-23  Jim Meyering  <meyering@lucent.com>
69695
69696         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
69697         too: getgrgid, getpwuid, getuid.
69698
69699 2000-07-23  Jim Meyering  <meyering@lucent.com>
69700
69701         * lib/basename.c (base_name): Add an assertion.
69702
69703 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
69704
69705         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
69706         shadow its mbsinit function.
69707
69708 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69709
69710         * lib/mbswidth.h: New file.
69711         * lib/mbswidth.c: New file.
69712         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
69713         (noinst_HEADERS): Add mbswidth.h.
69714
69715 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
69716
69717         * lib/config.charset: Add support for FreeBSD. Improve support for
69718         HP-UX and IRIX 6.
69719
69720 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
69721
69722         * m4/mbswidth.m4: New file.
69723         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
69724
69725 2000-07-15  Jim Meyering  <meyering@lucent.com>
69726
69727         * lib/makepath.c: Include quote.h.
69728         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
69729         corresponding argument in a `quote (...)' call.
69730         Give better diagnostics.
69731
69732         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
69733         (noinst_HEADERS): Add quote.h.
69734
69735         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
69736         from tar's src/misc.c.
69737         * lib/quote.h: New file.  Prototypes for same.
69738
69739 2000-07-14  Paul Eggert  <eggert@twinsun.com>
69740
69741         From a suggestion by Bruno Haible.
69742         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
69743         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
69744         to decide whether to define the BeOS workaround macro;
69745         this adjusts to the change to AC_MBSTATE_T.
69746
69747 2000-07-14  Jim Meyering  <meyering@lucent.com>
69748
69749         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
69750         jm_AC_TYPE_UINTMAX_T.
69751
69752 2000-07-13  Paul Eggert  <eggert@twinsun.com>
69753
69754         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
69755
69756         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
69757         quotearg_buffer_restyled): Add support for
69758         clocale_quoting_style.  Undo previous change to
69759         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
69760         and "{RIGHT QUOTATION MARK}" msgids.
69761
69762 2000-07-10  Paul Eggert  <eggert@twinsun.com>
69763
69764         From a suggestion by Bruno Haible.
69765         * m4/mbstate_t.m4 (AC_MBSTATE_T):
69766         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
69767         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
69768         and mbstate_t, to a single-part test that simply defines mbstate_t.
69769         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
69770         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
69771
69772 2000-07-10  Jim Meyering  <meyering@lucent.com>
69773
69774         * m4/strerror_r.m4: Mirror the correction made in autoconf.
69775
69776         * m4/gnu-source.m4: Output to confdefs.h directly.
69777         Suggestion from Akim Demaille.
69778
69779 2000-07-09  Paul Eggert  <eggert@twinsun.com>
69780
69781         The old behavior of quoting `like this' doesn't look good with
69782         newer, ISO-style fonts.  See:
69783         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
69784
69785         Instead, quote "like this" by default.  Let the translator
69786         tailor the locale-specific quoting behavior by providing
69787         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
69788
69789         * lib/quotearg.c (N_): New macro.
69790         (gettext_default): New function.
69791         (quotearg_buffer_restyled): Use
69792         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
69793         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
69794
69795 2000-07-09  Jim Meyering  <meyering@lucent.com>
69796
69797         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
69798         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
69799
69800         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
69801         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
69802
69803 2000-07-09  Jim Meyering  <meyering@lucent.com>
69804
69805         * lib/Most files: Update copyright dates to include 2000.
69806
69807 2000-07-08  Jim Meyering  <meyering@lucent.com>
69808
69809         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
69810         if not defined.
69811         (xgethostname): Remove now-unnecessary #ifdef.
69812         Move declaration of `err' into loop where it's used.
69813
69814 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69815         and Bruno Haible  <haible@clisp.cons.org>
69816
69817         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
69818         only if the test for an object-type mbstate_t fails.  This
69819         prevents us from mistakenly reporting that mbstate_t is a
69820         system object type after we "#define mbstate_t int" to work
69821         around its lack.
69822
69823 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69824         and Bruno Haible  <haible@clisp.cons.org>
69825
69826         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
69827
69828 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69829
69830         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
69831         to strerror_r.
69832         Include <ctype.h> for use of isalpha.
69833
69834 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69835
69836         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
69837         by allocating a larger buffer. Test the gethostname return value for
69838         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
69839         returns an error and ENAMETOOLONG isn't defined.
69840
69841 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69842
69843         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
69844         dimension.
69845
69846 2000-07-04  Jim Meyering  <meyering@lucent.com>
69847
69848         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
69849         of the deprecated AC_CHECKING.
69850
69851 2000-07-04  Jim Meyering  <meyering@lucent.com>
69852
69853         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
69854         Reported by Bruno Haible.
69855
69856 2000-07-04  Jim Meyering  <meyering@lucent.com>
69857
69858         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
69859         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
69860         lacks mbrtowc.
69861
69862 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69863
69864         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
69865         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
69866
69867 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69868         and Bruno Haible  <haible@clisp.cons.org>
69869
69870         * lib/quotearg.c (mbrtowc):
69871         Assign to *pwc, and return 1 only if result is nonzero.
69872         (iswprint): Use ISPRINT when substituting our own mbrtowc.
69873
69874 2000-07-03  Jim Meyering  <meyering@lucent.com>
69875
69876         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
69877
69878 2000-07-03  Jim Meyering  <meyering@lucent.com>
69879
69880         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
69881         This is necessary to get a definition of e.g., UTMP_FILE on
69882         HP-UX 10.20.
69883         From Bob Proulx.
69884
69885 2000-07-02  Jim Meyering  <meyering@lucent.com>
69886
69887         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
69888
69889         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
69890         AC_LIBOBJ(function_name).
69891         * m4/chown.m4: Likewise.
69892         * m4/fnmatch.m4: Likewise.
69893         * m4/ftruncate.m4: Likewise.
69894         * m4/getgroups.m4: Likewise.
69895         * m4/getline.m4: Likewise.
69896         * m4/group-member.m4: Likewise.
69897         * m4/jm-macros.m4: Likewise.
69898         * m4/lstat.m4: Likewise.
69899         * m4/malloc.m4: Likewise.
69900         * m4/memcmp.m4: Likewise.
69901         * m4/nanosleep.m4: Likewise.
69902         * m4/putenv.m4: Likewise.
69903         * m4/realloc.m4: Likewise.
69904         * m4/regex.m4: Likewise.
69905         * m4/stat.m4: Likewise.
69906         * m4/strftime.m4: Likewise.
69907
69908 2000-07-02  Jim Meyering  <meyering@lucent.com>
69909
69910         * lib/quotearg.c (mbstate_t): Don't define here.
69911
69912 2000-07-02  Jim Meyering  <meyering@lucent.com>
69913
69914         * lib/nanosleep.c (SIGCONT): Define if not already defined.
69915
69916 2000-07-01  Jim Meyering  <meyering@lucent.com>
69917
69918         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
69919
69920 2000-07-01  Jim Meyering  <meyering@lucent.com>
69921
69922         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
69923         problem.
69924
69925 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
69926
69927         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
69928         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
69929
69930 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
69931
69932         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
69933         per change in ../m4/ls-mntd-fs.m4.
69934         (read_filesystem_list): Ignore symbolic links.
69935
69936 2000-06-29  Jim Meyering  <meyering@lucent.com>
69937
69938         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
69939         for declaration of strcmp.
69940
69941         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
69942
69943         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
69944         Avoid warning by casting result to `char *' to remove `const'.
69945
69946 2000-06-28  Jim Meyering  <meyering@lucent.com>
69947
69948         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
69949         included by quotearg.c, for which we perform this test.  From
69950         Bruno Haible.
69951
69952 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
69953
69954         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
69955         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
69956         <utmpx.h> exists, put readutmp.o into LIBOBJS.
69957
69958 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
69959
69960         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
69961
69962 2000-06-26  Paul Eggert  <eggert@twinsun.com>
69963
69964         savedir now sets errno on failure and invokes xmalloc to get memory.
69965         Fix a couple of other minor bugs while we're at it.
69966
69967         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
69968         (NAMLEN): Remove macro.
69969         (malloc, realloc): Remove decls.
69970         (stpcpy): Likewise.
69971         ("xalloc.h"): Include.
69972         (NAME_SIZE_DEFAULT): New macro.
69973         (savedir): Use xmalloc / xrealloc to allocate memory.
69974         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
69975         Skip "" directory entries.
69976         Use strlen to calculate directory entry length, since the old method
69977         is rarely used these days and isn't worth supporting.
69978         Don't use a pointer after freeing it.
69979         Check for integer overflow when calculating allocation size.
69980         Use memcpy to copy entries, instead of stpcpy.
69981         Set errno properly when returning NULL.
69982         Check for readdir error.
69983
69984 2000-06-26  Jim Meyering  <meyering@lucent.com>
69985
69986         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
69987
69988 2000-06-25  Jim Meyering  <meyering@lucent.com>
69989
69990         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
69991         Linux header bug when _XOPEN_SOURCE is defined to 500.
69992
69993 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
69994
69995         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
69996         deficiency.
69997
69998 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
69999
70000         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
70001         Include xalloc.h.
70002         Don't include <stdlib.h>.  Don't declare malloc, realloc.
70003
70004 2000-06-24  Jim Meyering  <meyering@lucent.com>
70005
70006         * m4/strerror_r.m4: Revive this file -- to try out an experimental
70007         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
70008         for which strerror does return char*, but which lacks a conveniently
70009         accessible declaration of the function.  If the compile-test says
70010         strerror_r doesn't work, then resort to a `run'-test that works on
70011         BeOS and segfaults on DEC Unix.
70012
70013 2000-06-24  Jim Meyering  <meyering@lucent.com>
70014
70015         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
70016
70017 2000-06-23  Paul Eggert  <eggert@twinsun.com>
70018
70019         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
70020         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
70021
70022 2000-06-23  Paul Eggert  <eggert@twinsun.com>
70023
70024         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
70025         (mbrtowc, mbstate_t): Define substitutes if
70026         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
70027         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
70028         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
70029
70030 2000-06-23  Jim Meyering  <meyering@lucent.com>
70031
70032         * m4/afs.m4: Add missing AC_MSG_RESULT.
70033         Reported by Bruno Haible.
70034
70035         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
70036         Suggestion from Bruno Haible.
70037
70038 2000-06-23  Jim Meyering  <meyering@lucent.com>
70039
70040         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
70041
70042 2000-06-21  Jim Meyering  <meyering@lucent.com>
70043
70044         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
70045
70046 2000-06-21  Jim Meyering  <meyering@lucent.com>
70047
70048         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
70049         (noinst_HEADERS): Add getstr.h.
70050
70051         * lib/getline.c (getstr): Move into a separate file.
70052         * lib/getstr.c (getstr): New file, extracted from getline.c, with
70053         the following changes: new parameter, delim2; both delim[12]
70054         parameters have type `int', not `char'.  The latter would lose
70055         with 8-bit delimiters.
70056         * lib/getstr.h: New file.
70057
70058 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70059
70060         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
70061         than 1024, return a memory chunk of least possible size, instead
70062         of size PATH_MAX + 2. In the loop, increment the size proportionally.
70063         Use free/xmalloc instead of xrealloc to avoid copying for very long
70064         paths.
70065
70066 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70067
70068         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
70069         the empty string.
70070
70071 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
70072
70073         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
70074         address, not strdup.  Include <stdlib.h> and don't declare free().
70075
70076 2000-06-19  Jim Meyering  <meyering@lucent.com>
70077
70078         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
70079
70080 2000-06-18  Jim Meyering  <meyering@lucent.com>
70081
70082         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
70083
70084         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
70085         `checking whether...' message to be consistent with that of the
70086         lstat test.
70087
70088 2000-06-18  Jim Meyering  <meyering@lucent.com>
70089
70090         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
70091         Besides, these days every porting target provides a mkdir function.
70092
70093         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
70094         needed. (this snippet comes from src/system.h).
70095
70096 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
70097
70098         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
70099
70100 2000-06-15  Paul Eggert  <eggert@twinsun.com>
70101
70102         * lib/human.c (adjust_value): New function.
70103         (human_readable_inexact): Apply rounding style even when
70104         printing approximate values.
70105
70106 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70107
70108         * lib/human.c (human_readable_inexact): Allow an input block
70109         size that is not a multiple of the output block size, and vice versa.
70110         Reported by Piergiorgio Sartor.
70111
70112 2000-06-14  Paul Eggert  <eggert@twinsun.com>
70113
70114         * lib/getdate.y (get_date): Apply relative times after time
70115         zone indicator, not before.  Reported by Todd A. Jacobs.
70116
70117 2000-06-13  Jim Meyering  <meyering@lucent.com>
70118
70119         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
70120
70121         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
70122
70123 2000-06-12  Paul Eggert  <eggert@twinsun.com>
70124
70125         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
70126
70127 2000-06-12  Jim Meyering  <meyering@lucent.com>
70128
70129         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
70130         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
70131         optional argument.
70132         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
70133         the optional argument, `lib'.
70134
70135 2000-06-08  Jim Meyering  <meyering@lucent.com>
70136
70137         * m4/largefile.m4: Remove file (now that it's part of autoconf).
70138
70139 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70140
70141         Rewrite largefile configuration so that we don't need to run
70142         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
70143         AC_CANONICAL_HOST in configure.in -- jmm]
70144
70145         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
70146         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
70147         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
70148         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
70149         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
70150         All uses changed.
70151         Instead of inspecting the output of getconf, try to compile the
70152         test program without and with the macro definition.
70153         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
70154         for getconf.  Instead, check for the needed flags by compiling
70155         test programs.
70156
70157 2000-06-04  Paul Eggert  <eggert@twinsun.com>
70158
70159         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
70160
70161 2000-06-04  Jim Meyering  <meyering@lucent.com>
70162
70163         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
70164         SunOS 4.1.4 for which gid_t is an unsigned type.
70165
70166 2000-06-03  Jim Meyering  <meyering@lucent.com>
70167
70168         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
70169         now that autoconf requires that.
70170
70171         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
70172         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
70173         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
70174
70175 2000-06-03  Jim Meyering  <meyering@lucent.com>
70176
70177         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
70178
70179 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70180
70181         * m4/glibc21.m4: New file.
70182         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
70183
70184 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
70185
70186         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
70187         newer, don't install charset.alias.
70188         * lib/config.charset: Change the Linux/glibc rules so they become empty
70189         on glibc-2.1 or newer.
70190
70191 2000-06-02  Jim Meyering  <meyering@lucent.com>
70192
70193         * lib/mountlist.c: Back out last change.  Instead, do this...
70194         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
70195         me_dummy member using the same `ignore'-testing code.
70196         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
70197         fs_type strings.
70198         From Mark D. Roth.
70199
70200 2000-05-29  Jim Meyering  <meyering@lucent.com>
70201
70202         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
70203         mounts with the `ignore' attribute.  Based on a patch from
70204         Mark D. Roth.
70205
70206 2000-05-28  Jim Meyering  <meyering@lucent.com>
70207
70208         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
70209         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70210         * m4/stat.m4: Likewise.
70211         * m4/lstat.m4: Likewise.
70212         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
70213
70214         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
70215         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
70216
70217 2000-05-26  Jim Meyering  <meyering@lucent.com>
70218
70219         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
70220
70221 2000-05-24  Jim Meyering  <meyering@lucent.com>
70222
70223         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
70224         autoconf requires that.
70225         * m4/lib-check.m4: Likewise.
70226         * m4/jm-macros.m4: Likewise.
70227         * m4/strftime.m4: Likewise.
70228
70229         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
70230         AC_CHECK_DECLS, now that autoconf requires that.
70231
70232 2000-05-22  Jim Meyering  <meyering@lucent.com>
70233
70234         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70235         * m4/lstat.m4: Likewise.
70236
70237 2000-05-22  Jim Meyering  <meyering@lucent.com>
70238
70239         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
70240
70241 2000-05-20  Jim Meyering  <meyering@lucent.com>
70242
70243         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
70244         (jm_PREREQ): Use it.
70245
70246 2000-05-18  Jim Meyering  <meyering@lucent.com>
70247
70248         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
70249         back, too, since it may have been modified by allocate_entry.
70250         (hash_delete): Rewrite to use neither the assignment operator
70251         nor the comma operator in an if-expression.
70252
70253 2000-05-15  Paul Eggert  <eggert@twinsun.com>
70254
70255         * lib/closeout.c:
70256         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
70257         Remove; no longer needed.
70258         "quotearg.h": Add include.
70259         (file_name): Do not bother to explicitly initialize to NULL; it's less
70260         efficient on some hosts.
70261         (close_stdout_status): Remove test as to whether stdout was already
70262         closed; it breaks for the case "echo x | sort >&-".
70263         Quote file name colons.
70264         Do not assume that _("write error") lacks format strings.
70265
70266 2000-05-15  Jim Meyering  <meyering@lucent.com>
70267
70268         * lib/version-etc.c (version_etc_copyright): Update the copyright
70269         string used in all --version output.
70270
70271 2000-05-14  Jim Meyering  <meyering@lucent.com>
70272
70273         * lib/closeout.c (close_stdout_set_file_name): New function.
70274         (close_stdout_status): Use new file-scoped global.
70275         Return right away if fstat says the stdout file descriptor is invalid.
70276         * lib/closeout.h (close_stdout_set_file_name): Declare.
70277
70278 2000-05-10  Jim Meyering  <meyering@lucent.com>
70279
70280         * lib/closeout.c [default_exit_status]: New file-scoped variable.
70281         (close_stdout_set_status): New function.
70282         * lib/closeout.h (close_stdout_set_status): Declare.
70283
70284 2000-05-09  Jim Meyering  <meyering@lucent.com>
70285
70286         * m4/gettext.m4: Rename this...
70287         * m4/libintl.m4: ...to this.
70288
70289 2000-05-08  Jim Meyering  <meyering@lucent.com>
70290
70291         * lib/long-options.c: Don't include closeout.h.
70292         (parse_long_options): Don't call close_stdout for --version.
70293
70294 2000-05-06  Paul Eggert  <eggert@twinsun.com>
70295
70296         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
70297         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
70298         2.1.3 bug.  This avoids a clash when files like regex.c define
70299         _GNU_SOURCE.
70300
70301 2000-05-06  Jim Meyering  <meyering@lucent.com>
70302
70303         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
70304         (AC_REPLACE_FUNCS): Add strnlen.
70305
70306         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
70307         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
70308
70309         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
70310         AC_SEARCH_LIBS call for nanosleep.
70311         (LIB_NANOSLEEP): Set and AC_SUBST.
70312
70313 2000-05-06  Jim Meyering  <meyering@lucent.com>
70314
70315         * lib/strnlen.c: Undefine __strnlen and strnlen.
70316         [!weak_alias]: Define __strnlen to strnlen.
70317
70318         * lib/atexit.c: New file, from libiberty.
70319
70320 2000-05-06  Jim Meyering  <meyering@lucent.com>
70321
70322         * lib/closeout.c (close_stdout_status): Also check for errors on the
70323         stderr stream.
70324
70325 2000-05-05  Jim Meyering  <meyering@lucent.com>
70326
70327         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
70328         AC_SEARCH_LIBS call for clock_gettime.
70329         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
70330
70331         * m4/search-libs.m4: Update from autoconf.
70332
70333         su doesn't work on Solaris 2.6.
70334         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
70335         <shadow.h>.  Reported by Dragos Harabor.
70336
70337 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
70338
70339         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
70340         memcpy instead of xmalloc, xrealloc, path_concat.
70341         (locale_charset): Treat empty environment variables as absent.
70342         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
70343
70344 2000-05-04  Jim Meyering  <meyering@lucent.com>
70345
70346         * lib/getopt.c: Update from glibc.
70347         * lib/obstack.c: Likewise.
70348         * lib/obstack.h: Likewise.
70349         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
70350         file
70351
70352         * lib/regex.h: Likewise.
70353         * lib/strndup.c: Likewise.
70354         * lib/strnlen.c: New file, from glibc.
70355
70356 2000-05-03  Jim Meyering  <meyering@lucent.com>
70357
70358         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
70359
70360 2000-05-02  Paul Eggert  <eggert@twinsun.com>
70361
70362         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
70363         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
70364         compile-time test, rather than inspecting host and OS, to
70365         decide whether to define _LARGEFILE_SOURCE.
70366
70367 2000-05-01  Jim Meyering  <meyering@lucent.com>
70368
70369         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
70370
70371         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
70372         Based on a patch from Bruno Haible.
70373
70374 2000-05-01  Jim Meyering  <meyering@lucent.com>
70375
70376         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
70377
70378 2000-04-29  Jim Meyering  <meyering@lucent.com>
70379
70380         * lib/path-concat.c: Declare strdup only if it's not defined.
70381         * lib/canon-host.c: Likewise.
70382
70383 2000-04-28  Jim Meyering  <meyering@lucent.com>
70384
70385         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
70386         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
70387         is included first, then limits.h is included by locale.h by libintl.h.
70388         From John David Anglin.
70389
70390 2000-04-25  Jim Meyering  <meyering@lucent.com>
70391
70392         * lib/makepath.c (S_IRWXUGO): Define.
70393         (make_path): Always perform explicit chmod if MODE specifies any
70394         of the `special' permission bits.  Prompted by a bug report against
70395         install from Mate Wierdl and Joost van Baal.
70396
70397 2000-04-18  Jim Meyering  <meyering@lucent.com>
70398
70399         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
70400         (jm_PREREQ): Use it.
70401
70402 2000-04-18  Jim Meyering  <meyering@lucent.com>
70403
70404         * lib/README: New file.
70405
70406         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
70407         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
70408
70409 2000-04-17  Jim Meyering  <meyering@lucent.com>
70410
70411         Get it right :-)
70412         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
70413         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
70414         Suggestion from Akim Demaille.
70415
70416 2000-04-17  Jim Meyering  <meyering@lucent.com>
70417
70418         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
70419         the definition of it to rpl_strftime also defined-away the system's
70420         declaration.
70421
70422 2000-04-15  Jim Meyering  <meyering@lucent.com>
70423
70424         Use `C' to denote so-called `contiguous' files, the same way
70425         that tar does.
70426         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
70427         (ftypelet): Use S_ISCTG.
70428         From Michael Deutschmann.
70429
70430 2000-04-14  Jim Meyering  <meyering@lucent.com>
70431
70432         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
70433         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
70434         clobbered.
70435
70436 2000-04-14  Jim Meyering  <meyering@lucent.com>
70437
70438         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
70439
70440 2000-04-13  Jim Meyering  <meyering@lucent.com>
70441
70442         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
70443         AH_VERBATIM to insert required #ifndef into config.h.in.
70444         Suggestion from Akim Demaille.
70445
70446 2000-04-12  Jim Meyering  <meyering@lucent.com>
70447
70448         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
70449         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
70450         Christian Krackowizer.
70451
70452         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
70453         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
70454         (AC_SYS_LARGEFILE): Require.
70455         (AM_C_PROTOTYPES): Require.
70456
70457 2000-04-08  Jim Meyering  <meyering@lucent.com>
70458
70459         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
70460         names don't conflict.  Reported by Eli Zaretskii.
70461
70462 2000-04-07  Jim Meyering  <meyering@lucent.com>
70463
70464         * lib/putenv.c: Move inclusion of errno.h so it follows that of
70465         sys/types.h, to work around system header problems on AIX 3.2.5.
70466         From Bruno Haible.
70467
70468 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
70469
70470         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
70471         bug.  Deal with the different error behavior of Irix iconv.
70472
70473 2000-04-05  Paul Eggert  <eggert@twinsun.com>
70474
70475         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
70476         IRIX if the installer said otherwise.
70477
70478 2000-04-05  Jim Meyering  <meyering@lucent.com>
70479
70480         Portability tweaks required for ultrix4.3.
70481         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
70482         (jm_CHECK_DECLS): Add getutent to the list of functions.
70483         (_jm_DECL_HEADERS): Add utmpx.h.
70484         From John David Anglin.
70485
70486         * m4/strftime.m4: Back out the 2000-04-02 change.
70487         Instead of that change, simply undefine putenv in the test program.
70488
70489 2000-04-05  Jim Meyering  <meyering@lucent.com>
70490
70491         Portability tweaks required for ultrix4.3.
70492         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
70493         getutent.
70494         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
70495         * lib/canon-host.c: Declare strdup.
70496         * lib/path-concat.c: Likewise.
70497         From John David Anglin.
70498
70499 2000-04-04  Jim Meyering  <meyering@lucent.com>
70500
70501         Be more DOS 8.3-friendly.
70502         * lib/ref-add.sin: Renamed from ref-add.sed.in.
70503         * lib/ref-del.sin: Renamed from ref-del.sed.in.
70504         * lib/Makefile.am: Reflect renaming.
70505         Reported by Eli Zaretskii.
70506
70507         Use a temporary file name that won't clash with `charset.alias'
70508         in the DOS 8.3 name space.
70509         * lib/Makefile.am (charset_tmp): Define.
70510         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
70511         (uninstall-local): Likewise.
70512         Reported by Eli Zaretskii.
70513
70514 2000-04-03  Jim Meyering  <meyering@lucent.com>
70515
70516         * m4/gettext.m4: Fix typo in comment.
70517
70518         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
70519         textutils/configure.in).  Suggestion from Paul Eggert.
70520         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
70521
70522 2000-04-02  Paul Eggert  <eggert@twinsun.com>
70523
70524         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
70525         variable in the shell rather than using putenv, which isn't
70526         portable.  This avoids the configure-time inter-test dependency
70527         on the potentially-renamed putenv function.
70528
70529 2000-03-30  Paul Eggert  <eggert@twinsun.com>
70530
70531         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
70532         before checking struct stat.st_blksize, so that
70533         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
70534
70535 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70536
70537         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
70538         since strftime.c uses HAVE_STRFTIME to decide whether to use
70539         the underlying strftime.
70540
70541 2000-03-29  Paul Eggert  <eggert@twinsun.com>
70542
70543         * lib/time/strftime.c (my_strftime): Make sure we call the system
70544         strftime, not ourselves, when invoking the underlying strftime.
70545
70546 2000-03-24  Jim Meyering  <meyering@lucent.com>
70547
70548         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
70549         (charset_alias): Define.
70550         (install-exec-local): Factor out common code.
70551         (uninstall-local): Split lines longer than 80.
70552         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
70553         (SUFFIXES): Define.
70554         (.sed.in.sed): New rule.  Don't redirect directly to $@.
70555         (CLEANFILES): Add ref-add.sed and ref-del.sed.
70556
70557 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
70558
70559         * lib/config.charset: Output a line containing "Packages using this
70560         file".
70561         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
70562         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
70563         ref-del.sed): New rules.
70564
70565 2000-03-17  Jim Meyering  <meyering@lucent.com>
70566
70567         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
70568         Otherwise, include <strings.h>
70569
70570 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
70571
70572         * lib/unicodeio.c (utf8_wctomb): New function.
70573         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
70574         format instead of in UCS-4 with platform dependent endianness.
70575
70576 2000-03-10  Jim Meyering  <meyering@lucent.com>
70577
70578         * m4/lib-check.m4: Look for getspnam in -lgen, too.
70579         From Marco Franzen.
70580
70581 2000-03-07  Paul Eggert  <eggert@twinsun.com>
70582
70583         * lib/savedir.c (savedir): Work even if directory size is
70584         negative; this can happen with some screwy NFS configurations.
70585
70586 2000-03-06  Jim Meyering  <meyering@lucent.com>
70587
70588         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
70589         if it's NULL (because we ran out of memory).  From Bruno Haible.
70590
70591 2000-03-05  Jim Meyering  <meyering@lucent.com>
70592
70593         * lib/localcharset.c ("path-concat.h"): Include.
70594         (get_charset_aliases): Use path_concat instead of ANSI string
70595         concatenation.
70596
70597         * lib/unicodeio.h (PARAMS): Define.
70598         Use it to guard prototype.
70599
70600 2000-03-04  Jim Meyering  <meyering@lucent.com>
70601
70602         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
70603         for lib/localcharset.c.
70604
70605 2000-03-04  Jim Meyering  <meyering@lucent.com>
70606
70607         * lib/Makefile.am (install-exec-local): Create $(libdir) before
70608         installing into it.
70609         (uninstall-local): Uncomment this rule so `make distcheck' works
70610         once again.
70611
70612         * lib/unicodeio.c (<errno.h>): Include it.
70613         (errno): Declare if not defined.
70614
70615         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
70616
70617         * lib/config.charset: New version, incorporating remarks from a linux
70618         i18n mailing list.  From Bruno Haible.
70619
70620 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
70621
70622         * m4/codeset.m4: New file.
70623         * m4/iconv.m4: New file.
70624         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
70625
70626 2000-03-03  Jim Meyering  <meyering@lucent.com>
70627
70628         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
70629
70630 2000-03-02  Jim Meyering  <meyering@lucent.com>
70631
70632         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
70633         the messages come out on separate lines.
70634
70635         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
70636         rather than jm_CHECK_DECLARATIONS.
70637         * m4/decl.m4: Remove now-unused file.
70638
70639         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
70640         geteuid.
70641
70642 2000-03-02  Jim Meyering  <meyering@lucent.com>
70643
70644         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
70645
70646 2000-03-01  Jim Meyering  <meyering@lucent.com>
70647
70648         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
70649         * lib/unicodeio.c: Likewise.
70650
70651 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
70652
70653         * lib/config.charset: New file.
70654         * lib/localcharset.c: New file.
70655         * lib/unicodeio.h, lib/unicodeio.c: New files.
70656         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
70657         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
70658         (noinst_HEADERS): Add unicodeio.h.
70659         (all-local, install-exec-local, charset.alias): New targets.
70660
70661 2000-02-28  Paul Eggert  <eggert@twinsun.com>
70662
70663         * lib/quotearg.c (ALERT_CHAR): New macro.
70664         (quotearg_buffer_restyled): Use it.
70665
70666 2000-02-27  Jim Meyering  <meyering@lucent.com>
70667
70668         * m4/check-decl.m4: Add getenv to the list.
70669
70670 2000-02-27  Jim Meyering  <meyering@lucent.com>
70671
70672         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
70673         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
70674
70675         * lib/backupfile.c: Guard inclusion of stdlib.h with
70676         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
70677         Declare malloc if needed.
70678
70679         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
70680         `#ifndef HAVE_DECL..'
70681         now that autoconf always defines the HAVE_DECL_ symbols.
70682         * lib/human.c: Likewise.
70683         * lib/same.c: Likewise.
70684         * lib/strtoumax.c: Likewise.
70685
70686         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
70687         declaration check was not run.
70688         * lib/hash.c: Likewise.
70689         * lib/human.c: Likewise.
70690         * lib/same.c: Likewise.
70691         * lib/strtoumax.c: Likewise.
70692
70693         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
70694         `.', then first look up the entire `.'-containing string as a login
70695         name.
70696
70697 2000-02-23  Jim Meyering  <meyering@lucent.com>
70698
70699         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
70700         in place of my hack.
70701
70702 2000-02-18  Paul Eggert  <eggert@twinsun.com>
70703
70704         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
70705         (textint): New typedef.
70706         (parser_control): Member year changed from int to textint.
70707         All uses changed.
70708         (YYSTYPE): Removed; replaced by %union with int and textint members.
70709         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
70710         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
70711         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
70712         (tSNUMBER, tUNUMBER): Now of type <textintval>.
70713         (date, number, to_year): Use width of number in digits, not its value,
70714         to determine whether it's a 2-digit year, or a 2-digit time.
70715         (yylex): Store number of digits of numeric tokens.
70716         Reported by John Kendall.
70717
70718         (parser_control): Changed from struct parser_control to typedef (for
70719         consistency).  All uses changed.
70720
70721         (tID): Removed; not used.
70722         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
70723
70724 2000-02-14  Paul Eggert  <eggert@twinsun.com>
70725
70726         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
70727         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
70728
70729 2000-02-12  Jim Meyering  <meyering@lucent.com>
70730
70731         * lib/userspec.c (ISDIGIT): Define it.
70732         (isdigit): Remove definition.
70733         (is_number): Use ISDIGIT, not isdigit.
70734         <libintl.h>: Include.
70735         (_ and N_): Define.
70736         (parse_user_spec): Mark translatable strings.
70737
70738 2000-02-10  Jim Meyering  <meyering@lucent.com>
70739
70740         With these changes, nanosleep.[ch] are finally enough like the other
70741         lib/* replacement files to compile on a few more losing systems.
70742
70743         * lib/nanosleep.h: Don't include config.h.
70744         Remove prototype from declaration of nanosleep.
70745         (PARAMS): Remove now-unneeded definition.
70746         * lib/nanosleep.c: #undef nanosleep.
70747         (rpl_nanosleep): Rename from nanosleep.
70748
70749 2000-02-10  Jim Meyering  <meyering@lucent.com>
70750
70751         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
70752         gnu_nanosleep to rpl_nanosleep.
70753
70754 2000-02-09  Jim Meyering  <meyering@lucent.com>
70755
70756         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
70757         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
70758
70759 2000-02-08  Akim Demaille  <akim@epita.fr>
70760
70761         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
70762         `[' and `]' and remove uses of `changequote'.
70763         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
70764         (AC_SYS_LARGEFILE): Likewise.
70765         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
70766         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
70767         of changequote.
70768         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
70769         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
70770         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
70771         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
70772
70773 2000-02-05  Jim Meyering  <meyering@lucent.com>
70774
70775         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
70776         Remove explicit use of AC_HEADER_TIME.  It is required by
70777         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
70778         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
70779         in autoconf whereby the expansion of the latter ended up preceding
70780         the expansion of its prerequisite, AC_HEADER_TIME.
70781         Reported by Volker Borchert.
70782
70783 2000-02-03  Jim Meyering  <meyering@lucent.com>
70784
70785         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
70786
70787 2000-02-03  Jim Meyering  <meyering@lucent.com>
70788
70789         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
70790         rather than with `#if HAVE_UTMPNAME'.
70791
70792 2000-02-02  Jim Meyering  <meyering@lucent.com>
70793
70794         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
70795         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
70796         Reported by Eli Zaretskii.
70797
70798 2000-02-01  Jim Meyering  <meyering@lucent.com>
70799
70800         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
70801
70802 2000-01-31  Jim Meyering  <meyering@lucent.com>
70803
70804         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
70805         functions.  Add the time.h and sys/time.h headers along with the
70806         AC_REQUIRE'ment of AC_HEADER_TIME.
70807
70808 2000-01-31  Jim Meyering  <meyering@lucent.com>
70809
70810         * lib/nanosleep.h (nanosleep): Guard declaration with
70811         `#if ! HAVE_DECL_NANOSLEEP'.
70812         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
70813         the declaration in that vendor's sys/timers.h.
70814         Reported by Christian Krackowizer.
70815
70816         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
70817         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
70818         (ISPRINT): Likewise.
70819         Reported by Tom Tromey.
70820
70821 2000-01-30  Jim Meyering  <meyering@lucent.com>
70822
70823         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
70824
70825         * m4/prereq.m4 (utmp_includes): Define.
70826         Check for ut_user and ut_name members in both struct utmpx
70827         and struct utmp.
70828
70829 2000-01-30  Jim Meyering  <meyering@lucent.com>
70830
70831         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
70832         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
70833         header files where only utmpx.ut_user is declared.
70834
70835         * lib/readutmp.h (UT_USER): Define.
70836
70837 2000-01-29  Jim Meyering  <meyering@lucent.com>
70838
70839         * m4/lib-check.m4: New file containing library-related checks from
70840         fileutils and sh-utils (textutils had none).
70841
70842 2000-01-28  Jim Meyering  <meyering@lucent.com>
70843
70844         * m4/perl.m4: Change format of warning message to look more like that
70845         from the missing script.  Suggestion from François Pinard.
70846
70847 2000-01-25  Jim Meyering  <meyering@lucent.com>
70848
70849         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
70850         well as time.h in the compile check.
70851         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
70852         Fix typo in cross-compiling case: s/yes/no/.
70853
70854 2000-01-23  Jim Meyering  <meyering@lucent.com>
70855
70856         * m4/jm-macros.m4: Move df-related tests here from
70857         fileutils/configure.in
70858
70859         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
70860         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
70861
70862         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
70863         s/space/ac_fsusage_space/.
70864         (jm_FILE_SYSTEM_USAGE): Take two parameters.
70865
70866         * m4/ftruncate.m4: New file (derived from part of
70867         fileutils/configure.in).
70868         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
70869         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
70870
70871         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
70872         AC_SUBST these here, rather than just in sh-util/configure.in, so
70873         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
70874         all the same.
70875         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
70876         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
70877         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
70878         (AC_SUBST(POW_LIBM)): Likewise.
70879         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
70880
70881 2000-01-23  Jim Meyering  <meyering@lucent.com>
70882
70883         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
70884         obstack.c.
70885
70886 2000-01-22  Jim Meyering  <meyering@lucent.com>
70887
70888         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
70889
70890         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
70891
70892         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
70893         configure.in
70894         (AC_CHECK_HEADERS): Likewise for sh-utils.
70895         (AC_CHECK_HEADERS): Likewise for textutils.
70896         Merge the three lists of headers.
70897
70898         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
70899         from fileutils' configure.in.
70900
70901         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
70902         code. Moved tests into their own function (_jm_DECL_HEADERS) in
70903         check-decl.m4.
70904
70905         * m4/check-decl.m4: Use #if rather than #ifdef.
70906         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
70907         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
70908         (_jm_DECL_HEADERS): Define new function.
70909         (jm_CHECK_DECLARATIONS): Require it.
70910
70911 2000-01-22  Jim Meyering  <meyering@lucent.com>
70912
70913         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
70914         [! HAVE_DECL_STRTOULL]: Declare strtoull.
70915         Required for some AIX systems.  Reported by Christian Krackowizer.
70916         [TESTING] (main): New function.
70917
70918         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
70919         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
70920         letters.
70921
70922         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
70923         iswprint.
70924
70925         * lib/strverscmp.c (ISDIGIT): Define.
70926         (strverscmp): Use ISDIGIT, not isdigit.
70927
70928 2000-01-19  Jim Meyering  <meyering@lucent.com>
70929
70930         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
70931         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
70932         defines `struct timespec' in <sys/time.h>
70933
70934         * m4/c-bs-a.m4: Remove uses of changequote altogether.
70935         Thanks to Akim for explaining.
70936
70937 2000-01-17  Paul Eggert  <eggert@twinsun.com>
70938
70939         * lib/nanosleep.c (nanosleep):
70940         Don't use SA_INTERRUPT to decide whether to call sigaction, as
70941         POSIX.1 doesn't require SA_INTERRUPT and some systems
70942         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
70943         it's been part of POSIX.1 since day 1 (in 1988).
70944
70945 2000-01-17  Jim Meyering  <meyering@lucent.com>
70946
70947         * lib/interlock: Remove unused file.  Reported by François Pinard.
70948
70949 2000-01-16  Paul Eggert  <eggert@twinsun.com>
70950
70951         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
70952         alert, backslash, formfeed, and vertical tab unnecessarily in
70953         shell quoting style.
70954
70955 2000-01-16  Jim Meyering  <meyering@lucent.com>
70956
70957         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
70958         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
70959         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
70960         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
70961
70962 2000-01-16  Jim Meyering  <meyering@lucent.com>
70963
70964         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
70965         because the latter didn't work.
70966
70967 2000-01-15  Jim Meyering  <meyering@lucent.com>
70968
70969         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
70970         (AC_REPLACE_FUNCS): Add memcpy and memset.
70971         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
70972         Add strpbrk.
70973         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
70974
70975 2000-01-12  Jim Meyering  <meyering@lucent.com>
70976
70977         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
70978         (jm_PREREQ): Use it.
70979         (jm_PREREQ_READUTMP): New macro.
70980         (jm_PREREQ): Use it.
70981
70982 2000-01-11  Paul Eggert  <eggert@twinsun.com>
70983
70984         Quote multibyte characters correctly.
70985         * m4/c-bs-a.m4: New file.
70986         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
70987         (jm_PREREQ): Use it.
70988
70989 2000-01-11  Paul Eggert  <eggert@twinsun.com>
70990
70991         * m4/uintmax_t.m4: Port to autoconf 2.13.
70992
70993 2000-01-08  Jim Meyering  <meyering@ascend.com>
70994
70995         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
70996         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
70997
70998 2000-01-04  Jim Meyering  <meyering@ascend.com>
70999
71000         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
71001         jm_STRUCT_DIRENT_D_TYPE.
71002         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
71003         jm_STRUCT_DIRENT_D_INO.
71004         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
71005         jm_STRUCT_UTIMBUF.
71006         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
71007         renamings.
71008         * m4/utime.m4: Likewise.
71009
71010         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
71011         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
71012
71013 2000-01-03  Paul Eggert  <eggert@twinsun.com>
71014
71015         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
71016         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
71017
71018 2000-01-02  Jim Meyering  <meyering@ascend.com>
71019
71020         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
71021         remember if this is necessary.
71022
71023 1999-12-26  Jim Meyering  <meyering@ascend.com>
71024
71025         * m4/jm-macros.m4: Use it here.
71026         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
71027
71028 1999-12-23  Jim Meyering  <meyering@ascend.com>
71029
71030         * m4/jm-macros.m4: Check for clock_gettime (moved from
71031         fileutils/configure.in)
71032         Check for gettimeofday.
71033
71034 1999-12-20  Jim Meyering  <meyering@ascend.com>
71035
71036         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
71037         autoconf-2.14a-1999-12-20.
71038
71039 1999-12-19  Jim Meyering  <meyering@ascend.com>
71040
71041         * m4/lstat-slash.m4: New file.
71042         * m4/jm-macros.m4: Use the new macro:
71043         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71044
71045 1999-12-07  Jim Meyering  <meyering@ascend.com>
71046
71047         * m4/perl.m4: Require that File::Compare be available, too.
71048         Too many systems seem to lack it.
71049
71050         * m4/strftime.m4: Add checks for most of the cpp macros tested in
71051         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
71052
71053 1999-11-18  Paul Eggert  <eggert@twinsun.com>
71054
71055         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
71056         problem with the QNX 4.25 shell, which doesn't propagate exit
71057         status of failed commands inside shell assignments.
71058
71059 1999-11-17  Jim Meyering  <meyering@ascend.com>
71060
71061         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
71062
71063 1999-11-07  Jim Meyering  <meyering@ascend.com>
71064
71065         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
71066
71067 1999-11-06  Jim Meyering  <meyering@ascend.com>
71068
71069         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
71070         * m4/jm-macros.m4 (jm_MACROS): Use it here.
71071
71072 1999-11-05  Jim Meyering  <meyering@ascend.com>
71073
71074         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
71075         configure.in of textutils, fileutils, and sh-utils into this one
71076         (shared between those packages) file.
71077         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
71078         AC_STRUCT_ST_BLKSIZE.
71079
71080 1999-11-03  Jim Meyering  <meyering@ascend.com>
71081
71082         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
71083         of AC_CHECK_TYPE checks includes unistd.h.
71084         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
71085         Suggestion from Akim Demaille.
71086
71087 1999-10-30  Jim Meyering  <meyering@ascend.com>
71088
71089         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
71090         m4-quoted string.
71091         * m4/ls-mntd-fs.m4: Likewise.
71092         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
71093         * m4/jm-winsz1.m4: Likewise.
71094
71095         * m4/const.m4: Remove file, since the fix made it into the experimental
71096         version of autoconf.
71097         * m4/mktime.m4: Likewise.
71098
71099         * m4/check-type.m4: Remove file, now that the latest version of
71100         AC_CHECK_TYPE takes a third arg to specify additional #includes.
71101
71102         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
71103         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
71104         AC_CHECK_TYPE.
71105
71106 1999-10-04  Jim Meyering  <meyering@ascend.com>
71107
71108         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
71109
71110 1999-09-22  Paul Eggert  <eggert@twinsun.com>
71111
71112         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
71113         2.95.1 bug with HP-UX 10.20.
71114
71115 1999-09-17  Jim Meyering  <meyering@ascend.com>
71116
71117         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
71118         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
71119         due to missing strdup (against sh-utils-2.0).
71120
71121 1999-08-29  Jim Meyering  <meyering@ascend.com>
71122
71123         * m4/jm-macros.m4: Require jm_BISON.
71124         * m4/bison.m4: New file.
71125
71126 1999-08-17  Paul Eggert  <eggert@twinsun.com>
71127
71128         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
71129         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
71130
71131 1999-08-05  Jim Meyering  <meyering@ascend.com>
71132
71133         * m4/getline.m4: Rename test file from conftestdata to conftest.data
71134         to avoid conflicts with `conftest' on 8+3 filesystems.
71135         Suggestion from Eli Zaretskii.
71136
71137 1999-08-04  Jim Meyering  <meyering@ascend.com>
71138
71139         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
71140         fileutils and sh-utils (textutils's getline test was inadequate).
71141         (AM_FUNC_GETLINE): Run this test.
71142         (AC_CHECK_FUNCS): Check for getdelim.
71143         Reported by Bob Proulx.
71144
71145 1999-08-02  Jim Meyering  <meyering@ascend.com>
71146
71147         * m4/jm-macros.m4: Add a comment.
71148
71149 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71150
71151         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
71152         <inttypes.h> defines strtoumax as a macro (and not as a
71153         function).
71154
71155 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71156
71157         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
71158         that we can shift, multiply and divide unsigned long long
71159         values; Ultrix cc can't do it.
71160
71161 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71162
71163         * m4/mktime.m4: New file, which is a preview of what should appear
71164         in the next public autoconf release.
71165
71166 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71167
71168         * m4/lfs.m4: Remove this file.
71169         * m4/largefile.m4: New file.  It contains the old contents of
71170         lfs.m4, except that all names with prefix AC_LFS have been
71171         changed to use the prefix AC_SYS_LARGEFILE instead, to be
71172         compatible with future autoconf versions.  Also, some minor m4
71173         quoting problems have been fixed.
71174
71175 1999-08-01  Paul Eggert  <eggert@twinsun.com>
71176
71177         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
71178         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
71179         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
71180         and simplify the shell code.
71181
71182 1999-08-01  Jim Meyering  <meyering@ascend.com>
71183
71184         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
71185         m4.
71186
71187 1999-07-20  Jim Meyering  <meyering@ascend.com>
71188
71189         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
71190
71191 1999-07-15  Jim Meyering  <meyering@ascend.com>
71192
71193         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
71194
71195 1999-05-22  Jim Meyering  <meyering@ascend.com>
71196
71197         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
71198
71199 1999-05-20  Jim Meyering  <meyering@ascend.com>
71200
71201         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
71202         Add a colon after each `then' in case $4 is empty.
71203
71204 1999-05-16  Jim Meyering  <meyering@ascend.com>
71205
71206         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
71207
71208 1999-05-10  Jim Meyering  <meyering@ascend.com>
71209
71210         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
71211
71212         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
71213         AC_FUNC_MKTIME.
71214
71215 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
71216
71217         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
71218
71219 1999-05-04  Paul Eggert  <eggert@twinsun.com>
71220
71221         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
71222         not CPPFLAGS, so that linking works correctly in IRIX.
71223
71224 1999-04-30  Paul Eggert  <eggert@twinsun.com>
71225
71226         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
71227
71228 1999-04-20  Paul Eggert  <eggert@twinsun.com>
71229
71230         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
71231         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
71232         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
71233         jm_AC_TYPE_UNSIGNED_LONG_LONG.
71234         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
71235
71236         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
71237
71238 1999-04-20  Jim Meyering  <meyering@ascend.com>
71239
71240         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
71241         AC_REPLACE xstroull if necessary.  From Paul Eggert.
71242         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
71243
71244 1999-04-18  Jim Meyering  <meyering@ascend.com>
71245
71246         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
71247         * m4/jm-macros.m4: Use it.
71248
71249 1999-04-06  Jim Meyering  <meyering@ascend.com>
71250
71251         * m4/strftime.m4: Remove test for %f.
71252
71253 1999-03-29  Jim Meyering  <meyering@ascend.com>
71254
71255         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
71256         superset of the AC_TYPE_* checks in the textutils, fileutils,
71257         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
71258         AC_TYPE_PID_T.
71259
71260 1999-03-28  Jim Meyering  <meyering@ascend.com>
71261
71262         * m4/jm-macros.m4: Define GNU_PACKAGE here.
71263         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
71264         replaced e.g., in the *.sh files of the sh-utils.
71265
71266 1999-03-20  Jim Meyering  <meyering@ascend.com>
71267
71268         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
71269         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
71270         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
71271
71272 1999-03-19  Jim Meyering  <meyering@ascend.com>
71273
71274         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
71275
71276 1999-03-12  Jim Meyering  <meyering@ascend.com>
71277
71278         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
71279
71280 1999-03-07  Jim Meyering  <meyering@ascend.com>
71281
71282         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
71283         declared.
71284
71285 1999-02-17  Jim Meyering  <meyering@ascend.com>
71286
71287         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
71288         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
71289
71290 1999-02-07  Jim Meyering  <meyering@ascend.com>
71291
71292         * m4/group-member.m4: New file -- extracted from sh-utils'
71293         configure.in.
71294
71295         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
71296         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
71297
71298 1999-02-06  Jim Meyering  <meyering@ascend.com>
71299
71300         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
71301         * m4/fnmatch.m4: Likewise.
71302         * m4/getgroups.m4: Likewise.
71303         * m4/lstat.m4: Likewise.
71304         * m4/malloc.m4: Likewise.
71305         * m4/putenv.m4: Likewise.
71306         * m4/realloc.m4: Likewise.
71307         * m4/regex.m4: Likewise.
71308         * m4/stat.m4: Likewise.
71309         * m4/strftime.m4: Likewise.
71310         Suggestion from Alain Magloire.
71311
71312         * m4/chown.m4: Use `.$ac_objext', not `.o'.
71313         * m4/fnmatch.m4: Likewise.
71314         * m4/getgroups.m4: Likewise.
71315         * m4/getline.m4: Likewise.
71316         * m4/lstat.m4: Likewise.
71317         * m4/malloc.m4: Likewise.
71318         * m4/memcmp.m4: Likewise.
71319         * m4/putenv.m4: Likewise.
71320         * m4/realloc.m4: Likewise.
71321         * m4/regex.m4: Likewise.
71322         * m4/stat.m4: Likewise.
71323         * m4/strftime.m4: Likewise.
71324         Suggestion from Alain Magloire.
71325
71326         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
71327         an argument.
71328
71329         * m4/regex.m4: Add a run-time Test for proper operation of
71330         re_compile_pattern.
71331
71332 1999-01-31  Jim Meyering  <meyering@ascend.com>
71333
71334         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
71335
71336 1999-01-30  Jim Meyering  <meyering@ascend.com>
71337
71338         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
71339
71340         * m4/jm-mktime.m4: Make this a wrapper around the official
71341         AM_FUNC_MKTIME rather than my private copy, now that the official one
71342         is up to date.
71343         * m4/mktime.m4: Remove file.
71344
71345         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
71346         * m4/uptime.m4: Likewise.
71347         * m4/uintmax_t.m4: Likewise.
71348
71349 1999-01-28  Jim Meyering  <meyering@ascend.com>
71350
71351         * m4/jm-macros.m4: Use jm_AFS.
71352         * m4/afs.m4: New file (from fileutils' configure.in).
71353
71354         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
71355         * m4/chown.m4: Likewise.
71356         * m4/d-ino.m4: Likewise.
71357         * m4/d-type.m4: Likewise.
71358         * m4/fnmatch.m4: Likewise.
71359         * m4/getgroups.m4: Likewise.
71360         * m4/gettext.m4: Likewise.
71361         * m4/jm-mktime.m4: Likewise.
71362         * m4/jm-winsz2.m4: Likewise.
71363         * m4/lcmessage.m4: Likewise.
71364         * m4/ls-mntd-fs.m4: Likewise.
71365         * m4/malloc.m4: Likewise.
71366         * m4/memcmp.m4: Likewise.
71367         * m4/putenv.m4: Likewise.
71368         * m4/realloc.m4: Likewise.
71369         * m4/st_mtim.m4: Likewise.
71370         * m4/strftime.m4: Likewise.
71371
71372 1999-01-16  Jim Meyering  <meyering@ascend.com>
71373
71374         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
71375         (ARGMATCH_DIE_DECL): Define.
71376
71377 1999-01-12  Jim Meyering  <meyering@ascend.com>
71378
71379         * m4/Makefile.am.in: Rewrite to avoid using fmt.
71380         Reported by Lars Hecking.
71381
71382 1999-01-10  Jim Meyering  <meyering@ascend.com>
71383
71384         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
71385         gross kludge.
71386         * m4/inttypes_h.m4: Likewise.
71387         * m4/lstat.m4: Likewise.
71388         * m4/malloc.m4: Likewise.
71389         * m4/readdir.m4: Likewise.
71390         * m4/realloc.m4: Likewise.
71391         * m4/st_dm_mode.m4: Likewise.
71392         * m4/stat.m4: Likewise.
71393         * m4/utimbuf.m4: Likewise.
71394         * m4/utimes.m4: Likewise.
71395
71396         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
71397         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
71398         comments in config.h.in are meaningful.
71399
71400         * m4/jm-macros.m4: Require autoconf-2.13 here.
71401
71402         * m4/regex.m4: By default, don't use the included regex.c on systems
71403         with glibc 2.  Suggestion from Uli Drepper.
71404
71405 1999-01-02  Jim Meyering  <meyering@ascend.com>
71406
71407         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
71408
71409 1998-12-18  Jim Meyering  <meyering@ascend.com>
71410
71411         * m4/Makefile.am.in (Makefile.am): Simplify rule.
71412         Based on a suggestion from Lars Hecking.
71413
71414 1998-11-16  Paul Eggert  <eggert@twinsun.com>
71415
71416         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
71417
71418 1998-11-16  Jim Meyering  <meyering@ascend.com>
71419
71420         * m4/lfs.m4: Double-quote the `uname...` expression.
71421
71422 1998-11-14  Jim Meyering  <meyering@ascend.com>
71423
71424         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
71425         * m4/stat.m4: Likewise.
71426
71427 1998-11-03  Jim Meyering  <meyering@ascend.com>
71428
71429         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
71430         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
71431
71432 1998-10-18  Jim Meyering  <meyering@ascend.com>
71433
71434         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
71435
71436 1998-10-17  Jim Meyering  <meyering@ascend.com>
71437
71438         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
71439         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
71440         calls for those previously hard-coded headers.  Instead, take a new
71441         parameter.
71442         (jm_CHECK_DECLARATIONS): Reflect interface change.
71443         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
71444         (jm_CHECK_DECL_LOCALTIME_R): New macro.
71445
71446         * m4/mktime.m4: Test for spring-forward gap before long-running test.
71447
71448 1998-10-14  Jim Meyering  <meyering@ascend.com>
71449
71450         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
71451         instead of "TZ=America/Vancouver".  From Paul Eggert.
71452
71453 1998-10-11  Jim Meyering  <meyering@ascend.com>
71454
71455         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
71456         This adds a test for a recently added compatibility fix for mktime.c.
71457         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
71458
71459 1998-09-27  Jim Meyering  <meyering@ascend.com>
71460
71461         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
71462
71463         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
71464         ../configure.in, including a change from Gordon Matzigkeit to allow
71465         cross-compiling for the Hurd.
71466
71467         * m4/glibc.m4: New file/macro to test for the GNU C Library
71468         versions 1 and 2.  From Gordon Matzigkeit.
71469         Indent.
71470
71471 1998-09-21  Jim Meyering  <meyering@ascend.com>
71472
71473         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
71474
71475 1998-08-18  Paul Eggert  <eggert@twinsun.com>
71476
71477         Port nanosecond-resolution times to UnixWare 2.1.2 and
71478         pedantic Solaris 2.6.
71479
71480         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
71481         AC_STRUCT_ST_MTIM.
71482         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
71483         Generate name of ns member, instead of just 1 or undef.
71484         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
71485
71486 1998-08-15  Jim Meyering  <meyering@ascend.com>
71487
71488         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
71489         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
71490         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
71491         instead of jm_TYPE_SSIZE_T.
71492
71493 1998-08-12  Jim Meyering  <meyering@ascend.com>
71494
71495         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
71496
71497 1998-08-02  Jim Meyering  <meyering@ascend.com>
71498
71499         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
71500         in acconfig.h manually.
71501
71502 1998-07-31  Paul Eggert  <eggert@twinsun.com>
71503
71504         * m4/st_mtim.m4: New file.
71505
71506 1998-07-28  Jim Meyering  <meyering@ascend.com>
71507
71508         * m4/utimes.m4: Undef stat.
71509
71510 1998-07-25  Jim Meyering  <meyering@ascend.com>
71511
71512         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
71513         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
71514
71515 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
71516
71517         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
71518         uid and gid actually remain unchanged.
71519
71520 1998-07-07  Jim Meyering  <meyering@ascend.com>
71521
71522         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
71523
71524 1998-07-04  Jim Meyering  <meyering@ascend.com>
71525
71526         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
71527         to prove that this macro can be used in packages without regex.c.
71528
71529 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
71530
71531         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
71532         is to be used.
71533
71534 1998-07-03  Jim Meyering  <meyering@ascend.com>
71535
71536         * m4/gettext.m4: Add -lintl if it's found to be necessary.
71537
71538         * m4/gettext.m4: New file -- from gettext-0.10.35.
71539         * m4/lcmessage.m4: Likewise.
71540         * m4/progtest.m4: Likewise.
71541
71542         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
71543         * m4/jm-macros.m4: Require the new macro.
71544
71545 1998-06-29  Jim Meyering  <meyering@ascend.com>
71546
71547         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
71548         for the definition of NGROUPS (used in a system header included
71549         by sys/mount.h).
71550
71551 1998-06-28  Jim Meyering  <meyering@ascend.com>
71552
71553         * m4/ls-mntd-fs.m4: New file.
71554         * m4/fstypename.m4: New file.
71555
71556         * m4/jm-macros.m4: Require the new macro.
71557         * m4/jm-glibc-io.m4: New file.
71558
71559 1998-05-19  Jim Meyering  <meyering@ascend.com>
71560
71561         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
71562         * m4/lchown.m4: New file.
71563
71564         * m4/Makefile.am.in: New file.
71565         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
71566
71567 1998-05-14  Jim Meyering  <meyering@ascend.com>
71568
71569         * m4/Makefile.am (EXTRA_DIST): Add them.
71570         * m4/jm-macros.m4: New file.
71571         * m4/utimbuf.m4: New file.
71572
71573 1998-05-12  Jim Meyering  <meyering@ascend.com>
71574
71575         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
71576
71577 1998-05-11  Jim Meyering  <meyering@ascend.com>
71578
71579         * m4/isc-posix.m4: New file.
71580
71581 1998-05-10  Jim Meyering  <meyering@ascend.com>
71582
71583         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
71584
71585 1998-05-09  Jim Meyering  <meyering@ascend.com>
71586
71587         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
71588         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
71589         with automake.
71590
71591         * m4/ssize_t.m4: New file.
71592         * m4/mktime.m4: Remove file -- the new automake has this now.
71593
71594 1998-04-26  Jim Meyering  <meyering@ascend.com>
71595
71596         * m4/assert.m4: New file.
71597         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
71598
71599 1998-04-05  Jim Meyering  <meyering@ascend.com>
71600
71601         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
71602         (jm_PREREQ): Use it here.
71603
71604 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
71605
71606         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
71607         in acconfig.h.
71608
71609 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
71610
71611         * m4/prereq.m4: New file.
71612         * m4/error.m4: New file.
71613         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
71614
71615 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
71616
71617         * m4/getline.m4: Don't set am_cv_func_working_getline before the
71618         cache-check for the same variable -- that defeated the purpose of
71619         the test; the test program was never run.  This was a problem only
71620         on systems with losing getline functions -- HP-UX 10.20 is one.
71621         Reported by Bjorn Helgaas.
71622
71623 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
71624
71625         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
71626
71627 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
71628
71629         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
71630
71631         * m4/const.m4: New file.  Use an initializer in this declaration
71632         typedef int charset[2]; const charset x;
71633         Reported by Bob Glickstein.
71634
71635 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
71636
71637         * m4/chown.m4: Fix reversed types on -1 args to chown.
71638         From Kaveh Ghazi.
71639
71640 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
71641
71642         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
71643         Add lseek and memchr.
71644
71645         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
71646         T.E.Dickey <dickey@clark.net> said that some older preprocessors
71647         have a 20-character limit on names.
71648
71649 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
71650
71651         * m4/inttypes_h.m4: New file.
71652         * m4/uintmax_t.m4: New file.
71653         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
71654
71655
71656         -----
71657
71658         Local Variables:
71659         coding: utf-8
71660         End:
71661
71662         Copyright (C) 1997-2010 Free Software Foundation, Inc.
71663
71664         Copying and distribution of this file, with or without
71665         modification, are permitted provided the copyright notice
71666         and this notice are preserved.